温红权 3 anni fa
parent
commit
a5d284aaaf
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      ruoyi-ui/src/views/components/table/homeTable.vue

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

@@ -144,6 +144,7 @@ export default {
       normalCount: 1,
       dialogVisibleShip: false,
       beginTime: '',
+      lastdatep:0,
       isstart:false,
       so2TimeData: {},
       endTime: '',
@@ -323,6 +324,14 @@ export default {
 
     getallshipData() {
       if(!this.isstart) return;
+
+      var cdatep = new Date().valueOf();
+      if(cdatep-this.lastdatep>10000){
+        this.lastdatep = cdatep;
+      }else{
+        return;
+      }
+
       //  this.allship = this.ship1;
       //   for (let i = 0; i < 100000; i++) {
       //               let ran = Math.random() * 360;