<template>
  <div class="DetailPeople">DetailPeople</div>
</template>

<script>
export default {
  name: 'DetailPeople',
  components: {},
  props: {},
  data() {
    return {
      id: '',
      data: [],
    }
  },
  computed: {},
  watch: {},
  onLoad(o) {
    this.id = o.id
    this.$dict.load('householdRelation').then(() => {
      this.getDetail()
    })
  },
  onShow() {},
  methods: {
    getDetail() {
      this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
        if (res.code == 0) {
          this.data = res.data
          // this.$nextTick(() => {
          //   this.currentAreaName = res.data.resident.currentAreaName
          // })
        }
      })
    },
  },
}
</script>

<style scoped lang="scss">
.DetailPeople {
  height: 100%;
}
</style>
