<template>
  <el-dialog title="上传失败的客户" :visible.sync="visible" width="70%" append-to-body>
    <common-table v-loading="pageLoading" :table-data="tableData" :table-coloumns="tableColoumns" :pagination="false" :isShowFilter="false">
    </common-table>
    <div slot="footer" class="dialog-footer">
      <!-- <el-button @click="onClose">取 消</el-button> -->
      <el-button type="primary" @click="onClose">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
import CommonTable from '@/components/Common/common-table'

export default {
  components: {
    CommonTable
  },
  props: {
    modalTitle: {
      type: String,
      default: ''
    },
    tableData: {
      type: Array,
      default: () => []
    }
  },
  computed: {},
  watch: {
    visible(val) {
      val && this.getInitData()
    }
  },
  data() {
    return {
      visible: false,
      pageLoading: false,
      tableColoumns: [
        {
          prop: 'custType',
          label: '客户类型',
          align: 'left'
        },
        {
          prop: 'custId',
          label: '客户号',
          align: 'left'
        },
        {
          prop: 'custIsn',
          label: '客户内码',
          align: 'left'
        },
        {
          prop: 'custIdType',
          label: '证件类型',
          align: 'left'
        },
        {
          prop: 'anchorName',
          label: '客户名称',
          align: 'left'
        },
        {
          prop: 'legalId',
          label: '证件号',
          align: 'left'
        },
        {
          prop: 'anchorRemark',
          label: '备注',
          align: 'left'
        },
        {
          prop: 'addressZc',
          label: '注册地址',
          align: 'left'
        },
        {
          prop: 'addressJy',
          label: '经营地址',
          align: 'left'
        },
        {
          prop: 'belongBusiness',
          label: '所在行业'
        }
      ]
    }
  },
  methods: {
    getInitData() {},

    onClose() {
      this.visible = false
    },
    onOpen() {
      this.visible = true
    }
  }
}
</script>

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