// 所有的菜单权限都要在这里面写. 按照模块来定义。 创建菜单和按钮的时候先这这里定义。
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",
    },
  },
  // 订单管理
  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",
      order_data: "plan:order:data",
      order_downLoad: "plan:order:downLoad",
      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",
    },
  },
  //设备管理
  DEVICE:{
    MENUS: {
      maintenance: "device:maintenance",
    },
    BTNS: {
      instance_add: "device:instance:add",
      instance_del: "device:instance:del",
      instance_edit: "device:instance:edit",
      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",
      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",
    }
  },

  //报故处理
  FAULT:{
    MENUS: {
      faultHandle: "quality::faultHandle",
    },
    BTNS: {
      faultHandle_handle: "quality::faultHandle::handle",
      faultHandle_thaw: "quality::faultHandle::thaw",
      faultHandle_examine: "quality::faultHandle::examine",

    }
  }
};

export default ButtonPermKeys;
