123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- // 所有的菜单权限都要在这里面写. 按照模块来定义。 创建菜单和按钮的时候先这这里定义。
- const ButtonPermKeys = {
- //模块
- INDEX: {
- //目录
- CATALOG: "index",
- //菜单
- MENUS: {
- dashboard: "index::dashboard",
- },
- // buttons
- BTNS: {
- dash_xxx: "xxx:xx:xxx",
- },
- },
- // 系统管理
- SYSTEM: {
- CATALOG: "system",
- MENUS: {
- user: "system::sysUser",
- role: "system::sysRole",
- dept: "system::sysPost",
- menu: "system::sysMenu",
- logs: "system::sysDict",
- dict: "system::sysLog",
- },
- BTNS: {
- user_add: "sys:user:add",
- menu_add: "sys:menu:add",
- menu_edit: "sys:menu:edit",
- menu_del: "sys:menu:del",
- dictType_add: "sys:dict_type:add",
- dictType_edit: "sys:dict_type:edit",
- dictType_del: "sys:dict_type:del",
- dict_add: "sys:dict:add",
- dict_edit: "sys:dict:edit",
- dict_del: "sys:dict:del",
- traceability_excel_update: "traceability::excel::update",
- },
- },
- // 订单管理
- PLAN: {
- CATALOG: "plan",
- MENUS: {
- order: "plan:order",
- workOrder: "plan:workOrder",
- },
- BTNS: {
- order_add: "plan:order:add",
- order_edit: "plan:order:edit",
- order_del: "plan:order:del",
- order_import: "plan:order:import",
- order_export: "plan:order:export",
- work_order_add: "plan:workOrder:add",
- work_order_edit: "plan:workOrder:edit",
- work_order_del: "plan:workOrder:del",
- work_order_aps: "plan:workOrder:aps",
- work_order_lock: "plan:workOrder:lock",
- work_order_data: "plan:workOrder:data",
- work_order_downLoad: "plan:workOrder:downLoad",
- filtersheet_del: "plan:filtersheet:del",
- plan_task_batchUpdate: "plan:task:batchUpdate",
- },
- },
- // 基础数据
- BasicData: {
- CATALOG: "base",
- MENUS: {},
- BTNS: {
- picture_del: "base:picture:del",
- picture_edit: "base:picture:edit",
- picture_download: "base:picture:download",
- },
- },
- //设备管理
- DEVICE: {
- MENUS: {
- maintenance: "device:maintenance",
- instance: "device:instance",
- },
- BTNS: {
- maintenance_add: "device:maintenance:add",
- maintenance_handle: "device:maintenance:handle",
- maintenance_edit: "device:maintenance:edit",
- maintenance_del: "device:maintenance:del",
- repair_repair: "device:repair:repair",
- repair_add: "device:repair:add",
- repair_edit: "device:repair:edit",
- repair_del: "device:repair:del",
- repair_audit: "device:repair:audit",
- repair_audit1: "device:repair:audit1",
- repair_audit2: "device:repair:audit2",
- repair_audit3: "device:repair:audit3",
- allocate_add: "device:allocate:add",
- allocate_edit: "device:allocate:edit",
- allocate_del: "device:allocate:del",
- allocate_audit: "device:allocate:audit",
- allocate_export: "device:allocate:export",
- disable_process: "device:disable:process",
- device_edit: "device:instance:edit",
- },
- },
- //报故处理
- FAULT: {
- MENUS: {
- faultHandle: "quality::faultHandle",
- },
- BTNS: {
- faultHandle_handle: "quality::faultHandle::handle",
- faultHandle_thaw: "quality::faultHandle::thaw",
- faultHandle_examine: "quality::faultHandle::examine",
- },
- },
- };
- export default ButtonPermKeys;
|