瀏覽代碼

在二维码管理视图中添加激活时间和最后扫描时间列,以增强信息展示

wuyi 6 天之前
父節點
當前提交
5f86a624d2
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/views/QrCodeManageView.vue

+ 10 - 0
src/views/QrCodeManageView.vue

@@ -578,6 +578,16 @@ onMounted(() => {
           {{ formatDate(slotProps.data.createdAt) }}
         </template>
       </Column>
+      <Column field="activatedAt" header="激活时间" style="min-width: 180px">
+        <template #body="slotProps">
+          {{ formatDate(slotProps.data.activatedAt) }}
+        </template>
+      </Column>
+      <Column field="lastScanAt" header="最后扫描时间" style="min-width: 180px">
+        <template #body="slotProps">
+          {{ formatDate(slotProps.data.lastScanAt) }}
+        </template>
+      </Column>
       <Column header="操作" style="min-width: 350px" :pt="{ columnHeaderContent: { class: 'justify-center' } }">
         <template #body="slotProps">
           <div class="flex gap-1 justify-center">