Przeglądaj źródła

流程审批优化

zhujindu 5 miesięcy temu
rodzic
commit
efc8afb894
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      src/views/signApproval/index.vue

+ 5 - 3
src/views/signApproval/index.vue

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