From b44dda2d1c2147b9e7e42eb9375c46828dd05e11 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 10 Jul 2024 10:19:59 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=96=B0=E6=B3=95=E8=A7=84=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/BaseInfoForm.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/workCenter/newRegulationIntroductionProcess/modules/BaseInfoForm.vue b/src/views/workCenter/newRegulationIntroductionProcess/modules/BaseInfoForm.vue index 06d4a1f..2655ace 100644 --- a/src/views/workCenter/newRegulationIntroductionProcess/modules/BaseInfoForm.vue +++ b/src/views/workCenter/newRegulationIntroductionProcess/modules/BaseInfoForm.vue @@ -245,6 +245,9 @@ export default { // 拿到外面传进来的businessInfoDTO initData (data) { // 给表单赋值 + data.applicableMarket = data.applicableMarket.map(item => { + return { value: item } + }) this.formInline = Object.assign({}, data) this.isGetDataAfter = true }, @@ -252,6 +255,7 @@ export default { getData () { // 组合businessInfoDTO,抛出 const data = Object.assign({}, this.formInline) + data.applicableMarket = data.applicableMarket.map(item => item.value).join(',') return data }, // 外层获取数据要过校验,返回false表示没有通过校验 @@ -261,6 +265,7 @@ export default { await this.$refs.ruleForm.validate(valid => { if (valid) { data = Object.assign({}, this.formInline) + data.applicableMarket = data.applicableMarket.map(item => item.value).join(',') } else { data = false }