There will be more check boxes in the inner layer. Id, just wants to change the check boxes.

 <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.

clipboard.png

Apr.21,2021

<el-checkbox v-for="city in cities" :label="city" :key="city">{{''}}</el-checkbox>

just add {{''}} between el-checkbox

clipboard.png
will there be more id?

: just remove the line of label= "emr.hospital_id"

for the first time, I saw a question that I felt I could answer. Brother, you ask a good question, and I'll give you a good answer. I can't even talk in private. I'm in

.

this is the check box group, and the inner check box refers to < el-checkbox

.

there will be more id?. What do you mean?

how do I change the check box if I only want it? What do you mean you just want the check box

the following code is the body of the method. What are the input parameters of the method? What is this.emrList?
const hosList = [];
for (let i = 0; I < this.emrList.length; iPP) {

hosList.push(this.emrList[i].hospital_id);

}
this.checkList = val? HosList: [];

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4bd7c-44e6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4bd7c-44e6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?