<template>
  <Card title="监控录像">
    <VideoModule  class="playVideoBox"
    style="height:200px;width:600px"
    :type="'1x1'"
        :value="selectList"
        :displayBottomMod="false"
        :winNumBer="9"
        :autoplay="false"
        :showCaptrue="false"
        :showControl="false"
        :showPlayback="false"
        :xxx="7"
      ></VideoModule>
  </Card>
</template>

<script>
import Card from "../components/Card.vue";
import { getReceiptOrIssueRecord } from '@/assets/js/api/markingRoom'
import { getComapnyStatisticsListApi, getComapnyVideoListApi, getComapnyParentNameApi } from '@/assets/js/api/company/project'
import VideoModule from "@/components/videoModule/videoModule.vue";
export default {
  components: { Card,VideoModule },
  data() {
    return {
      typeList:{
        1:"入库",
        2:"出库",
        3:"出库"
      },
      sn:'',
      carList:[],
      selectList:[],
        value1:'2',
        typeList: [{
          value: '1',
          label: '2屏'
        }, {
          value: '2',
          label: '4屏'
        }, {
          value: '3',
          label: '9屏'
        }],
    };
  },
  mounted(){
    this.getList()
  },
  methods:{
    getList(){
      this.sn = this.$store.state.projectSn
      // getReceiptOrIssueRecord({ projectSn: this.sn }).then(res => {
      //   this.selectList = res.result
      //   console.log('this.carList ',this.selectList);
      // })

      getComapnyStatisticsListApi({
        sn: this.sn,
        videoType: 1,
        standardType:  1 
      }).then(res => {
        
        this.treeData = res.result.companyList
          ? res.result.companyList
          : res.result.projectList
          ? res.result.projectList
          : res.result.videoList
          this.treeData.forEach(element => {
            if(element.serialNumber == "c857ef822c014c7cbd40ad463ff84da7") {
              this.selectList = [element]
            }
          });
          console.log('-----tree',this.treeData)
  
      })
    }
    
  }
};
</script>

<style lang="less" scoped>
.playVideoBox{
    box-sizing: border-box;
    padding-top: 20px;
}
</style>
