<template>

  <div class="contain-block meterFunc">
      <span class="contain-title-leftblock">
         <i class="iconfont icon-juxing"/>控制测试</span>
    <div class="contain-data">
      <tabControlTest :selectAggregate="selectAggregate"/>
    </div>
  </div>

</template>

<script>
  import tabControlTest from "@/components/point/report/tabControlTest";
  import {queryDataSourceCount} from "@/fetch/point_http"
  import {pointTest, settingValue} from '@/api/scan/request'

  export default {
    name: "index",
    components: {tabControlTest},
    data() {
      return {
        selectAggregate: {
          originList: [], //数据源
          settingList: [],//控制测试列表
        }
      }
    },
    created() {
      this.getOriginList()
    },
    methods: {
      //查询数据源
      getOriginList() {
        queryDataSourceCount({}, res => {
          this.selectAggregate.originList = res.Content.map(i => i.Name).filter(t => t)
        })
      },

    }
  }
</script>

<style lang="less" scoped>
  .contain-block {
    height: 100%;
    background: white;
    width: 100%;

  }

  .contain-title-leftblock {
    height: 30px;
    line-height: 30px;
    /*border-left: 8px solid black;*/
    display: inline-block;
    margin: 8px 0;
    font-weight: 600;
    padding-left: 8px;
    cursor: default;
  }

  .contain-data {
    /*overflow: auto;*/
    height: calc(100% - 46px);
  }

  @media screen and (max-width: 1600px) {
    .meterFunc {
      width: calc(100% - 400px);
    }
  }
</style>
