初始化仓库
This commit is contained in:
44
api/basic/department.js
Normal file
44
api/basic/department.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询部门管理列表
|
||||
export function listDepartment(query) {
|
||||
return request({
|
||||
url: '/basic/department/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门管理详细
|
||||
export function getDepartment(id) {
|
||||
return request({
|
||||
url: '/basic/department/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门管理
|
||||
export function addDepartment(data) {
|
||||
return request({
|
||||
url: '/basic/department',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改部门管理
|
||||
export function updateDepartment(data) {
|
||||
return request({
|
||||
url: '/basic/department',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除部门管理
|
||||
export function delDepartment(id) {
|
||||
return request({
|
||||
url: '/basic/department/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user