|
@@ -57,6 +57,14 @@
|
|
|
>
|
|
|
结束评卷
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'ExportAI')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ @click="toExportAIStats"
|
|
|
+ >
|
|
|
+ AI智能评卷统计
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -193,6 +201,7 @@ import {
|
|
|
markManageListPage,
|
|
|
markManageItemFinish,
|
|
|
markManageListExport,
|
|
|
+ markManageAiStatsExport,
|
|
|
} from "../api";
|
|
|
import { downloadByApi } from "@/plugins/download";
|
|
|
import MarkDetail from "../components/markDetail/MarkDetail.vue";
|
|
@@ -270,6 +279,22 @@ export default {
|
|
|
if (!res) return;
|
|
|
this.$message.success("下载成功!");
|
|
|
},
|
|
|
+ async toExportAIStats() {
|
|
|
+ if (this.downloading) return;
|
|
|
+ this.downloading = true;
|
|
|
+
|
|
|
+ const res = await downloadByApi(() => {
|
|
|
+ return markManageAiStatsExport({
|
|
|
+ ...this.filter,
|
|
|
+ });
|
|
|
+ }).catch((e) => {
|
|
|
+ this.$message.error(e || "下载失败,请重新尝试!");
|
|
|
+ });
|
|
|
+ this.downloading = false;
|
|
|
+
|
|
|
+ if (!res) return;
|
|
|
+ this.$message.success("下载成功!");
|
|
|
+ },
|
|
|
toDetail(row) {
|
|
|
this.curRow = row;
|
|
|
this.$refs.MarkDetail.open();
|