Files
Nexus/docs/changelog/2026-06-08-unified-execution-records.md
T
Nexus Agent 08a0157c95 feat: 调度表单重构、登录门控、批量任务与页面缓存对齐
调度页执行周期可视化/单次执行/分类选机/推送源对齐;登录 IP 门控与无缝导航;
服务器批量后台任务、执行记录、凭据合并、各页激活刷新与错误提示修复。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 11:17:21 +08:00

36 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-08 — 执行记录看板(脚本 + 服务器批量任务)
## 摘要
侧栏「脚本看板」更名为 **执行记录**;列表合并脚本执行与服务器批量操作(安装/升级/卸载 Agent、检测路径、健康检查、改分类等),详情页统一展示逐台 stdout/error。
## 动机
服务器列表批量操作改后台后,结果分散在弹窗、Redis、审计日志,与脚本执行看板割裂,不便查阅完整日志。
## 涉及文件
- `server/application/services/execution_record_service.py` — 合并列表/详情
- `server/api/execution_records.py``GET /api/execution-records`
- `frontend/src/pages/ScriptRunsPage.vue` — UI 更名 + 统一列表/详情
- `frontend/src/router/index.ts``/executions` 路由(保留 `/script-runs` 兼容)
- `frontend/src/App.vue` — 侧栏、完成通知跳转
- `frontend/src/composables/useServerBatchJobViewer.ts` — 改为跳转详情页
## 查看方式
| 入口 | 说明 |
|------|------|
| 侧栏 **执行记录** | 脚本 + 服务器任务合并列表,可按类型/状态筛选 |
| 任务完成通知 → 查看详情 | 跳转 `#/executions/{id}?kind=script\|server_batch` |
| 审计日志 → 查看结果 | 同上(服务器批量) |
| 旧链 `#/script-runs/{id}` | 仍可用(脚本,无 kind 时默认 script |
## 验证
```bash
bash scripts/local_verify.sh
cd frontend && npm run build
# 批量检测路径 → 执行记录列表出现「服务器」类型 → 详情看逐台日志
```