Browse Source

评价指标-点击重新计算后,2秒后自动关闭指标计算弹窗, 并自动刷新当前页面

liyanyan 3 days ago
parent
commit
172b5ba5e3
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/allcase/majorIndex.vue

+ 6 - 2
src/views/allcase/majorIndex.vue

@@ -719,10 +719,14 @@ export default {
       }
       this.$axios2.post('/quality_index_recalculate', params).then(res => {
         if(res.code == 200) {
-          this.jsPopShow = false
-          this.getList()
+          //更改为发起请求后2秒刷新数据
         }
       });
+      let timer = setTimeout(() => {
+        clearTimeout(timer)
+        this.jsPopShow = false
+        this.getList()
+      }, 2000);
     },
     getList() {
       this.$axios2.get(`/quality_index_list?type=1&cysj_start=${this.formInline.startTime}&cysj_end=${this.formInline.endTime}&AAC11N=${this.formInline.AAC11N}&AEE03=${this.formInline.AEE03}&is_export=0&category=${this.indexData.url}`).then(res => {