mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
fix:补齐合并丢失代码
This commit is contained in:
@@ -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("创建失败");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user