Commit 3bc5d04d14be251f6558fa3dc48a37cc2ef95ceb
Merge branch 'fix/teambition-05-31' into 'main_dev'
fix: 新增或者编辑场景联动时,点触发器和执行动作的删除按钮时,则没有数据也新增编辑成功了,应该不允许删除,并提示至少有一个触发器和执行动作 See merge request yunteng/thingskit-front!1360
Showing
3 changed files
with
5 additions
and
5 deletions
... | ... | @@ -20,9 +20,9 @@ |
20 | 20 | </template> |
21 | 21 | <template #toolbar> |
22 | 22 | <Authority value="api:yt:alarm:batch:clear"> |
23 | - <Button @click="handleBatchClear" type="primary" :disabled="getCanBatchClear"> | |
24 | - <span>批量清除</span> | |
25 | - </Button> | |
23 | + <a-button type="danger" :disabled="getCanBatchClear" @click="handleBatchClear"> | |
24 | + 批量清除 | |
25 | + </a-button> | |
26 | 26 | </Authority> |
27 | 27 | <Authority value="api:yt:alarm:batch:handle"> |
28 | 28 | <Button @click="handleBatchAck" type="primary" :disabled="getCanBatchAck"> | ... | ... |