Sfoglia il codice sorgente

喜贵首页判断

caojunjie 3 anni fa
parent
commit
c78c977b05

+ 12 - 11
src/views/wel/home/landTransportation/components/quick-launch.vue

@@ -102,11 +102,6 @@ export default {
   },
   mounted() {
     if (this.roleName.indexOf('平台') !== -1){
-      if (this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('业务员') !== -1){
-        // 委托、台账
-        this.entrust = true //委托
-        this.sBook = true //台账
-      }
       if (this.roleName.indexOf('总调度') !== -1 || this.roleName.indexOf('分管调度') !== -1){
         // 调度、台账、到期提醒
         this.dispatch = true //调度
@@ -123,12 +118,18 @@ export default {
       this.track = true
     }
     if (this.roleName.indexOf('客户') !== -1){
-      this.entrust = true
-      this.dispatch = false
-      this.sBook = false
-      this.reminder = false
-      this.sendACar = false
-      this.track = false
+      if (this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('业务员') !== -1){
+        // 委托、台账
+        this.entrust = true //委托
+        this.sBook = true //台账
+      }else {
+        this.entrust = true
+        this.dispatch = false
+        this.sBook = false
+        this.reminder = false
+        this.sendACar = false
+        this.track = false
+      }
     }
     if (this.roleName.indexOf('车队') !== -1){
       this.entrust = false