|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="score-archive">
|
|
|
- <div class="part-box part-box-filter part-box-flex">
|
|
|
+ <div class="part-box part-box-filter">
|
|
|
<el-form ref="FilterForm" label-position="left" inline>
|
|
|
<template v-if="checkPrivilege('condition', 'condition')">
|
|
|
<el-form-item label="学期:">
|
|
@@ -40,34 +40,52 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <div class="part-box-action">
|
|
|
- <el-button
|
|
|
- v-if="checkPrivilege('button', 'sync')"
|
|
|
- type="success"
|
|
|
- icon="el-icon-refresh"
|
|
|
- :loading="syncLoading"
|
|
|
- :disabled="!filter.semesterId || !filter.examId"
|
|
|
- @click="toSync"
|
|
|
- >同步</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="checkPrivilege('button', 'BatchDownload')"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-download"
|
|
|
- :loading="loading"
|
|
|
- :disabled="!filter.semesterId || !filter.courseCode"
|
|
|
- @click="toDownloadAll"
|
|
|
- >一键下载</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="checkPrivilege('button', 'export')"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-download"
|
|
|
- :loading="exportLoading"
|
|
|
- :disabled="!filter.semesterId || !filter.courseCode"
|
|
|
- @click="toExport"
|
|
|
- >成绩导出</el-button
|
|
|
- >
|
|
|
+ <div class="box-justify">
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'sync')"
|
|
|
+ type="success"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ :loading="syncLoading"
|
|
|
+ :disabled="!filter.semesterId || !filter.examId"
|
|
|
+ @click="toSync"
|
|
|
+ >同步</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'BatchDownload')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ :loading="loading"
|
|
|
+ :disabled="!filter.semesterId || !filter.courseCode"
|
|
|
+ @click="toDownloadAll"
|
|
|
+ >一键下载</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'BatchDownload')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-s-order"
|
|
|
+ @click="toDataTask('SCORE_DOWNLOAD')"
|
|
|
+ >下载结果查询</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'export')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ :loading="exportLoading"
|
|
|
+ :disabled="!filter.semesterId || !filter.courseCode"
|
|
|
+ @click="toExport"
|
|
|
+ >成绩导出</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'export')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-s-order"
|
|
|
+ @click="toDataTask('SCORE_EXPORT')"
|
|
|
+ >导出结果查询</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -177,6 +195,15 @@
|
|
|
@on-next="toNextImage"
|
|
|
ref="SimpleImagePreview"
|
|
|
></simple-image-preview>
|
|
|
+ <!-- data-task-dialog -->
|
|
|
+ <data-task-dialog
|
|
|
+ v-if="
|
|
|
+ checkPrivilege('button', 'export') ||
|
|
|
+ checkPrivilege('button', 'BatchDownload')
|
|
|
+ "
|
|
|
+ ref="DataTaskDialog"
|
|
|
+ :task-type="taskType"
|
|
|
+ ></data-task-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -215,6 +242,7 @@ export default {
|
|
|
syncLoading: false,
|
|
|
exportLoading: false,
|
|
|
loading: false,
|
|
|
+ taskType: "",
|
|
|
// img view
|
|
|
curImageIndex: 0,
|
|
|
imageList: []
|
|
@@ -281,6 +309,10 @@ export default {
|
|
|
if (!res) return;
|
|
|
this.$message.success("下载成功!");
|
|
|
},
|
|
|
+ toDataTask(taskType) {
|
|
|
+ this.taskType = taskType;
|
|
|
+ this.$refs.DataTaskDialog.open();
|
|
|
+ },
|
|
|
// img view
|
|
|
toViewSheetPaper(row) {
|
|
|
const dataList = row.sheetUrls ? JSON.parse(row.sheetUrls) : [];
|