Browse Source

日报,周报填写添加应用服务平台

zhujindu 11 months ago
parent
commit
5ef2b6564c
1 changed files with 20 additions and 2 deletions
  1. 20 2
      src/views/week/dailyApprovalList.vue

+ 20 - 2
src/views/week/dailyApprovalList.vue

@@ -28,7 +28,7 @@
             <div class="cardContent">
               <div class="title" v-if="type == 'approvalPending'">
                 <!-- reportType: 1日报;2周报;3半月报 -->
-                <p class="textLeft" v-if="item.reportType == 1">
+                <!-- <p class="textLeft" v-if="item.reportType == 1">
                   {{ item.nickName }}的{{ item.reportTypeStr }}
                 </p>
                 <p class="textLeft" v-if="item.reportType == 2">
@@ -36,7 +36,8 @@
                 </p>
                 <p class="textLeft" v-if="item.reportType == 3">
                   {{ item.dqName }}的{{ item.reportTypeStr }}
-                </p>
+                </p> -->
+                <p class="textLeft">{{ filterName(item) }}的{{ item.reportTypeStr }}</p>
                 <p class="textRight">审批</p>
               </div>
               <div class="title" v-if="type == 'approvalSuccess'">
@@ -130,6 +131,23 @@ export default {
     },
   },
   methods: {
+    filterName(item) {
+      // <!-- reportType: 1日报;2周报;3半月报 -->
+      let name = '';
+      // 应用服务平台
+      if (item.postType == 'DIY') {
+        if (item.reportType == 1) {
+          name = item.nickName;
+        } else if (item.reportType == 2) {
+          name = item.deptName;
+        } else if (item.reportType == 3) {
+          name = item.dqName;
+        }
+      } else {
+        name = item.nickName;
+      }
+      return name;
+    },
     onLoad() {
       this.approveList();
     },