| | |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | :permission="permissionList" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | v-if="permission.dispatch_delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | v-if="permission.dispatch_import" |
| | | @click="handleImport" |
| | | >批量导入 |
| | | </el-button> |
| | |
| | | //赋值 |
| | | 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=" + |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.dispatch_add, false), |
| | | viewBtn: this.vaildData(this.permission.dispatch_view, true), |
| | | delBtn: this.vaildData(this.permission.dispatch_delete, false), |
| | | editBtn: this.vaildData(this.permission.dispatch_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | 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( |