|
@@ -20,13 +20,33 @@ const TypeList = [
|
|
|
{
|
|
{
|
|
|
label: '设备输出',
|
|
label: '设备输出',
|
|
|
value: 'device',
|
|
value: 'device',
|
|
|
- image: '',
|
|
|
|
|
|
|
+ image: require('/public/images/scene/device-type.png'),
|
|
|
tip: '配置设备调用功能、读取属性、设置属性规则',
|
|
tip: '配置设备调用功能、读取属性、设置属性规则',
|
|
|
},
|
|
},
|
|
|
- { label: '消息通知', value: 'notify', image: '', tip: '' },
|
|
|
|
|
- { label: '延迟执行', value: 'delay', image: '', tip: '' },
|
|
|
|
|
- { label: '触发告警', value: 'trigger', image: '', tip: '' },
|
|
|
|
|
- { label: '解除告警', value: 'relieve', image: '', tip: '' },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '消息通知',
|
|
|
|
|
+ value: 'notify',
|
|
|
|
|
+ image: require('/public/images/scene/message-type.png'),
|
|
|
|
|
+ tip: '配置向指定用户发邮件、钉钉、微信、短信等通知',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '延迟执行',
|
|
|
|
|
+ value: 'delay',
|
|
|
|
|
+ image: require('/public/images/scene/delay-type.png'),
|
|
|
|
|
+ tip: '等待一段时间后,再执行后续动作',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '触发告警',
|
|
|
|
|
+ value: 'trigger',
|
|
|
|
|
+ image: require('/public/images/scene/trigger-type.png'),
|
|
|
|
|
+ tip: '配置触发告警规则,需配合“告警配置”使用',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '解除告警',
|
|
|
|
|
+ value: 'relieve',
|
|
|
|
|
+ image: require('/public/images/scene/cancel-type.png'),
|
|
|
|
|
+ tip: '配置解除告警规则,需配合“告警配置”使用',
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
export default (props: ActionsTypeProps) => {
|
|
export default (props: ActionsTypeProps) => {
|
|
@@ -50,6 +70,7 @@ export default (props: ActionsTypeProps) => {
|
|
|
<div className={classNames('trigger-way-warp', props.className, { disabled: props.disabled })}>
|
|
<div className={classNames('trigger-way-warp', props.className, { disabled: props.disabled })}>
|
|
|
{TypeList.map((item) => (
|
|
{TypeList.map((item) => (
|
|
|
<div
|
|
<div
|
|
|
|
|
+ key={item.value}
|
|
|
className={classNames('trigger-way-item', {
|
|
className={classNames('trigger-way-item', {
|
|
|
active: type === item.value,
|
|
active: type === item.value,
|
|
|
})}
|
|
})}
|