| | |
| | | </el-select> --> |
| | | <el-cascader |
| | | clearable |
| | | collapse-tags |
| | | v-model="student.deptIds" |
| | | :options="depts" |
| | | :props="{ emitPath: false, multiple: true, value: 'id', label: 'name', checkStrictly: true }" |
| | |
| | | this.getStudent(); |
| | | }, |
| | | selectAll () { |
| | | 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; |
| | | }, |
| | | getStudent() { |
| | | this.student.listLoading = true; |
| | |
| | | </el-select> --> |
| | | <el-cascader |
| | | clearable |
| | | collapse-tags |
| | | v-model="student.deptIds" |
| | | :options="depts" |
| | | :props="{ multiple: true, emitPath: false, value: 'id', label: 'name', checkStrictly: true }" |
| | |
| | | }, |
| | | 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); |