1.用echats绘制图表的时候,遇到的问题是切换tab,图表无法绘制出来。
解决方案,在 <el-tab-pane>里添加lazy
<!-- 6企业渠道统计 -->
<el-row
:gutter="12"
style="margin-top: 20px"
>
<el-col style="width: 1100px">
<el-card shadow="always">
<div
slot="header"
class="clearfix memberTeam"
>
<div class="left">
<span class="teamTitle">企业渠道统计
</span>
</div>
<div class="right">
<el-date-picker
v-model="time_enterprise_channel"
type="month"
value-format="yyyy-MM"
format="yyyy 年 MM 月 "
placeholder="选择月"
style="margin-right: 10px"
@change="changeEnter