review:【iot 物联网】场景联动的逻辑
This commit is contained in:
@ -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([])
|
||||
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user