已经解决。 var tmp = this.codeList.procNumbList.filter(element => { if (element.processId === row.processId) { return element } }); this.presetInfo.processInfos.forEach((element, index) => { if (element.processId === tmp[0].processId) { this.presetInfo.processInfos[index] = tmp[0] } }); var arrProcNumb = []; var arrProcName = []; this.presetInfo.processInfos.forEach((item) => { arrProcNumb.push(item.procNumb) arrProcName.push(item.procName) }) arrProcNumb = arrProcNumb.join('-') arrProcName = arrProcName.join('-') this.presetInfo.fluContent = arrProcNumb this.presetInfo.fluText = arrProcName
已经解决。