From 6c6e7f001afa415ff32fc273a8d61c04f9f0b6e4 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Sat, 15 May 2021 20:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E5=9C=BA=E5=88=86?= =?UTF-8?q?=E9=85=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/route/examination/distribution/show.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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"'; + } } } }