mirror of
https://github.com/dataease/dataease.git
synced 2026-06-15 02:21:43 +08:00
fix:日期组件选择值改变时允许保存
This commit is contained in:
@@ -64,6 +64,7 @@ export default {
|
||||
},
|
||||
dateChange(value) {
|
||||
this.setCondition()
|
||||
this.styleChange()
|
||||
},
|
||||
formatValues(values) {
|
||||
if (!values || values.length === 0) {
|
||||
@@ -83,6 +84,9 @@ export default {
|
||||
const value = values[0]
|
||||
return timeSection(value, this.options.attrs.type)
|
||||
}
|
||||
},
|
||||
styleChange() {
|
||||
this.$store.state.styleChangeTimes++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ export default {
|
||||
methods: {
|
||||
changeValue(value) {
|
||||
this.setCondition()
|
||||
this.styleChange()
|
||||
this.showNumber = false
|
||||
this.$nextTick(() => {
|
||||
if (!this.$refs.deSelect.$refs.tags || !this.options.attrs.multiple) {
|
||||
@@ -101,7 +102,11 @@ export default {
|
||||
operator: this.operator
|
||||
}
|
||||
this.inDraw && this.$store.commit('addViewFilter', param)
|
||||
},
|
||||
styleChange() {
|
||||
this.$store.state.styleChangeTimes++
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user