From fc56d34ecb62d87ff7a85a9b4733a1c8d5c5b903 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 28 Jul 2021 11:30:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E6=9C=9F=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=80=BC=E6=94=B9=E5=8F=98=E6=97=B6=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeDate.vue | 4 ++++ frontend/src/components/widget/DeWidget/DeSelect.vue | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index fb0803de03..798c9c2098 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -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++ } } } diff --git a/frontend/src/components/widget/DeWidget/DeSelect.vue b/frontend/src/components/widget/DeWidget/DeSelect.vue index d24b67186e..c12896d0d2 100644 --- a/frontend/src/components/widget/DeWidget/DeSelect.vue +++ b/frontend/src/components/widget/DeWidget/DeSelect.vue @@ -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++ } + } }