Эх сурвалжийг харах

修改场景详情中防抖设置的字段类型

yanglzh 1 жил өмнө
parent
commit
016c2e6da0

+ 2 - 2
src/views/iot/scene/manage/component/sceneItem.vue

@@ -54,8 +54,8 @@
         <div class="ml10"></div>
         <el-switch v-model="item.enableStabilization" @change="EditPen(index)" />
         <template v-if="item.enableStabilization">
-          <el-input v-model="item.stabilization.timeWindow" @change="EditPen(index)" style="width: 100px;margin: 0 12px"></el-input>秒内发送
-          <el-input v-model="item.stabilization.threshold" @change="EditPen(index)" style="width: 100px;margin: 0 12px"></el-input>次及以上,执行以下动作
+          <el-input v-model.number="item.stabilization.timeWindow" @change="EditPen(index)" style="width: 100px;margin: 0 12px"></el-input>秒内发送
+          <el-input v-model.number="item.stabilization.threshold" @change="EditPen(index)" style="width: 100px;margin: 0 12px"></el-input>次及以上,执行以下动作
         </template>
       </div>
       <Condition :condition="item.condition" :operate_index="index" :columnList="columnList" v-if="item.triggerSwitch && columnList.length > 0" @EditPen="EditPen">