| | |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | :disabled="row.candidateNo==''" |
| | | :disabled="row.candidateNo=='' || row.cancel==2" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | </el-button> |
| | | <el-button |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-refresh-left" |
| | | :disabled="row.cancel==2" |
| | | @click="revoke(row)" |
| | | >取消报名 |
| | | </el-button> |
| | | <el-button |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-circle-check" |
| | | :disabled="row.auditStatus==1" |
| | | @click="auditSucess(row)" |
| | | >审核通过 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | <script> |
| | | |
| | | import {getdata,adddata,remove} from "@/api/trainingRegistration/trainingRegistration"; |
| | | import {getdata,adddata, cancelTrainAudit,auditSucess,remove} from "@/api/trainingRegistration/trainingRegistration"; |
| | | |
| | | import { mapState } from 'vuex' |
| | | |
| | |
| | | width: 220 |
| | | }, |
| | | { |
| | | label: "报名状态", |
| | | prop: "cancel", |
| | | type:"select", |
| | | search:true, |
| | | hide:true, |
| | | searchSpan:4, |
| | | searchValue:1, |
| | | dicData:[ |
| | | { |
| | | label: '已报名', |
| | | value: 1 |
| | | }, { |
| | | label: '已取消', |
| | | value: 2 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "准考证号", |
| | | prop: "candidateNo", |
| | | slot: true, |
| | |
| | | ? "0" + new Date().getSeconds() |
| | | : new Date().getSeconds())), |
| | | |
| | | width: 160 |
| | | width: 150 |
| | | }, |
| | | { |
| | | label: "考试时间", |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 160 |
| | | width: 150 |
| | | }, |
| | | { |
| | | label: "审核状态", |
| | | search: true, |
| | | searchLabelWidth: 110, |
| | | type: "select", |
| | | searchSpan: 4, |
| | | prop: "auditStatus", |
| | | searchValue: 4, |
| | | dicData: [{ |
| | | label: '全部', |
| | | value: 0, |
| | | }, |
| | | { |
| | | label: '审核通过', |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: '审核不通过', |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: '已提交审核', |
| | | value: 3, |
| | | }, |
| | | { |
| | | label: '未提交审核', |
| | | value: 4, |
| | | } |
| | | ], |
| | | props: { |
| | | label: "label", |
| | | value: "value" |
| | | }, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | width: 100, |
| | | }, |
| | | // { |
| | | // label: "报名状态", |
| | |
| | | this.questionBankOption.column[0].dicUrl = "/api/blade-system/dept/lazy-tree-user?parentId=" + this.userInfo.dept_id |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | this.questionBankSearch['cancel'] = 1; |
| | | this.questionBankSearch['auditStatus'] = 0; |
| | | }, |
| | | mounted() { |
| | | var flag = false, |
| | |
| | | }); |
| | | }, |
| | | questionBankOnLoad (page, params = {}) { |
| | | // debugger; |
| | | params = this.questionBankSearch; |
| | | params['examId'] = this.$route.query.id; |
| | | this.questionBankLoading = false; |
| | | getdata(page.currentPage, page.pageSize, Object.assign(params, this.questionBankQuery)).then(res => { |
| | |
| | | questionBankSizeChange (pageSize) { |
| | | this.questionBankPage.pageSize = pageSize; |
| | | }, |
| | | //取消报名 |
| | | revoke(row, done, loading) { |
| | | this.$confirm("确定取消报名?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | row.cancel = 2; |
| | | cancelTrainAudit(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "取消报名成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }); |
| | | }, |
| | | //审核通过 |
| | | auditSucess(row, done, loading) { |
| | | this.$confirm("确定审核通过?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | row.cancel = 1; |
| | | auditSucess(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }); |
| | | }, |
| | | |
| | | // 新增 |
| | | questionBankRowSave (row, done, loading) { |