Przeglądaj źródła

首页日报填写时间自定义

zhujindu 1 rok temu
rodzic
commit
361d49e6d6
1 zmienionych plików z 18 dodań i 0 usunięć
  1. 18 0
      src/views/home/bottomBtn.vue

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

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