From 1463e56a42d68d9d1c9dcbd7c82b64e4d2610ac1 Mon Sep 17 00:00:00 2001 From: PM-pinou <2504420230@qq.com> Date: Fri, 24 Jul 2026 12:00:21 +0800 Subject: [PATCH] fix(auto): remove duplicate JS function definitions (126 lines dedup) --- templates/tianxuan/auto.html | 66 ------------------------------------ 1 file changed, 66 deletions(-) diff --git a/templates/tianxuan/auto.html b/templates/tianxuan/auto.html index 1645436..ed5f1dc 100644 --- a/templates/tianxuan/auto.html +++ b/templates/tianxuan/auto.html @@ -428,72 +428,6 @@ async function applyFilter() { } -// ── Dataset table rendering ── -function buildDatasetTable(filter) { - const container = document.getElementById('datasetTable'); - let rows = DATASETS_WITH_STATUS.filter(ds => { - if (filter === 'all') return true; - if (filter === 'ready') return ds.badge_class === 'ready'; - if (filter === 'analyzing') return ds.badge_class === 'analyzing'; - if (filter === 'completed') return ds.badge_class === 'completed'; - if (filter === 'failed') return ds.badge_class === 'failed'; - return true; - }); - - if (!rows.length) { - container.innerHTML = '
无匹配的数据集
'; - return; - } - - let html = '| ID | 状态 | 行数 | 文件数 | 来源 | |
|---|---|---|---|---|---|
| ' + - ' | #' + dispId + ' | ' + - '' + label + ' | ' + - '' + rowCount + ' | ' + - '' + fileCount + ' | ' + - '' + - '