| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="部门:"> |
| | | <el-select v-model="student.deptId" clearable> |
| | | <el-select v-model="student.deptIds" clearable multiple> |
| | | <el-option v-for="item in depts" :key="item.id" :value="item.id" :label="item.name"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-table ref="multipleTable" v-loading="student.listLoading" :data="tableData" border fit highlight-current-row 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-column prop="realName" label="学员" /> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="student.pageIndex" :limit.sync="student.pageSize" |
| | | @pagination="selectStudent" /> |
| | |
| | | return { |
| | | tags: [], |
| | | depts: [], |
| | | student: {}, |
| | | studentDialog: false, |
| | | student: { |
| | | deptIds: [], |
| | | pageIndex: 1, |
| | | pageSize: 5, |
| | | listLoading: true, |
| | |
| | | this.getTags(); |
| | | this.studentDialog = true; |
| | | this.student.listLoading = true; |
| | | |
| | | examPaperApi.selectStudent(this.student).then(res => { |
| | | this.tableData = res.response.list; |
| | | this.total = res.response.total; |
| | |
| | | console.log(val); |
| | | }, |
| | | titlejs(val) { |
| | | console.log(val); |
| | | let str = ''; |
| | | this.subjectFilter.forEach(item => { |
| | | if (item.id == val) { |
| | |
| | | return str; |
| | | }, |
| | | subjectIdEvent(e) { |
| | | console.log(e, this.$refs.subjectIdRef.selected); |
| | | let arr = []; |
| | | if (e) { |
| | | |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="部门:"> |
| | | <el-select v-model="student.deptId" clearable> |
| | | <el-select v-model="student.deptIds" clearable multiple> |
| | | <el-option v-for="item in depts" :key="item.id" :value="item.id" :label="item.name"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-table ref="multipleTable" v-loading="student.listLoading" :data="tableData" border fit highlight-current-row |
| | | 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-column prop="realName" label="学员" /> |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="student.pageIndex" :limit.sync="student.pageSize" |
| | | @pagination="selectStudent" /> |
| | |
| | | data() { |
| | | return { |
| | | tags: [], |
| | | depts: [], |
| | | student: {}, |
| | | studentDialog: false, |
| | | student: { |
| | | deptIds: [], |
| | | pageIndex: 1, |
| | | pageSize: 5, |
| | | listLoading: true, |