querysqfaxx() {
const params = {
salesId:1,
}
this.$axios.get(this.api.salesSupport.querySalesPlans, {params}).then((res) => {
this.commonGetResData(res).then(data => {
this.sqfaxxidData = data;
const list = []
for(let i of this.sqfaxxidData){
const params = {
id:i.planid
}
list.push(this.$axios.get(this.api.plan.queryPlanById, {params}))
}
Promise.all(list).then(ress => {
this.sqfaxxData=ress
})
});
});
}
最后
以上就是超级毛豆最近收集整理的关于for循环调用接口返回的数据放在同一个列表中的全部内容,更多相关for循环调用接口返回内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复