| | |
| | | mounted() { |
| | | this.getStationConf() |
| | | // this.changeProducts(this.productCode) |
| | | this.changeProducts("2V91") |
| | | // this.changeProducts("2V91") |
| | | this.getNowTime() |
| | | // this.autoShow() |
| | | }, |
| | |
| | | listStationConf(queryParams).then(response => { |
| | | this.locationName = response.rows[0].processesName |
| | | this.locationCode = response.rows[0].processesCode |
| | | console.log('llllll',this.locationCode) |
| | | this.changeProducts("2V91") |
| | | }); |
| | | |
| | | }); |
| | | |
| | | }, |
| | | //获取当前时间 |
| | | getNowTime () { |
| | |
| | | setImg(index) { |
| | | this.address = this.tableData[index].address |
| | | this.src = this.tableData[index].img |
| | | }, |
| | | cleanImg(){ |
| | | this.address = '' |
| | | this.src = '' |
| | | }, |
| | | setBg() { |
| | | if (document.getElementById('outerDiv' + (this.tableData.length - 1)).style.background === 'yellow') { |
| | |
| | | }, |
| | | changeProducts(val){ |
| | | |
| | | this.getStationConf() |
| | | |
| | | console.log("------更换图片",val) |
| | | console.log("------目录==============",this.tableData) |
| | | console.log("locationCode",this.locationCode) |
| | | this.productCode = val |
| | | const _this = this |
| | | |
| | |
| | | this.queryParams.processesCode = this.locationCode |
| | | listFormulaChild(this.queryParams).then(response => { |
| | | this.tableData = []; |
| | | this.cleanImg() |
| | | this.tableData = response.rows; |
| | | this.$nextTick(() => { |
| | | clearInterval(this.intervalId); |