| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 17:09:52 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-23 14:12:55 |
| | | * menu-name 考试管理 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box-paper"> |
| | | <el-col :span="24"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <div |
| | | :class="[ |
| | | 'exam-card-body', |
| | | $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '', |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | v-model="form" |
| | | class="company-box" |
| | |
| | | |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | style="display:none" |
| | | style="display: none" |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | |
| | | menuWidth: 230, |
| | | dialogClickModal: false, |
| | | column: auditColumn, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | }, |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | |
| | | // 操作栏宽度 |
| | | menuWidth: 280, |
| | | labelWidth: 140, |
| | | |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "考试名称", |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | span:24, |
| | | span: 24, |
| | | width: 200, |
| | | }, |
| | | // { |
| | |
| | | editDetail: false, |
| | | // hide: true, |
| | | display: false, |
| | | width: 80 |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: "申请人所属学校", |
| | |
| | | type: "textarea", |
| | | span: 24, |
| | | slot: true, |
| | | hide:true, |
| | | hide: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | |
| | | this.questionBankLoading = false; |
| | | params["examType"] = 2; |
| | | //如果是培训公司管理员,则只能看到当前培训公司申请的考试 |
| | | if(this.userInfo.role_name =="培训公司管理员"){ |
| | | params['deptId'] = this.userInfo.dept_id; |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | params["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | getList( |
| | | page.currentPage, |
| | |
| | | }); |
| | | } |
| | | }, |
| | | examScoreViews(row){ |
| | | examScoreViews(row) { |
| | | //模拟考试 |
| | | if (row.examType == 2) { |
| | | this.$router.push({ |
| | |
| | | // 新增 |
| | | questionBankRowSave(row, done, loading) { |
| | | row.startTime = row.startTime + ":00"; |
| | | row['examType'] = 2; |
| | | row["examType"] = 2; |
| | | // row.endTime = row.examTime[1]; |
| | | // row.examTime = JSON.stringify(row.examTime); |
| | | add(row).then( |
| | |
| | | // row.examTime = row.examTime.split(","); |
| | | // } |
| | | const data = { |
| | | id:row.id, |
| | | startTime:row.startTime + ":00", |
| | | endTime:row.endTime + ":00", |
| | | } |
| | | id: row.id, |
| | | startTime: row.startTime + ":00", |
| | | endTime: row.endTime + ":00", |
| | | }; |
| | | // row.startTime = row.startTime + ":00"; |
| | | // row.endTime = row.endTime + ":00"; |
| | | // row.endTime = row.examTime[1]; |