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

const detailSchema = ref<DescriptionsSchema[]>([
  {
    field: 'orgName',
    label: '机构名称'
  },
  {
    field: 'orgNo',
    label: '机构编号'
  },
  {
    field: 'logRecordTime',
    label: '日志记录时间'
  },
  {
    field: 'dataDate',
    label: '操作日期'
  },
  {
    field: 'operationTime',
    label: '操作时间'
  },
  {
    field: 'userName',
    label: '操作账号'
  },
  {
    field: 'userIp',
    label: '操作IP'
  },
  {
    field: 'operationType',
    label: '操作类型'
  },
  {
    field: 'logDetail',
    label: '日志详情'
  }
])

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

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