修改控制器数据上传
parent
53f0908869
commit
0aeb0251c5
|
@ -112,20 +112,17 @@ export default {
|
||||||
//平均值数据
|
//平均值数据
|
||||||
actList2: [],
|
actList2: [],
|
||||||
actList2New: [],
|
actList2New: [],
|
||||||
list2: ['目标水肥PH数据',
|
list2: ['1#平均温度传感器',
|
||||||
'目标水肥EC数据',
|
'2#平均温度传感器',
|
||||||
'平均水肥PH数据',
|
'1#平均湿度传感器',
|
||||||
'平均水肥EC数据',
|
'2#平均湿度传感器',
|
||||||
'1#水肥PH数据',
|
'1#平均光照传感器',
|
||||||
'1#水肥EC数据',
|
'1#平均CO2传感器',
|
||||||
'2#水肥PH数据',
|
'1#平均土温传感器',
|
||||||
'2#水肥EC数据',
|
'1#平均土湿传感器',
|
||||||
'1#通道传感器数据',
|
'1#平均PH传感器',
|
||||||
'2#通道传感器数据',
|
'1#平均EC传感器',
|
||||||
'3#通道传感器数据',
|
'1#水温传感器',],
|
||||||
'4#通道传感器数据',
|
|
||||||
'5#通道传感器数据',
|
|
||||||
'6#通道传感器数据'],
|
|
||||||
//目标值数据
|
//目标值数据
|
||||||
actList3: [],
|
actList3: [],
|
||||||
actList3New: [],
|
actList3New: [],
|
||||||
|
@ -222,7 +219,7 @@ export default {
|
||||||
getAct2() {
|
getAct2() {
|
||||||
this.actList2=[]
|
this.actList2=[]
|
||||||
var num = this.inputData['21503']
|
var num = this.inputData['21503']
|
||||||
var num2 = this.padString(num.toString(2), 14)
|
var num2 = this.padString(num.toString(2), 11)
|
||||||
this.actList2New=num2.split("")
|
this.actList2New=num2.split("")
|
||||||
this.actList2New.forEach((el,index)=>{
|
this.actList2New.forEach((el,index)=>{
|
||||||
if(el=='1'){
|
if(el=='1'){
|
||||||
|
|
Loading…
Reference in New Issue