测评增加type字段

This commit is contained in:
zhangyc
2022-12-15 11:55:27 +08:00
parent 12c3a1ce72
commit 00c122042c
2 changed files with 11 additions and 2 deletions

View File

@@ -144,12 +144,14 @@ export default {
evaluationTypeId: null,
evaluationTypeName: '',
description: "",
EvalListVisible: false
EvalListVisible: false,
type:"",
// addLoading:false,
});
const checkFinish = (value) => {
state.evaluationTypeId = value.quiz_kid ? value.quiz_kid : null
state.evaluationTypeName = value.title ? value.title : ""
state.type = value.quiz_type ? value.quiz_type : ""
}
const closeDrawer = () => {
ctx.emit("update:addevalVisible", false);
@@ -159,6 +161,7 @@ export default {
state.description = "";
state.evaluationTypeId = 0,
state.evaluationTypeName = "",
state.type="",
localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive);
};
@@ -252,6 +255,7 @@ export default {
dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD HH:mm:ss"),
] : undefined;
state.description = res.data.data.evaluationExplain;
state.type = res.data.data.type;
})
.catch((err) => {
//message.destroy()
@@ -295,6 +299,7 @@ export default {
evaluationPictureAddress: "",
evaluationTag: "",
updateTime: "",
type:state.type,
};
api
.updateEvaluation(objei)
@@ -334,6 +339,7 @@ export default {
evaluationPictureAddress: "",
evaluationTag: "",
updateTime: "",
type:state.type,
};
api
.createEvaluation(obj)