Fei_Xian_Lin_Ye_Fang_Huo/src/views/bigScreen/index.vue

657 lines
21 KiB
Vue

<template>
<div class="out-div">
<div class="map"></div>
<div class="header">
<span class="title">应急融合感知监测平台</span>
<span class="title-shadow">应急融合感知监测平台</span>
</div>
<div class="left-border"></div>
<div class="right-border"></div>
<div class="footer"></div>
<div class="left-content">
<div class="forewarning">
<div class="subtitle">
<span class="subtitle-span">预警线索</span>
</div>
<div class="drop-down-div">
<div class="drop-item" style="padding-left: 20px; padding-right: 19px;">
<span class="drop-span">今日</span>
<div class="drop-down-icon"></div>
</div>
<div class="drop-item" style="padding-left: 20px; padding-right: 18px;">
<span class="drop-span">森火</span>
<div class="drop-down-icon"></div>
</div>
<div class="drop-item" style="padding-left: 6px; padding-right: 6px;">
<span class="drop-span">全部来源</span>
<div class="drop-down-icon"></div>
</div>
<div class="drop-item" style="padding-left: 17px; padding-right: 10px;">
<span class="drop-span">请选择</span>
<div class="drop-down-icon"></div>
</div>
<div class="drop-item" style="padding-left: 12px; padding-right: 11px;">
<span class="drop-span">预警分析</span>
<div class="drop-down-icon"></div>
</div>
</div>
<div style="display: flex;margin-bottom: 12px;">
<div class="ornament" v-for="item in 5"></div>
</div>
<div class="forewarning-content">
<div :class="`forewarning-item ${item.type == 1? 'forewarning-error-item': ''}`" v-for="(item,index) in forewarningList" :key="index">
<div class="item-title">{{item.title}}</div>
<div class="item-user-time">
<div class="item-user">
<div style="margin-right: 3px;">上报人员:</div>
<div style="width: 65px;">{{item.user}}</div>
</div>
<div class="item-time">
<div style="margin-right: 3px;">时间:</div>
<div>{{ item.time }}</div>
</div>
</div>
<div class="forewarning-mark">{{ item.typename }}</div>
<div class="get-info-button">详情</div>
</div>
</div>
</div>
<div class="person">
<div class="subtitle">
<span class="subtitle-span">人员动态</span>
</div>
<div class="person-title">
在线人员总数
<div class="person-all-number">270</div>
</div>
<div class="person-content">
<div class="person-item" v-for="(item,index) in personList" :key="index">
<div class="person-type">{{item.name}}</div>
<div class="person-info">{{item.title}}</div>
<div class="person-number">{{item.number}}</div>
</div>
</div>
</div>
</div>
<div class="right-content">
<div class="monitor">
<div class="subtitle">
<span class="subtitle-span">监测资源</span>
</div>
<div class="button-div">
<div :class="`button-item ${monitorSelect == '遥感卫星'? 'button-item-select': ''}`" @click="monitorSelect = '遥感卫星'">遥感卫星</div>
<div :class="`button-item ${monitorSelect == '视频监控'? 'button-item-select': ''}`" @click="monitorSelect = '视频监控'">视频监控</div>
<div :class="`button-item ${monitorSelect == '无人机'? 'button-item-select': ''}`" @click="monitorSelect = '无人机'">无人机</div>
<div :class="`button-item ${monitorSelect == '物联设备'? 'button-item-select': ''}`" @click="monitorSelect = '物联设备'">物联设备</div>
<div :class="`button-item ${monitorSelect == '移动终端'? 'button-item-select': ''}`" @click="monitorSelect = '移动终端'">移动终端</div>
<div :class="`button-item ${monitorSelect == '拍照上传'? 'button-item-select': ''}`" @click="monitorSelect = '拍照上传'">拍照上传</div>
</div>
<div class="monitor-sub-header">
<div class="UAV-title">DJ大疆巡航费县马庄镇....</div>
<div style="display: flex;align-items: center;margin-right: 9px;cursor: pointer;">
共<span class="Uav-number">7</span>架
<div class="drop-down-icon" style="margin-left: 6px;"></div>
</div>
<div :class="`sub-button ${monitorSubSelect == '无人机巡航'? 'sub-button-select': ''}`" @click="monitorSubSelect = '无人机巡航'">
<span class="sub-button-span">无人机巡航</span>
</div>
<div :class="`sub-button ${monitorSubSelect == '摄像头'? 'sub-button-select': ''}`" @click="monitorSubSelect = '摄像头'">
<span class="sub-button-span">摄像头</span>
</div>
</div>
<div class="camera-content">
<div class="camera-item"></div>
<div class="camera-item"></div>
<div class="camera-item"></div>
<div class="camera-item"></div>
</div>
</div>
<div class="response-resource">
<div class="subtitle">
<span class="subtitle-span">响应资源</span>
</div>
<div class="response-resource-content">
<div class="resource-item" v-for="(item, index) in responseResourceList" :key="index">
<div class="item-title">{{item.title}}</div>
<div class="item-number-background">
<span class="item-number">{{item.number}}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "bigScreen",
components: {},
data() {
return {
forewarningList: [
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '未确认', user: '某某某', time: '2024-12-28 13:56:37', type: 1},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
{title: '临沂市兰山区凤凰山马家镇小岭村', typename: '山坡火点', user: '某某某', time: '2024-12-28 13:56:37', type: 0},
],
personList: [
{name: '护林员', number: 40, title: '在线人员数'},
{name: '林长', number: 32, title: '在线人员数'},
{name: '网格员', number: 75, title: '在线人员数'},
{name: '林区住户', number: 48, title: '在线人员数'},
{name: '游客', number: 45, title: '在线人员数'},
],
monitorSelect: '遥感卫星',
monitorSubSelect: '无人机巡航',
responseResourceList: [
{ title: '防火向导', number: 47, },
{ title: '防火检查站', number: 600, },
{ title: '瞭望台', number: 70, },
{ title: '进山道路', number: 70, },
{ title: '防火驿站', number: 200, },
{ title: '驻防队伍', number: 100, },
{ title: '物资储备', number: 89, },
{ title: '护林点', number: 89, },
{ title: '塘坝', number: 256, },
{ title: '蓄水池', number: 321, },
{ title: '水库', number: 113, },
]
};
},
methods: {
},
}
</script>
<style lang="scss" scoped>
.out-div{
width: 100%;
height: 100vh;
position: relative;
:deep(.subtitle){
position: absolute;
top: -7px;
left: -7px;
width: 444px;
height: 48px;
background-image: url('/bigScreen/subtitle_background.png');
background-size: 100% 100%;
.subtitle-span{
position: absolute;
bottom: 20px;
left: 46px;
color: #FFFFFF;
font-family: AlimamaShuHeiTi;
font-weight: bold;
font-size: 29px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 27px;
letter-spacing: 1px;
}
}
:deep(.drop-down-icon){
width: 7px;
height: 5px;
background-image: url('/bigScreen/drop_down_icon.png');
background-size: 100% 100%;
}
.map{
width: 100%;
height: 100vh;
background-color: rgb(43, 46, 226);
}
.header{
width: 100%;
background-image: url('/bigScreen/header_background.png');
background-size: 100% 100%;
height: 100px;
position: absolute;
top: 0;
left: 0;
font-family: AlimamaShuHeiTi;
font-weight: bold;
font-size: 48px;
font-style: italic;
.title{
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(#F0FDFF,#FFFFFF, #00FFF7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 45px;
z-index: 2;
}
.title-shadow{
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
color: rgba(0,0,0,0);
text-shadow: 0px 2px 8px #00535F;
line-height: 45px;
z-index: 1;
}
}
.left-border{
position: absolute;
top: 15px;
left: 0px;
height: calc(100vh - 24px);
width: 30px;
background-image: url('/bigScreen/left_border.png');
background-size: 100% 100%;
}
.right-border{
position: absolute;
top: 18px;
right: 0px;
width: 30px;
height: calc(100vh - 29px);
background-image: url('/bigScreen/right_border.png');
background-size: 100% 100%;
}
.footer{
position: absolute;
bottom: 0px;
left: 22px;
width: calc(100% - 44px);
height: 51px;
background-image: url('/bigScreen/footer_background.png');
background-size: 100% 100%;
}
.left-content{
position: absolute;
top: 95px;
left: 30px;
width: 425px;
.forewarning{
position: relative;
padding-top: 54px;
padding-left: 13px;
padding-right: 11px;
padding-bottom: 10px;
width: 425px;
height: 475px;
background-image: url('/bigScreen/small_background.png');
background-size: 100% 100%;
display: flex;
flex-direction: column;
margin-bottom: 23px;
.drop-down-div{
display: flex;
margin-bottom: 2px;
.drop-item{
width: 84px;
height: 23px;
background-image: url('/bigScreen/drop_down_item_background.png');
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
.drop-span{
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 12px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 12px;
}
// .drop-down-icon{
// width: 7px;
// height: 5px;
// background-image: url('/bigScreen/drop_down_icon.png');
// background-size: 100% 100%;
// }
}
}
.ornament{
width: 78px;
height: 2px;
background-image: url('/bigScreen/ornament.png');
background-size: 100% 100%;
margin-right: 3px;
:last-child{
margin-right: 0px;
}
}
.forewarning-content{
flex: 1;
overflow: auto;
scrollbar-width: none;
::-webkit-scrollbar {
width: 0;
height: 0;
}
.forewarning-item{
position: relative;
width: 401px;
height: 61px;
background-image: url('/bigScreen/forewarning_background.png');
background-size: 100% 100%;
padding-top: 8px;
padding-left: 10px;
margin-bottom: 10px;
.item-title{
font-family: Microsoft YaHei;
font-weight: bold;
font-size: 13px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 14px;
margin-bottom: 17px;
}
.item-user-time{
display: flex;
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 12px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 13px;
.item-user{
display: flex;
}
.item-time{
display: flex;
}
}
.forewarning-mark{
position: absolute;
right: 6px;
top: 5px;
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 13px;
color: #FFFFFF;
line-height: 13px;
}
.get-info-button{
position: absolute;
right: 11px;
bottom: 6px;
width: 57px;
height: 23px;
background: #088969;
border-radius: 2px;
border: 1px solid #01ECB2;
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 15px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.58);
display: flex;
align-items: center;
justify-content: center;
line-height: 15px;
cursor: pointer;
}
}
.forewarning-error-item{
background-image: url('/bigScreen/forewarning_error_background.png');
}
}
}
.person{
position: relative;
padding-top: 54px;
padding-left: 12px;
padding-right: 10px;
width: 425px;
height: 324px;
background-image: url('/bigScreen/small_background.png');
background-size: 100% 100%;
display: flex;
flex-direction: column;
.person-title{
position: relative;
width: 406px;
height: 32px;
background-image: url('/bigScreen/person_subtitle.png');
background-size: 100% 100%;
padding-top: 10px;
padding-left: 23px;
line-height: 14px;
font-family: PingFang SC;
font-weight: bold;
font-size: 14px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
margin-bottom: 4px;
.person-all-number{
position: absolute;
bottom: 8px;
right: 62px;
transform: translateX(50%);
font-family: DINPro;
font-weight: 500;
font-size: 30px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 23px;
}
}
.person-content{
flex: 1;
overflow: auto;
scrollbar-width: none;
::-webkit-scrollbar {
width: 0;
height: 0;
}
.person-item{
position: relative;
width: 402px;
height: 39px;
background-image: url('/bigScreen/person_item.png');
background-size: 100% 100%;
display: flex;
align-items: center;
margin-bottom: 3px;
.person-type{
position: absolute;
left: 35px;
transform: translateX(-50%);
font-family: PingFang SC;
font-weight: 800;
font-size: 14px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 14px;
}
.person-info{
position: absolute;
left: 50%;
transform: translateX(-50%);
font-family: PingFang SC;
font-weight: 500;
font-size: 14px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 14px;
}
.person-number{
position: absolute;
right: 61px;
transform: translateX(50%);
font-family: DINProRegular;
font-weight: 400;
font-size: 24px;
color: #FFFFFF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 18px;
}
}
}
}
}
.right-content{
width: 425px;
height: 853px;
position: absolute;
top: 95px;
right: 22px;
background-image: url('/bigScreen/right_backgorund.png');
background-size: 100% 100%;
.monitor{
position: relative;
width: 425px;
height: 548px;
padding-top: 62px;
padding-left: 13px;
padding-right: 14px;
.button-div{
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
.button-item{
width: 132px;
height: 42px;
background-image: url('/bigScreen/monitor_button.png');
background-size: 100% 100%;
margin-bottom: 10px;
font-family: AlimamaShuHeiTi;
font-weight: bold;
font-size: 15px;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.button-item-select{
background-image: url('/bigScreen/monitor_button_select.png');
}
}
.monitor-sub-header{
display: flex;
align-items: center;
font-family: Microsoft YaHei;
font-weight: 400;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
color: #FFFFFF;
font-size: 13px;
line-height: 13px;
margin-bottom: 13px;
.UAV-title{
width: 152px;
height: 13px;
margin-right: 16px;
overflow:hidden;
text-overflow:ellipsis;
}
.Uav-number{
font-family: DINPro;
font-weight: 500;
font-size: 16px;
color: #18F7FF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
margin-left: 6px;
margin-right: 4px;
}
.sub-button{
position: relative;
width: 85px;
height: 26px;
background-image: url('/bigScreen/monitor_sub_button.png');
background-repeat: no-repeat;
cursor: pointer;
.sub-button-span{
white-space:nowrap;
position: absolute;
top: 5px;
left: 50%;
transform: translateX(-50%);
}
}
.sub-button-select{
background-image: url('/bigScreen/monitor_sub_button_select.png');
}
}
.camera-content{
display: flex;
flex-wrap: wrap;
.camera-item{
width: 190px;
height: 143px;
border: 2px solid #007C7F;
margin-right: 18px;
margin-bottom: 10px;
}
:nth-child(2n){
margin-right: 0px;
}
}
}
.response-resource{
position: relative;
height: 305px;
padding-top: 67px;
padding-left: 46px;
padding-right: 57px;
.response-resource-content{
display: flex;
flex-wrap: wrap;
height: 216px;
overflow: auto;
scrollbar-width: none;
::-webkit-scrollbar {
width: 0;
height: 0;
}
.resource-item{
width: 64px;
height: 63px;
margin-right: 22px;
margin-bottom: 9px;
cursor: pointer;
.item-title{
font-family: AlimamaShuHeiTi;
font-weight: bold;
font-size: 14px;
color: #FFFFFF;
line-height: 14px;
margin-bottom: 3px;
display: flex;
justify-content: center;
white-space: nowrap;
}
.item-number-background{
position: relative;
width: 64px;
height: 46px;
background-image: url('/bigScreen/response_resource_item.png');
background-size: 100% 100%;
.item-number{
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
font-family: DINPro;
font-weight: 500;
font-size: 20px;
color: #18F7FF;
text-shadow: 0px 1px 3px rgba(0,0,0,0.41);
line-height: 15px;
}
}
}
:nth-child(4n){
margin-right: 0px;
}
}
}
}
}
</style>