优化缓存条件设置,支持不缓存条件设置,支持条件排序等

This commit is contained in:
刘祥超
2021-06-08 22:46:08 +08:00
parent 9de66f080d
commit a8030fa045
17 changed files with 319 additions and 115 deletions

View File

@@ -9,10 +9,13 @@ Tea.context(function () {
isOn: true
}
this.isUpdating = false
// 是否在修改
this.$delay(function () {
if (window.parent.UPDATING_COND_GROUP != null) {
this.group = window.parent.UPDATING_COND_GROUP
this.isUpdating = true
} else if (this.group.conds.length == 0) {
// 如果尚未有条件,则自动弹出添加界面
this.addCond()
@@ -62,7 +65,7 @@ Tea.context(function () {
width: "32em",
height: "22em",
callback: function (resp) {
that.group.conds[condIndex] = resp.data.cond
Vue.set(that.group.conds, condIndex, resp.data.cond)
}
})
}