<el-form-item label="新签订人" prop="xx">
<el-select v-model="form.xx" placeholder="请选择新签订人" @change="selectWorkName" clearable >
<el-option
v-for="(dict,index) in qdrOptions"
:key="index"
:label="dict.nickName"
:value="dict.userId"
/>
</el-select>
</el-form-item>
selectWorkName(id){
console.log("select中对应value值",id)
let selectedName = {};
selectedName = this.qdrOptions.find((item)=>{
return item.userId === id;
//筛选出匹配数据,是对应数据的整个对象
});
console.log('selectedName.label',selectedName)
},