diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js index 512abe5..3a467dc 100644 --- a/src/api/fenceInfo.js +++ b/src/api/fenceInfo.js @@ -6,7 +6,7 @@ // 电子围栏信息查询 export function getFenceInfoList(params) { return request({ - url: 'busFenceInfo/listPage', + url: 'car/busFenceInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 电子围栏信息详情查询 export function getFenceInfo(id) { return request({ - url: 'busFenceInfo/detail/' + id, + url: 'car/busFenceInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增电子围栏基础信息 export function addFenceInfo(params) { return request({ - url: 'busFenceInfo/add', + url: 'car/busFenceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改电子围栏信息 export function updateFenceInfo(params) { return request({ - url: 'busFenceInfo/update', + url: 'car/busFenceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除电子围栏信息 export function delFenceInfo(id) { return request({ - url: 'busFenceInfo/delete', + url: 'car/busFenceInfo/delete', method: 'get', params: { busFenceInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busFenceInfo/listUnbindCar', + url: 'car/busFenceInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busFenceInfo/bindCar', + url: 'car/busFenceInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busFenceInfo/unbindCar', + url: 'car/busFenceInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存电子围栏 export function addPath(data) { return request({ - url: 'busFenceInfo/savePoint', + url: 'car/busFenceInfo/savePoint', method: 'post', data, paramsSerializer: params => { diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js index 512abe5..3a467dc 100644 --- a/src/api/fenceInfo.js +++ b/src/api/fenceInfo.js @@ -6,7 +6,7 @@ // 电子围栏信息查询 export function getFenceInfoList(params) { return request({ - url: 'busFenceInfo/listPage', + url: 'car/busFenceInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 电子围栏信息详情查询 export function getFenceInfo(id) { return request({ - url: 'busFenceInfo/detail/' + id, + url: 'car/busFenceInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增电子围栏基础信息 export function addFenceInfo(params) { return request({ - url: 'busFenceInfo/add', + url: 'car/busFenceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改电子围栏信息 export function updateFenceInfo(params) { return request({ - url: 'busFenceInfo/update', + url: 'car/busFenceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除电子围栏信息 export function delFenceInfo(id) { return request({ - url: 'busFenceInfo/delete', + url: 'car/busFenceInfo/delete', method: 'get', params: { busFenceInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busFenceInfo/listUnbindCar', + url: 'car/busFenceInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busFenceInfo/bindCar', + url: 'car/busFenceInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busFenceInfo/unbindCar', + url: 'car/busFenceInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存电子围栏 export function addPath(data) { return request({ - url: 'busFenceInfo/savePoint', + url: 'car/busFenceInfo/savePoint', method: 'post', data, paramsSerializer: params => { diff --git a/src/api/mile.js b/src/api/mile.js index dae9fcb..c6a0e31 100644 --- a/src/api/mile.js +++ b/src/api/mile.js @@ -6,7 +6,7 @@ import request from '@/utils/request' export function staticsByCar(params) { return request({ - url: 'busCarMile/staticsByCar', + url: 'car/busCarMile/staticsByCar', method: 'get', params }) @@ -14,7 +14,7 @@ export function staticsByTime(params) { return request({ - url: 'busCarMile/staticsByTime', + url: 'car/busCarMile/staticsByTime', method: 'get', params }) diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js index 512abe5..3a467dc 100644 --- a/src/api/fenceInfo.js +++ b/src/api/fenceInfo.js @@ -6,7 +6,7 @@ // 电子围栏信息查询 export function getFenceInfoList(params) { return request({ - url: 'busFenceInfo/listPage', + url: 'car/busFenceInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 电子围栏信息详情查询 export function getFenceInfo(id) { return request({ - url: 'busFenceInfo/detail/' + id, + url: 'car/busFenceInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增电子围栏基础信息 export function addFenceInfo(params) { return request({ - url: 'busFenceInfo/add', + url: 'car/busFenceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改电子围栏信息 export function updateFenceInfo(params) { return request({ - url: 'busFenceInfo/update', + url: 'car/busFenceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除电子围栏信息 export function delFenceInfo(id) { return request({ - url: 'busFenceInfo/delete', + url: 'car/busFenceInfo/delete', method: 'get', params: { busFenceInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busFenceInfo/listUnbindCar', + url: 'car/busFenceInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busFenceInfo/bindCar', + url: 'car/busFenceInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busFenceInfo/unbindCar', + url: 'car/busFenceInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存电子围栏 export function addPath(data) { return request({ - url: 'busFenceInfo/savePoint', + url: 'car/busFenceInfo/savePoint', method: 'post', data, paramsSerializer: params => { diff --git a/src/api/mile.js b/src/api/mile.js index dae9fcb..c6a0e31 100644 --- a/src/api/mile.js +++ b/src/api/mile.js @@ -6,7 +6,7 @@ import request from '@/utils/request' export function staticsByCar(params) { return request({ - url: 'busCarMile/staticsByCar', + url: 'car/busCarMile/staticsByCar', method: 'get', params }) @@ -14,7 +14,7 @@ export function staticsByTime(params) { return request({ - url: 'busCarMile/staticsByTime', + url: 'car/busCarMile/staticsByTime', method: 'get', params }) diff --git a/src/api/overview.js b/src/api/overview.js index 51d5db6..f662534 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -6,28 +6,28 @@ import request from '@/utils/request' export function getOverviewList(params) { return request({ - url: 'busCarPosition/listPage', + url: 'car/busCarPosition/listPage', method: 'get', params }) } export function getOverviewAllList(params) { return request({ - url: 'busCarPosition/list', + url: 'car/busCarPosition/list', method: 'get', params }) } export function offlineCount(params) { return request({ - url: 'busCarPosition/offlineCount', + url: 'car/busCarPosition/offlineCount', method: 'get', params }) } export function track(id) { return request({ - url: 'busCarPosition/track', + url: 'car/busCarPosition/track', method: 'get', params: { carId: id @@ -36,14 +36,14 @@ } export function trail(params) { return request({ - url: 'busCarPosition/trace', + url: 'car/busCarPosition/trace', method: 'get', params }) } export function speedLine(params) { return request({ - url: 'busCarPosition/speedLine', + url: 'car/busCarPosition/speedLine', method: 'get', params }) diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js index 512abe5..3a467dc 100644 --- a/src/api/fenceInfo.js +++ b/src/api/fenceInfo.js @@ -6,7 +6,7 @@ // 电子围栏信息查询 export function getFenceInfoList(params) { return request({ - url: 'busFenceInfo/listPage', + url: 'car/busFenceInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 电子围栏信息详情查询 export function getFenceInfo(id) { return request({ - url: 'busFenceInfo/detail/' + id, + url: 'car/busFenceInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增电子围栏基础信息 export function addFenceInfo(params) { return request({ - url: 'busFenceInfo/add', + url: 'car/busFenceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改电子围栏信息 export function updateFenceInfo(params) { return request({ - url: 'busFenceInfo/update', + url: 'car/busFenceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除电子围栏信息 export function delFenceInfo(id) { return request({ - url: 'busFenceInfo/delete', + url: 'car/busFenceInfo/delete', method: 'get', params: { busFenceInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busFenceInfo/listUnbindCar', + url: 'car/busFenceInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busFenceInfo/bindCar', + url: 'car/busFenceInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busFenceInfo/unbindCar', + url: 'car/busFenceInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存电子围栏 export function addPath(data) { return request({ - url: 'busFenceInfo/savePoint', + url: 'car/busFenceInfo/savePoint', method: 'post', data, paramsSerializer: params => { diff --git a/src/api/mile.js b/src/api/mile.js index dae9fcb..c6a0e31 100644 --- a/src/api/mile.js +++ b/src/api/mile.js @@ -6,7 +6,7 @@ import request from '@/utils/request' export function staticsByCar(params) { return request({ - url: 'busCarMile/staticsByCar', + url: 'car/busCarMile/staticsByCar', method: 'get', params }) @@ -14,7 +14,7 @@ export function staticsByTime(params) { return request({ - url: 'busCarMile/staticsByTime', + url: 'car/busCarMile/staticsByTime', method: 'get', params }) diff --git a/src/api/overview.js b/src/api/overview.js index 51d5db6..f662534 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -6,28 +6,28 @@ import request from '@/utils/request' export function getOverviewList(params) { return request({ - url: 'busCarPosition/listPage', + url: 'car/busCarPosition/listPage', method: 'get', params }) } export function getOverviewAllList(params) { return request({ - url: 'busCarPosition/list', + url: 'car/busCarPosition/list', method: 'get', params }) } export function offlineCount(params) { return request({ - url: 'busCarPosition/offlineCount', + url: 'car/busCarPosition/offlineCount', method: 'get', params }) } export function track(id) { return request({ - url: 'busCarPosition/track', + url: 'car/busCarPosition/track', method: 'get', params: { carId: id @@ -36,14 +36,14 @@ } export function trail(params) { return request({ - url: 'busCarPosition/trace', + url: 'car/busCarPosition/trace', method: 'get', params }) } export function speedLine(params) { return request({ - url: 'busCarPosition/speedLine', + url: 'car/busCarPosition/speedLine', method: 'get', params }) diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js index e319644..521d754 100644 --- a/src/api/routeInfo.js +++ b/src/api/routeInfo.js @@ -6,7 +6,7 @@ // 路线信息查询 export function getRouteInfoList(params) { return request({ - url: 'busRouteInfo/listPage', + url: 'car/busRouteInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 路线信息详情查询 export function getRouteInfo(id) { return request({ - url: 'busRouteInfo/detail/' + id, + url: 'car/busRouteInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增路线基础信息 export function addRouteInfo(params) { return request({ - url: 'busRouteInfo/add', + url: 'car/busRouteInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改路线信息 export function updateRouteInfo(params) { return request({ - url: 'busRouteInfo/update', + url: 'car/busRouteInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除路线信息 export function delRouteInfo(id) { return request({ - url: 'busRouteInfo/delete', + url: 'car/busRouteInfo/delete', method: 'get', params: { busRouteInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busRouteInfo/listUnbindCar', + url: 'car/busRouteInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busRouteInfo/bindCar', + url: 'car/busRouteInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busRouteInfo/unbindCar', + url: 'car/busRouteInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存路线 export function addPath(data) { return request({ - url: 'busRouteInfo/addPath', + url: 'car/busRouteInfo/addPath', method: 'post', data, paramsSerializer: params => { diff --git a/config/dev.env.js b/config/dev.env.js index 663b1e7..5abec5b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,6 +8,6 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.8.105:11307"' // BASE_API: '"http://111.198.10.15:11409/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' }) diff --git a/config/prod.env.js b/config/prod.env.js index 3c9d255..c780cdf 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -4,6 +4,6 @@ // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://192.168.8.201:8083"' // BASE_API: '"http://111.198.10.15:20403/car"' - BASE_API: '"http://111.198.10.15:11409/car"' + BASE_API: '"http://111.198.10.15:11409"' // BASE_API: '"http://127.0.0.1:11307"' } diff --git a/src/api/alarm.js b/src/api/alarm.js index bc93e09..67cd545 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -4,7 +4,7 @@ import request from '@/utils/request' export function getThresholdList(params) { return request({ - url: 'busAlarmThreshold/listPage', + url: 'car/busAlarmThreshold/listPage', method: 'get', params }) @@ -12,21 +12,21 @@ export function updateThreshold(params) { return request({ - url: 'busAlarmThreshold/addOrUpdate', + url: 'car/busAlarmThreshold/addOrUpdate', method: 'post', params }) } export function getRecordList(params) { return request({ - url: 'busAlarmRecord/listPage', + url: 'car/busAlarmRecord/listPage', method: 'get', params }) } export function getDataList(params) { return request({ - url: 'busAlarmRecord/statics', + url: 'car/busAlarmRecord/statics', method: 'get', params }) @@ -34,7 +34,7 @@ // 批量导出 export function exportRecord(params) { return request({ - url: 'busAlarmRecord/export', + url: 'car/busAlarmRecord/export', method: 'get', timeout: 120000, params, @@ -44,7 +44,7 @@ export function getOffineList(params) { return request({ - url: 'busCarPosition/offlineStatics', + url: 'car/busCarPosition/offlineStatics', method: 'get', params }) @@ -52,7 +52,7 @@ // 批量导出 export function exportOffline(params) { return request({ - url: 'busCarPosition/offlineExport', + url: 'car/busCarPosition/offlineExport', method: 'get', timeout: 120000, params, @@ -61,7 +61,7 @@ } export function getRecordDetail(id) { return request({ - url: 'busAlarmRecord/detail/' + id, + url: 'car/busAlarmRecord/detail/' + id, method: 'get', params: { } diff --git a/src/api/carInfo.js b/src/api/carInfo.js index a547d58..3952cd8 100644 --- a/src/api/carInfo.js +++ b/src/api/carInfo.js @@ -5,7 +5,7 @@ // 车辆信息查询 export function getCarInfoList(params) { return request({ - url: 'busCarInfo/listPage', + url: 'car/busCarInfo/listPage', method: 'get', params }) @@ -13,7 +13,7 @@ // 车辆信息详情查询 export function getCarInfo(id) { return request({ - url: 'busCarInfo/detail/' + id, + url: 'car/busCarInfo/detail/' + id, method: 'get', params: { } @@ -22,7 +22,7 @@ // 添加车辆信息 export function addCarInfo(params) { return request({ - url: 'busCarInfo/add', + url: 'car/busCarInfo/add', method: 'post', params }) @@ -30,7 +30,7 @@ // 修改车辆信息 export function updateCarInfo(params) { return request({ - url: 'busCarInfo/update', + url: 'car/busCarInfo/update', method: 'post', params }) @@ -38,7 +38,7 @@ // 删除车辆信息 export function delCarInfo(id) { return request({ - url: 'busCarInfo/delete', + url: 'car/busCarInfo/delete', method: 'get', params: { busCarInfoId: id @@ -48,7 +48,7 @@ // 批量导出 export function exportCar(params) { return request({ - url: 'busCarInfo/export', + url: 'car/busCarInfo/export', method: 'get', timeout: 120000, params, 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 diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js index 512abe5..3a467dc 100644 --- a/src/api/fenceInfo.js +++ b/src/api/fenceInfo.js @@ -6,7 +6,7 @@ // 电子围栏信息查询 export function getFenceInfoList(params) { return request({ - url: 'busFenceInfo/listPage', + url: 'car/busFenceInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 电子围栏信息详情查询 export function getFenceInfo(id) { return request({ - url: 'busFenceInfo/detail/' + id, + url: 'car/busFenceInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增电子围栏基础信息 export function addFenceInfo(params) { return request({ - url: 'busFenceInfo/add', + url: 'car/busFenceInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改电子围栏信息 export function updateFenceInfo(params) { return request({ - url: 'busFenceInfo/update', + url: 'car/busFenceInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除电子围栏信息 export function delFenceInfo(id) { return request({ - url: 'busFenceInfo/delete', + url: 'car/busFenceInfo/delete', method: 'get', params: { busFenceInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busFenceInfo/listUnbindCar', + url: 'car/busFenceInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busFenceInfo/bindCar', + url: 'car/busFenceInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busFenceInfo/unbindCar', + url: 'car/busFenceInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存电子围栏 export function addPath(data) { return request({ - url: 'busFenceInfo/savePoint', + url: 'car/busFenceInfo/savePoint', method: 'post', data, paramsSerializer: params => { diff --git a/src/api/mile.js b/src/api/mile.js index dae9fcb..c6a0e31 100644 --- a/src/api/mile.js +++ b/src/api/mile.js @@ -6,7 +6,7 @@ import request from '@/utils/request' export function staticsByCar(params) { return request({ - url: 'busCarMile/staticsByCar', + url: 'car/busCarMile/staticsByCar', method: 'get', params }) @@ -14,7 +14,7 @@ export function staticsByTime(params) { return request({ - url: 'busCarMile/staticsByTime', + url: 'car/busCarMile/staticsByTime', method: 'get', params }) diff --git a/src/api/overview.js b/src/api/overview.js index 51d5db6..f662534 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -6,28 +6,28 @@ import request from '@/utils/request' export function getOverviewList(params) { return request({ - url: 'busCarPosition/listPage', + url: 'car/busCarPosition/listPage', method: 'get', params }) } export function getOverviewAllList(params) { return request({ - url: 'busCarPosition/list', + url: 'car/busCarPosition/list', method: 'get', params }) } export function offlineCount(params) { return request({ - url: 'busCarPosition/offlineCount', + url: 'car/busCarPosition/offlineCount', method: 'get', params }) } export function track(id) { return request({ - url: 'busCarPosition/track', + url: 'car/busCarPosition/track', method: 'get', params: { carId: id @@ -36,14 +36,14 @@ } export function trail(params) { return request({ - url: 'busCarPosition/trace', + url: 'car/busCarPosition/trace', method: 'get', params }) } export function speedLine(params) { return request({ - url: 'busCarPosition/speedLine', + url: 'car/busCarPosition/speedLine', method: 'get', params }) diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js index e319644..521d754 100644 --- a/src/api/routeInfo.js +++ b/src/api/routeInfo.js @@ -6,7 +6,7 @@ // 路线信息查询 export function getRouteInfoList(params) { return request({ - url: 'busRouteInfo/listPage', + url: 'car/busRouteInfo/listPage', method: 'get', params }) @@ -14,7 +14,7 @@ // 路线信息详情查询 export function getRouteInfo(id) { return request({ - url: 'busRouteInfo/detail/' + id, + url: 'car/busRouteInfo/detail/' + id, method: 'get', params: { } @@ -23,7 +23,7 @@ // 新增路线基础信息 export function addRouteInfo(params) { return request({ - url: 'busRouteInfo/add', + url: 'car/busRouteInfo/add', method: 'post', params }) @@ -31,7 +31,7 @@ // 修改路线信息 export function updateRouteInfo(params) { return request({ - url: 'busRouteInfo/update', + url: 'car/busRouteInfo/update', method: 'post', params }) @@ -39,7 +39,7 @@ // 删除路线信息 export function delRouteInfo(id) { return request({ - url: 'busRouteInfo/delete', + url: 'car/busRouteInfo/delete', method: 'get', params: { busRouteInfoId: id @@ -49,7 +49,7 @@ // 查询未关联车辆列表 export function listUnbindCar(params) { return request({ - url: 'busRouteInfo/listUnbindCar', + url: 'car/busRouteInfo/listUnbindCar', method: 'get', params }) @@ -57,7 +57,7 @@ // 绑定车辆 export function bindCar(params) { return request({ - url: 'busRouteInfo/bindCar', + url: 'car/busRouteInfo/bindCar', method: 'post', params, paramsSerializer: params => { @@ -68,7 +68,7 @@ // 解绑车辆 export function unbindCar(params) { return request({ - url: 'busRouteInfo/unbindCar', + url: 'car/busRouteInfo/unbindCar', method: 'post', params, paramsSerializer: params => { @@ -79,7 +79,7 @@ // 保存路线 export function addPath(data) { return request({ - url: 'busRouteInfo/addPath', + url: 'car/busRouteInfo/addPath', method: 'post', data, paramsSerializer: params => { diff --git a/src/router/index.js b/src/router/index.js index 9a325da..b99deca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -44,20 +44,26 @@ { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true }, // 401 错误页面 { path: '/401', component: () => import('@/views/errorPage/401'), hidden: true }, - // 主页 { path: '/', - component: Layout, - redirect: 'overviewlist', - name: 'Overview', - hidden: true, - children: [{ - path: 'overviewlist', - name: 'Overviewlist', - component: () => import('@/views/overview/listoverview'), - meta: { title: '车辆定位监控列表', icon: 'function', permission: ['/overview/list'], affix: true } - }] + redirect: '/overviewlist', + name: 'Dashboard', + hidden: true } + // // 主页 + // { + // path: '/', + // component: Layout, + // redirect: 'overviewlist', + // name: 'Overview', + // hidden: true, + // children: [{ + // path: 'overviewlist', + // name: 'Overviewlist', + // component: () => import('@/views/overview/listoverview'), + // meta: { title: '车辆定位监控列表', icon: 'function', permission: ['/overview/list'], affix: true } + // }] + // } ] // 实例化vue的时候直挂载constantRouter export default new Router({