| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec1" |
| | | :permission="permissionList" |
| | | v-model="form" |
| | | :table-loading="loading" |
| | | :before-open="beforeOpen" |
| | |
| | | } from "@/api/dispatch/dispatch"; |
| | | import { update, getSecurityDispatcherTree } from "@/api/system/user"; |
| | | import { mapState } from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | 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=" + |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | // }, |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.dispatchChildoperable_add, false), |
| | | viewBtn: this.vaildData(this.permission.dispatchChildoperable_view, true), |
| | | delBtn: this.vaildData(this.permission.dispatchChildoperable_delete, false), |
| | | editBtn: this.vaildData(this.permission.dispatchChildoperable_edit, false) |
| | | }; |
| | | }, |
| | | ids1() { |
| | | let ids1 = []; |
| | | this.selectionList1.forEach(ele => { |
| | |
| | | values["deptId"] = this.useifid; |
| | | } |
| | | //公安局进入 |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") { |
| | | values["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | getdata1( |