![](https://i-blog.csdnimg.cn/blog_migrate/e7a223b767d7c901051cd289249d8533.png)
<el-checkbox-group id="checkbox-container" v-model="overLimitOption" @change="handleCheckedoverLimit">
<el-checkbox v-for="(item, index) in overLimitArr" :label="item.tagParamName" :key="item.tagParamId">
{{ item.tagParamName }}
<!-- <div style="display:flex">
<div class="alarmUpLow"> -->
<span v-if="overLimitOption.includes(item.tagParamName)">
<span style="margin-left:80px" class="alarmUpLow_text">上限警告:</span>
<el-input @input="changeMemberId1($event, index)" v-model="item.upperAlarm" placeholder="请输入"></el-input>
<span class="alarmUpLow_text">上限报警:</span>
<el-input @input="changeMemberId2($event, index)" v-model="item.upperWarn" placeholder="请输入"></el-input>
<span class="alarmUpLow_text">下限警告:</span>
<el-input @input="changeMemberId3($event, index)" v-model="item.lowerAlarm" placeholder="请输入"></el-input>
<span class="alarmUpLow_text">下限报警:</span>
<el-input @input="changeMemberId4($event, index)" v-model="item.lowerWarn" placeholder="请输入"></el-input>
</span>
</el-checkbox>
</el-checkbox-group>
private changeMemberId1(val, index) {
this.overLimitArr[index].upperAlarm = val.replace(/[^0-9.]/g, '')
console.log(val, index)
}
private changeMemberId2(val, index) {
this.overLimitArr[index].upperWarn = val.replace(/[^0-9.]/g, '')
console.log(val, index)
}
private changeMemberId3(val, index) {
this.overLimitArr[index].lowerAlarm = val.replace(/[^0-9.]/g, '')
console.log(val, index)
}
private changeMemberId4(val, index) {
this.overLimitArr[index].lowerWarn = val.replace(/[^0-9.]/g, '')
console.log(val, index)
}