| | |
| | | <el-button size="mini" round @click="dialogVisible = true">明细表</el-button> |
| | | <el-dialog :visible.sync="dialogVisible" |
| | | :append-to-body="true" |
| | | width="66%" |
| | | :title="this.$attrs.getWasteGasDetails[0].OnLineMonEmissPointName" |
| | | width="68%" |
| | | center |
| | | v-dialogDrag |
| | | > |
| | | <div class="el-dialog-div" style="height: 600px"> |
| | | <div class="el-dialog-div" style="height: 500px"> |
| | | <public-detailed-list v-bind="$attrs"></public-detailed-list> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | dialogVisible: false |
| | | } |
| | | }, |
| | | methods: { |
| | | drawChart: function () { |
| | | const myChart = this.$echarts.init(this.$refs.main) |
| | | const option = { |
| | | watchData: [], |
| | | dialogVisible: false, |
| | | options: { |
| | | title: { |
| | | // text: '折线图堆叠' |
| | | // text: '折线图堆叠' |
| | | }, |
| | | color: ['#5470c6', '#91CC75', '#EE6666', '#FF0087'], |
| | | tooltip: { |
| | |
| | | color: '#00d0f9' |
| | | } |
| | | }] |
| | | // pageTextStyle: { |
| | | // color: '#fff' |
| | | // } |
| | | // pageTextStyle: { |
| | | // color: '#fff' |
| | | // } |
| | | }, |
| | | grid: { |
| | | left: '3%', |
| | |
| | | } |
| | | ] |
| | | } |
| | | myChart.setOption(option) |
| | | } |
| | | }, |
| | | methods: { |
| | | drawChart: function () { |
| | | const myChart = this.$echarts.init(this.$refs.main) |
| | | // const option = {} |
| | | myChart.setOption(this.options) |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.drawChart() |
| | | const dataWatch = JSON.parse(JSON.stringify(this.$attrs)) |
| | | console.log(dataWatch) |
| | | } |
| | | } |
| | | </script> |