fix:补齐合并丢失代码

This commit is contained in:
Ggysh-7
2022-11-25 22:37:54 +08:00
parent 80f8f3bc6a
commit e0e134004c
3 changed files with 16 additions and 20 deletions

View File

@@ -173,8 +173,10 @@ export default {
// addLoading:false,
});
const checkFinish = (value)=> {
console.log('父亲');
state.evaluationTypeId = value.quiz_kid ? value.quiz_kid : null
state.evaluationTypeName = value.title ? value.title : ""
console.log(value,state.evaluationTypeName ,'state.evaluationTypeName state.evaluationTypeName ');
}
const closeDrawer = () => {
ctx.emit("update:addevalVisible", false);
@@ -182,9 +184,9 @@ export default {
state.inputV1 = "";
state.time = undefined;
state.description = "";
(state.evaluationTypeId = 0),
(state.evaluationTypeName = ""),
localStorage.setItem("stageId", props.chooseStageId);
state.evaluationTypeId = 0,
state.evaluationTypeName = "",
localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive);
};
const afterVisibleChange = (bool) => {
@@ -232,9 +234,11 @@ export default {
type: 10,
})
.then(() => {
message.destroy()
message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`);
})
.catch(() => {
message.destroy()
message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
});
} else if (props.isLevel == 3) {
@@ -347,12 +351,10 @@ export default {
.createEvaluation(obj)
.then((res) => {
updateTask(res.data.data);
message.success("创建成功");
closeDrawer();
ctx.emit("changeData", false);
})
.catch(() => {
message.error("创建失败");
});
};