mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
直播 评估回显
This commit is contained in:
@@ -71,7 +71,13 @@ export const queryEvaluationDetailById = (obj) =>
|
|||||||
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
export const queryEvaluationMessageById = (obj) =>
|
||||||
|
http.post("/evaluation/queryEvaluationMessageById", obj, {
|
||||||
|
headers: {
|
||||||
|
token: "123",
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
||||||
|
},
|
||||||
|
});
|
||||||
//修改测评信息
|
//修改测评信息
|
||||||
export const updateEvaluation = (obj) =>
|
export const updateEvaluation = (obj) =>
|
||||||
http.post("/evaluation/updateEvaluation", obj);
|
http.post("/evaluation/updateEvaluation", obj);
|
||||||
|
|||||||
@@ -237,14 +237,14 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
message.destroy()
|
message.destroy()
|
||||||
message.success("获取测评信息成功");
|
message.success("获取测评信息成功");
|
||||||
state.inputV1 = res.data.data.evaluationName
|
state.inputV1 = res.data.data.evaluationName;
|
||||||
state.evaluationTypeName = res.data.data.evaluationTypeName
|
state.evaluationTypeName = res.data.data.evaluationTypeName;
|
||||||
state.evaluationTypeId = res.data.data.evaluationTypeId;
|
state.evaluationTypeId = res.data.data.evaluationTypeId;
|
||||||
state.time = res.data.data.evaluationStartTime ? [
|
state.time = res.data.data.evaluationStartTime ? [
|
||||||
dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"),
|
dayjs(res.data.data.evaluationStartTime, "YYYY-MM-DD"),
|
||||||
dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD"),
|
dayjs(res.data.data.evaluationEndTime, "YYYY-MM-DD"),
|
||||||
] : undefined;
|
] : undefined;
|
||||||
state.description = res.data.data.evaluationExplain
|
state.description = res.data.data.evaluationExplain;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
message.destroy()
|
message.destroy()
|
||||||
|
|||||||
@@ -352,11 +352,9 @@
|
|||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<span style="margin-right: 3px">已选考试:</span>
|
<span style="margin-right: 3px">已选考试:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox" @click="showDrawerAddTest">
|
<div class="btnbox">
|
||||||
<a-tag closable color="processing" @close="logT">
|
<a-tag closable color="processing" @close="logT">
|
||||||
<span style="font-size: 14px; line-height: 33px">{{
|
<span style="font-size: 14px; line-height: 33px">{{testName}}</span>
|
||||||
testName
|
|
||||||
}}</span>
|
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -396,10 +394,15 @@ import { debounce } from "lodash-es";
|
|||||||
import { queryFaceDetailById, editPlan } from "../../api/indexFace";
|
import { queryFaceDetailById, editPlan } from "../../api/indexFace";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||||
|
|
||||||
// import { toDate } from "../../api/method";、
|
// import { toDate } from "../../api/method";、
|
||||||
import { addTempTask } from "../../api/indexTaskadd";
|
import { addTempTask } from "../../api/indexTaskadd";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
|
|
||||||
|
import { detail } from "../../api/indexCourse";
|
||||||
|
import { queryAppraiseDetailById } from "../../api/indexInvist";
|
||||||
|
import {queryWorkDetailById} from "@/api/indexWork";
|
||||||
|
import {queryExaminationDetailById} from "@/api/indexExam";
|
||||||
export default {
|
export default {
|
||||||
name: "AddFaceteach",
|
name: "AddFaceteach",
|
||||||
components: {
|
components: {
|
||||||
@@ -495,6 +498,7 @@ export default {
|
|||||||
EditTestId: null,
|
EditTestId: null,
|
||||||
EditWorkId: null,
|
EditWorkId: null,
|
||||||
workName: null,
|
workName: null,
|
||||||
|
testName: null,
|
||||||
assessmentVisible: false,
|
assessmentVisible: false,
|
||||||
needEval: false,
|
needEval: false,
|
||||||
onlySign: false,
|
onlySign: false,
|
||||||
@@ -588,7 +592,6 @@ export default {
|
|||||||
state.before = result.beforeStart;
|
state.before = result.beforeStart;
|
||||||
state.afterStartValue = result.afterStart;
|
state.afterStartValue = result.afterStart;
|
||||||
state.fileList = JSON.parse(result.attach);
|
state.fileList = JSON.parse(result.attach);
|
||||||
state.EditWorkId = result.homeWorkId;
|
|
||||||
state.onlySign =
|
state.onlySign =
|
||||||
result.completeType.split(",")[0] == "1" ? true : false;
|
result.completeType.split(",")[0] == "1" ? true : false;
|
||||||
state.completeLeave =
|
state.completeLeave =
|
||||||
@@ -602,7 +605,19 @@ export default {
|
|||||||
state.EditWorkId = result.homeWorkId;
|
state.EditWorkId = result.homeWorkId;
|
||||||
state.assessmentId = result.evaluateId;
|
state.assessmentId = result.evaluateId;
|
||||||
state.needEval = result.evaluateId;
|
state.needEval = result.evaluateId;
|
||||||
|
detail({offcourseId:result.offcourseId}).then((res)=>{
|
||||||
|
state.chooseCourseName =res.data.data.name;
|
||||||
|
|
||||||
|
});
|
||||||
|
queryAppraiseDetailById({assessmentId:result.evaluateId}).then((res)=>{
|
||||||
|
state.assessmentName =res.data.data.assessmentName;
|
||||||
|
});
|
||||||
|
queryWorkDetailById({workId:result.homeWorkId}).then((res)=>{
|
||||||
|
state.workName = res.data.data.workName;
|
||||||
|
});
|
||||||
|
queryExaminationDetailById({ examinationId: result.testId }).then((res)=>{
|
||||||
|
state.testName = res.data.data.examinationName;
|
||||||
|
});
|
||||||
console.log("state=======", state);
|
console.log("state=======", state);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ import { fileUp } from "../../api/indexEval";
|
|||||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||||
import { debounce } from "lodash-es";
|
import { debounce } from "lodash-es";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
|
import { queryAppraiseDetailById } from "../../api/indexInvist";
|
||||||
|
|
||||||
// import { useRouter } from "vue-router";
|
// import { useRouter } from "vue-router";
|
||||||
function getBase64(img, callback) {
|
function getBase64(img, callback) {
|
||||||
@@ -519,6 +520,9 @@ export default {
|
|||||||
value: res.data.data.liveTeacherId || "",
|
value: res.data.data.liveTeacherId || "",
|
||||||
label: res.data.data.liveTeacherName || "",
|
label: res.data.data.liveTeacherName || "",
|
||||||
};
|
};
|
||||||
|
queryAppraiseDetailById({assessmentId:res.data.data.assessmentId}).then((res)=>{
|
||||||
|
state.assessmentName =res.data.data.assessmentName;
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
//message.error(`查询失败`);
|
//message.error(`查询失败`);
|
||||||
|
|||||||
@@ -554,6 +554,7 @@ export default {
|
|||||||
console.log("formState.testName", state.testName);
|
console.log("formState.testName", state.testName);
|
||||||
localStorage.setItem("stageId", props.chooseStageId);
|
localStorage.setItem("stageId", props.chooseStageId);
|
||||||
localStorage.setItem("chapterId", props.isactive);
|
localStorage.setItem("chapterId", props.isactive);
|
||||||
|
state.addLoading = false;
|
||||||
resetForm();
|
resetForm();
|
||||||
};
|
};
|
||||||
const closeDrawer2 = () => {
|
const closeDrawer2 = () => {
|
||||||
@@ -561,6 +562,7 @@ export default {
|
|||||||
ctx.emit("update:edit", false);
|
ctx.emit("update:edit", false);
|
||||||
ctx.emit("update:addtestVisible", false);
|
ctx.emit("update:addtestVisible", false);
|
||||||
resetForm();
|
resetForm();
|
||||||
|
state.addLoading = false;
|
||||||
};
|
};
|
||||||
const afterVisibleChange = () => {
|
const afterVisibleChange = () => {
|
||||||
console.log("props", props);
|
console.log("props", props);
|
||||||
@@ -597,7 +599,6 @@ export default {
|
|||||||
state.paperName = res.data.data.examinationTestName;
|
state.paperName = res.data.data.examinationTestName;
|
||||||
// state.paperId=
|
// state.paperId=
|
||||||
state.paperId = res.data.data.examinationTestId;
|
state.paperId = res.data.data.examinationTestId;
|
||||||
state.paperName = res.data.data.examinationTestName;
|
|
||||||
if (
|
if (
|
||||||
res.data.data.examinationEndTime &&
|
res.data.data.examinationEndTime &&
|
||||||
res.data.data.examinationStartTime
|
res.data.data.examinationStartTime
|
||||||
@@ -617,6 +618,7 @@ export default {
|
|||||||
};
|
};
|
||||||
const updateTest = () => {
|
const updateTest = () => {
|
||||||
//state.addLoading = true;updateTask
|
//state.addLoading = true;updateTask
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
examinationDuration: formState.examinationDuration,
|
examinationDuration: formState.examinationDuration,
|
||||||
examinationEndTime: dayjs(formState.choosedTime[1]).format(
|
examinationEndTime: dayjs(formState.choosedTime[1]).format(
|
||||||
@@ -656,7 +658,7 @@ export default {
|
|||||||
message.destroy();
|
message.destroy();
|
||||||
return message.warning("请输入考试时长");
|
return message.warning("请输入考试时长");
|
||||||
}
|
}
|
||||||
|
state.addLoading = true;
|
||||||
if (props.edit) {
|
if (props.edit) {
|
||||||
// 编辑任务
|
// 编辑任务
|
||||||
updateExamination(obj)
|
updateExamination(obj)
|
||||||
@@ -685,6 +687,8 @@ export default {
|
|||||||
state.EditTestId = res.data.data.examinationId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
if (props.faceLevel) {
|
if (props.faceLevel) {
|
||||||
state.EditTestId = res.data.data.examinationId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
|
|
||||||
|
closeDrawer();
|
||||||
} else {
|
} else {
|
||||||
if (props.isLevel == 1) {
|
if (props.isLevel == 1) {
|
||||||
let editObj1 = {
|
let editObj1 = {
|
||||||
@@ -701,7 +705,7 @@ export default {
|
|||||||
console.log("props.edit", props.edit);
|
console.log("props.edit", props.edit);
|
||||||
message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
|
message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
state.addLoading = false;
|
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user