| | |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/list', |
| | | url: '/api/ubcs-system/dept/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const getLazyList = (parentId, params) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/lazy-list', |
| | | url: '/api/ubcs-system/dept/lazy-list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/remove', |
| | | url: '/api/ubcs-system/dept/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/submit', |
| | | url: '/api/ubcs-system/dept/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/submit', |
| | | url: '/api/ubcs-system/dept/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const getDept = (id) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/detail', |
| | | url: '/api/ubcs-system/dept/detail', |
| | | method: 'get', |
| | | params: { |
| | | id, |
| | |
| | | |
| | | export const getDeptTree = (tenantId) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/tree', |
| | | url: '/api/ubcs-system/dept/tree', |
| | | method: 'get', |
| | | params: { |
| | | tenantId, |
| | |
| | | |
| | | export const getDeptLazyTree = (parentId) => { |
| | | return request({ |
| | | url: '/api/blade-system/dept/lazy-tree', |
| | | url: '/api/ubcs-system/dept/lazy-tree', |
| | | method: 'get', |
| | | params: { |
| | | parentId |