/* * @Description: * @Author: xuch * @FilePath: \safe-product-authority-browser\src\api\permission\Organization.ts * @Date: 2022-07-22 17:08:53 * @LastEditTime: 2022-08-19 10:40:54 */ import { http } from "@/utils/https"; import axios from "axios"; /** * @description: 加载权限管理左边的菜单树的json * @param {*} data */ export const getLeftTreeJson = () => { return http.get("/dept/searchTree"); }; /** * @description: 加载所有菜单管理数据 * @param {*} data */ export const getloadAll = (data) => { return http.get("/dept/search", data); }; /** * @description: 新增菜单 * @param {*} data */ export const adddeptdata = (data) => { return http.request("post", "/dept/create", data, { headers: { "Content-Type": "application/json", }, }); }; /** * @description: 修改菜单 * @param {*} data */ export const updatedeptdata = (data) => { return http.request("post", "/dept/update", data, { headers: { "Content-Type": "application/json", }, }); }; /** * @description: 删除菜单 * @param {*} data */ export const deletedeleteata = (data) => { // return http.request("post", "/dept/delete", data, { // headers: { // "Content-Type": "application/json", // }, // }); return http.post("/dept/delete", data); };