| | |
| | | current (currentTab) { |
| | | if (this.$attrs.value === 'feishui') { |
| | | currentTab = 'EChartsHourWasteWater' |
| | | console.log(currentTab) |
| | | } else { |
| | | currentTab = 'EChartsHour' |
| | | console.log(currentTab) |
| | | } |
| | | return currentTab |
| | | } |
| | |
| | | grid: { // 网格 |
| | | top: '20%', |
| | | left: '7%', |
| | | bottom: '10%' |
| | | bottom: '10%', |
| | | right: '5%' |
| | | }, |
| | | legend: { |
| | | data: legend |
| | |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | // this.$nextTick(() => { |
| | | // this.CreateChart(this.JsonCtarts.id, this.JsonCtarts.title, this.JsonCtarts.legend, this.JsonCtarts.xdata, this.JsonCtarts.ydatas, this.JsonCtarts.yname, this.JsonCtarts.id, this.JsonCtarts.datatype) |
| | | // } |
| | | }, |
| | | mounted () { |
| | | this.formInline.timeEnd = dayjs().format('YYYY-MM-DD HH:mm:ss') |
| | | this.formInline.timeStart = dayjs().subtract(12, 'hour').format('YYYY-MM-DD HH:mm:ss') |
| | |
| | | }], |
| | | series: serLists |
| | | } |
| | | console.log(option) |
| | | // console.log(option) |
| | | this.myChart.setOption(option) |
| | | /* |
| | | this.myChart.on('legendselectchanged', function (params) { |
| | |
| | | center |
| | | v-dialogDrag |
| | | > |
| | | <div class="el-dialog-div" style="height: 260px"> |
| | | <div class="el-dialog-div" style="height: 500px"> |
| | | <public-detailed-list v-bind="$attrs"></public-detailed-list> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | |
| | | <script> |
| | | import PublicDetailedList from '@components/BaseNav/PublicBounced/common/echarts/PublicDetailedList' |
| | | import dayjs from 'dayjs' |
| | | |
| | | export default { |
| | | name: 'ECharts', |
| | |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.formInline.timeEnd = dayjs().format('YYYY-MM-DD HH:mm:ss') |
| | | this.formInline.timeStart = dayjs().subtract(12, 'hour').format('YYYY-MM-DD HH:mm:ss') |
| | | this.onSubmit() |
| | | }, |
| | | updated () { |
| | | this.onSubmit() |
| | | }, |
| | | methods: { |
| | |
| | | grid: { // 网格 |
| | | top: '20%', |
| | | left: '7%', |
| | | bottom: '10%' |
| | | bottom: '10%', |
| | | right: '5%' |
| | | }, |
| | | legend: { |
| | | data: legend, |
| | |
| | | } |
| | | } |
| | | .el-dialog-div { |
| | | //height: 50vh!important; |
| | | overflow: auto; |
| | | //overflow: hidden; |
| | | } |
| | | |
| | | #echarts { |
| | |
| | | } |
| | | }, |
| | | mounted () { |
| | | console.log(this.$attrs.value) |
| | | // console.log(this.$attrs.value) |
| | | if (this.$attrs.value === 'feiqi') { |
| | | this.tableData = this.$attrs.getWasteGasDetails |
| | | // console.log(this.$attrs.getWasteGasDetails) |