feat: 重构云端变量记录页面,支持动态列和服务端分页

- 使用项目 DataTable 组件替换原生 table
- 根据记录数据动态生成表格列
- 支持服务端分页、搜索、日期筛选
- 添加单条/批量删除确认对话框
- 添加路由配置和国际化文本
- 更新 pnpm-lock.yaml 修复 Docker 构建问题
This commit is contained in:
2026-05-07 19:10:25 +08:00
parent fa281040d0
commit d01e20dfd5
6 changed files with 336 additions and 1500 deletions
+24 -1
View File
@@ -1935,7 +1935,30 @@
"appRequired": "Please select application",
"scope": "Scope"
},
"createDescription": "Add a new cloud variable"
"createDescription": "Add a new cloud variable",
"records": {
"title": "Variable Records",
"description": "View records for variable {key}",
"user": "User",
"data": "Data",
"createdAt": "Created At",
"search": "Search",
"searchPlaceholder": "Search records...",
"startDate": "Start Date",
"endDate": "End Date",
"total": "{count} records total",
"maxRecords": "Max {count} records",
"notStreamType": "This variable is not a record type",
"deleteRecord": "Delete Record",
"deleteConfirm": "Are you sure you want to delete this record?",
"deleteSuccess": "Deleted successfully",
"deleteFailed": "Failed to delete",
"batchDelete": "Batch Delete",
"batchDeleteConfirm": "Are you sure you want to delete {count} selected records?",
"batchDeleteSuccess": "Batch delete successful",
"batchDeleteFailed": "Batch delete failed",
"noSelection": "Please select records to delete"
}
},
"cloudFunction": {
"title": "Cloud Function",
+24 -1
View File
@@ -1924,7 +1924,30 @@
"appRequired": "请选择应用",
"scope": "作用域"
},
"createDescription": "添加新的云端变量"
"createDescription": "添加新的云端变量",
"records": {
"title": "变量记录",
"description": "查看变量 {key} 的记录数据",
"user": "用户",
"data": "数据",
"createdAt": "创建时间",
"search": "查询",
"searchPlaceholder": "搜索记录...",
"startDate": "开始日期",
"endDate": "结束日期",
"total": "共 {count} 条记录",
"maxRecords": "最大 {count} 条",
"notStreamType": "该变量不是记录类型",
"deleteRecord": "删除记录",
"deleteConfirm": "确定要删除该条记录吗?",
"deleteSuccess": "删除成功",
"deleteFailed": "删除失败",
"batchDelete": "批量删除",
"batchDeleteConfirm": "确定要删除选中的 {count} 条记录吗?",
"batchDeleteSuccess": "批量删除成功",
"batchDeleteFailed": "批量删除失败",
"noSelection": "请选择要删除的记录"
}
},
"cloudFunction": {
"title": "云端函数",