新增数字人版本管理

This commit is contained in:
super
2026-06-14 19:00:55 +08:00
parent ac19637ad6
commit f44110fae5
15 changed files with 971 additions and 32 deletions

View File

@@ -916,19 +916,33 @@
</div>
</div>
<!-- 版本管理 -->
<!-- 数字人版本管理 -->
<div id="panel-version" class="tab-panel">
<div class="form-box">
<h3 style="margin-bottom:16px;font-size:15px;">发布新版本</h3>
<div class="form-group">
<label>版本号</label>
<input type="text" id="versionNumber" placeholder="例如1.0.0">
<h3 style="margin-bottom:16px;font-size:15px;">上传新版本</h3>
<p style="margin-bottom:16px;font-size:13px;color:#666;">
上传数字人程序 ZIP 包,系统会自动计算 MD5 并存储到 OSS。上传后状态为草稿需要手动发布。
</p>
<div class="form-row">
<div class="form-group" style="min-width:200px;">
<label>版本号 *</label>
<input type="text" id="versionNumber" placeholder="例如1.0.0">
</div>
<div class="form-group" style="min-width:200px;">
<label>最低客户端版本</label>
<input type="text" id="versionMinClientVersion" placeholder="例如2.0.0(可选)">
</div>
</div>
<div class="form-group">
<label>ZIP 压缩包</label>
<label>更新日志</label>
<textarea id="versionChangelog" rows="3" placeholder="例如:修复数字人口型同步问题,优化启动速度" style="width:100%;padding:10px;border:1px solid #ddd;border-radius:6px;resize:vertical;"></textarea>
</div>
<div class="form-group">
<label>ZIP 压缩包 *</label>
<input type="file" id="versionZip" accept=".zip">
<p style="font-size:12px;color:#999;margin-top:4px;">仅支持 .zip 格式文件名ShuFuDigitalHuman.zip</p>
</div>
<button class="btn" id="btnUploadVersion">上传并发布</button>
<button class="btn" id="btnUploadVersion">上传(草稿状态)</button>
<p class="msg" id="msgVersion"></p>
</div>
<div class="panel-box">
@@ -936,14 +950,19 @@
<table>
<thead>
<tr>
<th>版本号</th>
<th>下载链接</th>
<th>发布时间</th>
<th>操作</th>
<th style="width:80px;">版本号</th>
<th style="width:60px;">状态</th>
<th style="width:60px;">最新</th>
<th style="width:80px;">文件大小</th>
<th style="width:120px;">MD5</th>
<th>更新日志</th>
<th style="width:140px;">发布时间</th>
<th style="width:240px;">操作</th>
</tr>
</thead>
<tbody id="versionListBody"></tbody>
</table>
<div class="pagination" id="versionPagination"></div>
</div>
</div>