diff --git a/src/views/rule-engine/Alarm/Configuration/Save/Scene/index.vue b/src/views/rule-engine/Alarm/Configuration/Save/Scene/index.vue index 240f2032..f242157d 100644 --- a/src/views/rule-engine/Alarm/Configuration/Save/Scene/index.vue +++ b/src/views/rule-engine/Alarm/Configuration/Save/Scene/index.vue @@ -11,7 +11,11 @@ > - + 新增 @@ -19,65 +23,63 @@ - - {{ - typeMap.get(slotProps.triggerType)?.text - }} - - - - - - - - {{ slotProps.name }} - - - - - 说明:{{ - slotProps?.description || - typeMap.get(slotProps.triggerType)?.tip - }} - - - - - - - - - {{ item?.text }} - - - - + :value="slotProps" + :actions="getActions(slotProps, 'card')" + :status="slotProps.state?.value" + :statusText="slotProps.state?.text" + :statusNames="{ + started: 'processing', + disable: 'error', + }" + > + + {{ typeMap.get(slotProps.triggerType)?.text }} + + + + + + + + {{ slotProps.name }} + + + + + 说明:{{ + slotProps?.description || + typeMap.get(slotProps.triggerType)?.tip + }} + + + + + + + + + {{ item?.text }} + + + + { const closeSave = () => { visible.value = false; }; -const saveSuccess = () =>{ +const saveSuccess = () => { visible.value = false; actionRef.value.reload(); -} +}; \ No newline at end of file