diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/src/components.d.ts b/src/components.d.ts index 01caa9a..f651253 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -45,13 +45,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] - 'Index copy': typeof import('./components/map/index copy.vue')['default'] + 'Index offline': typeof import('./components/map/index offline.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] + offline: typeof import('./components/map/index offline.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/src/components.d.ts b/src/components.d.ts index 01caa9a..f651253 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -45,13 +45,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] - 'Index copy': typeof import('./components/map/index copy.vue')['default'] + 'Index offline': typeof import('./components/map/index offline.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] + offline: typeof import('./components/map/index offline.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] diff --git a/src/components/map/index copy.vue b/src/components/map/index copy.vue deleted file mode 100644 index fc877fd..0000000 --- a/src/components/map/index copy.vue +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/src/components.d.ts b/src/components.d.ts index 01caa9a..f651253 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -45,13 +45,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] - 'Index copy': typeof import('./components/map/index copy.vue')['default'] + 'Index offline': typeof import('./components/map/index offline.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] + offline: typeof import('./components/map/index offline.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] diff --git a/src/components/map/index copy.vue b/src/components/map/index copy.vue deleted file mode 100644 index fc877fd..0000000 --- a/src/components/map/index copy.vue +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - diff --git a/src/components/map/index offline.vue b/src/components/map/index offline.vue new file mode 100644 index 0000000..5bf7bb9 --- /dev/null +++ b/src/components/map/index offline.vue @@ -0,0 +1,554 @@ + + + + + + + + diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/src/components.d.ts b/src/components.d.ts index 01caa9a..f651253 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -45,13 +45,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] - 'Index copy': typeof import('./components/map/index copy.vue')['default'] + 'Index offline': typeof import('./components/map/index offline.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] + offline: typeof import('./components/map/index offline.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] diff --git a/src/components/map/index copy.vue b/src/components/map/index copy.vue deleted file mode 100644 index fc877fd..0000000 --- a/src/components/map/index copy.vue +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - diff --git a/src/components/map/index offline.vue b/src/components/map/index offline.vue new file mode 100644 index 0000000..5bf7bb9 --- /dev/null +++ b/src/components/map/index offline.vue @@ -0,0 +1,554 @@ + + + + + + + + diff --git a/src/main.ts b/src/main.ts index e4327d6..c0ae2c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,11 +38,13 @@ window.localStorage.setItem('url-bj-well', result.data.baseUrl) window.localStorage.setItem('securityJsCode', result.data.securityJsCode) window.localStorage.setItem('JsKey', result.data.JsKey) + window.localStorage.setItem('amapResource', result.data.amapResource) request.defaults.baseURL = result.data.baseUrl // 设置默认请求网址 app.config.globalProperties.config = result.data app.config.globalProperties.hasPerm = hasPermission app.config.globalProperties.buttonPerm = buttonPerm app.config.globalProperties.dayjs = dayjs + console.log(`当前系统版本:${result.data.version}`) // 方法1:注册播放音频事件到Vue实例上 app.config.globalProperties.playAudio = () => { const audio = document.getElementById('eventAudio') as HTMLAudioElement diff --git a/public/config/config.json b/public/config/config.json index 313f7fe..d5ec7a8 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -2,5 +2,8 @@ "title":"燃气物联感知平台", "baseUrl": "http://111.198.10.15:11643", "securityJsCode": "56bf9671d4b3517d294caec4751889a1", - "JsKey": "40849e82b4e33f5255b17372520c954d" + "JsKey": "40849e82b4e33f5255b17372520c954d", + "amapResource": "http://111.198.10.15:21910/amap", + "version": "1.0.1", + "node": "16.18.1" } diff --git a/src/api/home/dashboard/index.ts b/src/api/home/dashboard/index.ts index 0748eef..dd864c8 100644 --- a/src/api/home/dashboard/index.ts +++ b/src/api/home/dashboard/index.ts @@ -33,6 +33,17 @@ data, }) } +// 异常位置分析导出 +export function exportLocalAnalyse(data: any) { + return request({ + url: '/statics/alarmRecords/batchExport', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 报警消息通知 export function getAlarmList(data: any) { return request({ diff --git a/src/api/home/device/count.ts b/src/api/home/device/count.ts index e7256e2..e06e5a9 100644 --- a/src/api/home/device/count.ts +++ b/src/api/home/device/count.ts @@ -51,3 +51,12 @@ data, }) } + +export function exportOffDevice(params: any) { + return request({ + url: '/device/statics/batchExport', + method: 'get', + params, + responseType: 'blob', + }) +} diff --git a/src/api/home/ledger/pipeline.ts b/src/api/home/ledger/pipeline.ts index 2cfa488..88ab62c 100644 --- a/src/api/home/ledger/pipeline.ts +++ b/src/api/home/ledger/pipeline.ts @@ -58,3 +58,11 @@ responseType: 'blob', }) } + +export function importPipeline(data: any) { + return request({ + url: '/system/busPipeline/batchImport', + method: 'post', + data, + }) +} diff --git a/src/api/home/well/well.ts b/src/api/home/well/well.ts index f558e64..b2dbec3 100644 --- a/src/api/home/well/well.ts +++ b/src/api/home/well/well.ts @@ -37,6 +37,17 @@ data, }) } +// 全生命周期记录导出 +export function exportLifecycleRecord(data: any) { + return request({ + url: '/monitor/well/lifecycleRecordExp', + method: 'get', + params: { + ...data, + }, + responseType: 'blob', + }) +} // 监控设备维护记录 export function getRepairLog(id: string) { diff --git a/src/components.d.ts b/src/components.d.ts index 01caa9a..f651253 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -45,13 +45,14 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] - 'Index copy': typeof import('./components/map/index copy.vue')['default'] + 'Index offline': typeof import('./components/map/index offline.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default'] NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] + offline: typeof import('./components/map/index offline.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] PcasCascader: typeof import('./components/PcasCascader/index.vue')['default'] diff --git a/src/components/map/index copy.vue b/src/components/map/index copy.vue deleted file mode 100644 index fc877fd..0000000 --- a/src/components/map/index copy.vue +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - diff --git a/src/components/map/index offline.vue b/src/components/map/index offline.vue new file mode 100644 index 0000000..5bf7bb9 --- /dev/null +++ b/src/components/map/index offline.vue @@ -0,0 +1,554 @@ + + + + + + + + diff --git a/src/main.ts b/src/main.ts index e4327d6..c0ae2c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,11 +38,13 @@ window.localStorage.setItem('url-bj-well', result.data.baseUrl) window.localStorage.setItem('securityJsCode', result.data.securityJsCode) window.localStorage.setItem('JsKey', result.data.JsKey) + window.localStorage.setItem('amapResource', result.data.amapResource) request.defaults.baseURL = result.data.baseUrl // 设置默认请求网址 app.config.globalProperties.config = result.data app.config.globalProperties.hasPerm = hasPermission app.config.globalProperties.buttonPerm = buttonPerm app.config.globalProperties.dayjs = dayjs + console.log(`当前系统版本:${result.data.version}`) // 方法1:注册播放音频事件到Vue实例上 app.config.globalProperties.playAudio = () => { const audio = document.getElementById('eventAudio') as HTMLAudioElement diff --git a/src/views/home/alarm/count/components/locationAnalysis.vue b/src/views/home/alarm/count/components/locationAnalysis.vue index bff1853..0ba4f8c 100644 --- a/src/views/home/alarm/count/components/locationAnalysis.vue +++ b/src/views/home/alarm/count/components/locationAnalysis.vue @@ -4,10 +4,12 @@ Date: 2023-07-08 -->