review:【iot 物联网】场景联动的逻辑

This commit is contained in:
YunaiV
2025-08-04 22:13:17 +08:00
parent 9ca86c292b
commit d74080d6b0
8 changed files with 27 additions and 10 deletions

View File

@ -155,11 +155,13 @@ const addSubGroup = () => {
}
// 检查是否达到最大子组数量限制
// TODO @puhui999最大的数量限制
if (container.value?.length >= maxSubGroups) {
return
}
// 使用 nextTick 确保响应式更新完成后再添加新的子组
// TODO @puhui999这里 nextTick 要不要 await
nextTick(() => {
if (container.value) {
container.value.push([])

View File

@ -1,13 +1,13 @@
<template>
<div class="space-y-16px">
<!-- 触发事件类型选择 -->
<!-- TODO @puhui999事件上报时应该也是 json -->
<el-form-item label="触发事件类型" required>
<el-select
:model-value="triggerType"
@update:model-value="handleTriggerTypeChange"
placeholder="请选择触发事件类型"
class="w-full"
style="width: 100%"
>
<el-option
v-for="option in triggerTypeOptions"