feat: 补齐营养边缘服务原型

This commit is contained in:
fengpu
2026-06-24 15:25:33 +08:00
parent aa93392610
commit f20cea53b3
15 changed files with 1598 additions and 1668 deletions
+30 -1
View File
@@ -329,7 +329,13 @@ const SITE_MAP = [
{ file:'prod-qc-nutrition-add.html', label:'营养质检-新增' },
{ file:'prod-qc-nutrition-sync.html', label:'营养质检-同步记录' },
{ file:'ano-dirty.html', label:'系统脏数据' },
{ file:'ano-result.html', label:'结果异常' }
{ file:'ano-result.html', label:'结果异常' },
{ file:'edge-server-management.html', label:'边缘服务器管理' },
{ file:'edge-server-detail.html', label:'边缘服务器详情' },
{ file:'edge-report-management.html', label:'数据上报管理' },
{ file:'edge-dispatch-management.html', label:'数据下发管理' },
{ file:'edge-dispatch-detail.html', label:'数据下发详情' },
{ file:'edge-alert-center.html', label:'异常告警中心' }
]},
{ name:'运动管理', dir:'web-admin/exercise', pages:[] },
{ name:'健康监测', dir:'web-admin/health-monitor', entry:'archive-personal.html', prd:'web-admin/health-monitor/doc/PRD.md', done:true, pages:[
@@ -877,6 +883,14 @@ const SITE_MAP = [
]}
];
const PROJECT_DOCS = [
{
title: '缓存中转服务器功能架构与数据流转方案',
file: 'web-admin/nutrition/doc/缓存中转服务器功能架构与数据流转方案.md',
desc: '营养管理服务云端主服务与食堂边缘节点服务的架构、数据流转和接口方案。'
}
];
/* ===== 渲染逻辑 ===== */
function countPages(t) {
if (t.modules) return t.modules.reduce((s, m) => s + m.pages.length, 0);
@@ -1075,6 +1089,21 @@ tabNav.addEventListener('click', e => {
html += '</div></div>';
});
html += `<div class="prd-section">
<div class="prd-section__title">${ICONS.prd}项目资料<span class="tab-nav__badge" style="margin-left:6px">${PROJECT_DOCS.length}</span></div>
<div class="prd-grid">`;
PROJECT_DOCS.forEach(doc => {
html += `<div class="prd-item" onclick="openMdPreview('${doc.file}','${doc.title}')">
<div class="prd-item__icon prd-item__icon--ready">${ICONS.prdSmall}</div>
<div class="prd-item__info">
<div class="prd-item__name">${doc.title}</div>
<div class="prd-item__path">${doc.desc}</div>
</div>
<span class="prd-item__status prd-item__status--ready">查看</span>
</div>`;
});
html += '</div></div>';
div.innerHTML = html;
tabContents.appendChild(div);
})();