From a8fde34b5c5295aba93e9969c9f7cd0fa6c6b76b Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Fri, 13 Dec 2024 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E4=B8=BB=E8=A6=81=E7=97=85=E5=AE=B3=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=EF=BC=8C=E7=97=85=E5=AE=B3=E7=BB=9F=E8=AE=A1=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=8F=E5=8F=B3=E4=BE=A7=E5=8D=95=E9=80=89=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=9B=BE=E4=BE=8B=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../disease-components/traffic-trend.vue | 5 +- src/views/big-screen/index.vue | 8 ++- .../overview-components/disease-current.vue | 61 ++++++++++++++++++- .../overview-components/disease-trends.vue | 13 +++- .../overview-components/patrol-order.vue | 2 +- .../road-components/anomaly-facilities.vue | 3 +- src/views/index-components/daily-index.vue | 4 +- src/views/index-components/disease-index.vue | 34 ++++++++--- src/views/index-components/road-index.vue | 3 +- src/views/index-components/traffic-index.vue | 5 +- 11 files changed, 114 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 1c9903c..6e84916 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "sortablejs": "1.10.2", "vkbeautify": "^0.99.3", "vue": "2.6.12", - "vue-count-to": "1.0.13", + "vue-count-to": "^1.0.13", "vue-cropper": "0.5.5", "vue-meta": "2.4.0", "vue-router": "3.4.9", diff --git a/src/views/big-screen/disease-components/traffic-trend.vue b/src/views/big-screen/disease-components/traffic-trend.vue index b8afe21..154fa02 100644 --- a/src/views/big-screen/disease-components/traffic-trend.vue +++ b/src/views/big-screen/disease-components/traffic-trend.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-21 10:03:08 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-11-13 13:54:26 + * @LastEditTime: 2024-12-13 15:21:00 * @FilePath: \znxjxt-ui\src\views\big-screen\traffic-components\traffic-trend.vue * @Description: 病害巡检大屏-病害趋势 --> @@ -213,10 +213,11 @@ export default { ], yAxis: [ { - name: "数量", + name: "数量:个", nameTextStyle: { color: "#C7DAF2", }, + minInterval: 1, splitLine: { show: false, }, diff --git a/src/views/big-screen/index.vue b/src/views/big-screen/index.vue index 32fbc2b..1d5e50f 100644 --- a/src/views/big-screen/index.vue +++ b/src/views/big-screen/index.vue @@ -1420,6 +1420,7 @@ export default { background-color: transparent; padding: 0 0.3rem; border: none; + color: #ffffff; } .el-radio-button__orig-radio:checked + .el-radio-button__inner { @@ -1463,8 +1464,8 @@ export default { height: 7rem; width: 2rem; position: absolute; - top: 17%; - left: 26%; + bottom: 16%; + right: 27%; z-index: 1; background-image: url("../../assets/screen/index/map-legend.png"); background-repeat: no-repeat; @@ -1519,9 +1520,10 @@ export default { .map-image-select { left: 28%; top: 10%; - font-size: 1rem; + font-size: 0.9rem; position: absolute; color: #ffffff; + font-family: "DouYu"; } // 打点部分 diff --git a/src/views/big-screen/overview-components/disease-current.vue b/src/views/big-screen/overview-components/disease-current.vue index 12e4395..ef9b395 100644 --- a/src/views/big-screen/overview-components/disease-current.vue +++ b/src/views/big-screen/overview-components/disease-current.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-18 10:19:56 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-10 11:42:43 + * @LastEditTime: 2024-12-13 16:44:58 * @FilePath: \znxjxt-ui\src\views\big-screen\overview-components\disease-current.vue * @Description: 总览大屏-病害三维饼图 --> @@ -34,6 +34,26 @@
+
+
+
{{ item.typeName }}
+
{{ item.rate }}%
+
{{ item.value }}
+
+
+ @@ -61,12 +61,14 @@ export default { }, }, legend: { - top: "top", + top: "6%", icon: "roundRect", itemWidth: 15, itemHeight: 10, textStyle: { color: "#808C9F", + fontSize: 10, + fontFamily: "DouYu", }, }, grid: { @@ -91,7 +93,6 @@ export default { }, xAxis: { type: "category", - data: ["8:00", "9:00", "10:00", "11:00", "12:00", "13:00"], axisLine: { lineStyle: { color: "rgba(60,132,163,0.4)", // x轴线颜色 @@ -109,10 +110,16 @@ export default { data: xData, }, yAxis: { + name: "数量:个", + nameTextStyle: { + color: "#C7DAF2", + align: "left", + }, type: "value", axisTick: { show: false, }, + minInterval: 1, axisLine: { show: false, }, diff --git a/src/views/big-screen/overview-components/patrol-order.vue b/src/views/big-screen/overview-components/patrol-order.vue index fcdadd8..dd8160e 100644 --- a/src/views/big-screen/overview-components/patrol-order.vue +++ b/src/views/big-screen/overview-components/patrol-order.vue @@ -520,4 +520,4 @@ export default { padding: 0; background-color: #113463; } - \ No newline at end of file + diff --git a/src/views/big-screen/road-components/anomaly-facilities.vue b/src/views/big-screen/road-components/anomaly-facilities.vue index 7d00ea2..bf22cc1 100644 --- a/src/views/big-screen/road-components/anomaly-facilities.vue +++ b/src/views/big-screen/road-components/anomaly-facilities.vue @@ -193,10 +193,11 @@ export default { ], yAxis: [ { - name: "数量", + name: "数量:个", nameTextStyle: { color: "#C7DAF2", }, + minInterval: 1, splitLine: { show: false, }, diff --git a/src/views/index-components/daily-index.vue b/src/views/index-components/daily-index.vue index 791496b..6c82edc 100644 --- a/src/views/index-components/daily-index.vue +++ b/src/views/index-components/daily-index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-29 15:12:20 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-05 16:36:31 + * @LastEditTime: 2024-12-13 15:25:14 * @FilePath: \znxjxt-ui\src\views\index-components\daily-index.vue * @Description: 首页-日常巡查 --> @@ -170,6 +170,7 @@ export default { { name: "", type: "value", + minInterval: 1, axisLine: { lineStyle: { color: "#A2B0B8", @@ -186,6 +187,7 @@ export default { { name: "", type: "value", + minInterval: 1, axisLine: { lineStyle: { color: "#A2B0B8", diff --git a/src/views/index-components/disease-index.vue b/src/views/index-components/disease-index.vue index 2b9df89..a3def02 100644 --- a/src/views/index-components/disease-index.vue +++ b/src/views/index-components/disease-index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-29 15:17:58 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-10 11:58:18 + * @LastEditTime: 2024-12-13 15:29:06 * @FilePath: \znxjxt-ui\src\views\index-components\disease-index.vue * @Description: 首页-病害识别 --> @@ -22,13 +22,15 @@
病害识别总数
- {{ total }}个 + {{ total }}
新增病害数
- {{ newTotal }}个 + {{ newTotal }}
@@ -38,9 +40,16 @@
-
+
- + {{ item.name }}
{{ item.rate }}
@@ -150,7 +159,10 @@ export default { return { value: item.value, name: item.label, - rate: `${((item.value / data.total) * 100).toFixed(0)}%`, + rate: + data.total > 0 + ? `${((item.value / data.total) * 100).toFixed(0)}%` + : "0%", }; }); this.$nextTick(() => { @@ -223,6 +235,7 @@ export default { { name: "", type: "value", + minInterval: 1, axisLine: { lineStyle: { color: "#A2B0B8", @@ -261,7 +274,10 @@ export default { // 是否显示detail,即拖拽时候显示详细数值信息 showDetail: false, // 数据窗口范围的起始数值 - startValue: this.statisticsData.length > 6 ? this.statisticsData.length - 6 : 0, + startValue: + this.statisticsData.length > 6 + ? this.statisticsData.length - 6 + : 0, // 数据窗口范围的结束数值(一页显示多少条数据) endValue: this.statisticsData.length, // empty:当前数据窗口外的数据,被设置为空。 @@ -430,7 +446,7 @@ export default { background: url("../../assets/index/left-bkg.png") no-repeat; background-size: 100%; - >div { + > div { height: 50%; width: calc(100% - 2rem); margin: 0 1rem; @@ -472,7 +488,7 @@ export default { z-index: 1; } - >div { + > div { height: 50%; width: 100%; display: flex; diff --git a/src/views/index-components/road-index.vue b/src/views/index-components/road-index.vue index 529fd39..51fe949 100644 --- a/src/views/index-components/road-index.vue +++ b/src/views/index-components/road-index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-29 15:23:44 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-09 11:53:20 + * @LastEditTime: 2024-12-13 15:29:27 * @FilePath: \znxjxt-ui\src\views\index-components\road-index.vue * @Description: 首页-公路资产 --> @@ -173,6 +173,7 @@ export default { { name: "", type: "value", + minInterval: 1, axisLine: { lineStyle: { color: "#A2B0B8", diff --git a/src/views/index-components/traffic-index.vue b/src/views/index-components/traffic-index.vue index 0087b27..9c41cd9 100644 --- a/src/views/index-components/traffic-index.vue +++ b/src/views/index-components/traffic-index.vue @@ -192,12 +192,13 @@ export default { ], yAxis: [ { + name: "", + type: "value", nameTextStyle: { color: "#fff", fontSize: 12, }, - name: "", - type: "value", + minInterval: 1, axisLabel: { show: true, color: "#9eaaba",