项目课程显示

This commit is contained in:
zhangsir
2024-05-27 17:53:00 +08:00
parent 0d6fbf60ca
commit 29eb0a76fc

View File

@@ -49,7 +49,6 @@ export default createStore({
return;
}
state.projectInfo.stageProcessList.filter(i => i.id != 0).forEach((item,i)=>{
console.log(item,i,'item')
if(item.studyModel == 0){
if(i == 0){
item.statusName = "进行中";
@@ -71,7 +70,7 @@ export default createStore({
const stageState = t.taskProcessList?.some((s) => {
s.unlock = true;
s.statusName = "已完成";
s.status !== 1 && (s.statusName = TASK_TYPES.toName[s.type])
s.status !== 1 && (s.statusName = s.status==2? '进行中' : TASK_TYPES.toName[s.type])
return state.projectInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag)
});
stageState && (t.statusName = "进行中");