mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
案例作业直播bug
This commit is contained in:
@@ -281,7 +281,7 @@ export default {
|
||||
.addTask({
|
||||
courseId: state.apiTaskList[i].casesId,
|
||||
name: state.apiTaskList[i].title,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId,
|
||||
stageId: Number(props.chooseStageId),
|
||||
type: 3,
|
||||
@@ -305,7 +305,7 @@ export default {
|
||||
duration: 0,
|
||||
flag: true,
|
||||
name: state.apiTaskList[i].caseName,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 3,
|
||||
|
||||
@@ -608,7 +608,7 @@ export default {
|
||||
editPlan(obj)
|
||||
.then((res) => {
|
||||
message.destroy();
|
||||
message.error(`添加成功`);
|
||||
message.sucsess(`添加成功`);
|
||||
updateTask(res);
|
||||
ctx.emit("changeData", false);
|
||||
closeDrawer();
|
||||
|
||||
@@ -364,7 +364,7 @@ export default {
|
||||
let editObj = {
|
||||
courseId: res.data.data.workId,
|
||||
name: res.data.data.workName,
|
||||
projectId: props.EditWorkId > 0 ? props.projectId : 0,
|
||||
projectId: props.projectId ,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0 ,
|
||||
type: 4,
|
||||
|
||||
@@ -386,7 +386,7 @@ export default {
|
||||
}
|
||||
|
||||
let obj = {
|
||||
voteId: props.edit?state.EditVoteId : 0,
|
||||
voteId: props.edit?props.EditVoteId : 0,
|
||||
voteName: state.inputV1,
|
||||
voteStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
|
||||
voteEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="main">
|
||||
<div class="main">s
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
|
||||
@@ -1366,33 +1366,42 @@ export default {
|
||||
let stage = localStorage.getItem("stageId")
|
||||
? localStorage.getItem("stageId")
|
||||
: null;
|
||||
|
||||
console.log("stage=====",stage);
|
||||
// console.log("stage",Object.prototype.toString.call(stage))
|
||||
getStageData(res.data.data.stageList);
|
||||
if (stage !== "null") {
|
||||
if (stage != null) {
|
||||
console.log(stage);
|
||||
let stageList = res.data.data.stageList; //阶段数组
|
||||
let result = stageList.find((item) => item.stageId == stage);
|
||||
console.log("又找到了", result);
|
||||
if(result!=null){
|
||||
getTableData(result.taskList);
|
||||
}else{
|
||||
//没有选中的阶段时,获取全部的任务
|
||||
console.log(stage);
|
||||
let stageList = res.data.data.stageList; //阶段数组
|
||||
if(stageList!=null){
|
||||
let taskListAll;
|
||||
stageList.forEach((item) => {
|
||||
taskListAll=[...item.taskList];
|
||||
});
|
||||
console.log("taskListAll",taskListAll);
|
||||
getTableData(taskListAll);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
//没有选中的阶段时,获取全部的任务
|
||||
} else{
|
||||
console.log(stage);
|
||||
let stageList = res.data.data.stageList; //阶段数组
|
||||
if(stageList!=null){
|
||||
let taskListAll =null;
|
||||
stageList.forEach((item) => {
|
||||
taskListAll =[taskListAll,...item.taskList];
|
||||
});
|
||||
console.log("taskListAll",taskListAll);
|
||||
getTableData(taskListAll);
|
||||
}
|
||||
|
||||
let stageList = res.data.data.stageList; //阶段数组
|
||||
if(stageList!=null){
|
||||
let taskListAll;
|
||||
stageList.forEach((item) => {
|
||||
taskListAll=[...item.taskList];
|
||||
});
|
||||
console.log("taskListAll",taskListAll);
|
||||
getTableData(taskListAll);
|
||||
}
|
||||
}
|
||||
|
||||
// 每次都获取了第一条taskList
|
||||
// let arr = res.data.data.stageList[0].taskList;
|
||||
// console.log("任务列表", stage, arr);
|
||||
@@ -1628,6 +1637,7 @@ export default {
|
||||
console.log("删除阶段成功", res);
|
||||
message.success("删除阶段成功");
|
||||
closeDeleteStage();
|
||||
localStorage.setItem("stageId", "")
|
||||
getTask();
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user