<el-select v-model="form.personId"
style="width:100%"
filterable
:disabled="xmDisabled"
@change="changeXm($event)"
placeholder="请先选择部门">
<el-option v-for="item in personList"
:key="item.userId"
:label="item.xm"
:value="item.userId">
</el-option>
</el-select>
changeXm (val) {
console.log('val----', val);
const selectedItem = this.personList.find(item => item.userId === val);
// this.form.personId = selectedItem.userId
this.form.personName = selectedItem.xm
},
selectedItem为选中的对象
<el-select v-model="select" slot="prepend" placeholder="请选择" @change="search($event)">
<el-option
:label="item.ziDianShuJu"
:value="{value:item.id, label:item.ziDianShuJu}"
v-for="item in dictionAry" :key="item.id">
</el-option>
</el-select>
search(e){
console.log(e)
},