From 0d191bfd54b1b1e8b0ddfc14b329efb712fc599b Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Wed, 12 May 2021 10:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E7=BE=8E?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/route/examapply/update-check.html | 8 ++++---- .../resources/static/route/examapply/update.html | 12 ++++++------ .../resources/static/route/examcheck/update.html | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/resources/static/route/examapply/update-check.html b/src/main/resources/static/route/examapply/update-check.html index e41e737..ec23f2c 100644 --- a/src/main/resources/static/route/examapply/update-check.html +++ b/src/main/resources/static/route/examapply/update-check.html @@ -220,10 +220,6 @@ top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) { orgNameFun.getOrgName(data.orgId, function(nameData) { data['orgName'] = nameData.institutionName; - var dataFormData = {}; - for (var i in data) { - dataFormData[i] = data[i] + ''; - } if ('1' == data.planType) { data.planType = '初训'; } else if ('2' == data.planType) { @@ -231,6 +227,10 @@ } else if ('3' == data.planType) { data.planType = '换证 '; } + var dataFormData = {}; + for (var i in data) { + dataFormData[i] = data[i] + ''; + } form.val('initDataForm', dataFormData); form.render(null, 'initDataForm'); }) diff --git a/src/main/resources/static/route/examapply/update.html b/src/main/resources/static/route/examapply/update.html index ad62096..38af78b 100644 --- a/src/main/resources/static/route/examapply/update.html +++ b/src/main/resources/static/route/examapply/update.html @@ -423,11 +423,11 @@ for(var i in data) { dataFormData[i] = data[i] +''; } - /*if (null == data.status || '' == data.status || typeof (data.status) == 'undefined') { + if (null == data.status || '' == data.status || typeof (data.status) == 'undefined') { $('#subBtn').show(); } else { $('#subBtn').hide(); - }*/ + } form.val('dataForm', dataFormData); form.render(null, 'dataForm'); initPracticeExamAddressIdSelect(data['practiceExamAddressId']); @@ -453,10 +453,6 @@ top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function(code, data) { orgNameFun.getOrgName(data.orgId, function(nameData) { data['orgName'] = nameData.institutionName; - var dataFormData = {}; - for(var i in data) { - dataFormData[i] = data[i] +''; - } if ('1' == data.planType) { data.planType = '初训'; } else if ('2' == data.planType) { @@ -464,6 +460,10 @@ } else if ('3' == data.planType) { data.planType = '换证 '; } + var dataFormData = {}; + for(var i in data) { + dataFormData[i] = data[i] +''; + } form.val('initDataForm', dataFormData); form.render(null, 'initDataForm'); }) diff --git a/src/main/resources/static/route/examcheck/update.html b/src/main/resources/static/route/examcheck/update.html index ba34870..ee40dad 100644 --- a/src/main/resources/static/route/examcheck/update.html +++ b/src/main/resources/static/route/examcheck/update.html @@ -220,10 +220,6 @@ top.restAjax.get(top.restAjax.path('api/classplan/get/{classPlanId}', [classPlanId]), {}, null, function (code, data) { orgNameFun.getOrgName(data.orgId, function(nameData) { data['orgName'] = nameData.institutionName; - var dataFormData = {}; - for (var i in data) { - dataFormData[i] = data[i] + ''; - } if ('1' == data.planType) { data.planType = '初训'; } else if ('2' == data.planType) { @@ -231,6 +227,10 @@ } else if ('3' == data.planType) { data.planType = '换证 '; } + var dataFormData = {}; + for (var i in data) { + dataFormData[i] = data[i] + ''; + } form.val('initDataForm', dataFormData); form.render(null, 'initDataForm'); })