From dc36a06cb6d8355fe6d2b821555405702674019c Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 20 Dec 2021 14:06:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/filter/ResultFilterEditor.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/chart/components/filter/ResultFilterEditor.vue b/frontend/src/views/chart/components/filter/ResultFilterEditor.vue index e8193b6339..a66475671f 100644 --- a/frontend/src/views/chart/components/filter/ResultFilterEditor.vue +++ b/frontend/src/views/chart/components/filter/ResultFilterEditor.vue @@ -217,6 +217,7 @@ export default { mounted() { this.initOptions() this.init() + this.initEnumOptions() }, methods: { initOptions() { @@ -234,10 +235,14 @@ export default { this.logic = this.item.logic this.filterType = this.item.filterType this.enumCheckField = this.item.enumCheckField - // 查找枚举的 - multFieldValues([this.item.id]).then(res => { - this.fieldOptions = this.optionDatas(res.data) - }) + }, + initEnumOptions() { + // 查找枚举值 + if (this.item.deType === 0 || this.item.deType === 5) { + multFieldValues([this.item.id]).then(res => { + this.fieldOptions = this.optionDatas(res.data) + }) + } }, optionDatas(datas) { if (!datas) return null