1# 2#调换位置
parent
226f5f358f
commit
dd5db517d8
|
@ -61,7 +61,7 @@ export default new Vuex.Store({
|
||||||
{ label: '土壤氮含量', value: 41, countType: 0,unit:'mg/kg' },
|
{ label: '土壤氮含量', value: 41, countType: 0,unit:'mg/kg' },
|
||||||
{ label: '土壤磷含量', value: 42, countType: 0,unit:'mg/kg' },
|
{ label: '土壤磷含量', value: 42, countType: 0,unit:'mg/kg' },
|
||||||
{ label: '土壤钾含量', value: 43, countType: 0,unit:'mg/kg' },
|
{ label: '土壤钾含量', value: 43, countType: 0,unit:'mg/kg' },
|
||||||
{ label: '臭氧', value: 44, countType: 0,unit:'ppm' },
|
{ label: '管道压力', value: 44, countType: 0,unit:'Kpa' },
|
||||||
{ label: '一氧化碳', value: 45, countType: 0,unit:'ppm' },
|
{ label: '一氧化碳', value: 45, countType: 0,unit:'ppm' },
|
||||||
{ label: '氨气', value: 46, countType: 0,unit:'ppm' },
|
{ label: '氨气', value: 46, countType: 0,unit:'ppm' },
|
||||||
{ label: '硫化氢', value: 47, countType: 0,unit:'ppm' },
|
{ label: '硫化氢', value: 47, countType: 0,unit:'ppm' },
|
||||||
|
|
|
@ -479,6 +479,7 @@ export default {
|
||||||
var number = this.padString(this.inputData['29'].toString(2), 14)
|
var number = this.padString(this.inputData['29'].toString(2), 14)
|
||||||
var index = 6
|
var index = 6
|
||||||
var typeNumber = -1
|
var typeNumber = -1
|
||||||
|
|
||||||
for (var i = 0; i < index; i++) {
|
for (var i = 0; i < index; i++) {
|
||||||
if (Number(number[i])) {
|
if (Number(number[i])) {
|
||||||
typeNumber = i
|
typeNumber = i
|
||||||
|
@ -489,9 +490,15 @@ export default {
|
||||||
var statusIndex = 8
|
var statusIndex = 8
|
||||||
for (var j = 0; j < statusIndex; j++) {
|
for (var j = 0; j < statusIndex; j++) {
|
||||||
if (Number(number[number.length-1 - j])) {
|
if (Number(number[number.length-1 - j])) {
|
||||||
|
if(j=0){
|
||||||
|
this.right2Index.push(1)
|
||||||
|
}else if(j=1){
|
||||||
|
this.right2Index.push(0)
|
||||||
|
}else{
|
||||||
this.right2Index.push(j)
|
this.right2Index.push(j)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//进水泵和出水泵状态
|
//进水泵和出水泵状态
|
||||||
getData30() {
|
getData30() {
|
||||||
|
|
Loading…
Reference in New Issue