From 3b2467a895ea8bc45846ba23298b385a9a0baf76 Mon Sep 17 00:00:00 2001 From: wj <347312259@qq.com> Date: Mon, 19 Jun 2023 14:05:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8A=9F=E7=8E=87=E6=8A=98=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E6=B7=BB=E5=8A=A0=E9=98=B4=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psdc-ui/src/views/bigview/index.vue | 11 ++++++++++- psdc-ui/src/views/emonitor/db/index.vue | 9 +++++++++ psdc-ui/src/views/emonitor/drgl/index.vue | 9 +++++++++ psdc-ui/src/views/emonitor/frdl/index.vue | 9 +++++++++ psdc-ui/src/views/emonitor/kqyrb/index.vue | 9 +++++++++ psdc-ui/src/views/emonitor/xrgl/index.vue | 9 +++++++++ psdc-ui/src/views/system/device/index.vue | 10 +++++----- 7 files changed, 60 insertions(+), 6 deletions(-) diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index c49c649..2fcb84e 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -835,7 +835,16 @@ function dqglChartFun(){ symbol: "none", //去掉圆点 itemStyle: { //线条颜色 color: '#128dff', - } + }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 } ] }; diff --git a/psdc-ui/src/views/emonitor/db/index.vue b/psdc-ui/src/views/emonitor/db/index.vue index 7f9a297..4d6f0d8 100644 --- a/psdc-ui/src/views/emonitor/db/index.vue +++ b/psdc-ui/src/views/emonitor/db/index.vue @@ -336,6 +336,15 @@ export default { itemStyle:{ color:'#2F8EE0' }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 symbol: "none", //去掉拐角点 markPoint: { itemStyle: { diff --git a/psdc-ui/src/views/emonitor/drgl/index.vue b/psdc-ui/src/views/emonitor/drgl/index.vue index d7cb956..e9430aa 100644 --- a/psdc-ui/src/views/emonitor/drgl/index.vue +++ b/psdc-ui/src/views/emonitor/drgl/index.vue @@ -741,6 +741,15 @@ export default { {type: "min", name: "最小值"} ] }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 }, ], }); diff --git a/psdc-ui/src/views/emonitor/frdl/index.vue b/psdc-ui/src/views/emonitor/frdl/index.vue index a115b5d..1cd1f99 100644 --- a/psdc-ui/src/views/emonitor/frdl/index.vue +++ b/psdc-ui/src/views/emonitor/frdl/index.vue @@ -726,6 +726,15 @@ export default { {type: "min", name: "最小值"} ] }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 }, ], }); diff --git a/psdc-ui/src/views/emonitor/kqyrb/index.vue b/psdc-ui/src/views/emonitor/kqyrb/index.vue index d8dff9f..d785611 100644 --- a/psdc-ui/src/views/emonitor/kqyrb/index.vue +++ b/psdc-ui/src/views/emonitor/kqyrb/index.vue @@ -738,6 +738,15 @@ export default { {type: "min", name: "最小值"} ] }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 }, ], }); diff --git a/psdc-ui/src/views/emonitor/xrgl/index.vue b/psdc-ui/src/views/emonitor/xrgl/index.vue index 6e95e9a..5ab000a 100644 --- a/psdc-ui/src/views/emonitor/xrgl/index.vue +++ b/psdc-ui/src/views/emonitor/xrgl/index.vue @@ -430,6 +430,15 @@ export default { {type: "min", name: "最小值"} ] }, + areaStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: "#128dff"}, + {offset: 0.5, color: "rgba(18,141,252,.2)"}, + {offset: 1, color: "rgba(18,141,252,.0)"} + ]) + } + }, //设置折线区域渐变颜色 }, ], }); diff --git a/psdc-ui/src/views/system/device/index.vue b/psdc-ui/src/views/system/device/index.vue index 617b7c4..0a088d0 100644 --- a/psdc-ui/src/views/system/device/index.vue +++ b/psdc-ui/src/views/system/device/index.vue @@ -45,11 +45,11 @@ - - - - - + + + + +