设备管理,设备列表,客户列表功能完善提交
This commit is contained in:
@ -38,12 +38,66 @@ export const deleteDevice = (ids: any): AxiosPromise<deviceVO[]> => {
|
||||
})
|
||||
}
|
||||
// 设备下拉框
|
||||
export const deviceTypeAll=()=> {
|
||||
export const deviceTypeAll = () => {
|
||||
return request({
|
||||
url: '/api/deviceType/all',
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
export default { deviceList, addDevice, updateDevice, deleteDevice,deviceTypeAll }
|
||||
|
||||
// 设备类型
|
||||
export const getCommunicationMode = (params: any) => {
|
||||
return request({
|
||||
url: '/api/deviceType/communicationMode',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
// 分配客户
|
||||
export const deviceAssignCustomer = (data: any) => {
|
||||
return request({
|
||||
url: '/api/device/assignCustomer',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 客户下拉框
|
||||
export const userAllCustomerAll = () => {
|
||||
return request({
|
||||
url: '/api/customers/allCustomer',
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 解绑
|
||||
|
||||
export const deviceUnbind = (data:any) => {
|
||||
return request({
|
||||
url: '/api/device/unbind',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 撤回
|
||||
export const withdrawDevice = (data:any) => {
|
||||
return request({
|
||||
url: '/api/device/withdraw',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 下载模板
|
||||
export const deviceTemplate=()=> {
|
||||
return request({
|
||||
url: '/api/device/template',
|
||||
method: ' GET',
|
||||
})
|
||||
}
|
||||
// 导入文件excel
|
||||
export const devicDeimport = () => {
|
||||
return `${import.meta.env.VITE_APP_BASE_API}/api/device/import`
|
||||
}
|
||||
export default { deviceList, addDevice, updateDevice, deleteDevice, deviceTypeAll, getCommunicationMode, userAllCustomerAll, deviceAssignCustomer, deviceUnbind,withdrawDevice,deviceTemplate,devicDeimport }
|
||||
|
||||
|
Reference in New Issue
Block a user