新问题修改 #13

Merged
clibing merged 1 commits from pc-master into portal 2023-10-13 07:06:00 +00:00
4 changed files with 18 additions and 13 deletions

View File

@ -16,16 +16,16 @@ export function realTimeLine(id,data) {
var data10=[]//1#管道压力
data.forEach((el,index)=>{
Xdata.push(el.time)
data1.push(el.value['目标水肥PH'])
data2.push(el.value['目标水肥EC'])
data3.push(el.value['1#平均水肥EC'])
data4.push(el.value['1#平均水肥PH'])
data5.push(el.value['1#水肥PH'])
data6.push(el.value['2#水肥PH'])
data7.push(el.value['1#水肥EC'])
data8.push(el.value['2#水肥EC'])
data10.push(el.value['1#管道压力'])
data9.push(el.value['1#空气温度'])
data1.push(el.value['目标水肥PH']?el.value['目标水肥PH']:0)
data2.push(el.value['目标水肥EC']?el.value['目标水肥EC']:0)
data3.push(el.value['1#平均水肥EC']?el.value['1#平均水肥EC']:0)
data4.push(el.value['1#平均水肥PH']?el.value['1#平均水肥PH']:0)
data5.push(el.value['1#水肥PH']?el.value['1#水肥PH']:0)
data6.push(el.value['2#水肥PH']?el.value['2#水肥PH']:0)
data7.push(el.value['1#水肥EC']?el.value['1#水肥EC']:0)
data8.push(el.value['2#水肥EC']?el.value['2#水肥EC']:0)
data10.push(el.value['1#管道压力']?el.value['1#管道压力']:0)
data9.push(el.value['1#空气温度']?el.value['1#空气温度']:0)
})
@ -411,7 +411,7 @@ export function realTimeLine(id,data) {
},
{
name: '1#管道压力',
data: data9,
data: data10,
type: "line",
symbol: "circle",
smooth: true,

View File

@ -111,6 +111,7 @@ export default {
width: 100%;
height: 100%;
min-height: 900px;
min-width: 1553px;
overflow: auto;
background: url(../assets/image/background.jpg) no-repeat;
background-size: 1920px 1080px;

View File

@ -212,11 +212,14 @@ export default {
setTimeout(() => {
that.dataInit();
}, 0);
//input
this.$nextTick(() => {
let inputList = document.querySelectorAll('input');
for (let index = 0; index < inputList.length; index++) {
inputList[index].onfocus = this.selectValue;//input
}
});
//input
},
methods: {
openType(index){

View File

@ -571,6 +571,7 @@ export default {
return i;
},
getReg() {
var store = this.$store.state
var deviceDetail = store.equipmentList[store.equipmentIndex - 1]
//
var data1 = {