zhangjie 3 miesięcy temu
rodzic
commit
f4dd774929

+ 6 - 33
src/modules/mark/components/markDetail/MarkDetailArbitration.vue

@@ -33,8 +33,7 @@
         <el-button
           type="primary"
           icon="el-icon-document-checked"
-          :disabled="batchDoneDisabled"
-          @click="toBatchDone(multipleSelection)"
+          @click="toBatchDone"
         >
           批量处理
         </el-button>
@@ -42,17 +41,12 @@
     </div>
 
     <div class="part-box part-box-pad">
-      <el-table
-        ref="TableList"
-        :data="dataList"
-        @selection-change="handleSelectionChange"
-      >
+      <el-table ref="TableList" :data="dataList">
         <el-table-column
-          type="selection"
-          fixed="left"
-          width="55"
-          align="center"
-          @selectable="rowSelectable"
+          type="index"
+          label="序号"
+          width="70"
+          :index="indexMethod"
         ></el-table-column>
         <el-table-column prop="studentName" label="姓名" min-width="100">
         </el-table-column>
@@ -145,19 +139,9 @@ export default {
       size: this.GLOBAL.pageSize,
       total: 0,
       dataList: [],
-      multipleSelection: [],
       questions: [],
     };
   },
-  computed: {
-    selectQuestionId() {
-      return this.multipleSelection[0]?.questionId;
-    },
-    batchDoneDisabled() {
-      if (!this.multipleSelection.length) return true;
-      return this.multipleSelection.some((item) => item.status === "MARKED");
-    },
-  },
   mounted() {
     this.filter.questionId = this.$ls.get("preset-questionId", "");
     this.$ls.remove("preset-questionId");
@@ -203,17 +187,6 @@ export default {
       });
     },
     toBatchDone() {
-      if (!this.multipleSelection.length) return;
-
-      if (
-        this.multipleSelection.some(
-          (item) => item.questionId !== this.selectQuestionId
-        )
-      ) {
-        this.$message.error("只能批量处理同一分组的数据");
-        return;
-      }
-
       this.toMarkArbitrate({
         examId: this.baseInfo.examId,
         paperNumber: this.baseInfo.paperNumber,