| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus} from "@/api/system/role"; |
| | | import {treeselect as menuTreeselect, roleMenuTreeselect} from "@/api/system/menu"; |
| | | import {treeselect as deptTreeselect, roleDeptTreeselect, listOrgRoot} from "@/api/system/dept"; |
| | | import {addRole, changeRoleStatus, dataScope, delRole, getRole, listRole, updateRole} from "@/api/system/role"; |
| | | import {roleMenuTreeselect, treeselect as menuTreeselect} from "@/api/system/menu"; |
| | | import {listOrgRoot, roleDeptTreeselect, treeselect as deptTreeselect} from "@/api/system/dept"; |
| | | import MyTableV2 from "@/components/myTable/myTableV2"; |
| | | import SettingIplatform from '@/utils/settingIplatform'; |
| | | import items from './items' |
| | |
| | | custom: [ |
| | | { |
| | | name: '新增', |
| | | checkPermission:'system:role:edit', |
| | | // checkPermission:'system:role:edit', |
| | | click: () => { |
| | | this.handleAdd(null) |
| | | } |
| | |
| | | }, |
| | | // 列信息 |
| | | columns: [ |
| | | {title: '角色编号', field: 'role_id', align: 'center', width: '200px'}, |
| | | {title: '角色名称', field: 'role_name', align: 'center', width: '260px'}, |
| | | {title: '权限字符', field: 'role_key', align: 'center', width: '260px'}, |
| | | {title: '显示顺序', field: 'role_sort', align: 'center', width: '100px'}, |
| | | {title: '角色编号', field: 'role_id', align: 'center',}, |
| | | {title: '角色名称', field: 'role_name', align: 'center',}, |
| | | {title: '权限字符', field: 'role_key', align: 'center',}, |
| | | {title: '顺序号', field: 'role_sort', align: 'center',}, |
| | | { |
| | | title: '状态', field: 'status', align: 'center', width: '100px', |
| | | title: '状态', field: 'status', align: 'center', |
| | | switch: row => { |
| | | const result = {} |
| | | if (row.status == 0) { |
| | |
| | | return result |
| | | } |
| | | }, |
| | | {title: '备注', field: 'remark', align: 'left', width: '250px'}, |
| | | // {title: '备注', field: 'remark', align: 'left', width: '250px'}, |
| | | ], |
| | | // 操作信息 |
| | | operation: { |
| | | // width: 150, |
| | | width: 150, |
| | | align: 'center', |
| | | show: true, // 显示操作列 |
| | | attr: [ |