From d05be62e024e9c884aeaf735fab3fab74c2b6fe4 Mon Sep 17 00:00:00 2001 From: kx_guo Date: Wed, 9 Sep 2026 15:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=8B=E6=8B=89=E4=B8=8E=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 供应商画像选择器改为支持输入筛选的动态下拉框,输入关键词实时匹配并刷新画像;删除暂未实现的收藏方案按钮,保留已接入操作。 --- .../assistant/AssistantResponseCard.vue | 8 - src/pages/SupplierProfilePage.vue | 164 ++++++++++++++++-- 2 files changed, 153 insertions(+), 19 deletions(-) diff --git a/src/components/assistant/AssistantResponseCard.vue b/src/components/assistant/AssistantResponseCard.vue index fc4b033..401f1ad 100644 --- a/src/components/assistant/AssistantResponseCard.vue +++ b/src/components/assistant/AssistantResponseCard.vue @@ -403,14 +403,6 @@ function generateReport() { > 查看标准详情 - + 搜索中… + 未找到匹配供应商 + + {{ tierLabel }} @@ -418,6 +510,8 @@ watch( font-weight: 650; } .supplier-select { + width: 180px; + min-height: 34px; padding: 7px 14px; border: 1px solid #e4e4e2; border-radius: 5px; @@ -428,6 +522,47 @@ watch( font-size: 13px; cursor: pointer; } +.supplier-combobox { + position: relative; + z-index: 5; +} +.supplier-combobox .supplier-select { + cursor: text; +} +.supplier-options { + position: absolute; + top: calc(100% + 4px); + right: 0; + left: 0; + max-height: 260px; + overflow-y: auto; + border: 1px solid var(--color-border-strong); + border-radius: 5px; + padding: 4px 0; + background: #fff; + box-shadow: var(--shadow-lg); +} +.supplier-option { + display: block; + width: 100%; + border: 0; + padding: 8px 12px; + background: #fff; + color: var(--color-text-secondary); + font-size: 12px; + text-align: left; +} +.supplier-option:hover, +.supplier-option.active { + background: var(--color-accent-subtle); + color: var(--color-accent); +} +.supplier-option-state { + display: block; + padding: 9px 12px; + color: var(--color-text-faint); + font-size: 11px; +} .version-note { color: #999; font-size: 11px; @@ -700,6 +835,13 @@ watch( order: 3; width: 100%; } + .supplier-combobox { + order: 3; + width: 100%; + } + .supplier-combobox .supplier-select { + width: 100%; + } .version-note { width: 100%; }