admin
2024-04-09 3d28cc569ff9bdf20ac56598ae4de8e2809d6f35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<template>
  <div style="width: 100%;height: 100%;">
    <div v-if="showId!=''" v-show="imgSXTUrl!=''" style="height: 100%;width: 100%;">
      <iframe
        :src="imgSXTUrl"
        frameborder="no"
        style="width: 100%; height: 100%"
        scrolling="auto"
      />
    </div>
    <div v-if="imgSXTUrl==''" style="margin-left: calc(50% - 36px);float: left;margin-top: calc(20% - 5px);color: white;">暂无播放源</div>
  </div>
</template>
 
<script>
 
/** 视频信息界面 **/
export default {
  name: 'Index',
  components: {
  },
  props: {
    showId: {
      default: false,
      type: Number
    },
    cameraUrl: {
      default: '',
      type: String
    },
  },
  data() {
    return {
      imgSXTUrl :'',
      lookVideoImgMax: false,
      flvPlayer: {},
    }
  },
  created() {
    if(this.cameraUrl && this.cameraUrl!=''){
      this.joinSXT({playUrl: this.cameraUrl });
    }
  },
  methods: {
    /** 开始连接摄像头 */
    joinSXT(item) {
      this.closeSXT();
      this.imgSXTUrl=item.playUrl;
 
    },
    /** 断开连接摄像头 */
    closeSXT(){
      if(this.imgSXTUrl && this.imgSXTUrl!=''){
        this.imgSXTUrl='';
      }
    },
  }
}
</script>
 
<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;
 
  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
 
}
.login-index-bod{
  width:100%;
  position:relative;
  height:100%;
  background-color:#fff;
  display:flex;
  flex-direction:row;
  justify-content: center;
  justify-items: center;
  padding-top:13%;
}
 
@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
.selectDivP{
  color: #00c6f0;
}
 
 
//弹框头部
::v-deep .el-dialog__header {
  --el-text-color-primary: #565656;
  --el-text-color-regular: #565656;
  padding: 0 !important;
  width: 100%;
  height: 64px;
  background: linear-gradient(90deg, #565656 0%, #565656 100%);
}
//弹框标题
::v-deep .el-dialog__title {
  margin-left: 24px;
  line-height: 64px;
  color: white;
}
//弹框内容部分
::v-deep .el-dialog__body {
  --el-bg-color: #565656 !important;
  --el-text-color-regular: #565656;
  padding: 0px 0px;
}
 
 
</style>