import config from "@/config" import http from "@/utils/request" export default { projectUser: { name: "获取我的项目", url: `${config.API_URL}/api/projectUserRef/getUserProjectList`, get: async function () { return await http.post(this.url); } }, menu: { name: "菜单管理", url: `${config.API_URL}/mes/sysMenu`, build: async function () { return await http.post(`${this.url}/build`); }, get: async function (data = {}) { return await http.post(`${this.url}/getList`, data); }, add: async function (data = {}) { return await http.post(`${this.url}/save`, data); }, edit: async function (data = {}) { return await http.post(`${this.url}/update`, data); }, del: async function (data = {}) { return await http.post(`${this.url}/remove`, data); } }, role: { name: "角色管理", url: `${config.API_URL}/mes/sysRole`, get: async function (data = {}) { return await http.post(`${this.url}/getPage`, data); }, all: async function (data = {}) { return await http.post(`${this.url}/getList`, data); }, add: async function (data = {}) { return await http.post(`${this.url}/save`, data); }, edit: async function (data = {}) { return await http.post(`${this.url}/update`, data); }, del: async function (data = {}) { return await http.post(`${this.url}/remove`, data); } }, roleMenu: { name: "角色菜单管理", url: `${config.API_URL}/mes/sysRolesMenus`, get: async function (data = {}) { return await http.post(`${this.url}/getList`, data); }, edit: async function (data = {}) { return await http.post(`${this.url}/batchSave`, data); } }, dept: { name: "部门管理", url: `${config.API_URL}/mes/sysDept`, get: async function (data = {}) { return await http.post(`${this.url}/getList`, data); }, add: async function (data = {}) { return await http.post(`${this.url}/save`, data); }, edit: async function (data = {}) { return await http.post(`${this.url}/update`, data); }, del: async function (data = {}) { return await http.post(`${this.url}/remove`, data); } } }