{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/api/role.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/api/role.js","mtime":1720690881863},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport request from '@/utils/request';\n\n/**\n * 新增\n * @param\n */\nexport function addRole(pram) {\n  var data = {\n    roleName: pram.roleName,\n    status: pram.status,\n    rules: pram.rules,\n    merId: pram.merId\n  };\n  // data.rules = pram.rules.join(',')\n  return request({\n    url: '/admin/merchant/role/save',\n    method: 'POST',\n    data: data\n  });\n}\n\n/**\n * 删除\n * @param\n */\nexport function delRole(id) {\n  return request({\n    url: \"admin/merchant/role/delete/\".concat(id),\n    method: 'post'\n  });\n}\n\n/**\n * 详情\n * @param\n */\nexport function getInfo(pram) {\n  return request({\n    url: \"/admin/merchant/role/info/\".concat(pram),\n    method: 'GET'\n  });\n}\n\n/**\n * 分页列表\n * @param\n */\nexport function getRoleList(pram) {\n  var data = {\n    page: pram.page,\n    limit: pram.limit,\n    roleName: pram.roleName,\n    status: pram.status\n  };\n  return request({\n    url: '/admin/merchant/role/list',\n    method: 'get',\n    params: data\n  });\n}\n\n/**\n * 修改\n * @param\n */\nexport function updateRole(pram) {\n  var data = {\n    id: pram.id,\n    roleName: pram.roleName,\n    rules: pram.rules,\n    status: pram.status,\n    merId: pram.merId\n  };\n  return request({\n    url: '/admin/merchant/role/update',\n    method: 'post',\n    data: data\n  });\n}\n\n/**\n * 修改身份状态\n * @param\n */\nexport function updateRoleStatus(pram) {\n  return request({\n    url: '/admin/merchant/role/updateStatus',\n    method: 'get',\n    params: {\n      id: pram.id,\n      status: pram.status,\n      merid: pram.merid\n    }\n  });\n}\n\n/**\n * 缓存菜单\n * @param\n */\nexport function menuCacheList(pram) {\n  return request({\n    url: '/admin/merchant/menu/cache/tree',\n    method: 'get'\n  });\n}\nexport function getul(pram) {\n  return request({\n    url: '/admin/merchant/user/v5emp/list?page=1&limit=99999',\n    method: 'get'\n  });\n}",null]}