| | |
| | | /* |
| | | * @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:16:42 |
| | | * 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: 280, |
| | | |
| | | labelWidth: 140, |
| | | |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "考试名称", |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | |
| | | methods: { |
| | | questionBankOnLoad(page, params = {}) { |
| | | this.questionBankLoading = false; |
| | | params['examType'] = 1; |
| | | params["examType"] = 1; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | |
| | | }, |
| | | // 新增 |
| | | questionBankRowSave(row, done, loading) { |
| | | row.startTime = row.startTime+":00"; |
| | | row['examType'] = 1; |
| | | row.startTime = row.startTime + ":00"; |
| | | row["examType"] = 1; |
| | | // row.endTime = row.examTime[1]; |
| | | // row.examTime = JSON.stringify(row.examTime); |
| | | add(row).then( |
| | |
| | | // if (Array.isArray(row.examTime) != true) { |
| | | // row.examTime = row.examTime.split(","); |
| | | // } |
| | | row.startTime = row.startTime+":00"; |
| | | row.startTime = row.startTime + ":00"; |
| | | // row.endTime = row.examTime[1]; |
| | | // row.examTime = JSON.stringify(row.examTime); |
| | | update(row).then( |