forEach里面套循环

this.batchList.forEach(async (item, index) => { let param = { flowinstid: item.flowinstid, currentnodeid: item.nodeId, lzyj: this.ruleForm.message } await backFlow(param).then(() => { if (index == this.batchList.length - 1) { this.dialogBack = false this.dialogDetail = false this.getPageData() this.$message({ message: `操作成功`, type: 'success' }); } }) })

    推荐阅读