From 66fb5de82f0a423b874d6aad93c15f8f184712e2 Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Fri, 15 Jul 2022 17:31:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=2056519=20?= =?UTF-8?q?=E4=BC=81=E6=A0=87=E8=AE=A1=E5=88=92-=E7=BC=96=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E5=BC=95=E7=94=A8=E6=A0=87=E5=87=86=E6=98=BE=E7=A4=BA?= =?UTF-8?q?null=20=E5=88=A0=E9=99=A4=E5=90=8E=E6=8F=90=E4=BA=A4=20?= =?UTF-8?q?=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB=E8=BF=98=E6=98=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BAnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseStandardPlan/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index 6440abd35..c07a26c1b 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -832,7 +832,21 @@ } }, props: {}, - watch: {}, + watch: { + 'addForm.esMatingRelations': { + handler: function(val) { + if(val && val !== ''){ + if(val.indexOf(",") !== -1){ + const list = val.split(",") + const filterList = list.filter(s => s !== 'null'); + this.addForm.esMatingRelations = filterList.join(","); + }else if(val === 'null'){ + this.addForm.esMatingRelations = ""; + } + } + } + }, + }, methods: { workChange (data) { this.workGroupList = data