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