From 7cd40b0399f1776a28b3be4171cc03eba2c906b1 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 18 七月 2023 09:53:34 +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