zhangjie 1 개월 전
부모
커밋
7abc52451e

+ 11 - 0
src/assets/styles/pages.scss

@@ -802,6 +802,17 @@
     border: 1px solid #e0e0e0;
     text-align: center;
     margin-bottom: 5px;
+
+    &.title-select {
+      position: relative;
+
+      .title-checkbox {
+        position: absolute;
+        top: 0;
+        left: 10px;
+        z-index: 2;
+      }
+    }
   }
   .user-list {
     border: 1px solid #e0e0e0;

+ 20 - 2
src/modules/exam/components/createExamAndPrintTask/ModifyExamTaskStudent.vue

@@ -69,8 +69,14 @@
 
     <el-row type="flex" :gutter="10">
       <el-col :span="12">
-        <h3 class="user-part-title">
-          {{ showStudent ? "班级/学生" : "班级" }}
+        <h3 class="user-part-title title-select">
+          <el-checkbox
+            v-model="allSelect"
+            class="title-checkbox"
+            @change="allSelectChange"
+            >全选</el-checkbox
+          >
+          <div>{{ showStudent ? "班级/学生" : "班级" }}</div>
         </h3>
         <div class="user-tree">
           <el-tree
@@ -182,6 +188,7 @@ export default {
       filterLabel: "",
       loading: false,
       courses: [],
+      allSelect: false,
       defaultProps: {
         children: "children",
         label: "label",
@@ -191,6 +198,7 @@ export default {
   },
   methods: {
     async visibleChange() {
+      this.allSelect = false;
       this.filter = this.$objAssign(this.filter, this.filterParams);
       await this.getStudents();
 
@@ -272,6 +280,16 @@ export default {
         return nitem;
       });
     },
+    allSelectChange() {
+      if (this.allSelect) {
+        this.$refs.UserTree.setCheckedKeys(
+          this.userTree.map((item) => item.id)
+        );
+      } else {
+        this.$refs.UserTree.setCheckedKeys([]);
+      }
+      this.checkChange();
+    },
     checkChange() {
       // console.log("check click");
       const selectedKeys = this.$refs.UserTree.getCheckedKeys(true);

+ 2 - 2
src/modules/mark/components/markParam/ModifyMarkType.vue

@@ -128,9 +128,9 @@ export default {
     };
   },
   computed: {
-    ...mapState("markParam", ["openDoubleMark"]),
+    ...mapState("markParam", ["openDoubleMark", "aiMarkType"]),
     doubleDisabled() {
-      return !this.openDoubleMark;
+      return !this.openDoubleMark && this.aiMarkType !== "MAN_MACHINE";
     },
   },
   methods: {