提交 fc56d34e authored 作者: wangjiahao's avatar wangjiahao

fix:日期组件选择值改变时允许保存

上级 ab66a1d6
...@@ -64,6 +64,7 @@ export default { ...@@ -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 { ...@@ -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++
} }
} }
} }
......
...@@ -80,6 +80,7 @@ export default { ...@@ -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 { ...@@ -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>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论