From 96df5a95e4f4122e67b17e22dc05cdf2870ed69b Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 1 Mar 2024 21:32:22 +0800 Subject: [PATCH] =?UTF-8?q?14384=20=E9=9B=86=E5=9B=A2=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E7=9C=8B=E4=B8=8D=E8=A7=81=20=E5=BA=94=E8=AF=A5=E7=9C=8B?= =?UTF-8?q?=E8=A7=81=E7=9A=84=E7=9B=B8=E5=85=B3=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../relevantunits/insert/components/corpInfoEdit.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/relevantunits/insert/components/corpInfoEdit.vue b/src/views/relevantunits/insert/components/corpInfoEdit.vue index 0ea8de0..3194f53 100644 --- a/src/views/relevantunits/insert/components/corpInfoEdit.vue +++ b/src/views/relevantunits/insert/components/corpInfoEdit.vue @@ -475,6 +475,11 @@ export default { } ).then((data) => { this.form = Object.assign(this.form, data.pd) + if (this.form.CORP_TYPE.indexOf('[') > -1) { + this.form.CORP_TYPE = JSON.parse(this.form.CORP_TYPE) + } else { + this.form.CORP_TYPE = [this.form.CORP_TYPE] + } var sz = this.form.SELECT_FORM var cdi = this.form.COMPETENT_DEPT_ID var mdi = this.form.MANAGER_DEPARTMENT_ID @@ -493,10 +498,10 @@ export default { if (data.pd.CITY != '') this.form.POSSESSION.push(data.pd.CITY) if (data.pd.COUNTY != '') this.form.POSSESSION.push(data.pd.COUNTY) if (data.pd.VILLAGE != '') this.form.POSSESSION.push(data.pd.VILLAGE) - this.form.CORP_TYPE = JSON.parse(this.form.CORP_TYPE) this.AUDIT_STATE = this.form.STATE resolve() }).catch((e) => { + console.log(e) this.$message({ message: '操作失败', type: 'error' @@ -551,7 +556,7 @@ export default { if (this.form.MANAGER_DEPARTMENT_ID) { this.form.MANAGER_DEPARTMENT_ID = this.form.MANAGER_DEPARTMENT_ID.join(',') } - this.form.CORP_TYPE = JSON.stringrelevantunitsify(this.form.CORP_TYPE) + this.form.CORP_TYPE = JSON.stringify(this.form.CORP_TYPE) requestFN( '/xgf/corp/editCorpInfo', this.form