|
@@ -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;
|
|
|
}
|
|
|
|