修改问题管理编辑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user