From db1c9f232ddefd257678abd27267f9c720d19bc5 Mon Sep 17 00:00:00 2001 From: jiminglei <836545853@qq.com> Date: Tue, 20 Jun 2023 16:54:25 +0800 Subject: [PATCH] 11 --- psdc-ui/src/views/emonitor/wdcgq/index.vue | 40 +- psdc-ui/src/views/system/cl/index.vue | 454 +++++++++++---------- 2 files changed, 267 insertions(+), 227 deletions(-) diff --git a/psdc-ui/src/views/emonitor/wdcgq/index.vue b/psdc-ui/src/views/emonitor/wdcgq/index.vue index 665b856..1067035 100644 --- a/psdc-ui/src/views/emonitor/wdcgq/index.vue +++ b/psdc-ui/src/views/emonitor/wdcgq/index.vue @@ -97,29 +97,37 @@ export default { getWdcgq("温度传感器").then((res)=>{ console.log(res) if(res.data!=null) { - let arr = [] - let brr = [] - let crr = [] - for (let i in res.data) { - if(res.data[i].deviceTemp == null){ - res.data[i].deviceTemp = '-- ' + var brr = [] + data.wdcgqList=[ + { + name:'室内温度', + temp:res.data[0].houseInTemp, + }, + { + name:'室外温度', + temp:res.data[0].houseOutTemp, } - arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp}) - brr.push({ - name: res.data[i].deviceName, + ] + brr.push( + { + name: '室内温度', + type: "line", + data: res.data[0].listTempIn, + itemStyle: { //线条颜色 + color: '#F5901A', + } + }, + { + name: '室外温度', type: "line", - data: res.data[i].temps, + data: res.data[0].listTempOut, itemStyle: { //线条颜色 color: '#F5901A', } - }) - crr.push(res.data[i].times) + } + ) } - // console.log('arr',arr) - data.info = arr data.infos = brr - data.xinfo = crr - } let myChart = echarts.getInstanceByDom(document.getElementById("myEcharts")); if (myChart){ myChart.dispose() diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue index bcfd94d..ca7d24d 100644 --- a/psdc-ui/src/views/system/cl/index.vue +++ b/psdc-ui/src/views/system/cl/index.vue @@ -30,7 +30,7 @@ @@ -69,7 +69,7 @@ - + 步骤名称: 步骤描述: @@ -96,11 +96,11 @@ - 全选 - - - {{item.deviceName}} - + + + + {{it.deviceName}} + {{control.label}} - + - + - + - 是否有限制条件 - - - - - - - 限制设备: - - - - 限制属性: - - 温度 - 进水温度 - 出水温度 + + + + + 步骤名称: + + 步骤描述: + + 是否有限制条件 + + + - 温度数值: - - - - 全选 - - - - {{item.deviceName}} - + + + 限制设备: + + + + 限制属性: + + 温度 + 进水温度 + 出水温度 + + 限制值: + + + + + + + + {{it.deviceName}} + {{control.label}} - - - - - - - - - - - - - - - - - - - - - - - - - + + + + 删除 + + + 添加步骤+ + +