feat:增加考试查看答卷

This commit is contained in:
wyx
2023-02-17 21:25:08 +08:00
parent 2d3a95f1bd
commit a90c667b2d
5 changed files with 5 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
<iframe
id="iframe"
style="width: 100%; height: 100%;"
:src="iframeUrl + '/exam/viewanswer?id=' + datasource.targetId "
:src="iframeUrl + '/exam/viewanswer?id=' + datasource.answerId "
frameborder="0"
name="myframe"
security="restricted"

View File

@@ -383,12 +383,11 @@ export default {
currentStageId: props.datasource.stageId,
type: 1,
pid: props.datasource.projectId,
taskId: props.datasource.projectTaskId,
taskId: props.datasource.id,
taskType: props.datasource.type,
status: state.projectName,
studentName: state.name,
}).then(res=>{
console.log(res)
state.tabledata = res.data.data.records;
state.tableDataTotal = res.data.data.total;
state.loadingData = false;

View File

@@ -401,7 +401,7 @@ export default {
currentStageId: props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId,
taskId: props.datasource.routerTaskId,
taskId: props.datasource.id,
taskType: props.datasource.type,
status: state.projectName,
studentName: state.name,

View File

@@ -1920,7 +1920,7 @@ export default {
// 考试点击管理弹框
const examinationModel = (data, levelname, outchapterid) => {
console.log(data);
if (data.startTime == null && data.endTime == null) {
if (data.examType==2) {
// 外部考试
state.examinationExaminaModelVisible = true;
state.outchapter = outchapterid;

View File

@@ -3190,7 +3190,7 @@ export default {
};
//考试管理的抽屉
const showTest = (name, id, data) => {
if (data.startTime == null && data.endTime == null) {
if (data.examType==2) {
// 外部考试抽屉显示
state.TMvisibleExternal = true;
state.examData = data;