<!-- 导入成功 -->
<template>
  <div>
    <dialog-edit :visible.sync="dialogVisible"
                 :editModel="editModel"
                 :form="form"
                 :api="api"
                 width="30%"
                 :title="$t('feedbackMaterialIndex.importResult')"
                 :footerBtnShow="footerBtnShow"
                 @close="close">
      <ul class="feedbackImportData">
        <!--导入数-->
        <li><span>{{$t('feedbackMaterialIndex.importNumber')}}</span><span>{{form.importNumber}}</span></li>
        <!--导入失败数-->
        <li><span>{{$t('feedbackMaterialIndex.failNumber')}}</span><span>{{form.failNumber}}</span></li>
        <!--导入成功数-->
        <li><span>{{$t('feedbackMaterialIndex.successfulNumber')}}</span><span>{{form.successfulNumber}}</span></li>
      </ul>
    </dialog-edit>
  </div>
</template>

<script>
import { DialogEdit, dymForm } from 'newepoch-components'
import feedbackMaterialApi from '@/api/assetaudit/feedbackMaterial/feedbackMaterialApi'
import ReviewMateriallInput from '@/components/element/assetaudit/ReviewMateriallInput'
import BasePage from '@/pages/baseEditPage'
export default {
  extends: new BasePage(),
  components: {
    DialogEdit, dymForm, ReviewMateriallInput
  },
  props: {
    form: {
      type: Object,
      default () {
        return {}
      }
    },
    editModel: {
      type: String,
      default () {
        return 'V'
      }
    }
  },
  data () {
    return {
      footerBtnShow: true
    }
  },
  computed: {
    api () {
      return feedbackMaterialApi.feedbackmaterial
    }
  },
  methods: {
    // 关闭画面，一览界面查询
    close () {
      this.$emit('operateBtnClick', true)
      this.dialogVisible = false
    }
  }
}
</script>
