Showing
1 changed file
with
7 additions
and
1 deletions
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | <!-- 按钮 --> | 38 | <!-- 按钮 --> |
39 | <a-button type="primary" class="mt-4" @click="addTrigger" v-if="isView"> | 39 | <a-button type="primary" class="mt-4" @click="addTrigger" v-if="isView"> |
40 | <PlusOutlined /> | 40 | <PlusOutlined /> |
41 | - 新增触发器 | 41 | + 新增触发器<span style="visibility: hidden">发</span> |
42 | </a-button> | 42 | </a-button> |
43 | <!-- 按钮 --> | 43 | <!-- 按钮 --> |
44 | </div> | 44 | </div> |
@@ -656,6 +656,12 @@ | @@ -656,6 +656,12 @@ | ||
656 | try { | 656 | try { |
657 | setDrawerProps({ confirmLoading: true }); | 657 | setDrawerProps({ confirmLoading: true }); |
658 | getFormValueFunc(); | 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 | const postAddOrEditData = { | 665 | const postAddOrEditData = { |
660 | ...basicFormValue, | 666 | ...basicFormValue, |
661 | triggers: !unref(getTriggerFormValue).length ? null : unref(getTriggerFormValue), | 667 | triggers: !unref(getTriggerFormValue).length ? null : unref(getTriggerFormValue), |