修改问题管理编辑

This commit is contained in:
gaosong
2023-12-26 18:41:19 +08:00
parent 651c100f23
commit 8ac3595c47
2 changed files with 7 additions and 6 deletions
@@ -620,9 +620,6 @@
]
},
formInline: {
fileLinkList: [{}],
progressTrackingList: [],
approvalEvidenceLinkList: [{}],
dutyTerritory: undefined,
projectId: undefined,
problemState: undefined
@@ -799,19 +796,21 @@
if (this.formInline.problemState == null) {
this.formInline.problemState = undefined
}
if (this.formInline.progressTrackingList == null) {
if (!this.formInline.progressTrackingList) {
this.formInline.progressTrackingList = []
} else {
this.formInline.progressTrackingList.forEach(val => {
val.isDescription = true
})
}
if (this.formInline.approvalEvidenceLinkList == null) {
if (!this.formInline.approvalEvidenceLinkList || (this.formInline.approvalEvidenceLinkList && this.formInline.approvalEvidenceLinkList.length == 0)) {
this.formInline.approvalEvidenceLinkList = [{}]
}
if (this.formInline.fileLinkList == null) {
if (!this.formInline.fileLinkList || (this.formInline.fileLinkList && this.formInline.fileLinkList.length == 0)) {
this.formInline.fileLinkList = [{}]
}
this.formInline = {...this.formInline}
console.log(this.formInline)
this.visible = true
this.disabled = false
this.templateDisabled = true