element ui的select下拉框实现多选数据回显
思路:v-model绑定的是一个数组,里面包含你所选择的值,拿到的是一个串数字,需要转为字符串,再转按逗号分隔成数组进行赋值。
代码:
<p class="adzjgs"><span>护士姓名:</span>
<el-select
multiple
v-model="mnurseId"
:multiple-limit=3>
<el-option :value="item.id" v-for="item in cnurseIdArr" :key="item.id" :label="item.name"></el-option>
</el-select>
</p>
rows(row){
this.mnurseId=row.nurseIds.toString().split(',');`
}
标签:multiple,回显,mnurseId,model,下拉框,row From: https://www.cnblogs.com/czb1218/p/16855978.html