根据数据和配置动态变化颜色 BUG #2
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#2
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?
注意: 有一个变化是 数据从 fall 变为了 Fall, occupy 变为了 Occupancy, 但这对于前端应该是透明的.
配置 json 文件如下:
测试:
URL: https://smartoilets.net/openapi/ecf/socketIO/event/send/event/WC_OCCUPY_LEVEL
method: POST
data:
上述 HTTP POST 之后会给任何订阅了 WC_OCCUPY_LEVEL 的页面发送上述数据内容.
不正确的效果: 当前只为 Occupancy 配置了
蓝色
和绿色
,但是当收到上述数据时,其他格子的数据从默认的浅蓝色
变成了红色
, 而正确匹配名字的位置没有变化成绿色
需要注意的是,代码应该尽量以模块的方式运行,也就是将一些公用的方法抽象成 lib,发布,而不是直接写一大段逻辑。
這個之前應該是 svg 的命名 跟 返回的命名沒有對上。 可以再看一下。
@yunhorn @liangyuanpeng