| | |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | |
| | | viewDisplay: false, |
| | | }, |
| | | { |
| | | label: "考试名称", |
| | | prop: "examName", |
| | | search: true, |
| | | searchSpan: 5, |
| | | searchLabelWidth: 80, |
| | | slot: true, |
| | | viewDisplay: false, |
| | | label: "考试时间", |
| | | prop: "startTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | width: 90, |
| | | viewDisplay: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | viewDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入试卷名称", |
| | | message: "请输入考试时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | // overHidden:true, |
| | | minWidth: 230, |
| | | overHidden:true, |
| | | }, |
| | | { |
| | | label: "姓名", |
| | |
| | | label: "所属公司", |
| | | prop: "companyName", |
| | | search: true, |
| | | sortable: true, |
| | | searchSpan: 4, |
| | | // dicUrl: '/api/blade-system/dept/tree', |
| | | // props: { |
| | |
| | | editDetail: false, |
| | | }, |
| | | { |
| | | label: "状态", |
| | | label: "考试状态", |
| | | prop: "isExam", |
| | | type: "select", |
| | | slot: true, |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 68, |
| | | width: 95, |
| | | }, |
| | | { |
| | | label: "实操成绩", |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 68, |
| | | width: 95, |
| | | rules: [ |
| | | { validator: validatePass, required: true, trigger: "blur" }, |
| | | ], |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 58, |
| | | width: 80, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | label: "是否合格", |
| | | prop: "qualified", |
| | | type: "select", |
| | | sortable: true, |
| | | slot: true, |
| | | search: true, |
| | | searchSpan: 4, |
| | | // width: 110, |
| | | width: 68, |
| | | width: 120, |
| | | dicData: [ |
| | | { |
| | | label: "合格", |
| | |
| | | }, |
| | | created() { |
| | | // console.log(this.$route.query,111); |
| | | this.questionBankSearch["examName"] = this.$route.query.examName; |
| | | this.questionBankSearch["examId"] = this.$route.query.id; |
| | | // console.log(this.$route.query,111); |
| | | }, |
| | | mounted() {}, |
| | | computed: { |
| | |
| | | } |
| | | if(value.prop=="allGrade"){ |
| | | this.sortName = "all_grade"; |
| | | } |
| | | if(value.prop=="companyName"){ |
| | | this.sortName = "companyName"; |
| | | } |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | }, |
| | |
| | | isExam: this.questionBankSearch.isExam, |
| | | qualified: this.questionBankSearch.qualified, |
| | | securityName: this.questionBankSearch.securityName, |
| | | examName: this.questionBankSearch.examName, |
| | | examId:this.questionBankSearch.examId, |
| | | }; |
| | | //导出 |
| | | if ( |
| | |
| | | data["trainUnitId"] = this.userInfo.dept_id; |
| | | } |
| | | data["examType"] = 2; |
| | | console.log(data,1234567989); |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/examScore/export-examScore?` + data); |
| | | window.open(`/api/examScore/export-examScore?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | }, |
| | | }, |