Showing
1 changed file
with
7 additions
and
1 deletions
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | <!-- 按钮 --> |
39 | 39 | <a-button type="primary" class="mt-4" @click="addTrigger" v-if="isView"> |
40 | 40 | <PlusOutlined /> |
41 | - 新增触发器 | |
41 | + 新增触发器<span style="visibility: hidden">发</span> | |
42 | 42 | </a-button> |
43 | 43 | <!-- 按钮 --> |
44 | 44 | </div> |
... | ... | @@ -656,6 +656,12 @@ |
656 | 656 | try { |
657 | 657 | setDrawerProps({ confirmLoading: true }); |
658 | 658 | getFormValueFunc(); |
659 | + //新增的代码2022-11-22 | |
660 | + if (unref(getTriggerFormValue).length === 0 && unref(getConditionFormValue).length === 0) { | |
661 | + createMessage.error('请添加触发器或者执行条件'); | |
662 | + throw '请添加触发器或者执行条件'; | |
663 | + } | |
664 | + //新增的代码2022-11-22 | |
659 | 665 | const postAddOrEditData = { |
660 | 666 | ...basicFormValue, |
661 | 667 | triggers: !unref(getTriggerFormValue).length ? null : unref(getTriggerFormValue), | ... | ... |