Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
| | |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleBatchExam" |
| | | v-if="permission.applyexam_exam" |
| | | >生成考试 |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | | @click="handleImport" |
| | | v-if="permission.applyexam_import" |
| | | @click="handleImport" |
| | | >清册导入 |
| | | </el-button> |
| | | </template> |
| | |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-refresh-left" |
| | | v-if="permission.applyexam_cancel" |
| | | :disabled="row.isApply == 2" |
| | | @click="handleCancel(row)" |
| | | >取消报名 |
| | |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | v-if="row.candidateNo != ''" |
| | | v-if="permission.applyexam_print && row.candidateNo!=''" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | </el-button> |
| | |
| | | addExam, |
| | | } from "@/api/examapi/applyexam"; |
| | | import { mapState } from "vuex"; |
| | | |
| | | import { mapGetters } from "vuex"; |
| | | var DIC = { |
| | | applyStatus: [ |
| | | { |
| | |
| | | ...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) => { |
| | |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | v-if="permission.notice_delete" |
| | | plain |
| | | @click="handleDelete" |
| | | >删 除 |
| | |
| | | <el-tag>{{ row.categoryName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button :size="size" :type="type" @click="handleUploadPage(row)" |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.notice_upload" |
| | | @click="handleUploadPage(row)" |
| | | >附件上传 |
| | | </el-button> |
| | | <!-- <el-button |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permissionAdd, true), |
| | | viewBtn: this.vaildData(this.permissionView, true), |
| | | delBtn: this.vaildData(this.permissionDelete, true), |
| | | editBtn: this.vaildData(this.permissionEdit, true), |
| | | addBtn: this.vaildData(this.permission.notice_add, false), |
| | | viewBtn: this.vaildData(this.permission.notice_view, false), |
| | | delBtn: this.vaildData(this.permission.notice_delete, false), |
| | | editBtn: this.vaildData(this.permission.notice_edit, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | ? (that.deptCategory = true) |
| | | : (that.deptCategory = false); |
| | | |
| | | // if (that.deptCategory) { |
| | | that.permissionAdd = this.permission.notice_add; |
| | | that.permissionView = this.permission.notice_view; |
| | | that.permissionDelete = this.permission.notice_delete; |
| | | that.permissionEdit = this.permission.notice_edit; |
| | | // } |
| | | }); |
| | | }, |
| | | //跳转到附件列表页面 |
| | |
| | | ? (that.deptCategory = true) |
| | | : (that.deptCategory = false); |
| | | |
| | | // if (that.deptCategory) { |
| | | that.permissionAdd = this.permission.notice_add; |
| | | that.permissionView = this.permission.notice_view; |
| | | that.permissionDelete = this.permission.notice_delete; |
| | | that.permissionEdit = this.permission.notice_edit; |
| | | // } |
| | | |
| | | const { releaseTimeRange } = this.query; |
| | | // if (that.deptCategory) { |
| | | // params["deptId"] = this.deptId; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | // } |
| | | let values = { |
| | | ...params, |
| | | }; |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | // this.data.forEach((item) => { |
| | | // if (item.category == 2) { |
| | | // that.option.addBtn = false; |
| | | // that.option.editBtn = false; |
| | | // that.option.delBtn = false; |
| | | // } |
| | | // if (item.category == 1) { |
| | | // that.option.addBtn = true; |
| | | // that.option.editBtn = true; |
| | | // that.option.delBtn = true; |
| | | // } |
| | | // }); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | |
| | | icon="el-icon-collection" |
| | | class="start-kaoshi" |
| | | :disabled="row.qualified==1" |
| | | v-if="permission.singleperformance_print" |
| | | @click="securityPrint(row)" |
| | | >保安证打印 |
| | | </el-button> |
| | |
| | | |
| | | <script> |
| | | import { getList, update } from "@/api/examapi/performance"; |
| | | |
| | | import { mapGetters } from "vuex"; |
| | | export default { |
| | | data() { |
| | | var validatePass = (rule, value, callback) => { |
| | |
| | | questionBankSelectionList: [], |
| | | }; |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.user_add, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(this.permission.user_edit, false), |
| | | }; |
| | | }, |
| | | }, |
| | | created() {}, |
| | | mounted() {}, |
| | | methods: { |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.securityGuard_import" |
| | | @click="handleImport1" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.user_delete" |
| | | @click="handleDelete" |
| | | >注 销 |
| | | </el-button> |
| | |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_delete" |
| | | @click.stop="rowDel(row)" |
| | | >离职登记 |
| | | </el-button> |
| | |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.user_add, false), |
| | | addBtn: this.vaildData(this.permission.securityGuard_add, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(this.permission.user_edit, false), |
| | | delBtn: this.vaildData(this.permission.securityGuard_delete, false), |
| | | editBtn: this.vaildData(this.permission.securityGuard_edit, false), |
| | | }; |
| | | }, |
| | | platformPermissionList() { |
| | |
| | | label: "汇报类别", |
| | | prop: "category", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | cascaderItem: ["receivedIds"], |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | span: 24, |
| | | type: "tree", |
| | | // lazy: true, |
| | | dicUrl: "/api/blade-system/dept/lazy-tree-user-app?type={{key}}", |
| | | // dicUrl: "/api/blade-system/dept/lazy-tree-user-app?type={{key}}", |
| | | hide: true, |
| | | props: { |
| | | label: "title", |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(this.permission.notice_view, false), |
| | | viewBtn: this.vaildData(this.permission.workreply_view, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(this.permission.notice_edit, false), |
| | | editBtn: this.vaildData(this.permission.workreply_edit, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | |
| | | <script> |
| | | import { workreportColumn } from "./data"; |
| | | import { mapState } from "vuex"; |
| | | import { |
| | | getListPage, |
| | | remove, |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.notice_add, false), |
| | | viewBtn: this.vaildData(this.permission.notice_view, false), |
| | | delBtn: this.vaildData(this.permission.notice_delete, false), |
| | | editBtn: this.vaildData(this.permission.notice_edit, false), |
| | | addBtn: this.vaildData(this.permission.workreport_add, false), |
| | | viewBtn: this.vaildData(this.permission.workreport_view, false), |
| | | delBtn: this.vaildData(this.permission.workreport_delete, false), |
| | | editBtn: this.vaildData(this.permission.workreport_edit, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | |
| | | ? (that.deptCategory = true) |
| | | : (that.deptCategory = false); |
| | | |
| | | // const { releaseTimeRange } = this.query; |
| | | // if (that.deptCategory) { |
| | | //1:保安公司 2:公安 3:培训公司 |
| | | if(deptCategory == 1 || deptCategory == 3){ |
| | | const column = that.findObject(that.option.column, "category"); |
| | | column.dicUrl = "/api/blade-system/dict-biz/dictionary?code=securityWorkReportCategory"; |
| | | const columnReceivedIds = that.findObject(that.option.column, "receivedIds"); |
| | | columnReceivedIds.dicUrl = "/api/blade-system/dept/lazy-tree-users?type={{key}}&deptId="+that.userInfo.dept_id; |
| | | } |
| | | if(deptCategory == 2){ |
| | | const column = that.findObject(that.option.column, "category"); |
| | | column.dicUrl = "/api/blade-system/dict-biz/dictionary?code=workReportCategory"; |
| | | const columnReceivedIds = that.findObject(that.option.column, "receivedIds"); |
| | | columnReceivedIds.dicUrl = "/api/blade-system/dept/lazy-tree-users?type={{key}}&deptId="+that.userInfo.dept_id; |
| | | } |
| | | params["deptId"] = this.deptId; |
| | | params["userId"] = this.userId; |
| | | // } |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | // if (releaseTimeRange) { |
| | | // values = { |
| | | // ...params, |
| | | // startTime: releaseTimeRange[0], |
| | | // endTime: releaseTimeRange[1], |
| | | // ...this.query, |
| | | // }; |
| | | // values.releaseTimeRange = null; |
| | | // } |
| | | this.loading = true; |
| | | getListPage(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |