feat:正式支持图形化映射编辑器,实现半自动化

This commit is contained in:
2026-01-30 10:58:05 +08:00
parent 208d397236
commit 9ecb392a41
2 changed files with 1141 additions and 0 deletions

View File

@@ -257,6 +257,23 @@
(Transitions)</h3>
<div class="bg-yellow-50 border border-yellow-200 rounded p-3 mb-3 text-xs text-yellow-800 hidden"
id="transWarning"></div>
<!-- 手动扫描 Transition -->
<div class="mb-4 p-3 bg-purple-50 border border-purple-200 rounded">
<p class="text-xs text-purple-700 mb-2">输入工单 Key 扫描该工单当前可用的状态流转,扫描结果会追加到下拉菜单中</p>
<div class="flex gap-2">
<input type="text" id="transIssueKey" placeholder="例如: TEST-123"
class="flex-1 border rounded px-3 py-2 text-sm focus:ring-2 focus:ring-purple-500 outline-none uppercase">
<button onclick="scanTransitions()" id="scanTransBtn"
class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded text-sm font-medium transition whitespace-nowrap">
扫描流转
</button>
</div>
<div id="transResult" class="mt-2 text-sm"></div>
<div id="transError"
class="hidden mt-2 bg-red-50 text-red-700 p-2 rounded text-xs border border-red-200"></div>
</div>
<div class="grid grid-cols-1 gap-3">
<div class="flex items-center justify-between bg-gray-50 p-3 rounded border">
<span class="font-mono text-sm font-medium text-gray-700">关闭 (Close)</span>