两个数组对象合并操作,键值对合并
for (let m = 0; m < meetingSeatList.length; m++) {const elementSeat = meetingSeatList[m]seatData.push({abscissa: elementSeat.abscissa,areaId: elementSeat.areaId,areaName: elementSeat.areaName,meetingId: elementSeat.meetingId,ordinate: elementSeat.ordinate,seatAlias: elementSeat.seatAlias,seatDisabledSorting: elementSeat.isJoinSort,seatId: elementSeat.id,seatName: elementSeat.seatName,seatSequenceNumber: elementSeat.seatSequenceNumber,seatSize: elementSeat.seatSize,realSortValue: elementSeat.realSortValue,seatWhetherDelete: elementSeat.isDelete,templateId: elementSeat.templateId,background: '',departmentId: '',id: '',lock: '',meetingId: '',meetingTime: '',mobile: '',noticeId: '',orgName: '',reUserId: '',relTheirOrgId: '',sort: '',theirOrgId: '',userId: '',userName: ''})for (let n = 0; n < staffInfoList.length; n++) {const elementStaff = staffInfoList[n]if (elementSeat.realSortValue === elementStaff.sort) {seatData[m].background = elementStaff.backgroundseatData[m].departmentId = elementStaff.departmentIdseatData[m].id = elementStaff.idseatData[m].lock = elementStaff.lockseatData[m].meetingId = elementStaff.meetingIdseatData[m].meetingTime = elementStaff.meetingTimeseatData[m].mobile = elementStaff.mobileseatData[m].noticeId = elementStaff.noticeIdseatData[m].orgName = elementStaff.orgNameseatData[m].reUserId = elementStaff.reUserIdseatData[m].relTheirOrgId = elementStaff.relTheirOrgIdseatData[m].sort = elementStaff.sortseatData[m].theirOrgId = elementStaff.theirOrgIdseatData[m].userId = elementStaff.userIdseatData[m].userName = elementStaff.userName}}
}