mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
fix:删除12个抽屉的console
This commit is contained in:
@@ -188,13 +188,11 @@ export default {
|
||||
};
|
||||
const showEvalDrawer = () => {
|
||||
state.EvalListVisible = true;
|
||||
console.log("进来了吗");
|
||||
};
|
||||
const queryEval = () => {
|
||||
api
|
||||
.queryEvaluationDetailById({ evaluationId: props.evaluationId })
|
||||
.then((res) => {
|
||||
console.log("调用项目添加接口后", res.data.data);
|
||||
state.inputV1 = res.data.data.evaluationName;
|
||||
state.time = [
|
||||
dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"),
|
||||
@@ -202,10 +200,8 @@ export default {
|
||||
];
|
||||
state.evaluationTypeId = res.data.data.evaluationTypeId;
|
||||
state.evaluationTypeName = res.data.data.evaluationTypeName;
|
||||
//state.description =
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(() => {
|
||||
});
|
||||
};
|
||||
const updateTask = (res) => {
|
||||
@@ -219,11 +215,11 @@ export default {
|
||||
stageId: props.chooseStageId,
|
||||
type: 10,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("调用项目添加接口后", res.data);
|
||||
.then(( ) => {
|
||||
message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(( ) => {
|
||||
message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 2) {
|
||||
RouterEditTask({
|
||||
@@ -234,14 +230,14 @@ export default {
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
type: 10,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("调用项目添加接口后", res.data);
|
||||
.then(( ) => {
|
||||
message.success(`${props.EditTestId ? "编辑" : "新增"}阶段任务成功`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(( ) => {
|
||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("模板库任务");
|
||||
console.log("");
|
||||
}
|
||||
};
|
||||
//创建或编辑测评信息
|
||||
@@ -266,7 +262,6 @@ export default {
|
||||
evaluationStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
|
||||
evaluationTypeId: state.evaluationTypeId,
|
||||
evaluationTypeName: state.evaluationTypeName,
|
||||
//state.description
|
||||
};
|
||||
if (props.edit) {
|
||||
api
|
||||
@@ -277,20 +272,20 @@ export default {
|
||||
closeDrawer();
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(() => {
|
||||
message.error("创建失败");
|
||||
});
|
||||
} else {
|
||||
api
|
||||
.updateEvaluation(obj)
|
||||
.then((res) => {
|
||||
updateTask(res);
|
||||
message.success("创建成功");
|
||||
message.success("编辑成功");
|
||||
closeDrawer();
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
.catch(( ) => {
|
||||
message.error("编辑失败");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user