<el-select
v-model="form.personId"
placeholder="请选择负责人 可搜索"
@change="getUserName"
filterable
>
<el-option
v-for="(item, index) in userList"
:key="'info-' + index"
:label="item.userName"
:value="item.id"
>
</el-option>
</el-select>
当select获取值得时候 调用getUserName方法
getUserName(value) {
let obj = {};
obj = this.userList.find((item) => {
return item.id === value;
});
let getName = "";
this.form.personName = obj.userName;
// console.log(this.form.personName)
},