zhujindu 5 mesiacov pred
rodič
commit
076e0fd586
1 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 7 7
      src/views/signApproval/index.vue

+ 7 - 7
src/views/signApproval/index.vue

@@ -205,7 +205,7 @@ export default {
   name: 'MyHistoricalWeekly',
   data() {
     return {
-      isHandle: '',
+      isHandle: '1',
       disabled: false,
       pageNum: 1,
       pageSize: 10,
@@ -227,13 +227,13 @@ export default {
   },
   activated() {
     // userDeptLevel用户部门等级字段,0-总部,1-公司,2-大区,3-销售部,4-业务员
-    this.userDeptLevel = localStorage.getItem('userDeptLevel');
-    if (this.userDeptLevel == '4') {
-      this.$nextTick(() => {
+    this.$nextTick(() => {
+      this.userDeptLevel = localStorage.getItem('userDeptLevel');
+      if (this.userDeptLevel == '4') {
         this.isHandle = '2';
-        this.tabChange();
-      });
-    }
+      }
+      this.tabChange();
+    });
     this.radio = [];
     getStoreTypeList({}).then((res) => {
       this.storeTypeList = res.data;