| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | v-if="permission.accreditationRecords_export" |
| | | v-if="permission.accreditationRecords_export || check" |
| | | @click="handleExport" |
| | | >保安员证信息导出 |
| | | </el-button> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | check:false, |
| | | form: {}, |
| | | query: {}, |
| | | questionBankSearch: {}, |
| | |
| | | mounted() { |
| | | this.getDeptInfo(this.userInfo.dept_id); |
| | | }, |
| | | created(){ |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //判断是否为市局管理员 |
| | | if(this.userInfo.jurisdiction=="1372091709474910209"){ |
| | | this.check = true; |
| | | // this.vaildData(this.permission.accreditationRecords_paper_delete, false); |
| | | }else{ |
| | | this.check = false; |
| | | // this.vaildData(null, false); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //获取当前用户部门信息 |
| | | getDeptInfo(deptId) { |
| | |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | v-if="permission.notice_delete" |
| | | v-if="permission.accreditationRecords_paper_delete || check" |
| | | plain |
| | | @click="handleDelete" |
| | | >删 除 |
| | |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | | v-if="permission.accreditationRecords_batch_audit" |
| | | v-if="permission.accreditationRecords_batch_audit || check" |
| | | icon="el-icon-collection-tag" |
| | | @click="handleSecurityAudit" |
| | | >批量审批 |
| | |
| | | <el-button |
| | | :type="type" |
| | | :size="size" |
| | | v-if="permission.accreditationRecords_audit" |
| | | v-if="permission.accreditationRecords_audit || check" |
| | | icon="el-icon-folder-checked" |
| | | @click="handleAudit(row)" |
| | | >审核 |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | check:false, |
| | | certificateYear: null, |
| | | certificateMonth: null, |
| | | certificateFlag: false, |
| | |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData( |
| | | this.permission.accreditationRecords_paper_view, |
| | | false |
| | | ), |
| | | viewBtn: this.vaildData(this.permission.accreditationRecords_paper_view, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | |
| | | this.questionBankSearch["userType"] = 7; |
| | | this.questionBankSearch["auditStatus"] = 2; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //判断是否为市局管理员 |
| | | if(this.userInfo.jurisdiction=="1372091709474910209"){ |
| | | this.check = true; |
| | | // this.vaildData(this.permission.accreditationRecords_paper_delete, false); |
| | | }else{ |
| | | this.check = false; |
| | | // this.vaildData(null, false); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //获取当前用户部门信息 |
| | |
| | | <el-button :type="type" |
| | | :size="size" |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.score_audit_check" |
| | | v-if="permission.score_audit_check || check" |
| | | @click="handleAudit(row)">审核 |
| | | </el-button> |
| | | </template> |
| | |
| | | editBtn: true, |
| | | addBtn: false, |
| | | selection: false, |
| | | check:false, |
| | | // 导出按钮 |
| | | // excelBtn: true, |
| | | // excelBtnText: "成绩导出", |
| | |
| | | |
| | | }; |
| | | }, |
| | | created () { }, |
| | | created(){ |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //判断是否为市局管理员 |
| | | if(this.userInfo.jurisdiction=="1372091709474910209"){ |
| | | this.check = true; |
| | | }else{ |
| | | this.check = false; |
| | | } |
| | | } |
| | | }, |
| | | mounted () { }, |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |