From 473055f5f3f30a6f07963b827199e9a7921bd4bf Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sun, 30 Jan 2022 10:01:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=BD=93=E5=89=8D=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6=E6=9C=89=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=95=88=E8=A7=A6=E5=8F=91=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/DeNumberRange.vue | 4 ---- frontend/src/components/widget/DeWidget/DeSelect.vue | 4 ---- frontend/src/components/widget/DeWidget/DeSelectGrid.vue | 5 ----- 4 files changed, 17 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 715ff92c81..d7d8686baa 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -158,7 +158,6 @@ export default { this.element.options.manualModify = true } this.setCondition() - this.styleChange() }, formatFilterValue() { if (this.values === null) return [] @@ -184,9 +183,6 @@ export default { return timeSection(parseFloat(value), this.element.options.attrs.type) } }, - styleChange() { - this.$store.commit('recordStyleChange') - }, fillValueDerfault() { const defaultV = this.element.options.value === null ? '' : this.element.options.value.toString() if (this.element.options.attrs.type === 'daterange') { diff --git a/frontend/src/components/widget/DeWidget/DeNumberRange.vue b/frontend/src/components/widget/DeWidget/DeNumberRange.vue index 8def85aeaf..c98a430b30 100644 --- a/frontend/src/components/widget/DeWidget/DeNumberRange.vue +++ b/frontend/src/components/widget/DeWidget/DeNumberRange.vue @@ -185,7 +185,6 @@ export default { } this.setCondition() - this.$store.commit('recordStyleChange') }) }) }, @@ -219,9 +218,6 @@ export default { return } }, - styleChange() { - this.$store.commit('recordStyleChange') - }, inputChange(val) { if (!this.inDraw) { diff --git a/frontend/src/components/widget/DeWidget/DeSelect.vue b/frontend/src/components/widget/DeWidget/DeSelect.vue index 731c4fdb02..ef50d62164 100644 --- a/frontend/src/components/widget/DeWidget/DeSelect.vue +++ b/frontend/src/components/widget/DeWidget/DeSelect.vue @@ -168,7 +168,6 @@ export default { this.element.options.manualModify = true } this.setCondition() - this.styleChange() this.showNumber = false this.$nextTick(() => { @@ -207,9 +206,6 @@ export default { return defaultV.split(',')[0] } }, - styleChange() { - this.$store.commit('recordStyleChange') - }, optionDatas(datas) { if (!datas) return null return datas.filter(item => !!item).map(item => { diff --git a/frontend/src/components/widget/DeWidget/DeSelectGrid.vue b/frontend/src/components/widget/DeWidget/DeSelectGrid.vue index 2fa8a45e49..84c284d693 100644 --- a/frontend/src/components/widget/DeWidget/DeSelectGrid.vue +++ b/frontend/src/components/widget/DeWidget/DeSelectGrid.vue @@ -196,7 +196,6 @@ export default { this.element.options.manualModify = true } this.setCondition() - this.styleChange() }, setCondition() { @@ -222,10 +221,6 @@ export default { return defaultV.split(',')[0] } }, - - styleChange() { - this.$store.commit('recordStyleChange') - }, optionDatas(datas) { if (!datas) return null return datas.filter(item => !!item).map(item => {