forked from github/dataease
fix:过滤组件参数变动也可以进行保存
This commit is contained in:
parent
f1aac17711
commit
5d97212c50
@ -64,6 +64,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dateChange(value) {
|
dateChange(value) {
|
||||||
this.setCondition()
|
this.setCondition()
|
||||||
|
this.styleChange()
|
||||||
},
|
},
|
||||||
formatValues(values) {
|
formatValues(values) {
|
||||||
if (!values || values.length === 0) {
|
if (!values || values.length === 0) {
|
||||||
@ -83,6 +84,9 @@ export default {
|
|||||||
const value = values[0]
|
const value = values[0]
|
||||||
return timeSection(value, this.options.attrs.type)
|
return timeSection(value, this.options.attrs.type)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
styleChange() {
|
||||||
|
this.$store.state.styleChangeTimes++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,6 +135,7 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.setCondition()
|
this.setCondition()
|
||||||
|
this.styleChange()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setCondition() {
|
setCondition() {
|
||||||
@ -165,6 +166,9 @@ export default {
|
|||||||
this.inDraw && this.$store.commit('addViewFilter', param)
|
this.inDraw && this.$store.commit('addViewFilter', param)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
styleChange() {
|
||||||
|
this.$store.state.styleChangeTimes++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
changeValue(value) {
|
changeValue(value) {
|
||||||
this.setCondition()
|
this.setCondition()
|
||||||
|
this.styleChange()
|
||||||
this.showNumber = false
|
this.showNumber = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (!this.$refs.deSelect.$refs.tags || !this.options.attrs.multiple) {
|
if (!this.$refs.deSelect.$refs.tags || !this.options.attrs.multiple) {
|
||||||
@ -101,7 +102,11 @@ export default {
|
|||||||
operator: this.operator
|
operator: this.operator
|
||||||
}
|
}
|
||||||
this.inDraw && this.$store.commit('addViewFilter', param)
|
this.inDraw && this.$store.commit('addViewFilter', param)
|
||||||
|
},
|
||||||
|
styleChange() {
|
||||||
|
this.$store.state.styleChangeTimes++
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -167,6 +167,7 @@ export default {
|
|||||||
|
|
||||||
this.options.value = values
|
this.options.value = values
|
||||||
this.setCondition()
|
this.setCondition()
|
||||||
|
this.styleChange()
|
||||||
},
|
},
|
||||||
// 勾选数据项 会影响全选节点的状态
|
// 勾选数据项 会影响全选节点的状态
|
||||||
setAllNodeStatus() {
|
setAllNodeStatus() {
|
||||||
@ -208,7 +209,11 @@ export default {
|
|||||||
filterNode(value, data) {
|
filterNode(value, data) {
|
||||||
if (!value) return true
|
if (!value) return true
|
||||||
return data[this.defaultProp.label].indexOf(value) !== -1
|
return data[this.defaultProp.label].indexOf(value) !== -1
|
||||||
|
},
|
||||||
|
styleChange() {
|
||||||
|
this.$store.state.styleChangeTimes++
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user