Browse Source

日报分享

zhujindu 5 months ago
parent
commit
277c540dac
1 changed files with 25 additions and 22 deletions
  1. 25 22
      src/views/week/daily.vue

+ 25 - 22
src/views/week/daily.vue

@@ -747,29 +747,32 @@ export default {
             loading1.clear();
             loading1.clear();
             this.isclick = true;
             this.isclick = true;
             if (res.code == 200) {
             if (res.code == 200) {
-              this.$dialog
-                .alert({
-                  message: '已提交,是否分享',
-                  showCancelButton: true,
-                  confirmButtonText: '分享',
-                  cancelButtonText: '返回首页',
-                  className: 'dailyShareBtn',
-                })
-                .then(() => {
-                  // 跳转历史汇报详情 分享汇报
-                  this.$router.replace({
-                    path: 'dailyDetails',
-                    query: { reportId: res.data, source: 'daily' },
+              if (this.reportTarget.reportPostType == 'fx') {
+                this.$dialog
+                  .alert({
+                    message: '已提交,是否分享',
+                    showCancelButton: true,
+                    confirmButtonText: '分享',
+                    cancelButtonText: '返回首页',
+                    className: 'dailyShareBtn',
+                  })
+                  .then(() => {
+                    // 跳转历史汇报详情 分享汇报
+                    this.$router.replace({
+                      path: 'dailyDetails',
+                      query: { reportId: res.data, source: 'daily' },
+                    });
+                  })
+                  .catch(() => {
+                    if (this.$route.query.reportId != undefined) {
+                      window.location.replace(window.location.origin + '/mobile/myHistoricalDaily');
+                    } else {
+                      this.onClickLeft();
+                      // window.location.replace(window.location.origin + '/mobile/home');
+                    }
                   });
                   });
-                })
-                .catch(() => {
-                  if (this.$route.query.reportId != undefined) {
-                    window.location.replace(window.location.origin + '/mobile/myHistoricalDaily');
-                  } else {
-                    this.onClickLeft();
-                    // window.location.replace(window.location.origin + '/mobile/home');
-                  }
-                });
+              } else {
+              }
             } else {
             } else {
               this.$toast.fail(res.msg);
               this.$toast.fail(res.msg);
             }
             }