洪海涛 4 سال پیش
والد
کامیت
f0fe09e155
1فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 17 0
      src/views/monthlyReport/childrenPage/editReport/index.vue

+ 17 - 0
src/views/monthlyReport/childrenPage/editReport/index.vue

@@ -419,6 +419,22 @@ export default {
     // 月报更新
     upDateReportFn(key = 'cb', confirmReportBack) {
       this.SET_LOADING(true)
+      setTimeout(()=>{
+        if(this.loading) {
+          window.location.reload()
+        }
+      }, 10000)
+      setTimeout(()=>{
+        if(this.loading) {
+          window.location.reload()
+        }
+      }, 15000)
+
+      setTimeout(()=>{
+        if(this.loading) {
+          window.location.reload()
+        }
+      }, 20000)
       const method = this.pageType.search(/All/) > -1 ? 'upDateReport' : 'upDateSubReport'
       this[method](() => {
         confirmReportBack && confirmReportBack()
@@ -430,6 +446,7 @@ export default {
           this.$message.success('保存成功!')
         }
         this.historyRecordReload = true
+        window.location.reload()
       })
     },
     // 月报确认