|
@@ -31,6 +31,24 @@
|
|
<div class="box-justify">
|
|
<div class="box-justify">
|
|
<div></div>
|
|
<div></div>
|
|
<div>
|
|
<div>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('button', 'AutoRelateStudent')"
|
|
|
|
+ icon="el-icon-link"
|
|
|
|
+ type="primary"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="toLinkStudent"
|
|
|
|
+ >
|
|
|
|
+ 关联考生
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('button', 'ExportPaperList')"
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
+ type="primary"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="toExportPaperList"
|
|
|
|
+ >
|
|
|
|
+ 下载试卷清单
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="checkPrivilege('button', 'BatchDownload')"
|
|
v-if="checkPrivilege('button', 'BatchDownload')"
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
@@ -219,6 +237,8 @@ import {
|
|
taskPaperListPage,
|
|
taskPaperListPage,
|
|
ableTaskPaper,
|
|
ableTaskPaper,
|
|
downloadPaper,
|
|
downloadPaper,
|
|
|
|
+ downloadExamTaskPaperList,
|
|
|
|
+ taskPaperLinkStudent,
|
|
paperAndCardBatchExport,
|
|
paperAndCardBatchExport,
|
|
cancelTaskPaper,
|
|
cancelTaskPaper,
|
|
restartTaskPaper,
|
|
restartTaskPaper,
|
|
@@ -406,6 +426,33 @@ export default {
|
|
if (!res) return;
|
|
if (!res) return;
|
|
this.$message.success("下载成功!");
|
|
this.$message.success("下载成功!");
|
|
},
|
|
},
|
|
|
|
+ async toLinkStudent() {
|
|
|
|
+ if (this.loading) return;
|
|
|
|
+
|
|
|
|
+ this.loading = true;
|
|
|
|
+ const res = await taskPaperLinkStudent({
|
|
|
|
+ examId: this.filter.examId,
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+ this.loading = false;
|
|
|
|
+
|
|
|
|
+ if (!res) return;
|
|
|
|
+ this.$message.success("关联成功!");
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ async toExportPaperList() {
|
|
|
|
+ if (this.loading) return;
|
|
|
|
+
|
|
|
|
+ this.loading = true;
|
|
|
|
+ const res = await downloadByApi(() => {
|
|
|
|
+ return downloadExamTaskPaperList(this.filter);
|
|
|
|
+ }, "").catch((e) => {
|
|
|
|
+ this.$message.error(e || "下载失败,请重新尝试!");
|
|
|
|
+ });
|
|
|
|
+ this.loading = false;
|
|
|
|
+
|
|
|
|
+ if (!res) return;
|
|
|
|
+ this.$message.success("下载成功!");
|
|
|
|
+ },
|
|
async toBatchExport() {
|
|
async toBatchExport() {
|
|
// 异步导出
|
|
// 异步导出
|
|
if (this.loading) return;
|
|
if (this.loading) return;
|