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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'pkid',
    label: '编号'
  },
  {
    field: 'modelName',
    label: '模型名称'
  },
  {
    field: 'modelCode',
    label: '模型编码'
  },
  {
    field: 'modelGrading',
    label: '模型粒度'
  },
  {
    field: 'modelCrime',
    label: '模型涉罪类型'
  },
  {
    field: 'modelComment',
    label: '模型描述'
  },
  {
    field: 'modelScore',
    label: '触发模型条件所需分数'
  },
  {
    field: 'modelType',
    label: '模型实现方式'
  },
  {
    field: 'modelFormula',
    label: '模型公式 '
  },
  {
    field: 'status',
    label: '模型状态'
  }
])

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

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