feat(queue): 完成调度队列页面并添加脚本下拉框功能

- 重新设计了队列页面布局,使用表格代替原来的卡片布局
- 添加了脚本下拉框功能,支持选择已有的脚本
- 简化了队列项的展示内容,只显示脚本名称
- 优化了队列项的编辑和删除操作
- 新增了获取脚本下拉框信息的 API 接口
This commit is contained in:
2025-08-12 22:26:15 +08:00
parent bc6ae5562e
commit 9fb25a2d33
18 changed files with 412 additions and 265 deletions

View File

@@ -71,17 +71,17 @@
/>
</div>
</div>
<div class="section-controls">
<a-space>
<span class="status-label">状态</span>
<a-switch
v-model:checked="currentQueueEnabled"
@change="onQueueStatusChange"
checked-children="启用"
un-checked-children="禁用"
/>
</a-space>
</div>
<!-- <div class="section-controls">-->
<!-- <a-space>-->
<!-- <span class="status-label">状态</span>-->
<!-- <a-switch -->
<!-- v-model:checked="currentQueueEnabled" -->
<!-- @change="onQueueStatusChange"-->
<!-- checked-children="启用"-->
<!-- un-checked-children="禁用"-->
<!-- />-->
<!-- </a-space>-->
<!-- </div>-->
</div>
<!-- 定时项组件 -->
@@ -353,11 +353,7 @@ const refreshQueueItems = async () => {
if (queueItemData?.Info) {
queueItems.push({
id: queueItemId,
name: queueItemData.Info.name || `项目 ${queueItemId}`,
script: queueItemData.Info.script || '',
plan: queueItemData.Info.plan || '',
status: queueItemData.Info.status || 'inactive',
description: queueItemData.Info.description || ''
script: queueItemData.Info.ScriptId || ''
})
}
} catch (itemError) {