From a7c43533288595b0bc66e73c84193e70bc386b84 Mon Sep 17 00:00:00 2001 From: yu Date: Fri, 20 Dec 2024 14:44:53 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=88=B6=E9=80=A0?= =?UTF-8?q?=E5=95=86=E5=8E=82=E5=AE=B6=E5=9E=8B=E5=8F=B7=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=95=85=E9=9A=9C=E4=BF=A1=E6=81=AF=E6=8F=8F=E8=BF=B0-?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../das/modules/fdr/service/impl/FaultRecorderServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/das/src/main/java/com/das/modules/fdr/service/impl/FaultRecorderServiceImpl.java b/das/src/main/java/com/das/modules/fdr/service/impl/FaultRecorderServiceImpl.java index fce3a2df..a283bfe2 100644 --- a/das/src/main/java/com/das/modules/fdr/service/impl/FaultRecorderServiceImpl.java +++ b/das/src/main/java/com/das/modules/fdr/service/impl/FaultRecorderServiceImpl.java @@ -128,6 +128,9 @@ public class FaultRecorderServiceImpl implements FaultRecorderService { queryWrapper.eq("madeinfactory",madeinfactory); queryWrapper.eq("MODEL",model); TheoreticalPowerCurveEntity theoreticalPowerCurveEntity = theoreticalPowerCurveMapper.selectOne(queryWrapper); + if (theoreticalPowerCurveEntity == null) { + return Collections.emptyList(); + } QueryWrapper sysFaultCodeDictQueryWrapper = new QueryWrapper<>(); sysFaultCodeDictQueryWrapper.eq("parent",theoreticalPowerCurveEntity.getId()); sysFaultCodeDictQueryWrapper.orderByAsc("code"); From 1b92d8482526c03bba5559d33a2bd7a93f7ae5d0 Mon Sep 17 00:00:00 2001 From: fengrong Date: Fri, 20 Dec 2024 15:17:18 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E9=A3=8E=E6=9C=BA=E7=9F=A9=E9=98=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BA=E5=AE=9A=E5=AE=BD=E9=AB=98=20?= =?UTF-8?q?=E6=80=BB=E8=A7=88=E5=9B=BE=E5=8A=A0=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dasadmin/src/views/backend/home/home.vue | 72 +-- .../src/views/backend/home/windMatrix.vue | 441 ++++++++++++------ .../src/views/backend/home/windMatrixpage.vue | 53 ++- 3 files changed, 370 insertions(+), 196 deletions(-) diff --git a/ui/dasadmin/src/views/backend/home/home.vue b/ui/dasadmin/src/views/backend/home/home.vue index 18a64530..4364a6fe 100644 --- a/ui/dasadmin/src/views/backend/home/home.vue +++ b/ui/dasadmin/src/views/backend/home/home.vue @@ -23,14 +23,14 @@
实时无功:{{ realData.attributeMap.windfarmreactivepower}}kVar
日发电量:{{ realData.attributeMap.windfarmdayprodenergy}}万kWh
月发电量:{{ realData.attributeMap.windfarmmonthprodenergy}}万kWh
-
年发电量:{{ realData.attributeMap.windfarmyearprodenergy}}万kWh
+
年发电量:{{ realData.attributeMap.windfarmyearprodenergy}}万kWh
-
并网:{{ realData.attributeMap.turbinecountpowerprod}}台
-
停机/待机:{{ realData.attributeMap.turbinecountidle}}台
-
故障:{{ realData.attributeMap.turbinecountfaulted}}台
-
维护:{{ realData.attributeMap.turbinecountservice}}台
-
无通讯:{{ realData.attributeMap.turbinecountdisconnected}}台
+
并网:{{ realData.attributeMap.turbinecountpowerprod}}台
+
停机/待机:{{ realData.attributeMap.turbinecountidle}}台
+
故障:{{ realData.attributeMap.turbinecountfaulted}}台
+
维护:{{ realData.attributeMap.turbinecountservice}}台
+
无通讯:{{ realData.attributeMap.turbinecountdisconnected}}台
@@ -359,23 +359,6 @@ const StatusListData = () => { }) } let malFunctionEnums: any = {} -/*const getMalfunctionEnums = () => { - windList.value.forEach((item)=> { - console.log({madeinfactory: item.madeinfactory, model: item.model }) - queryfaultCodeDict({madeinfactory: item.madeinfactory, model: item.model }).then((res) => { - if (res.code == 200) { - const data: any = {} - res.data.forEach((item: any) => { - data[item.code] = item.description - }) - malFunctionEnums = data - } else { - console.warn('查询故障代码字典失败:', res.message); - } - }) - }) - -}*/ /*const requestedParams = new Set(); @@ -535,40 +518,69 @@ $labelHeight: 30px; height: v-bind('computedHeight.centerHeight'); margin-bottom: 0; .el-scrollbar { - height: calc(100% - 20px); + height: calc(100% - 50px); } .homeHeader{ display: flex; - justify-content: space-between; + justify-content: flex-start; + /*justify-content: space-between;*/ .cardLabel{ margin-right: 10px; white-space: nowrap; + display: flex; + justify-content: center; + align-items: center; + vertical-align: middle } .cardBtn{ white-space: nowrap; :deep(.el-radio-group){ flex-wrap: nowrap; - } :deep(.el-radio){ - margin-right: 12px; + margin-right: 10px; } } .headerRight{ - width: 100%; + /*width: 100%;*/ + margin-left: auto; + text-align: right; display: flex; background: #F0F6FF; border-radius: 8px; line-height: 30px; padding: 0 10px; .overviewItem{ - display: inline-block; .small-base{ display: inline-block; - padding-right: 8px; + padding-right: 15px; color: #4E5969; + i{ + width: 10px; + height: 10px; + aspect-ratio: 1 / 1; + border-radius: 50%; + display: inline-block; + margin-right: 5px; + } + .powerprod{ + background-color: #0277B3; + } + .idle{ + background-color: #FFB600; + } + .faulted{ + background-color: #FE3731; + } + .service{ + background-color: #00A096; + } + .disconnected{ + background-color: #999999; + } span{ color: #000000; + font-weight: 600; } } } diff --git a/ui/dasadmin/src/views/backend/home/windMatrix.vue b/ui/dasadmin/src/views/backend/home/windMatrix.vue index b270485d..92703362 100644 --- a/ui/dasadmin/src/views/backend/home/windMatrix.vue +++ b/ui/dasadmin/src/views/backend/home/windMatrix.vue @@ -1,10 +1,11 @@