From b18a4751053218aeb3663f8f60d2b1f0c246a868 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 4 Mar 2024 10:27:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E4=BC=9A=E6=B8=85=E7=A9=BA=E8=BF=87=E6=BB=A4=E5=99=A8?= =?UTF-8?q?=E4=B8=AD=E5=86=85=E5=AE=B9=20close=20#8076?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/widget/deWidget/DeDate.vue | 2 +- core/frontend/src/components/widget/deWidget/DeInputSearch.vue | 2 +- core/frontend/src/components/widget/deWidget/DeNumberRange.vue | 2 +- core/frontend/src/components/widget/deWidget/DeSelect.vue | 2 +- core/frontend/src/components/widget/deWidget/DeSelectGrid.vue | 2 +- core/frontend/src/components/widget/deWidget/DeSelectTree.vue | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/frontend/src/components/widget/deWidget/DeDate.vue b/core/frontend/src/components/widget/deWidget/DeDate.vue index 13f675a979..65fed44752 100644 --- a/core/frontend/src/components/widget/deWidget/DeDate.vue +++ b/core/frontend/src/components/widget/deWidget/DeDate.vue @@ -371,7 +371,7 @@ export default { if (this.refreshHandler()) { return } - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.values = this.fillValueDerfault() this.dateChange(this.values) diff --git a/core/frontend/src/components/widget/deWidget/DeInputSearch.vue b/core/frontend/src/components/widget/deWidget/DeInputSearch.vue index 238627c2a6..684cb44905 100644 --- a/core/frontend/src/components/widget/deWidget/DeInputSearch.vue +++ b/core/frontend/src/components/widget/deWidget/DeInputSearch.vue @@ -86,7 +86,7 @@ export default { } }, created() { - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.search() diff --git a/core/frontend/src/components/widget/deWidget/DeNumberRange.vue b/core/frontend/src/components/widget/deWidget/DeNumberRange.vue index cbf698da51..bee6b686e1 100644 --- a/core/frontend/src/components/widget/deWidget/DeNumberRange.vue +++ b/core/frontend/src/components/widget/deWidget/DeNumberRange.vue @@ -144,7 +144,7 @@ export default { } }, created() { - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if ((this.element.options.value && this.element.options.value.length > 0) || existLastValidFilters) { const values = this.fillValueDerfault() this.form.min = values[0] diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index 21cce4bbbb..b54138b8fd 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -387,7 +387,7 @@ export default { }, initLoad() { this.initOptions(this.fillFirstSelected) - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if ((this.element.options.value || existLastValidFilters) && !this.selectFirst) { this.value = this.fillValueDerfault() this.changeValue(this.value) diff --git a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue index b9569d2dc1..a69f0a352c 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectGrid.vue @@ -342,7 +342,7 @@ export default { initLoad() { this.value = this.element.options.attrs.multiple ? [] : null this.initOptions() - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.changeValue(this.value) diff --git a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue index de37cb107d..32a81065ee 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelectTree.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelectTree.vue @@ -275,7 +275,7 @@ export default { this.value = this.fillValueDerfault() this.data = [] this.initOptions() - const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id]?.length + const existLastValidFilters = this.$store.state.lastValidFilters && this.$store.state.lastValidFilters[this.element.id] if (this.element.options.value || existLastValidFilters) { this.value = this.fillValueDerfault() this.changeValue(this.value)