| | |
| | | <div class="detailbtn" @click="dialogVisible = true" >明细表</div> |
| | | </div> |
| | | <div class="boxChart"> |
| | | <div style="width: 5rem;height:1.5rem;" id="popChart" ref="main"> |
| | | </div> |
| | | <div style="width: 5rem;height:1.5rem;" id="echarts" ref="main"></div> |
| | | </div> |
| | | </div> |
| | | <!-- 明细弹框 --> |
| | |
| | | |
| | | <script> |
| | | import PublicDetailedList from '@components/BaseNav/PublicBounced/common/echarts/PublicDetailedList' |
| | | import dayjs from 'dayjs' |
| | | // import dayjs from 'dayjs' |
| | | |
| | | export default { |
| | | name: 'ECharts', |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | value1: '', |
| | | value2: '', |
| | | watchData: [], |
| | | dialogVisible: false, |
| | | myChar: null, |
| | | value: '', |
| | | formInline: { |
| | | region: '', |
| | | timeStart: '2021-04-12 17:00:00', |
| | | timeEnd: '2021-04-13 16:00:00' |
| | | timeStart: '2021-04-12 10:00:00', |
| | | timeEnd: '2021-04-13 09:00:00' |
| | | }, |
| | | myChart: null, |
| | | JsonHourWater: { |
| | |
| | | } |
| | | }, |
| | | 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() |
| | | // 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() |