if thistableDatalength thistableDataforEachitem = suggestedDataListforEachsuggested= ifitemassesseeId === suggestedassesseeId itemimprovementContent = suggest
This code snippet checks if this.tableData has a length greater than 0. If it does, it iterates over each item in this.tableData using the forEach method.
Within the loop, it also iterates over each item in suggestedDataList using the forEach method.
If the assesseeId of the current item in this.tableData matches the assesseeId of the current suggested item in suggestedDataList, it assigns the value of suggested.improvementContent to item["improvementContent"]. If suggested.improvementContent is undefined or null, an empty string is assigned to item["improvementContent"]
原文地址: https://www.cveoy.top/t/topic/ibCz 著作权归作者所有。请勿转载和采集!