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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '风险等级编号'
  },
  {
    field: 'levelkey',
    label: '风险级别KEY'
  },
  {
    field: 'levelname',
    label: '风险等级名称'
  },
  {
    field: 'leveldes',
    label: '风险等级描述'
  },
  {
    field: 'levelmax',
    label: '最高分'
  },
  {
    field: 'levelmin',
    label: '最低分'
  },
  {
    field: 'corporateNo',
    label: '法人号'
  },
  {
    field: 'corporateOrgNo',
    label: '机构'
  }
])

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

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