<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';

  export default {
    components: { ImportDialog },
    props: {
      visible: { // 获取ID用于多选
        type: Boolean,
        default: false
      },
      pageMsgId: { // 活动明细id
        type: String,
        default: ''
      },
    },
    data() {
      return {
        tablename: 'T_OMSJITAUTOPOLICYITEM',
        mainTable: 'T_OMSJITAUTOMATICPOLICY',
        mainId: this.pageMsgId,
        title: '策略明细',
        customImport: true,
      };
    },
    methods: {
      fatherClose() {
        this.$emit('closeActionDialog', true);
      }
    }
  };
</script>
