|
|
@ -16,7 +16,7 @@
|
|
|
|
<div class="list-text"> · 上报事件总数</div>
|
|
|
|
<div class="list-text"> · 上报事件总数</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<div class="list-num">200</div>
|
|
|
|
<div class="list-num">{{ MYsummarystatdata.total || "" }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lists">
|
|
|
|
<div class="lists">
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
<div class="list-text"> · 已受理事件</div>
|
|
|
|
<div class="list-text"> · 已受理事件</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<div class="list-num">180</div>
|
|
|
|
<div class="list-num">{{ Fnsummarystat(MYsummarystatdata.records.filter(item => item.status == 1)) }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lists">
|
|
|
|
<div class="lists">
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
<div class="list-text"> · 未受理事件</div>
|
|
|
|
<div class="list-text"> · 未受理事件</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<img src="@/assets/images/incident.png" alt="">
|
|
|
|
<div class="list-num">20</div>
|
|
|
|
<div class="list-num">{{ Fnsummarystat(MYsummarystatdata.records.filter(item => item.status == 0)) }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
<div class="list-text"> · 派发任务总数</div>
|
|
|
|
<div class="list-text"> · 派发任务总数</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<div class="list-num">200</div>
|
|
|
|
<div class="list-num">{{tasksummarystatdata.total || '0'}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lists">
|
|
|
|
<div class="lists">
|
|
|
@ -53,7 +53,7 @@
|
|
|
|
<div class="list-text"> · 已处理任务数量</div>
|
|
|
|
<div class="list-text"> · 已处理任务数量</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<div class="list-num">180</div>
|
|
|
|
<div class="list-num">{{tasksummarystatdata.solved || '0'}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="lists">
|
|
|
|
<div class="lists">
|
|
|
@ -61,91 +61,93 @@
|
|
|
|
<div class="list-text"> · 未处理任务数量</div>
|
|
|
|
<div class="list-text"> · 未处理任务数量</div>
|
|
|
|
<div class="list-bottom">
|
|
|
|
<div class="list-bottom">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<img src="@/assets/images/task.png" alt="">
|
|
|
|
<div class="list-num">20</div>
|
|
|
|
<div class="list-num">{{tasksummarystatdata.inProgress || 0}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item lfet-list-one" id="parent-getHeight" :style="itemOne">
|
|
|
|
<div class="item lfet-list-one" id="parent-getHeight" :style="itemOne">
|
|
|
|
<title-box title="人员在线情况"></title-box>
|
|
|
|
<title-box title="人员在线情况"></title-box>
|
|
|
|
<map-number title="在线人员总数" :onLine="100" :sum="150" type="人" :numberArray="peopleArray" :height="oneHeight" :id="1" v-on="$listeners"></map-number>
|
|
|
|
<map-number title="在线人员总数" :onLine="100" :sum="150" type="人" :numberArray="peopleArray" :height="oneHeight" :id="1"
|
|
|
|
|
|
|
|
v-on="$listeners"></map-number>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item lfet-list-two" :style="itemOne">
|
|
|
|
<div class="item lfet-list-two" :style="itemOne">
|
|
|
|
<title-box title="车辆在线情况"></title-box>
|
|
|
|
<title-box title="车辆在线情况"></title-box>
|
|
|
|
<map-number title="在线车辆总数" :onLine="10" :sum="18" type="辆" :numberArray="vehicleArray" :height="oneHeight" :id="2"></map-number>
|
|
|
|
<map-number title="在线车辆总数" :onLine="10" :sum="18" type="辆" :numberArray="vehicleArray" :height="oneHeight"
|
|
|
|
|
|
|
|
:id="2"></map-number>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import titleBox from '../../components/title/index.vue'
|
|
|
|
import titleBox from '../../components/title/index.vue'
|
|
|
|
import mapNumber from '../../components/mapLeftNumber/index.vue'
|
|
|
|
import mapNumber from '../../components/mapLeftNumber/index.vue'
|
|
|
|
import { getQueryViewListPage,getTrend } from '@/api/bigScreenApi/eventApi.js'
|
|
|
|
import { getQueryViewListPage, getTrend, summarystat, tasksummarystat } from '@/api/bigScreenApi/eventApi.js'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name:'mapLeftContent',
|
|
|
|
name: 'mapLeftContent',
|
|
|
|
components:{titleBox,mapNumber},
|
|
|
|
components: { titleBox, mapNumber },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
peopleArray:[
|
|
|
|
peopleArray: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
title:'李飞'
|
|
|
|
title: '李飞'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
vehicleArray:[
|
|
|
|
vehicleArray: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},{
|
|
|
|
}, {
|
|
|
|
userName:'苏A123456'
|
|
|
|
userName: '苏A123456'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
itemOne:{
|
|
|
|
itemOne: {
|
|
|
|
height:'',
|
|
|
|
height: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
itemTwo:{
|
|
|
|
itemTwo: {
|
|
|
|
height:'',
|
|
|
|
height: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
oneHeight:0,
|
|
|
|
oneHeight: 0,
|
|
|
|
screenHeight:'',
|
|
|
|
screenHeight: '',
|
|
|
|
$listeners:false,
|
|
|
|
$listeners: false,
|
|
|
|
eventList:{
|
|
|
|
eventList: {
|
|
|
|
viewCode:"event-all-list",
|
|
|
|
viewCode: "event-all-list",
|
|
|
|
pageNo:"1",
|
|
|
|
pageNo: "1",
|
|
|
|
pageSize:"10"
|
|
|
|
pageSize: "10"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
eventData:{
|
|
|
|
eventData: {
|
|
|
|
"queryValue": [
|
|
|
|
"queryValue": [
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "colCode": "name",
|
|
|
|
// "colCode": "name",
|
|
|
@ -153,29 +155,33 @@ export default {
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"myInstanceClassify": "all"
|
|
|
|
"myInstanceClassify": "all"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
MYsummarystatdata: {
|
|
|
|
|
|
|
|
records: []
|
|
|
|
|
|
|
|
},//事件统计概况数据
|
|
|
|
|
|
|
|
tasksummarystatdata:{} // 任务概况分类统计
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
props:['personLine','carLine'],
|
|
|
|
props: ['personLine', 'carLine'],
|
|
|
|
watch:{
|
|
|
|
watch: {
|
|
|
|
personLine:{
|
|
|
|
personLine: {
|
|
|
|
handler(newPerson){
|
|
|
|
handler(newPerson) {
|
|
|
|
// console.log(newPerson,'在线人员情况');
|
|
|
|
// console.log(newPerson,'在线人员情况');
|
|
|
|
this.peopleArray = newPerson
|
|
|
|
this.peopleArray = newPerson
|
|
|
|
},
|
|
|
|
},
|
|
|
|
immediate:true,
|
|
|
|
immediate: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carLine:{
|
|
|
|
carLine: {
|
|
|
|
handler(newPerson){
|
|
|
|
handler(newPerson) {
|
|
|
|
// console.log(newPerson,'在线人员情况');
|
|
|
|
// console.log(newPerson,'在线人员情况');
|
|
|
|
this.vehicleArray = newPerson
|
|
|
|
this.vehicleArray = newPerson
|
|
|
|
},
|
|
|
|
},
|
|
|
|
immediate:true,
|
|
|
|
immediate: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods: {
|
|
|
|
getDomHeight(){
|
|
|
|
getDomHeight() {
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
this.$nextTick(() => {
|
|
|
|
let dom = document.getElementsByClassName('lfet-list-one');
|
|
|
|
let dom = document.getElementsByClassName('lfet-list-one');
|
|
|
|
let dom2 = document.getElementsByClassName('left-list-title');
|
|
|
|
let dom2 = document.getElementsByClassName('left-list-title');
|
|
|
|
let height2 = dom2[0].getBoundingClientRect();
|
|
|
|
let height2 = dom2[0].getBoundingClientRect();
|
|
|
@ -191,23 +197,45 @@ export default {
|
|
|
|
this.oneHeight = Number(relativeHeight);
|
|
|
|
this.oneHeight = Number(relativeHeight);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getEvent(){
|
|
|
|
getEvent() {
|
|
|
|
getQueryViewListPage(this.eventList,this.eventData).then(res=>{
|
|
|
|
getQueryViewListPage(this.eventList, this.eventData).then(res => {
|
|
|
|
console.log(res,'resres');
|
|
|
|
console.log(res, 'resres');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MYsummarystat() {
|
|
|
|
|
|
|
|
//获取事件统计概况
|
|
|
|
|
|
|
|
summarystat().then(res => {
|
|
|
|
|
|
|
|
if (res.code == 200) this.MYsummarystatdata = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// 任务概况分类统计
|
|
|
|
|
|
|
|
tasksummarystat().then(res => {
|
|
|
|
|
|
|
|
if (res.code == 200) this.tasksummarystatdata = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 获取事件统计概况事件处理
|
|
|
|
|
|
|
|
Fnsummarystat(data) {
|
|
|
|
|
|
|
|
let mydata = data.length != 0 ? data[0].count : '0'
|
|
|
|
|
|
|
|
return mydata
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
mounted() {
|
|
|
|
window.addEventListener("resize", () => {
|
|
|
|
window.addEventListener("resize", () => {
|
|
|
|
this.screenHeight = document.body.clientHeight;
|
|
|
|
this.screenHeight = document.body.clientHeight;
|
|
|
|
this.getDomHeight();
|
|
|
|
this.getDomHeight();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.getDomHeight();
|
|
|
|
this.getDomHeight();
|
|
|
|
this.getEvent();
|
|
|
|
this.getEvent();
|
|
|
|
getTrend({type:1}).then(res=>{
|
|
|
|
getTrend({ type: 1 }).then(res => {
|
|
|
|
console.log(res,'事件来源');
|
|
|
|
console.log(res, '事件来源');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.MYsummarystat()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
@ -216,13 +244,16 @@ export default {
|
|
|
|
grid-column: 1fr;
|
|
|
|
grid-column: 1fr;
|
|
|
|
grid-row-gap: 24px;
|
|
|
|
grid-row-gap: 24px;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
.item {
|
|
|
|
|
|
|
|
|
|
|
|
// background: rgba(222, 225, 230, 0.6);
|
|
|
|
// background: rgba(222, 225, 230, 0.6);
|
|
|
|
.item-main {
|
|
|
|
.item-main {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-top: 5px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding-left: 17px;
|
|
|
|
padding-left: 17px;
|
|
|
|
|
|
|
|
|
|
|
|
.lists {
|
|
|
|
.lists {
|
|
|
|
// padding: 5px;
|
|
|
|
// padding: 5px;
|
|
|
|
width: 141px;
|
|
|
|
width: 141px;
|
|
|
@ -230,7 +261,7 @@ export default {
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
// justify-content: space-between;
|
|
|
|
// justify-content: space-between;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
.bgc {
|
|
|
|
.bgc {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
@ -238,9 +269,10 @@ export default {
|
|
|
|
right: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 141px;
|
|
|
|
width: 141px;
|
|
|
|
background: linear-gradient(180deg, #0073FF 0%, rgba(0,71,129,0) 100%);
|
|
|
|
background: linear-gradient(180deg, #0073FF 0%, rgba(0, 71, 129, 0) 100%);
|
|
|
|
opacity: 0.5;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list-text {
|
|
|
|
.list-text {
|
|
|
|
font-size: 15px;
|
|
|
|
font-size: 15px;
|
|
|
|
height: 38px;
|
|
|
|
height: 38px;
|
|
|
@ -252,15 +284,18 @@ export default {
|
|
|
|
background-size: 100% 100%;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
padding: 16px 0 0 8px;
|
|
|
|
padding: 16px 0 0 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list-bottom {
|
|
|
|
.list-bottom {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
padding-left: 24px;
|
|
|
|
padding-left: 24px;
|
|
|
|
margin-top: 11px;
|
|
|
|
margin-top: 11px;
|
|
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
img {
|
|
|
|
width: 37px;
|
|
|
|
width: 37px;
|
|
|
|
height: 40px;
|
|
|
|
height: 40px;
|
|
|
|
margin-right: 14px;
|
|
|
|
margin-right: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list-num {
|
|
|
|
.list-num {
|
|
|
|
font-size: 32px;
|
|
|
|
font-size: 32px;
|
|
|
|
font-family: 'D-DIN';
|
|
|
|
font-family: 'D-DIN';
|
|
|
@ -273,9 +308,11 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.lfet-list-one {
|
|
|
|
.lfet-list-one {
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.left-list-title {
|
|
|
|
.left-list-title {
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|