| | |
| | | if(n.v.ps&&n.v.ps.value&&typeof n.v.ps.value == 'string'&&n.v.ps.value.includes('检验值')){ |
| | | let arr = n.v.ps.value.split('值') |
| | | if(arr[1] ==dataAcquisitionInfo.frequency){ |
| | | n.v.v = dataAcquisitionInfo[str] |
| | | result = { |
| | | method:'changeInput', |
| | | value:{ |
| | | list:list, |
| | | n:n |
| | | } |
| | | } |
| | | self.postMessage(JSON.stringify(result)) |
| | | }else if(Number(dataAcquisitionInfo.frequency)>num){ |
| | | if(n.v.ps.value.includes(num)){ |
| | | setTimeout(()=>{ |
| | | n.v.v = dataAcquisitionInfo[str] |
| | | result = { |
| | | method:'changeInput', |
| | |
| | | } |
| | | } |
| | | self.postMessage(JSON.stringify(result)) |
| | | },2000) |
| | | }else if(Number(dataAcquisitionInfo.frequency)>num){ |
| | | if(n.v.ps.value.includes(num)){ |
| | | setTimeout(()=>{ |
| | | n.v.v = dataAcquisitionInfo[str] |
| | | result = { |
| | | method:'changeInput', |
| | | value:{ |
| | | list:list, |
| | | n:n |
| | | } |
| | | } |
| | | self.postMessage(JSON.stringify(result)) |
| | | },2000) |
| | | // n.v.v = dataAcquisitionInfo[str] |
| | | // result = { |
| | | // method:'changeInput', |
| | | // value:{ |
| | | // list:list, |
| | | // n:n |
| | | // } |
| | | // } |
| | | // self.postMessage(JSON.stringify(result)) |
| | | // setTimeout(()=>{ |
| | | // this.$delete(n.v,'v') |
| | | // this.$set(n.v,'v',this.dataAcquisitionInfo[str]) |