dsChange(id){
      let selectedName = {};
      selectedName = this.dsOptions.find((item)=>{
        return item.dsid === id;
        //筛选出匹配数据,是对应数据的整个对象
      });
      this.formModel.ds = selectedName.ds
      this.formModel.dsid = selectedName.dsid

    },

Logo

前往低代码交流专区

更多推荐