| | |
| | | }) |
| | | } |
| | | |
| | | 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', |
| | |
| | | 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`); |
| | | }, |