实现基础的统计指标

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

@@ -0,0 +1,23 @@
Tea.context(function () {
this.addItem = function (item) {
this.$post("$")
.params({
clusterId: this.clusterId,
itemId: item.id
})
.success(function () {
item.isChecked = true
})
}
this.removeItem = function (item) {
this.$post(".delete")
.params({
clusterId: this.clusterId,
itemId: item.id
})
.success(function () {
item.isChecked = false
})
}
})