瀏覽代碼

Merge branch 'feature_20241114_首页日报填写时间自定义'

zhujindu 1 年之前
父節點
當前提交
21100873a0
共有 2 個文件被更改,包括 19 次插入1 次删除
  1. 1 1
      src/views/deviceWithin/taskTips.vue
  2. 18 0
      src/views/home/bottomBtn.vue

+ 1 - 1
src/views/deviceWithin/taskTips.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="tips">
     <span class="examples" v-if="examplePhoto" @click="openExamplesImg(examplePhoto)">示例</span>
-    <span class="phone">
+    <span class="phone" v-if="contactPhone">
       <van-icon name="phone" size="18px" /><a :href="'tel:' + contactPhone" class="call">{{
         contactPhone
       }}</a>

+ 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>