AQ_CURRENT 和 AQ_LEVEL 事件,定义和实现命名规范 #10
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#10
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AQ_CURRENT 对接单位请注意处理边界问题,即如果没找到对应的单位,则显示一个默认 N/A
请考虑通用性,单位数据基本上是不变动的,因此不应该作为数据的一部分实时发送,可能会更新为单独调用 HTTP API 来获取单位。实现时请考虑数据和单位的解耦
原本的 AQ_LEVEL 事件颜色定义似乎是从 socketio 数据里面获取的? 没记错的话, 需要迭代一下, 采用通用svg命名规范的方式来做, 将这个配置放入到 simplepage.json (页面级别的配置) 中
https://smartoilets.net/simplepage/PWH/PD2A/female/
其中 AQLevel.Good 和 AQLevel.Poor 都是 AQ_LEVEL 事件中的数据 (Good和Poor)
配置预计会是这样的: