- 新增 web/batch.html + batch.js:目录树选择器(懒加载,本地后端 提供 roots/dirs 接口)、工作流下拉、进度与产物下载 - 四个页面导航栏增加"批量处理"入口;styles.css 补齐批量页样式
88 lines
3.2 KiB
HTML
Executable File
88 lines
3.2 KiB
HTML
Executable File
<!doctype html>
|
|
<!-- VRSub 工作流编排页:以 DAG JSON 创建/更新工作流并发布。 -->
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>VRSub 工作流</title>
|
|
<link rel="stylesheet" href="/assets/styles.css?v=2" />
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<a class="brand" href="/">VRSub</a>
|
|
<nav>
|
|
<a href="/">应用中心</a>
|
|
<a href="/tasks.html">任务管理</a>
|
|
<a href="/batch.html">批量处理</a>
|
|
<a href="/admin.html">管理后台</a>
|
|
<a href="/workflow.html">工作流</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container">
|
|
<h1>工作流编排</h1>
|
|
|
|
<!-- 工作流编辑器:新建或加载已有工作流的最新/指定版本进行编辑。
|
|
保存动作会为工作流追加一个新版本(工作流即数据,改参数不改代码)。 -->
|
|
<section class="panel">
|
|
<h2>工作流编辑器</h2>
|
|
<p id="editMode" class="muted">新建工作流:填写 ID 与 DAG 后保存。</p>
|
|
<label for="workflowId">工作流 ID(编辑模式下锁定)</label>
|
|
<input id="workflowId" type="text" placeholder="如 subtitle-demo" />
|
|
<label for="workflowName">名称</label>
|
|
<input id="workflowName" type="text" placeholder="如 视频字幕生成" />
|
|
<label for="workflowDescription">描述</label>
|
|
<input id="workflowDescription" type="text" placeholder="可选" />
|
|
<label for="workflowDefinition">DAG JSON(含各节点参数与依赖边)</label>
|
|
<textarea id="workflowDefinition" rows="22"></textarea>
|
|
<div class="actions">
|
|
<button id="saveWorkflow" class="primary">创建工作流</button>
|
|
<button id="resetWorkflow" class="ghost">新建工作流</button>
|
|
<button id="publishWorkflow" class="ghost">发布</button>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 版本历史:查看指定工作流的全部版本,可把任意版本加载回编辑器。 -->
|
|
<section class="panel" id="versionPanel" hidden>
|
|
<h2 id="versionPanelTitle">版本历史</h2>
|
|
<div class="table-wrap">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>版本</th>
|
|
<th>创建时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="versionList"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="actions">
|
|
<button id="closeVersions" class="ghost">关闭</button>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 工作流列表:支持加载到编辑器、查看版本、发布与删除。 -->
|
|
<section class="panel">
|
|
<h2>工作流列表</h2>
|
|
<div class="table-wrap">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>名称</th>
|
|
<th>版本</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="workflowList"></tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<script src="/assets/app.js?v=2"></script>
|
|
</body>
|
|
</html>
|