<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 : [];這段代碼寫完之后,點(diǎn)擊外層得得復(fù)選框,里層得復(fù)選框會(huì)多出來(lái)id,只想要復(fù)選框怎么改?
里層得復(fù)選框會(huì)多出來(lái)id,只想要復(fù)選框怎么改?
翻翻過去那場(chǎng)雪
2018-09-02 08:48:24