feat(equipment-maintenance): 增加上下文设备解析

This commit is contained in:
sophie committed 2026-07-06 15:20:24 +08:00
1 parent 76d5778c3b
commit 2566ce53e4
21 files changed
+512 -62

No files matched your search

@@ -27,6 +27,7 @@ const isMaintenanceAgentPage = computed(() => {
const name = String(page.currentAgent?.name || '').trim();
return name === '设备维保助手' || (name.includes('设备维保') && name.includes('助手'));
});
const canManageMaintenance = computed(() => ['admin', 'maintenance_manager'].includes(String(page.currentUser?.role || '')));
const hideWelcomePanel = computed(() => isTrainingAgentPage.value);
const isTrainingWorkspaceExpanded = ref(false);
const maintenancePanel = ref<'ledger' | 'record' | null>(null);
@@ -220,6 +221,7 @@ watch(() => page.currentAgentId, () => {
:can-send-message="page.canSendMessage"
:is-shipping-notice-agent="page.isShippingNoticeAgent"
:is-maintenance-agent="isMaintenanceAgentPage"
:can-manage-maintenance="canManageMaintenance"
:shipping-suggested-prompt="page.shippingSuggestedPrompt"
:shipping-focus-task-no="page.focusedShippingTaskNo"
:shipping-focus-reason="page.shippingFocusReason"
@@ -240,7 +242,7 @@ watch(() => page.currentAgentId, () => {
</div>
<aside
v-if="isMaintenanceAgentPage && maintenancePanel"
v-if="isMaintenanceAgentPage && canManageMaintenance && maintenancePanel"
class="relative flex flex-col border-l border-default bg-surface shadow-[-8px_0_24px_rgba(15,23,42,0.06)]"
:class="[
isMaintenancePanelFullscreen ? 'absolute inset-y-0 right-0 z-30' : '',