浏览代码

Merge branch 'http_mock' into http_test

洪海涛 4 年之前
父节点
当前提交
7c35be7d13
共有 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()
       })
     },
     // 月报确认