@@ -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({ |