修改bug

This commit is contained in:
qiaojiale 2025-04-14 08:31:14 +08:00
parent 78d91fa36b
commit ba316af6d4

View File

@ -605,10 +605,19 @@
// 转换回数组
const mergedArray = Array.from(mergedMap.values());
const mergedArray2 = allSubject.map(item1 => {
const matchingItem2 = obj.scoreInfo.find(item2 => item2.subjectId === item1.id);
return {
...item1,
...matchingItem2
};
});
console.log(mergedArray,'asdsad');
$.each(mergedArray, function (index, item) {
$.each(mergedArray2, function (index, item) {
$(".Allsub").append(
`
@ -718,7 +727,6 @@
return
}
});
AllSub(name)
}).catch(error => {