最新修改,初版

This commit is contained in:
2026-02-25 09:38:25 +08:00
parent 1f5bfba3b3
commit 0378198f55
15 changed files with 1691 additions and 824 deletions

View File

@@ -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}`) // 对应后端删除员工
}
}