修改考场分配页面

This commit is contained in:
cuibaocheng 2021-05-15 20:37:28 +08:00
parent b5cd931c58
commit 6c6e7f001a

View File

@ -199,10 +199,11 @@
success: function (orgData) { success: function (orgData) {
// 回显 , 选中 // 回显 , 选中
for (var a = 0; a < orgData.length; a++) { for (var a = 0; a < orgData.length; a++) {
console.log(dataForm); if(dataForm) {
for (var j = 0; j < dataForm.distributionFieldList.length; j++) { for (var j = 0; j < dataForm.distributionFieldList.length; j++) {
if (orgData[a].organizationId == dataForm.distributionFieldList[j].fieldId) { if (orgData[a].organizationId == dataForm.distributionFieldList[j].fieldId) {
orgData[a].checked = 'checked="checked"'; orgData[a].checked = 'checked="checked"';
}
} }
} }
} }