<template>
  <div >
    <person-list @select-changed="selected" v-ref:list></person-list>
  </div>
</template>

<script>
export default {
  title: '人员部门管理',
  props: ['data'],
  data () {
    return {
      row: null,
      isChange: false
    }
  },
  methods: {
    selected (obj) {
      this.row = obj.val
      this.isChange = true
    }
  },
  events: {
    'search' () {
      this.isChange = false
    },
    'refresh' () {
      this.row = null
      this.isChange = false
      this.$refs.list.$refs.paged.$refs.cri.search()
    }
  }
}

</script>
