|
|
@@ -288,14 +288,15 @@ export const RoleAccess = {
|
|
|
export const AlarmLevelInfo = {
|
|
|
0: '提示性预警',
|
|
|
1: '中级预警',
|
|
|
- 2: '紧急预警'
|
|
|
+ 2: '紧急预警',
|
|
|
+ 9999: '所有预警'
|
|
|
}
|
|
|
|
|
|
export const AlarmStrategies = [
|
|
|
{ key: 'note', label: '短信', support: true },
|
|
|
{ key: 'email', label: '邮件', support: true },
|
|
|
- { key: 'wechat', label: '微信', support: !__WECHAT__ },
|
|
|
- { key: 'wechatApplet', label: '小程序', support: !__WECHAT__ }
|
|
|
+ { key: 'wechat', label: '微信', support: __WECHAT__ },
|
|
|
+ { key: 'wechatApplet', label: '小程序', support: __WECHAT__ }
|
|
|
]
|
|
|
|
|
|
export const SupportedAlarmStrategies = AlarmStrategies.filter(({ support }) => support)
|