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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'warnDt',
    label: '日期'
  },
  {
    field: 'organcode',
    label: '机构'
  },
  {
    field: 'modelCode',
    label: '模型编号'
  },
  {
    field: 'modelName',
    label: '模型名称'
  },
  {
    field: 'modelSorc',
    label: '及格分'
  },
  {
    field: 'ruleCnum',
    label: '触发客户数'
  },
  {
    field: 'warnCnum',
    label: '预警客户数'
  },
  {
    field: 'ruleTnum',
    label: '触发流水'
  },
  {
    field: 'warnTnum',
    label: '预警流水'
  }
])

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

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