|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: JC9527
|
|
|
|
|
* @Date: 2023-08-15 09:44:13
|
|
|
|
|
* @LastEditors: JC9527
|
|
|
|
|
* @LastEditTime: 2024-01-04 15:23:57
|
|
|
|
|
* @LastEditTime: 2024-01-06 17:14:03
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="left-box">
|
|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item lfet-list-one" id="parent-getHeight" :style="itemOne">
|
|
|
|
|
<title-box title="人员在线情况"></title-box>
|
|
|
|
|
<map-number title="在线人员总数" :onLine="100" :sum="150" type="人" :numberArray="peopleArray" :height="oneHeight" :id="1"
|
|
|
|
|
<map-number title="在线人员总数" :onLine="personOnLine" :sum="perpsonNum" type="人" :numberArray="peopleArray" :height="oneHeight" :id="1"
|
|
|
|
|
v-on="$listeners"></map-number>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item lfet-list-two" :style="itemOne">
|
|
|
|
@ -87,6 +87,8 @@ export default {
|
|
|
|
|
components: { titleBox, mapNumber },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
perpsonNum:0,
|
|
|
|
|
personOnLine:0,
|
|
|
|
|
peopleArray: [
|
|
|
|
|
{
|
|
|
|
|
title: '李飞'
|
|
|
|
@ -168,6 +170,16 @@ export default {
|
|
|
|
|
handler(newPerson) {
|
|
|
|
|
// console.log(newPerson,'在线人员情况');
|
|
|
|
|
this.peopleArray = newPerson
|
|
|
|
|
if(newPerson){
|
|
|
|
|
this.perpsonNum = newPerson.length;
|
|
|
|
|
let line = 0;
|
|
|
|
|
newPerson.forEach(element => {
|
|
|
|
|
if(element.status == "1") {
|
|
|
|
|
line += 1
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.personOnLine = line
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
immediate: true,
|
|
|
|
|
},
|
|
|
|
@ -225,10 +237,10 @@ export default {
|
|
|
|
|
this.getDomHeight();
|
|
|
|
|
});
|
|
|
|
|
this.getDomHeight();
|
|
|
|
|
this.getEvent();
|
|
|
|
|
getTrend({ type: 1 }).then(res => {
|
|
|
|
|
console.log(res, '事件来源');
|
|
|
|
|
})
|
|
|
|
|
// this.getEvent();
|
|
|
|
|
// getTrend({ type: 1 }).then(res => {
|
|
|
|
|
// console.log(res, '事件来源');
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|