buttonPermission.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // 所有的菜单权限都要在这里面写. 按照模块来定义。 创建菜单和按钮的时候先这这里定义。
  2. const ButtonPermKeys = {
  3. //模块
  4. INDEX: {
  5. //目录
  6. CATALOG: "index",
  7. //菜单
  8. MENUS: {
  9. dashboard: "index::dashboard",
  10. },
  11. // buttons
  12. BTNS: {
  13. dash_xxx: "xxx:xx:xxx",
  14. },
  15. },
  16. // 系统管理
  17. SYSTEM: {
  18. CATALOG: "system",
  19. MENUS: {
  20. user: "system::sysUser",
  21. role: "system::sysRole",
  22. dept: "system::sysPost",
  23. menu: "system::sysMenu",
  24. logs: "system::sysDict",
  25. dict: "system::sysLog",
  26. },
  27. BTNS: {
  28. user_add: "sys:user:add",
  29. menu_add: "sys:menu:add",
  30. menu_edit: "sys:menu:edit",
  31. menu_del: "sys:menu:del",
  32. dictType_add: "sys:dict_type:add",
  33. dictType_edit: "sys:dict_type:edit",
  34. dictType_del: "sys:dict_type:del",
  35. dict_add: "sys:dict:add",
  36. dict_edit: "sys:dict:edit",
  37. dict_del: "sys:dict:del",
  38. traceability_excel_update: "traceability::excel::update",
  39. },
  40. },
  41. // 订单管理
  42. PLAN: {
  43. CATALOG: "plan",
  44. MENUS: {
  45. order: "plan:order",
  46. workOrder: "plan:workOrder",
  47. },
  48. BTNS: {
  49. order_add: "plan:order:add",
  50. order_edit: "plan:order:edit",
  51. order_del: "plan:order:del",
  52. order_import: "plan:order:import",
  53. order_export: "plan:order:export",
  54. work_order_add: "plan:workOrder:add",
  55. work_order_edit: "plan:workOrder:edit",
  56. work_order_del: "plan:workOrder:del",
  57. work_order_aps: "plan:workOrder:aps",
  58. work_order_lock: "plan:workOrder:lock",
  59. work_order_data: "plan:workOrder:data",
  60. work_order_downLoad: "plan:workOrder:downLoad",
  61. filtersheet_del: "plan:filtersheet:del",
  62. plan_task_batchUpdate: "plan:task:batchUpdate",
  63. },
  64. },
  65. // 基础数据
  66. BasicData: {
  67. CATALOG: "base",
  68. MENUS: {},
  69. BTNS: {
  70. picture_del: "base:picture:del",
  71. picture_edit: "base:picture:edit",
  72. picture_download: "base:picture:download",
  73. },
  74. },
  75. //设备管理
  76. DEVICE: {
  77. MENUS: {
  78. maintenance: "device:maintenance",
  79. instance: "device:instance",
  80. },
  81. BTNS: {
  82. maintenance_add: "device:maintenance:add",
  83. maintenance_handle: "device:maintenance:handle",
  84. maintenance_edit: "device:maintenance:edit",
  85. maintenance_del: "device:maintenance:del",
  86. repair_repair: "device:repair:repair",
  87. repair_add: "device:repair:add",
  88. repair_edit: "device:repair:edit",
  89. repair_del: "device:repair:del",
  90. repair_audit: "device:repair:audit",
  91. repair_audit1: "device:repair:audit1",
  92. repair_audit2: "device:repair:audit2",
  93. repair_audit3: "device:repair:audit3",
  94. allocate_add: "device:allocate:add",
  95. allocate_edit: "device:allocate:edit",
  96. allocate_del: "device:allocate:del",
  97. allocate_audit: "device:allocate:audit",
  98. allocate_export: "device:allocate:export",
  99. disable_process: "device:disable:process",
  100. device_edit: "device:instance:edit",
  101. },
  102. },
  103. //报故处理
  104. FAULT: {
  105. MENUS: {
  106. faultHandle: "quality::faultHandle",
  107. },
  108. BTNS: {
  109. faultHandle_handle: "quality::faultHandle::handle",
  110. faultHandle_thaw: "quality::faultHandle::thaw",
  111. faultHandle_examine: "quality::faultHandle::examine",
  112. },
  113. },
  114. };
  115. export default ButtonPermKeys;