一个el-input联动,默认选中的那种,要先拿到联动‘el-input’外面选中的id,能力申请表格的数据,而后我在methods里写办法,created调,始终拿不到数据)。
有两种办法:1 在第一个办法外面写第二个办法,第二个办法外面写第三个,以此类推

2 用async 和 await(先把el-input默认显示数据的办法getcontarctList(){

比方这是查问 PowerGridList(电网);StorageList(储能)

  async getList(){    var PowerGridList = await resPowerGrid() (resPowerGrid是接口的办法)    var StorageList = await getCharge()     if(PowerGridList.success){       this.tractList = PowerGridList.obj;    }    if(StorageList.success){       this.chioceproList = StorageList.obj.recds;    }    上面把字段传给后端,就ok啦  }