From b7fc51663837940557ce6f18c6d1ff3acbb2736a Mon Sep 17 00:00:00 2001 From: gaosong Date: Tue, 28 Nov 2023 18:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moudles/detilModel.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 995ce517f..24e1f5cfb 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -442,10 +442,15 @@ }, ...mapGetters(['userInfo']), edit(row) { + console.log(row) + // this.getNameList() + this.getFirstLevelDutyTerritory() + this.title = this.$t('view') + this.formInline = JSON.parse(JSON.stringify(row)) this.projectNameList = [] if (row.projectType == 'model') { this.getNameList() - if (this.formInline.projectId != null) { + if (this.formInline.projectId) { this.formInline.projectId = this.formInline.projectId.split(',') } else { this.formInline.projectId = undefined @@ -453,10 +458,6 @@ } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { this.getPlatform(row.projectType) } - // this.getNameList() - this.getFirstLevelDutyTerritory() - this.title = this.$t('view') - this.formInline = row if (this.formInline.dutyTerritory != null) { this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') } else { @@ -465,17 +466,13 @@ if (this.formInline.problemState == null) { this.formInline.problemState = undefined } - if (this.formInline.projectId != null) { - this.formInline.projectId = this.formInline.projectId.split(',') - } else { - this.formInline.projectId = undefined - } getAction('/project/problemManagementEO/queryById', { id: this.formInline.id }).then((res) => { if (res.success) { this.formInline.fileList = res.result.fileList this.formInline.approvalEvidenceFileList = res.result.approvalEvidenceFileList } }) + this.formInline = {...this.formInline} console.log(this.formInline) this.visible = true this.disabled = true