소스 검색

feat: 新需求

zhangjie 1 개월 전
부모
커밋
f145748709
2개의 변경된 파일34개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      src/modules/mark/api.js
  2. 30 1
      src/modules/mark/components/ScoreCheckDetail.vue

+ 4 - 0
src/modules/mark/api.js

@@ -231,6 +231,10 @@ export const scoreDetailHistoryExport = (datas) => {
 export const scoreDetailAiCheckList = (datas) => {
   return $postParam("/api/admin/mark/inspected/ai/mark/getTask/count", datas);
 };
+// AI评卷失败待复核数量
+export const scoreDetailAiAbnormalCheckList = (datas) => {
+  return $postParam("/api/admin/mark/inspected/ai/mark/abnormal/count", datas);
+};
 // score manage --------->
 export const scoreListPage = (datas) => {
   return $postParam("/api/admin/mark/archive/score/list", datas);

+ 30 - 1
src/modules/mark/components/ScoreCheckDetail.vue

@@ -212,7 +212,6 @@
         <div>
           <el-button
             v-if="checkPrivilege('button', 'ExportScoreHistory')"
-            class="mr-2"
             type="primary"
             :loading="loading"
             @click="toExportScoreHistory"
@@ -257,6 +256,14 @@
           >
             AI智能评卷待复核({{ aiCheckList.length }})
           </el-button>
+          <el-button
+            v-if="checkPrivilege('link', 'InspectedAiMark')"
+            class="ml-2"
+            type="primary"
+            @click="toAiAbnormalCheck"
+          >
+            AI评卷失败待复核数量({{ aiAbnormalCheckList.length }})
+          </el-button>
           <el-button
             v-if="checkPrivilege('button', 'ScoreExport')"
             class="ml-2"
@@ -442,6 +449,7 @@ import {
   scoreDetailListExport,
   scoreDetailHistoryExport,
   scoreDetailAiCheckList,
+  scoreDetailAiAbnormalCheckList,
 } from "../api";
 import SimpleImagePreview from "@/components/SimpleImagePreview";
 import markMinxin from "../markMinxin";
@@ -493,6 +501,7 @@ export default {
       multipleSelection: [],
       downloading: false,
       aiCheckList: [],
+      aiAbnormalCheckList: [],
       // img view
       curImage: {},
       curImageIndex: 0,
@@ -541,6 +550,7 @@ export default {
     },
     search() {
       this.getAiCheckList();
+      this.getAiAbnormalCheckList();
       this.toPage(1);
     },
     checkActionValid(row) {
@@ -596,6 +606,7 @@ export default {
       });
       this.aiCheckList = (res || []).map((item) => item.studentId);
     },
+
     toAiCheck() {
       if (!this.aiCheckList.length) {
         this.$message.error("当前无待复核数据");
@@ -607,6 +618,24 @@ export default {
         studentIds: this.aiCheckList,
       });
     },
+    async getAiAbnormalCheckList() {
+      const res = await scoreDetailAiAbnormalCheckList({
+        examId: this.instance.examId,
+        paperNumber: this.instance.paperNumber,
+      });
+      this.aiAbnormalCheckList = (res || []).map((item) => item.studentId);
+    },
+    toAiAbnormalCheck() {
+      if (!this.aiAbnormalCheckList.length) {
+        this.$message.error("当前无待复核数据");
+        return;
+      }
+      this.toMarkSubjectiveAnswer({
+        examId: this.instance.examId,
+        paperNumber: this.instance.paperNumber,
+        studentIds: this.aiAbnormalCheckList,
+      });
+    },
     toCheckQuestion(row, type) {
       if (type === "objective") {
         this.toMarkObjectiveAnswer([row.studentId]);