<script name="filesInfo" setup>
import Accessory from '@/components/accessory/index.vue'

defineProps({
  detailData: Object,
  isDownLoadFile: {
    type: Boolean,
    default: true
  }
})
</script>

<template>
  <el-descriptions :column="2" border>
    <el-descriptions-item v-if="detailData.constructionPlanFile" label="建设方案">
      <accessory :file-name="JSON.parse(detailData.constructionPlanFile).fileName" :file-id="JSON.parse(detailData.constructionPlanFile).fileId" :is-down-load="isDownLoadFile" />
    </el-descriptions-item>
  </el-descriptions>
</template>
