From 915b25c362558fcf063ac9bf21f4869ca5625ed1 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 28 May 2024 09:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86id=E4=B8=BA0=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=B8=8D=E8=83=BD=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = "已完成");