| | |
| | | import { getList, update, updateAbsent } from "@/api/examapi/performance"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import Qs from 'qs'; |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | |
| | | menu: true, |
| | | menuWidth: 215, |
| | | labelWidth: 120, |
| | | |
| | | column: [ |
| | | { |
| | | label: "考试时间", |
| | |
| | | valueFormat: "yyyy-MM-dd", |
| | | width: 140, |
| | | slot: true, |
| | | search:true, |
| | | searchSpan:4, |
| | | search: true, |
| | | searchSpan: 4, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay:false |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "考试名称", |
| | | prop: "examName", |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | search: true, |
| | | searchSpan: 5, |
| | | slot: true, |
| | | viewDisplay: true, |
| | | // 表单新增时是否禁止 |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | ], |
| | | }, |
| | | questionBankSearch: {}, |
| | |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | console.log(this.questionBankSearch,456); |
| | | var data = { |
| | | account: this.questionBankSearch.account, |
| | | companyName: this.questionBankSearch.companyName, |
| | | examDate: this.questionBankSearch.examDate, |
| | | isExam: this.questionBankSearch.isExam, |
| | | qualified: this.questionBankSearch.qualified, |
| | | securityName: this.questionBankSearch.securityName, |
| | | examName: this.questionBankSearch.examName, |
| | | }; |
| | | //导出 |
| | | const account = this.questionBankSearch.account; |
| | | const companyName = this.questionBankSearch.companyName; |
| | | const examDate = this.questionBankSearch.examDate; |
| | | const isExam = this.questionBankSearch.isExam; |
| | | const qualified = this.questionBankSearch.qualified; |
| | | const securityName = this.questionBankSearch.securityName; |
| | | if ( |
| | | this.userInfo.role_name == "保安公司管理员" || |
| | | this.userInfo.role_name == "保安" |
| | | ) { |
| | | //如果是保安公司管理员 |
| | | data["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | data["trainUnitId"] = this.userInfo.dept_id; |
| | | } |
| | | data["examType"] = 2; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/examScore/export-examScore?examDate=`+ examDate +"&account="+account+ |
| | | "&companyName="+companyName+ |
| | | "&isExam="+isExam+ |
| | | "&qualified="+qualified+ |
| | | "&securityName="+securityName |
| | | `/api/examScore/export-examScore?` + data |
| | | ); |
| | | }); |
| | | }, |