<template>
|
<div class="videoSurveillance">
|
<div class="header">
|
<span class="title1">视频监控</span>
|
</div>
|
<div class="content">
|
<div class="videoContainer">
|
<el-carousel indicator-position="none" @change="onChange">
|
<el-carousel-item v-for="(item, index) in areaList" :key="index">
|
<img :src="item.icon" alt="" style="width: 100%;height: 100%">
|
</el-carousel-item>
|
</el-carousel>
|
</div>
|
<div class="areaInfo">
|
<div class="arrow-left"></div>
|
<div class="areaList">
|
<div @click="handleArea(index)" v-for="(item, index) in areaList" :key="index" class="area-normal"
|
:class="index == selIndex ? 'area-select' : ''">{{ item.name }}</div>
|
</div>
|
<div class="arrow-right"></div>
|
</div>
|
<div class="list">
|
<div class="listContent">
|
<div class='list_item' v-for="(item, i) in rainList">
|
<div class="title">{{ item.title }}</div>
|
<div class="num">{{ item.num }}</div>
|
</div>
|
</div>
|
</div>
|
<div class="rain_title">雨情信息</div>
|
|
<div class="rain-box">
|
<div class="rain-type">
|
<div v-for="(item, index) in rainTypeList" @click="handleRainType(index)" class="rain-type-item" :key="index"
|
:class="typeIdx == index ? 'rainTypeItemSel' : ''">
|
{{ item.name }}
|
</div>
|
</div>
|
<div class="date-type">
|
<div v-for="(item, index) in timeList" @click="handleDate(index)" class="date-item" :key="index"
|
:class="dateIdx == index ? 'dateItemSel' : ''">
|
{{ item.name }}
|
</div>
|
</div>
|
</div>
|
<div class="chart"><rain-info-chart :type="type"></rain-info-chart></div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import RainInfoChart from "./rainInfoChart.vue";
|
import mointor from "@/assets/images/mointor.jpg"
|
import zhsz1 from "@/assets/images/smartCityGovermance/zhsz1.webp"
|
import zhsz2 from "@/assets/images/smartCityGovermance/zhsz2.webp"
|
import zhsz3 from "@/assets/images/smartCityGovermance/zhsz3.webp"
|
import zhsz4 from "@/assets/images/smartCityGovermance/zhsz4.webp"
|
import zhsz5 from "@/assets/images/smartCityGovermance/zhsz5.jpg"
|
export default {
|
components: {
|
RainInfoChart
|
},
|
data() {
|
return {
|
areaList: [
|
{
|
name: "区域1",
|
icon: mointor
|
},
|
{
|
name: "区域2",
|
icon: zhsz1
|
},
|
{
|
name: "区域3",
|
icon: zhsz2
|
},
|
{
|
name: "区域4",
|
icon: zhsz3
|
},
|
{
|
name: "区域5",
|
icon: zhsz4
|
},
|
{
|
name: "区域6",
|
icon: zhsz5
|
},
|
],
|
rainList: [
|
{
|
title: "实时水位",
|
num: '0cm',
|
},
|
{
|
title: "今日最大水位",
|
num: '0cm',
|
},
|
{
|
title: "积水时长",
|
num: '0天0小时0分',
|
},
|
{
|
title: "拆除",
|
num: '正常通行',
|
},
|
],
|
rainTypeList: [
|
{
|
name: "区域累积雨量",
|
},
|
{
|
name: "流域累积雨量",
|
},
|
{
|
name: "极值统计",
|
},
|
],
|
timeList: [
|
{
|
name: "1小时",
|
},
|
{
|
name: "3小时",
|
},
|
{
|
name: "24小时",
|
},
|
{
|
name: "自定义",
|
},
|
],
|
selIndex: 0,
|
typeIdx: 0,
|
dateIdx: 0,
|
type: 0,
|
video: false
|
}
|
},
|
methods: {
|
handleArea(index) {
|
this.selIndex = index;
|
},
|
handleRainType(index) {
|
this.typeIdx = index;
|
this.type = index;
|
},
|
handleDate(index) {
|
this.dateIdx = index;
|
this.type = index;
|
},
|
/*
|
* 显示视频监控
|
* */
|
showVideo() {
|
this.video = !this.video;
|
if (this.video) {
|
sgworld.Core.postMessage({ "func_name": "ShowCityMovie", "visibility": "true" })
|
} else {
|
sgworld.Core.postMessage({ "func_name": "ShowCityMovie", "visibility": "false" })
|
}
|
},
|
/*
|
* 轮播change
|
* */
|
onChange(val) {
|
this.selIndex = val;
|
}
|
},
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
.videoSurveillance {
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
width: 100%;
|
pointer-events: all;
|
|
.header {
|
width: 304px;
|
height: 27.5px;
|
margin-left: 20px;
|
margin-top: 20px;
|
background-image: url("~@/assets/img/menuTitle1.png");
|
background-repeat: no-repeat;
|
background-size: 100% 100%;
|
font-family: PangMenZhengDao;
|
text-shadow: 0px 6px 9px #20618e;
|
display: flex;
|
flex-direction: row;
|
align-items: center;
|
flex-shrink: 0;
|
align-self: flex-start;
|
|
.title1 {
|
margin-left: 30px;
|
font-size: 15px;
|
color: #ffffff;
|
}
|
|
}
|
|
.content {
|
margin-top: 20px;
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
|
.videoContainer {
|
width: 310px;
|
height: 195px;
|
}
|
|
.areaInfo {
|
width: calc(100% - 60px);
|
margin: 0 30px;
|
display: flex;
|
align-items: center;
|
justify-content: space-around;
|
|
.arrow-left {
|
margin-top: 16px;
|
width: 0px;
|
height: 0px;
|
border: 8px solid transparent;
|
border-right-color: #1DB2FF;
|
}
|
|
.areaList {
|
margin-top: 16px;
|
width: calc(100% - 24px);
|
height: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
color: #ccc;
|
font-size: 12px;
|
text-align: center;
|
|
.area-normal {
|
cursor: pointer;
|
width: calc(100% / 6);
|
}
|
|
.area-select {
|
background: linear-gradient(90deg, rgba(0, 222, 255, 0) 0%, rgba(21, 137, 255, 0.79) 52%, rgba(0, 222, 255, 0) 100%);
|
opacity: 0.9;
|
color: #75FAFF;
|
}
|
}
|
|
.arrow-right {
|
margin-top: 16px;
|
width: 0px;
|
height: 0px;
|
border: 8px solid transparent;
|
border-left-color: #1DB2FF;
|
}
|
}
|
|
.list {
|
position: relative;
|
width: 317px;
|
height: 4px;
|
display: flex;
|
background-image: url("~@/assets/img/矩形 44.png");
|
background-repeat: no-repeat;
|
background-size: 100% 100%;
|
margin-top: 60px;
|
|
.listContent {
|
position: absolute;
|
display: flex;
|
flex-direction: row;
|
justify-content: space-around;
|
width: 100%;
|
top: -23px;
|
|
.list_item {
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
align-items: center;
|
|
width: 20.5px;
|
height: 31.5px;
|
display: flex;
|
background-image: url("~@/assets/img/形状 5 拷 拷贝 2.png");
|
background-repeat: no-repeat;
|
background-size: 100% 100%;
|
|
.num {
|
top: 30px;
|
position: absolute;
|
font-size: 10px;
|
font-family: HYXiaoBoHuaYueYuan;
|
font-weight: normal;
|
color: #ffffff;
|
}
|
|
.title {
|
top: -20px;
|
position: absolute;
|
font-size: 14px;
|
font-family: HYZhengYuan;
|
font-weight: normal;
|
color: #ffffff;
|
display: flex;
|
align-items: center;
|
background: rgba(0, 0, 0, 0.40);
|
}
|
}
|
}
|
|
|
}
|
|
.rain_title {
|
margin-top: 28px;
|
width: 319.5px;
|
height: 16.5px;
|
background-image: url("~@/assets/img/_编组_.png");
|
background-repeat: no-repeat;
|
background-size: 100% 100%;
|
display: flex;
|
flex-direction: row;
|
align-items: center;
|
|
font-size: 10px;
|
color: #d9f7ff;
|
|
padding-left: 20px;
|
line-height: 1.8;
|
}
|
|
|
.rain-box {
|
display: flex;
|
align-items: center;
|
margin-top: 10px;
|
|
|
span {
|
font-size: 10px;
|
font-family: HYZhengYuan;
|
color: #48C9FF;
|
}
|
|
.rain-type {
|
display: flex;
|
align-items: center;
|
background: linear-gradient(0deg, rgba(0, 203, 248, 0.1), rgba(0, 135, 240, 0.1));
|
border: 1px solid rgba(61, 121, 201, 0.88);
|
box-shadow: 0px 1px 9px 0px rgba(0, 0, 0, 0.45);
|
border-radius: 5px;
|
cursor: pointer;
|
|
.rain-type-item {
|
color: #ccc;
|
font-size: 9px;
|
text-align: center;
|
border-radius: 5px;
|
font-family: HYZhengYuan;
|
background: transparent;
|
padding: 2px;
|
cursor: pointer;
|
|
}
|
|
.rainTypeItemSel {
|
background: rgba(30,128,221, 0.5);
|
color: #fff;
|
}
|
}
|
|
.date-type {
|
margin-left: auto;
|
display: flex;
|
align-items: center;
|
background: linear-gradient(0deg, rgba(0, 203, 248, 0.1), rgba(0, 135, 240, 0.1));
|
border: 1px solid rgba(61, 121, 201, 0.88);
|
box-shadow: 0px 1px 9px 0px rgba(0, 0, 0, 0.45);
|
border-radius: 5px;
|
cursor: pointer;
|
|
.date-item {
|
color: #ccc;
|
font-size: 9px;
|
text-align: center;
|
border-radius: 5px;
|
font-family: HYZhengYuan;
|
background: transparent;
|
padding: 2px;
|
cursor: pointer;
|
}
|
|
.dateItemSel {
|
background: rgba(30,128,221, 0.5);
|
color: #fff;
|
}
|
}
|
}
|
|
.chart {
|
margin-top: 16px;
|
width: 100%;
|
height: 200px;
|
}
|
}
|
}
|
</style>
|
|
<style scoped>
|
>>>.el-carousel__container {
|
height: 195px;
|
}
|
</style>
|