@@ -387,6 +387,11 @@
}
if(data['applyFenLei'] == '2'){
$('.fuxun-upload').show();
+ $('.zaipei-upload').show();
+ }
+ if(data['applyFenLei'] == '3'){
+ $('.fuxun-upload').show();
+ $('.zaipei-upload').hide();
}
form.val('dataForm', dataFormData);
form.render(null, 'dataForm');
@@ -399,6 +404,7 @@
initIdCardFrontPhotoUploadFile();
initIdCardBackPhotoUploadFile();
initEducationPhotoUploadFile();
+ $('input[name="applyFenLei"]:checked').siblings('input').attr("disabled","true");
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
diff --git a/src/main/resources/static/route/classplan/update-user-register1.html b/src/main/resources/static/route/classplan/update-user-register1.html
index df2819f..eaeb9c4 100644
--- a/src/main/resources/static/route/classplan/update-user-register1.html
+++ b/src/main/resources/static/route/classplan/update-user-register1.html
@@ -354,7 +354,7 @@
if(data['applyFenLei'] == '1'){
$('.fuxun-upload').hide();
}
- if(data['applyFenLei'] == '2'){
+ if(data['applyFenLei'] == '2' || data['applyFenLei'] == '3'){
$('.fuxun-upload').show();
}
form.val('dataForm', dataFormData);
@@ -387,21 +387,6 @@
});
}
- // 初始化报名人证件类型
- function initApplyCardTypeSelect(selectValue) {
- top.restAjax.get(top.restAjax.path('api/data/listbyparentid/76c5044f-805a-4313-b1e8-79e966b97c0d', []), {}, null, function(code, data, args) {
- laytpl(document.getElementById('applyCardTypeSelectTemplate').innerHTML).render(data, function(html) {
- document.getElementById('applyCardTypeSelectTemplateBox').innerHTML = html;
- });
- form.render('select', 'applyCardTypeSelectTemplateBox');
- var selectObj = {};
- selectObj['applyCardType'] = selectValue;
- form.val('dataForm', selectObj);
- }, function(code, data) {
- top.dialog.msg(data.msg);
- });
- }
-
form.on('radio(applyFenLeiFilter)', function(data){
var val = data.value;//被点击的radio的value值
if(val == 1){
@@ -412,21 +397,6 @@
}
});
- // 初始化报名人文化程度
- function initApplyCultureLevelSelect(selectValue) {
- top.restAjax.get(top.restAjax.path('api/data/listbyparentid/d6b9f026-6ea9-456a-b48b-0c18d502523b', []), {}, null, function(code, data, args) {
- laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
- document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
- });
- form.render('select', 'applyCultureLevelSelectTemplateBox');
- var selectObj = {};
- selectObj['applyCultureLevel'] = selectValue;
- form.val('dataForm', selectObj);
- }, function(code, data) {
- top.dialog.msg(data.msg);
- });
- }
-
// 初始化头像图片上传
function initApplyUserCardPhotoUploadFile() {
var files = $('#applyUserCardPhoto').val();
diff --git a/src/main/resources/static/route/classplan/update-user-register2.html b/src/main/resources/static/route/classplan/update-user-register2.html
index cf0bf51..41d3bef 100644
--- a/src/main/resources/static/route/classplan/update-user-register2.html
+++ b/src/main/resources/static/route/classplan/update-user-register2.html
@@ -177,7 +177,7 @@