From ccf39406ee35ad44788c1a5f9fa6837eeaacce3e Mon Sep 17 00:00:00 2001 From: user9994793890 <3722323274763196-user9994793890@noreply.coze.cn> Date: Tue, 14 Jul 2026 08:49:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=A4=9A=E4=B8=AADOM?= =?UTF-8?q?=E5=85=83=E7=B4=A0ID=E4=B8=8D=E5=8C=B9=E9=85=8D=E5=92=8C?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E5=87=BD=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087 --- public/static/js/config.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/public/static/js/config.js b/public/static/js/config.js index 900fe8b..7f2029f 100644 --- a/public/static/js/config.js +++ b/public/static/js/config.js @@ -53,7 +53,10 @@ function showCreateModal() { document.getElementById('modal-title').textContent = '创建配置'; document.getElementById('config-name').value = ''; document.getElementById('split-type').value = ''; - document.getElementById('split-value').innerHTML = ''; + // 清空实体列表 + document.getElementById('entity-list').innerHTML = '
请先选择拆分方式
'; + document.getElementById('entity-search').value = ''; + document.getElementById('selected-count').textContent = '已选:0 个'; // 重置字段自定义名头 fieldCustomNames = {}; @@ -284,24 +287,12 @@ function refreshSumFieldsList(selectedFields, currentSumFields) { // 切换特来电车量自编号输入框显示 function toggleTelecomVehicleNo() { const mergeTelecom = document.getElementById('merge-telecom').checked; - const vehicleNoGroup = document.getElementById('telecom-vehicle-no-group'); + const vehicleNoGroup = document.getElementById('telecom-vehicle-section'); if (vehicleNoGroup) { vehicleNoGroup.style.display = mergeTelecom ? 'block' : 'none'; } } -// 更新已选实体计数 -function updateSelectedCount() { - const select = document.getElementById('split-value'); - const countEl = document.getElementById('selected-entity-count'); - const count = select.selectedOptions.length; - if (count > 0) { - countEl.textContent = '已选 ' + count + ' 项'; - countEl.style.display = 'inline'; - } else { - countEl.style.display = 'none'; - } -} // ========== 时段编辑器 ========== const TIME_PERIODS = [