From e96b078d8434ebf45cc59bfc532334e19039882b Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 18 Jan 2024 16:08:11 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E7=AB=8B=E9=A1=B9?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=B5=81=E7=A8=8B=E5=BC=BA=E5=88=B6=E6=92=A4?= =?UTF-8?q?=E5=9B=9E=E5=90=8E=E7=9A=84=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseStandardInitChange/PlanApprovalChangeFlow.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index df5cfcb5..48631a70 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -566,7 +566,8 @@ export default { prcObj.commitText = this.model.handleText prcObj.commitFile = this.model.handleFile this.approvalInfoForm.setFieldsValue(pick(prcObj, 'commitText', 'commitFile')) - this.model.dataList = JSON.parse(this.model.infoJsonStr).arr + console.log(JSON.parse(this.model.infoJsonStr)) + this.model.dataList = JSON.parse(this.model.infoJsonStr).arr || JSON.parse(this.model.infoJsonStr).dataList } // 初始化业务基本信息的申请类型和项目类别,分开赋值是因为项目类别会没有下拉数据无法回显 const baseInfoForm = {} @@ -598,7 +599,8 @@ export default { } // 如果是草稿节点1的保存回显人员信息 if (type === 'draft' && this.currentNode === 1) { - this.draftInitPersonInfo(JSON.parse(this.model.infoJsonStr).personnelObj) + const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO + this.draftInitPersonInfo(personnelObj) } // 初始化业务基本信息中组件内容 if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) {