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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'rulecode',
    label: '规则编码'
  },
  {
    field: 'rariable',
    label: '变量名称'
  },
  {
    field: 'valuestr',
    label: '变量值'
  },
  {
    field: 'attribute1',
    label: '变量描述'
  },
  {
    field: 'attribute2',
    label: '主键'
  },
  {
    field: 'organCode',
    label: '机构号'
  },
  {
    field: 'lawerMan',
    label: '法人代码'
  },
  {
    field: 'userId',
    label: '用户名'
  },
  {
    field: 'status',
    label: '审核状态'
  }
])

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

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