feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图
This commit is contained in:
@@ -336,6 +336,19 @@ func DashboardSnapshotInternalHandler(svcCtx *svc.ServiceContext) http.HandlerFu
|
||||
}
|
||||
}
|
||||
|
||||
// DashboardConfigInternalHandler 门口看板(项目A)启动配置:标题文字 + 语音播报开关。
|
||||
// 基础设置页(dashboard.board.title / dashboard.board.voice)维护,保存即生效;看板端轮询跟随。
|
||||
func DashboardConfigInternalHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
vo, err := logic.New(svcCtx).GetSettings(r.Context())
|
||||
if err != nil {
|
||||
httpx.Fail(w, 2010, err.Error())
|
||||
return
|
||||
}
|
||||
httpx.Ok(w, map[string]any{"title": vo.DashboardTitle, "voiceOn": vo.DashboardVoice})
|
||||
}
|
||||
}
|
||||
|
||||
// DashboardMaterialQueryHandler 看板物料追溯查询入口(C7):转发 WMS 物料档案 + 库存。
|
||||
func DashboardMaterialQueryHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user