docking-vue/src/request/data_dictionary.js

15 lines
323 B
JavaScript
Raw Normal View History

2025-06-10 09:31:15 +08:00
import { post } from "./axios";
// 获取部门
export const getDepartmentTree = (parentId = "0") =>
post("/oa/department/getTree", {
loading: false,
parentId,
});
// 获取数据字典
export const getDataDictionaries = (params) =>
post("/dictionaries/getLevels", {
loading: false,
...params,
});