You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
719 B
42 lines
719 B
function getMemberList (params) {
|
|
return $axios({
|
|
url: '/employee/page',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 修改---启用禁用接口
|
|
function enableOrDisableEmployee (params) {
|
|
return $axios({
|
|
url: '/employee',
|
|
method: 'put',
|
|
data: { ...params }
|
|
})
|
|
}
|
|
|
|
// 新增---添加员工
|
|
function addEmployee (params) {
|
|
return $axios({
|
|
url: '/employee',
|
|
method: 'post',
|
|
data: { ...params }
|
|
})
|
|
}
|
|
|
|
// 修改---添加员工
|
|
function editEmployee (params) {
|
|
return $axios({
|
|
url: '/employee',
|
|
method: 'put',
|
|
data: { ...params }
|
|
})
|
|
}
|
|
|
|
// 修改页面反查详情接口
|
|
function queryEmployeeById (id) {
|
|
return $axios({
|
|
url: `/employee/${id}`,
|
|
method: 'get'
|
|
})
|
|
} |