Commit e5d13955 by 匡雅琴

折线图问题解决

1 parent 7acd5014
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="marketing-left"> <div class="marketing-left">
<PullDownSelect ref="leftDownSelect" :selectList="selectList" @selectVal="selectVal"></PullDownSelect> <PullDownSelect ref="leftDownSelect" :selectList="selectList" @selectVal="selectVal"></PullDownSelect>
<inner-tab class="inner-tab" v-if="tabShow" :list="tabList" :width="6.4" :itemPadding="0.5" @changeTab="changeTab"></inner-tab> <inner-tab class="inner-tab" v-if="tabShow" :list="tabList" :width="6.4" :itemPadding="0.5" @changeTab="changeTab"></inner-tab>
<BarChart v-show="chartShow" ref="trendChartRef" domId="trendChart" :label="'statMonth'" :height="'22vh'" :colorList="colorList" :valueName="valueName"></BarChart> <BarChart v-if="chartShow" ref="trendChartRef" domId="trendChart" :label="'statMonth'" :height="'18vh'" :colorList="colorList" :valueName="valueName"></BarChart>
<LineChart v-show="!chartShow" ref="monthIncomeLineChartRef" domId="monthIncomeLineChart" :height="'18vh'" :valName="valName"></LineChart> <LineChart v-if="!chartShow" ref="monthIncomeLineChartRef" domId="monthIncomeLineChart" :height="'18vh'" :valName="valName"></LineChart>
</div> </div>
</template> </template>
...@@ -123,10 +123,12 @@ export default { ...@@ -123,10 +123,12 @@ export default {
}) })
}, },
output: () => { output: () => {
this.valName = 'output' this.valName = 'orderNum'
this.chartShow = false this.chartShow = false
this.tabShow = true this.tabShow = true
this.$nextTick(() => {
this.$refs.monthIncomeLineChartRef.drawLine(this.marketingTrendList) this.$refs.monthIncomeLineChartRef.drawLine(this.marketingTrendList)
})
}, },
activityNum: () => { activityNum: () => {
this.chartShow = true this.chartShow = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!