<el-checkbox-group v-model="checkList">
<el-checkbox :label="emr.hospital_id" :key="emr.hospital_id"
@change="checkbox(emr)" v-model="check"
style="float: right;margin-top:49px"
v-if="showSelected===true"
>
</el-checkbox>
</el-checkbox-group>const hosList = []; for (let i = 0; i < this.emrList.length; i++) {
hosList.push(this.emrList[i].hospital_id);
} this.checkList = val ? hosList : [];这段代码写完之后,点击外层得得复选框,里层得复选框会多出来id,只想要复选框怎么改?
添加回答
举报
0/150
提交
取消