| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-28 15:06:04 |
| | | * @Last Modified time: 2021-11-23 14:11:16 |
| | | * menu-name 成绩查看 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box-score"> |
| | | <el-col :span="24"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <div |
| | | :class="[ |
| | | 'exam-card-body', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch' : '', |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | v-model="obj" |
| | | class="company-box" |
| | |
| | | import { getList, update } from "@/api/examapi/performance"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import Qs from 'qs'; |
| | | import Qs from "qs"; |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | |
| | | menu: false, |
| | | menuWidth: 136, |
| | | labelWidth: 120, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "考试时间", |
| | |
| | | }, |
| | | ], |
| | | // overHidden:true, |
| | | width: 210, |
| | | minWidth: 230, |
| | | }, |
| | | { |
| | | label: "姓名", |
| | |
| | | width: 160, |
| | | }, |
| | | { |
| | | label: "准考证号", |
| | | prop: "candidateNo", |
| | | search: true, |
| | | searchSpan: 4, |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入保安姓名", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 140, |
| | | }, |
| | | { |
| | | label: "所属公司", |
| | | prop: "companyName", |
| | | search: true, |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 230, |
| | | minWidth: 230, |
| | | }, |
| | | { |
| | | label: "考试开始时间", |
| | |
| | | value: 3, |
| | | }, |
| | | ], |
| | | width: 60, |
| | | width: 90, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 68, |
| | | }, |
| | | { |
| | | label: "实操成绩", |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 68, |
| | | rules: [ |
| | | { validator: validatePass, required: true, trigger: "blur" }, |
| | | ], |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 58, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 110, |
| | | width: 68, |
| | | dicData: [ |
| | | { |
| | | label: "合格", |
| | |
| | | questionBankPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | |
| | | roleIds.forEach((roleId) => { |
| | | getRoleDetail(roleId).then((res) => { |
| | | var roleAlias = res.data.data.roleAlias; |
| | | if (roleAlias == "保安公司管理员" || roleAlias == "保安") { |
| | | if (roleAlias == "保安公司管理员" || roleAlias == "保安" || roleAlias == "分公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } |
| | |
| | | data["examType"] = 2; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/examScore/export-examScore?` + data |
| | | ); |
| | | window.open(`/api/examScore/export-examScore?` + data); |
| | | }); |
| | | }, |
| | | }, |