| | |
| | | this.formInline.timeStart = dayjs().subtract(1, 'minute').format('YYYY-MM-DD HH:mm:ss') |
| | | // console.log(this.formInline.timeStart) |
| | | // console.log(this.JsonRealWasteWater.ydatas[0].data[0].value[0]) |
| | | this.DrawRealTimeDateChart(this.JsonRealWasteWater.id, this.JsonRealWasteWater.title, this.JsonRealWasteWater.legend, this.JsonRealWasteWater.ydatas, this.JsonRealWasteWater.yname) |
| | | }, |
| | | updated () { |
| | | this.DrawRealTimeDateChart() |
| | | }, |
| | | methods: { |
| | | onSubmit () { |
| | | this.DrawRealTimeDateChart(this.JsonRealWasteWater.id, this.JsonRealWasteWater.title, this.JsonRealWasteWater.legend, this.JsonRealWasteWater.ydatas, this.JsonRealWasteWater.yname) |
| | | this.DrawRealTimeDateChart() |
| | | }, |
| | | // 画废水折线图--实时数据 |
| | | DrawRealTimeDateChart (id, title, legend, ydatas, yname) { |
| | | DrawRealTimeDateChart () { |
| | | var legend = this.JsonRealWasteWater.legend |
| | | var ydatas = this.JsonRealWasteWater.ydatas |
| | | var yname = this.JsonRealWasteWater.yname |
| | | this.RealTimeChart = this.$echarts.init(this.$refs.main) |
| | | var serLists = [] |
| | | for (var i = 0; i < ydatas.length; i++) { |