From 99ef2c53e2b64b8ba342eb2abebfab28ccc31b9d Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 12 七月 2023 14:19:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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