| | |
| | | </el-select> --> |
| | | <el-cascader |
| | | clearable |
| | | @change="getSubject" |
| | | v-model="form.deptId" |
| | | :options="depts" |
| | | :props="{ emitPath: false, value: 'id', label: 'name', checkStrictly: true }" |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | <el-form-item :key="item.subjectId" :label="item.label" required v-for="(item, key) in form.questionTypeVMS" |
| | | <!-- <el-form-item :key="item.subjectId" :label="item.label" required v-for="(item, key) in form.questionTypeVMS" |
| | | v-if="form.paperType == 7"> |
| | | <el-row> |
| | | <el-col :span="3"> |
| | |
| | | <el-input v-model="form.questionTypeVMS[key].trueFalse" style="width: 80%" /> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="总数分:" v-if="form.paperType==7" prop="name" required>--> |
| | | <!-- <el-input v-model="form.name"/>--> |
| | | <!-- </el-form-item>--> |
| | |
| | | <el-button type="primary" @click="selectStudent">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button type="primary" @click="selectAllBoolean ? selectAll() : unselectAll()">{{ selectAllBoolean ? '全选' : '取消全选' }}</el-button> |
| | | <el-table ref="multipleTable" v-loading="student.listLoading" :data="tableData" border fit highlight-current-row |
| | | style="width: 100%" @selection-change="handleSelection" row-key="id" @select-all="selectAll"> |
| | | style="width: 100%" @selection-change="handleSelection" row-key="id"> |
| | | <el-table-column type="selection" :reserve-selection="true"></el-table-column> |
| | | <el-table-column prop="realName" label="学员" /> |
| | | </el-table> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | selectAllBoolean: true, |
| | | tags: [], |
| | | studentDialog: false, |
| | | student: { |
| | |
| | | }) |
| | | }, |
| | | handleSelection(val) { |
| | | console.log('val', val); |
| | | this.student.multipleSelection = val; |
| | | }, |
| | | selectAll() { |
| | | 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.getStudent(); |
| | | }); |
| | | }, |
| | | unselectAll () { |
| | | this.selectAllBoolean = true; |
| | | this.$refs.multipleTable.clearSelection(); |
| | | }, |
| | | confirmStudentSelect() { |
| | | this.form.userIds = this.student.multipleSelection.map((item) => item.id); |
| | | this.form.examineeList = this.student.multipleSelection.map((item) => { |