From 41266ed2d443696422a26f97236f741f1c4198bd Mon Sep 17 00:00:00 2001 From: zhoule Date: Wed, 3 Apr 2024 10:28:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E8=83=BD=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layer/路测设备/太阳能板.svg | 5 + .../路测设备/太阳能板_active.svg | 3 + .../layer/路测设备/太阳能板_fault.svg | 3 + .../components/DeviceControlDialog.vue | 55 +++++ .../SolarEnergy/components/DeviceParams.vue | 160 ++++++++++++++ .../components/Dialogs/SolarEnergy/data.js | 44 ++++ .../components/Dialogs/SolarEnergy/index.vue | 197 ++++++++++++++++++ .../Home/components/RoadAndEvents/index.vue | 2 + .../RoadAndEvents/utils/buttonEvent.js | 4 + 9 files changed, 473 insertions(+) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板.svg create mode 100644 ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_active.svg create mode 100644 ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_fault.svg create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceControlDialog.vue create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/data.js create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue diff --git a/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板.svg b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板.svg new file mode 100644 index 00000000..0c8315e6 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_active.svg b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_active.svg new file mode 100644 index 00000000..cdab49c1 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_active.svg @@ -0,0 +1,3 @@ + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_fault.svg b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_fault.svg new file mode 100644 index 00000000..0d47a964 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/images/layer/路测设备/太阳能板_fault.svg @@ -0,0 +1,3 @@ + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceControlDialog.vue new file mode 100644 index 00000000..dd73bbda --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceControlDialog.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue new file mode 100644 index 00000000..d51163fb --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/data.js new file mode 100644 index 00000000..1820068a --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/data.js @@ -0,0 +1,44 @@ +export const devicesFormList = [ + { + label: "设备内温度过高", + key: `theInternalTemperatureOfTheDeviceOverheats`, + // text: "-", + gridColumn: 2, + }, + { + label: "阵列电压", + key: `arrayVoltage`, + // text: "-", + gridColumn: 2, + }, + { + label: "阵列电流", + key: `arrayCurrent`, + // text: "-", + gridColumn: 2, + }, + { + label: "发电功率L", + key: `generatingPowerL`, + text: "-", + gridColumn: 2, + }, + { + label: "发电功率H", + key: `generatingPowerH`, + text: "-", + gridColumn: 2, + }, + { + label: "负载电压", + key: `loadVoltage`, + text: "-", + gridColumn: 2, + }, + { + label: "负载电流", + key: `loadCurrent`, + text: "-", + gridColumn: 2, + }, +]; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue new file mode 100644 index 00000000..f43ad33b --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue @@ -0,0 +1,197 @@ + + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue index 44487c11..b5fbf7dc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue @@ -46,6 +46,7 @@ import Broadcast from "./../Dialogs/Broadcast/index.vue"; import TrafficIncidents from "./../Dialogs/TrafficIncidents/index.vue"; import PerceiveEvent from "./../Dialogs/PerceiveEvent/index.vue"; import SmartDevice from "./../Dialogs/SmartDevice/index.vue"; +import SolarEnergy from "./../Dialogs/SolarEnergy/index.vue"; import Intermodulation from "./../Dialogs/Intermodulation/index.vue"; import GuardrailCollision from "./../Dialogs/GuardrailCollision/index.vue"; @@ -65,6 +66,7 @@ export default { TrafficIncidents, PerceiveEvent, SmartDevice, + SolarEnergy, Intermodulation, GuardrailCollision, FatigueWakesUp diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js index bd316ae4..022ff1e1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js @@ -74,6 +74,10 @@ export const DeviceForMap = { deviceType: "10", dialog: "FatigueWakesUp", }, + 太阳能板: { + deviceType: "15", + dialog: "SolarEnergy", + }, }; export const lngLatMap = {}; //优化 缩略图 + 地图 复用lngLatmap From fa184c0539556fba3f2e64d3911db4ba1be92abe Mon Sep 17 00:00:00 2001 From: zhoule Date: Wed, 3 Apr 2024 14:11:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E8=83=BD=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialogs/SolarEnergy/components/DeviceParams.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue index d51163fb..3241e95e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue @@ -84,20 +84,27 @@ export default { devices: [{ iotDeviceId: this.dialogData.iotDeviceId, id: this.dialogData.id, + deviceType: 15 }], functions: [ { functionId: "A1", + params: {} }, { functionId: "A2", + params: {} }, { functionId: "A3", + params: {} }, { functionId: "A4", + params: {} }, { functionId: "A5", + params: {} }, { functionId: "A6", + params: {} } ], // parameter: {}