Merge pull request #7393 from dataease/pr@dev@fix_filter_required_reset
fix: 文本下拉设置必填后反复编辑逻辑错误
This commit is contained in:
commit
395ada8033
@ -509,6 +509,7 @@ export default {
|
||||
this.$store.commit('setComponentWithId', this.currentFilterCom)
|
||||
this.$store.commit('recordSnapshot', 'sureFilter')
|
||||
this.$store.commit('setCurComponent', { component: this.currentFilterCom, index: this.curComponentIndex })
|
||||
this.$store.commit('delLastValidFilterWithId', this.currentFilterCom.id)
|
||||
bus.$emit('reset-default-value', this.currentFilterCom)
|
||||
this.closeFilter()
|
||||
},
|
||||
|
||||
@ -928,6 +928,11 @@ const data = {
|
||||
},
|
||||
resetLastValidFilters(state) {
|
||||
state.lastValidFilters = {}
|
||||
},
|
||||
delLastValidFilterWithId(state, id) {
|
||||
if (state.lastValidFilters[id]) {
|
||||
delete state.lastValidFilters[id]
|
||||
}
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
|
||||
@ -1269,6 +1269,7 @@ export default {
|
||||
this.$store.commit('recordSnapshot', 'sureFilter')
|
||||
this.$store.commit('setCurComponent', { component: this.currentFilterCom, index: this.curComponentIndex })
|
||||
this.$store.commit('setComponentFromList', this.currentFilterCom)
|
||||
this.$store.commit('delLastValidFilterWithId', this.currentFilterCom.id)
|
||||
bus.$emit('reset-default-value', this.currentFilterCom)
|
||||
this.closeFilter()
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user