From 7ed7dd99e1c62541d4f4571621809d9a8b8afe01 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 12 七月 2024 15:25:54 +0800
Subject: [PATCH] fix:修改试卷-全选考生bug修复

---
 src/views/exam/personalRandomTemplate/edit.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/exam/personalRandomTemplate/edit.vue b/src/views/exam/personalRandomTemplate/edit.vue
index 80e6559..7fc5262 100644
--- a/src/views/exam/personalRandomTemplate/edit.vue
+++ b/src/views/exam/personalRandomTemplate/edit.vue
@@ -159,6 +159,7 @@
           </el-select> -->
           <el-cascader
           clearable
+          collapse-tags
           v-model="student.deptIds"
           :options="depts"
           :props="{ multiple: true, emitPath: false, value: 'id', label: 'name',  checkStrictly: true }"
@@ -360,20 +361,20 @@
     },
     selectAll () {
       this.preSelectAll();
-      this.selectAllBoolean = false;
       let param = { ...this.student };
       param.pageSize = 999999;
       examPaperApi.selectStudent(param).then(res => {
         this.handleSelection(res.response.list);
         res.response.list.forEach(item => {
           this.$refs.multipleTable.toggleRowSelection(item, true);
+          this.selectAllBoolean = false;
         })
         this.getStudent();
       });
     },
     unselectAll () {
-      this.selectAllBoolean = true;
       this.$refs.multipleTable.clearSelection();
+      this.selectAllBoolean = true;
     },
     confirmStudentSelect() {
       this.form.userIds = this.student.multipleSelection.map((item) => item.id);

--
Gitblit v1.8.0