Browse Source

首页日报填写时间自定义

zhujindu 1 year ago
parent
commit
361d49e6d6
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/views/home/bottomBtn.vue

+ 18 - 0
src/views/home/bottomBtn.vue

@@ -164,17 +164,35 @@ export default {
       });
       });
     },
     },
     dailyLink() {
     dailyLink() {
+      if (!this.isAllow()) return;
       this.$router.push('/daily');
       this.$router.push('/daily');
     },
     },
     weeklyLink() {
     weeklyLink() {
+      if (!this.isAllow()) return;
       this.$router.push('/weekly');
       this.$router.push('/weekly');
     },
     },
     doubleWeeklyLink() {
     doubleWeeklyLink() {
+      if (!this.isAllow()) return;
       this.$router.push('/doubleWeekly');
       this.$router.push('/doubleWeekly');
     },
     },
     dailyLinks() {
     dailyLinks() {
+      if (!this.isAllow()) return;
       this.$router.push('/myHistoricalDaily');
       this.$router.push('/myHistoricalDaily');
     },
     },
+    // 是否允许填写汇报
+    isAllow() {
+      let reportRemark = this.reportInfoData.reportRemark;
+      if (reportRemark) {
+        this.$dialog
+          .alert({
+            message: reportRemark,
+          })
+          .then(() => {});
+        return false;
+      } else {
+        return true;
+      }
+    },
   },
   },
 };
 };
 </script>
 </script>