<template>
  <div>
    <ImportDialog
      :tablename="tablename"
      :main-table="mainTable"
      :title="title"
      :visible="visible"
      :main-id="mainId"
      :custom-import="customImport"
      :father-method="fatherClose"
      @closeDialog="fatherClose"
    />
  </div>
</template>

<script>
import ImportDialog from '../customizedContent/ImportDialog.vue';
export default {
  components: {
    ImportDialog
  },
  filters: {},
  props: {
    visible: { // 获取ID用于多选
      type: Boolean,
      default: false
    },
    pageMsgId: { // 活动明细id
      type: String,
      default: ''
    },
    type: { // 参与商品或者排除商品
      type: String,
      default: ''
    } 
  },
  data() {
    return {
      mainId: '',
      mainTable: '',
      tablename: 'ad_data_permission',
      title: '数据权限',
      customImport: true, // 自定义导入接口
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  destroyed() {},
  methods: {
    fatherClose() {
      this.$emit('closeActionDialog', true);
    }
  }
}
</script>

<style lang="less" scoped>
</style>
