Commit 01aa35c2 by 匡雅琴

调整详情页接口

1 parent 378b9032
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
query: { query: {
merchantid: item.merchantid, merchantid: item.merchantid,
merchantName: item.merchantname, merchantName: item.merchantname,
year: this.$store.state.app.solarYear year: this.$store.state.app.boutique.year
} }
}) })
window.open(routeData.href, '_blank') window.open(routeData.href, '_blank')
......
...@@ -74,17 +74,16 @@ export default { ...@@ -74,17 +74,16 @@ export default {
created() { created() {
const { merchantid, year } = this.$route.query const { merchantid, year } = this.$route.query
console.log(merchantid);
this.merchantid = merchantid this.merchantid = merchantid
this.year = year this.getMerchantOverview(merchantid, year)
}, },
methods: { methods: {
init() {
this.getMerchantOverview()
},
// 获取门店的总展业时间&最近订单时间、总产值&本月产值等 // 获取门店的总展业时间&最近订单时间、总产值&本月产值等
async getMerchantOverview() { async getMerchantOverview(merchantid, year) {
const _data = await this.api.boutique.getYears({ MerchantId: this.merchantid, year: this.year }) console.log(this.merchantid);
const _data = await this.api.boutique.getMerchantOverview({ MerchantId: merchantid, year })
const _dataList = _data.data.dataList[0] const _dataList = _data.data.dataList[0]
if (_dataList) { if (_dataList) {
this.boutiqueDetailList.forEach(item => { this.boutiqueDetailList.forEach(item => {
......
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
{ {
name: 'rate', name: 'rate',
type: 'decimal', type: 'decimal',
width: '1.88vw' width: '3vw'
}, },
{ {
name: 'orderNum', name: 'orderNum',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!