温红权 3 年之前
父節點
當前提交
ab40b39704
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      ruoyi-ui/src/views/components/table/homeTable.vue

+ 10 - 0
ruoyi-ui/src/views/components/table/homeTable.vue

@@ -142,6 +142,7 @@ export default {
       dialogVisibleAzwz: false,
       dialogVisibleType: false,
       normalCount: 1,
+      reqcount:0,
       dialogVisibleShip: false,
       beginTime: '',
       lastdatep:0,
@@ -236,6 +237,13 @@ export default {
       }
 
     }, 5*60*1000);
+    setInterval(() => {
+      if(that.reqcount>0){
+         that.lastdatep=new Date().valueOf();
+         that.getallshipData();
+      }
+
+    }, 5000);
 
     this.getThresholdList();
 
@@ -327,8 +335,10 @@ export default {
 
       var cdatep = new Date().valueOf();
       if(cdatep-this.lastdatep>10000){
+        this.reqcount=0;
         this.lastdatep = cdatep;
       }else{
+        this.reqcount++;
         return;
       }