<template>
  <div class="row" style="padding: 10px;">
    <div v-show="listpage">
      <sale-webmeter-handplan
        :isdeal="true"
        @deal-msg="dealMsg"
        @select-changed="selected"></sale-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>
