Blame view

src/views/machine/videoControlList.vue 1 KB
b25b036d   wuxw   v1.9 优化日期
1
  <template>
f92fd6ac   wuxw   开发我的小区下的功能
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
    <div class="video-control-container">
      <el-card class="box-card">
  
        <el-row :gutter="20">
          <el-col :span="24">
            <camera-control-video ref="cameraControl" />
          </el-col>
        </el-row>
      </el-card>
    </div>
  </template>
  
  <script>
  import CameraControlVideo from '@/components/machine/cameraControlVideo.vue'
  
  export default {
    name: 'VideoControlList',
    components: {
      CameraControlVideo
    },
    data() {
      return {
        communityId: ''
      }
    },
    created() {
      this.getCommunityId()
    },
    methods: {
      async getCommunityId() {
        try {
          const { getCommunityId } = await import('@/api/community/communityApi')
          this.communityId = getCommunityId()
        } catch (error) {
          console.error('Failed to get communityId:', error)
        }
      }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .video-control-container {
    padding: 20px;
  
    .box-card {
      margin-bottom: 20px;
    }
  
    .clearfix {
      font-size: 18px;
      font-weight: bold;
    }
  }
  </style>