From fc5238f1de99c9699f5f8d760a76ca2298751f53 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Sun, 5 Mar 2023 14:39:45 +0800 Subject: [PATCH] fix -- bug --- 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 379211a..8796c5a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -28,7 +28,7 @@ export default createStore({ if (state.projectInfo.unlockMode === 1) { state.projectInfo.stageProcessList.forEach((t) => { t.statusName = "进行中"; - t.taskProcessList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : TASK_TYPES.toName[s.type]); + t.taskProcessList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); t.taskProcessList?.every((s) => s.status === 1) && (t.statusName = "已完成"); }); return; @@ -57,7 +57,7 @@ export default createStore({ } state.routerInfo.statusName = "进行中"; if (state.routerInfo.unlockMode === 1) { - state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : TASK_TYPES.toName[s.type]); + state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); state.routerInfo.taskBoList?.every((s) => s.status === 1) && (state.routerInfo.statusName = "已完成"); return; }