|
@@ -320,6 +320,7 @@ export default {
|
|
|
chartReload4: null,//定时器
|
|
|
chartReload5: null,//定时器
|
|
|
chartReload6: null,//定时器
|
|
|
+ labPersonTimer:null,//进入实验室人员定时器
|
|
|
dataList:[],
|
|
|
labList:[],//实验室人员
|
|
|
infoList:[],//工作通知
|
|
@@ -637,14 +638,6 @@ export default {
|
|
|
|
|
|
}
|
|
|
})
|
|
|
- //实验室人员
|
|
|
- onlineSumByBigView({pageNumStr:1,pageSizeStr:50}).then((res) =>{
|
|
|
- if(res.code==200){
|
|
|
- let data=res.data.list;
|
|
|
- _this.labResultCount=res.data.resultCount
|
|
|
- _this.labList=data
|
|
|
- }
|
|
|
- })
|
|
|
//实验室分类
|
|
|
getTypeCount({}).then((res) =>{
|
|
|
if(res.code==200){
|
|
@@ -714,7 +707,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ //实验室人员
|
|
|
+ onlineSumByBigView:function () {
|
|
|
+ let self=this;
|
|
|
+ onlineSumByBigView({pageNumStr:1,pageSizeStr:50}).then((res) =>{
|
|
|
+ if(res.code==200){
|
|
|
+ let data=res.data.list;
|
|
|
+ self.labResultCount=res.data.resultCount
|
|
|
+ self.labList=data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//工作通知
|
|
|
infoFun:function(){
|
|
|
let _this=this;
|
|
@@ -1402,6 +1405,7 @@ export default {
|
|
|
_this.workPlanFun();
|
|
|
_this.safetyInspectFun();
|
|
|
_this.safetyInspectTitle();
|
|
|
+ _this.onlineSumByBigView();
|
|
|
_this.initSwiper();
|
|
|
_this.subscriptionMQTT();
|
|
|
_this.timer = setInterval(() => {
|
|
@@ -1410,6 +1414,10 @@ export default {
|
|
|
_this.workPlanFun();
|
|
|
_this.safetyInspectFun();
|
|
|
},1000*300)
|
|
|
+ _this.labPersonTimer = setInterval(() => {
|
|
|
+ _this.onlineSumByBigView();
|
|
|
+ },5000)
|
|
|
+
|
|
|
//中间部分点击方法
|
|
|
$(".left_t_c li").click(function(){
|
|
|
let index = $(".left_t_c li").index(this);
|
|
@@ -1421,6 +1429,7 @@ export default {
|
|
|
},
|
|
|
beforeDestroy(){
|
|
|
clearInterval(this.timer);
|
|
|
+ clearInterval(this.labPersonTimer);
|
|
|
},
|
|
|
|
|
|
|