fix -- bug

This commit is contained in:
yuping
2023-02-23 15:58:06 +08:00
parent db6d5caf0b
commit 6071e4dc86

View File

@@ -30,11 +30,8 @@ export default createStore({
if (state.projectInfo.unlockMode === 1) {
state.projectInfo.stageProcessList.forEach((t) => {
t.statusName = '进行中'
const stageState = t.taskProcessList?.every((s) => {
s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type]
return s.status === 1
})
stageState && (t.statusName = '已完成')
t.taskProcessList?.forEach((s) => s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type])
t.taskProcessList?.every((s) => s.status === 1) && (t.statusName = '已完成')
})
return
}