Commit 6e681226 by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents 867f9fe7 f922bc54
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
this.openMessage('获取采购进度占比失败') this.openMessage('获取采购进度占比失败')
return return
} }
this.progressData = res.data.dataList || [] this.progressData = res.data.dataList.slice(0, 3) || []
}) })
} }
} }
......
...@@ -59,21 +59,25 @@ export default { ...@@ -59,21 +59,25 @@ export default {
}, },
shopmallLegend: [ shopmallLegend: [
{ {
name: 'goodsname' name: 'goodsname',
width: '7vw'
}, },
{ {
name: 'rate', name: 'rate',
type: 'decimal' type: 'decimal',
width: '3vw'
}, },
{ {
name: 'purchaseamount', name: 'purchaseamount',
hasIcon: '¥', hasIcon: '¥',
type: 'number' type: 'number',
width: '5vw'
}, },
{ {
name: 'averprice', name: 'averprice',
hasIcon: '均价¥', hasIcon: '均价¥',
type: 'number' type: 'number',
width: '5vw'
} }
], ],
// 自采饼图结构 // 自采饼图结构
...@@ -85,21 +89,25 @@ export default { ...@@ -85,21 +89,25 @@ export default {
}, },
selfPickLegend: [ selfPickLegend: [
{ {
name: 'goodsname' name: 'goodsname',
width: '7vw'
}, },
{ {
name: 'rate', name: 'rate',
type: 'decimal' type: 'decimal',
width: '3vw'
}, },
{ {
name: 'purchaseamount', name: 'purchaseamount',
hasIcon: '¥', hasIcon: '¥',
type: 'number' type: 'number',
width: '5vw'
}, },
{ {
name: 'averprice', name: 'averprice',
hasIcon: '均价¥', hasIcon: '均价¥',
type: 'number' type: 'number',
width: '5vw'
} }
] ]
} }
......
...@@ -112,12 +112,11 @@ export default { ...@@ -112,12 +112,11 @@ export default {
methods: { methods: {
async init() { async init() {
this.tabObject = this.$route.query this.tabObject = this.$route.query
const { year } = this.$route.query const { merchantid, purchaseType, year } = this.$route.query
this.defaultYear = year
const { merchantid, purchaseType } = this.$route.query
const _merchantList = await this.getAllRanking(purchaseType) const _merchantList = await this.getAllRanking(purchaseType)
this.merchantList = _merchantList this.merchantList = _merchantList
this.purchaseType = purchaseType this.purchaseType = purchaseType
this.defaultYear = year
this.getMerchantGoodsRatio(merchantid) this.getMerchantGoodsRatio(merchantid)
this.getMerchantPurchase(merchantid) this.getMerchantPurchase(merchantid)
this.getMerchantPurchaseTrend(merchantid) this.getMerchantPurchaseTrend(merchantid)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!