| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (current, size, params, deptId) => { |
| | | return request({ |
| | | url: '/api/blade-user/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | deptId, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size, |
| | | deptId, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/blade-user/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/update', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/update', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const updatePlatform = (userId, userType, userExt) => { |
| | | return request({ |
| | | url: '/api/blade-user/update-platform', |
| | | method: 'post', |
| | | params: { |
| | | userId, |
| | | userType, |
| | | userExt, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/update-platform', |
| | | method: 'post', |
| | | params: { |
| | | userId, |
| | | userType, |
| | | userExt, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getApplyDetailList = (examId) => { |
| | | return request({ |
| | | url: '/api/apply/getApplyDetailList', |
| | | method: 'get', |
| | | params: { |
| | | examId, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getUser = (id) => { |
| | | return request({ |
| | | url: '/api/blade-user/detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getUserPlatform = (id) => { |
| | | return request({ |
| | | url: '/api/blade-user/platform-detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/platform-detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getUserInfo = () => { |
| | | return request({ |
| | | url: '/api/blade-user/info', |
| | | method: 'get', |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/info', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | export const resetPassword = (userIds) => { |
| | | return request({ |
| | | url: '/api/blade-user/reset-password', |
| | | method: 'post', |
| | | params: { |
| | | userIds, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/reset-password', |
| | | method: 'post', |
| | | params: { |
| | | userIds, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const updatePassword = (oldPassword, newPassword, newPassword1) => { |
| | | return request({ |
| | | url: '/api/blade-user/update-password', |
| | | method: 'post', |
| | | params: { |
| | | oldPassword, |
| | | newPassword, |
| | | newPassword1, |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/update-password', |
| | | method: 'post', |
| | | params: { |
| | | oldPassword, |
| | | newPassword, |
| | | newPassword1, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const updateInfo = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/update-info', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-user/update-info', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const grant = (userIds, roleIds) => { |
| | | return request({ |
| | | url: '/api/blade-user/grant', |
| | | method: 'post', |
| | | params: { |
| | | userIds, |
| | | roleIds, |
| | | } |
| | | }) |
| | | } |
| | | return request({ |
| | | url: '/api/blade-user/grant', |
| | | method: 'post', |
| | | params: { |
| | | userIds, |
| | | roleIds, |
| | | } |
| | | }) |
| | | } |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-position" |
| | | @click="handleImport" |
| | | @click="handleImport1" |
| | | >报名清册生成 |
| | | </el-button> |
| | | <el-button |
| | |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="报名清册生成" |
| | | append-to-body |
| | | :visible.sync="excelBox1" |
| | | width="1200px" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | :span-method="arraySpanMethod" |
| | | border |
| | | style="width: 100%"> |
| | | |
| | | <template slot-scope="{ row }" slot="sex"> |
| | | {{row.sex==1?"男":row.sex==2?"女":row.sex==-1?'':row.sex}} |
| | | </template> |
| | | <el-table-column |
| | | prop="realName" |
| | | label="姓名"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="idCardNo" |
| | | label="身份证号"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="sex" |
| | | label="性别"> |
| | | <template slot-scope="scope"> |
| | | {{scope.row.sex==1?"男":scope.row.sex==2?"女":scope.row.sex==-1?'':scope.row.sex}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="candidateNo" |
| | | label="准考证号"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="deptName" |
| | | width="180" |
| | | label="单位名称"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyCard" |
| | | label="报考证件"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="applyTime" |
| | | label="报名时间"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | |
| | | |
| | | <script> |
| | | import { getApplyList, addApply, remove } from "@/api/examapi/applyexam"; |
| | | import { getApplyDetailList } from "@/api/applyexam/applyexam"; |
| | | import { mapState } from "vuex"; |
| | | |
| | | var DIC = { |
| | |
| | | data() { |
| | | var examId = this.$route.query.id; |
| | | return { |
| | | tableData:[], |
| | | obj: { |
| | | name: "张三", |
| | | }, |
| | | excelBox: false, |
| | | excelBox1: false, |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | | delBtn: false, |
| | |
| | | questionBankOnLoad(page, params = {}) { |
| | | // debugger; |
| | | params["examId"] = this.$route.query.id; |
| | | // params["applyStatus"] = 2; |
| | | params["applyStatus"] = 3; |
| | | this.questionBankLoading = false; |
| | | getApplyList( |
| | | page.currentPage, |
| | |
| | | }); |
| | | }, |
| | | |
| | | |
| | | handleImport() { |
| | | this.excelBox = true; |
| | | }, |
| | | handleImport1() { |
| | | this.excelBox1 = true; |
| | | //获取报名信息 |
| | | getApplyDetailList(this.$route.query.id).then((res)=>{ |
| | | // console.log(res.data,111452); |
| | | this.tableData = res.data.applyList; |
| | | this.tableData.push({ |
| | | realName:"总人数", |
| | | idCardNo:res.data.num |
| | | }) |
| | | }) |
| | | }, |
| | | arraySpanMethod({ rowIndex, columnIndex }) { |
| | | // console.log(rowIndex,columnIndex,333); |
| | | if(rowIndex == (this.tableData.length-1)){ |
| | | if (columnIndex === 0) { |
| | | return [1, 6]; |
| | | } |
| | | } |
| | | }, |
| | | handleTemplate() { |
| | | window.open(`/api/apply/export-template`); |
| | | }, |