| | |
| | | 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) |
| | | |
| | | }, |
| | | |
| | |
| | | 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, |
| | |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | // console.log(this.questionBankSearch, 456); |
| | | const { releaseTimeRange } = this.questionBankSearch; |
| | | if (releaseTimeRange) { |
| | | this.questionBankSearch['startTime'] = releaseTimeRange[0]; |
| | |
| | | * @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, |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | </style> |
| | |
| | | * @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-card> |
| | | <div class="exam-card-body"> |
| | | <avue-crud |
| | | v-model="obj" |
| | | class="company-box" |
| | | :option="questionBankOption" |
| | | :search.sync="questionBankSearch" |
| | | :table-loading="questionBankLoading" |
| | | :data="questionBankData" |
| | | ref="questionBankCrud" |
| | | :page.sync="questionBankPage" |
| | | @on-load="questionBankOnLoad" |
| | | @selection-change="questionBankSelectionChange" |
| | | @search-change="questionBankSearchChange" |
| | | @search-reset="questionBankSearchReset" |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-row class="morpheus-box-apply-exam"> |
| | | <el-col :span="24" |
| | | class="hasButOne"> |
| | | <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" |
| | | ref="questionBankCrud" |
| | | :page.sync="questionBankPage" |
| | | @on-load="questionBankOnLoad" |
| | | @selection-change="questionBankSelectionChange" |
| | | @search-change="questionBankSearchChange" |
| | | @search-reset="questionBankSearchReset" |
| | | @current-change="questionBankCurrentChange" |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel"> |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | |
| | | </el-button> |
| | | </template> --> |
| | | |
| | | <!-- <template slot="menuLeft"> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | @click="questionBankHandleDelete">删 除 |
| | | </el-button> |
| | | </template> --> |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleBatchExam" |
| | | v-if="permission.applyexam_exam" |
| | | >生成考试 |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.applyexam_import" |
| | | @click="handleImport" |
| | | >批量报名 |
| | | </el-button> |
| | | </template> |
| | | <!-- 自定义按钮 --> |
| | | <template slot="menuLeft"> |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleBatchExam" |
| | | v-if="permission.applyexam_exam">生成考试 |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | | <el-button type="primary" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.applyexam_import" |
| | | @click="handleImport">批量报名 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <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)" |
| | | >取消报名 |
| | | </el-button> |
| | | <el-button |
| | | style="display: none" |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-folder-checked" |
| | | :disabled="row.applyStatus == 4" |
| | | @click="handleAudit(row)" |
| | | >审核 |
| | | </el-button> |
| | | <el-button |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | v-if="permission.applyexam_print && row.candidateNo!=''" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | </el-button> |
| | | </template> |
| | | <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)">取消报名 |
| | | </el-button> |
| | | <el-button style="display: none" |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-folder-checked" |
| | | :disabled="row.applyStatus == 4" |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | <el-button :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | v-if="permission.applyexam_print && row.candidateNo!=''" |
| | | @click="handlePrint(row)">准考证打印 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="age"> |
| | | {{ row.age == -1 ? "" : row.age }} |
| | | </template> |
| | | </avue-crud> |
| | | <template slot-scope="{ row }" |
| | | slot="age"> |
| | | {{ row.age == -1 ? "" : row.age }} |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <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-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-dialog |
| | | title="批量报名导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | <template slot="excelTemplate"> |
| | | <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="批量报名导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px"> |
| | | <avue-form :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter"> |
| | | <template slot="excelTemplate"> |
| | | <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="考试生成" |
| | | append-to-body |
| | | :visible.sync="dialogExamFormVisible" |
| | | width="900px" |
| | | @close="closeDialog" |
| | | > |
| | | <avue-form |
| | | ref="formExamApply" |
| | | v-model="examApply" |
| | | :option="optionExamApply" |
| | | @reset-change="emptytChange" |
| | | @submit="submitExamApply" |
| | | ></avue-form> |
| | | </el-dialog> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | <el-dialog title="考试生成" |
| | | append-to-body |
| | | :visible.sync="dialogExamFormVisible" |
| | | width="900px" |
| | | @close="closeDialog"> |
| | | <avue-form ref="formExamApply" |
| | | v-model="examApply" |
| | | :option="optionExamApply" |
| | | @reset-change="emptytChange" |
| | | @submit="submitExamApply"></avue-form> |
| | | </el-dialog> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getApplyList, |
| | | addApply, |
| | | cancelApply, |
| | | remove, |
| | | addExam, |
| | | getApplyList, |
| | | addApply, |
| | | cancelApply, |
| | | remove, |
| | | addExam, |
| | | } from "@/api/examapi/applyexam"; |
| | | import { mapState } from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | var DIC = { |
| | | applyStatus: [ |
| | | { |
| | | label: "已报名", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "已取消", |
| | | value: 4, |
| | | }, |
| | | ], |
| | | applyStatus: [ |
| | | { |
| | | label: "已报名", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "已取消", |
| | | value: 4, |
| | | }, |
| | | ], |
| | | }; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | dialogFormVisible: false, |
| | | dialogExamFormVisible: false, |
| | | examPersission: false, |
| | | applyExport: false, |
| | | excelBox: false, |
| | | Audit: {}, |
| | | excelForm: {}, |
| | | excelOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | { |
| | | label: "模板上传", |
| | | prop: "excelFile", |
| | | type: "upload", |
| | | drag: true, |
| | | loadText: "模板上传中,请稍等", |
| | | span: 24, |
| | | propsHttp: { |
| | | res: "data", |
| | | data () { |
| | | return { |
| | | dialogFormVisible: false, |
| | | dialogExamFormVisible: false, |
| | | examPersission: false, |
| | | applyExport: false, |
| | | excelBox: false, |
| | | Audit: {}, |
| | | excelForm: {}, |
| | | excelOption: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | { |
| | | label: "模板上传", |
| | | prop: "excelFile", |
| | | type: "upload", |
| | | drag: true, |
| | | loadText: "模板上传中,请稍等", |
| | | span: 24, |
| | | propsHttp: { |
| | | res: "data", |
| | | }, |
| | | tip: "请上传 .xls,.xlsx 标准格式文件", |
| | | action: "/api/apply/import-apply", |
| | | }, |
| | | { |
| | | label: "模板下载", |
| | | prop: "excelTemplate", |
| | | formslot: true, |
| | | span: 24, |
| | | }, |
| | | ], |
| | | }, |
| | | tip: "请上传 .xls,.xlsx 标准格式文件", |
| | | action: "/api/apply/import-apply", |
| | | }, |
| | | { |
| | | label: "模板下载", |
| | | prop: "excelTemplate", |
| | | formslot: true, |
| | | span: 24, |
| | | }, |
| | | ], |
| | | }, |
| | | optionAudit: { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | dialogWidth: 1000, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | addBtn: true, |
| | | selection: true, |
| | | excelBtn: false, |
| | | menuWidth: 230, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "审核状态", |
| | | search: true, |
| | | searchSpan: 5, |
| | | span: 24, |
| | | prop: "auditStatus", |
| | | slot: true, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | type: "select", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择审核类型", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | dicData: [ |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "不通过", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "auditDetail", |
| | | }, |
| | | ], |
| | | }, |
| | | optionExamApply: { |
| | | height: "auto", |
| | | filterBtn: true, |
| | | calcHeight: 30, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | excelBtn: false, |
| | | menuWidth: 380, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "考试人数", |
| | | prop: "number", |
| | | type: 'number', |
| | | span: 12, |
| | | precision:0, |
| | | step:50, |
| | | mock:{ |
| | | type:'number', |
| | | max:1000, |
| | | min:0, |
| | | precision:0 |
| | | optionAudit: { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | dialogWidth: 1000, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | addBtn: true, |
| | | selection: true, |
| | | excelBtn: false, |
| | | menuWidth: 230, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "审核状态", |
| | | search: true, |
| | | searchSpan: 5, |
| | | span: 24, |
| | | prop: "auditStatus", |
| | | slot: true, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | type: "select", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择审核类型", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | dicData: [ |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "不通过", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "auditDetail", |
| | | }, |
| | | ], |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入考试人数", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | minRows: 0, |
| | | maxRows: 1000, |
| | | value:50, |
| | | }, |
| | | { |
| | | label: "序号开始", |
| | | prop: "serialStart", |
| | | span: 6, |
| | | value:1, |
| | | mock:{ |
| | | type:'number', |
| | | max:1000, |
| | | min:1, |
| | | precision:0 |
| | | optionExamApply: { |
| | | height: "auto", |
| | | filterBtn: true, |
| | | calcHeight: 30, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | excelBtn: false, |
| | | menuWidth: 380, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "考试人数", |
| | | prop: "number", |
| | | type: 'number', |
| | | span: 12, |
| | | precision: 0, |
| | | step: 50, |
| | | mock: { |
| | | type: 'number', |
| | | max: 1000, |
| | | min: 0, |
| | | precision: 0 |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入考试人数", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | minRows: 0, |
| | | maxRows: 1000, |
| | | value: 50, |
| | | }, |
| | | { |
| | | label: "序号开始", |
| | | prop: "serialStart", |
| | | span: 6, |
| | | value: 1, |
| | | mock: { |
| | | type: 'number', |
| | | max: 1000, |
| | | min: 1, |
| | | precision: 0 |
| | | }, |
| | | minRows: 1, |
| | | maxRows: 1000, |
| | | type: "number", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入序号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "序号结束", |
| | | prop: "serialEnd", |
| | | span: 6, |
| | | value: 50, |
| | | mock: { |
| | | type: 'number', |
| | | max: 1000, |
| | | min: 1, |
| | | precision: 0 |
| | | }, |
| | | minRows: 1, |
| | | maxRows: 1000, |
| | | type: "number", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入序号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "考试时间", |
| | | prop: "startTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm", |
| | | valueFormat: "yyyy-MM-dd HH:mm", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择考试时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | span: 12, |
| | | }, |
| | | { |
| | | label: "截止时间", |
| | | prop: "endTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm", |
| | | valueFormat: "yyyy-MM-dd HH:mm", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择考试时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | span: 12, |
| | | }, |
| | | ], |
| | | }, |
| | | minRows: 1, |
| | | maxRows: 1000, |
| | | type:"number", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入序号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "序号结束", |
| | | prop: "serialEnd", |
| | | span: 6, |
| | | value:50, |
| | | mock:{ |
| | | type:'number', |
| | | max:1000, |
| | | min:1, |
| | | precision:0 |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: false, |
| | | menu: true, |
| | | // 导出按钮 |
| | | // excelBtn: true, |
| | | viewBtn: true, |
| | | |
| | | // title: '题库', |
| | | |
| | | align: "center", |
| | | height: "auto", |
| | | calcHeight: 80, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 4, |
| | | index: true, |
| | | indexLabel: "#", |
| | | //dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | //tree 默认展开 |
| | | defaultExpandAll: true, |
| | | // 操作栏宽度 |
| | | menuWidth: 250, |
| | | |
| | | column: [ |
| | | { |
| | | label: "保安姓名", |
| | | prop: "userId", |
| | | type: "tree", |
| | | dicUrl: "", |
| | | hide: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | viewDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | viewDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安姓名", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: "保安姓名", |
| | | prop: "realName", |
| | | searchSpan: 4, |
| | | search: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: true, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安姓名", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "年龄", |
| | | prop: "age", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "考试名称", |
| | | // prop: "examName", |
| | | // type: "tree", |
| | | // dicUrl: "/api/exampaper/page-tree?examType=1", |
| | | // // search: true, |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: true, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: true, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // props: { |
| | | // label: "examName", |
| | | // value: "id", |
| | | // }, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择试卷名称", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // width: 220, |
| | | // }, |
| | | { |
| | | label: "所属公司", |
| | | prop: "deptName", |
| | | search: true, |
| | | slot: true, |
| | | searchSpan: 6, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属公司", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: "准考证号", |
| | | prop: "candidateNo", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "idCardNo", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 150, |
| | | }, |
| | | { |
| | | label: "报考证件", |
| | | prop: "applyCard", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "试卷分数", |
| | | // prop: "paperScore", |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: true, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false |
| | | // }, |
| | | { |
| | | label: "报名时间", |
| | | prop: "applyTime", |
| | | type: "datetime", |
| | | // span: 24, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: true, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | value: |
| | | new Date().getFullYear() + |
| | | "-" + |
| | | (new Date().getMonth() + 1 < 10 |
| | | ? "0" + (new Date().getMonth() + 1) |
| | | : new Date().getMonth() + 1) + |
| | | "-" + |
| | | (new Date().getDate() < 10 |
| | | ? "0" + new Date().getDate() |
| | | : new Date().getDate()) + |
| | | " " + |
| | | (new Date().getHours() < 10 |
| | | ? "0" + new Date().getHours() |
| | | : new Date().getHours()) + |
| | | ":" + |
| | | (new Date().getMinutes() < 10 |
| | | ? "0" + new Date().getMinutes() |
| | | : new Date().getMinutes()) + |
| | | ":" + |
| | | (new Date().getSeconds() < 10 |
| | | ? "0" + new Date().getSeconds() |
| | | : new Date().getSeconds()), |
| | | |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // label: "考试时间", |
| | | // prop: "examTime", |
| | | // type: "datetime", |
| | | // // span: 24, |
| | | // format: "yyyy-MM-dd HH:mm:ss", |
| | | // valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // width: 150, |
| | | // }, |
| | | |
| | | // { |
| | | // label: "审查状态", |
| | | // prop: "examinationType", |
| | | // slot: true, |
| | | // searchSpan: 5, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // dicData: [ |
| | | // { |
| | | // label: "正常", |
| | | // value: "1", |
| | | // }, |
| | | // { |
| | | // label: "异常", |
| | | // value: "2", |
| | | // }, |
| | | // ], |
| | | // search: true, |
| | | // type: "select", |
| | | // }, |
| | | // { |
| | | // label: "审查明细", |
| | | // prop: "examinationMx", |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // overHidden: true, |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // label: "报名状态", |
| | | // search: true, |
| | | // type: "select", |
| | | // searchSpan: 4, |
| | | // prop: "applyStatus", |
| | | // searchValue: 2, |
| | | // dicData: [{ |
| | | // label: '全部', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // label: '已报名', |
| | | // value: 2, |
| | | // }, |
| | | // { |
| | | // label: '已取消', |
| | | // value: 4, |
| | | // } |
| | | // ], |
| | | // props: { |
| | | // label: "label", |
| | | // value: "value" |
| | | // }, |
| | | // editDisplay: false, |
| | | // addDisplay: false, |
| | | // width: 100, |
| | | // }, |
| | | ], |
| | | }, |
| | | minRows: 1, |
| | | maxRows: 1000, |
| | | type:"number", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入序号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "考试时间", |
| | | prop: "startTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm", |
| | | valueFormat: "yyyy-MM-dd HH:mm", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择考试时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | span: 12, |
| | | }, |
| | | { |
| | | label: "截止时间", |
| | | prop: "endTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd HH:mm", |
| | | valueFormat: "yyyy-MM-dd HH:mm", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择考试时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | span: 12, |
| | | }, |
| | | ], |
| | | }, |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: false, |
| | | menu: true, |
| | | // 导出按钮 |
| | | // excelBtn: true, |
| | | viewBtn: true, |
| | | |
| | | // title: '题库', |
| | | |
| | | align: "center", |
| | | height: "auto", |
| | | calcHeight: 80, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 4, |
| | | index: true, |
| | | indexLabel: "#", |
| | | //dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | //tree 默认展开 |
| | | defaultExpandAll: true, |
| | | // 操作栏宽度 |
| | | menuWidth: 250, |
| | | |
| | | column: [ |
| | | { |
| | | label: "保安姓名", |
| | | prop: "userId", |
| | | type: "tree", |
| | | dicUrl: "", |
| | | hide: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | viewDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | viewDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | questionBankSearch: {}, |
| | | questionBankLoading: true, |
| | | questionBankData: [], |
| | | questionBankPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安姓名", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: "保安姓名", |
| | | prop: "realName", |
| | | searchSpan: 4, |
| | | search: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: true, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | | }; |
| | | }, |
| | | |
| | | watch: { |
| | | "form.examname": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler (val) { |
| | | if (val) { |
| | | //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始 |
| | | var address = val.formattedAddress.toString(); |
| | | if (address.search("县") != -1) { |
| | | this.form.address = address.substring( |
| | | address.indexOf("县") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (address.search("区") != -1) { |
| | | this.form.address = address.substring( |
| | | address.indexOf("区") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | } |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安姓名", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "年龄", |
| | | prop: "age", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: false, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | viewDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "考试名称", |
| | | // prop: "examName", |
| | | // type: "tree", |
| | | // dicUrl: "/api/exampaper/page-tree?examType=1", |
| | | // // search: true, |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: true, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: true, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // props: { |
| | | // label: "examName", |
| | | // value: "id", |
| | | // }, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择试卷名称", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // width: 220, |
| | | // }, |
| | | { |
| | | label: "所属公司", |
| | | prop: "deptName", |
| | | search: true, |
| | | slot: true, |
| | | searchSpan: 6, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属公司", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: "准考证号", |
| | | prop: "candidateNo", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "idCardNo", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width: 150, |
| | | }, |
| | | { |
| | | label: "报考证件", |
| | | prop: "applyCard", |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: false, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择准考证号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "试卷分数", |
| | | // prop: "paperScore", |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: true, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false |
| | | // }, |
| | | { |
| | | label: "报名时间", |
| | | prop: "applyTime", |
| | | type: "datetime", |
| | | // span: 24, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | // 表单新增时是否禁止 |
| | | addDisabled: true, |
| | | // 表单新增时是否可见 |
| | | addDisplay: false, |
| | | // 表单新增时是否为查看模式 |
| | | addDetail: false, |
| | | // 表单编辑时是否禁止 |
| | | editDisabled: true, |
| | | // 表单编辑时是否可见 |
| | | editDisplay: true, |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | value: |
| | | new Date().getFullYear() + |
| | | "-" + |
| | | (new Date().getMonth() + 1 < 10 |
| | | ? "0" + (new Date().getMonth() + 1) |
| | | : new Date().getMonth() + 1) + |
| | | "-" + |
| | | (new Date().getDate() < 10 |
| | | ? "0" + new Date().getDate() |
| | | : new Date().getDate()) + |
| | | " " + |
| | | (new Date().getHours() < 10 |
| | | ? "0" + new Date().getHours() |
| | | : new Date().getHours()) + |
| | | ":" + |
| | | (new Date().getMinutes() < 10 |
| | | ? "0" + new Date().getMinutes() |
| | | : new Date().getMinutes()) + |
| | | ":" + |
| | | (new Date().getSeconds() < 10 |
| | | ? "0" + new Date().getSeconds() |
| | | : new Date().getSeconds()), |
| | | immediate: true, |
| | | }, |
| | | }, |
| | | created () { |
| | | |
| | | width: 150, |
| | | }, |
| | | // { |
| | | // label: "考试时间", |
| | | // prop: "examTime", |
| | | // type: "datetime", |
| | | // // span: 24, |
| | | // format: "yyyy-MM-dd HH:mm:ss", |
| | | // valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // width: 150, |
| | | // }, |
| | | |
| | | // { |
| | | // label: "审查状态", |
| | | // prop: "examinationType", |
| | | // slot: true, |
| | | // searchSpan: 5, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // dicData: [ |
| | | // { |
| | | // label: "正常", |
| | | // value: "1", |
| | | // }, |
| | | // { |
| | | // label: "异常", |
| | | // value: "2", |
| | | // }, |
| | | // ], |
| | | // search: true, |
| | | // type: "select", |
| | | // }, |
| | | // { |
| | | // label: "审查明细", |
| | | // prop: "examinationMx", |
| | | // slot: true, |
| | | // // 表单新增时是否禁止 |
| | | // addDisabled: false, |
| | | // // 表单新增时是否可见 |
| | | // addDisplay: false, |
| | | // // 表单新增时是否为查看模式 |
| | | // addDetail: false, |
| | | // // 表单编辑时是否禁止 |
| | | // editDisabled: false, |
| | | // // 表单编辑时是否可见 |
| | | // editDisplay: true, |
| | | // // 表单编辑时是否为查看模式 |
| | | // editDetail: false, |
| | | // overHidden: true, |
| | | // width: 150, |
| | | // }, |
| | | // { |
| | | // label: "报名状态", |
| | | // search: true, |
| | | // type: "select", |
| | | // searchSpan: 4, |
| | | // prop: "applyStatus", |
| | | // searchValue: 2, |
| | | // dicData: [{ |
| | | // label: '全部', |
| | | // value: 0, |
| | | // }, |
| | | // { |
| | | // label: '已报名', |
| | | // value: 2, |
| | | // }, |
| | | // { |
| | | // label: '已取消', |
| | | // value: 4, |
| | | // } |
| | | // ], |
| | | // props: { |
| | | // label: "label", |
| | | // value: "value" |
| | | // }, |
| | | // editDisplay: false, |
| | | // addDisplay: false, |
| | | // width: 100, |
| | | // }, |
| | | ], |
| | | }, |
| | | questionBankSearch: {}, |
| | | questionBankLoading: true, |
| | | questionBankData: [], |
| | | questionBankPage: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 16, |
| | | }, |
| | | questionBankQuery: {}, |
| | | questionBankSelectionList: [], |
| | | }; |
| | | }, |
| | | |
| | | watch: { |
| | | "form.examname": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler(val) { |
| | | if (val) { |
| | | //地址截取,从县/区开始截取,并且取从县区第一个出现的位置开始 |
| | | var address = val.formattedAddress.toString(); |
| | | if (address.search("县") != -1) { |
| | | this.form.address = address.substring( |
| | | address.indexOf("县") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (address.search("区") != -1) { |
| | | this.form.address = address.substring( |
| | | address.indexOf("区") + 1, |
| | | address.length |
| | | ); |
| | | } |
| | | if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | this.examPersission = true; |
| | | } |
| | | }, |
| | | immediate: true, |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | |
| | | if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) { |
| | | this.examPersission = true; |
| | | } |
| | | this.questionBankSearch['applyStatus'] = 2; |
| | | }, |
| | | mounted () { }, |
| | | computed: { |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList () { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.applyexam_view, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | | }, |
| | | ids () { |
| | | let ids = []; |
| | | this.questionBankSelectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | methods: { |
| | | //准考证查看 |
| | | handlePrint (row) { |
| | | var obj = row; |
| | | obj["name"] = "准考证信息"; |
| | | this.$router.push({ |
| | | path: `/applyexam/papers`, |
| | | query: obj, |
| | | }); |
| | | }, |
| | | questionBankOnLoad (page, params = {}) { |
| | | params = this.questionBankSearch; |
| | | this.questionBankLoading = false; |
| | | this.loading = true; |
| | | //判断角色,如果是保安公司管理员或保安,只能查看当前公司的报名信息 |
| | | 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; |
| | | } |
| | | getApplyList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.questionBankQuery) |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.questionBankPage.total = data.total; |
| | | this.questionBankData = data.records; |
| | | this.questionBankLoading = false; |
| | | this.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; |
| | | }, |
| | | |
| | | this.questionBankSearch['applyStatus'] = 2; |
| | | }, |
| | | mounted() {}, |
| | | computed: { |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.applyexam_view, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.questionBankSelectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | methods: { |
| | | //准考证查看 |
| | | handlePrint(row) { |
| | | var obj = row; |
| | | obj["name"] = "准考证信息"; |
| | | this.$router.push({ |
| | | path: `/applyexam/papers`, |
| | | query: obj, |
| | | }); |
| | | }, |
| | | questionBankOnLoad(page, params = {}) { |
| | | params = this.questionBankSearch; |
| | | this.questionBankLoading = false; |
| | | this.loading = true; |
| | | //判断角色,如果是保安公司管理员或保安,只能查看当前公司的报名信息 |
| | | 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; |
| | | // 新增 |
| | | questionBankRowSave (row, done, loading) { |
| | | // debugger; |
| | | addApply({ |
| | | userId: row.userId, |
| | | examId: row.examName, |
| | | applyTime: row.applyTime, |
| | | }).then( |
| | | (res) => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | if (res.data.data == 201) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "已报名,不能重复报名", |
| | | }); |
| | | } else if (res.data.data == 201) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "报名失败", |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "报名成功", |
| | | }); |
| | | } |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | //生成考试弹窗 |
| | | handleBatchExam () { |
| | | this.dialogExamFormVisible = true; |
| | | if (this.questionBankSelectionList.length === 0) { |
| | | this.ids = ""; |
| | | } |
| | | getApplyList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.questionBankQuery) |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.questionBankPage.total = data.total; |
| | | this.questionBankData = data.records; |
| | | this.questionBankLoading = false; |
| | | this.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; |
| | | }, |
| | | |
| | | // 新增 |
| | | questionBankRowSave(row, done, loading) { |
| | | // debugger; |
| | | addApply({ |
| | | userId: row.userId, |
| | | examId: row.examName, |
| | | applyTime: row.applyTime, |
| | | }).then( |
| | | (res) => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | if (res.data.data == 201) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "已报名,不能重复报名", |
| | | }); |
| | | } else if (res.data.data == 201) { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "报名失败", |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "报名成功", |
| | | }); |
| | | } |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | //生成考试 |
| | | submitExamApply (row, done, loading) { |
| | | var that = this; |
| | | row.startTime = row.startTime + ":00"; |
| | | row.endTime = row.endTime + ":00"; |
| | | if (row.number != ((row.serialEnd - row.serialStart) + 1)) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "考试人数与序号不匹配!", |
| | | }); |
| | | done(); |
| | | return; |
| | | } |
| | | |
| | | //生成考试弹窗 |
| | | handleBatchExam() { |
| | | this.dialogExamFormVisible = true; |
| | | if (this.questionBankSelectionList.length === 0) { |
| | | this.ids = ""; |
| | | } |
| | | }, |
| | | //生成考试 |
| | | submitExamApply(row, done, loading) { |
| | | var that = this; |
| | | row.startTime = row.startTime + ":00"; |
| | | row.endTime = row.endTime + ":00"; |
| | | if(row.number!=((row.serialEnd-row.serialStart)+1)){ |
| | | this.$message({ |
| | | type: "error", |
| | | message: "考试人数与序号不匹配!", |
| | | }); |
| | | done(); |
| | | return; |
| | | } |
| | | |
| | | var s = new Date(row.startTime); |
| | | var e = new Date(row.endTime); |
| | | if(s>e){ |
| | | this.$message({ |
| | | type: "error", |
| | | message: "截止时间不能早于考试考试开始时间!", |
| | | }); |
| | | done(); |
| | | return; |
| | | } |
| | | addExam(Object.assign(row, this.questionBankSearch)).then( |
| | | () => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | that.$refs.formExamApply.resetFields(); |
| | | that.dialogExamFormVisible = false; |
| | | done(); |
| | | var s = new Date(row.startTime); |
| | | var e = new Date(row.endTime); |
| | | if (s > e) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "截止时间不能早于考试考试开始时间!", |
| | | }); |
| | | done(); |
| | | return; |
| | | } |
| | | addExam(Object.assign(row, this.questionBankSearch)).then( |
| | | () => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | that.$refs.formExamApply.resetFields(); |
| | | that.dialogExamFormVisible = false; |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | //关闭窗口清除数据 |
| | | closeDialog() { |
| | | this.$refs.formExamApply.resetFields(); |
| | | }, |
| | | //关闭窗口清除数据 |
| | | closeDialog () { |
| | | this.$refs.formExamApply.resetFields(); |
| | | }, |
| | | |
| | | questionBankRowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | questionBankRowDel (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | //取消报名 |
| | | handleCancel(row) { |
| | | this.$confirm("确定取消报名?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.applyStatus = 4; |
| | | return cancelApply(row); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | //取消报名 |
| | | handleCancel (row) { |
| | | this.$confirm("确定取消报名?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.applyStatus = 4; |
| | | return cancelApply(row); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | questionBankHandleDelete() { |
| | | if (this.questionBankSelectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | this.$refs.questionBankCrud.toggleSelection(); |
| | | }); |
| | | }, |
| | | handleAudit(row) { |
| | | this.dialogFormVisible = true; |
| | | this.Audit = row; |
| | | }, |
| | | questionBankHandleDelete () { |
| | | if (this.questionBankSelectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据"); |
| | | return; |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids); |
| | | }) |
| | | .then(() => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | this.$refs.questionBankCrud.toggleSelection(); |
| | | }); |
| | | }, |
| | | handleAudit (row) { |
| | | this.dialogFormVisible = true; |
| | | this.Audit = row; |
| | | }, |
| | | |
| | | handleImport() { |
| | | this.excelBox = true; |
| | | }, |
| | | handleImport () { |
| | | this.excelBox = true; |
| | | }, |
| | | |
| | | handleTemplate() { |
| | | window.open(`/api/apply/export-template`); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |
| | | this.excelBox = false; |
| | | this.refreshChange(); |
| | | done(); |
| | | }, |
| | | handleTemplate () { |
| | | window.open(`/api/apply/export-template`); |
| | | }, |
| | | uploadAfter (res, done, loading, column) { |
| | | window.console.log(column); |
| | | this.excelBox = false; |
| | | this.refreshChange(); |
| | | done(); |
| | | }, |
| | | |
| | | refreshChange() { |
| | | this.questionBankOnLoad(this.page, this.query); |
| | | refreshChange () { |
| | | this.questionBankOnLoad(this.page, this.query); |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> --> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | |
| | | 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; |
| | |
| | | .el-collapse-item { |
| | | padding-top: 15px !important; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | </avue-crud> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | |
| | | 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() { |
| | |
| | | .el-collapse-item { |
| | | padding-top: 15px !important; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | </avue-crud> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | |
| | | }; |
| | | }, |
| | | 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() { |
| | |
| | | .el-collapse-item { |
| | | padding-top: 15px !important; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | </span> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> --> |
| | | </div> |
| | | </template> |
| | | </template> |
| | | |
| | | <script> |
| | | import { column, column1 } from "./data"; |
| | |
| | | // 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 = " 未选择派遣单位"; |
| | | } |
| | | }, |
| | |
| | | .el-collapse-item { |
| | | padding-top: 15px !important; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | data: this.index, |
| | | }); |
| | | this.inputs[`input${this.index + 1}`] = ""; |
| | | console.log(this.inputs); |
| | | console.log(this.list, 111); |
| | | }, |
| | | //减一行 |
| | | deleteRows(index) { |
| | |
| | | .optionContent-suffix .optionContent-botton { |
| | | margin-left: 10px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | * @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, |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | </style> |
| | |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | | console.log(value); |
| | | if (value == undefined || value == "") { |
| | | callback(new Error("请输入实操成绩")); |
| | | return; |
| | |
| | | <template> |
| | | <div class="dispatch"> |
| | | <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> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud |
| | | :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | | @row-save="rowSave1" |
| | | @row-update="rowUpdate1" |
| | | @row-del="rowDel1" |
| | | @current-change="CurrentChange1" |
| | | @refresh-change="refreshchange1" |
| | | @size-change="SizeChange1" |
| | | > |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab3'"> |
| | | <avue-crud |
| | | :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | | @row-save="rowSave2" |
| | | @row-update="rowUpdate2" |
| | | @row-del="rowDel2" |
| | | :table-loading="loading2" |
| | | @current-change="CurrentChange2" |
| | | @size-change="SizeChange2" |
| | | @refresh-change="refreshchange2" |
| | | > |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab4'"> |
| | | <!-- 保安员证 --> |
| | | <!-- <div class="baoanzheng" id="baoanzheng" v-if="hold == 1"> |
| | | <div class="dispatch"> |
| | | <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> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | | @row-save="rowSave1" |
| | | @row-update="rowUpdate1" |
| | | @row-del="rowDel1" |
| | | @current-change="CurrentChange1" |
| | | @refresh-change="refreshchange1" |
| | | @size-change="SizeChange1"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab3'"> |
| | | <avue-crud :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | | @row-save="rowSave2" |
| | | @row-update="rowUpdate2" |
| | | @row-del="rowDel2" |
| | | :table-loading="loading2" |
| | | @current-change="CurrentChange2" |
| | | @size-change="SizeChange2" |
| | | @refresh-change="refreshchange2"> |
| | | </avue-crud> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab4'"> |
| | | <!-- 保安员证 --> |
| | | <!-- <div class="baoanzheng" id="baoanzheng" v-if="hold == 1"> |
| | | <div class="baz-main"> |
| | | <div class="baz-m-body" ref="baoanzheng"> |
| | | <div class="bmb-heard">保安员证</div> |
| | |
| | | </span> |
| | | </div> |
| | | </div> --> |
| | | <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"> |
| | | 无保安员证 |
| | | </div> |
| | | </span> |
| | | </div> |
| | | <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"> |
| | | 无保安员证 |
| | | </div> |
| | | </span> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | securityBaseInfoColumn, |
| | | practitionersColumn, |
| | | trackRecordColumn, |
| | | securityBaseInfoColumn, |
| | | practitionersColumn, |
| | | trackRecordColumn, |
| | | } from "./data"; |
| | | import { |
| | | addExperience, |
| | | updateExperience, |
| | | experienceRemove, |
| | | getExperienceList, |
| | | addExperience, |
| | | updateExperience, |
| | | experienceRemove, |
| | | getExperienceList, |
| | | } from "@/api/experience/experience"; |
| | | |
| | | import { |
| | | add, |
| | | update, |
| | | getpage, |
| | | remove, |
| | | getER, |
| | | add, |
| | | update, |
| | | getpage, |
| | | remove, |
| | | getER, |
| | | } from "@/api/performance/performance"; |
| | | |
| | | // import vueQr from "vue-qr"; |
| | |
| | | import baoanz from "./baoanz.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | securityCertificate: securityCertificate, |
| | | baoanz, |
| | | }, |
| | | data() { |
| | | return { |
| | | typeTABS: {}, //标签页 |
| | | row: {}, //数据 |
| | | optionTABS: { |
| | | column: [ |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员基本信息", |
| | | prop: "tab1", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "从业记录", |
| | | prop: "tab2", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "现实表现记录", |
| | | prop: "tab3", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "上岗证", |
| | | prop: "tab4", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员证", |
| | | prop: "tab5", |
| | | }, |
| | | ], |
| | | }, |
| | | current: 1, |
| | | size: 10, |
| | | cardid: "", |
| | | name: "", |
| | | dispatcherCompany: "", |
| | | id: "", |
| | | obj0: { |
| | | title: "我是头部标题", |
| | | }, |
| | | option0: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "110", |
| | | gutter: 30, |
| | | column: securityBaseInfoColumn, |
| | | }, |
| | | loading1: true, |
| | | loading2: true, |
| | | selectionList1: [], |
| | | page1: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | page2: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | query1: {}, |
| | | query2: {}, |
| | | data1: [], |
| | | data2: [], |
| | | option1: { |
| | | card: true, |
| | | menu: true, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | calcHeight: 54, |
| | | border: true, //liu |
| | | stripe: true, |
| | | tip: false, |
| | | index: true, |
| | | dialogClickModal: false, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | column: practitionersColumn, |
| | | }, |
| | | option2: { |
| | | card: true, |
| | | menu: true, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | calcHeight: 54, |
| | | border: true, //liu |
| | | stripe: true, |
| | | tip: false, |
| | | index: true, |
| | | dialogClickModal: false, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | column: trackRecordColumn, |
| | | }, |
| | | erweima: "", |
| | | hold: "", |
| | | }; |
| | | }, |
| | | // components: { |
| | | // vueQr, |
| | | // }, |
| | | computed: { |
| | | ids1() { |
| | | let ids1 = []; |
| | | this.selectionList1.forEach((ele) => { |
| | | ids1.push(ele.id); |
| | | }); |
| | | return ids1.join(","); |
| | | components: { |
| | | securityCertificate: securityCertificate, |
| | | baoanz, |
| | | }, |
| | | // goToUrl() { |
| | | // var url = |
| | | // "http://s16s652780.51mypc.cn/securityInfo/securityInfo.html?securityNumber=" + |
| | | // this.obj0.securitynumber; |
| | | // return url; |
| | | data () { |
| | | return { |
| | | typeTABS: {}, //标签页 |
| | | row: {}, //数据 |
| | | optionTABS: { |
| | | column: [ |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员基本信息", |
| | | prop: "tab1", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "从业记录", |
| | | prop: "tab2", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "现实表现记录", |
| | | prop: "tab3", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "上岗证", |
| | | prop: "tab4", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员证", |
| | | prop: "tab5", |
| | | }, |
| | | ], |
| | | }, |
| | | current: 1, |
| | | size: 10, |
| | | cardid: "", |
| | | name: "", |
| | | dispatcherCompany: "", |
| | | id: "", |
| | | obj0: { |
| | | title: "我是头部标题", |
| | | }, |
| | | option0: { |
| | | emptyBtn: false, |
| | | submitBtn: false, |
| | | labelWidth: "110", |
| | | gutter: 30, |
| | | column: securityBaseInfoColumn, |
| | | }, |
| | | loading1: true, |
| | | loading2: true, |
| | | selectionList1: [], |
| | | page1: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | page2: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | query1: {}, |
| | | query2: {}, |
| | | data1: [], |
| | | data2: [], |
| | | option1: { |
| | | card: true, |
| | | menu: true, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | calcHeight: 54, |
| | | border: true, //liu |
| | | stripe: true, |
| | | tip: false, |
| | | index: true, |
| | | dialogClickModal: false, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | column: practitionersColumn, |
| | | }, |
| | | option2: { |
| | | card: true, |
| | | menu: true, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | calcHeight: 54, |
| | | border: true, //liu |
| | | stripe: true, |
| | | tip: false, |
| | | index: true, |
| | | dialogClickModal: false, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | column: trackRecordColumn, |
| | | }, |
| | | erweima: "", |
| | | hold: "", |
| | | }; |
| | | }, |
| | | // components: { |
| | | // vueQr, |
| | | // }, |
| | | }, |
| | | methods: { |
| | | Print() { |
| | | var printDom = document.getElementById("baoanzheng"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.left = "-10%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | this.$Print(this.$refs.baoanzheng); |
| | | printDom.style.position = "relative"; |
| | | printDom.style.left = "0"; |
| | | printDom.style.width = "100%"; |
| | | printDom.style.height = "calc(100% - 100px)"; |
| | | computed: { |
| | | ids1 () { |
| | | let ids1 = []; |
| | | this.selectionList1.forEach((ele) => { |
| | | ids1.push(ele.id); |
| | | }); |
| | | return ids1.join(","); |
| | | }, |
| | | // goToUrl() { |
| | | // var url = |
| | | // "http://s16s652780.51mypc.cn/securityInfo/securityInfo.html?securityNumber=" + |
| | | // this.obj0.securitynumber; |
| | | // return url; |
| | | // }, |
| | | }, |
| | | handleChangeTABS(column) { |
| | | this.typeTABS = column; |
| | | if (column.prop == "tab1") { |
| | | this.loading1 = false; |
| | | } else if (column.prop == "tab2") { |
| | | methods: { |
| | | Print () { |
| | | var printDom = document.getElementById("baoanzheng"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.left = "-10%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | this.$Print(this.$refs.baoanzheng); |
| | | printDom.style.position = "relative"; |
| | | printDom.style.left = "0"; |
| | | printDom.style.width = "100%"; |
| | | printDom.style.height = "calc(100% - 100px)"; |
| | | }, |
| | | handleChangeTABS (column) { |
| | | this.typeTABS = column; |
| | | if (column.prop == "tab1") { |
| | | this.loading1 = false; |
| | | } else if (column.prop == "tab2") { |
| | | //查询当前保安员的从业记录信息 |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.loading1 = false; |
| | | } else if (column.prop == "tab3") { |
| | | //查询当前保安员的现实表现记录 |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.loading2 = false; |
| | | } else if (column.prop == "tab4") { |
| | | getER(this.obj0.securitynumber).then((res) => { |
| | | this.erweima = res.data; |
| | | // console.log(res.data); |
| | | }); |
| | | } |
| | | }, |
| | | refreshchange1 () { |
| | | this.getPractitionersPageInfo(this.page1, this.query1); |
| | | }, |
| | | //查询当前保安员的从业记录信息 |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.loading1 = false; |
| | | } else if (column.prop == "tab3") { |
| | | //查询当前保安员的现实表现记录 |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.loading2 = false; |
| | | } else if (column.prop == "tab4") { |
| | | getER(this.obj0.securitynumber).then((res) => { |
| | | this.erweima = res.data; |
| | | // console.log(res.data); |
| | | }); |
| | | } |
| | | }, |
| | | refreshchange1() { |
| | | this.getPractitionersPageInfo(this.page1, this.query1); |
| | | }, |
| | | //查询当前保安员的从业记录信息 |
| | | getPractitionersPageInfo(page, param = {}) { |
| | | param["securityid"] = this.id; |
| | | //获取用户从业信息 |
| | | // console.log(this.id, "cid"); |
| | | getPractitionersPageInfo (page, param = {}) { |
| | | param["securityid"] = this.id; |
| | | //获取用户从业信息 |
| | | // console.log(this.id, "cid"); |
| | | |
| | | getExperienceList(page.currentPage, page.pageSize, param).then((res1) => { |
| | | const data = res1.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | | refreshchange2() { |
| | | this.getPerformancePageInfo(this.page2, this.query2); |
| | | }, |
| | | //查询当前保安员的现实表现记录信息 |
| | | getPerformancePageInfo(page, param = {}) { |
| | | //获取现实表现信息 |
| | | param["securityid"] = this.id; |
| | | getpage(page.currentPage, page.pageSize, param).then((res2) => { |
| | | const data = res2.data.data; |
| | | this.page2.total = data.total; |
| | | this.data2 = data.records; |
| | | console.log(this.data2, 1); |
| | | this.loading2 = false; |
| | | }); |
| | | }, |
| | | CurrentChange1(currentPage) { |
| | | this.page1.currentPage = currentPage; |
| | | this.refreshchange1(); |
| | | }, |
| | | SizeChange1(pageSize) { |
| | | this.page1.pageSize = pageSize; |
| | | this.refreshchange1(); |
| | | }, |
| | | CurrentChange2(currentPage) { |
| | | this.page2.currentPage = currentPage; |
| | | this.refreshchange2(); |
| | | }, |
| | | SizeChange2(pageSize) { |
| | | this.page2.pageSize = pageSize; |
| | | this.refreshchange2(); |
| | | }, |
| | | // refreshChange1() { |
| | | // this.getPractitionersPageInfo(); |
| | | // }, |
| | | // refreshChange2() { |
| | | // this.getPerformancePageInfo(); |
| | | // }, |
| | | getExperienceList(page.currentPage, page.pageSize, param).then((res1) => { |
| | | const data = res1.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | | refreshchange2 () { |
| | | this.getPerformancePageInfo(this.page2, this.query2); |
| | | }, |
| | | //查询当前保安员的现实表现记录信息 |
| | | getPerformancePageInfo (page, param = {}) { |
| | | //获取现实表现信息 |
| | | param["securityid"] = this.id; |
| | | getpage(page.currentPage, page.pageSize, param).then((res2) => { |
| | | const data = res2.data.data; |
| | | this.page2.total = data.total; |
| | | this.data2 = data.records; |
| | | console.log(this.data2, 1); |
| | | this.loading2 = false; |
| | | }); |
| | | }, |
| | | CurrentChange1 (currentPage) { |
| | | this.page1.currentPage = currentPage; |
| | | this.refreshchange1(); |
| | | }, |
| | | SizeChange1 (pageSize) { |
| | | this.page1.pageSize = pageSize; |
| | | this.refreshchange1(); |
| | | }, |
| | | CurrentChange2 (currentPage) { |
| | | this.page2.currentPage = currentPage; |
| | | this.refreshchange2(); |
| | | }, |
| | | SizeChange2 (pageSize) { |
| | | this.page2.pageSize = pageSize; |
| | | this.refreshchange2(); |
| | | }, |
| | | // refreshChange1() { |
| | | // this.getPractitionersPageInfo(); |
| | | // }, |
| | | // refreshChange2() { |
| | | // this.getPerformancePageInfo(); |
| | | // }, |
| | | |
| | | rowSave2(form, done, loading) { |
| | | form.securityid = this.id; |
| | | add(form).then( |
| | | (res) => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | rowSave2 (form, done, loading) { |
| | | form.securityid = this.id; |
| | | add(form).then( |
| | | (res) => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | // } |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | // } |
| | | }, |
| | | //从业记录新增 |
| | | rowSave1(form, done, loading) { |
| | | form.securityid = this.id; |
| | | addExperience(form).then( |
| | | (res) => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | //从业记录新增 |
| | | rowSave1 (form, done, loading) { |
| | | form.securityid = this.id; |
| | | addExperience(form).then( |
| | | (res) => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | // } |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | // } |
| | | }, |
| | | rowUpdate2(row, index, done, loading) { |
| | | row.securityid = this.id; |
| | | update(row).then( |
| | | () => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | rowUpdate2 (row, index, done, loading) { |
| | | row.securityid = this.id; |
| | | update(row).then( |
| | | () => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | rowUpdate1(row, index, done, loading) { |
| | | row.securityid = this.id; |
| | | updateExperience(row).then( |
| | | () => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | rowUpdate1 (row, index, done, loading) { |
| | | row.securityid = this.id; |
| | | updateExperience(row).then( |
| | | () => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | rowDel2 (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | rowDel1 (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return experienceRemove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted () { |
| | | this.typeTABS = this.optionTABS.column[0]; |
| | | var data = JSON.parse(this.$route.query.row); |
| | | // console.log(data); |
| | | if (data) { |
| | | var row = data; |
| | | // var row = this.$route.query.row; |
| | | for (var k in row) { |
| | | this.obj0[k] = row[k]; |
| | | } |
| | | this.obj0.title = ""; |
| | | this.cardid = row.id; |
| | | this.name = row.name; |
| | | this.dispatcherCompany = row.dispatcherCompany; |
| | | this.id = row.id; |
| | | this.hold = row.hold; |
| | | console.log(this.obj0); |
| | | } |
| | | ); |
| | | }, |
| | | rowDel2(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.getPerformancePageInfo(this.page2); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | rowDel1(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return experienceRemove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.getPractitionersPageInfo(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.typeTABS = this.optionTABS.column[0]; |
| | | var data = JSON.parse(this.$route.query.row); |
| | | // console.log(data); |
| | | if (data) { |
| | | var row = data; |
| | | // var row = this.$route.query.row; |
| | | for (var k in row) { |
| | | this.obj0[k] = row[k]; |
| | | } |
| | | this.obj0.title = ""; |
| | | this.cardid = row.id; |
| | | this.name = row.name; |
| | | this.dispatcherCompany = row.dispatcherCompany; |
| | | this.id = row.id; |
| | | this.hold = row.hold; |
| | | console.log(this.obj0); |
| | | } |
| | | |
| | | 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; |
| | | 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); |
| | | } |
| | | i++; |
| | | } |
| | | }); |
| | | if (i > 1) { |
| | | this.$store.state.tags.tagList.splice(ind, 1); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .dispatch { |
| | | width: 100%; |
| | | height: 100%; |
| | | // border: 1px solid #000; |
| | | box-sizing: border-box; |
| | | width: 100%; |
| | | height: 100%; |
| | | // border: 1px solid #000; |
| | | box-sizing: border-box; |
| | | } |
| | | // .el-card__body { |
| | | // padding-bottom: 5px !important; |
| | |
| | | // } |
| | | |
| | | .baoanzheng { |
| | | // position: fixed; |
| | | position: relative; |
| | | // top: 0; |
| | | top: 0; |
| | | // left: -10%; |
| | | left: 0; |
| | | // height: 0; |
| | | width: 100%; |
| | | height: calc(100% - 100px); |
| | | // background-color: rgba(0, 0, 0, 0.5); |
| | | background-color: #fff; |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | // position: fixed; |
| | | position: relative; |
| | | // top: 0; |
| | | top: 0; |
| | | // left: -10%; |
| | | left: 0; |
| | | // height: 0; |
| | | width: 100%; |
| | | height: calc(100% - 100px); |
| | | // background-color: rgba(0, 0, 0, 0.5); |
| | | background-color: #fff; |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .baz-main { |
| | | position: relative; |
| | | top: 15px; |
| | | // width: 441px; |
| | | // height: 358px; |
| | | width: 750px; |
| | | height: 550px; |
| | | // background-color: #004ca7; |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | position: relative; |
| | | top: 15px; |
| | | // width: 441px; |
| | | // height: 358px; |
| | | width: 750px; |
| | | height: 550px; |
| | | // background-color: #004ca7; |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | } |
| | | .baz-m-body { |
| | | width: 750px; |
| | | height: 550px; |
| | | background-image: url("/img/register/bazbj1.png"); |
| | | background-size: 100% 100%; |
| | | .bmb-heard { |
| | | font-size: 4rem; |
| | | width: 100%; |
| | | text-align: center; |
| | | letter-spacing: 1.4rem; |
| | | margin-bottom: 40px; |
| | | padding-left: 10px; |
| | | position: relative; |
| | | top: 20px; |
| | | } |
| | | .img { |
| | | width: 358px; |
| | | height: 441px; |
| | | border-radius: 10px; |
| | | position: absolute; |
| | | // border: 1px solid rgba($color: #888888, $alpha: 0.5); |
| | | top: 110px; |
| | | right: 80px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | width: 750px; |
| | | height: 550px; |
| | | background-image: url('/img/register/bazbj1.png'); |
| | | background-size: 100% 100%; |
| | | .bmb-heard { |
| | | font-size: 4rem; |
| | | width: 100%; |
| | | text-align: center; |
| | | letter-spacing: 1.4rem; |
| | | margin-bottom: 40px; |
| | | padding-left: 10px; |
| | | position: relative; |
| | | top: 20px; |
| | | } |
| | | } |
| | | .imgs { |
| | | width: 110px; |
| | | height: 110px; |
| | | border-radius: 10px; |
| | | position: absolute; |
| | | // border: 1px solid rgba($color: #888888, $alpha: 0.5); |
| | | top: 330px; |
| | | right: 103px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | .img { |
| | | width: 358px; |
| | | height: 441px; |
| | | border-radius: 10px; |
| | | position: absolute; |
| | | // border: 1px solid rgba($color: #888888, $alpha: 0.5); |
| | | top: 110px; |
| | | right: 80px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | .bmb-b { |
| | | padding-left: 20px; |
| | | box-sizing: border-box; |
| | | height: 3.9rem; |
| | | margin-left: 3rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | font-weight: 300; |
| | | .bmb-b-s { |
| | | display: inline-block; |
| | | width: 20rem; |
| | | font-size: 2rem; |
| | | font-weight: 300; |
| | | .imgs { |
| | | width: 110px; |
| | | height: 110px; |
| | | border-radius: 10px; |
| | | position: absolute; |
| | | // border: 1px solid rgba($color: #888888, $alpha: 0.5); |
| | | top: 330px; |
| | | right: 103px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | .bmb-b { |
| | | padding-left: 20px; |
| | | box-sizing: border-box; |
| | | height: 3.9rem; |
| | | margin-left: 3rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | font-weight: 300; |
| | | .bmb-b-s { |
| | | display: inline-block; |
| | | width: 20rem; |
| | | font-size: 2rem; |
| | | font-weight: 300; |
| | | } |
| | | } |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | margin-top: 15px; |
| | | } |
| | | </style> |