feat(frontend): 恢复服务器批量检测路径并修复推送目标路径
补回 SPA 迁移丢失的 detect-path 确认框与结果弹窗,推送页留空走各机 target_path,文件页默认 50 条/页。
This commit is contained in:
@@ -340,7 +340,7 @@ Agent(60s) → POST /api/agent/heartbeat
|
||||
|
||||
### 9.3 服务器 `/api/servers`
|
||||
|
||||
CRUD、stats、categories、logs、CSV import/export、batch agent install/upgrade/uninstall、health check、files-capability、setup-files-sudo、单台 agent 操作。
|
||||
CRUD、stats、categories、logs、CSV import/export、batch agent install/upgrade/uninstall、**batch detect-path**(SSH 搜索 `workerman.bat` 自动写入 `target_path`)、health check、files-capability、setup-files-sudo、单台 agent 操作。
|
||||
|
||||
### 9.4 同步 `/api/sync`(`sync_v2.py`,核心)
|
||||
|
||||
@@ -536,7 +536,9 @@ main.ts → App.vue(侧栏/搜索)→ router-view
|
||||
| **快速添加(仅 IP)** | `POST /servers/add-by-ip` — 轮询全部密码/SSH 预设;成功返回 `matched_preset` / `matched_username` |
|
||||
| **连接失败列表** | `GET /servers/pending` |
|
||||
| **失败重试 / 删除** | `POST /servers/pending/{id}/retry`、`DELETE /servers/pending/{id}` |
|
||||
| 批量选择 | 安装/升级/卸载 Agent、健康检查、删除 |
|
||||
| 批量选择 | 安装/升级/卸载 Agent、**检测目标路径**、健康检查、删除 |
|
||||
| **检测目标路径** | `POST /servers/batch/detect-path` — Body: `{ server_ids }`;SSH 在 `/www/wwwroot` 下找 `workerman.bat`,将所在目录写入 `target_path`;结果弹窗逐台展示 |
|
||||
| **列表快捷编辑** | 目标路径列 ✏️ → `PUT /servers/{id}` `{ target_path }` |
|
||||
| CSV 导出 | 客户端生成(无密码列) |
|
||||
| CSV 导入 | `POST /servers/import` FormData |
|
||||
| 详情面板 | 系统信息 + `GET /servers/{id}/logs` |
|
||||
|
||||
Reference in New Issue
Block a user