|
@@ -1,13 +1,15 @@
|
|
<template>
|
|
<template>
|
|
<div class="info-print-task">
|
|
<div class="info-print-task">
|
|
- <p v-if="IS_MODEL2" class="tips-info mb-2">
|
|
|
|
- 考试需要命题老师提交具体印刷份数
|
|
|
|
- </p>
|
|
|
|
- <p v-else class="tips-info mb-2">
|
|
|
|
- 考试需要命题老师提交完整的考务数据,每个卷袋表示一个考场,人数字段为应考人数,备份数量为该考场试卷题卡备用数量
|
|
|
|
- </p>
|
|
|
|
|
|
+ <template v-if="!IS_REBUILD">
|
|
|
|
+ <p v-if="IS_MODEL2" class="tips-info mb-2">
|
|
|
|
+ 考试需要命题老师提交具体印刷份数
|
|
|
|
+ </p>
|
|
|
|
+ <p v-else class="tips-info mb-2">
|
|
|
|
+ 考试需要命题老师提交完整的考务数据,每个卷袋表示一个考场,人数字段为应考人数,备份数量为该考场试卷题卡备用数量
|
|
|
|
+ </p>
|
|
|
|
+ </template>
|
|
<el-form ref="modalFormComp" label-position="top">
|
|
<el-form ref="modalFormComp" label-position="top">
|
|
- <el-form-item label="考试时间:" required>
|
|
|
|
|
|
+ <el-form-item v-if="!IS_REBUILD" label="考试时间:" required>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="createDate"
|
|
v-model="createDate"
|
|
type="date"
|
|
type="date"
|
|
@@ -37,7 +39,7 @@
|
|
style="margin-bottom: 0"
|
|
style="margin-bottom: 0"
|
|
></el-form-item>
|
|
></el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div v-if="IS_MODEL2" class="part-box">
|
|
|
|
|
|
+ <div v-if="IS_MODEL2 || IS_REBUILD" class="part-box">
|
|
<div class="box-justify mb-1">
|
|
<div class="box-justify mb-1">
|
|
<div></div>
|
|
<div></div>
|
|
<el-button type="primary" @click="toSelectClass">选择班级</el-button>
|
|
<el-button type="primary" @click="toSelectClass">选择班级</el-button>
|
|
@@ -49,6 +51,7 @@
|
|
<col width="120" />
|
|
<col width="120" />
|
|
<col width="200" />
|
|
<col width="200" />
|
|
<col width="300" />
|
|
<col width="300" />
|
|
|
|
+ <col width="100" />
|
|
</colgroup>
|
|
</colgroup>
|
|
<tr>
|
|
<tr>
|
|
<th>卷袋序号</th>
|
|
<th>卷袋序号</th>
|
|
@@ -56,6 +59,7 @@
|
|
<th>备份数量</th>
|
|
<th>备份数量</th>
|
|
<th>印刷室</th>
|
|
<th>印刷室</th>
|
|
<th>班级</th>
|
|
<th>班级</th>
|
|
|
|
+ <th>操作</th>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>1</td>
|
|
@@ -68,6 +72,7 @@
|
|
:step="1"
|
|
:step="1"
|
|
step-strictly
|
|
step-strictly
|
|
:controls="false"
|
|
:controls="false"
|
|
|
|
+ :disabled="IS_REBUILD"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
@@ -99,6 +104,14 @@
|
|
<td>
|
|
<td>
|
|
{{ model2ClassList.map((item) => item.clazzName).join(",") }}
|
|
{{ model2ClassList.map((item) => item.clazzName).join(",") }}
|
|
</td>
|
|
</td>
|
|
|
|
+ <td>
|
|
|
|
+ <el-button
|
|
|
|
+ class="btn-primary"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toViewModel2Student"
|
|
|
|
+ >查看考生</el-button
|
|
|
|
+ >
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -250,13 +263,13 @@
|
|
teachingRoomId: infoExamTask.teachingRoomId,
|
|
teachingRoomId: infoExamTask.teachingRoomId,
|
|
}"
|
|
}"
|
|
:show-student="showStudent"
|
|
:show-student="showStudent"
|
|
- :selected-ids="IS_MODEL2 ? model2ClassIds : null"
|
|
|
|
|
|
+ :selected-ids="IS_MODEL2 || IS_REBUILD ? model2ClassIds : null"
|
|
@modified="examStudentModified"
|
|
@modified="examStudentModified"
|
|
></modify-exam-task-student>
|
|
></modify-exam-task-student>
|
|
<!-- PreviewTaskStudent -->
|
|
<!-- PreviewTaskStudent -->
|
|
<preview-task-student
|
|
<preview-task-student
|
|
ref="PreviewTaskStudent"
|
|
ref="PreviewTaskStudent"
|
|
- :student-list="curRow.examTaskStudentObjectParamList"
|
|
|
|
|
|
+ :student-list="examStudentList"
|
|
:show-student="showStudent"
|
|
:show-student="showStudent"
|
|
@close="previewStudentClosed"
|
|
@close="previewStudentClosed"
|
|
></preview-task-student>
|
|
></preview-task-student>
|
|
@@ -297,6 +310,7 @@ export default {
|
|
tableData: [],
|
|
tableData: [],
|
|
model2ClassList: [],
|
|
model2ClassList: [],
|
|
model2ClassIds: [],
|
|
model2ClassIds: [],
|
|
|
|
+ model2Students: [],
|
|
curRow: {},
|
|
curRow: {},
|
|
printHouses: [],
|
|
printHouses: [],
|
|
extendFields: [],
|
|
extendFields: [],
|
|
@@ -331,6 +345,9 @@ export default {
|
|
IS_MODEL2() {
|
|
IS_MODEL2() {
|
|
return this.infoExamTask.examModel === "MODEL2";
|
|
return this.infoExamTask.examModel === "MODEL2";
|
|
},
|
|
},
|
|
|
|
+ IS_REBUILD() {
|
|
|
|
+ return this.infoExamTask.category === "REBUILD";
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
"infoExamTask.examId": function (val, oldval) {
|
|
"infoExamTask.examId": function (val, oldval) {
|
|
@@ -364,10 +381,11 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
- if (this.IS_MODEL2) {
|
|
|
|
|
|
+ if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
this.modalForm.backupCount = this.infoExamPrintPlan.backupCount;
|
|
this.modalForm.backupCount = this.infoExamPrintPlan.backupCount;
|
|
this.model2ClassList = [];
|
|
this.model2ClassList = [];
|
|
this.model2ClassIds = [];
|
|
this.model2ClassIds = [];
|
|
|
|
+ this.model2Students = [];
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -410,9 +428,9 @@ export default {
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
checkData() {
|
|
checkData() {
|
|
- if (!this.checkTime()) return Promise.reject();
|
|
|
|
|
|
+ if (!this.IS_REBUILD && !this.checkTime()) return Promise.reject();
|
|
|
|
|
|
- if (this.IS_MODEL2) {
|
|
|
|
|
|
+ if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
if (!this.modalForm.totalSubjects) {
|
|
if (!this.modalForm.totalSubjects) {
|
|
this.$message.error("请输入印刷份数!");
|
|
this.$message.error("请输入印刷份数!");
|
|
return Promise.reject();
|
|
return Promise.reject();
|
|
@@ -581,7 +599,7 @@ export default {
|
|
return data;
|
|
return data;
|
|
},
|
|
},
|
|
examStudentModified({ selectedStudents, isSelectStudent }) {
|
|
examStudentModified({ selectedStudents, isSelectStudent }) {
|
|
- if (this.IS_MODEL2) {
|
|
|
|
|
|
+ if (this.IS_MODEL2 || this.IS_REBUILD) {
|
|
this.model2ClassList = selectedStudents.map((item) => {
|
|
this.model2ClassList = selectedStudents.map((item) => {
|
|
return {
|
|
return {
|
|
clazzId: item.clazzId,
|
|
clazzId: item.clazzId,
|
|
@@ -590,6 +608,12 @@ export default {
|
|
});
|
|
});
|
|
this.model2ClassIds = this.model2ClassList.map((item) => item.clazzId);
|
|
this.model2ClassIds = this.model2ClassList.map((item) => item.clazzId);
|
|
this.modalForm.classId = this.model2ClassIds.join();
|
|
this.modalForm.classId = this.model2ClassIds.join();
|
|
|
|
+ this.model2Students = selectedStudents
|
|
|
|
+ .map((item) => item.children)
|
|
|
|
+ .flat();
|
|
|
|
+ if (this.IS_REBUILD) {
|
|
|
|
+ this.modalForm.totalSubjects = this.model2Students.length;
|
|
|
|
+ }
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.studentUploaded) {
|
|
if (this.studentUploaded) {
|
|
@@ -620,7 +644,11 @@ export default {
|
|
},
|
|
},
|
|
toViewStudent(row) {
|
|
toViewStudent(row) {
|
|
// console.log(row);
|
|
// console.log(row);
|
|
- this.curRow = row;
|
|
|
|
|
|
+ this.examStudentList = row.examTaskStudentObjectParamList;
|
|
|
|
+ this.$refs.PreviewTaskStudent.open();
|
|
|
|
+ },
|
|
|
|
+ toViewModel2Student() {
|
|
|
|
+ this.examStudentList = this.model2Students;
|
|
this.$refs.PreviewTaskStudent.open();
|
|
this.$refs.PreviewTaskStudent.open();
|
|
},
|
|
},
|
|
previewStudentClosed() {
|
|
previewStudentClosed() {
|