一公司人员定位地图功能完善

pet_li_6.6
liujun 2024-04-17 08:57:43 +08:00
parent 6b631223eb
commit 6dda995d3e
2 changed files with 93 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="renyuan">
<div class="block1">
<div v-if="false" class="block1">
<layout-title title="定位基础信息"/>
<div class="options">
<div v-for="(item,index) in block1OptionsList" :key="index" class="option">
@ -15,7 +15,7 @@
</div>
</div>
</div>
<div class="block2">
<div v-if="false" class="block2">
<layout-title title="定位状态数据"/>
<div class="options">
<div class="bg"/>
@ -29,7 +29,7 @@
</div>
</div>
</div>
<div class="block3">
<div v-if="false" class="block3">
<layout-title title="定位标签状态"/>
<div class="content">
<div class="options">
@ -56,18 +56,42 @@
</div>
</div>
</div>
<div class="block4">
<layout-title title="报警列表"/>
<div class="content">
<div class="table">
<div class="tr">
<div class="td">区域名称</div>
<div class="td">报警设备编号</div>
<div class="td">异地告警</div>
</div>
<div v-for="(item,index) in block4List" :key="index" class="tr">
<div class="td">{{ item.alarmName }}</div>
<div class="td">{{ item.equipmentName }}</div>
<div class="td">{{ item.statusName }}</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import layoutTitle from './title.vue'
import CountTo from 'vue-count-to'
import { requestFN } from '../../../utils/request'
export default {
components: {
CountTo,
layoutTitle
},
props: {
corpInfoId: {
type: String,
default: ''
}
},
data() {
return {
block1OptionsList: [
@ -131,12 +155,26 @@ export default {
count: '-',
facount: '-'
}
]
],
block4List: []
}
},
created() {
this.getData()
},
methods: {
block3OptionsClick(index) {
this.block3OptionsIndex = index
},
getData() {
requestFN(
'/map/getAlarmList',
{ corpId: this.corpInfoId }
).then((data) => {
this.block4List = data.list
}).catch((e) => {
this.$message.error(e)
})
}
}
}
@ -321,6 +359,48 @@ export default {
}
}
}
.block4 {
margin-top: 10px;
width: 410px;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
.content {
border: 1px solid;
border-image: linear-gradient(to bottom, rgba(58, 122, 149, 0), rgba(58, 122, 149, 1)) 1;
border-top: none;
padding: 10px;
.options {
display: flex;
justify-content: flex-end;
.title {
cursor: pointer;
}
}
.table {
margin-top: 5px;
.tr {
display: flex;
&:nth-child(odd) {
background-color: rgba(42, 86, 158, 0.53);
}
.td {
flex: 1;
text-align: center;
font-size: 12px;
color: #fff;
padding: 5px;
}
}
}
}
}
}
@keyframes scale {

View File

@ -22,6 +22,12 @@
<td class="bbg-transparent">设备名称</td>
<td >{{ info?info.deviceName:'' }}</td>
</tr>
<tr>
<td class="bbg-transparent">人员类型</td>
<td>{{ otherInfo?otherInfo.personType:'' }}</td>
<td class="bbg-transparent">岗位</td>
<td>{{ otherInfo?otherInfo.postName:'' }}</td>
</tr>
</table>
</div>
</template>
@ -53,7 +59,8 @@ export default {
data() {
return {
config: config,
info: {}
info: {},
otherInfo: {}
}
},
created() {
@ -69,6 +76,7 @@ export default {
}
).then((data) => {
this.info = data.info.required
this.otherInfo = data.otherInfo
}).catch((e) => {
})
}