From ffd0af47ee31a9592cfab56a907e9841a9113c52 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 20 七月 2023 10:37:17 +0800 Subject: [PATCH] 代码提交,前端代码打包 --- Source/UBCS-WEB/dist/src/api/system/dept.js | 81 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/api/system/dept.js b/Source/UBCS-WEB/dist/src/api/system/dept.js new file mode 100644 index 0000000..d05c15d --- /dev/null +++ b/Source/UBCS-WEB/dist/src/api/system/dept.js @@ -0,0 +1,81 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/ubcs-system/dept/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getLazyList = (parentId, params) => { + return request({ + url: '/api/ubcs-system/dept/lazy-list', + method: 'get', + params: { + ...params, + parentId + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/ubcs-system/dept/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/ubcs-system/dept/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/ubcs-system/dept/submit', + method: 'post', + data: row + }) +} + +export const getDept = (id) => { + return request({ + url: '/api/ubcs-system/dept/detail', + method: 'get', + params: { + id, + } + }) +} + +export const getDeptTree = (tenantId) => { + return request({ + url: '/api/ubcs-system/dept/tree', + method: 'get', + params: { + tenantId, + } + }) +} + +export const getDeptLazyTree = (parentId) => { + return request({ + url: '/api/ubcs-system/dept/lazy-tree', + method: 'get', + params: { + parentId + } + }) +} + -- Gitblit v1.9.3