Эх сурвалжийг харах

Merge branch 'http_mock' into http_test

洪海涛 4 жил өмнө
parent
commit
7c35be7d13

+ 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()
       })
     },
     // 月报确认