实现基础的统计指标

This commit is contained in:
刘祥超
2021-06-30 19:59:59 +08:00
parent 9a915a48b5
commit a7aed3d49e
39 changed files with 258 additions and 66 deletions

View File

@@ -1,13 +1,17 @@
Tea.context(function () {
this.createItem = function () {
teaweb.popup(Tea.url(".createPopup", {
clusterId: this.clusterId
clusterId: this.clusterId,
category: this.category
}), {
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
})
},
onClose: function () {
teaweb.reload()
},
width: "50em",
height: "25em"
})
@@ -18,6 +22,7 @@ Tea.context(function () {
teaweb.confirm("确定要删除这个指标吗?", function () {
that.$post(".delete")
.params({
clusterId: that.clusterId,
itemId: itemId
})
.success(function () {