<template>
  <div class="flex">
    <section>
      <div class="row"  style="height: 100%" :class="{'basic-main':!showItem,'binary':showItem}">
        <div :class="{'binary-left':showItem}" >
           <check-hand-plan-area-list v-ref:arealist @select-changed="selected" @clearright="clearright"></check-hand-plan-area-list>
        </div>
        <div :class="{'binary-right':showItem}" v-show="showItem">
          <check-hand-plan-area-item-info v-ref:areainfo
                                     v-if="$refs.arealist && $refs.arealist.selected"
                                     :check.sync="$refs.arealist.selected"
          ></check-hand-plan-area-item-info>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  title: "移动抄表小区统计",
  data () {
    return {
      showItem: false,
    }
  },
  methods: {
    selected(row) {
      this.showItem = true
    },
    clearright() {
      this.showItem = false
    }
  }
}
</script>

<style scoped>
.form-input-group label {
  text-align: right;
  width: auto;
}

.datapanel {
  color: #333;
  background-color: white;
  box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
  padding: 5px 7px 5px 7px;
  border-radius: 10px;
}
.binary-left {
  width: 53%;
}
.binary-right {
  width: 47%;
}
</style>
