|
@@ -6,25 +6,25 @@
|
|
|
﹤加盟商/产品分析
|
|
|
</div>
|
|
|
</div>
|
|
|
- <ItemWrap class="contetn_left-top contetn_lr-item" title="区域销售金额占比">
|
|
|
- <LeftTop />
|
|
|
+ <ItemWrap class="contetn_left-top contetn_lr-item" :title="'区域销售金额占比('+curYear+'年)'">
|
|
|
+ <LeftTop :curYear="curYear" />
|
|
|
</ItemWrap>
|
|
|
- <ItemWrap class="contetn_left-bottom contetn_lr-bitem" title="销售金额TOP15">
|
|
|
- <LeftBottom />
|
|
|
+ <ItemWrap class="contetn_left-bottom contetn_lr-bitem" :title="'销售金额TOP15('+curYear+'年)'">
|
|
|
+ <LeftBottom :curYear="curYear" />
|
|
|
</ItemWrap>
|
|
|
</div>
|
|
|
<div class="contetn_center">
|
|
|
<dv-border-box-8 class="contetn_center-top">
|
|
|
- <CenterTop :totalNums="yearTotalNums" :totalAmount="yearTotalAmount"/>
|
|
|
+ <CenterTop :curYear="curYear" :totalNums="yearTotalNums" :totalAmount="yearTotalAmount"/>
|
|
|
</dv-border-box-8>
|
|
|
- <CenterMap @onData="setYearData" class="contetn_center_topMap" />
|
|
|
- <ItemWrap class="contetn_center-bottom" title="品类销售分布">
|
|
|
- <CenterBottom />
|
|
|
+ <CenterMap :curYear="curYear" @onData="setYearData" class="contetn_center_topMap" />
|
|
|
+ <ItemWrap class="contetn_center-bottom" :title="'品类销售分布('+curYear+'年)'">
|
|
|
+ <CenterBottom :curYear="curYear" />
|
|
|
</ItemWrap>
|
|
|
</div>
|
|
|
<div class="contetn_right">
|
|
|
- <ItemWrap class="contetn_right-top contetn_lrr-item" title="销售趋势分析">
|
|
|
- <RightTop style="height: 94%;" />
|
|
|
+ <ItemWrap class="contetn_right-top contetn_lrr-item" :title="'销售趋势分析('+curYear+'年)'">
|
|
|
+ <RightTop :curYear="curYear" style="height: 94%;" />
|
|
|
</ItemWrap>
|
|
|
<ItemWrap class="contetn_right-bottom contetn_right_bottom" title="本月/周销售">
|
|
|
<RightBottom />
|
|
@@ -67,7 +67,8 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
yearTotalNums: 0,
|
|
|
- yearTotalAmount: 0
|
|
|
+ yearTotalAmount: 0,
|
|
|
+ curYear: ''
|
|
|
}
|
|
|
},
|
|
|
filters: {
|
|
@@ -79,6 +80,8 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.$tv.requestFocus(this.$refs.myDiv)
|
|
|
})
|
|
|
+ const year = location.href.split('?')[1]
|
|
|
+ this.curYear = year ? year.split('=')[1] : new Date().getFullYear()
|
|
|
},
|
|
|
mounted () { },
|
|
|
methods: {
|