From 3609bf595e807de41d531e2399eb09a8745a3c4f Mon Sep 17 00:00:00 2001 From: "gounaikang@hisense.com" Date: Thu, 25 Aug 2022 17:07:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A7=AF=E6=B0=B4=E7=82=B9=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../waterPoints/components/ComplaintEvent.vue | 23 ++++++++-- .../pages/waterPoints/components/SiteList.vue | 17 +++++--- .../waterPoints/components/WaterPointPop.vue | 38 +++++++++++++++-- src/views/pages/waterPoints/index.vue | 42 ++++++++++++++++++- 4 files changed, 106 insertions(+), 14 deletions(-) diff --git a/src/views/pages/waterPoints/components/ComplaintEvent.vue b/src/views/pages/waterPoints/components/ComplaintEvent.vue index 01600bb..45783ee 100644 --- a/src/views/pages/waterPoints/components/ComplaintEvent.vue +++ b/src/views/pages/waterPoints/components/ComplaintEvent.vue @@ -41,11 +41,12 @@
{{item.waterPointName}} - {{reportOrigin(item.reportOrigin)}} + + {{item.waterPointDepth != null ? '水务局' : '水务集团'}}
- {{item.pointLevel=='traffic' ? '影响车辆(>30cm)' : item.pointLevel=='pedestrian' ? '影响行人(<30cm)' : '无积水(<10cm)' }} + {{ getDesc(item) }}
@@ -78,7 +79,7 @@ export default { }, { title:'水务局', - id:'null' + id:'auditorReport' }, { title:'城管局', @@ -90,7 +91,7 @@ export default { }, { title:'水务集团', - id:'auditorReport' + id:'null' }, { title:'群众上报', @@ -160,6 +161,20 @@ export default { // }) }, methods: { + getDesc(item) { + let deepth = item.waterPointDepth ? parseFloat(item.waterPointDepth) * 100 : 0 + switch(item.pointLevel) { + case 'traffic': + return `影响车辆(${deepth}cm)` + break + case 'pedestrian': + return `影响行人(${deepth}cm)` + break + default: + return `无积水(${deepth}cm)` + break + } + }, selectType (item) { if (this.filterButton.typeActive.indexOf(item) > -1) { this.filterButton.typeActive.splice(this.filterButton.typeActive.indexOf(item), 1) diff --git a/src/views/pages/waterPoints/components/SiteList.vue b/src/views/pages/waterPoints/components/SiteList.vue index d43d310..ae6bd4a 100644 --- a/src/views/pages/waterPoints/components/SiteList.vue +++ b/src/views/pages/waterPoints/components/SiteList.vue @@ -188,7 +188,7 @@ export default { } }, grid: { - bottom: 40, + bottom: 30, top:10, }, xAxis: { @@ -238,10 +238,17 @@ export default { barWidth: 23, label: { show: true, - position: 'top', - distance: 5, - color: 'fe982a', - fontSize: 18 + position: 'inside', + distance: 0, + formatter: function(param) { + if(param.value > 0) + return param.value + else return '' + }, + textStyle: { + color: '#fff', + fontSize: 12 + } } } ] diff --git a/src/views/pages/waterPoints/components/WaterPointPop.vue b/src/views/pages/waterPoints/components/WaterPointPop.vue index b72c9bf..f2fd2b6 100644 --- a/src/views/pages/waterPoints/components/WaterPointPop.vue +++ b/src/views/pages/waterPoints/components/WaterPointPop.vue @@ -23,9 +23,14 @@ width: 280px; height: 158px; cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + border: #f2f2f2 1px solid; " > - + + 暂无视频内容

周边监控

@@ -47,7 +52,12 @@ > - + + +
@@ -58,6 +68,9 @@
更新时间: {{ feature.data.updatedDate || "" }}
+
+ +