Commit 969fa8ed by 匡雅琴

修改获取门店接口

1 parent f6f2e7ed
...@@ -67,17 +67,17 @@ export default { ...@@ -67,17 +67,17 @@ export default {
...mapActions(['setBoutiqueMerchantid']), ...mapActions(['setBoutiqueMerchantid']),
async init() { async init() {
this.tabObject = this.$route.query this.tabObject = this.$route.query
const { merchantName, year } = this.$route.query const { year } = this.$route.query
this.year = year this.year = year
// 获取门店列表 // 获取门店列表
const _merchantList = await this.getMerchant(merchantName) const _merchantList = await this.getMerchant()
this.merchantList = _merchantList this.merchantList = _merchantList
}, },
// 获取门店列表 // 获取门店列表
getMerchant(merchantName) { getMerchant() {
return new Promise(resolve => { return new Promise(resolve => {
let _merchantList let _merchantList
this.api.boutique.getMerchant({ merchantName }).then(res => { this.api.boutique.getMerchant().then(res => {
if (!res.code === '0') { if (!res.code === '0') {
this.openMessage('获取门店列表失败') this.openMessage('获取门店列表失败')
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!