fix 79987

This commit is contained in:
赵霄
2023-12-27 11:07:48 +08:00
parent 9a2b0a4d17
commit d9fe80a0a0
3 changed files with 10 additions and 1 deletions
@@ -868,7 +868,8 @@ export default {
// 步骤条回显 // 步骤条回显
this.currentStep = draftResult.currentStep this.currentStep = draftResult.currentStep
// 项目信息 // 项目信息
this.projectDataSource = draftResult.projectList this.projectDataSource = draftResult.projectList || []
this.projectId = this.projectDataSource[0].id
// 标准信息 // 标准信息
this.standardDataSource = draftResult.standardList this.standardDataSource = draftResult.standardList
// 业务分派信息 // 业务分派信息
@@ -930,6 +931,10 @@ export default {
this.$message.warning(this.$t('addAtLeastOneRowOfData')) this.$message.warning(this.$t('addAtLeastOneRowOfData'))
flag = false flag = false
} else { } else {
console.log(this.projectId, this.projectDataSource[0].id)
if (this.projectId !== this.projectDataSource[0].id) {
this.standardDataSource = []
}
this.projectId = this.projectDataSource[0].id this.projectId = this.projectDataSource[0].id
} }
} }
@@ -75,6 +75,8 @@ export default {
handler() { handler() {
if (this.echoDataSource && this.echoDataSource.length > 0) { if (this.echoDataSource && this.echoDataSource.length > 0) {
this.dataSource = JSON.parse(JSON.stringify(this.echoDataSource)) this.dataSource = JSON.parse(JSON.stringify(this.echoDataSource))
} else {
this.dataSource = []
} }
}, },
immediate: true, immediate: true,
@@ -135,6 +135,8 @@ export default {
item.tableRowKey = index item.tableRowKey = index
return item return item
}) })
} else {
this.dataSource = []
} }
}, },
immediate: true, immediate: true,