diff --git a/project/web/src/main.ts b/project/web/src/main.ts index bfbc326..62a87d2 100644 --- a/project/web/src/main.ts +++ b/project/web/src/main.ts @@ -59,18 +59,57 @@ qInput.addEventListener('keydown', e => { if (e.key === 'Enter') doQuery() }) /* ===== Config Page ===== */ let configLoaded = false +let plcTabLoaded = false +let activeSubTab: 'mp' | 'plc' = 'mp' async function loadConfig() { configLoaded = true + plcTabLoaded = false + activeSubTab = 'mp' + const el = document.getElementById('page-config')! + el.innerHTML = ` +
| 名称 | 单位 | @@ -114,9 +153,8 @@ function renderMPTable(mps: MP[]) { } function renderPLCTable(plcs: PLC[], stations: Station[], mps: MP[]) { - const el = document.getElementById('plc-list')! - el.innerHTML = ` |
|---|
| 名称 | IP | DB |
|---|