Commit 1b7c18f8968cc7c89a66e699764e16850d195579
1 parent
9d998839
fix: DEFECT-1578 触发器和执行动作前面都加个*号必填
Showing
2 changed files
with
12 additions
and
2 deletions
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <Divider orientation="left"> | 19 | <Divider orientation="left"> |
20 | <a-tooltip> | 20 | <a-tooltip> |
21 | <template #title>触发器不可为空,消息只要满足触发条件中任意一个即可触发。</template> | 21 | <template #title>触发器不可为空,消息只要满足触发条件中任意一个即可触发。</template> |
22 | - 触发器 | 22 | + <label class="validate-dot"></label> 触发器 |
23 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> | 23 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> |
24 | </a-tooltip> | 24 | </a-tooltip> |
25 | </Divider> | 25 | </Divider> |
@@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
77 | <template #title | 77 | <template #title |
78 | >触发器和执行条件都满足时,场景联动会做什么,例如:设备联动、告警通知等。</template | 78 | >触发器和执行条件都满足时,场景联动会做什么,例如:设备联动、告警通知等。</template |
79 | > | 79 | > |
80 | - 执行动作 | 80 | + <label class="validate-dot"></label> 执行动作 |
81 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> | 81 | <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" /> |
82 | </a-tooltip> | 82 | </a-tooltip> |
83 | </Divider> | 83 | </Divider> |
@@ -781,4 +781,13 @@ | @@ -781,4 +781,13 @@ | ||
781 | } | 781 | } |
782 | 782 | ||
783 | //TODO-fengtao | 783 | //TODO-fengtao |
784 | + | ||
785 | + label.validate-dot::before { | ||
786 | + display: inline-block; | ||
787 | + color: #ff4d4f; | ||
788 | + font-size: 14px; | ||
789 | + font-family: SimSun, sans-serif; | ||
790 | + line-height: 1; | ||
791 | + content: '*'; | ||
792 | + } | ||
784 | </style> | 793 | </style> |
@@ -119,6 +119,7 @@ | @@ -119,6 +119,7 @@ | ||
119 | } | 119 | } |
120 | if (validate.triggerType == undefined) return createMessage.error('请选择设备触发方式'); | 120 | if (validate.triggerType == undefined) return createMessage.error('请选择设备触发方式'); |
121 | if (validate.type1 == undefined) return createMessage.error('请选择属性触发方式'); | 121 | if (validate.type1 == undefined) return createMessage.error('请选择属性触发方式'); |
122 | + if (!validate.deviceType) return createMessage.error('请选择设备类型'); | ||
122 | if (validate.device == undefined) return createMessage.error('请选择设备'); | 123 | if (validate.device == undefined) return createMessage.error('请选择设备'); |
123 | if (validate.device == 'PART') { | 124 | if (validate.device == 'PART') { |
124 | if (validate.entityId == undefined) return createMessage.error('请选择设备'); | 125 | if (validate.entityId == undefined) return createMessage.error('请选择设备'); |