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 }