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 @@
-
-
-
-
-
+
+
+
+
+
Date: Tue, 20 Jun 2023 09:25:15 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E7=AD=96=E7=95=A5=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=BF=87=E7=A8=8B=E3=80=81=E7=BB=93=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
psdc-ui/src/views/control/manual/index.vue | 117 ++++++++++++++++-----
1 file changed, 89 insertions(+), 28 deletions(-)
diff --git a/psdc-ui/src/views/control/manual/index.vue b/psdc-ui/src/views/control/manual/index.vue
index 04d0d10..9cf4dfe 100644
--- a/psdc-ui/src/views/control/manual/index.vue
+++ b/psdc-ui/src/views/control/manual/index.vue
@@ -67,7 +67,12 @@
{{ item.sceneName }}
-
+
{{items.step}}
@@ -107,7 +112,7 @@
diff --git a/psdc-ui/src/views/control/manual/index.vue b/psdc-ui/src/views/control/manual/index.vue
index 9cf4dfe..1cd9c44 100644
--- a/psdc-ui/src/views/control/manual/index.vue
+++ b/psdc-ui/src/views/control/manual/index.vue
@@ -355,10 +355,6 @@ const SenceControlArr = ref([])
let celueItem;
function selectCeLue(item){
celueItem = item
- // for(let i = 0;i < item.flow.length;i++){
- // item.flow[i].type = 'primary'
- // }
-
// //拼数组对象
// //1、
// let dataArr = [];
@@ -388,6 +384,24 @@ function selectCeLue(item){
// // console.log(JSON.stringify(dataArr, null, 4));
// SenceControlArr.value = JSON.stringify(dataArr, null, 4)
}
+
+//执行另一个策略将所有策略的icon和type清空
+function clearLastCelue(){
+ celueList.value.forEach((celue) => {
+ celue.flow.forEach((flow) => {
+ flow.icon = ''
+ flow.type = ''
+ })
+ })
+ celueItem.flow.forEach((flow) => {
+ flow.icon = flow.icon || ''
+ flow.type = flow.type || ''
+ })
+ console.log('qqqqqq',celueItem)
+}
+// const getIcon = (item) => { return item.icon || '' }
+// const getType = (item) => { return item.type || '' }
+
//执行
function confirmClick() {
if(SenceControlArr.value.length != 0){
@@ -408,6 +422,7 @@ function confirmClick() {
getSenceControl(SenceControlArr.value).then((res)=>{
if(res.code == 200){
+ clearLastCelue()
//执行过程
function setFlowItem(i) {
if (i >= celueItem.flow.length) {
@@ -702,6 +717,11 @@ function getSetTemperatureFun(item){
}
::v-deep .el-radio{
display: inline-block;
+ transition: all .1s;
+ &:hover{
+ box-shadow: 1px 1px 10px rgba(0,0,0,.3);
+ transform: scale(1.005);
+ }
}
::v-deep .el-drawer__body{
overflow-x: hidden;