123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <template>
- <div class="main-data data-week-foods">
- <div class="title-area">实时监控</div>
- <!-- 选择日期 -->
- <div class="close-btn" @click="close"></div>
- <div class="content-area">
- <div class="content">
- <div class="monitor-cont">
- <div class="monitor-list" v-for="(item,index) in monitorList" :key="index" @click="chooseItem(index)">
- <img src="@/assets/images/building_guarantee/img_12.png" class="img" />
- <div class="monitor-info">
- <div class="name">{{item.cameraName}}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import {getCameraList} from "@/api/screen/service";
- export default {
- name: "MonitorLiveList",
- props: {
- monitorName:{
- type: String,
- default: "",
- required: true,
- },
- curCompanMonth:{
- type: Number,
- default: "",
- }
- },
- data() {
- return {
- monitorList: [],
- };
- },
- created() {
- this.getCameraList();
- },
- destroyed() {},
- beforeDestroy() {},
- mounted() {},
- methods: {
- //统一视频(工程现场监控)
- // videoList() {
- // let code = "";
- // videoList(code).then((res) => {
- // if (Number(res.code) === 200) {
- // this.monitorList = res.data
- // }
- // });
- // },
- getCameraList(){
- getCameraList(this.$props.curCompanMonth).then((res) => {
- if (Number(res.code) === 200) {
- this.monitorList = res.data;
- }
- });
- },
- close(){
- this.$emit("closeMonitor")
- },
- //选择单个摄像头
- chooseItem(index){
- this.$emit("chooseMonitor", this.monitorList[index]);
- }
- },
- };
- </script>
- <style lang="scss">
- .el-scrollbar{
- background: #15696B;
- border: 1px solid #00ffff;
- ul{
- li{
- color: #FFF;
- }
- }
- }
- .el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
- background: #15696B;
- color: #00FFFF;
- }
- .el-select-dropdown__item.selected{
- color: #00FFFF;
- }
- .el-select .el-input .el-select__caret{
- display: none;
- }
- .data-week-foods {
- position: relative;
- width: 890px;
- height: 576px;
- background: url("../../../assets/images/main/dialog-bg.png") no-repeat;
- background-size: cover;
- .close-btn{
- position: absolute;
- right: 0;
- top: 0;
- width: 50px;
- height: 50px;
- cursor: pointer;
- }
- .choose-area{
- position: absolute;
- right: 100px;
- top: 7px;
- width: 80.05px;
- height: 30px;
- line-height: 30px;
- padding-left: 15px;
- font-size: 14px;
- color: #00FFFF;
- background: url("../../../assets/images/main/choose_short.png") no-repeat;
- cursor: pointer;
- }
- .content-area {
- display: flex;
- flex-direction: column;
- padding: 15px 20px 0 15px;
- }
- .content-title {
- width: 515px;
- height: 26px;
- background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
- background-size: 100% 100%;
- font-family: PingFang SC;
- font-size: 16px;
- font-weight: bold;
- color: #00ffff;
- padding-left: 17px;
- .title {
- display: block;
- }
- }
- .content {
- width: 100%;
- display: flex;
- flex-direction: row;
- align-items: center;
- .data-list {
- background: radial-gradient(190% 71% at 50% 49%, rgba(21, 105, 107, 0.54) 0%, rgba(27, 95, 97, 0) 100%);
- width: 100%;
- height: 492px;
- padding: 20px;
- overflow: auto;
- white-space: pre-wrap;
- .data-item {
- display: inline-block;
- color: #00FFFF;
- font-weight: bold;
- margin: 0 40px 28px 0;
- font-size: 14px;
- }
- }
- }
- .title-format {
- display: flex;
- flex-direction: row;
- align-items: center;
- img {
- width: 6px;
- height: 24px;
- margin-right: 6px;
- }
- .title-info {
- display: flex;
- flex-direction: column;
- font-size: 12px;
- color: #ffffff;
- .title-en {
- font-size: 8px;
- color: #ffffff;
- opacity: 0.4;
- }
- }
- }
- .choose-area{
- .el-select{
- width: 50%;
- }
- .el-input{
- input{
- background: rgba(255, 255, 255, 0);
- color: #00FFFF;
- border: none;
- padding: 0;
- width: 30px;
- }
- }
- }
- .monitor-cont{
- width:100%;
- display: flex;
- flex-wrap: wrap;
- padding:0 15px 20px;
- background: url("../../../assets/images/main/data_bg6.png") no-repeat;
- background-size: 100% 100%;
- .monitor-list{
- width:151px;
- position: relative;
- margin:0 10px 10px 0;
- cursor: pointer;
- .img{
- display: block;
- width:151px;
- height:104px;
- }
- .monitor-info{
- position: absolute;
- left:0;
- bottom: 0;
- width: 100%;
- height: 25px;
- opacity: 0.55;
- background: #000000;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 8px;
- .name{
- font-size: 13px;
- color: #FFFFFF;
- font-weight: 500;
- }
- .online{
- font-size: 12px;
- color: #00F6EC;
- font-weight: 500;
- }
- .offline{
- font-size: 12px;
- color: #F60000;
- font-weight: 500;
- }
- }
- }
- .monitor-list:nth-child(5n){
- margin-right: 0;
- }
- }
- .title-area{
- padding-left: 40px !important;
- }
- ::-webkit-scrollbar {
- width: 3px;
- height: 3px;
- }
- ::-webkit-scrollbar-thumb {
- //滑块部分
- // border-radius: 5px;
- background-color: #58cbbb;
- }
- ::-webkit-scrollbar-track {
- //轨道部分
- // box-shadow: inset 0 0 5px #ddd;
- background: #ddd;
- // border-radius: 5px;
- }
- }
- </style>
|