<template>
  <div class="flex-row binary" id="unit" v-show="(!echarts)&&(!isActiveTotalForm)">
    <div class="basic-main">
      <div class="flex">
    <div v-show="listpage">
      <new-webmeter-handplan
        :isdeal="true"
        @deal-msg="dealMsg"
        @select-changed="selected"></new-webmeter-handplan>
    </div>
    <!--<div v-show="!listpage">
      <new-watch-deal :row="rowData"
                       @cancel-main="cancel"
      ></new-watch-deal>
    </div>-->
  </div>
</template>

<script>

  export default {
    title: '数据采集',
    name: '数据采集',
    data () {
      return {
        // 页面开关
        listpage: true,
        width: {
          left: '100%',
          right: '0%'
        },
        rowData: {}
      }
    },
    ready () {

    },
    methods: {
    //  selected(row) {
     //   this.rowData = row.val
   //   },
      dealMsg(obj) {
        this.listpage=false
        this.rowData = obj
        console.log(obj)
      },
      cancel(obj) {
        this.listpage=true
      },
    },
    watch: {

    }
  }
</script>

<style scoped>

</style>
