28 files modified
4 files added
| | |
| | | }) |
| | | } |
| | | |
| | | export const getAccreditationRecords = (id) => { |
| | | return request({ |
| | | url: '/api/accreditationRecords/details', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/accreditationRecords/remove', |
| New file |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getList = (current, size, params) => { |
| | | 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 |
| | | }) |
| | | } |
| | | |
| | | export const applyAudit = (row) => { |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/applyAudit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const updateAbsent = (row) => { |
| | | return request({ |
| | | url: '/api/examScore/updateAbsent', |
| | |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const updateGrade = (row) => { |
| | | return request({ |
| | | url: '/api/scoreAuditRecords/scoreUpdateApply', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | export const updatePaperTime = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/updatePaperTime', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const saveOrUpdateUserPractitionersInfo = (row) => { |
| | | return request({ |
| | | url: '/api/experience/saveOrUpdate', |
| New file |
| | |
| | | const Print = function (dom, options) { |
| | | if (!(this instanceof Print)) return new Print(dom, options); |
| | | |
| | | this.options = this.extend({ |
| | | noPrint: '.no-print', |
| | | onStart: function () {}, |
| | | onEnd: function () {} |
| | | }, options); |
| | | |
| | | if ((typeof dom) === "string") { |
| | | this.dom = document.querySelector(dom); |
| | | } else { |
| | | this.dom = dom; |
| | | } |
| | | |
| | | this.init(); |
| | | }; |
| | | Print.prototype = { |
| | | init: function () { |
| | | let content = this.getStyle() + this.getHtml(); |
| | | this.writeIframe(content); |
| | | }, |
| | | extend: function (obj, obj2) { |
| | | for (let k in obj2) { |
| | | obj[k] = obj2[k]; |
| | | } |
| | | return obj; |
| | | }, |
| | | |
| | | getStyle: function () { |
| | | let str = ""; |
| | | let styles = document.querySelectorAll('style,link'); |
| | | for (let i = 0; i < styles.length; i++) { |
| | | str += styles[i].outerHTML; |
| | | } |
| | | str += "<style>" + (this.options.noPrint ? this.options.noPrint : '.no-print') + "{display:none;}</style>"; |
| | | |
| | | return str; |
| | | }, |
| | | |
| | | getHtml: function () { |
| | | let inputs = document.querySelectorAll('input'); |
| | | let textareas = document.querySelectorAll('textarea'); |
| | | let selects = document.querySelectorAll('select'); |
| | | |
| | | for (let k in inputs) { |
| | | if (inputs[k].type === "checkbox" || inputs[k].type === "radio") { |
| | | if (inputs[k].checked === true) { |
| | | inputs[k].setAttribute('checked', "checked"); |
| | | } else { |
| | | inputs[k].removeAttribute('checked'); |
| | | } |
| | | } else if (inputs[k].type === "text") { |
| | | inputs[k].setAttribute('value', inputs[k].value); |
| | | } |
| | | } |
| | | |
| | | for (let k2 in textareas) { |
| | | if (textareas[k2].type === 'textarea') { |
| | | textareas[k2].innerHTML = textareas[k2].value; |
| | | } |
| | | } |
| | | |
| | | for (let k3 in selects) { |
| | | if (selects[k3].type === 'select-one') { |
| | | let child = selects[k3].children; |
| | | for (let i in child) { |
| | | if (child[i].tagName === 'OPTION') { |
| | | if (child[i].selected === true) { |
| | | child[i].setAttribute('selected', "selected"); |
| | | } else { |
| | | child[i].removeAttribute('selected'); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return this.dom.outerHTML; |
| | | }, |
| | | |
| | | writeIframe: function (content) { |
| | | let w; |
| | | let doc; |
| | | let iframe = document.createElement('iframe'); |
| | | let f = document.body.appendChild(iframe); |
| | | iframe.id = "myIframe"; |
| | | iframe.style = "position:absolute;width:0;height:0;top:-10px;left:-10px;"; |
| | | w = f.contentWindow || f.contentDocument; |
| | | doc = f.contentDocument || f.contentWindow.document; |
| | | doc.open(); |
| | | doc.write(content); |
| | | doc.close(); |
| | | this.toPrint(w, function () { |
| | | document.body.removeChild(iframe); |
| | | }); |
| | | }, |
| | | |
| | | toPrint: function (w, cb) { |
| | | let _this = this; |
| | | w.onload = function () { |
| | | try { |
| | | setTimeout(function () { |
| | | w.focus(); |
| | | typeof _this.options.onStart === 'function' && _this.options.onStart(); |
| | | if (!w.document.execCommand('print', false, null)) { |
| | | w.print(); |
| | | } |
| | | typeof _this.options.onEnd === 'function' && _this.options.onEnd(); |
| | | w.close(); |
| | | cb && cb(); |
| | | }); |
| | | } catch (err) { |
| | | console.log('err', err); |
| | | } |
| | | }; |
| | | } |
| | | }; |
| | | const MyPlugin = {}; |
| | | MyPlugin.install = function (Vue, options) { |
| | | // 4. 添加实例方法 |
| | | Vue.prototype.$print = Print; |
| | | }; |
| | | export default MyPlugin; |
| | |
| | | this.subjectInfo = subject |
| | | if (subject.hasOwnProperty('examSubjectOptions')) { |
| | | this.options = subject.examSubjectOptions |
| | | |
| | | console.log(this.options) |
| | | } |
| | | if (subject.hasOwnProperty('answer')) { |
| | | console.log(subject.answer); |
| | | this.setAnswer(subject.answer) |
| | | } |
| | | this.index = index + '.' |
| | | |
| | | console.log(subject, subjectCount, index, this.options, 5656565656) |
| | | }, |
| | | getSubjectInfo () { |
| | | this.subjectInfo.options = this.options |
| | |
| | | return this.userAnswer |
| | | }, |
| | | setAnswer (answer, option) { |
| | | console.log(answer); |
| | | if (answer != '') { |
| | | |
| | | this.userAnswer = answer |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | console.log(this.userAnswer) |
| | | |
| | | }, |
| | | |
| | |
| | | import website from '@/config/website'; |
| | | import crudCommon from '@/mixins/crud'; |
| | | |
| | | import Print from '@/assets/js/print'; |
| | | |
| | | Vue.use(Print); |
| | | |
| | | |
| | | import Map from './components/map/main'; |
| | | Vue.component('Map', Map); |
| | | |
| | |
| | | path = ""; |
| | | for (var k in d) { |
| | | if (d[k].peixun == true) { |
| | | // console.log(d[k]); |
| | | path = d[k].path; |
| | | } |
| | | } |
| | |
| | | mounted() { |
| | | var that = this; |
| | | ss().then((res) => { |
| | | console.log(that.ergodicData(res.data.data), 898989); |
| | | that.dic = that.ergodicData(res.data.data); |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | async allmedia() { |
| | | ss().then((res) => { |
| | | console.log(res, 1323); |
| | | res.data.data.forEach((element) => { |
| | | this.options.push({ |
| | | deptname: element.dept_name, |
| | |
| | | }] |
| | | }, |
| | | { |
| | | path: 'modifiedGrades', |
| | | name: '修改成绩管理', |
| | | meta: { |
| | | i18n: 'modifiedGrades' |
| | | }, |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/trainExam/modifiedGrades') |
| | | }, |
| | | { |
| | | path: '/accreditationRecords', |
| | | component: Layout, |
| | | redirect: '/accreditationRecords/accreditationRecords', |
| | |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/accreditationRecords/accreditationRecords') |
| | | }] |
| | | } |
| | | }, |
| | | { |
| | | path: '/certificateOfPrint', |
| | | component: Layout, |
| | | redirect: '/certificateOfPrint/index', |
| | | children: [{ |
| | | path: 'index', |
| | | name: '纸质证书制作', |
| | | meta: { |
| | | i18n: 'index' |
| | | }, |
| | | component: () => |
| | | import( /* webpackChunkName: "views" */ '@/views/securityGuard/certificateOfPrint') |
| | | }] |
| | | }, |
| | | ] |
| | |
| | | @row-del="rowDel" |
| | | v-model="form" |
| | | :permission="permissionList" |
| | | :search.sync="questionBankSearch" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | :before-open="beforeOpen" |
| | |
| | | plain |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | v-if="permission.accreditationRecords_export" |
| | | @click="handleExport" |
| | | >保安员证信息导出 |
| | | </el-button> |
| | | <!-- v-if="permission.notice_delete" --> |
| | | </template> |
| | |
| | | remove, |
| | | update, |
| | | add, |
| | | getAccreditationRecords |
| | | } from "@/api/accreditationRecords/accreditationRecords"; |
| | | import { getDept } from "@/api/system/dept"; |
| | | import { mapGetters } from "vuex"; |
| | | import { mapState } from "vuex"; |
| | | |
| | | import Qs from "qs"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | questionBankSearch: {}, |
| | | loading: true, |
| | | deptCategory: "", |
| | | deptId: "", |
| | |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | // selection: true, |
| | | excelBtn: false, |
| | | addBtnText: "发布", |
| | | addTitle: "发布", |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "申请时间", |
| | | prop: "releaseTimeRange", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | searchRange: true, |
| | | hide: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | search: true, |
| | | searchSpan:6, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入申请时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width:100, |
| | | searchLabelWidth: 50, |
| | | display: false, |
| | | // display: false, |
| | | }, |
| | | // { |
| | | // label: "所属保安公司", |
| | |
| | | // }, |
| | | slot: true, |
| | | searchSpan: 5, |
| | | display: false, |
| | | search: true, |
| | | overHidden: true, |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | searchSpan: 5, |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "年龄", |
| | | prop: "age", |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "照片", |
| | | prop: "avatar", |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | }, |
| | | { |
| | | label: "保安证编号", |
| | |
| | | editDisplay: false, |
| | | // hide: true, |
| | | }, |
| | | |
| | | // { |
| | | // label: "申请人", |
| | | // prop: "createUser", |
| | |
| | | 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 |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }, |
| | | data: [], |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.notice_view, false), |
| | | viewBtn: this.vaildData(this.permission.accreditationRecords_view, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getNotice(this.form.id).then((res) => { |
| | | getAccreditationRecords(this.form.id).then((res) => { |
| | | this.form = res.data.data; |
| | | }); |
| | | } |
| | |
| | | ? (that.deptCategory = true) |
| | | : (that.deptCategory = false); |
| | | |
| | | // const { releaseTimeRange } = this.query; |
| | | const { releaseTimeRange } = this.query; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | params["type"] = 1; |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | // if (releaseTimeRange) { |
| | | // values = { |
| | | // ...params, |
| | | // startTime: releaseTimeRange[0], |
| | | // endTime: releaseTimeRange[1], |
| | | // ...this.query, |
| | | // }; |
| | | // values.releaseTimeRange = null; |
| | | // } |
| | | if (releaseTimeRange) { |
| | | values = { |
| | | ...params, |
| | | startTime: releaseTimeRange[0], |
| | | endTime: releaseTimeRange[1], |
| | | ...this.query, |
| | | }; |
| | | values.releaseTimeRange = null; |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | //保安员证信息导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出保安员证信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch['startTime'] = releaseTimeRange[0]; |
| | | this.questionBankSearch['endTime'] = releaseTimeRange[1]; |
| | | } |
| | | var data = { |
| | | deptName: this.questionBankSearch.deptName, |
| | | idCardNo: this.questionBankSearch.idCardNo, |
| | | realName: this.questionBankSearch.realName, |
| | | securityNumber: this.questionBankSearch.securityNumber, |
| | | 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 == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | data["trainUnitId"] = this.userInfo.dept_id; |
| | | } |
| | | // data["examType"] = 2; |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/accreditationRecords/export-security-paper?` + data); |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified time: 2021-11-05 12:02:28 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | |
| | | // if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | // this.questionBankOption.column[0].dicUrl = |
| | |
| | | created(){ |
| | | var d = this.$route.query; |
| | | this.url += "?data=" + JSON.stringify(d); |
| | | console.log(d,11); |
| | | }, |
| | | mounted() { |
| | | var flag = false, |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified time: 2021-11-05 12:02:26 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box-apply-exam"> |
| | | <el-col :span="24" class="hasButOne"> |
| | | <el-col :span="24" |
| | | class="hasButOne"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <avue-crud |
| | | v-model="obj" |
| | | <avue-crud v-model="obj" |
| | | class="company-box" |
| | | :option="questionBankOption" |
| | | :search.sync="questionBankSearch" |
| | |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel" |
| | | > |
| | | @row-del="questionBankRowDel"> |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | |
| | | </template> --> |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="primary" |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleBatchExam" |
| | | v-if="permission.applyexam_exam" |
| | | >生成考试 |
| | | v-if="permission.applyexam_exam">生成考试 |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | | <el-button |
| | | type="primary" |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.applyexam_import" |
| | | @click="handleImport" |
| | | >批量报名 |
| | | @click="handleImport">批量报名 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, row }" slot="menu"> |
| | | <el-button |
| | | :type="type" |
| | | <template slot-scope="{ type, row }" |
| | | slot="menu"> |
| | | <el-button :type="type" |
| | | size="small" |
| | | icon="el-icon-refresh-left" |
| | | v-if="permission.applyexam_cancel" |
| | | :disabled="row.isApply == 2" |
| | | @click="handleCancel(row)" |
| | | >取消报名 |
| | | @click="handleCancel(row)">取消报名 |
| | | </el-button> |
| | | <el-button |
| | | style="display: none" |
| | | <el-button style="display: none" |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-folder-checked" |
| | | :disabled="row.applyStatus == 4" |
| | | @click="handleAudit(row)" |
| | | >审核 |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | <el-button |
| | | :type="type" |
| | | <el-button :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | v-if="permission.applyexam_print && row.candidateNo!=''" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | @click="handlePrint(row)">准考证打印 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="age"> |
| | | <template slot-scope="{ row }" |
| | | slot="age"> |
| | | {{ row.age == -1 ? "" : row.age }} |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="考试资格审核" |
| | | <el-dialog title="考试资格审核" |
| | | :visible.sync="dialogFormVisible" |
| | | modal-append-to-body="false" |
| | | append-to-body="true" |
| | | :close-on-click-model="true" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | :close-on-click-model="true"> |
| | | <avue-form ref="formAudit" |
| | | v-model="Audit" |
| | | :option="optionAudit" |
| | | @reset-change="emptytChange" |
| | | @submit="submit" |
| | | ></avue-form> |
| | | @submit="submit"></avue-form> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="批量报名导入" |
| | | <el-dialog title="批量报名导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="考试生成" |
| | | <el-dialog title="考试生成" |
| | | append-to-body |
| | | :visible.sync="dialogExamFormVisible" |
| | | width="900px" |
| | | @close="closeDialog" |
| | | > |
| | | <avue-form |
| | | ref="formExamApply" |
| | | @close="closeDialog"> |
| | | <avue-form ref="formExamApply" |
| | | v-model="examApply" |
| | | :option="optionExamApply" |
| | | @reset-change="emptytChange" |
| | | @submit="submitExamApply" |
| | | ></avue-form> |
| | | @submit="submitExamApply"></avue-form> |
| | | </el-dialog> |
| | | </div> |
| | | </el-card> |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | |
| | | if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | this.examPersission = true; |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | rowClick(row) { |
| | | // console.log(row); |
| | | window.localStorage.setItem("paqiandata", JSON.stringify(row)); |
| | | this.$router.push({ |
| | | path: "/dispatchChild", |
| | |
| | | if (this.useifid != 266) { |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | // console.log(values); |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | values["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | console.log(params); |
| | | getdata( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | // Object.assign(params, this.query) |
| | | values |
| | | ).then((res) => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | created() { |
| | | var that = this; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | deptColumn.hide = true; |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | }, |
| | | selectionChange1(list) { |
| | | this.selectionList1 = list; |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | this.data1 = data.records; |
| | | this.loading1 = false; |
| | | // this.$nextTick(() => this.$refs.crudrec1.dicInit("cascader")); |
| | | console.log(this.form, 111111); |
| | | }); |
| | | }, |
| | | initData(type) { |
| | |
| | | this.option1.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | // console.log(res.data.data, 111); |
| | | dispatcherUnitIdColumn.dicData = res.data.data; |
| | | }); |
| | | } |
| | |
| | | // // this.initData(); |
| | | // // } |
| | | // deps(){ |
| | | // console.log(this.deps,5646646) |
| | | // } |
| | | // }, |
| | | mounted() { |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.option1.column[1]["value"] = this.userInfo.dept_id; |
| | | this.option1.column[3]["value"] = this.userInfo.Id; |
| | | this.option1.column[4]["value"] = this.userInfo.nick_name; |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject(this.option1.column, "deptId"); |
| | | deptColumn.search = false; |
| | | } else { |
| | |
| | | }, |
| | | selectionChange1(list) { |
| | | this.selectionList1 = list; |
| | | // console.log(this.selectionList1.length); |
| | | }, |
| | | handleDelete1() { |
| | | console.log(this.selectionList1); |
| | | if (this.selectionList1.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | this.option1.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | // console.log(res.data.data, 111); |
| | | dispatcherUnitIdColumn.dicData = res.data.data; |
| | | }); |
| | | } |
| | |
| | | // // this.initData(); |
| | | // // } |
| | | // deps(){ |
| | | // console.log(this.deps,5646646) |
| | | // } |
| | | // }, |
| | | mounted() { |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | // console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | |
| | | }); |
| | | }, |
| | | refreshChange1() { |
| | | // console.log(4534) |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | |
| | | // params["name"] = this.name; |
| | | // params["dispatcherCompany"] = this.dispatcherCompany; |
| | | params["dispatcherUnitId"] = this.id; |
| | | // console.log(params, "get"); |
| | | getdata1( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | // console.log(res); |
| | | const data = res.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | |
| | | // this.data1[k].securityName = this.data1[k].securityName.split(","); |
| | | // this.data1[k].securityName = this.data1[k].securityName.join(" | "); |
| | | // } |
| | | console.log(this.data1, 1); |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | |
| | | if (i == 1) { |
| | | // console.log("存在"); |
| | | } else { |
| | | // console.log("已删除"); |
| | | |
| | | this.obj0 = {}; |
| | | this.obj0.name = row.name + " 该派遣单位已删除"; |
| | |
| | | } |
| | | } |
| | | } else { |
| | | // console.log("no"); |
| | | this.obj0.name = " 未选择派遣单位"; |
| | | } |
| | | }, |
| | |
| | | data: this.index, |
| | | }); |
| | | this.inputs[`input${this.index + 1}`] = ""; |
| | | console.log(this.inputs); |
| | | console.log(this.list, 111); |
| | | }, |
| | | //减一行 |
| | | deleteRows(index) { |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 15:47:06 |
| | | * @Last Modified time: 2021-11-05 12:02:20 |
| | | * menu-name 题目管理 |
| | | */ |
| | | <template> |
| | |
| | | data () { |
| | | |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value) |
| | | if (value == undefined || value == '') { |
| | | callback(new Error('请输入分数')); |
| | | return; |
| | |
| | | }, |
| | | |
| | | questionBankRowSave (row, done, loading) { |
| | | console.log(row, 898989); |
| | | |
| | | add(row).then(() => { |
| | | this.initFlag = false; |
| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 17:11:18 |
| | | * @Last Modified time: 2021-11-05 12:02:20 |
| | | * menu-name 试卷管理 |
| | | */ |
| | | <template> |
| | |
| | | data () { |
| | | |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value) |
| | | if (value == undefined || value == '') { |
| | | callback(new Error('请输入分数')); |
| | | return; |
| | |
| | | created(){ |
| | | var d = this.$route.query; |
| | | this.url += "?data=" + JSON.stringify(d); |
| | | console.log(d,11); |
| | | }, |
| | | mounted() { |
| | | var flag = false, |
| | |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value); |
| | | if (value == undefined || value == "") { |
| | | callback(new Error("请输入实操成绩")); |
| | | return; |
| | |
| | | <template> |
| | | <div class="baoanzheng-1" id="baoanzheng-1"> |
| | | <div class="baz-main-1" ref="baoanzheng1"> |
| | | <img class="baz-main-img1" :src="data.avatar" alt="" /> |
| | | <div class="baz-main-img1-2"> |
| | | <img class="baz-main-img1-2-i" :src="erweima" alt="" /> |
| | | <div class="baoanzheng-1" |
| | | id="baoanzheng-1"> |
| | | <div class="baz-main-1" |
| | | ref="baoanzheng1"> |
| | | <img class="baz-main-img1" |
| | | :src="data.avatar" |
| | | alt="" /> |
| | | <div class="baz-main-img1-2" |
| | | v-if='permission.securityGuard_workLicense'> |
| | | <img class="baz-main-img1-2-i" |
| | | :src="erweima" |
| | | alt="" /> |
| | | </div> |
| | | <div class="b-m-ups-1"> |
| | | {{ data.realName }} |
| | |
| | | {{ data.paperTime || "---" }} |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer no-print PrintBut"> |
| | | <el-button type="primary" @click="Print" v-show="closePrint != 1" |
| | | >打 印</el-button |
| | | > |
| | | <el-button type="primary" @click="closeME" v-show="close == 1" |
| | | >返 回</el-button |
| | | > |
| | | <span slot="footer" |
| | | class="dialog-footer no-print PrintBut"> |
| | | <!-- v-show="closePrint != 1" --> |
| | | <el-button v-show='false' |
| | | type="primary" |
| | | @click="Print">打 印</el-button> |
| | | <el-button type="primary" |
| | | @click="closeME" |
| | | v-show="close == 1">返 回</el-button> |
| | | </span> |
| | | </div> |
| | | </template> |
| | |
| | | // } |
| | | // }) |
| | | // } |
| | | |
| | | import { mapGetters } from "vuex"; |
| | | import { getER } from "@/api/performance/performance"; |
| | | export default { |
| | | props: ["data", "close", "closePrint"], |
| | |
| | | erweima: "", |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | }, |
| | | created () { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | getER(this.data.securitynumber).then((res) => { |
| | | this.erweima = res.data; |
| | | // console.log(res.data); |
| | |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | .baz-main-1 { |
| | | background-image: url("/img/register/bazbj2.png"); |
| | | background-image: url('/img/register/bazbj2.png'); |
| | | background-size: 100% 100%; |
| | | width: calc(1274px * 0.5) !important; |
| | | height: calc(828px * 0.5) !important; |
| New file |
| | |
| | | <template> |
| | | <el-row class='securityGuard'> |
| | | <el-col :span="24"> |
| | | <basic-container> |
| | | <securityCertificate :data="obj0" |
| | | v-if="hold == 1"></securityCertificate> |
| | | <div v-else |
| | | style="width: 100%; text-align: center; padding-top: 20px"> |
| | | 无保安员证 |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import securityCertificate from "./securityCertificate.vue"; |
| | | import baoanz from "./baoanz.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | securityCertificate: securityCertificate, |
| | | baoanz, |
| | | }, |
| | | data () { |
| | | return { |
| | | obj0: { |
| | | title: "我是头部标题", |
| | | }, |
| | | hold: "", |
| | | }; |
| | | }, |
| | | mounted () { |
| | | var data = JSON.parse(this.$route.query.row); |
| | | if (data) { |
| | | var row = data; |
| | | for (var k in row) { |
| | | this.obj0[k] = row[k]; |
| | | } |
| | | this.obj0.title = ""; |
| | | this.hold = row.hold; |
| | | } |
| | | |
| | | var flag = false, |
| | | i = 0, |
| | | ind = null; |
| | | this.$store.state.tags.tagList.forEach((item, index) => { |
| | | if (item.label == "纸质证书制作") { |
| | | if (flag == false) { |
| | | ind = index; |
| | | flag = true; |
| | | } |
| | | i++; |
| | | } |
| | | }); |
| | | if (i > 1) { |
| | | this.$store.state.tags.tagList.splice(ind, 1); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | </style> |
| | |
| | | searchSpan: 3, |
| | | width: 69, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | | dicData: [{ |
| | | label: "是", |
| | | value: "1", |
| | | }, |
| | |
| | | }], |
| | | }, |
| | | |
| | | { |
| | | label: "是否制证", |
| | | prop: "userType", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey", |
| | | // }, |
| | | type: "select", |
| | | slot: true, |
| | | search: true, |
| | | // searchValue: 7, |
| | | searchSpan: 3, |
| | | width: 69, |
| | | dicData: [{ |
| | | label: "已制证", |
| | | value: 6, |
| | | }, |
| | | { |
| | | label: "未制证", |
| | | value: 7, |
| | | } |
| | | ], |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | |
| | | // { |
| | | // label: "发证日期", |
| | | // prop: "papertime", |
| | |
| | | <template> |
| | | <div class="securityCertificate" id="securityCertificate"> |
| | | <div class="security_main" ref="securityCertificate"> |
| | | <div class="securityCertificate" |
| | | id="securityCertificate"> |
| | | <div class="security_main" |
| | | ref="securityCertificate"> |
| | | <!-- 标题 --> |
| | | <div class="security_main_backImge no-print"></div> |
| | | <div class="security_main-title no-print"> |
| | |
| | | <div class="security_m_l_center no-print"> |
| | | 发证公安机关 (印章)<br /> |
| | | 发证日期 |
| | | 年 月 |
| | | 年 月 |
| | | </div> |
| | | <div class="security_m_l_down no-print">证件编号</div> |
| | | <div class="security_m_r_a no-print">姓名</div> |
| | |
| | | <!-- 内容 --> |
| | | <div class="security_m_r_imgs no-print"> |
| | | <div v-if="!data.avatar">暂无照片</div> |
| | | <img :src="data.avatar" alt="" v-else /> |
| | | <img :src="data.avatar" |
| | | alt="" |
| | | v-else /> |
| | | </div> |
| | | <div class="security_m_l_titleName widt">{{ data.realName }}</div> |
| | | <div class="security_m_l_titlepaperTimenian widt"> |
| | | {{ data.paperTime.slice(0, 4) }} |
| | | {{ year }} |
| | | </div> |
| | | <div class="security_m_l_titlepaperTimeyue widt"> |
| | | {{ data.paperTime.slice(5, 7) }} |
| | | {{ month }} |
| | | </div> |
| | | <!-- <div class="security_m_l_titlepaperTimeri"> |
| | | {{ data.paperTime.slice(8, 10) }} |
| | |
| | | </div> |
| | | <div class="security_m_r_o_right widt">{{ data.realName }}</div> |
| | | <div class="security_m_r_o_rightbirthday widt"> |
| | | {{ data.cardid.slice(6, 10) }}. {{ data.cardid.slice(10, 12) }}. |
| | | {{ data.cardid.slice(12, 14) }} |
| | | {{ data.cardid.slice(6, 10) }}.{{ data.cardid.slice(10, 12) }}.{{ data.cardid.slice(12, 14) }} |
| | | </div> |
| | | <div class="security_m_r_o_rightaddress security_m_r_o_l_r widt"> |
| | | {{ data.address }} |
| | | {{ data.registered }} |
| | | </div> |
| | | <div class="security_m_r_o_rightcardid">{{ data.cardid }}</div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer no-print PrintBut"> |
| | | <el-button type="primary" @click="Print">打 印</el-button> |
| | | <span slot="footer" |
| | | class="dialog-footer no-print PrintBut" |
| | | v-if='permission.securityGuard_securityCertificate'> |
| | | <el-button type="primary" |
| | | @click="Print">打 印</el-button> |
| | | </span> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import dictVertical from "../util/demo/dict-vertical.vue"; |
| | | import { |
| | | updatePaperTime |
| | | } from "@/api/system/user"; |
| | | export default { |
| | | data () { |
| | | return { |
| | | year: null, |
| | | month: null |
| | | } |
| | | }, |
| | | components: { dictVertical }, |
| | | props: ["data"], |
| | | created () { |
| | | var time = this.getNewTime() |
| | | this.year = time[0] |
| | | this.month = time[1] |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | }, |
| | | methods: { |
| | | Print() { |
| | | var printDom = document.getElementById("securityCertificate"); |
| | | if (this.data.registered == '' || this.data.registered == null) { |
| | | this.$message({ message: '请完善住址信息', type: 'warning' }) |
| | | return |
| | | } |
| | | //更新发证时间 |
| | | this.updateUserInfo(); |
| | | var printDom = document.getElementById("securityCertificates"); |
| | | |
| | | console.log(printDom) |
| | | |
| | | |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.top = "-26%"; |
| | | printDom.style.left = "-12%"; |
| | | printDom.style.top = "-28.5%"; |
| | | printDom.style.left = "-23%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | printDom.style.fontFamily = "SimSun"; |
| | | this.$Print(this.$refs.securityCertificate); |
| | | printDom.style.position = "relative"; |
| | | printDom.style.left = "0"; |
| | | printDom.style.width = "100%"; |
| | | printDom.style.height = "auto"; |
| | | }, |
| | | getNewTime () { |
| | | 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 |
| | | |
| | | /** |
| | | * @return 返回1小时,2小时,3小时,4小时,24小时 |
| | | */ |
| | | 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, |
| | | userType:6, |
| | | paperTime:date |
| | | } |
| | | updatePaperTime(data); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | font: bold 18px 'SimSun' !important; |
| | | } |
| | | .security_main { |
| | | width: 630px; |
| | |
| | | position: relative; |
| | | } |
| | | // 标题 |
| | | $upTop: 55px; |
| | | $downTop: 228px; //整体高度 |
| | | $upTop: 45px; |
| | | $downTop: 265px; //整体高度 |
| | | //经国家保安员考试审查合格。<br />特颁此证。 |
| | | .security_main-title { |
| | | position: absolute; |
| | | top: $upTop; |
| | | left: 39px; |
| | | left: 34px; |
| | | line-height: 45px; |
| | | font-size: 22px; |
| | | font-weight: 300; |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证公安机关 (印章) |
| | | .security_m_l_center { |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: 32px; |
| | | font-size: 16px; |
| | | top: 267px; |
| | | left: 30px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_down { |
| | | position: absolute; |
| | | top: 421px; |
| | | top: 370px; |
| | | left: 32px; |
| | | font-size: 24px; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | $rightLeft: 343px; |
| | |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: $rightLeft; |
| | | font-size: $rightFontSize; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | | font-weight: 500; |
| | | } |
| | | //出生年月 |
| | | .security_m_r_b { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1; |
| | | left: $rightLeft; |
| | | font-size: $rightFontSize; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2; |
| | | left: $rightLeft; |
| | | font-size: $rightFontSize; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | |
| | | //公民身份证 |
| | | .security_m_r_d { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4; |
| | | top: 382px; |
| | | left: $rightLeft; |
| | | font-size: $rightFontSize; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | |
| | | // 抬头名字 |
| | | .security_m_l_titleName { |
| | | position: absolute; |
| | | top: 13px; |
| | | left: 44px; |
| | | top: 45px; |
| | | left: 121px; |
| | | line-height: 45px; |
| | | font-size: 17px; |
| | | font-weight: 300; |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证时间 |
| | | $timeTop: 280px; //整体高度 |
| | | $timeTop: 306px; //整体高度 |
| | | //年 |
| | | .security_m_l_titlepaperTimenian { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 25px; |
| | | font-size: 18px; |
| | | left: 107px; |
| | | line-height: 40px; |
| | | // font-weight: 500; |
| | | } |
| | | //月 |
| | | .security_m_l_titlepaperTimeyue { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 75px; |
| | | font-size: 18px; |
| | | left: 166px; |
| | | line-height: 40px; |
| | | // font-weight: 500; |
| | | } |
| | | //日 |
| | | .security_m_l_titlepaperTimeri { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 164px; |
| | | font-size: 18px; |
| | | left: 159px; |
| | | line-height: 40px; |
| | | // font-weight: 500; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_downsecuritynumber { |
| | | position: absolute; |
| | | top: 357px; //整体高度 |
| | | left: 54px; |
| | | font-size: 17px; |
| | | top: 370px; //整体高度 |
| | | left: 145px; |
| | | } |
| | | |
| | | //内容 |
| | | // 姓名 |
| | | $centerLeft: 365px; |
| | | $centerLeft: 458px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + 2px; |
| | | top: $downTop + $lineHigeht * 0-2px; |
| | | left: $centerLeft; |
| | | font-size: $rightFontSize; |
| | | // width: $rightWidth; |
| | | // font-weight: 500; |
| | | } |
| | | // 生日 |
| | | .security_m_r_o_rightbirthday { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1; |
| | | top: $downTop + $lineHigeht * 1-4px; |
| | | left: $centerLeft; |
| | | font-size: $rightFontSize; |
| | | // width: $rightWidth; |
| | | // font-weight: 500; |
| | | } |
| | | // 地址 |
| | | .security_m_r_o_rightaddress { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2 -5px; |
| | | top: $downTop + $lineHigeht * 2 -6px; |
| | | left: $centerLeft; |
| | | font-size: 15px; |
| | | width: 160px; |
| | | // font-weight: 500; |
| | | font: bold 16px 'SimSun' !important; |
| | | } |
| | | // 身份证 |
| | | .security_m_r_o_rightcardid { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4 +8px; |
| | | top: $downTop + $lineHigeht * 4+6px; |
| | | left: $centerLeft; |
| | | font-size: $rightFontSize; |
| | | // width: $rightWidth; |
| | | // font-weight: 500; |
| | | } |
| | | //背景图 |
| | | .security_main_backImge { |
| | |
| | | background-repeat: no-repeat; |
| | | } |
| | | // .widt{ |
| | | // font-weight: 550; |
| | | // } |
| | | </style> |
| | |
| | | <template> |
| | | <el-row :class="{ securityGuard: isSecurity }"> |
| | | <el-col :span="0" style="display: none"> |
| | | |
| | | <el-col :span="0" |
| | | style="display: none"> |
| | | <div class="box"> |
| | | <el-scrollbar> |
| | | <basic-container> |
| | | <avue-tree |
| | | :option="treeOption" |
| | | <avue-tree :option="treeOption" |
| | | :data="treeData" |
| | | @node-click="nodeClick" |
| | | /> |
| | | @node-click="nodeClick" /> |
| | | </basic-container> |
| | | </el-scrollbar> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <basic-container> |
| | | <avue-crud |
| | | :option="option" |
| | | <avue-crud :option="option" |
| | | :search.sync="search" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | @on-load="onLoad"> |
| | | <!-- @row-update="rowUpdate" --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="success" |
| | | <el-button type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.securityGuard_import" |
| | | @click="handleImport1" |
| | | >保安员批量导入 |
| | | @click="handleImport1">保安员批量导入 |
| | | </el-button> |
| | | <el-button |
| | | type="success" |
| | | <el-button type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.securityGuard_import" |
| | | @click="handleImport2" |
| | | >个人照片批量上传 |
| | | @click="handleImport2">个人照片批量上传 |
| | | </el-button> |
| | | <el-button |
| | | style="display:none" |
| | | type="primary" |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | v-if="permission.securityGuard_security_apply" |
| | | icon="el-icon-s-promotion" |
| | | @click="handleSecurityApply" |
| | | >制证申请 |
| | | @click="handleSecurityApply">上岗证制证申请 |
| | | </el-button> |
| | | |
| | | <el-button |
| | | type="danger" |
| | | <el-button type="danger" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | @click="handleDelete" |
| | | >注 销 |
| | | @click="handleDelete">注 销 |
| | | </el-button> |
| | | <el-button |
| | | type="info" |
| | | <el-button type="info" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | v-if="permission.user_role" |
| | | icon="el-icon-user" |
| | | @click="handleGrant" |
| | | >角色配置 |
| | | @click="handleGrant">角色配置 |
| | | </el-button> |
| | | <el-button |
| | | type="info" |
| | | <el-button type="info" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | v-if="permission.user_reset" |
| | | icon="el-icon-refresh" |
| | | @click="handleReset" |
| | | >密码重置 |
| | | @click="handleReset">密码重置 |
| | | </el-button> |
| | | <el-button |
| | | type="info" |
| | | <el-button type="info" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-setting" |
| | | @click="handlePlatform" |
| | | >平台配置 |
| | | @click="handlePlatform">平台配置 |
| | | </el-button> |
| | | <el-button |
| | | type="success" |
| | | <el-button type="success" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-upload2" |
| | | @click="handleImport" |
| | | >导入 |
| | | @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | <el-button type="warning" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-download" |
| | | @click="handleExport" |
| | | >导出 |
| | | @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-s-custom" |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | <el-button icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | @click.stop="rowClick(row)">查看 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | <el-button icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_delete && row.status != 2" |
| | | @click.stop="rowStatus(row)" |
| | | >离职登记 |
| | | @click.stop="rowStatus(row)">离职登记 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | <el-button icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="row.status == 2" |
| | | @click.stop="rowDellook(row)" |
| | | >离职查询 |
| | | @click.stop="rowDellook(row)">离职查询 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | <el-button icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_check" |
| | | @click.stop="rowCheck(row)" |
| | | >异常 |
| | | @click.stop="rowCheck(row)">异常 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_paper" |
| | | @click.stop="certificateClick(row)">纸质证书制作 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="sex"> |
| | | <template slot-scope="{ row }" |
| | | slot="sex"> |
| | | <el-tag v-if="row.sex == 1">男</el-tag> |
| | | <el-tag v-if="row.sex == 2">女</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="deptId"> |
| | | <el-tag |
| | | class="rowClickSelf" |
| | | <template slot-scope="{ row }" |
| | | slot="deptId"> |
| | | <el-tag class="rowClickSelf" |
| | | title="点击查看所属公司情况" |
| | | @click="rowClickSelf(row.deptId)" |
| | | >{{ row.deptName }}</el-tag |
| | | > |
| | | @click="rowClickSelf(row.deptId)">{{ row.deptName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="tenantName"> |
| | | <template slot-scope="{ row }" |
| | | slot="tenantName"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="roleName"> |
| | | <template slot-scope="{ row }" |
| | | slot="roleName"> |
| | | <el-tag>{{ row.roleName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="deptName"> |
| | | <template slot-scope="{ row }" |
| | | slot="deptName"> |
| | | <el-tag>{{ row.deptName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="userTypeName"> |
| | | <template slot-scope="{ row }" |
| | | slot="userTypeName"> |
| | | <el-tag>{{ row.userTypeName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" |
| | | slot="userType"> |
| | | |
| | | {{ |
| | | row.userType == 6 ? '已制证' : row.userType == 7 ? '未制证' : '' |
| | | }} |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog |
| | | title="用户角色配置" |
| | | <el-dialog title="用户角色配置" |
| | | append-to-body |
| | | :visible.sync="roleBox" |
| | | width="345px" |
| | | > |
| | | <el-tree |
| | | :data="roleGrantList" |
| | | width="345px"> |
| | | <el-tree :data="roleGrantList" |
| | | show-checkbox |
| | | check-strictly |
| | | default-expand-all |
| | | node-key="id" |
| | | ref="treeRole" |
| | | :default-checked-keys="roleTreeObj" |
| | | :props="props" |
| | | > |
| | | :props="props"> |
| | | </el-tree> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <span slot="footer" |
| | | class="dialog-footer"> |
| | | <el-button @click="roleBox = false">取 消</el-button> |
| | | <el-button type="primary" @click="submitRole">确 定</el-button> |
| | | <el-button type="primary" |
| | | @click="submitRole">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="用户数据导入" |
| | | <el-dialog title="用户数据导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="用户平台配置" |
| | | <el-dialog title="用户平台配置" |
| | | append-to-body |
| | | :visible.sync="platformBox" |
| | | > |
| | | <avue-crud |
| | | :option="platformOption" |
| | | :visible.sync="platformBox"> |
| | | <avue-crud :option="platformOption" |
| | | :table-loading="platformLoading" |
| | | :data="platformData" |
| | | ref="platformCrud" |
| | |
| | | @current-change="platformCurrentChange" |
| | | @size-change="platformSizeChange" |
| | | @refresh-change="platformRefreshChange" |
| | | @on-load="platformOnLoad" |
| | | > |
| | | <template slot-scope="{ row }" slot="tenantName"> |
| | | @on-load="platformOnLoad"> |
| | | <template slot-scope="{ row }" |
| | | slot="tenantName"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="userTypeName"> |
| | | <template slot-scope="{ row }" |
| | | slot="userTypeName"> |
| | | <el-tag>{{ row.userTypeName }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="保安员导入" |
| | | <el-dialog title="保安员导入" |
| | | append-to-body |
| | | :visible.sync="excelBox1" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption1" |
| | | width="555px"> |
| | | <avue-form :option="excelOption1" |
| | | v-model="excelForm1" |
| | | :upload-after="uploadAfter1" |
| | | > |
| | | :upload-after="uploadAfter1"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate1"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate1"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="个人照片批量上传" |
| | | <el-dialog title="个人照片批量上传" |
| | | append-to-body |
| | | :visible.sync="excelBox2" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption2" |
| | | width="555px"> |
| | | <avue-form :option="excelOption2" |
| | | v-model="excelForm2" |
| | | :upload-after="uploadAfter2" |
| | | > |
| | | :upload-after="uploadAfter2"> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <div style="position: fixed; top: 9999px; width: 100%; height: 100%; "> |
| | | <div class="certificate_box" |
| | | id="certificateDom"> |
| | | <div class="security_main" |
| | | ref="certificateBox"> |
| | | <div class="security_m_l_titleName widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_jg widt"> |
| | | 南昌市公安局 |
| | | </div> |
| | | <div class="security_m_l_titlepaperTimenian widt"> |
| | | {{ certificateYear }} |
| | | </div> |
| | | <div class="security_m_l_titlepaperTimeyue widt"> |
| | | {{ certificateMonth }} |
| | | </div> |
| | | <div class="security_m_l_downsecuritynumber widt"> |
| | | {{ certificateObj.securitynumber }} |
| | | </div> |
| | | <div class="security_m_r_o_right widt"> |
| | | {{ certificateObj.realName }} |
| | | </div> |
| | | <div class="security_m_r_o_rightbirthday widt"> |
| | | {{ certificateObj.cardid ? (certificateObj.cardid.slice(6, 10) +'.'+ certificateObj.cardid.slice(10, 12) +'.'+ certificateObj.cardid.slice(12, 14)) : '' }} |
| | | </div> |
| | | <div class="security_m_r_o_rightaddress security_m_r_o_l_r widt"> |
| | | {{ certificateObj.registered }} |
| | | </div> |
| | | <div class="security_m_r_o_rightcardid"> |
| | | {{ certificateObj.cardid }} |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | grant, |
| | | resetPassword, |
| | | getUserPractitionersInfo, |
| | | updatePaperTime, |
| | | saveOrUpdateUserPractitionersInfo, |
| | | } from "@/api/system/user"; |
| | | import {securityApply} from '@/api/accreditationRecords/accreditationRecords' |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | console.log(this.userInfo, 123); |
| | | |
| | | return { |
| | | certificateYear: null, |
| | | certificateMonth: null, |
| | | certificateFlag: false, |
| | | certificateObj: { |
| | | realName: '', |
| | | securitynumber: '', |
| | | cardid: '', |
| | | registered: '' |
| | | }, |
| | | securityid: "", |
| | | excelBox1: false, |
| | | excelBox2: false, |
| | |
| | | label: "电子邮箱", |
| | | prop: "email", |
| | | }, |
| | | { |
| | | label: "籍贯", |
| | | prop: "nativeplace", |
| | | }, |
| | | // { |
| | | // label: "籍贯", |
| | | // prop: "nativeplace", |
| | | // }, |
| | | { |
| | | label: "民族", |
| | | prop: "nation", |
| | |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | prop: "address" |
| | | }, |
| | | { |
| | | label: "户口所在地", |
| | | label: "住址", |
| | | prop: "registered", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入住址", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | }), |
| | | }, |
| | | beforeCreate() {}, |
| | | created() {}, |
| | | created () { |
| | | console.log(this.userInfo.role_name,123541); |
| | | if(this.userInfo.role_name=="办证管理员"){ |
| | | console.log(this.userInfo.role_name,5555225); |
| | | this.search["userType"] = 7; |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.option.column[0].hide = true |
| | | // 非保安单位模式默认加载管理组数据 |
| | | if (!website.tenantMode) { |
| | | this.initData(website.tenantId); |
| | | } |
| | | console.log(this.search, 111); |
| | | this.search["status"] = 1; |
| | | if(this.userInfo.roleName=="办证管理员"){ |
| | | this.search["userType"] = 7; |
| | | } |
| | | this.deptIds = this.userInfo.dept_id; |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | //行点击事件 |
| | | rowClick(row) { |
| | | // console.log(row, 111); |
| | | this.$router.push({ |
| | | path: "/securityGuardDetail", |
| | | query: { row: JSON.stringify(row) }, |
| | | }); |
| | | }, |
| | | //行点击事件 |
| | | certificateClick (row) { |
| | | if (row) { |
| | | var time = this.getNewTime() |
| | | this.certificateYear = time[0] |
| | | this.certificateMonth = time[1] |
| | | this.certificateObj = row |
| | | setTimeout(() => { |
| | | this.Print(); |
| | | }, 500); |
| | | } |
| | | }, |
| | | Print () { |
| | | if (this.certificateObj.registered == '' || this.certificateObj.registered == null) { |
| | | this.$message({ message: '请完善住址信息', type: 'warning' }) |
| | | return |
| | | } |
| | | //更新发证时间 |
| | | var printDom = document.getElementById("certificateDom"); |
| | | printDom.style.position = "absolute"; |
| | | printDom.style.top = "-27.5%"; |
| | | printDom.style.left = "-23%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | printDom.style.fontFamily = "SimSun"; |
| | | |
| | | this.$print('#certificateDom', { |
| | | noPrint: '.noPrint', |
| | | onStart: () => { |
| | | // console.log('打印开始', Date.parse(new Date())); |
| | | }, |
| | | onEnd: () => { |
| | | this.updateUserInfo(); |
| | | // console.log('打印完成', Date.parse(new Date())); |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | getNewTime () { |
| | | 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 |
| | | |
| | | /** |
| | | * @return 返回1小时,2小时,3小时,4小时,24小时 |
| | | */ |
| | | 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.certificateObj.id, |
| | | userType: 6, |
| | | paperTime: date |
| | | } |
| | | updatePaperTime(data); |
| | | }, |
| | | rowClickSelf(row) { |
| | | console.log(row, "baoan"); |
| | | this.$router.push({ |
| | | path: "/securityUnitChild", |
| | | query: { fromSecunityGuardId: row }, |
| | |
| | | }) |
| | | .then(() => { |
| | | let cho = this.choiceList; |
| | | console.log(this.choiceList,14521); |
| | | let str = ""; |
| | | for (let k in cho) { |
| | | str += cho[k].id; |
| | |
| | | str += ","; |
| | | } |
| | | } |
| | | console.log(str,1132); |
| | | const data = { |
| | | ids:str, |
| | | createUser:this.userInfo.user_id |
| | |
| | | ); |
| | | }, |
| | | rowDellook(row) { |
| | | // console.log(row.reasonForLeav); |
| | | this.$alert( |
| | | row.reasonForLeav == "" ? "未填写" : row.reasonForLeav, |
| | | "离职原因", |
| | |
| | | inputErrorMessage: "", |
| | | }) |
| | | .then(({ value }) => { |
| | | console.log(value); |
| | | row.reasonForLeav = value; |
| | | row.status = "2"; |
| | | // console.log(update); |
| | | // return; |
| | | update(row).then((res) => { |
| | | this.$message({ |
| | |
| | | type: "warning", |
| | | }).then(() => { |
| | | window.open( |
| | | `/api/blade-user/export-user?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&account=${this.search.account}&realName=${ |
| | | this.search.realName |
| | | `/api/blade-user/export-user?${this.website.tokenHeader |
| | | }=${getToken()}&account=${this.search.account}&realName=${this.search.realName |
| | | }` |
| | | ); |
| | | }); |
| | | }, |
| | | handleTemplate() { |
| | | window.open( |
| | | `/api/blade-user/export-template?${ |
| | | this.website.tokenHeader |
| | | `/api/blade-user/export-template?${this.website.tokenHeader |
| | | }=${getToken()}` |
| | | ); |
| | | }, |
| | |
| | | ColumnDeptUpdate.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | that.userInfo.jurisdiction; |
| | | } else if (roleAlias == "培训公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["trainingUnitId"] = that.userInfo.dept_id; |
| | | var columnDept2 = that.findObject(that.option.column, "deptId"); |
| | | columnDept2.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | | var ColumnDeptUpdate2 = that.findObject( |
| | | that.option.group, |
| | | "deptId" |
| | | ); |
| | | ColumnDeptUpdate2.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | | } else { |
| | | var columnDept1 = that.findObject(that.option.column, "deptId"); |
| | | columnDept1.dicUrl = |
| | |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | //保安证 本子 |
| | | .certificate_box { |
| | | width: 100%; |
| | | height: 90%; |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | font: normal 18px 'SimSuncss' !important; |
| | | } |
| | | .security_main { |
| | | width: 630px; |
| | | height: 512px; |
| | | // border: 1px solid rgba($color: #a5a5a5, $alpha: 0.5); |
| | | // display: flex; |
| | | // align-items: center; |
| | | // justify-content: space-around; |
| | | // background-size: 100% 100%; |
| | | // background-repeat: no-repeat; |
| | | position: relative; |
| | | } |
| | | // 标题 |
| | | $upTop: 45px; |
| | | $downTop: 265px; //整体高度 |
| | | //经国家保安员考试审查合格。<br />特颁此证。 |
| | | .security_main-title { |
| | | position: absolute; |
| | | top: $upTop; |
| | | left: 34px; |
| | | line-height: 45px; |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证公安机关 (印章) |
| | | .security_m_l_center { |
| | | position: absolute; |
| | | top: 270px; |
| | | left: 30px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_down { |
| | | position: absolute; |
| | | top: 379px; |
| | | left: 32px; |
| | | } |
| | | |
| | | $rightLeft: 343px; |
| | | $rightFontSize: 18px; |
| | | $rightWidth: 77px; |
| | | |
| | | $lineHigeht: 30px; |
| | | //姓名 |
| | | .security_m_r_a { |
| | | position: absolute; |
| | | top: $downTop; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | | } |
| | | //出生年月 |
| | | .security_m_r_b { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | | } |
| | | //地址 |
| | | .security_m_r_c { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | | } |
| | | //公民身份证 |
| | | .security_m_r_d { |
| | | position: absolute; |
| | | top: 363px; |
| | | left: $rightLeft; |
| | | width: $rightWidth; |
| | | text-align: justify; |
| | | text-align-last: justify; |
| | | } |
| | | //照片 |
| | | // width: calc(358px / 22px); |
| | | // height: calc(441px / 22px); |
| | | .security_m_r_imgs { |
| | | width: calc(358px / 3); |
| | | height: calc(441px / 3); |
| | | position: absolute; |
| | | top: $upTop; |
| | | left: 421px; |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | // 内容 |
| | | // 抬头名字 |
| | | .security_m_l_titleName { |
| | | position: absolute; |
| | | top: 35px; |
| | | left: 121px; |
| | | right: 0; |
| | | line-height: 45px; |
| | | letter-spacing: 3px; |
| | | } |
| | | //发证时间 |
| | | $timeTop: 304px; //整体高度 |
| | | //年 |
| | | .security_m_l_titlepaperTimenian { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 107px; |
| | | line-height: 40px; |
| | | } |
| | | //月 |
| | | .security_m_l_titlepaperTimeyue { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 166px; |
| | | line-height: 40px; |
| | | } |
| | | //日 |
| | | .security_m_l_titlepaperTimeri { |
| | | position: absolute; |
| | | top: $timeTop; |
| | | left: 159px; |
| | | line-height: 40px; |
| | | } |
| | | //证件编号 |
| | | .security_m_l_downsecuritynumber { |
| | | position: absolute; |
| | | top: 379px; //整体高度 |
| | | left: 145px; |
| | | } |
| | | |
| | | //内容 |
| | | // 姓名 |
| | | $centerLeft: 458px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 0-2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 生日 |
| | | .security_m_r_o_rightbirthday { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 1-4px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | // 地址 |
| | | .security_m_r_o_rightaddress { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 2 -6px; |
| | | left: $centerLeft; |
| | | width: 160px; |
| | | } |
| | | // 身份证 |
| | | .security_m_r_o_rightcardid { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht * 4 -2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |
| | | //背景图 |
| | | .security_main_backImge { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url(/img/securityCertificate/bazsss.png); |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | } |
| | | |
| | | .security_m_r_o_jg{ |
| | | position: absolute; |
| | | top: 260px; |
| | | left: 230px; |
| | | line-height: 40px; |
| | | letter-spacing: 2px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="dispatch"> |
| | | <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <avue-tabs :option="optionTABS" |
| | | @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'"> |
| | | <avue-form ref="form" v-model="obj0" :option="option0"> </avue-form> |
| | | <avue-form ref="form" |
| | | v-model="obj0" |
| | | :option="option0"> </avue-form> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud |
| | | :option="option1" |
| | | <avue-crud :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | |
| | | @row-del="rowDel1" |
| | | @current-change="CurrentChange1" |
| | | @refresh-change="refreshchange1" |
| | | @size-change="SizeChange1" |
| | | > |
| | | @size-change="SizeChange1"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab3'"> |
| | | <avue-crud |
| | | :option="option2" |
| | | <avue-crud :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | | @row-save="rowSave2" |
| | |
| | | :table-loading="loading2" |
| | | @current-change="CurrentChange2" |
| | | @size-change="SizeChange2" |
| | | @refresh-change="refreshchange2" |
| | | > |
| | | @refresh-change="refreshchange2"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab4'"> |
| | |
| | | </span> |
| | | </div> |
| | | </div> --> |
| | | <baoanz :data="obj0" v-if="hold == 1"></baoanz> |
| | | <div v-else style="width: 100%; text-align: center; padding-top: 20px"> |
| | | <baoanz :data="obj0" |
| | | v-if="hold == 1"></baoanz> |
| | | <div v-else |
| | | style="width: 100%; text-align: center; padding-top: 20px"> |
| | | 无上岗证 |
| | | </div> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab5'"> |
| | | <securityCertificate :data="obj0" v-if="hold == 1"></securityCertificate> |
| | | <div v-else style="width: 100%; text-align: center; padding-top: 20px"> |
| | | <securityCertificate :data="obj0" |
| | | v-if="hold == 1"></securityCertificate> |
| | | <div v-else |
| | | style="width: 100%; text-align: center; padding-top: 20px"> |
| | | 无保安员证 |
| | | </div> |
| | | </span> |
| | |
| | | import { |
| | | addExperience, |
| | | updateExperience, |
| | | getExperienceDetail, |
| | | experienceRemove, |
| | | getExperienceList, |
| | | } from "@/api/experience/experience"; |
| | | |
| | | import { |
| | | getPerformanceInfo, |
| | | add, |
| | | update, |
| | | getpage, |
| | |
| | | .baz-m-body { |
| | | width: 750px; |
| | | height: 550px; |
| | | background-image: url("/img/register/bazbj1.png"); |
| | | background-image: url('/img/register/bazbj1.png'); |
| | | background-size: 100% 100%; |
| | | .bmb-heard { |
| | | font-size: 4rem; |
| New file |
| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-04 18:54:44 |
| | | * menu-name 成绩修改管理 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box"> |
| | | <el-col :span="24" |
| | | class="recruitmentManagement"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <avue-crud v-model="obj" |
| | | class="company-box" |
| | | :option="questionBankOption" |
| | | :search.sync="questionBankSearch" |
| | | :table-loading="questionBankLoading" |
| | | :data="questionBankData" |
| | | :permission="permissionList" |
| | | ref="questionBankCrud" |
| | | :page.sync="questionBankPage" |
| | | @on-load="questionBankOnLoad" |
| | | @selection-change="questionBankSelectionChange" |
| | | @search-change="questionBankSearchChange" |
| | | @search-reset="questionBankSearchReset" |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-update="questionBankRowUpdate" |
| | | @refresh-change="refreshChange"> |
| | | |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <!-- <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">新增 |
| | | </el-button> --> |
| | | <!-- <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | plain |
| | | @click="handleDelete">删除 |
| | | </el-button> --> |
| | | |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | |
| | | <el-button :type="type" |
| | | :size="size" |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.score_audit_check" |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <el-dialog title="成绩修改审核" |
| | | :visible.sync="dialogFormVisible" |
| | | modal-append-to-body="false" |
| | | append-to-body="true" |
| | | :close-on-click-model="true"> |
| | | <avue-form ref="formAudit" |
| | | v-model="Audit" |
| | | :option="optionAudit" |
| | | @reset-change="emptytChange" |
| | | @submit="submit"></avue-form> |
| | | </el-dialog> |
| | | |
| | | </el-row> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList, update,applyAudit } from "@/api/examapi/modifiedGrades"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | export default { |
| | | |
| | | data () { |
| | | |
| | | return { |
| | | Audit: {}, |
| | | dialogFormVisible: false, |
| | | optionAudit: { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | dialogWidth: 1000, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | selection: true, |
| | | excelBtn: false, |
| | | menuWidth: 230, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "审核状态", |
| | | search: true, |
| | | searchSpan: 5, |
| | | span: 24, |
| | | prop: "status", |
| | | slot: true, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | type: "select", |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择审核类型", |
| | | trigger: "blur" |
| | | }], |
| | | dicData: [{ |
| | | label: "待审核", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "auditDetail" |
| | | } |
| | | ], |
| | | }, |
| | | obj: { |
| | | name: "张三", |
| | | }, |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | | delBtn: false, |
| | | editBtn: true, |
| | | addBtn: false, |
| | | selection: false, |
| | | // 导出按钮 |
| | | // excelBtn: true, |
| | | // excelBtnText: "成绩导出", |
| | | viewBtn: true, |
| | | // title: '成绩', |
| | | align: "center", |
| | | height: "auto", |
| | | calcHeight: 80, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 4, |
| | | index: true, |
| | | indexLabel: "序号", |
| | | //dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | // 操作栏宽度 |
| | | menu: true, |
| | | menuWidth: 295, |
| | | labelWidth: 120, |
| | | column: [ |
| | | { |
| | | label: "考试名称", |
| | | prop: "examName", |
| | | search: true, |
| | | searchSpan: 5, |
| | | slot: true, |
| | | viewDisplay: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | viewDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入试卷名称", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 210, |
| | | // overHidden:true, |
| | | }, |
| | | |
| | | { |
| | | label: "姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | searchSpan: 3, |
| | | slot: true, |
| | | viewDisplay: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | viewDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入试卷名称", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 80, |
| | | // overHidden:true, |
| | | }, |
| | | |
| | | { |
| | | label: "所属公司", |
| | | prop: "deptName", |
| | | search: true, |
| | | searchSpan: 4, |
| | | // dicUrl: '/api/blade-system/dept/tree', |
| | | // props: { |
| | | // label: "title", |
| | | // value: "id", |
| | | // }, |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入所属公司", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 230, |
| | | }, |
| | | |
| | | { |
| | | label: "身份证号", |
| | | prop: "idCardNo", |
| | | 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: "oldScore", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 88 |
| | | }, |
| | | |
| | | { |
| | | label: "修改后理论成绩", |
| | | prop: "newScore", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 88 |
| | | }, |
| | | |
| | | { |
| | | label: "申请理由", |
| | | prop: "applyCause", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | }, |
| | | |
| | | { |
| | | label: "修改申请时间", |
| | | prop: "createTime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | slot: true, |
| | | searchSpan: 4, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: false, |
| | | width: 120 |
| | | }, |
| | | |
| | | { |
| | | label: "审核时间", |
| | | prop: "auditTime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | slot: true, |
| | | searchSpan: 4, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: false, |
| | | width: 120 |
| | | }, |
| | | |
| | | { |
| | | label: "审核状态", |
| | | prop: "status", |
| | | type: "select", |
| | | slot: true, |
| | | search: true, |
| | | searchSpan: 3, |
| | | dicData: [ |
| | | { |
| | | label: "待审核", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | } |
| | | ], |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 96 |
| | | }, |
| | | |
| | | { |
| | | label: "审核明细", |
| | | prop: "auditDetail", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 68, |
| | | } |
| | | ], |
| | | }, |
| | | questionBankSearch: {}, |
| | | questionBankLoading: true, |
| | | questionBankData: [], |
| | | questionBankPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | }, |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | | |
| | | }; |
| | | }, |
| | | created () { }, |
| | | mounted () { }, |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList () { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData( |
| | | this.permission.score_audit_view, |
| | | false |
| | | ), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData( |
| | | this.permission.score_audit_edit, |
| | | false |
| | | ), |
| | | }; |
| | | }, |
| | | }, |
| | | methods: { |
| | | getNewTime () { |
| | | 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 oneHoursAgoD = oneHoursAgo.getDate() < 10 ? '0' + oneHoursAgo.getDate() : oneHoursAgo.getDate() |
| | | var oneHoursAgoH = oneHoursAgo.getHours() < 10 ? '0' + oneHoursAgo.getHours() : oneHoursAgo.getHours() |
| | | var oneHoursAgom = oneHoursAgo.getMinutes() < 10 ? '0' + oneHoursAgo.getMinutes() : oneHoursAgo.getMinutes() |
| | | var oneHoursAgos = oneHoursAgo.getSeconds() < 10 ? '0' + oneHoursAgo.getSeconds() : oneHoursAgo.getSeconds() |
| | | |
| | | /** |
| | | * @return 返回1小时,2小时,3小时,4小时,24小时 |
| | | */ |
| | | return oneHoursAgoY + '-' + oneHoursAgoM + '-' + oneHoursAgoD + ' ' + oneHoursAgoH + ':' + oneHoursAgom + ':' + oneHoursAgos |
| | | }, |
| | | |
| | | handleAudit (row) { |
| | | this.dialogFormVisible = true; |
| | | this.Audit = row; |
| | | }, |
| | | //审核 |
| | | submit (row, done, loading) { |
| | | |
| | | row.auditTime = this.getNewTime() |
| | | const data = { |
| | | id:row.id, |
| | | status:row.status, |
| | | auditDetail:row.auditDetail, |
| | | auditUser:this.userInfo.Id |
| | | } |
| | | |
| | | applyAudit(data).then( |
| | | () => { |
| | | this.dialogFormVisible = false; |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | questionBankOnLoad (page, params = {}) { |
| | | //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩 |
| | | var that = this; |
| | | //获取当前登录人员的角色信息 |
| | | var roleIds = this.userInfo.role_id.split(","); |
| | | roleIds.forEach((roleId) => { |
| | | getRoleDetail(roleId).then((res) => { |
| | | var roleAlias = res.data.data.roleAlias; |
| | | if (roleAlias == "保安公司管理员" || roleAlias == "保安") { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } |
| | | if (roleAlias == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | params["trainUnitId"] = that.userInfo.dept_id; |
| | | } |
| | | that.questionBankLoading = false; |
| | | params["examType"] = 2; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.questionBankQuery) |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | that.questionBankPage.total = data.total; |
| | | that.questionBankData = data.records; |
| | | that.questionBankLoading = false; |
| | | that.questionBankSelectionClear(); |
| | | }); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | questionBankSelectionClear () { |
| | | this.questionBankSelectionList = []; |
| | | this.$refs.questionBankCrud.toggleSelection(); |
| | | }, |
| | | questionBankSelectionChange (list) { |
| | | this.questionBankSelectionList = list; |
| | | }, |
| | | questionBankSearchChange (params, done) { |
| | | this.questionBankQuery = params; |
| | | this.questionBankPage.currentPage = 1; |
| | | this.questionBankOnLoad(this.questionBankPage, params); |
| | | done(); |
| | | }, |
| | | questionBankSearchReset () { |
| | | this.questionBankQuery = {}; |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | }, |
| | | questionBankCurrentChange (currentPage) { |
| | | this.questionBankPage.currentPage = currentPage; |
| | | }, |
| | | questionBankSizeChange (pageSize) { |
| | | this.questionBankPage.pageSize = pageSize; |
| | | }, |
| | | |
| | | questionBankRowUpdate (row, index, done, loading) { |
| | | update({ |
| | | id: row.id, |
| | | newScore: row.newScore |
| | | }).then( |
| | | () => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | refreshChange () { |
| | | this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery); |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .morpheus-box { |
| | | position: relative; |
| | | } |
| | | </style> |
| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-10-26 15:44:52 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-11-04 16:18:32 |
| | | * menu-name 成绩管理 |
| | | */ |
| | | <template> |
| | | <el-row class="morpheus-box"> |
| | | <el-col :span="24" class="recruitmentManagement"> |
| | | <el-col :span="24" |
| | | class="recruitmentManagement"> |
| | | <el-card> |
| | | <div class="exam-card-body"> |
| | | <avue-crud |
| | | v-model="obj" |
| | | <avue-crud v-model="obj" |
| | | class="company-box" |
| | | :option="questionBankOption" |
| | | :search.sync="questionBankSearch" |
| | |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-update="questionBankRowUpdate" |
| | | @refresh-change="refreshChange" |
| | | > |
| | | <template slot-scope="{ row }" slot="theoryGrade"> |
| | | {{ row.theoryGrade == -1 ? "" : row.theoryGrade }} |
| | | @refresh-change="refreshChange"> |
| | | <template slot-scope="{ row }" |
| | | slot="theoryGrade"> |
| | | {{ row.theoryGrade }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="learnGrade"> |
| | | {{ row.learnGrade == -1 ? "暂未录入" : row.learnGrade }} |
| | | <template slot-scope="{ row }" |
| | | slot="learnGrade"> |
| | | {{ row.learnGrade == '' ? "暂未录入" : row.learnGrade }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="allGrade"> |
| | | <template slot-scope="{ row }" |
| | | slot="allGrade"> |
| | | {{ row.allGrade == -1 ? "" : row.allGrade }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="qualified"> |
| | | <template slot-scope="{ row }" |
| | | slot="qualified"> |
| | | {{ |
| | | row.qualified == -1 |
| | | row.qualified == '' |
| | | ? "" |
| | | : row.qualified == 0 |
| | | ? "合格" |
| | |
| | | plain |
| | | @click="handleDelete">删除 |
| | | </el-button> --> |
| | | <el-button |
| | | type="success" |
| | | <el-button type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.trainExam_performance_import" |
| | | @click="handleImport" |
| | | >实操成绩导入 |
| | | @click="handleImport">实操成绩导入 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | <el-button type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | v-if="permission.trainExam_performance_export" |
| | | @click="handleExport" |
| | | >成绩导出 |
| | | @click="handleExport">成绩导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-s-flag" |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | <el-button icon="el-icon-s-flag" |
| | | @click="absent(row)" |
| | | :size="size" |
| | | :type="type" |
| | | >缺考标记</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-s-promotion" |
| | | :type="type">缺考标记</el-button> |
| | | <el-button icon="el-icon-s-promotion" |
| | | @click="openzhengjian(row)" |
| | | :disabled="row.qualified != 0" |
| | | :size="size" |
| | | :type="type" |
| | | >查看证件</el-button |
| | | > |
| | | :type="type">查看证件</el-button> |
| | | <el-button icon="el-icon-edit" |
| | | @click="modifiedGrades(row)" |
| | | :size="size" |
| | | :type="type">申请修改成绩</el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="实操成绩导入" |
| | | <el-dialog title="实操成绩导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | <el-button type="primary" |
| | | @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <el-dialog title="申请修改成绩" |
| | | :visible.sync="gradeBoxVisible" |
| | | width="width" |
| | | :modal='true' |
| | | :modal-append-to-body='true' |
| | | :append-to-body='true' |
| | | :close-on-click-modal='false' |
| | | :close-on-press-escape='false' |
| | | :before-close="dialogBeforeClose"> |
| | | |
| | | <div> |
| | | <el-form ref="gradeForm" |
| | | :model="gradeForm" |
| | | :rules="rules" |
| | | label-width="80px" |
| | | label-position="left"> |
| | | |
| | | <el-row :gutter="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="考试名称" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.examName" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="姓名" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.securityName" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="身份证号" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.account" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="准考证号" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.candidateNo" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="原理论成绩" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.theoryGrade" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="修改考试成绩" |
| | | label-width="108px" |
| | | prop='editGrades'> |
| | | <el-input v-model.number="gradeForm.editGrades" |
| | | autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="24"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="实操成绩" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.learnGrade" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="总成绩" |
| | | label-width="108px"> |
| | | <el-input v-model="gradeForm.allGrade" |
| | | disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-form-item label="修改理由" |
| | | label-width="108px"> |
| | | <el-input type='textarea' |
| | | :rows="3" |
| | | placeholder="请输入修改理由" |
| | | resize='none' |
| | | v-model="gradeForm.editReason"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item style="text-align: center;" |
| | | label-width="0"> |
| | | <el-button type="primary" |
| | | @click="uploadGrade('gradeForm')">确 定</el-button> |
| | | <el-button @click="gradeBoxVisible = false">取 消</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | |
| | | <!-- <el-dialog |
| | | title="打印证件" |
| | | :visible.sync="dialogVisiblezhengjian" |
| | | :modal-append-to-body="false" |
| | | > --> |
| | | <div class="dialogVisiblezhengjian" v-if="dialogVisiblezhengjian"> |
| | | <baoanz |
| | | :data="baoanzdata" |
| | | <div class="dialogVisiblezhengjian" |
| | | v-if="dialogVisiblezhengjian"> |
| | | <baoanz :data="baoanzdata" |
| | | :close="1" |
| | | @close="closezhengjian" |
| | | :closePrint="1" |
| | | ></baoanz> |
| | | :closePrint="1"></baoanz> |
| | | </div> |
| | | <!-- </el-dialog> --> |
| | | </el-row> |
| | |
| | | |
| | | <script> |
| | | import baoanz from "../securityGuard/baoanz.vue"; |
| | | import { getList, update, updateAbsent } from "@/api/examapi/performance"; |
| | | import { getList, update, updateAbsent, updateGrade } from "@/api/examapi/performance"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import Qs from "qs"; |
| | |
| | | }, |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value); |
| | | if (value == undefined || value == "") { |
| | | callback(new Error("请输入实操成绩")); |
| | | return; |
| | |
| | | }; |
| | | |
| | | return { |
| | | rules: { |
| | | editGrades: [ |
| | | { validator: validatePass, required: true, trigger: "blur" }, |
| | | ] |
| | | }, |
| | | gradeForm: { |
| | | id: null, |
| | | examName: '', |
| | | securityName: '', |
| | | account: '', |
| | | candidateNo: '', |
| | | theoryGrade: '', |
| | | learnGrade: '', |
| | | allGrade: '', |
| | | editGrades: '', |
| | | editReason: '' |
| | | }, |
| | | gradeBoxVisible: false, |
| | | dialogVisiblezhengjian: false, |
| | | baoanzdata: {}, |
| | | obj: { |
| | |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | width: 58, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入考试名称", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 58 |
| | | }, |
| | | { |
| | | label: "是否合格", |
| | |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入考试名称", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | editDetail: false |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | page.pageSize, |
| | | Object.assign(params, this.questionBankQuery) |
| | | ).then((res) => { |
| | | |
| | | const data = res.data.data; |
| | | |
| | | data.records.forEach(item => { |
| | | if (item.theoryGrade == null && item.learnGrade == -1) { |
| | | item.qualified = '' |
| | | } |
| | | item.theoryGrade == null ? item.theoryGrade = '' : item.theoryGrade |
| | | item.learnGrade == -1 ? item.learnGrade = '' : item.learnGrade |
| | | }) |
| | | that.questionBankPage.total = data.total; |
| | | that.questionBankData = data.records; |
| | | that.questionBankLoading = false; |
| | |
| | | row.qualified = 3; |
| | | updateAbsent(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | |
| | | ); |
| | | }); |
| | | }, |
| | | |
| | | // 修改考试成绩 |
| | | modifiedGrades (row) { |
| | | |
| | | var { id, examName, securityName, account, candidateNo, theoryGrade, learnGrade, allGrade } = row |
| | | |
| | | this.gradeForm.examName = examName |
| | | this.gradeForm.securityName = securityName |
| | | this.gradeForm.account = account |
| | | this.gradeForm.candidateNo = candidateNo |
| | | this.gradeForm.theoryGrade = theoryGrade |
| | | this.gradeForm.learnGrade = learnGrade |
| | | this.gradeForm.allGrade = allGrade |
| | | this.gradeForm.editGrades = '' |
| | | this.gradeForm.editReason = '' |
| | | this.gradeForm.id = id |
| | | |
| | | this.gradeBoxVisible = true |
| | | |
| | | }, |
| | | |
| | | |
| | | uploadGrade (formName) { |
| | | |
| | | var that = this |
| | | |
| | | this.$refs[formName].validate((valid) => { |
| | | |
| | | if (valid) { |
| | | var obj = {} |
| | | obj.oldScore = this.gradeForm.theoryGrade |
| | | obj.newScore = this.gradeForm.editGrades |
| | | obj.applyCause = this.gradeForm.editReason |
| | | obj.examScoreId = this.gradeForm.id |
| | | obj.createUser = this.userInfo.Id |
| | | |
| | | updateGrade(obj).then( |
| | | () => { |
| | | that.questionBankOnLoad(that.questionBankPage) |
| | | that.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | |
| | | that.gradeBoxVisible = false |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | } |
| | | ); |
| | | |
| | | } |
| | | |
| | | }) |
| | | |
| | | }, |
| | | |
| | | questionBankSelectionClear() { |
| | | this.questionBankSelectionList = []; |
| | | this.$refs.questionBankCrud.toggleSelection(); |
| | |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | console.log(this.questionBankSearch, 456); |
| | | // console.log(this.questionBankSearch, 456); |
| | | var data = { |
| | | account: this.questionBankSearch.account, |
| | | companyName: this.questionBankSearch.companyName, |