diff --git a/src/main/resources/static/route/examination/distribution/show.html b/src/main/resources/static/route/examination/distribution/show.html index 2692cb2..5371d42 100644 --- a/src/main/resources/static/route/examination/distribution/show.html +++ b/src/main/resources/static/route/examination/distribution/show.html @@ -199,10 +199,11 @@ success: function (orgData) { // 回显 , 选中 for (var a = 0; a < orgData.length; a++) { - console.log(dataForm); - for (var j = 0; j < dataForm.distributionFieldList.length; j++) { - if (orgData[a].organizationId == dataForm.distributionFieldList[j].fieldId) { - orgData[a].checked = 'checked="checked"'; + if(dataForm) { + for (var j = 0; j < dataForm.distributionFieldList.length; j++) { + if (orgData[a].organizationId == dataForm.distributionFieldList[j].fieldId) { + orgData[a].checked = 'checked="checked"'; + } } } }