merge: integrate AgentBus account workers

This commit is contained in:
inman committed 2026-09-02 15:15:01 +08:00
commit b5f58477d9
30 files changed
+1054 -257

No files matched your search

+5 -3
View File
@@ -91,13 +91,14 @@
<div>
<p class="eyebrow">ACCOUNT DIRECTORY</p>
<h2>平台账号管理</h2>
<p class="muted">管理员可维护账号、密码与可执行任务类型;未授权指令会在解析和 ERP 执行前被阻止。</p>
<p class="muted">员工账号必须绑定唯一 ERP 账号;管理员只负责管理和查看,不绑定员工 ERP 执行身份。</p>
</div>
</div>
<form id="accountForm" class="channel-form" novalidate>
<label>账号<input id="accountUsername" maxlength="160" autocomplete="off" required></label>
<label>初始密码<input id="accountPassword" type="password" autocomplete="new-password" required></label>
<label>角色<select id="accountRole"><option value="user">普通用户</option><option value="team_lead">组长</option><option value="admin">管理员</option></select></label>
<label>ERP 账号<input id="accountErpAccount" maxlength="200" autocomplete="off" required placeholder="ERP 页面显示的登录账号"></label>
<button type="submit">创建账号</button>
</form>
<section id="accountAuthorizationPanel" class="account-authorization-panel" hidden aria-labelledby="accountAuthorizationTitle">
@@ -262,11 +263,12 @@
<div>
<p class="eyebrow">CHANNEL DIRECTORY</p>
<h2>AgentBus 用户渠道</h2>
<p class="muted">每个外部用户渠道使用独立 AgentBus key;key 只写入服务端,不会回显,不再使用的渠道可以删除。</p>
<p class="muted">每个渠道必须一对一绑定有效员工账号;入站任务只会交给该账号当前唯一在线且 ERP 身份匹配的云电脑。</p>
</div>
</div>
<form id="channelForm" class="channel-form" novalidate>
<label>渠道名称<input id="channelDisplayName" maxlength="120" required placeholder="例如:小王"></label>
<label>绑定平台账号<select id="channelOwnerUserId" required><option value="">请选择员工账号</option></select></label>
<label>外部用户标识<input id="channelExternalUserRef" maxlength="200" placeholder="例如:wx_user_001"></label>
<label>AgentBus key<input id="channelAgentbusKey" type="password" maxlength="4000" autocomplete="new-password" required></label>
<label>Bot 地址(可选)<input id="channelBotAddress" maxlength="200" placeholder="默认使用全局 bot 地址"></label>
@@ -405,6 +407,6 @@
</section>
</main>
<script src="app.js?v=20260902-dashboard-filter-fix-2"></script>
<script src="app.js?v=20260902-agentbus-dashboard-filter-1"></script>
</body>
</html>