|
|
@@ -181,12 +181,14 @@ export const RoleAccess = {
|
|
|
}
|
|
|
|
|
|
export const AlarmStrategies = [
|
|
|
- { key: 'note', label: '短信' },
|
|
|
- { key: 'email', label: '邮件' },
|
|
|
- { key: 'wechat', label: '微信' },
|
|
|
- { key: 'wechatApplet', label: '小程序' }
|
|
|
+ { key: 'note', label: '短信', support: true },
|
|
|
+ { key: 'email', label: '邮件', support: true },
|
|
|
+ { key: 'wechat', label: '微信', support: !__WECHAT__ },
|
|
|
+ { key: 'wechatApplet', label: '小程序', support: !__WECHAT__ }
|
|
|
]
|
|
|
|
|
|
+export const SupportedAlarmStrategies = AlarmStrategies.filter(({ support }) => support)
|
|
|
+
|
|
|
export const Sensor = {
|
|
|
SMOKE: 0,
|
|
|
TEMPERATURE: 1,
|