| | |
| | | //如果是培训公司管理员 |
| | | params["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | //如果是培训公司管理员 |
| | | data["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | //如果是培训公司管理员 |
| | | params["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | //如果是培训公司管理员 |
| | | data["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | //如果是培训公司管理员 |
| | | data["createUser"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | v-if="permission.notice_delete" |
| | | v-if="permission.notification_delete" |
| | | plain |
| | | @click="handleDelete" |
| | | >删 除 |
| | |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.notice_upload" |
| | | v-if="permission.notification_upload" |
| | | @click="handleUploadPage(row)" |
| | | >附件上传 |
| | | </el-button> |
| | |
| | | ...mapGetters(["userInfo", "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.notification_add, false), |
| | | viewBtn: this.vaildData(this.permission.notification_view, false), |
| | | delBtn: this.vaildData(this.permission.notification_delete, false), |
| | | editBtn: this.vaildData(this.permission.notification_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | //赋值 |
| | | column.value = that.userInfo.dept_id; |
| | | this.useifid = this.userInfo.dept_id; |
| | | } else if (roleName == "公安管理员" || roleName == "administrator") { |
| | | } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") { |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | |
| | | if (this.useifid != 266) { |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | values["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | getdata( |
| | |
| | | column.value = that.userInfo.dept_id; |
| | | this.useifid = this.userInfo.dept_id; |
| | | this.initData(2); |
| | | } else if (roleName == "公安管理员" || roleName == "administrator") { |
| | | } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") { |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | values["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | getdata1( |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | this.loading = true; |
| | | params["ptype"] = 3; |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "派出所管理员"; |
| | |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | v-if="permission.permit_upload" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件 |
| | | </el-button> |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="rowDel(row)" |
| | | v-if="row.type == '2' && userData == '0'" |
| | | v-if="row.type == '2' && userData == '0' || permission.permit_audit" |
| | | >许可审批 |
| | | </el-button> |
| | | <el-button |
| | |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="viewLicense(row)" |
| | | v-if="row.type == '0'" |
| | | v-if="row.type == '0' || permission.permit_print" |
| | | >打印许可证 |
| | | </el-button> |
| | | </template> |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | return; |
| | | } |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | |
| | | deptColumn.value = this.useifid; |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | that.option.column[1].dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | that.userInfo.jurisdiction; |
| | |
| | | params["deptId"] = this.useifid; |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | |
| | |
| | | }, |
| | | }, |
| | | created(){ |
| | | if(this.userInfo.role_name=="公安管理员"){ |
| | | if(this.userInfo.role_name=="公安管理员" || this.userInfo.role_name == "民警"){ |
| | | this.search['auditStatus'] = "1"; |
| | | } |
| | | }, |
| | |
| | | onLoad(page, params = {}) { |
| | | params = this.search; |
| | | this.loading = true; |
| | | if(this.userInfo.role_name=="公安管理员"){ |
| | | if(this.userInfo.role_name=="公安管理员" || this.userInfo.role_name == "民警"){ |
| | | params['jurisdiction'] = this.userInfo.jurisdiction; |
| | | } |
| | | getList( |
| | |
| | | //赋值 |
| | | column.value = that.userInfo.dept_id; |
| | | this.useifid = this.userInfo.dept_id; |
| | | } else if (roleName == "公安管理员" || roleName == "administrator") { |
| | | } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") { |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | |
| | | } |
| | | |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | //保安公司进入 |
| | |
| | | //赋值 |
| | | column.value = that.userInfo.dept_id; |
| | | this.useifid = this.userInfo.dept_id; |
| | | } else if (roleName == "公安管理员" || roleName == "administrator") { |
| | | } else if (roleName == "公安管理员" || roleName == "administrator" || this.userInfo.role_name == "民警") { |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | |
| | | this.openDep("deptId"); |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | |
| | |
| | | this.useifid = this.userInfo.dept_id; |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | that.option.column[5].dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | that.userInfo.jurisdiction; |
| | |
| | | } |
| | | |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | } |
| | | //保安公司进入 |
| | |
| | | icon="el-icon-view" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_view" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | |
| | | column.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?deptId=" + |
| | | this.userInfo.dept_id; |
| | | } else if (roleName == "公安管理员" || roleName == "administrator") { |
| | | } else if (roleName == "公安管理员" || roleName == "administrator" || this.userInfo.role_name == "民警") { |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + |
| | |
| | | //如果是培训公司管理员 |
| | | data["trainingUnitId"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | } else if ( |
| | | roleAlias == "公安管理员" || |
| | | roleAlias == "administrator" |
| | | || this.userInfo.role_name == "民警" |
| | | ) { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | var ColumnDeptUpdate = that.findObject(that.option.group, "deptId"); |
| | |
| | | that.isSecurity = true; |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } else if (roleAlias == "公安管理员") { |
| | | } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | |
| | | that.isSecurity = false; |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } else if (roleAlias == "公安管理员") { |
| | | } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | |
| | | ); |
| | | importColumn.action = |
| | | "/api/blade-user/import-user?deptId=" + this.deptIds; |
| | | } else if (roleAlias == "公安管理员") { |
| | | } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | |
| | | icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.localCompany_view" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.localCompany_upload" |
| | | @click="handleUploadPage(row)" |
| | | icon="el-icon-circle-check" |
| | | >附件上传 |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.localCompany_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.localCompany_import" |
| | | @click="handleImport1" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | // this.getJurisdictionTree(); |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.localCompany_add, false), |
| | | viewBtn: this.vaildData(this.permission.localCompany_view, false), |
| | | delBtn: this.vaildData(this.permission.localCompany_delete, false), |
| | | editBtn: this.vaildData(this.permission.localCompany_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | |
| | | icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityTraining_view" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityTraining_upload" |
| | | @click="handleUploadPage(row)" |
| | | icon="el-icon-circle-check" |
| | | >附件上传 |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.securityTraining_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.securityTraining_import" |
| | | @click="handleImport1" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.securityTraining_add, false), |
| | | viewBtn: this.vaildData(this.permission.securityTraining_view, false), |
| | | delBtn: this.vaildData(this.permission.securityTraining_delete, false), |
| | | editBtn: this.vaildData(this.permission.securityTraining_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | |
| | | icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.selfRecruitedSecurityGuard_view" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.selfRecruitedSecurityGuard_upload" |
| | | @click="handleUploadPage(row)" |
| | | icon="el-icon-circle-check" |
| | | >附件上传 |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.selfRecruitedSecurityGuard_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.selfRecruitedSecurityGuard_import" |
| | | @click="handleImport1" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_add, false), |
| | | viewBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_view, false), |
| | | delBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_delete, false), |
| | | editBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | |
| | | icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.transRegionalcompany_view" |
| | | @click.stop="rowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.transRegionalcompany_upload" |
| | | @click="handleUploadPage(row)" |
| | | icon="el-icon-circle-check" |
| | | >附件上传 |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.transRegionalcompany_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.transRegionalcompany_import" |
| | | @click="handleImport1" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.transRegionalcompany_add, false), |
| | | viewBtn: this.vaildData(this.permission.transRegionalcompany_view, false), |
| | | delBtn: this.vaildData(this.permission.transRegionalcompany_delete, false), |
| | | editBtn: this.vaildData(this.permission.transRegionalcompany_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | if (deptId) { |
| | | //2.1 单位信息进入 |
| | | //判断人员角色 |
| | | if (role_name == "公安管理员" || role_name == "administrator") { |
| | | if (role_name == "公安管理员" || role_name == "administrator" || this.userInfo.role_name == "民警") { |
| | | //3.1 判断按进入的公司类型 |
| | | if (data.state == "2") { |
| | | //本市保安公司,对应的tab 条数 |
| | |
| | | //公安局进入 |
| | | var parentId = null; |
| | | var that = this; |
| | | // if (this.userInfo.role_name == "公安管理员") { |
| | | // if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | |
| | | parentId = this.userInfo.dept_id; |
| | | if (parentId == "1123598813738675201") { |
| | |
| | | |
| | | var that = this; |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | var parentId = this.userInfo.dept_id; |
| | | var userId = this.userInfo.Id; |
| | | getDeptLazyTree(parentId, userId).then(res => { |
| | |
| | | } |
| | | } |
| | | column.dicData = b; |
| | | } else if (d == "公安管理员") { |
| | | } else if (d == "公安管理员" || d=="民警") { |
| | | for (var i in k) { |
| | | if (k[i].title == "公安管理员") { |
| | | if (k[i].title == "公安管理员" || k[i].title == "民警") { |
| | | b.push(k[i]); |
| | | } |
| | | } |
| | |
| | | }); |
| | | // this.userInfo.role_name == "保安公司管理员" |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | var parentId = this.userInfo.dept_id; |
| | | var userId = this.userInfo.Id; |
| | | getDeptLazyTree(parentId, userId).then(res => { |
| | |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | if (this.userInfo.role_name != "公安管理员") { |
| | | if (this.userInfo.role_name != "公安管理员" && this.userInfo.role_name == "民警") { |
| | | const column = this.findObject(this.option.group, "code"); |
| | | column.display = false; |
| | | } |
| | |
| | | }); |
| | | } |
| | | if (["add"].includes(type)) { |
| | | if (this.userInfo.role_name != "公安管理员") { |
| | | if (this.userInfo.role_name != "公安管理员" && this.userInfo.role_name == "民警") { |
| | | const column = this.findObject(this.option.group, "code"); |
| | | column.display = false; |
| | | } |
| | |
| | | this.loading = true; |
| | | var deptid = this.deptids == null ? this.treeDeptId.id : this.deptids; |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["roleId"] = "1"; |
| | | } |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //判断是否为市局管理员 |
| | | if (this.userInfo.jurisdiction == "1372091709474910209") { |
| | | this.check = true; |
| | |
| | | //如果是培训公司管理员 |
| | | params["trainUnitId"] = that.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | //如果是公安管理员 |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | |
| | | }, |
| | | created(){ |
| | | //获取二维码图片 |
| | | if(this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "administrator"){ |
| | | if(this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "administrator" || this.userInfo.role_name == "民警"){ |
| | | this.isImg = true; |
| | | //查询图片 |
| | | getDetails(10).then((res) => { |
| | |
| | | this.selectionClear(); |
| | | }); |
| | | }); |
| | | } else if (this.userInfo.role_name == "公安管理员") { |
| | | } else if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | const column = that.findObject(that.option.column, "category"); |
| | | var code1 = { code: "workReportCategory" }; |
| | | getDictionaryBiz(code1).then(res => { |