Преглед на файлове

首页增加提示类tab,B类指标页优化,我的-增加业务员日常工作统计

zhujindu преди 1 година
родител
ревизия
dec327ff4b
променени са 2 файла, в които са добавени 24 реда и са изтрити 3 реда
  1. 23 2
      src/views/home/hintTabPage/hintDetail.vue
  2. 1 1
      src/views/home/hintTabPage/index.vue

+ 23 - 2
src/views/home/hintTabPage/hintDetail.vue

@@ -98,6 +98,10 @@ export default {
           title: '建店',
           name: 'createStore',
         },
+        // {
+        //   title: '色卡',
+        //   name: 'pantone',
+        // },
       ],
       activePantoneTabName: '', //色卡tabName
       tabsItemPantone: {}, //色卡tabItem
@@ -248,11 +252,17 @@ export default {
       },
       immediate: true,
     },
+    '$route.query.fromType': {
+      handler(newVal) {
+        // debugger;
+        if (newVal) this.setTabsItem();
+      },
+      immediate: true,
+    },
   },
   activated() {
     this.empLevel = this.userInfo.empLevel;
     this.firstLabel = this.empLevel == '1' ? '组织名称/大区主管' : '组织名称/销售部主管';
-    this.setTabsItem();
     this.fromType = this.$route.query.fromType; // fromType: 'noVisit':未拜访; 'createStore':建店; 'pantone':色卡
     // this.tableColumn = this[this.fromType]; //初始化表格头
     // this.activeTabName = this.fromType;
@@ -266,11 +276,22 @@ export default {
       return this.fromType == 'pantone' ? row['id'] : row['onlyId'];
     },
     setTabsItem() {
-      if (this.empLevel == '2')
+      this.tabsItem = [
+        {
+          title: '未拜访',
+          name: 'noVisit',
+        },
+        {
+          title: '建店',
+          name: 'createStore',
+        },
+      ];
+      if (this.empLevel == '1' || this.empLevel == '2') {
         this.tabsItem.push({
           title: '色卡',
           name: 'pantone',
         });
+      }
     },
     initData(resolve, tree) {
       this.toggleIndex = this.toggleIndex++;

+ 1 - 1
src/views/home/hintTabPage/index.vue

@@ -567,7 +567,7 @@ export default {
           }
           .right {
             display: flex;
-            width: 40%;
+            width: 45%;
             justify-content: left;
             .valueIsClick {
               text-decoration: underline;