<template>
  <div class="check">
    <el-alert :title="$t('import.importFinish')" type="success" show-icon :closable="false">
      {{ $t('import.sucMsg', [successList.length]) }}
    </el-alert>
  </div>
</template>

<script>
export default {
  name: 'DataCheck',
  props: {
    uploadResult: {
      type: Array,
      required: true,
      desc: '模板数据校验结果'
    }
  },
  computed: {
    successList() {
      return this.uploadResult?.flatMap(item => item.successList || [])
    },
  }
}
</script>

<style scoped>
.check {
  padding: 30px;
}
</style>
