diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + 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 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/src/views/route/addRoute.vue b/src/views/route/addRoute.vue new file mode 100644 index 0000000..ead6df8 --- /dev/null +++ b/src/views/route/addRoute.vue @@ -0,0 +1,459 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/src/views/route/addRoute.vue b/src/views/route/addRoute.vue new file mode 100644 index 0000000..ead6df8 --- /dev/null +++ b/src/views/route/addRoute.vue @@ -0,0 +1,459 @@ + + + + diff --git a/src/views/route/detailRoute.vue b/src/views/route/detailRoute.vue new file mode 100644 index 0000000..dad5e2f --- /dev/null +++ b/src/views/route/detailRoute.vue @@ -0,0 +1,370 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/src/views/route/addRoute.vue b/src/views/route/addRoute.vue new file mode 100644 index 0000000..ead6df8 --- /dev/null +++ b/src/views/route/addRoute.vue @@ -0,0 +1,459 @@ + + + + diff --git a/src/views/route/detailRoute.vue b/src/views/route/detailRoute.vue new file mode 100644 index 0000000..dad5e2f --- /dev/null +++ b/src/views/route/detailRoute.vue @@ -0,0 +1,370 @@ + + + + diff --git a/src/views/route/editRoute.vue b/src/views/route/editRoute.vue new file mode 100644 index 0000000..24fae22 --- /dev/null +++ b/src/views/route/editRoute.vue @@ -0,0 +1,512 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/src/views/route/addRoute.vue b/src/views/route/addRoute.vue new file mode 100644 index 0000000..ead6df8 --- /dev/null +++ b/src/views/route/addRoute.vue @@ -0,0 +1,459 @@ + + + + diff --git a/src/views/route/detailRoute.vue b/src/views/route/detailRoute.vue new file mode 100644 index 0000000..dad5e2f --- /dev/null +++ b/src/views/route/detailRoute.vue @@ -0,0 +1,370 @@ + + + + diff --git a/src/views/route/editRoute.vue b/src/views/route/editRoute.vue new file mode 100644 index 0000000..24fae22 --- /dev/null +++ b/src/views/route/editRoute.vue @@ -0,0 +1,512 @@ + + + + diff --git a/src/views/route/listRoute.vue b/src/views/route/listRoute.vue new file mode 100644 index 0000000..c49ad11 --- /dev/null +++ b/src/views/route/listRoute.vue @@ -0,0 +1,213 @@ + + + + diff --git a/config/dev.env.js b/config/dev.env.js index 95e311a..4e35847 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' - // BASE_API: '"http://111.198.10.15:12204"' BASE_API: '"http://111.198.10.15:11409"' + // BASE_API: '"http://127.0.0.1:8095"' // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' diff --git a/config/index.js b/config/index.js index 8abd37a..59bc586 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/Smartcitycarfront/', /** * Source Maps diff --git a/package.json b/package.json index 45f055f..7dfc9e9 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,17 @@ "animate.css": "^3.7.2", "axios": "0.18.0", "babel-polyfill": "^6.26.0", - "echarts": "^4.2.1", + "echarts": "^5.1.2", "element-ui": "2.13.0", + "esri-leaflet": "^3.0.2", + "esri-leaflet-renderers": "^2.1.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "leaflet": "^1.7.1", "leaflet-draw": "^1.0.4", + "leaflet-rotatedmarker": "^0.2.0", + "leaflet.pm": "^2.2.0", "mockjs": "1.0.1-beta3", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/src/api/alarm.js b/src/api/alarm.js new file mode 100644 index 0000000..67cd545 --- /dev/null +++ b/src/api/alarm.js @@ -0,0 +1,69 @@ +/** + * 车辆违规管理接口 + */ +import request from '@/utils/request' +export function getThresholdList(params) { + return request({ + url: 'car/busAlarmThreshold/listPage', + method: 'get', + params + }) +} + +export function updateThreshold(params) { + return request({ + url: 'car/busAlarmThreshold/addOrUpdate', + method: 'post', + params + }) +} +export function getRecordList(params) { + return request({ + url: 'car/busAlarmRecord/listPage', + method: 'get', + params + }) +} +export function getDataList(params) { + return request({ + url: 'car/busAlarmRecord/statics', + method: 'get', + params + }) +} +// 批量导出 +export function exportRecord(params) { + return request({ + url: 'car/busAlarmRecord/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} + +export function getOffineList(params) { + return request({ + url: 'car/busCarPosition/offlineStatics', + method: 'get', + params + }) +} +// 批量导出 +export function exportOffline(params) { + return request({ + url: 'car/busCarPosition/offlineExport', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} +export function getRecordDetail(id) { + return request({ + url: 'car/busAlarmRecord/detail/' + id, + method: 'get', + params: { + } + }) +} diff --git a/src/api/carInfo.js b/src/api/carInfo.js new file mode 100644 index 0000000..b749b01 --- /dev/null +++ b/src/api/carInfo.js @@ -0,0 +1,57 @@ +/** + * 车辆信息管理接口 + */ +import request from '@/utils/request' +// 车辆信息查询 +export function getCarInfoList(params) { + return request({ + url: 'car/busCarInfo/listPage', + method: 'get', + params + }) +} +// 车辆信息详情查询 +export function getCarInfo(id) { + return request({ + url: 'car/busCarInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 添加车辆信息 +export function addCarInfo(params) { + return request({ + url: 'car/busCarInfo/add', + method: 'post', + params + }) +} +// 修改车辆信息 +export function updateCarInfo(params) { + return request({ + url: 'car/busCarInfo/update', + method: 'post', + params + }) +} +// 删除车辆信息 +export function delCarInfo(id) { + return request({ + url: 'car/busCarInfo/delete', + method: 'get', + params: { + busCarInfoId: id + } + }) +} +// 批量导出 +export function exportCar(params) { + return request({ + url: 'car/busCarInfo/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/common.js b/src/api/common.js index 87c582b..30ac79b 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -5,7 +5,7 @@ // 模板下载 export function downloadTemplate(fileName) { return request({ - url: 'template/download', + url: 'car/template/download', method: 'get', params: { filename: fileName diff --git a/src/api/device.js b/src/api/device.js new file mode 100644 index 0000000..0a0ee34 --- /dev/null +++ b/src/api/device.js @@ -0,0 +1,69 @@ +/** + * 设备管理接口 + */ +import request from '@/utils/request' +// 设备查询 +export function getDeviceInfoList(params) { + return request({ + url: 'car/busDeviceInfo/listPage', + method: 'get', + params + }) +} +// 设备详情查询 +export function getDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/detail', + method: 'get', + params: { + id: id + } + }) +} +// 添加设备 +export function addDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/add', + method: 'post', + params + }) +} +// 修改设备 +export function updateDeviceInfo(params) { + return request({ + url: 'car/busDeviceInfo/update', + method: 'post', + params + }) +} +// 删除设备 +export function delDeviceInfo(id) { + return request({ + url: 'car/busDeviceInfo/delete', + method: 'get', + params: { + busDeviceInfoId: id + } + }) +} +// 未关联车辆的设备列表 +export function listNoBind(id) { + return request({ + url: 'car/busDeviceInfo/listNoBind', + method: 'get', + params: { + carId: id + } + }) +} +// 批量导入 +export function batchImport(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'car/busDeviceInfo/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..48dbeeb --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,14 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' + +// 获取字典值 +export function getDictCode(str) { + return request({ + url: 'dict/code/' + str, + method: 'get', + params: { + } + }) +} diff --git a/src/api/fenceInfo.js b/src/api/fenceInfo.js new file mode 100644 index 0000000..3a467dc --- /dev/null +++ b/src/api/fenceInfo.js @@ -0,0 +1,89 @@ +/** + * 电子围栏信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 电子围栏信息查询 +export function getFenceInfoList(params) { + return request({ + url: 'car/busFenceInfo/listPage', + method: 'get', + params + }) +} +// 电子围栏信息详情查询 +export function getFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增电子围栏基础信息 +export function addFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/add', + method: 'post', + params + }) +} +// 修改电子围栏信息 +export function updateFenceInfo(params) { + return request({ + url: 'car/busFenceInfo/update', + method: 'post', + params + }) +} +// 删除电子围栏信息 +export function delFenceInfo(id) { + return request({ + url: 'car/busFenceInfo/delete', + method: 'get', + params: { + busFenceInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busFenceInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busFenceInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busFenceInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存电子围栏 +export function addPath(data) { + return request({ + url: 'car/busFenceInfo/savePoint', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/mile.js b/src/api/mile.js new file mode 100644 index 0000000..c6a0e31 --- /dev/null +++ b/src/api/mile.js @@ -0,0 +1,21 @@ +/** + * 车辆里程统计接口 + */ + +// 按车辆统计 +import request from '@/utils/request' +export function staticsByCar(params) { + return request({ + url: 'car/busCarMile/staticsByCar', + method: 'get', + params + }) +} + +export function staticsByTime(params) { + return request({ + url: 'car/busCarMile/staticsByTime', + method: 'get', + params + }) +} diff --git a/src/api/overview.js b/src/api/overview.js new file mode 100644 index 0000000..f662534 --- /dev/null +++ b/src/api/overview.js @@ -0,0 +1,50 @@ +/** + * 总览接口 + */ + +// 车辆定位列表 +import request from '@/utils/request' +export function getOverviewList(params) { + return request({ + url: 'car/busCarPosition/listPage', + method: 'get', + params + }) +} +export function getOverviewAllList(params) { + return request({ + url: 'car/busCarPosition/list', + method: 'get', + params + }) +} +export function offlineCount(params) { + return request({ + url: 'car/busCarPosition/offlineCount', + method: 'get', + params + }) +} +export function track(id) { + return request({ + url: 'car/busCarPosition/track', + method: 'get', + params: { + carId: id + } + }) +} +export function trail(params) { + return request({ + url: 'car/busCarPosition/trace', + method: 'get', + params + }) +} +export function speedLine(params) { + return request({ + url: 'car/busCarPosition/speedLine', + method: 'get', + params + }) +} diff --git a/src/api/routeInfo.js b/src/api/routeInfo.js new file mode 100644 index 0000000..17594b1 --- /dev/null +++ b/src/api/routeInfo.js @@ -0,0 +1,89 @@ +/** + * 路线信息管理接口 + */ +import request from '@/utils/request' +import qs from 'qs' +// 路线信息查询 +export function getRouteInfoList(params) { + return request({ + url: 'car/busRouteInfo/listPage', + method: 'get', + params + }) +} +// 路线信息详情查询 +export function getRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/detail/' + id, + method: 'get', + params: { + } + }) +} +// 新增路线基础信息 +export function addRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/add', + method: 'post', + params + }) +} +// 修改路线信息 +export function updateRouteInfo(params) { + return request({ + url: 'car/busRouteInfo/update', + method: 'post', + params + }) +} +// 删除路线信息 +export function delRouteInfo(id) { + return request({ + url: 'car/busRouteInfo/delete', + method: 'get', + params: { + busRouteInfoId: id + } + }) +} +// 查询未关联车辆列表 +export function listUnbindCar(params) { + return request({ + url: 'car/busRouteInfo/listUnbindCar', + method: 'get', + params + }) +} +// 绑定车辆 +export function bindCar(params) { + return request({ + url: 'car/busRouteInfo/bindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 解绑车辆 +export function unbindCar(params) { + return request({ + url: 'car/busRouteInfo/unbindCar', + method: 'post', + params, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} +// 保存路线 +export function addPath(data) { + return request({ + url: 'car/busRouteInfo/addPath', + method: 'post', + data, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } + }) +} diff --git a/src/api/server.js b/src/api/server.js new file mode 100644 index 0000000..51c3f45 --- /dev/null +++ b/src/api/server.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获取服务列表 +export function getServerList(params) { + return request({ + url: '/map/server/listPage', + method: 'get', + params: params + }) +} +// 编辑服务地址 +export function serverEdit(params) { + return request({ + url: '/map/server/edit', + method: 'post', + params: params + }) +} diff --git a/src/assets/global_images/car-alarm.png b/src/assets/global_images/car-alarm.png new file mode 100644 index 0000000..4128ec9 --- /dev/null +++ b/src/assets/global_images/car-alarm.png Binary files differ diff --git a/src/assets/global_images/car-offline.png b/src/assets/global_images/car-offline.png new file mode 100644 index 0000000..6a6fc19 --- /dev/null +++ b/src/assets/global_images/car-offline.png Binary files differ diff --git a/src/assets/global_images/car-online.png b/src/assets/global_images/car-online.png new file mode 100644 index 0000000..c79e4f7 --- /dev/null +++ b/src/assets/global_images/car-online.png Binary files differ diff --git a/src/assets/global_images/car-stop.png b/src/assets/global_images/car-stop.png new file mode 100644 index 0000000..77b125d --- /dev/null +++ b/src/assets/global_images/car-stop.png Binary files differ diff --git a/src/assets/global_images/car-timeout.png b/src/assets/global_images/car-timeout.png new file mode 100644 index 0000000..7f94bfa --- /dev/null +++ b/src/assets/global_images/car-timeout.png Binary files differ diff --git a/src/assets/global_images/car.png b/src/assets/global_images/car.png new file mode 100644 index 0000000..86d399b --- /dev/null +++ b/src/assets/global_images/car.png Binary files differ diff --git a/src/assets/global_images/delete.png b/src/assets/global_images/delete.png new file mode 100644 index 0000000..1192546 --- /dev/null +++ b/src/assets/global_images/delete.png Binary files differ diff --git a/src/assets/global_images/end.png b/src/assets/global_images/end.png new file mode 100644 index 0000000..140b5bc --- /dev/null +++ b/src/assets/global_images/end.png Binary files differ diff --git a/src/assets/global_images/start.png b/src/assets/global_images/start.png new file mode 100644 index 0000000..fd1ffb4 --- /dev/null +++ b/src/assets/global_images/start.png Binary files differ diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..19923dd 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/alarm/editCarThreshold.vue b/src/views/alarm/editCarThreshold.vue new file mode 100644 index 0000000..32b02f2 --- /dev/null +++ b/src/views/alarm/editCarThreshold.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/alarm/listCarThreshold.vue b/src/views/alarm/listCarThreshold.vue new file mode 100644 index 0000000..6674886 --- /dev/null +++ b/src/views/alarm/listCarThreshold.vue @@ -0,0 +1,176 @@ + + + + diff --git a/src/views/alarm/listData.vue b/src/views/alarm/listData.vue new file mode 100644 index 0000000..bb4f3b3 --- /dev/null +++ b/src/views/alarm/listData.vue @@ -0,0 +1,327 @@ + + + + diff --git a/src/views/alarm/listOffline.vue b/src/views/alarm/listOffline.vue new file mode 100644 index 0000000..e61fad0 --- /dev/null +++ b/src/views/alarm/listOffline.vue @@ -0,0 +1,166 @@ + + + + diff --git a/src/views/alarm/listRecord.vue b/src/views/alarm/listRecord.vue new file mode 100644 index 0000000..e2fe8e0 --- /dev/null +++ b/src/views/alarm/listRecord.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/carinfo/editCarInfo.vue b/src/views/carinfo/editCarInfo.vue new file mode 100644 index 0000000..3d7aef8 --- /dev/null +++ b/src/views/carinfo/editCarInfo.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/src/views/carinfo/editGpsDevice.vue b/src/views/carinfo/editGpsDevice.vue new file mode 100644 index 0000000..3f486c9 --- /dev/null +++ b/src/views/carinfo/editGpsDevice.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/views/carinfo/listCarInfo.vue b/src/views/carinfo/listCarInfo.vue new file mode 100644 index 0000000..c09b1ef --- /dev/null +++ b/src/views/carinfo/listCarInfo.vue @@ -0,0 +1,212 @@ + + + + diff --git a/src/views/carinfo/listGpsDevice.vue b/src/views/carinfo/listGpsDevice.vue new file mode 100644 index 0000000..b524031 --- /dev/null +++ b/src/views/carinfo/listGpsDevice.vue @@ -0,0 +1,224 @@ + + + + diff --git a/src/views/fence/addFence.vue b/src/views/fence/addFence.vue new file mode 100644 index 0000000..18013a3 --- /dev/null +++ b/src/views/fence/addFence.vue @@ -0,0 +1,436 @@ + + + + diff --git a/src/views/fence/detailFence.vue b/src/views/fence/detailFence.vue new file mode 100644 index 0000000..241086f --- /dev/null +++ b/src/views/fence/detailFence.vue @@ -0,0 +1,341 @@ + + + + diff --git a/src/views/fence/editFence.vue b/src/views/fence/editFence.vue new file mode 100644 index 0000000..43c5e30 --- /dev/null +++ b/src/views/fence/editFence.vue @@ -0,0 +1,474 @@ + + + + diff --git a/src/views/fence/listFence.vue b/src/views/fence/listFence.vue new file mode 100644 index 0000000..c5eb69a --- /dev/null +++ b/src/views/fence/listFence.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/mile/listCar.vue b/src/views/mile/listCar.vue new file mode 100644 index 0000000..d023ee1 --- /dev/null +++ b/src/views/mile/listCar.vue @@ -0,0 +1,165 @@ + + + + diff --git a/src/views/mile/listTime.vue b/src/views/mile/listTime.vue new file mode 100644 index 0000000..711df32 --- /dev/null +++ b/src/views/mile/listTime.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue new file mode 100644 index 0000000..86a422b --- /dev/null +++ b/src/views/overview/listoverview.vue @@ -0,0 +1,535 @@ + + + + diff --git a/src/views/overview/track.vue b/src/views/overview/track.vue new file mode 100644 index 0000000..cf123da --- /dev/null +++ b/src/views/overview/track.vue @@ -0,0 +1,188 @@ + + + diff --git a/src/views/overview/trail.vue b/src/views/overview/trail.vue new file mode 100644 index 0000000..0f6e3b6 --- /dev/null +++ b/src/views/overview/trail.vue @@ -0,0 +1,378 @@ + + + diff --git a/src/views/overview/trailStatic.vue b/src/views/overview/trailStatic.vue new file mode 100644 index 0000000..c6543fc --- /dev/null +++ b/src/views/overview/trailStatic.vue @@ -0,0 +1,113 @@ + + + + + + diff --git a/src/views/route/addRoute.vue b/src/views/route/addRoute.vue new file mode 100644 index 0000000..ead6df8 --- /dev/null +++ b/src/views/route/addRoute.vue @@ -0,0 +1,459 @@ + + + + diff --git a/src/views/route/detailRoute.vue b/src/views/route/detailRoute.vue new file mode 100644 index 0000000..dad5e2f --- /dev/null +++ b/src/views/route/detailRoute.vue @@ -0,0 +1,370 @@ + + + + diff --git a/src/views/route/editRoute.vue b/src/views/route/editRoute.vue new file mode 100644 index 0000000..24fae22 --- /dev/null +++ b/src/views/route/editRoute.vue @@ -0,0 +1,512 @@ + + + + diff --git a/src/views/route/listRoute.vue b/src/views/route/listRoute.vue new file mode 100644 index 0000000..c49ad11 --- /dev/null +++ b/src/views/route/listRoute.vue @@ -0,0 +1,213 @@ + + + + diff --git a/static/project.config.json b/static/project.config.json index 73a7460..9758914 100644 --- a/static/project.config.json +++ b/static/project.config.json @@ -1,8 +1,9 @@ { - "title": "基础资源系统", + "title": "车辆管理系统", "baseUrl": "http://111.198.10.15:11409/", - "mainPage": "http://111.198.10.15:11404/dcms/#", - "singleSys": false, + "satelliteUrl":"http://223.82.47.232:11502/crtiles005/{z}/{x}/{y}.png", + "mainPage": "", + "singleSys": true, "city":"崇仁县", "mapUrl":"https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8", "labelUrl":"https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8",