Merge remote-tracking branch 'origin/master'
| | |
| | | missExamByTemplateId: query => post('/api/admin/exam/paper/missExamByTemplateId', query), |
| | | select: id => post('/api/admin/exam/paper/select/' + id), |
| | | deletePaper: id => post('/api/admin/exam/paper/delete/' + id), |
| | | pageselfList: query => get('/api/admin/exam/templates/list', query), |
| | | pageselfList: query => post('/api/admin/exam/templates/list', query), |
| | | selfedit: query => post('/api/admin/exam/templates/edit', query), |
| | | selfselect: query => post('/api/admin/exam/templates/select/'+ query), |
| | | selfdeletePaper: id => post('/api/admin/exam/templates/remove/' + id), |
| | |
| | | selectByUserName: query => post('/api/admin/user/selectByUserName', query), |
| | | addMeetin:query => post('/api/admin/video/add', query), |
| | | delMeetin:query => post('/api/admin/video/clear', query), |
| | | setStatus:query => post('/api/admin/userCondition/examine/save', query) |
| | | setStatus:query => post('/api/admin/userCondition/examine/save', query), |
| | | getFailExamUser:query => get('/api/admin/user/getFailExamUser/' + query), |
| | | getFailTemplateUser:query => get('/api/admin/user/getFailTemplateUser/' + query) |
| | | } |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/online/study', |
| | | path: '/education', |
| | | component: Layout, |
| | | name: 'OnLineStudy', |
| | | name: 'EducationPage', |
| | | meta: { |
| | | title: '在线学习', |
| | | icon: 'exam' |
| | | title: '部门管理', |
| | | icon: 'education' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'type', |
| | | component: () => import('@/views/onlineStudy/type'), |
| | | name: 'Type', |
| | | meta: { title: '学习类型', noCache: true } |
| | | path: 'subject/list', |
| | | component: () => import('@/views/education/subject/list'), |
| | | name: 'EducationSubjectPage', |
| | | meta: { title: '部门课目', noCache: true } |
| | | }, |
| | | { |
| | | path: 'file', |
| | | component: () => import('@/views/onlineStudy/file'), |
| | | name: 'File', |
| | | meta: { title: '学习文件', noCache: true } |
| | | path: 'department/list', |
| | | component: () => import('@/views/education/department/list'), |
| | | name: 'EducationDepartmentPage', |
| | | meta: { title: '部门列表', noCache: true } |
| | | }, |
| | | { |
| | | path: 'subject/edit', |
| | | component: () => import('@/views/education/subject/edit'), |
| | | name: 'EducationSubjectEditPage', |
| | | meta: { title: '课目编辑', noCache: true, activeMenu: '/education/subject/list' }, |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: 'department/edit', |
| | | component: () => import('@/views/education/department/edit'), |
| | | name: 'EducationSubjectEditPage', |
| | | meta: { title: '部门编辑', noCache: true, activeMenu: '/education/department/list' }, |
| | | hidden: true |
| | | } |
| | | ] |
| | | }, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/task', |
| | | component: Layout, |
| | | name: 'TaskPage', |
| | | meta: { |
| | | title: '任务管理', |
| | | icon: 'task' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'list', |
| | | component: () => import('@/views/task/list'), |
| | | name: 'TaskListPage', |
| | | meta: { title: '任务列表', noCache: true } |
| | | }, |
| | | { |
| | | path: 'edit', |
| | | component: () => import('@/views/task/edit'), |
| | | name: 'TaskEditPage', |
| | | meta: { title: '任务创建', noCache: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/education', |
| | | component: Layout, |
| | | name: 'EducationPage', |
| | | meta: { |
| | | title: '部门管理', |
| | | icon: 'education' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'subject/list', |
| | | component: () => import('@/views/education/subject/list'), |
| | | name: 'EducationSubjectPage', |
| | | meta: { title: '部门课目', noCache: true } |
| | | }, |
| | | { |
| | | path: 'department/list', |
| | | component: () => import('@/views/education/department/list'), |
| | | name: 'EducationDepartmentPage', |
| | | meta: { title: '部门列表', noCache: true } |
| | | }, |
| | | { |
| | | path: 'subject/edit', |
| | | component: () => import('@/views/education/subject/edit'), |
| | | name: 'EducationSubjectEditPage', |
| | | meta: { title: '课目编辑', noCache: true, activeMenu: '/education/subject/list' }, |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: 'department/edit', |
| | | component: () => import('@/views/education/department/edit'), |
| | | name: 'EducationSubjectEditPage', |
| | | meta: { title: '部门编辑', noCache: true, activeMenu: '/education/department/list' }, |
| | | hidden: true |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/answer', |
| | | component: Layout, |
| | | name: 'AnswerPage', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/online/study', |
| | | component: Layout, |
| | | name: 'OnLineStudy', |
| | | meta: { |
| | | title: '在线学习', |
| | | icon: 'exam' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'type', |
| | | component: () => import('@/views/onlineStudy/type'), |
| | | name: 'Type', |
| | | meta: { title: '学习类型', noCache: true } |
| | | }, |
| | | { |
| | | path: 'file', |
| | | component: () => import('@/views/onlineStudy/file'), |
| | | name: 'File', |
| | | meta: { title: '学习文件', noCache: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/questionAnswer', |
| | | component: Layout, |
| | | name: 'questionAnswerPage', |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/message', |
| | | path: '/task', |
| | | component: Layout, |
| | | name: 'MessagePage', |
| | | name: 'TaskPage', |
| | | meta: { |
| | | title: '消息中心', |
| | | icon: 'message' |
| | | title: '任务管理', |
| | | icon: 'task' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'list', |
| | | component: () => import('@/views/message/list'), |
| | | name: 'MessageListPage', |
| | | meta: { title: '消息列表', noCache: true } |
| | | component: () => import('@/views/task/list'), |
| | | name: 'TaskListPage', |
| | | meta: { title: '任务列表', noCache: true } |
| | | }, |
| | | { |
| | | path: 'send', |
| | | component: () => import('@/views/message/send'), |
| | | name: 'MessageSendPage', |
| | | meta: { title: '消息发送', noCache: true } |
| | | path: 'edit', |
| | | component: () => import('@/views/task/edit'), |
| | | name: 'TaskEditPage', |
| | | meta: { title: '任务创建', noCache: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/log', |
| | | component: Layout, |
| | | name: 'LogPage', |
| | | meta: { |
| | | title: '日志中心', |
| | | icon: 'log' |
| | | }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'user/list', |
| | | component: () => import('@/views/log/list'), |
| | | name: 'LogUserPage', |
| | | meta: { title: '用户日志', noCache: true } |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // path: '/message', |
| | | // component: Layout, |
| | | // name: 'MessagePage', |
| | | // meta: { |
| | | // title: '消息中心', |
| | | // icon: 'message' |
| | | // }, |
| | | // alwaysShow: true, |
| | | // children: [ |
| | | // { |
| | | // path: 'list', |
| | | // component: () => import('@/views/message/list'), |
| | | // name: 'MessageListPage', |
| | | // meta: { title: '消息列表', noCache: true } |
| | | // }, |
| | | // { |
| | | // path: 'send', |
| | | // component: () => import('@/views/message/send'), |
| | | // name: 'MessageSendPage', |
| | | // meta: { title: '消息发送', noCache: true } |
| | | // } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // path: '/log', |
| | | // component: Layout, |
| | | // name: 'LogPage', |
| | | // meta: { |
| | | // title: '日志中心', |
| | | // icon: 'log' |
| | | // }, |
| | | // alwaysShow: true, |
| | | // children: [ |
| | | // { |
| | | // path: 'user/list', |
| | | // component: () => import('@/views/log/list'), |
| | | // name: 'LogUserPage', |
| | | // meta: { title: '用户日志', noCache: true } |
| | | // } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // path: '/meeting', |
| | | // component: Layout, |
| | |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |
| | | <el-button type="danger" @click="handleExport" class="link-left">导出</el-button> |
| | | <el-button type="danger" @click="downloadUrlFile" class="link-left">截图</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | downloadUrlFile(url, fileName) { |
| | | // 获取base64图片 |
| | | const chartImgUrl = this.myChart.getDataURL({ |
| | | pixelRatio: 2, |
| | | backgroundColor: '#fff' |
| | | }) |
| | | console.log(chartImgUrl) |
| | | // 下载base64图片 |
| | | this.downloadUrlFile(chartImgUrl, 'ECharts 2倍图') |
| | | }, |
| | | handleExport(){ |
| | | let that = this |
| | | let url ='/api/admin/examPaperAnswer/export?id=' +this.queryParam.id + '&type=' + this.queryParam.type |
| | |
| | | // let obj = { |
| | | // name: this.form.name |
| | | // } |
| | | _this.form.parentId = _this.form.parentId[0] |
| | | if (_this.form.parentId) { |
| | | _this.form.parentId = _this.form.parentId[0]; |
| | | } |
| | | if (_this.fig === 1) { |
| | | departmentApi.addData(this.form).then(res => { |
| | | console.log(res) |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |
| | | <router-link :to="{path:'/education/subject/edit'}" class="link-left"> |
| | | <!-- <router-link :to="{path:'/education/subject/edit'}" class="link-left"> |
| | | <el-button type="primary">添加</el-button> |
| | | </router-link> |
| | | </router-link> --> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | </el-select> --> |
| | | <el-cascader |
| | | clearable |
| | | collapse-tags |
| | | v-model="student.deptIds" |
| | | :options="depts" |
| | | :props="{ emitPath: false, multiple: true, value: 'id', label: 'name', checkStrictly: true }" |
| | |
| | | limitDateTime: [], |
| | | name: '', |
| | | suggestTime: null, |
| | | titleItems: [], |
| | | titleItems: [{ |
| | | name: '', |
| | | questionItems: [] |
| | | }], |
| | | subjectSource: {}, |
| | | questionTypeVMS: [], |
| | | examineeList: [], |
| | |
| | | _this.subjectFilter = _this.subjects; |
| | | }); |
| | | if (id && parseInt(id) !== 0) { |
| | | _this.selectAllBoolean = false; |
| | | _this.formLoading = true; |
| | | examPaperApi.select(id).then(re => { |
| | | const { userIds, userNames } = re.response; |
| | |
| | | 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; |
| | |
| | | width="550px"> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="考生:" prop="menuIds" required> |
| | | <el-cascader v-model="form.menuIds" :options="options" :props="{ multiple: true }" clearable collapse-tags></el-cascader> |
| | | <!-- <el-cascader v-model="form.menuIds" :options="options" :props="{ multiple: true }" clearable collapse-tags></el-cascader> --> |
| | | <!-- 改成下拉 --> |
| | | <el-select v-model="form.menuIds" multiple clearable placeholder="请选择"> |
| | | <el-option v-for="item in options" :key="item.id" :label="item.realName" :value="item.id"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="时间:" prop="limitDateTime" required v-if="examPaper.paperType === 4"> |
| | | <el-date-picker v-model="form.limitDateTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" |
| | |
| | | import Pagination from '@/components/Pagination' |
| | | import examPaperApi from '@/api/examPaper' |
| | | import departmentApi from '@/api/department' |
| | | import userApi from '@/api/user' |
| | | |
| | | export default { |
| | | components: { Pagination }, |
| | |
| | | } |
| | | this.dialogVisible = true; |
| | | this.examPaper = item; |
| | | departmentApi.getUserByExam(item.id).then(res => { |
| | | this.options = res.response.map(x=>{return{value:x.department.id,label:x.department.name,children:x.userList.map(xx=>{return{value: xx.id,label: xx.realName}})}}) |
| | | console.log('item.id', item.id); |
| | | userApi.getFailExamUser(item.id).then(res => { |
| | | this.options = res.response; |
| | | }) |
| | | }, |
| | | submitUpdate () { |
| | |
| | | </el-select> --> |
| | | <el-cascader |
| | | clearable |
| | | collapse-tags |
| | | v-model="student.deptIds" |
| | | :options="depts" |
| | | :props="{ multiple: true, emitPath: false, value: 'id', label: 'name', checkStrictly: true }" |
| | |
| | | limitDateTime: [], |
| | | name: '', |
| | | suggestTime: null, |
| | | titleItems: [], |
| | | titleItems: [{ |
| | | name: '', |
| | | questionItems: [] |
| | | }], |
| | | subjectSource: {}, |
| | | questionTypeVMS: [], |
| | | examineeList: [], |
| | |
| | | _this.subjectFilter = _this.subjects; |
| | | }); |
| | | if (id && parseInt(id) !== 0) { |
| | | this.selectAllBoolean = false; |
| | | _this.formLoading = true; |
| | | await examPaperApi.selfselect(id).then(re => { |
| | | const { userIds, userNames } = re.response; |
| | |
| | | this.student.multipleSelection = val; |
| | | }, |
| | | selectAll () { |
| | | this.selectAllBoolean = false; |
| | | this.preSelectAll(); |
| | | 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); |
| | |
| | | }); |
| | | this.student.multipleSelection = []; |
| | | this.studentDialog = false; |
| | | }, |
| | | preSelectAll() { |
| | | this.selectAllBoolean = true; |
| | | this.$refs.multipleTable.clearSelection(); |
| | | this.form.userIds = this.student.multipleSelection.map((item) => item.id); |
| | | this.form.examineeList = this.student.multipleSelection.map((item) => { |
| | | return { |
| | | id: item.id, |
| | | realName: item.realName |
| | | }; |
| | | }); |
| | | this.student.multipleSelection = []; |
| | | }, |
| | | getTags() { |
| | | userApi.tagList(null).then(data => { |
| | |
| | | console.log(this.form.subjectSource); |
| | | console.log(this.form.questionTypeVMS); |
| | | // this.form.paperType = 7 |
| | | this.form.titleItems = []; |
| | | this.form.titleItems = [{ |
| | | name: '', |
| | | questionItems: [] |
| | | }]; |
| | | } else { |
| | | this.form.subjectSource = {}; |
| | | this.subjectIdList = []; |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <!-- <el-form :model="queryParam" ref="queryForm" :inline="true">--> |
| | | <!-- <el-form-item label="题目ID:">--> |
| | | <!-- <el-input v-model="queryParam.id" clearable></el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="部门:">--> |
| | | <!-- <el-select v-model="queryParam.level" placeholder="部门" @change="levelChange" clearable>--> |
| | | <!-- <el-option v-for="item in levelEnum" :key="item.key" :value="item.key" :label="item.value"></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="课目:" >--> |
| | | <!-- <el-select v-model="queryParam.subjectId" clearable>--> |
| | | <!-- <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' '"></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item>--> |
| | | <!-- <el-button type="primary" @click="submitForm">查询</el-button>--> |
| | | <!-- <router-link :to="{path:'/exam/personalSimulation/edit'}" class="link-left">--> |
| | | <!-- <el-button type="primary">添加</el-button>--> |
| | | <!-- </router-link>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-form>--> |
| | | <el-form :model="queryParam" ref="queryForm" :inline="true"> |
| | | <el-form-item label="名称:"> |
| | | <el-input v-model="queryParam.name" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="部门:"> |
| | | <el-cascader |
| | | clearable |
| | | v-model="queryParam.deptId" |
| | | :options="depts" |
| | | :props="{ emitPath: false, value: 'id', label: 'name', checkStrictly: true, multiple: true }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="课目:" > |
| | | <el-select v-model="queryParam.subjectId" clearable multiple> |
| | | <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' '"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-date-picker |
| | | v-model="queryParam.period" |
| | | type="daterange" |
| | | unlink-panels |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :picker-options="pickerOptions"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |
| | | <!-- <router-link :to="{path:'/exam/personalSimulation/edit'}" class="link-left"> |
| | | <el-button type="primary">添加</el-button> |
| | | </router-link> --> |
| | | </el-form-item> |
| | | </el-form> |
| | | <router-link :to="{path:'/exam/personalRandomTemplate/edit'}"> |
| | | <el-button type="primary" size="small" style="margin-bottom: 5px">添加</el-button> |
| | | </router-link> |
| | |
| | | <el-table-column prop="subjectNames" label="课目" /> |
| | | <el-table-column prop="name" label="名称" /> |
| | | <el-table-column prop="createDepartment" label="创建部门" /> |
| | | <el-table-column prop="ctime" label="创建时间" /> |
| | | <el-table-column label="操作" align="center" width="360px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button size="small" @click="$router.push({path:'/exam/personalRandomTemplate/edit',query:{id:row.id}})" >编辑</el-button> |
| | |
| | | title="补考" |
| | | :visible.sync="dialogVisible" |
| | | width="550px"> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form :model="form" ref="form"> |
| | | <el-form-item label="考生:" prop="menuIds" required> |
| | | <el-cascader v-model="form.menuIds" :options="options" :props="{ multiple: true }" clearable collapse-tags></el-cascader> |
| | | <!-- <el-cascader v-model="form.menuIds" :options="options" :props="{ multiple: true }" clearable collapse-tags></el-cascader> --> |
| | | <el-select v-model="form.menuIds" multiple clearable placeholder="请选择"> |
| | | <el-option v-for="item in options" :key="item.id" :label="item.realName" :value="item.id"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | import Pagination from '@/components/Pagination' |
| | | import examPaperApi from '@/api/examPaper' |
| | | import departmentApi from '@/api/department' |
| | | import userApi from '@/api/user' |
| | | |
| | | export default { |
| | | components: { Pagination }, |
| | | data () { |
| | | return { |
| | | pickerOptions: { |
| | | shortcuts: [{ |
| | | text: '最近一周', |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, { |
| | | text: '最近一个月', |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, { |
| | | text: '最近三个月', |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, { |
| | | text: '最近半年', |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 183); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }, { |
| | | text: '最近一年', |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 365); |
| | | picker.$emit('pick', [start, end]); |
| | | } |
| | | }] |
| | | }, |
| | | options: [], |
| | | depts: [], |
| | | form: { |
| | | menuIds: [], |
| | | userIds: [], |
| | |
| | | this.search() |
| | | this.queryParam.subjectId = null |
| | | this.subjectFilter = this.subjects |
| | | departmentApi.getDeptAdmins().then(res => { |
| | | this.depts = res.response; |
| | | }) |
| | | }, |
| | | methods: { |
| | | missExam(item) { |
| | |
| | | limitDateTime: [] |
| | | } |
| | | this.examPaper = item; |
| | | departmentApi.getDepartmentUserByTemplateId(item.id).then(res => { |
| | | this.options = res.response.map(x=>{return{value:x.department.id,label:x.department.name,children:x.userList.map(xx=>{return{value: xx.id,label: xx.realName}})}}) |
| | | userApi.getFailExamUser(item.id).then(res => { |
| | | this.options = res.response; |
| | | this.dialogVisible = true; |
| | | }) |
| | | }, |
| | |
| | | <!-- <el-option v-for="item in levelEnum" :key="item.key" :value="item.key" :label="item.value"></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | <el-form-item label="课目:" > |
| | | <el-select v-model="queryParam.subjectId" clearable multiple> |
| | | <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' '"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="题型:"> |
| | | <el-select v-model="queryParam.questionType" clearable> |
| | | <el-option v-for="item in questionType" :key="item.key" :value="item.key" :label="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="题目名:"> |
| | | <el-input v-model="queryParam.questionName" clearable></el-input> |
| | | </el-form-item> |
| | | <el-input v-model="queryParam.questionName" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div style="display: flex"> |
| | | <el-button class="op-item" type="primary" @click="submitForm">查询</el-button> |
| | |
| | | <el-form-item label="真实姓名:"> |
| | | <el-input v-model="queryParam.userName" size="small" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="部门:"> |
| | | <el-cascader |
| | | clearable |
| | | v-model="queryParam.departmentId" |
| | | :options="depts" |
| | | :props="{ emitPath: false, value: 'id', label: 'name', checkStrictly: true, multiple: true }" |
| | | ></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item > |
| | | <div style="display: flex"> |
| | | <el-button type="primary" @click="submitForm" size="small">查询</el-button> |
| | |
| | | <el-table-column prop="userName" label="用户名"/> |
| | | <el-table-column prop="realName" label="真实姓名" width="150"/> |
| | | <el-table-column prop="deptNames" label="部门" /> |
| | | <el-table-column label="标签" prop="tagNames" width="80px"> |
| | | <el-table-column label="标签" prop="tagNames" align="center"> |
| | | <template slot-scope="{row}"> |
| | | <el-tag style="margin: 5px;" v-for="(item,index) in row.tagNames" :key="index">{{ item }}</el-tag> |
| | | <el-tag v-for="item, index in row.tagNames" :key="index">{{ item }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="人员状态" prop="condition" align="center" width="100px"> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | depts: [], |
| | | user:{}, |
| | | statusVisible: false, |
| | | upLoadUrl:'/api/admin/user/import', |
| | | fileList:[], |
| | | queryParam: { |
| | | userName: '', |
| | | departmentId: [], |
| | | roles: [1], |
| | | pageIndex: 1, |
| | | pageSize: 10 |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | this.search() |
| | | this.search(); |
| | | department.getDeptAdmins().then(res => { |
| | | this.depts = res.response; |
| | | }) |
| | | }, |
| | | methods: { |
| | | deptAdmin() { |