<!-- 证书管理 打印记录 -->
<script name="taskMeasureCertificateChangeRecord" lang="ts" setup>
import type { Ref } from 'vue'
import { onMounted, ref } from 'vue'
import dayjs from 'dayjs'
import type { IPrintRecord } from '../cert-interface'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import useUserStore from '@/store/modules/user'

defineProps({
  pageType: { // 页面类型 add新建 edit编辑 detail详情
    type: String,
    default: 'detail',
  },
})
const user = useUserStore() // 用户信息
const list = ref<IPrintRecord[]>([]) // 表格数据
const columns = ref<TableColumn[]>([ // 表头
  { text: '打印人', value: 'printName', align: 'center' },
  { text: '打印时间', value: 'printTime', align: 'center' },
])
// -------------------------------------------钩子------------------------------------------------
onMounted(async () => {
})
</script>

<template>
  <detail-block title="打印记录">
    <el-table
      :data="list"
      border
      style="width: 100%;"
    >
      <el-table-column align="center" label="序号" width="80" type="index" />
      <el-table-column
        v-for="item in columns"
        :key="item.value"
        :prop="item.value"
        :label="item.text"
        :width="item.width"
        align="center"
      />
    </el-table>
  </detail-block>
</template>
