<script setup lang="tsx">
import { PropType, ref } from 'vue'
import { TableData } from '@/api/srdb/RegulatoryIndicators/RegulatoryIndicators/types'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'filePath',
    label: '文件绝对路径,包含文件名'
  },
  {
    field: 'orgNo',
    label: '机构编号'
  },
  {
    field: 'filePwd',
    label: '文件压缩密码'
  },
  {
    field: 'fileMd5',
    label: '文件MD5校验码'
  },
  {
    field: 'notifyTime',
    label: '指标通知下发时间'
  },
  {
    field: 'createTime',
    label: '数据库记录创建的时间'
  }
])

defineProps({
  currentRow: {
    type: Object as PropType<TableData>,
    default: () => {}
  }
})
</script>

<template>
  <Descriptions :schema="detailSchema" :data="currentRow || {}" />
</template>
