<template>
  <div id="unit" class="row" :class="{'binary':showItem}">
    <div :class="{'basic-main':!showItem,'binary-left':showItem}" style="height:98%">
      <limit-list @dblclick="idsearch" v-ref:limitlist></limit-list>
    </div>
    <div class="binary-right"  v-show="showItem">
      <limit-history  :row="selectrow"></limit-history>
    </div>
  </div>
</template>

<script>
  import {HttpResetClass} from 'vue-client'
  export default {
    title: '限购管理',
    name: 'LimitManage',
    data () {
      return {
        showItem:false,
        selectrow: null
      }
    },
    created () {
    },
    ready () {
    },
    methods: {
      idsearch(row){
        this.selectrow = null
        this.$refs.limitlist.editList = true
        this.selectrow = row
        this.showItem = true
      }
    },
    events: {
      'close' () {
        this.$refs.limitlist.editList = false
        this.showItem = false
        this.$refs.limitlist.$refs.paged.$refs.criteria.search()
        this.selectrow = null
      },
      'listclose' () {
        this.$refs.limitlist.editList = false
        this.showItem = false
        this.selectrow = null
      },
    }
  }
</script>

<style lang="less">

</style>
