refactor: 当前过滤组件有默认值时无效触发保存

This commit is contained in:
wangjiahao 2022-01-30 10:01:31 +08:00
parent 2a62c35673
commit 83c0894a4b
4 changed files with 0 additions and 17 deletions

View File

@ -158,7 +158,6 @@ export default {
this.element.options.manualModify = true
}
this.setCondition()
this.styleChange()
},
formatFilterValue() {
if (this.values === null) return []
@ -184,9 +183,6 @@ export default {
return timeSection(parseFloat(value), this.element.options.attrs.type)
}
},
styleChange() {
this.$store.commit('recordStyleChange')
},
fillValueDerfault() {
const defaultV = this.element.options.value === null ? '' : this.element.options.value.toString()
if (this.element.options.attrs.type === 'daterange') {

View File

@ -185,7 +185,6 @@ export default {
}
this.setCondition()
this.$store.commit('recordStyleChange')
})
})
},
@ -219,9 +218,6 @@ export default {
return
}
},
styleChange() {
this.$store.commit('recordStyleChange')
},
inputChange(val) {
if (!this.inDraw) {

View File

@ -168,7 +168,6 @@ export default {
this.element.options.manualModify = true
}
this.setCondition()
this.styleChange()
this.showNumber = false
this.$nextTick(() => {
@ -207,9 +206,6 @@ export default {
return defaultV.split(',')[0]
}
},
styleChange() {
this.$store.commit('recordStyleChange')
},
optionDatas(datas) {
if (!datas) return null
return datas.filter(item => !!item).map(item => {

View File

@ -196,7 +196,6 @@ export default {
this.element.options.manualModify = true
}
this.setCondition()
this.styleChange()
},
setCondition() {
@ -222,10 +221,6 @@ export default {
return defaultV.split(',')[0]
}
},
styleChange() {
this.$store.commit('recordStyleChange')
},
optionDatas(datas) {
if (!datas) return null
return datas.filter(item => !!item).map(item => {