Commit 3bc5d04d14be251f6558fa3dc48a37cc2ef95ceb

Authored by xp.Huang
2 parents b9b383d0 ffb586cb

Merge branch 'fix/teambition-05-31' into 'main_dev'

fix: 新增或者编辑场景联动时,点触发器和执行动作的删除按钮时,则没有数据也新增编辑成功了,应该不允许删除,并提示至少有一个触发器和执行动作

See merge request yunteng/thingskit-front!1360
... ... @@ -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">
... ...
... ... @@ -96,7 +96,7 @@
96 96 <template #action>
97 97 <Tooltip title="删除">
98 98 <Icon
99   - v-if="!disabledDrawer"
  99 + v-if="!disabledDrawer && executionActionListRef.length > 1"
100 100 class="ml-2 cursor-pointer"
101 101 icon="fluent:delete-off-20-regular"
102 102 size="20"
... ...
... ... @@ -143,7 +143,7 @@
143 143 </div>
144 144 <Tooltip title="删除">
145 145 <Icon
146   - v-if="!disabledDrawer"
  146 + v-if="!disabledDrawer && flipFlopListElRef.length > 1"
147 147 class="ml-2 cursor-pointer"
148 148 icon="fluent:delete-off-20-regular"
149 149 size="20"
... ...