feat: 格式化用户详情模态框操作日志中的时间显示。

This commit is contained in:
Wei_佳 2025-11-24 10:42:26 +08:00
parent e2c8744d14
commit 1a4880ef4a
2 changed files with 11 additions and 3 deletions

View File

@ -5,5 +5,5 @@ VITE_PUBLIC_PATH = '/'
VITE_USE_PROXY = true
# base api
# VITE_BASE_API = 'http://139.224.70.152:9990/api/v1'
VITE_BASE_API = 'http://127.0.0.1:9999/api/v1'
VITE_BASE_API = 'http://139.224.70.152:9990/api/v1'
# VITE_BASE_API = 'http://127.0.0.1:9999/api/v1'

View File

@ -1,6 +1,7 @@
<script setup>
import { computed, ref, watch, h } from 'vue'
import { NModal, NButton, NTabs, NTabPane, NDataTable, NSpin } from 'naive-ui'
import { formatDate } from '@/utils'
const props = defineProps({
visible: {
@ -45,7 +46,14 @@ const invoiceColumns = [
]
const logColumns = [
{ title: '操作时间', key: 'operation_time', width: 180 },
{
title: '操作时间',
key: 'created_at',
width: 180,
render(row) {
return row.created_at ? formatDate(row.created_at, 'YYYY-MM-DD HH:mm:ss') : '-'
},
},
{ title: '操作人', key: 'operator_name', width: 120 },
{ title: '操作记录', key: 'operation_detail', ellipsis: { tooltip: true } },
]