From 9bf63354be48e1e0915fdac6d6827c1a1c23884f Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Sun, 1 Feb 2026 17:58:30 +0800
Subject: [PATCH] feat: enhance UI for SubAgent and CronJob management with
beta indicators
---
dashboard/src/views/CronJobPage.vue | 35 ++++-----
dashboard/src/views/SubAgentPage.vue | 103 ++++++---------------------
2 files changed, 36 insertions(+), 102 deletions(-)
diff --git a/dashboard/src/views/CronJobPage.vue b/dashboard/src/views/CronJobPage.vue
index 08c9e8703..3c58c642c 100644
--- a/dashboard/src/views/CronJobPage.vue
+++ b/dashboard/src/views/CronJobPage.vue
@@ -2,7 +2,10 @@
-
未来任务管理
+
+
未来任务管理
+ Beta
+
查看给 AstrBot 布置的未来任务。AstrBot 将会被自动唤醒、执行任务,然后将结果告知任务布置方。
@@ -18,14 +21,8 @@
暂无任务。
-
+
{{ item.name }}
{{ item.description }}
@@ -42,14 +39,8 @@
{{ item.note || '—' }}
-
+
删除
@@ -73,12 +64,12 @@ const jobs = ref([])
const snackbar = ref({ show: false, message: '', color: 'success' })
const headers = [
- { title: '名称', key: 'name', minWidth: 200 },
+ { title: '名称', key: 'name', minWidth: '200px' },
{ title: '类型', key: 'type', width: 110 },
- { title: 'Cron', key: 'cron_expression', minWidth: 160 },
- { title: '下一次执行', key: 'next_run_time', minWidth: 160 },
- { title: '最近执行', key: 'last_run_at', minWidth: 160 },
- { title: '说明', key: 'note', minWidth: 220 },
+ { title: 'Cron', key: 'cron_expression', minWidth: '160px' },
+ { title: '下一次执行', key: 'next_run_time', minWidth: '160px' },
+ { title: '最近执行', key: 'last_run_at', minWidth: '160px' },
+ { title: '说明', key: 'note', minWidth: '220px' },
{ title: '操作', key: 'actions', width: 160, sortable: false }
]
diff --git a/dashboard/src/views/SubAgentPage.vue b/dashboard/src/views/SubAgentPage.vue
index 5e407dfdf..2aa404ac3 100644
--- a/dashboard/src/views/SubAgentPage.vue
+++ b/dashboard/src/views/SubAgentPage.vue
@@ -2,7 +2,10 @@
-
SubAgent 编排
+
+
SubAgent 编排
+ Beta
+
主 LLM 只负责聊天与分派(handoff),工具挂载在各个 SubAgent 上。
@@ -18,16 +21,8 @@
-
+
@@ -45,29 +40,17 @@
SubAgents
-
+
新增 SubAgent
-
+
-
+
{{ agent.enabled ? '启用' : '停用' }}
@@ -78,23 +61,12 @@
-
+
启用
-
+
删除
@@ -104,52 +76,24 @@
-
+
-
+
-
+
-
+
@@ -468,5 +412,4 @@ onMounted(() => {
.subagent-tools .v-field__input {
padding-right: 6px;
}
-