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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'systemCode',
    label: '系统编码'
  },
  {
    field: 'systemName',
    label: '系统名称'
  },
  {
    field: 'systemVersion',
    label: '系统版本号'
  },
  {
    field: 'createUser',
    label: '创建人'
  },
  {
    field: 'createTime',
    label: '创建时间'
  },
  {
    field: 'startTime',
    label: '开始时间'
  },
  {
    field: 'endTime',
    label: '结束时间'
  }
])

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

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