最新修改,初版
This commit is contained in:
@@ -42,5 +42,29 @@ export const ticketApi = {
|
||||
// 获取运营人员列表
|
||||
getOperators() {
|
||||
return request.get('/operators')
|
||||
},
|
||||
// 获取员工列表
|
||||
getStaffs(params){
|
||||
return request.get('/getStaffList', { params })
|
||||
}
|
||||
}
|
||||
|
||||
export const customerApi = {
|
||||
getCustomers(){
|
||||
return request.get('/customers')
|
||||
},
|
||||
|
||||
|
||||
// 添加客户,data 结构应为 { company_name: 'xxx' }
|
||||
addCustomerName(data){
|
||||
return request.post('/addcustomername',data)
|
||||
},
|
||||
|
||||
addEmployee(data) {
|
||||
return request.post('/addemployee', data) // 对应后端新增员工
|
||||
},
|
||||
deleteEmployee(id) {
|
||||
return request.delete(`/employee/${id}`) // 对应后端删除员工
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user