Browse Source

问题修复

master
huxinglu 4 years ago
parent
commit
6559ff125e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/views/water/trend/lineFrom.vue

+ 4
- 1
src/views/water/trend/lineFrom.vue View File

@@ -1,5 +1,5 @@
<template>
<el-dialog center :visible.sync="visible"
<el-dialog center :visible.sync="visible" :before-close="handleClose"
title="趋势图">
<div class="line" id="line"></div>
<span slot="footer" class="dialog-footer">
@@ -42,6 +42,9 @@
this.getDetail()
},
methods: {
handleClose(){
this.$emit('handleClose')
},
getDetail() {
api.getDetail(this.id).then(res => {
const chart = new G2.Chart({

Loading…
Cancel
Save