diff --git a/src/api/device.js b/src/api/device.js index 8ccc88b..0a0ee34 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -5,7 +5,7 @@ // 设备查询 export function getDeviceInfoList(params) { return request({ - url: 'busDeviceInfo/listPage', + url: 'car/busDeviceInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 设备详情查询 export function getDeviceInfo(id) { return request({ - url: 'busDeviceInfo/detail', + url: 'car/busDeviceInfo/detail', method: 'get', params: { id: id @@ -23,7 +23,7 @@ // 添加设备 export function addDeviceInfo(params) { return request({ - url: 'busDeviceInfo/add', + url: 'car/busDeviceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改设备 export function updateDeviceInfo(params) { return request({ - url: 'busDeviceInfo/update', + url: 'car/busDeviceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除设备 export function delDeviceInfo(id) { return request({ - url: 'busDeviceInfo/delete', + url: 'car/busDeviceInfo/delete', method: 'get', params: { busDeviceInfoId: id @@ -49,7 +49,7 @@ // 未关联车辆的设备列表 export function listNoBind(id) { return request({ - url: 'busDeviceInfo/listNoBind', + url: 'car/busDeviceInfo/listNoBind', method: 'get', params: { carId: id @@ -61,7 +61,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'busDeviceInfo/batchImport', + url: 'car/busDeviceInfo/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param