| | |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-04 18:54:44 |
| | | * menu-name 成绩管理 |
| | | * menu-name 成绩修改管理 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box"> |
| | |
| | | <el-button :type="type" |
| | | :size="size" |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.trainExam_check" |
| | | v-if="permission.score_audit_check" |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList, update } from "@/api/examapi/modifiedGrades"; |
| | | import { getList, update,applyAudit } from "@/api/examapi/modifiedGrades"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | export default { |
| | |
| | | }, |
| | | |
| | | { |
| | | label: "现理论成绩", |
| | | label: "修改后理论成绩", |
| | | prop: "newScore", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData( |
| | | this.permission.trainExam_performance_view, |
| | | this.permission.score_audit_view, |
| | | false |
| | | ), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData( |
| | | this.permission.trainExam_performance_edit, |
| | | false |
| | | ), |
| | | excelBtn: this.vaildData( |
| | | this.permission.trainExam_performance_export, |
| | | this.permission.score_audit_edit, |
| | | false |
| | | ), |
| | | }; |
| | |
| | | submit (row, done, loading) { |
| | | |
| | | row.auditTime = this.getNewTime() |
| | | const data = { |
| | | id:row.id, |
| | | status:row.status, |
| | | auditDetail:row.auditDetail, |
| | | auditUser:this.userInfo.Id |
| | | } |
| | | |
| | | update(row).then( |
| | | applyAudit(data).then( |
| | | () => { |
| | | this.dialogFormVisible = false; |
| | | this.questionBankOnLoad(this.questionBankPage); |