This commit is contained in:
Vergil
2020-03-30 17:52:32 +08:00
parent 0c2a3f1513
commit c811f599cd

View File

@@ -33,7 +33,7 @@
<el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 15px" @click="searchData()">查询</el-button> <el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 15px" @click="searchData()">查询</el-button>
</el-card> </el-card>
<el-card> <el-card>
<div id="myChart3" style="width: 100%; height: 520px; margin: auto"/> <div id="myChart" style="width: 100%; height: 520px; margin: auto"/>
</el-card> </el-card>
</div> </div>
</template> </template>
@@ -122,7 +122,7 @@ export default {
}) })
} }
} }
const myChart = _this.$echarts.init(document.getElementById('myChart3')) const myChart = _this.$echarts.init(document.getElementById('myChart'))
myChart.clear() myChart.clear()
myChart.setOption({ myChart.setOption({
title: { title: {