mirror of
https://github.com/chillzhuang/Saber.git
synced 2025-04-17 02:19:22 +08:00
59 lines
981 B
JavaScript
59 lines
981 B
JavaScript
import request from '@/router/axios';
|
|
|
|
export const getList = (current, size, params) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/list',
|
|
method: 'get',
|
|
params: {
|
|
...params,
|
|
current,
|
|
size,
|
|
}
|
|
})
|
|
}
|
|
export const remove = (ids) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/remove',
|
|
method: 'post',
|
|
params: {
|
|
ids,
|
|
}
|
|
})
|
|
}
|
|
|
|
export const add = (row) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/submit',
|
|
method: 'post',
|
|
data: row
|
|
})
|
|
}
|
|
|
|
export const update = (row) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/submit',
|
|
method: 'post',
|
|
data: row
|
|
})
|
|
}
|
|
|
|
export const getDept = (id) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/detail',
|
|
method: 'get',
|
|
params: {
|
|
id,
|
|
}
|
|
})
|
|
}
|
|
export const getDeptTree = (tenantCode) => {
|
|
return request({
|
|
url: '/api/blade-system/dept/tree',
|
|
method: 'get',
|
|
params: {
|
|
tenantCode,
|
|
}
|
|
})
|
|
}
|
|
|