1 handleChange(val) {
 2         let obj = {}
 3         // 遍历数组
 4         obj = this.options.find(item => {
 5           // 筛选出匹配的数据
 6           return item.id === val
 7         })
 8         this.hzid = obj.hzid
 9         this.projectId = obj.id
10         console.log(obj, this.projectId, this.hzid)
11       },
View Code

相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-06-09
  • 2021-11-05
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案