feat: 统一状态字段类型为字符串并重构基础类型

refactor: 重构前后端状态字段类型从布尔值改为字符串
feat: 新增基础类型定义和通用类型接口
refactor: 移除不必要的时间范围字段并统一使用created_time
style: 更新前端组件以匹配新的字段命名
docs: 更新接口文档和类型定义
This commit is contained in:
zhangtao
2025-11-27 23:47:23 +08:00
parent 2c9d66e2a7
commit 0c86069efa
73 changed files with 590 additions and 754 deletions
@@ -195,10 +195,10 @@
/>
<el-table-column label="系统" prop="request_os" min-width="100" />
<el-table-column label="描述" prop="description" min-width="120" show-overflow-tooltip />
<el-table-column label="创建时间" prop="created_at" min-width="200" sortable />
<el-table-column label="创建时间" prop="created_time" min-width="200" sortable />
<el-table-column label="创建人" prop="creator" min-width="120">
<template #default="scope">
{{ scope.row.creator?.name }}
{{ scope.row.created_by?.name }}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" min-width="150">
@@ -287,13 +287,13 @@
{{ formData.login_location }}
</el-descriptions-item>
<el-descriptions-item label="创建人" :span="4">
{{ formData.creator?.name }}
{{ formData.created_by?.name }}
</el-descriptions-item>
<el-descriptions-item label="创建时间" :span="4">
{{ formData.created_at }}
{{ formData.created_time }}
</el-descriptions-item>
<el-descriptions-item label="更新时间" :span="4">
{{ formData.updated_at }}
{{ formData.updated_time }}
</el-descriptions-item>
<el-descriptions-item label="描述" :span="8">
{{ formData.description }}
@@ -540,8 +540,8 @@ const exportColumns = [
{ prop: "request_browser", label: "浏览器" },
{ prop: "request_os", label: "系统" },
{ prop: "description", label: "描述" },
{ prop: "created_at", label: "创建时间" },
{ prop: "updated_at", label: "更新时间" },
{ prop: "created_time", label: "创建时间" },
{ prop: "updated_time", label: "更新时间" },
];
// 导入/导出配置(用于导出弹窗)