From fb9591ea38b263afe9d051168e34aa03028494eb Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang Date: Tue, 18 May 2021 10:03:06 +0800 Subject: [PATCH] 商户添加店员 --- src/views/mine/stores/stores.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/mine/stores/stores.vue b/src/views/mine/stores/stores.vue index e5f00d7..4d12a22 100644 --- a/src/views/mine/stores/stores.vue +++ b/src/views/mine/stores/stores.vue @@ -43,6 +43,7 @@ </template> <script> +import { mapState } from 'vuex'; export default { name: "stores", data() { @@ -55,14 +56,16 @@ merId:'', } }, - + computed:{ + ...mapState(['userinfo']) + }, created(){ - this.merId = this.$route.query.merId; + this.merId = this.$route.query.merId?this.$route.query.merId:this.userinfo.orgId; this.init(); }, methods: { init(){ - console.log("merId:"+this.merId); + console.log("merId:"+this.merId); this.loading = true this.$api.storeStoreList({ searchKey:this.value, -- Gitblit v1.8.0