Explorar el Código

增加判断角色显示不同的页面

liubei@c-top.com.cn hace 3 años
padre
commit
3cdcc85e1b

+ 11 - 3
src/views/modules/stockWatch/modules/new-keepManage/new-keepManage.vue

@@ -9,6 +9,7 @@
 <script>
     import newKeepManage from './group-keepManage'
     import newPersonal from './personal-keepManage.vue'
+    import { mapGetters, mapMutations, mapActions } from 'vuex'
     export default {
         components:{
             newKeepManage,
@@ -20,12 +21,19 @@
             }
         },
         mounted() {
-           
+            this.getRoleData();
             
         },
         methods: {
-            
-        
+            ...mapGetters(['userInfo']),
+        getRoleData(){
+            if (this.userInfo().roleName.indexOf('运营经理') != -1) {
+                this.disabledMange = true
+            }else{
+                this.disabledMange = false
+            }
+            // console.log(this.userInfo());
+        },
         },
     }