Commit c2d70e6f by 匡雅琴

优化代码

1 parent dcfb3847
...@@ -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!