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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'rulecode',
    label: '模型编号'
  },
  {
    field: 'rulename',
    label: '模型名称'
  },
  {
    field: 'bfnum',
    label: '监测预警的交易'
  },
  {
    field: 'qbnum',
    label: '全部交易量'
  },
  {
    field: 'organname',
    label: '机构名称'
  },
  {
    field: 'yjnum',
    label: '预警率'
  }
])

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

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