diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components/mapBak/index.vue b/src/components/mapBak/index.vue deleted file mode 100644 index cf07cce..0000000 --- a/src/components/mapBak/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components/mapBak/index.vue b/src/components/mapBak/index.vue deleted file mode 100644 index cf07cce..0000000 --- a/src/components/mapBak/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - diff --git a/src/components/mapBak/infoWindow.vue b/src/components/mapBak/infoWindow.vue deleted file mode 100644 index 7893e43..0000000 --- a/src/components/mapBak/infoWindow.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components/mapBak/index.vue b/src/components/mapBak/index.vue deleted file mode 100644 index cf07cce..0000000 --- a/src/components/mapBak/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - diff --git a/src/components/mapBak/infoWindow.vue b/src/components/mapBak/infoWindow.vue deleted file mode 100644 index 7893e43..0000000 --- a/src/components/mapBak/infoWindow.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/infoWindow2.vue b/src/components/mapBak/infoWindow2.vue deleted file mode 100644 index e4aca59..0000000 --- a/src/components/mapBak/infoWindow2.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components/mapBak/index.vue b/src/components/mapBak/index.vue deleted file mode 100644 index cf07cce..0000000 --- a/src/components/mapBak/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - diff --git a/src/components/mapBak/infoWindow.vue b/src/components/mapBak/infoWindow.vue deleted file mode 100644 index 7893e43..0000000 --- a/src/components/mapBak/infoWindow.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/infoWindow2.vue b/src/components/mapBak/infoWindow2.vue deleted file mode 100644 index e4aca59..0000000 --- a/src/components/mapBak/infoWindow2.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/infoWindowHot.vue b/src/components/mapBak/infoWindowHot.vue deleted file mode 100644 index 9b69483..0000000 --- a/src/components/mapBak/infoWindowHot.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - diff --git a/src/components.d.ts b/src/components.d.ts index f643af8..d5ad2e4 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -20,7 +20,6 @@ BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ButtonBox: typeof import('./components/buttonBox/buttonBox.vue')['default'] - copy: typeof import('./components/map copy/index.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] @@ -39,7 +38,7 @@ InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] - MapBak: typeof import('./components/mapBak/index.vue')['default'] + MapBak: typeof import('./components/map-bak/index.vue')['default'] NormalTable: typeof import('./components/NormalTable/index.vue')['default'] PageHeader: typeof import('./components/PageHeader/index.vue')['default'] PageMain: typeof import('./components/PageMain/index.vue')['default'] diff --git a/src/components/map-bak/index.vue b/src/components/map-bak/index.vue new file mode 100644 index 0000000..da37e9a --- /dev/null +++ b/src/components/map-bak/index.vue @@ -0,0 +1,526 @@ + + + + + + + + diff --git a/src/components/map-bak/infoWindow.vue b/src/components/map-bak/infoWindow.vue new file mode 100644 index 0000000..7893e43 --- /dev/null +++ b/src/components/map-bak/infoWindow.vue @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/components/map-bak/infoWindow2.vue b/src/components/map-bak/infoWindow2.vue new file mode 100644 index 0000000..e4aca59 --- /dev/null +++ b/src/components/map-bak/infoWindow2.vue @@ -0,0 +1,88 @@ + + + + + + diff --git a/src/components/map-bak/infoWindowHot.vue b/src/components/map-bak/infoWindowHot.vue new file mode 100644 index 0000000..9b69483 --- /dev/null +++ b/src/components/map-bak/infoWindowHot.vue @@ -0,0 +1,94 @@ + + + + + + diff --git a/src/components/map-bak/mock.js b/src/components/map-bak/mock.js new file mode 100644 index 0000000..083069d --- /dev/null +++ b/src/components/map-bak/mock.js @@ -0,0 +1,1080 @@ +export const electNodeList = [ + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830681', + lng: '111.72953', + nodeName: '', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.83078', + lng: '111.730077', + nodeName: '教学主楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830858', + lng: '111.730585', + nodeName: '教学北楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831051', + lng: '111.729815', + nodeName: '一号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831326', + lng: '111.729689', + nodeName: 'B座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831205', + lng: '111.730472', + nodeName: '二号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831475', + lng: '111.730364', + nodeName: 'C座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.831027', + lng: '111.731106', + nodeName: '网络教室', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830697', + lng: '111.731217', + nodeName: '机考基地', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.830084', + lng: '111.730342', + nodeName: '教学南楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829572', + lng: '111.73019', + nodeName: 'A座公寓', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829443', + lng: '111.730252', + nodeName: '三号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.82965', + lng: '111.731148', + nodeName: '四号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829416', + lng: '111.731261', + nodeName: '五号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829665', + lng: '111.732417', + nodeName: '六号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, + { + area: 1, + basekv: '12.66', + bs: 0, + busId: 1, + calTime: '2023-07-31 12:00:11', + colTime: '2023-07-31 12:00:11', + createTime: '2023-05-09', + deviceId: '6', + electricityId: '1638161327922909185', + en: '850.00', + flowRate: '0.00', + gs: 0, + id: '1', + lat: '40.829862', + lng: '111.733332', + nodeName: '七号楼', + pd: '0.00', + qd: '0.00', + type: 3, + typeName: '', + va: '0.00', + vm: '1.00', + vmax: '1.00', + vmin: '1.00', + zone: 1, + }, +] +export const HotNodeList = [ + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学主楼西侧热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学主楼西侧', + installTime: '2023-03-15', + lat: '40.83078', + lng: '111.730077', + monitorObj: '5', + monitorObjName: '厂房监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学北楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学北楼', + installTime: '2023-03-15', + lat: '40.830858', + lng: '111.730585', + monitorObj: '5', + monitorObjName: '教学北楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '一号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '一号楼', + installTime: '2023-03-15', + lat: '40.831051', + lng: '111.729815', + monitorObj: '5', + monitorObjName: '一号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'B座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'B座公寓', + installTime: '2023-03-15', + lat: '40.831326', + lng: '111.729689', + monitorObj: '5', + monitorObjName: 'B座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '二号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '二号楼', + installTime: '2023-03-15', + lat: '40.831205', + lng: '111.730472', + monitorObj: '5', + monitorObjName: '二号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'C座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'C座公寓', + installTime: '2023-03-15', + lat: '40.831475', + lng: '111.730364', + monitorObj: '5', + monitorObjName: 'C座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '网络教室热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '网络教室', + installTime: '2023-03-15', + lat: '40.831027', + lng: '111.731106', + monitorObj: '5', + monitorObjName: '网络教室监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '机考基地热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '机考基地', + installTime: '2023-03-15', + lat: '40.830697', + lng: '111.731217', + monitorObj: '5', + monitorObjName: '机考基地监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '教学南楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '教学南楼', + installTime: '2023-03-15', + lat: '40.830084', + lng: '111.730342', + monitorObj: '5', + monitorObjName: '教学南楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: 'A座公寓热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: 'A座公寓', + installTime: '2023-03-15', + lat: '40.829572', + lng: '111.73019', + monitorObj: '5', + monitorObjName: 'A座公寓监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '三号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '三号楼', + installTime: '2023-03-15', + lat: '40.829443', + lng: '111.730252', + monitorObj: '5', + monitorObjName: '三号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '四号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '四号楼', + installTime: '2023-03-15', + lat: '40.82965', + lng: '111.731148', + monitorObj: '5', + monitorObjName: '四号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '五号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '五号楼', + installTime: '2023-03-15', + lat: '40.829416', + lng: '111.731261', + monitorObj: '5', + monitorObjName: '五号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '六号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '六号楼', + installTime: '2023-03-15', + lat: '40.829665', + lng: '111.732417', + monitorObj: '5', + monitorObjName: '六号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, + { + createTime: '2023-06-01', + deviceClassify: '1', + deviceName: '七号楼热能表', + deviceNo: 'n001', + deviceType: 2, + deviceTypeName: '远传热能表', + en: '108.90', + facilityArea: '1.00', + id: '1641418865640501249', + installLocaltion: '七号楼', + installTime: '2023-03-15', + lat: '40.829862', + lng: '111.733332', + monitorObj: '5', + monitorObjName: '七号楼监测点', + monitorUnit: 'KJ', + monitorVal: '99.00', + pd: '', + ptn: 1, + ptnName: 'A区', + qd: '', + referencePd: '100.00', + referenceQd: '', + stat: 0, + statName: '在线', + uploadTime: '2023-08-03', + }, +] +export const branchList = [ + { + branchNodeInfos: [ + [111.72953, 40.830681], + [111.730077, 40.83078], + [111.730552, 40.830891], + [111.729815, 40.831051], + [111.729689, 40.831326], + ], + branchNumber: '1号支路', + }, + { + branchNodeInfos: [ + [111.729815, 40.831051], + [111.730472, 40.831205], + [111.730364, 40.831475], + ], + branchNumber: '2号支路', + }, + { + branchNodeInfos: [ + [111.730552, 40.830891], + [111.731106, 40.831027], + [111.731217, 40.830697], + ], + branchNumber: '3号支路', + }, + { + branchNodeInfos: [ + [111.730077, 40.83078], + [111.730342, 40.830084], + [111.73019, 40.829572], + [111.730252, 40.829443], + [111.731148, 40.82965], + + [111.731261, 40.829416], + [111.732417, 40.829665], + [111.733332, 40.829862], + ], + branchNumber: '4号支路', + }, +] +export const guangfuList = [ + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830948', + lng: '111.730561', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学北楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831377', + lng: '111.729912', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'B座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.831528', + lng: '111.730581', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'C座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.830178', + lng: '111.730829', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '教学南楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829763', + lng: '111.730109', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: 'A座公寓光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, + { + createTime: '2023-05-10', + deviceId: '2', + deviceNo: '', + deviceType: '', + deviceTypeName: '', + electricalVoltage: '', + id: '2', + installLocaltion: '', + lat: '40.829607', + lng: '111.730734', + mbase: '100.00', + nodeId: '9', + // nodeLat: '40.830858', + // nodeLng: '111.730585', + pg: '0.30', + pmax: '10.00', + pmin: '0.00', + power: '', + qg: '0.00', + qmax: '0.00', + qmin: '0.00', + stationName: '四号楼光伏采集点', + stationType: 0, + status: 1, + strength: '0.00', + sttusName: '', + uploadTime: '2023-08-02', + vg: '1.00', + }, +] diff --git a/src/components/map-bak/trendChart.vue b/src/components/map-bak/trendChart.vue new file mode 100644 index 0000000..5fbdd3d --- /dev/null +++ b/src/components/map-bak/trendChart.vue @@ -0,0 +1,163 @@ + + + + + + diff --git a/src/components/map/index.vue b/src/components/map/index.vue index da37e9a..5a1b86c 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -8,7 +8,6 @@ import infoDetail from './infoWindow.vue' import infoDetail2 from './infoWindow2.vue' import infoDetailHot from './infoWindowHot.vue' -import { HotNodeList, branchList, electNodeList, guangfuList } from './mock.js' import { getDictByCode } from '@/api/system/dict' import { electricityBranch, electricityNode, getAreaPosition, getDeviceListPage, getElectricityListAll, getMonitorStationList } from '@/api/api/index' const publicPath = import.meta.env.BASE_URL @@ -90,6 +89,7 @@ // 图层实例 layer.value = new AMap.TileLayer.Satellite() map.value.addLayer(layer.value) + map.value.setFeatures(['bg', 'building']) // 地图绑定右击事件 map.value.on('mousedown', clickHandler) }) @@ -113,7 +113,7 @@ position: markerArr.value[i], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] map: map.value, icon, - offset: new AMap.Pixel(0, -20), + offset: new AMap.Pixel(3, -30), }) // 支路点详细信息// 信息窗体 infoWindow.value = new AMap.InfoWindow({ @@ -139,7 +139,7 @@ }) map.value.add([marker]) } - // // 光伏标记点及光伏绘制 + // 光伏标记点及光伏绘制 for (let i = 0; i < markerArr1.value.length; i++) { const icon = new AMap.Icon({ size: new AMap.Size(36, 36), // 图标尺寸 @@ -197,108 +197,88 @@ } // 电网支路折线绘制 for (let i = 0; i < lineArr.value.length; i++) { - const path = lineArr.value[i].branchNodeInfos - var polyline = new AMap.Polyline({ - path, - isOutline: true, - strokeColor: '#008d68', - // strokeOpacity: 1, - strokeWeight: 3, - // 折线样式还支持 'dashed' - // strokeStyle是dashed时有效 - strokeDasharray: [10, 3], - lineJoin: 'round', - // lineCap: 'square', - lineCap: 'round', - zIndex: 50, - zooms: [16, 20], - }) - polyline.setMap(map.value) - map.value.add(polyline) - } - // for (let i = 0; i < lineArr.value.length; i++) { - // // console.log(lineArr.value[i]) - // const path = lineArr.value.map(item => item.branchNodeInfos) - // const line = path.map(item => ( - // item.map((child) => { - // return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) - // }) - // )) - // line.forEach((item) => { - // item.forEach((child) => { - // const path = [child[0], child[1]] - // const polyline = new AMap.Polyline({ - // path, - // // isOutline: true, - // strokeColor: child[2] === 1 ? '#008d68' : '#000', - // // strokeOpacity: 1, - // strokeWeight: 3, - // // 折线样式还支持 'dashed' - // strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', - // // strokeStyle是dashed时有效 - // strokeDasharray: [10, 3], - // lineJoin: 'round', - // showDir: child[2] === 1, - // // lineCap: 'square', - // lineCap: 'round', - // zIndex: 50, - // zooms: [16, 20], + // console.log(lineArr.value[i]) + const path = lineArr.value.map(item => item.branchNodeInfos) + const line = path.map(item => ( + item.map((child) => { + return ([[child.flng, child.flat], [child.tlng, child.tlat], child.status2]) + }) + )) + line.forEach((item) => { + item.forEach((child) => { + const path = [child[0], child[1]] + const polyline = new AMap.Polyline({ + path, + // isOutline: true, + strokeColor: child[2] === 1 ? '#008d68' : '#000', + // strokeOpacity: 1, + strokeWeight: 3, + // 折线样式还支持 'dashed' + strokeStyle: child[2] !== 1 ? 'dashed' : 'dashed ', + // strokeStyle是dashed时有效 + strokeDasharray: [10, 3], + lineJoin: 'round', + showDir: child[2] === 1, + // lineCap: 'square', + lineCap: 'round', + zIndex: 50, + zooms: [16, 20], - // }) - // // 离线支路连接添加开关图标 - // if (child[2] === 0) { - // const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // image: `${publicPath}img/icon3.png`, // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // const marker = new AMap.Marker({ - // zooms: [16, 20], - // position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // icon, - // offset: new AMap.Pixel(-20, -20), - // }) - // map.value.add([marker]) - // } - // polyline.setMap(map.value) - // map.value.add(polyline) - // }) - // }) - // 添加支路折线文本 - // 创建纯文本标记 - // const textArr = path.map(item => ( - // item.map((child) => { - // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) - // }) - // )) - // textArr.forEach((item) => { - // // console.log(item, 'item') - // item.forEach((child) => { - // const icon = new AMap.Icon({ - // size: new AMap.Size(36, 36), // 图标尺寸 - // // image: '', // Icon的图像 - // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 - // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 - // }) - // // const content = '
111
' - // const marker = new AMap.Marker({ - // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] - // map: map.value, - // content: '', - // offset: new AMap.Pixel(-20, -20), - // }) - // marker.setLabel({ - // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 - // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 - // direction: 'right', // 设置文本标注方位 - // }) - // map.value.add([marker]) - // }) - // }) - // } + }) + // 离线支路连接添加开关图标 + if (child[2] === 0) { + const data = [(Number(child[0][0]) + Number(child[1][0])) / 2, (Number(child[0][1]) + Number(child[1][1])) / 2] + const icon = new AMap.Icon({ + size: new AMap.Size(36, 36), // 图标尺寸 + image: `${publicPath}img/icon3.png`, // Icon的图像 + imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + }) + const marker = new AMap.Marker({ + zooms: [16, 20], + position: data, // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + map: map.value, + icon, + offset: new AMap.Pixel(-20, -20), + }) + map.value.add([marker]) + } + polyline.setMap(map.value) + map.value.add(polyline) + }) + }) + // 添加支路折线文本 + // 创建纯文本标记 + // const textArr = path.map(item => ( + // item.map((child) => { + // return ([[(Number(child.flng) + Number(child.tlng)) / 2, (Number(child.flat) + Number(child.tlat)) / 2], child.flowRate]) + // }) + // )) + // textArr.forEach((item) => { + // // console.log(item, 'item') + // item.forEach((child) => { + // const icon = new AMap.Icon({ + // size: new AMap.Size(36, 36), // 图标尺寸 + // // image: '', // Icon的图像 + // imageSize: new AMap.Size(24, 30), // 根据所设置的大小拉伸或压缩图片 + // imageOffset: new AMap.Pixel(0, 0), // 图像相对展示区域的偏移量,适于雪碧图等 + // }) + // // const content = '
111
' + // const marker = new AMap.Marker({ + // position: child[0], // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] + // map: map.value, + // content: '', + // offset: new AMap.Pixel(-20, -20), + // }) + // marker.setLabel({ + // offset: new AMap.Pixel(-10, -2), // 设置文本标注偏移量 + // content: `
${`${child[1]}kgCO2/h`}
`, // 设置文本标注内容 + // direction: 'right', // 设置文本标注方位 + // }) + // map.value.add([marker]) + // }) + // }) + } } // 绘制用热监测相关 const useHot = () => { @@ -347,26 +327,20 @@ try { const list = await getElectricityListAll() // 电网列表 - console.log(list.data, '电网列表') electricityList.value = list.data // 查询节点列表(标记点) if (electricityList.value.length) { const res = await electricityNode(electricityList.value[0].id) - // markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrInfo.value = res.data - markerArr.value = electNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo.value = electNodeList - console.log(res.data, '电网标记点') + markerArr.value = res.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo.value = res.data // 获取支路信息(折线) - // const res1 = await electricityBranch(electricityList.value[0].id) - lineArr.value = branchList - // console.log(res1.data, '折线记点') + const res1 = await electricityBranch(electricityList.value[0].id) + lineArr.value = res1.data } // 获取光伏列表 - const list1 = guangfuList - // console.log(list1, '广福街店') - markerArr1.value = list1.map(item => ([Number(item.lng), Number(item.lat)])) - markerArrInfo1.value = list1 + const list1 = await getMonitorStationList() + markerArr1.value = list1.data.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrInfo1.value = list1.data // 初始化地图 await initMap() useElectricity() @@ -381,10 +355,8 @@ ptn: '', deviceType: '2', }).then((res) => { - markerArrHotInfo.value = HotNodeList - markerArrHot.value = HotNodeList.map(item => ([Number(item.lng), Number(item.lat)])) - // markerArrHotInfo.value = res.data.rows - // markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) + markerArrHotInfo.value = res.data.rows + markerArrHot.value = res.data.rows.map(item => ([Number(item.lng), Number(item.lat)])) }) // getElectricityListAll().then((res) => { // // 电网列表 @@ -456,6 +428,7 @@ areaMarkerList.value.push(res.data[0]) const data = areaMarkerList.value.map(item => ([Number(item.lng), Number(item.lat)])) drawArea(data, color[newVal]) + console.log(data, 'data') } }) }) @@ -483,13 +456,13 @@ - + diff --git a/src/components/map/mock.js b/src/components/map/mock.js deleted file mode 100644 index 083069d..0000000 --- a/src/components/map/mock.js +++ /dev/null @@ -1,1080 +0,0 @@ -export const electNodeList = [ - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830681', - lng: '111.72953', - nodeName: '', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.83078', - lng: '111.730077', - nodeName: '教学主楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830858', - lng: '111.730585', - nodeName: '教学北楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831051', - lng: '111.729815', - nodeName: '一号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831326', - lng: '111.729689', - nodeName: 'B座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831205', - lng: '111.730472', - nodeName: '二号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831475', - lng: '111.730364', - nodeName: 'C座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.831027', - lng: '111.731106', - nodeName: '网络教室', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830697', - lng: '111.731217', - nodeName: '机考基地', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.830084', - lng: '111.730342', - nodeName: '教学南楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829572', - lng: '111.73019', - nodeName: 'A座公寓', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829443', - lng: '111.730252', - nodeName: '三号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.82965', - lng: '111.731148', - nodeName: '四号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829416', - lng: '111.731261', - nodeName: '五号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829665', - lng: '111.732417', - nodeName: '六号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, - { - area: 1, - basekv: '12.66', - bs: 0, - busId: 1, - calTime: '2023-07-31 12:00:11', - colTime: '2023-07-31 12:00:11', - createTime: '2023-05-09', - deviceId: '6', - electricityId: '1638161327922909185', - en: '850.00', - flowRate: '0.00', - gs: 0, - id: '1', - lat: '40.829862', - lng: '111.733332', - nodeName: '七号楼', - pd: '0.00', - qd: '0.00', - type: 3, - typeName: '', - va: '0.00', - vm: '1.00', - vmax: '1.00', - vmin: '1.00', - zone: 1, - }, -] -export const HotNodeList = [ - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学主楼西侧热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学主楼西侧', - installTime: '2023-03-15', - lat: '40.83078', - lng: '111.730077', - monitorObj: '5', - monitorObjName: '厂房监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学北楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学北楼', - installTime: '2023-03-15', - lat: '40.830858', - lng: '111.730585', - monitorObj: '5', - monitorObjName: '教学北楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '一号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '一号楼', - installTime: '2023-03-15', - lat: '40.831051', - lng: '111.729815', - monitorObj: '5', - monitorObjName: '一号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'B座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'B座公寓', - installTime: '2023-03-15', - lat: '40.831326', - lng: '111.729689', - monitorObj: '5', - monitorObjName: 'B座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '二号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '二号楼', - installTime: '2023-03-15', - lat: '40.831205', - lng: '111.730472', - monitorObj: '5', - monitorObjName: '二号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'C座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'C座公寓', - installTime: '2023-03-15', - lat: '40.831475', - lng: '111.730364', - monitorObj: '5', - monitorObjName: 'C座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '网络教室热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '网络教室', - installTime: '2023-03-15', - lat: '40.831027', - lng: '111.731106', - monitorObj: '5', - monitorObjName: '网络教室监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '机考基地热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '机考基地', - installTime: '2023-03-15', - lat: '40.830697', - lng: '111.731217', - monitorObj: '5', - monitorObjName: '机考基地监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '教学南楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '教学南楼', - installTime: '2023-03-15', - lat: '40.830084', - lng: '111.730342', - monitorObj: '5', - monitorObjName: '教学南楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: 'A座公寓热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: 'A座公寓', - installTime: '2023-03-15', - lat: '40.829572', - lng: '111.73019', - monitorObj: '5', - monitorObjName: 'A座公寓监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '三号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '三号楼', - installTime: '2023-03-15', - lat: '40.829443', - lng: '111.730252', - monitorObj: '5', - monitorObjName: '三号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '四号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '四号楼', - installTime: '2023-03-15', - lat: '40.82965', - lng: '111.731148', - monitorObj: '5', - monitorObjName: '四号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '五号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '五号楼', - installTime: '2023-03-15', - lat: '40.829416', - lng: '111.731261', - monitorObj: '5', - monitorObjName: '五号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '六号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '六号楼', - installTime: '2023-03-15', - lat: '40.829665', - lng: '111.732417', - monitorObj: '5', - monitorObjName: '六号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, - { - createTime: '2023-06-01', - deviceClassify: '1', - deviceName: '七号楼热能表', - deviceNo: 'n001', - deviceType: 2, - deviceTypeName: '远传热能表', - en: '108.90', - facilityArea: '1.00', - id: '1641418865640501249', - installLocaltion: '七号楼', - installTime: '2023-03-15', - lat: '40.829862', - lng: '111.733332', - monitorObj: '5', - monitorObjName: '七号楼监测点', - monitorUnit: 'KJ', - monitorVal: '99.00', - pd: '', - ptn: 1, - ptnName: 'A区', - qd: '', - referencePd: '100.00', - referenceQd: '', - stat: 0, - statName: '在线', - uploadTime: '2023-08-03', - }, -] -export const branchList = [ - { - branchNodeInfos: [ - [111.72953, 40.830681], - [111.730077, 40.83078], - [111.730552, 40.830891], - [111.729815, 40.831051], - [111.729689, 40.831326], - ], - branchNumber: '1号支路', - }, - { - branchNodeInfos: [ - [111.729815, 40.831051], - [111.730472, 40.831205], - [111.730364, 40.831475], - ], - branchNumber: '2号支路', - }, - { - branchNodeInfos: [ - [111.730552, 40.830891], - [111.731106, 40.831027], - [111.731217, 40.830697], - ], - branchNumber: '3号支路', - }, - { - branchNodeInfos: [ - [111.730077, 40.83078], - [111.730342, 40.830084], - [111.73019, 40.829572], - [111.730252, 40.829443], - [111.731148, 40.82965], - - [111.731261, 40.829416], - [111.732417, 40.829665], - [111.733332, 40.829862], - ], - branchNumber: '4号支路', - }, -] -export const guangfuList = [ - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830948', - lng: '111.730561', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学北楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831377', - lng: '111.729912', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'B座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.831528', - lng: '111.730581', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'C座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.830178', - lng: '111.730829', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '教学南楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829763', - lng: '111.730109', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: 'A座公寓光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, - { - createTime: '2023-05-10', - deviceId: '2', - deviceNo: '', - deviceType: '', - deviceTypeName: '', - electricalVoltage: '', - id: '2', - installLocaltion: '', - lat: '40.829607', - lng: '111.730734', - mbase: '100.00', - nodeId: '9', - // nodeLat: '40.830858', - // nodeLng: '111.730585', - pg: '0.30', - pmax: '10.00', - pmin: '0.00', - power: '', - qg: '0.00', - qmax: '0.00', - qmin: '0.00', - stationName: '四号楼光伏采集点', - stationType: 0, - status: 1, - strength: '0.00', - sttusName: '', - uploadTime: '2023-08-02', - vg: '1.00', - }, -] diff --git a/src/components/mapBak/index.vue b/src/components/mapBak/index.vue deleted file mode 100644 index cf07cce..0000000 --- a/src/components/mapBak/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - diff --git a/src/components/mapBak/infoWindow.vue b/src/components/mapBak/infoWindow.vue deleted file mode 100644 index 7893e43..0000000 --- a/src/components/mapBak/infoWindow.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/infoWindow2.vue b/src/components/mapBak/infoWindow2.vue deleted file mode 100644 index e4aca59..0000000 --- a/src/components/mapBak/infoWindow2.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/infoWindowHot.vue b/src/components/mapBak/infoWindowHot.vue deleted file mode 100644 index 9b69483..0000000 --- a/src/components/mapBak/infoWindowHot.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - diff --git a/src/components/mapBak/trendChart.vue b/src/components/mapBak/trendChart.vue deleted file mode 100644 index 5fbdd3d..0000000 --- a/src/components/mapBak/trendChart.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - - -