diff --git a/src/store/index.js b/src/store/index.js index 7a43d3c..db9c688 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -48,7 +48,7 @@ export default createStore({ }); return; } - state.projectInfo.stageProcessList.filter(i => i.id != 0).forEach((item,i)=>{ + state.projectInfo.stageProcessList.forEach((item,i)=>{ if(item.studyModel == 1){ state.projectInfo.stageProcessList?.some((t) => { t.statusName = "已完成"; @@ -68,7 +68,7 @@ export default createStore({ item.taskProcessList?.every((s) => s.status === 1) && (item.statusName = "已完成"); } if(i > 0){ - if(state.projectInfo.stageProcessList.filter(i => i.id != 0)[i-1].statusName == "已完成"){ + if(state.projectInfo.stageProcessList[i-1].statusName == "已完成"){ item.statusName = "进行中"; item.taskProcessList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); item.taskProcessList?.every((s) => s.status === 1) && (item.statusName = "已完成");