<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; iPP) {
hosList.push(this.emrList[i].hospital_id);
}
this.checkList = val ? hosList : [];
after this code is written, click on the check box of the outer layer, and the check box of the inner layer will be extra. Id, just wants to change the check box.