Explorar o código

feature_20260228_周报半月报动态配置

zhujindu hai 2 días
pai
achega
0426201af6
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  1. 7 4
      src/views/home/bottomBtn.vue

+ 7 - 4
src/views/home/bottomBtn.vue

@@ -54,7 +54,7 @@
     </div>
     <div class="contentborder">
       <van-button
-        v-if="powerGrade == 3 && showButton"
+        v-if="reportType == 3 && showButton"
         class="Btn1"
         plain
         size="small"
@@ -63,7 +63,7 @@
         >填写半月报</van-button
       >
       <van-button
-        v-if="powerGrade == 2 && showButton"
+        v-if="reportType == 2 && showButton"
         class="Btn1"
         plain
         size="small"
@@ -72,7 +72,7 @@
         >填写周报</van-button
       >
       <van-button
-        v-if="powerGrade == 1 && showButton"
+        v-if="reportType == 1 && showButton"
         class="Btn1"
         plain
         size="small"
@@ -81,7 +81,7 @@
         >填写日报</van-button
       >
       <van-button
-        v-if="powerGrade < 4 && isCommit"
+        v-if="reportType < 4 && isCommit"
         class="Btn1"
         plain
         size="small"
@@ -127,6 +127,7 @@ export default {
       type: '-1',
       ownerBirthdayBoxFlag: false,
       ownerBirthdayReminds: null,
+      reportType: null,
     };
   },
   activated() {
@@ -153,11 +154,13 @@ export default {
           localStorage.setItem('jzType', res.data.jzType);
           localStorage.setItem('customerVisits', res.data.customerManagerVisits);
           localStorage.setItem('postType', res.data.postType);
+          localStorage.setItem('reportType', res.data.reportType);
           this.proccessPendingNum = res.data.proccessPendingNum;
           this.reportInfoData = res.data;
           this.approvalButton = res.data.approvalButton;
           this.powerGrade = res.data.positionId;
           this.showButton = res.data.showButton;
+          this.reportType = res.data.reportType;
           if (res.data.reportTargetAll != null) {
             this.updataTime = res.data.reportTargetAll.updateTime;
           }