9a5d66cb806ca58eb2e9c073cc1db54a.json 6.0 KB

1
  1. {"remainingRequest":"D:\\jiayue\\cemp-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\jiayue\\cemp-ui\\src\\api\\admin\\role.js","dependencies":[{"path":"D:\\jiayue\\cemp-ui\\src\\api\\admin\\role.js","mtime":1619070292863},{"path":"D:\\jiayue\\cemp-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jiayue\\cemp-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000}],"contextDependencies":[],"result":["/*\r\n * Copyright (c) 2018-2025, lengleng All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions are met:\r\n *\r\n * Redistributions of source code must retain the above copyright notice,\r\n * this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright\r\n * notice, this list of conditions and the following disclaimer in the\r\n * documentation and/or other materials provided with the distribution.\r\n * Neither the name of the pig4cloud.com developer nor the names of its\r\n * contributors may be used to endorse or promote products derived from\r\n * this software without specific prior written permission.\r\n * Author: lengleng (wangiegie@gmail.com)\r\n */\nimport request from '@/router/axios';\nexport function fetchList(query) {\n return request({\n url: '/admin/role/page',\n method: 'get',\n params: query\n });\n}\nexport function deptRoleList() {\n return request({\n url: '/admin/role/list',\n method: 'get'\n });\n}\nexport function getObj(id) {\n return request({\n url: '/admin/role/' + id,\n method: 'get'\n });\n}\nexport function addObj(obj) {\n return request({\n url: '/admin/role',\n method: 'post',\n data: obj\n });\n}\nexport function putObj(obj) {\n return request({\n url: '/admin/role',\n method: 'put',\n data: obj\n });\n}\nexport function delObj(id) {\n return request({\n url: '/admin/role/' + id,\n method: 'delete'\n });\n}\nexport function permissionUpd(roleId, menuIds) {\n return request({\n url: '/admin/role/menu',\n method: 'put',\n data: {\n roleId: roleId,\n menuIds: menuIds\n }\n });\n}\nexport function fetchRoleTree(roleName) {\n return request({\n url: '/admin/menu/tree/' + roleName,\n method: 'get'\n });\n}",{"version":3,"sources":["D:/jiayue/cemp-ui/src/api/admin/role.js"],"names":["request","fetchList","query","url","method","params","deptRoleList","getObj","id","addObj","obj","data","putObj","delObj","permissionUpd","roleId","menuIds","fetchRoleTree","roleName"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAOA,OAAP,MAAoB,gBAApB;AAEA,OAAO,SAASC,SAAT,CAAoBC,KAApB,EAA2B;AAChC,SAAOF,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,kBADQ;AAEbC,IAAAA,MAAM,EAAE,KAFK;AAGbC,IAAAA,MAAM,EAAEH;AAHK,GAAD,CAAd;AAKD;AAED,OAAO,SAASI,YAAT,GAAyB;AAC9B,SAAON,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,kBADQ;AAEbC,IAAAA,MAAM,EAAE;AAFK,GAAD,CAAd;AAID;AAED,OAAO,SAASG,MAAT,CAAiBC,EAAjB,EAAqB;AAC1B,SAAOR,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,iBAAiBK,EADT;AAEbJ,IAAAA,MAAM,EAAE;AAFK,GAAD,CAAd;AAID;AAED,OAAO,SAASK,MAAT,CAAiBC,GAAjB,EAAsB;AAC3B,SAAOV,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,aADQ;AAEbC,IAAAA,MAAM,EAAE,MAFK;AAGbO,IAAAA,IAAI,EAAED;AAHO,GAAD,CAAd;AAKD;AAED,OAAO,SAASE,MAAT,CAAiBF,GAAjB,EAAsB;AAC3B,SAAOV,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,aADQ;AAEbC,IAAAA,MAAM,EAAE,KAFK;AAGbO,IAAAA,IAAI,EAAED;AAHO,GAAD,CAAd;AAKD;AAED,OAAO,SAASG,MAAT,CAAiBL,EAAjB,EAAqB;AAC1B,SAAOR,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,iBAAiBK,EADT;AAEbJ,IAAAA,MAAM,EAAE;AAFK,GAAD,CAAd;AAID;AAED,OAAO,SAASU,aAAT,CAAwBC,MAAxB,EAAgCC,OAAhC,EAAyC;AAC9C,SAAOhB,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,kBADQ;AAEbC,IAAAA,MAAM,EAAE,KAFK;AAGbO,IAAAA,IAAI,EAAE;AACJI,MAAAA,MAAM,EAAEA,MADJ;AAEJC,MAAAA,OAAO,EAAEA;AAFL;AAHO,GAAD,CAAd;AAQD;AAED,OAAO,SAASC,aAAT,CAAwBC,QAAxB,EAAkC;AACvC,SAAOlB,OAAO,CAAC;AACbG,IAAAA,GAAG,EAAE,sBAAsBe,QADd;AAEbd,IAAAA,MAAM,EAAE;AAFK,GAAD,CAAd;AAID","sourcesContent":["/*\r\n * Copyright (c) 2018-2025, lengleng All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions are met:\r\n *\r\n * Redistributions of source code must retain the above copyright notice,\r\n * this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright\r\n * notice, this list of conditions and the following disclaimer in the\r\n * documentation and/or other materials provided with the distribution.\r\n * Neither the name of the pig4cloud.com developer nor the names of its\r\n * contributors may be used to endorse or promote products derived from\r\n * this software without specific prior written permission.\r\n * Author: lengleng (wangiegie@gmail.com)\r\n */\r\n\r\nimport request from '@/router/axios'\r\n\r\nexport function fetchList (query) {\r\n return request({\r\n url: '/admin/role/page',\r\n method: 'get',\r\n params: query\r\n })\r\n}\r\n\r\nexport function deptRoleList () {\r\n return request({\r\n url: '/admin/role/list',\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function getObj (id) {\r\n return request({\r\n url: '/admin/role/' + id,\r\n method: 'get'\r\n })\r\n}\r\n\r\nexport function addObj (obj) {\r\n return request({\r\n url: '/admin/role',\r\n method: 'post',\r\n data: obj\r\n })\r\n}\r\n\r\nexport function putObj (obj) {\r\n return request({\r\n url: '/admin/role',\r\n method: 'put',\r\n data: obj\r\n })\r\n}\r\n\r\nexport function delObj (id) {\r\n return request({\r\n url: '/admin/role/' + id,\r\n method: 'delete'\r\n })\r\n}\r\n\r\nexport function permissionUpd (roleId, menuIds) {\r\n return request({\r\n url: '/admin/role/menu',\r\n method: 'put',\r\n data: {\r\n roleId: roleId,\r\n menuIds: menuIds\r\n }\r\n })\r\n}\r\n\r\nexport function fetchRoleTree (roleName) {\r\n return request({\r\n url: '/admin/menu/tree/' + roleName,\r\n method: 'get'\r\n })\r\n}\r\n"]}]}