You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
619 B
JavaScript
34 lines
619 B
JavaScript
3 years ago
|
import axios from "@/utils/request";
|
||
|
|
||
|
export function filterDepts(query) {
|
||
|
return axios({
|
||
|
url: "/udi/auth/dept/filter",
|
||
|
method: "get",
|
||
|
params: query
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function addDept(data) {
|
||
|
return axios({
|
||
|
url: "/udi/auth/dept/add",
|
||
|
method: "post",
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function updateDept(data) {
|
||
|
return axios({
|
||
|
url: "/udi/auth/dept/update",
|
||
|
method: "post",
|
||
|
data: data
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export function deleteDept(data) {
|
||
|
return axios({
|
||
|
url: "/udi/auth/dept/delete",
|
||
|
method: "post",
|
||
|
data: data
|
||
|
});
|
||
|
}
|