修改问题管理编辑

This commit is contained in:
gaosong
2023-11-28 18:41:26 +08:00
parent 5a49c09ff2
commit b7fc516638
@@ -442,10 +442,15 @@
}, },
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
edit(row) { edit(row) {
console.log(row)
// this.getNameList()
this.getFirstLevelDutyTerritory()
this.title = this.$t('view')
this.formInline = JSON.parse(JSON.stringify(row))
this.projectNameList = [] this.projectNameList = []
if (row.projectType == 'model') { if (row.projectType == 'model') {
this.getNameList() this.getNameList()
if (this.formInline.projectId != null) { if (this.formInline.projectId) {
this.formInline.projectId = this.formInline.projectId.split(',') this.formInline.projectId = this.formInline.projectId.split(',')
} else { } else {
this.formInline.projectId = undefined this.formInline.projectId = undefined
@@ -453,10 +458,6 @@
} else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') {
this.getPlatform(row.projectType) this.getPlatform(row.projectType)
} }
// this.getNameList()
this.getFirstLevelDutyTerritory()
this.title = this.$t('view')
this.formInline = row
if (this.formInline.dutyTerritory != null) { if (this.formInline.dutyTerritory != null) {
this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',')
} else { } else {
@@ -465,17 +466,13 @@
if (this.formInline.problemState == null) { if (this.formInline.problemState == null) {
this.formInline.problemState = undefined 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) => { getAction('/project/problemManagementEO/queryById', { id: this.formInline.id }).then((res) => {
if (res.success) { if (res.success) {
this.formInline.fileList = res.result.fileList this.formInline.fileList = res.result.fileList
this.formInline.approvalEvidenceFileList = res.result.approvalEvidenceFileList this.formInline.approvalEvidenceFileList = res.result.approvalEvidenceFileList
} }
}) })
this.formInline = {...this.formInline}
console.log(this.formInline) console.log(this.formInline)
this.visible = true this.visible = true
this.disabled = true this.disabled = true