DEVICE_ALERT event 中的 alertTypeIconBase64 字段将删除 #22
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#22
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?
需要请求 pagetype config 接口获取 icon 相关数据, 字段在 files.alertIcons 字段中, 如下示例所述
其中 alertIcons 下的 key 为 alertStatusType (DEVICE_ALERT event 中的statusType字段).
即原本是直接使用 event 中字段使用 icon, 现在需要先请求 pagetype config接口获取到 icon, 当告警来时从刚才请求过的获取到本地的数据中找到对应的 icon
相关页面旧的有 tab
新的有 simplepage
连接到对应PR或commit用于记录
请求接口需要添加 query param, resources=alertIcons
例如
https://smartoilets.net/openapi/api/config/get/type/simplepage/KWH/F2?resources=alertIcons