子页面的select
<a-select style="width: 100%" default-value="请选择班级" @change="handleChanges">
<a-select-option v-for="(item, key) in listData" :key="key" :value="item.id" >
{{item.departName}}
</a-select-option>
</a-select>
methods
handleChanges(value){
console.log(value);
this.$emit("selectFinished", value);
}
父页面
<SyllabusSelect ref="SyllabusSubject" @selectFinished="selectOK"></SyllabusSelect>
js
selectOK(value) {
debugger;
console.log(value);
this.selected2 = value
},