| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/update', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/update', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const applyAudit = (row) => { |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/applyAudit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "通知时间", |
| | | label: "申请时间", |
| | | prop: "releaseTimeRange", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd", |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入通知时间", |
| | | message: "请输入申请时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | |
| | | slot: true, |
| | | searchSpan: 5, |
| | | search: true, |
| | | overHidden: true, |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | |
| | | prop: "age", |
| | | }, |
| | | { |
| | | label: "照片", |
| | | prop: "avatar", |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | }, |
| | | { |
| | | label: "保安证编号", |
| | | prop: "securityNumber", |
| | | search: true, |
| | |
| | | editDisplay: false, |
| | | // hide: true, |
| | | }, |
| | | |
| | | // { |
| | | // label: "申请人", |
| | | // prop: "createUser", |
| | |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // hide: true, |
| | | }, |
| | | { |
| | | label: "有无照片", |
| | | prop: "isAvatar", |
| | | type: "select", |
| | | search:true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 105, |
| | | searchSpan: 3, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | hide: true, |
| | | display: false, |
| | | dicData:[ |
| | | { |
| | | label:"全部", |
| | | value:3 |
| | | }, |
| | | { |
| | | label:"有", |
| | | value:1 |
| | | }, |
| | | { |
| | | label:"无", |
| | | value:2 |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | console.log(this.questionBankSearch, 456); |
| | | // console.log(this.questionBankSearch, 456); |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch['startTime'] = releaseTimeRange[0]; |
| | |
| | | idCardNo: this.questionBankSearch.idCardNo, |
| | | realName: this.questionBankSearch.realName, |
| | | securityNumber: this.questionBankSearch.securityNumber, |
| | | startTime: this.questionBankSearch.securityName, |
| | | endTime: this.questionBankSearch.examName, |
| | | startTime: this.questionBankSearch.startTime, |
| | | endTime: this.questionBankSearch.endTime, |
| | | }; |
| | | //导出 |
| | | if ( |
| | | this.userInfo.role_name == "保安公司管理员" || |
| | | this.userInfo.role_name == "保安" |
| | | ) { |
| | | //如果是保安公司管理员 |
| | | data["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | // if ( |
| | | // this.userInfo.role_name == "保安公司管理员" || |
| | | // this.userInfo.role_name == "保安" |
| | | // ) { |
| | | // //如果是保安公司管理员 |
| | | // data["deptId"] = this.userInfo.dept_id; |
| | | // } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | data["trainUnitId"] = this.userInfo.dept_id; |
| | | } |
| | | data["examType"] = 2; |
| | | // data["examType"] = 2; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/accreditationRecords/export-security-paper?` + data); |
| | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import dictVertical from "../util/demo/dict-vertical.vue"; |
| | | import { |
| | | update |
| | | } from "@/api/system/user"; |
| | | export default { |
| | | data () { |
| | | return { |
| | |
| | | this.$message({ message: '请完善住址信息', type: 'warning' }) |
| | | return |
| | | } |
| | | //更新发证时间 |
| | | this.updateUserInfo(); |
| | | var printDom = document.getElementById("securityCertificate"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.top = "-28.5%"; |
| | |
| | | */ |
| | | return [oneHoursAgoY, oneHoursAgoM] |
| | | }, |
| | | //更新用户发证时间 |
| | | updateUserInfo(){ |
| | | var nowTime = new Date() |
| | | var oneHoursAgo = new Date(new Date(nowTime).getTime() - 1 * 60 * 60 * 1000) |
| | | var oneHoursAgoY = oneHoursAgo.getFullYear() |
| | | var oneHoursAgoM = oneHoursAgo.getMonth() + 1 < 10 ? '0' + (oneHoursAgo.getMonth() + 1) : oneHoursAgo.getMonth() + 1 |
| | | var day = oneHoursAgo.getDay(); |
| | | var date = oneHoursAgoY + "-" + oneHoursAgoM + "-" + day; |
| | | const data = { |
| | | id:this.data.id, |
| | | rtime:this.data.rtime, |
| | | paperTime:date |
| | | } |
| | | update(data); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | //发证公安机关 (印章) |
| | | .security_m_l_center { |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: 15px; |
| | | top: 270px; |
| | | left: 30px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | |
| | | //公民身份证 |
| | | .security_m_r_d { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4; |
| | | top: 363px; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证时间 |
| | | $timeTop: 299px; //整体高度 |
| | | $timeTop: 309px; //整体高度 |
| | | //年 |
| | | .security_m_l_titlepaperTimenian { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 95px; |
| | | left: 110px; |
| | | line-height: 40px; |
| | | } |
| | | //月 |
| | | .security_m_l_titlepaperTimeyue { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 154px; |
| | | left: 169px; |
| | | line-height: 40px; |
| | | } |
| | | //日 |
| | |
| | | .security_m_l_downsecuritynumber { |
| | | position: absolute; |
| | | top: 379px; //整体高度 |
| | | left: 125px; |
| | | left: 145px; |
| | | } |
| | | |
| | | //内容 |
| | | // 姓名 |
| | | $centerLeft: 450px; |
| | | $centerLeft: 458px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht*0+ 0px; |
| | | top: $downTop + $lineHigeht*0-2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 生日 |
| | | .security_m_r_o_rightbirthday { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1-2px; |
| | | top: $downTop + $lineHigeht * 1-4px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 地址 |
| | | .security_m_r_o_rightaddress { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2 -4px; |
| | | top: $downTop + $lineHigeht * 2 -6px; |
| | | left: $centerLeft; |
| | | width: 160px; |
| | | font: bold 16px 'SimSun' !important; |
| | |
| | | // 身份证 |
| | | .security_m_r_o_rightcardid { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4 +6px; |
| | | top: $downTop + $lineHigeht * 4 -12px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | |
| | | * @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); |