| | |
| | | <el-radio class="title_left_ndmm" :label="4" >北位移</el-radio> |
| | | <el-radio class="title_left_tdmm" :label="8" >天位移</el-radio> |
| | | </el-radio-group> --> |
| | | |
| | | <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''" |
| | | style="position: absolute;top: 70px;" /> |
| | | <div class="chart-container" style="position: absolute;top: 70px;height: 870px; overflow-y: auto;"> |
| | | <BarChart :chart-data="barChartData" width="530px" height="200%" v-if="barChartData.tagid != ''" /> |
| | | </div> |
| | | <!-- <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''" |
| | | style="position: absolute;top: 70px;overflow-y: auto;" /> --> |
| | | <!-- <BarChart /> --> |
| | | <!-- <span class="title_left_edmm">东位移</span> |
| | | <span >北位移</span> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | height:'900px', |
| | | month: '', |
| | | barChartData: { |
| | | tagid: '', |
| | |
| | | |
| | | }, |
| | | created() { |
| | | console.log(333333333); |
| | | |
| | | this.fetchData() |
| | | this.monitordata() |
| | | }, |
| | |
| | | this.timeFn(); |
| | | const params = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') }; |
| | | alldevice(params).then(response => { |
| | | console.log(response.data.dataList); |
| | | |
| | | this.initMap(response.data.dataList, response.data.view) |
| | | }) |
| | | |
| | |
| | | this.listLoading = true |
| | | const params1 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') }; |
| | | getEquipmentmonitor(params1).then(response => { |
| | | console.log(4444444); |
| | | this.list = response.data |
| | | console.log(response); |
| | | this.listLoading = false |
| | | |
| | | }) |
| | | const params2 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') }; |
| | | getEquipmenttwo(params2).then(response => { |
| | | console.log(5555555555); |
| | | this.processBarModel = [] |
| | | // this.list = response.data |
| | | var json = { |
| | | edmm: [], |
| | | ndmm: [], |
| | |
| | | json.winmax = response.data[index].winmax |
| | | json.winmin = response.data[index].winmin |
| | | } |
| | | this.barChartData = json |
| | | console.log(response); |
| | | // setTimeout(() => { |
| | | // this.height= '100%' |
| | | this.barChartData = json |
| | | // }, 3000); |
| | | setTimeout(() => { |
| | | this.height= '100%' |
| | | // this.barChartData = json |
| | | }, 3000); |
| | | |
| | | }) |
| | | // getList(this.listQuery).then(response => { |
| | |
| | | //获取当前年月日 |
| | | const dateYear = formatTime1(new Date(), "yyyy-MM-dd"); |
| | | const params = { date1: dateYear, date2: newDate, username: localStorage.getItem('username') || '', tagid: scope.row.tagid }; |
| | | console.log(params); |
| | | |
| | | handlechartupdate3(params).then(response => { |
| | | this.lineChartData = response.data |
| | | console.log(response.data); |
| | | this.dialogVisible = true |
| | | }) |
| | | this.resetTemp() |