新问题修改 #13
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -212,11 +212,14 @@ export default {
|
|||
setTimeout(() => {
|
||||
that.dataInit();
|
||||
}, 0);
|
||||
//input获取焦点后全选
|
||||
let inputList = document.querySelectorAll('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){
|
||||
|
|
|
@ -571,6 +571,7 @@ export default {
|
|||
return i;
|
||||
},
|
||||
getReg() {
|
||||
var store = this.$store.state
|
||||
var deviceDetail = store.equipmentList[store.equipmentIndex - 1]
|
||||
//获取传感器种类
|
||||
var data1 = {
|
||||
|
|
Loading…
Reference in New Issue