Commit 1b7c18f8968cc7c89a66e699764e16850d195579

Authored by fengwotao
1 parent 9d998839

fix: DEFECT-1578 触发器和执行动作前面都加个*号必填

... ... @@ -19,7 +19,7 @@
19 19 <Divider orientation="left">
20 20 <a-tooltip>
21 21 <template #title>触发器不可为空,消息只要满足触发条件中任意一个即可触发。</template>
22   - 触发器
  22 + <label class="validate-dot"></label> 触发器
23 23 <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" />
24 24 </a-tooltip>
25 25 </Divider>
... ... @@ -77,7 +77,7 @@
77 77 <template #title
78 78 >触发器和执行条件都满足时,场景联动会做什么,例如:设备联动、告警通知等。</template
79 79 >
80   - 执行动作
  80 + <label class="validate-dot"></label> 执行动作
81 81 <QuestionCircleOutlined :style="{ fontSize: '14px', marginLeft: '5px' }" />
82 82 </a-tooltip>
83 83 </Divider>
... ... @@ -781,4 +781,13 @@
781 781 }
782 782
783 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 793 </style>
... ...
... ... @@ -119,6 +119,7 @@
119 119 }
120 120 if (validate.triggerType == undefined) return createMessage.error('请选择设备触发方式');
121 121 if (validate.type1 == undefined) return createMessage.error('请选择属性触发方式');
  122 + if (!validate.deviceType) return createMessage.error('请选择设备类型');
122 123 if (validate.device == undefined) return createMessage.error('请选择设备');
123 124 if (validate.device == 'PART') {
124 125 if (validate.entityId == undefined) return createMessage.error('请选择设备');
... ...