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

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

@@ -1,6 +1,7 @@
Tea.context(function () {
this.isUpdating = false
this.cond = null
this.paramsTitle = ""
this.success = NotifyPopup
this.condType = (this.components.length > 0) ? this.components[0].type : ""
@@ -11,4 +12,20 @@ Tea.context(function () {
this.condType = window.parent.UPDATING_COND.type
this.cond = window.parent.UPDATING_COND
}
this.changeCondType = function () {
let that = this
let c = this.components.$find(function (k, v) {
return v.type == that.condType
})
if (c == null || c.paramsTitle.length == 0) {
that.paramsTitle = "条件参数"
} else {
that.paramsTitle = c.paramsTitle
}
}
this.$delay(function () {
this.changeCondType()
})
})