From 2891aa37d99bc458a2ce501cb4ea185b363744f4 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Tue, 20 Jul 2021 18:00:46 +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