el-select获取value值和label值

改成:

:value="{ value: item.value, label: item.label}"

代码如下:


  
     
   



bankList:[
   {
      value:1,
      name:"工商银行"
   },
   {
      value:2,
      name:"招商银行"
   }
],


// 选择银行
changeBank(data){
  const { value, label } = data
  this.payInfoForm.bankId = value
  this.payInfoForm.bankName = label
},

你可能感兴趣的:(elemenui,elementui,vue.js,javascript)