<template>
  <div>
    <a-card title="灰名单提示管理">
      <a-button type="primary" slot="extra" @click="$refs.eidt.show({blacklistType})">新增灰名单提示</a-button>
      <IdList ref="identity" @edit="handleEdit"></IdList>
    </a-card>
    <Edit ref="eidt" @update="handleUpdate"></Edit>
  </div>
</template>

<script>
import IdList from './IdList'
import Edit from './Edit'

export default {
  components: {
    Edit,
    IdList
  },
  data () {
    return {
      blacklistType: 'identity'
    }
  },
  methods: {
    handleUpdate () {
      this.$refs[this.blacklistType].getList()
    },
    handleEdit (record) {
      this.$refs.eidt.show({ blacklistType: this.blacklistType, record })
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
