| | |
| | | @click="handleImport" |
| | | >清册导入 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleApplyInfoExport" |
| | | >报名清册信息导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, row }" slot="menu"> |
| | |
| | | @click="auditSucess(row)" |
| | | >审核通过 |
| | | </el-button> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | auditSucess, |
| | | remove, |
| | | } from "@/api/trainingRegistration/trainingRegistration"; |
| | | |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | import { mapState } from "vuex"; |
| | | |
| | | var DIC = { |
| | |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: "所属公司", |
| | | label: "所属企业", |
| | | prop: "deptName", |
| | | search: true, |
| | | slot: true, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属公司", |
| | | message: "请选择所属企业", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | //保安员证信息导出 |
| | | handleApplyInfoExport() { |
| | | this.$confirm("是否导出考试报名信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | // const { releaseTimeRange } = this.questionBankSearch; |
| | | // if (releaseTimeRange) { |
| | | // this.questionBankSearch["startTime"] = releaseTimeRange[0]; |
| | | // this.questionBankSearch["endTime"] = releaseTimeRange[1]; |
| | | // } |
| | | var data = { |
| | | cancel: this.questionBankSearch.cancel, |
| | | auditStatus: this.questionBankSearch.auditStatus, |
| | | deptName: this.questionBankSearch.deptName, |
| | | isExam: this.questionBankSearch.isExam, |
| | | realName: this.questionBankSearch.realName |
| | | }; |
| | | data["examId"] = this.$route.query.id; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/trainingRegistration/export-apply-info?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | }, |
| | | //行样式调整 |
| | | rowStyle({ row, column, rowIndex }) { |
| | | if (row.auditStatus == "2") { |
| | |
| | | query: obj, |
| | | }); |
| | | }, |
| | | |
| | | //导出数据 |
| | | // handleExport() { |
| | | // this.$confirm("是否导出清册数据?", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }).then(() => { |
| | | // window.open(`/api/trainingRegistration/export-apply?examId=${this.$route.query.id}`); |
| | | // }); |
| | | // }, |
| | | handleImport() { |
| | | this.excelBox = true; |
| | | }, |