赞
踩
<el-form-item> <el-col> <span>所属行业::</span> <el-select @change="industryChange" v-model="form.industryId" placeholder="请选择"> <el-option v-for="item in industryList" :key="item.industryId" :label="item.industryName" :value="item.industryId"> </el-option> </el-select> </el-col> </el-form-item> //输出:value="item.industryId"绑定的值 industryChange(e){ console.log(e,'eeeeeeeeee') },
做数据回显的时候只需要给form.industryId赋值即可显示对应的industryName
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。