|
|
@@ -115,132 +115,148 @@ |
|
|
|
<form class="layui-form" action=""> |
|
|
|
<!-- / chickForm_sec1 --> |
|
|
|
<div class="chickForm_sec1"> |
|
|
|
@*<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 姓名</span> |
|
|
|
<input type="text" id="StuName" name="StuName" lay-verify="required" placeholder="请输入姓名" class="layui-input"> |
|
|
|
</div>*@ |
|
|
|
|
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 姓名</span> |
|
|
|
<input type="text" id="StuName" name="StuName" lay-verify="required" placeholder="请输入姓名" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 性别</span> |
|
|
|
<span class="chickInputLable"><span>*</span> 专业一 </span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="Gender" name="Gender" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
<option value="true">男</option> |
|
|
|
<option value="false">女</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">民族</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<select id="Nationals" name="Nationals" lay-verify=""> |
|
|
|
<select id="MajorOne" name="MajorOne" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 住址</span> |
|
|
|
<input type="text" id="HomeAddress" name="HomeAddress" lay-verify="required" placeholder="请输入住址" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 身份证号</span> |
|
|
|
<input type="text" id="IDCard" name="IDCard" lay-verify="required" placeholder="请输入身份证号" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 手机号</span> |
|
|
|
<input type="text" id="StuMobile" name="StuMobile" lay-verify="required" placeholder="请输入手机号" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 毕业学校</span> |
|
|
|
<input type="text" id="FromSchool" name="FromSchool" lay-verify="required" placeholder="请输入毕业学校" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 中考总分</span> |
|
|
|
<input type="number" id="MidTermExam" name="MidTermExam" lay-verify="required" placeholder="请输入中考总分" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"> 特长</span> |
|
|
|
<input type="text" id="Specialty" name="Specialty" placeholder="请输入特长" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 地市</span> |
|
|
|
<span class="chickInputLable"><span>*</span> 专业二 </span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="City" name="City" lay-verify="" lay-filter="City"> |
|
|
|
<select id="MajorTwo" name="MajorTwo" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
@*<input type="text" id="City" name="City" lay-verify="required" placeholder="请输入地市" class="layui-input">*@ |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 县区</span> |
|
|
|
<span class="chickInputLable"><span>*</span> 专业三 </span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="County" name="County" lay-verify="" lay-filter="County"> |
|
|
|
<select id="MajorThree" name="MajorThree" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
@*<input type="text" id="County" name="County" lay-verify="required" placeholder="请输入县区" class="layui-input">*@ |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 专业</span> |
|
|
|
<span class="chickInputLable"><span>*</span> 服从安排</span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="MajorNo" name="MajorNo" lay-verify=""> |
|
|
|
<select id="Gender" name="Gender" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
<option value="true">是</option> |
|
|
|
<option value="false">否</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">身份证正面照片</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload1"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 身份证正面照片</span> |
|
|
|
<input type="text" id="IdCardPto1" name="IdCardPto1" class="layui-input"> |
|
|
|
</div> |
|
|
|
@* |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">民族</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<select id="Nationals" name="Nationals" lay-verify=""> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 住址</span> |
|
|
|
<input type="text" id="HomeAddress" name="HomeAddress" lay-verify="required" placeholder="请输入住址" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 身份证号</span> |
|
|
|
<input type="text" id="IDCard" name="IDCard" lay-verify="required" placeholder="请输入身份证号" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 手机号</span> |
|
|
|
<input type="text" id="StuMobile" name="StuMobile" lay-verify="required" placeholder="请输入手机号" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 毕业学校</span> |
|
|
|
<input type="text" id="FromSchool" name="FromSchool" lay-verify="required" placeholder="请输入毕业学校" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 中考总分</span> |
|
|
|
<input type="number" id="MidTermExam" name="MidTermExam" lay-verify="required" placeholder="请输入中考总分" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"> 特长</span> |
|
|
|
<input type="text" id="Specialty" name="Specialty" placeholder="请输入特长" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 地市</span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="City" name="City" lay-verify="" lay-filter="City"> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"><span>*</span> 县区</span> |
|
|
|
<div class="chickInputBox chickInputBoxs"> |
|
|
|
<select id="County" name="County" lay-verify="" lay-filter="County"> |
|
|
|
<option value="">请选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">身份证正面照片</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload1"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 身份证正面照片</span> |
|
|
|
<input type="text" id="IdCardPto1" name="IdCardPto1" class="layui-input"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">身份证反面照片</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload2"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 身份证反面照片</span> |
|
|
|
<input type="text" id="IdCardPto2" name="IdCardPto2" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">初中毕业证</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list" id="chickUpload"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 初中毕业证照片</span> |
|
|
|
<input type="text" id="MidDiplomaPto" name="MidDiplomaPto" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">身份证反面照片</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="IdCardPtoUpload2"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 身份证反面照片</span> |
|
|
|
<input type="text" id="IdCardPto2" name="IdCardPto2" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">初中毕业证</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list" id="chickUpload"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 初中毕业证照片</span> |
|
|
|
<input type="text" id="MidDiplomaPto" name="MidDiplomaPto" class="layui-input"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">中考成绩截图</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="MidAchievementUpload"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 中考成绩照片</span> |
|
|
|
<input type="text" id="MidAchievementPto" name="MidAchievementPto" class="layui-input"> |
|
|
|
</div> |
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable">中考成绩截图</span> |
|
|
|
<div class="chickInputBox"> |
|
|
|
<div class="layui-upload-list UploadFile" id="MidAchievementUpload"> |
|
|
|
<img src="~/Content/images/chick1.png" class="layui-upload-img" /> |
|
|
|
<div>选择</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="chickInput" hidden> |
|
|
|
<span class="chickInputLable" hidden><span>*</span> 中考成绩照片</span> |
|
|
|
<input type="text" id="MidAchievementPto" name="MidAchievementPto" class="layui-input"> |
|
|
|
</div>*@ |
|
|
|
|
|
|
|
<div class="chickInput"> |
|
|
|
<span class="chickInputLable"> 备注</span> |
|
|
@@ -248,7 +264,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- / chickForm_sec1 --> |
|
|
|
<div class="chickBtn" lay-submit lay-filter="*">提交</div> |
|
|
|
<div class="chickBtn" lay-submit lay-filter="*">保存草稿</div> |
|
|
|
<div class="chickBtn" lay-submit lay-filter="*">保存并提交</div> |
|
|
|
@*<div class="submitBtn" lay-submit lay-filter="*">提交</div> |
|
|
|
<div class="saveBtn" lay-submit lay-filter="*">保存草稿</div>*@ |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -261,27 +280,28 @@ |
|
|
|
<script src="~/PhonePage/server.js"></script> |
|
|
|
<script> |
|
|
|
var today = formatDateTimesM(); |
|
|
|
var EmpNo = request('EmpNo'); //'XCMY1002'; |
|
|
|
//var CardId = request('IDCARD'); //'XCMY1002'; |
|
|
|
layui.use(['form', 'laydate', 'upload'], function () { |
|
|
|
var form = layui.form; |
|
|
|
//登录按钮点击 |
|
|
|
form.on('submit(*)', function (data) { |
|
|
|
if (!$('#IdCardPto1').val() || !$('#IdCardPto2').val()) { |
|
|
|
alert('请上传身份证照片!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!$('#MidDiplomaPto').val()) { |
|
|
|
alert('请上传初中毕业证照片!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!$('#MidAchievementPto').val()) { |
|
|
|
alert('请上传中考成绩截图!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
//if (!$('#IdCardPto1').val() || !$('#IdCardPto2').val()) { |
|
|
|
// alert('请上传身份证照片!'); |
|
|
|
// return; |
|
|
|
//} |
|
|
|
//if (!$('#MidDiplomaPto').val()) { |
|
|
|
// alert('请上传初中毕业证照片!'); |
|
|
|
// return; |
|
|
|
//} |
|
|
|
//if (!$('#MidAchievementPto').val()) { |
|
|
|
// alert('请上传中考成绩截图!'); |
|
|
|
// return; |
|
|
|
//} |
|
|
|
|
|
|
|
var strEntity = JSON.stringify(data.field); |
|
|
|
//strEntity.EmpNo = EmpNo; |
|
|
|
strEntity.CardId = CardId; |
|
|
|
$.ajax({ |
|
|
|
url: '/EducationalAdministration/StuEnrollPhone/SaveForm?keyValue=&EmpNo=' + EmpNo, |
|
|
|
url: '/EducationalAdministration/StuVolunteer/DraftForm?keyValue=&IDCARD=' + CardId, |
|
|
|
data: { strEntity: strEntity }, |
|
|
|
type: "POST", |
|
|
|
dataType: "json", |
|
|
@@ -290,7 +310,7 @@ |
|
|
|
success: function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
alert('报名成功,请等待考试通知'); |
|
|
|
location.href = '/EducationalAdministration/StuEnrollPhone/Link?EmpNo=' + EmpNo; |
|
|
|
location.href = '/EducationalAdministration/StuVolunteer/Link?CardId=' + CardId; |
|
|
|
} else { |
|
|
|
return alert(data.data); |
|
|
|
} |
|
|
@@ -302,6 +322,29 @@ |
|
|
|
complete: function () { |
|
|
|
} |
|
|
|
}); |
|
|
|
//保存并提交 |
|
|
|
//$.ajax({ |
|
|
|
// url: '/EducationalAdministration/StuVolunteer/SubmitForm?keyValue=&IDCARD=' + CardId, |
|
|
|
// data: { strEntity: strEntity }, |
|
|
|
// type: "POST", |
|
|
|
// dataType: "json", |
|
|
|
// async: true, |
|
|
|
// cache: false, |
|
|
|
// success: function (data) { |
|
|
|
// if (data.code == 200) { |
|
|
|
// alert('报名成功,请等待考试通知'); |
|
|
|
// location.href = '/EducationalAdministration/StuVolunteer/Link?CardId=' + CardId; |
|
|
|
// } else { |
|
|
|
// return alert(data.data); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// error: function (XMLHttpRequest, textStatus, errorThrown) { |
|
|
|
// }, |
|
|
|
// beforeSend: function () { |
|
|
|
// }, |
|
|
|
// complete: function () { |
|
|
|
// } |
|
|
|
//}); |
|
|
|
return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 |
|
|
|
|
|
|
|
}); |
|
|
@@ -316,168 +359,168 @@ |
|
|
|
|
|
|
|
var upload = layui.upload; |
|
|
|
|
|
|
|
//初中毕业证 |
|
|
|
var uploadInst = upload.render({ |
|
|
|
elem: '#chickUpload', |
|
|
|
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
exts: 'jpg|png|gif|', |
|
|
|
multiple: false, |
|
|
|
before: function (obj) { |
|
|
|
//预读本地文件示例,不支持ie8 |
|
|
|
obj.preview(function (index, file, result) { |
|
|
|
$('#chickUpload').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
}); |
|
|
|
}, |
|
|
|
done: function (res) { |
|
|
|
//如果上传失败 |
|
|
|
if (res.code != 200) { |
|
|
|
return layer.msg('上传失败'); |
|
|
|
} else { |
|
|
|
$("#MidDiplomaPto").val(res.data.folderId) |
|
|
|
} |
|
|
|
//上传成功 |
|
|
|
}, |
|
|
|
error: function () { |
|
|
|
//演示失败状态,并实现重传 |
|
|
|
var demoText = $('#demoText'); |
|
|
|
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
demoText.find('.demo-reload').on('click', function () { |
|
|
|
uploadInst.upload(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//身份证正面照片 |
|
|
|
var uploadIdCard = upload.render({ |
|
|
|
elem: '#IdCardPtoUpload1', |
|
|
|
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
exts: 'jpg|png|gif|', |
|
|
|
multiple: true, |
|
|
|
before: function (obj) { |
|
|
|
//预读本地文件示例,不支持ie8 |
|
|
|
obj.preview(function (index, file, result) { |
|
|
|
$('#IdCardPtoUpload1').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
}); |
|
|
|
}, |
|
|
|
done: function (res) { |
|
|
|
//如果上传失败 |
|
|
|
if (res.code != 200) { |
|
|
|
return layer.msg('上传失败'); |
|
|
|
} else { |
|
|
|
$("#IdCardPto1").val(res.data.folderId) |
|
|
|
} |
|
|
|
//上传成功 |
|
|
|
}, |
|
|
|
error: function () { |
|
|
|
//演示失败状态,并实现重传 |
|
|
|
var demoText = $('#demoText'); |
|
|
|
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
demoText.find('.demo-reload').on('click', function () { |
|
|
|
uploadIdCard.upload(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//身份证反面照片 |
|
|
|
var uploadIdCard = upload.render({ |
|
|
|
elem: '#IdCardPtoUpload2', |
|
|
|
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
exts: 'jpg|png|gif|', |
|
|
|
multiple: true, |
|
|
|
before: function (obj) { |
|
|
|
//预读本地文件示例,不支持ie8 |
|
|
|
obj.preview(function (index, file, result) { |
|
|
|
$('#IdCardPtoUpload2').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
}); |
|
|
|
}, |
|
|
|
done: function (res) { |
|
|
|
//如果上传失败 |
|
|
|
if (res.code != 200) { |
|
|
|
return layer.msg('上传失败'); |
|
|
|
} else { |
|
|
|
$("#IdCardPto2").val(res.data.folderId) |
|
|
|
} |
|
|
|
//上传成功 |
|
|
|
}, |
|
|
|
error: function () { |
|
|
|
//演示失败状态,并实现重传 |
|
|
|
var demoText = $('#demoText'); |
|
|
|
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
demoText.find('.demo-reload').on('click', function () { |
|
|
|
uploadIdCard.upload(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
////初中毕业证 |
|
|
|
//var uploadInst = upload.render({ |
|
|
|
// elem: '#chickUpload', |
|
|
|
// url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
// exts: 'jpg|png|gif|', |
|
|
|
// multiple: false, |
|
|
|
// before: function (obj) { |
|
|
|
// //预读本地文件示例,不支持ie8 |
|
|
|
// obj.preview(function (index, file, result) { |
|
|
|
// $('#chickUpload').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
// done: function (res) { |
|
|
|
// //如果上传失败 |
|
|
|
// if (res.code != 200) { |
|
|
|
// return layer.msg('上传失败'); |
|
|
|
// } else { |
|
|
|
// $("#MidDiplomaPto").val(res.data.folderId) |
|
|
|
// } |
|
|
|
// //上传成功 |
|
|
|
// }, |
|
|
|
// error: function () { |
|
|
|
// //演示失败状态,并实现重传 |
|
|
|
// var demoText = $('#demoText'); |
|
|
|
// demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
// demoText.find('.demo-reload').on('click', function () { |
|
|
|
// uploadInst.upload(); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
|
|
|
|
////身份证正面照片 |
|
|
|
//var uploadIdCard = upload.render({ |
|
|
|
// elem: '#IdCardPtoUpload1', |
|
|
|
// url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
// exts: 'jpg|png|gif|', |
|
|
|
// multiple: true, |
|
|
|
// before: function (obj) { |
|
|
|
// //预读本地文件示例,不支持ie8 |
|
|
|
// obj.preview(function (index, file, result) { |
|
|
|
// $('#IdCardPtoUpload1').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
// done: function (res) { |
|
|
|
// //如果上传失败 |
|
|
|
// if (res.code != 200) { |
|
|
|
// return layer.msg('上传失败'); |
|
|
|
// } else { |
|
|
|
// $("#IdCardPto1").val(res.data.folderId) |
|
|
|
// } |
|
|
|
// //上传成功 |
|
|
|
// }, |
|
|
|
// error: function () { |
|
|
|
// //演示失败状态,并实现重传 |
|
|
|
// var demoText = $('#demoText'); |
|
|
|
// demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
// demoText.find('.demo-reload').on('click', function () { |
|
|
|
// uploadIdCard.upload(); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
|
|
|
|
////身份证反面照片 |
|
|
|
//var uploadIdCard = upload.render({ |
|
|
|
// elem: '#IdCardPtoUpload2', |
|
|
|
// url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
// exts: 'jpg|png|gif|', |
|
|
|
// multiple: true, |
|
|
|
// before: function (obj) { |
|
|
|
// //预读本地文件示例,不支持ie8 |
|
|
|
// obj.preview(function (index, file, result) { |
|
|
|
// $('#IdCardPtoUpload2').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
// done: function (res) { |
|
|
|
// //如果上传失败 |
|
|
|
// if (res.code != 200) { |
|
|
|
// return layer.msg('上传失败'); |
|
|
|
// } else { |
|
|
|
// $("#IdCardPto2").val(res.data.folderId) |
|
|
|
// } |
|
|
|
// //上传成功 |
|
|
|
// }, |
|
|
|
// error: function () { |
|
|
|
// //演示失败状态,并实现重传 |
|
|
|
// var demoText = $('#demoText'); |
|
|
|
// demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
// demoText.find('.demo-reload').on('click', function () { |
|
|
|
// uploadIdCard.upload(); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
//中考成绩截图 |
|
|
|
var uploadMidAchieve = upload.render({ |
|
|
|
elem: '#MidAchievementUpload', |
|
|
|
url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
before: function (obj) { |
|
|
|
//预读本地文件示例,不支持ie8 |
|
|
|
obj.preview(function (index, file, result) { |
|
|
|
$('#MidAchievementUpload').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
}); |
|
|
|
}, |
|
|
|
done: function (res) { |
|
|
|
//如果上传失败 |
|
|
|
if (res.code != 200) { |
|
|
|
return layer.msg('上传失败'); |
|
|
|
} else { |
|
|
|
$("#MidAchievementPto").val(res.data.folderId); |
|
|
|
} |
|
|
|
//上传成功 |
|
|
|
}, |
|
|
|
error: function () { |
|
|
|
//演示失败状态,并实现重传 |
|
|
|
var demoText = $('#demoText'); |
|
|
|
demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
demoText.find('.demo-reload').on('click', function () { |
|
|
|
uploadMidAchieve.upload(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//监听地市 |
|
|
|
form.on('select(City)', function (data) { |
|
|
|
//绑定县区 |
|
|
|
$.ajax({ |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA" + "&where=" + "aparent='" + data.value + "'", |
|
|
|
async: false, |
|
|
|
success: function (msg) { |
|
|
|
var companys = $.parseJSON(msg).data.data; |
|
|
|
var str = '<option value="">请选择</option>'; |
|
|
|
$.each(companys, |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.acode + '">' + item.aname + '</option>'; |
|
|
|
}); |
|
|
|
$("#County").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
//绑定专业 |
|
|
|
|
|
|
|
|
|
|
|
form.render(); |
|
|
|
}); |
|
|
|
//监听县区 |
|
|
|
form.on('select(County)', function (data) { |
|
|
|
//绑定专业 |
|
|
|
$.ajax({ |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo" + "&where=" + "Area='" + data.value + "'", |
|
|
|
async: false, |
|
|
|
success: function (msg) { |
|
|
|
var companys = $.parseJSON(msg).data.data; |
|
|
|
var str = '<option value="">请选择</option>'; |
|
|
|
$.each(companys, |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.id + '">' + item.majorname + '</option>' |
|
|
|
}) |
|
|
|
$("#MajorNo").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
form.render(); |
|
|
|
}); |
|
|
|
//var uploadMidAchieve = upload.render({ |
|
|
|
// elem: '#MidAchievementUpload', |
|
|
|
// url: '/EducationalAdministration/EmpInfoEnternal/UploadImg', |
|
|
|
// before: function (obj) { |
|
|
|
// //预读本地文件示例,不支持ie8 |
|
|
|
// obj.preview(function (index, file, result) { |
|
|
|
// $('#MidAchievementUpload').html('<img src="' + result + '" alt="">') //图片链接(base64) |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
// done: function (res) { |
|
|
|
// //如果上传失败 |
|
|
|
// if (res.code != 200) { |
|
|
|
// return layer.msg('上传失败'); |
|
|
|
// } else { |
|
|
|
// $("#MidAchievementPto").val(res.data.folderId); |
|
|
|
// } |
|
|
|
// //上传成功 |
|
|
|
// }, |
|
|
|
// error: function () { |
|
|
|
// //演示失败状态,并实现重传 |
|
|
|
// var demoText = $('#demoText'); |
|
|
|
// demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>'); |
|
|
|
// demoText.find('.demo-reload').on('click', function () { |
|
|
|
// uploadMidAchieve.upload(); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
|
|
|
|
////监听地市 |
|
|
|
//form.on('select(City)', function (data) { |
|
|
|
// //绑定县区 |
|
|
|
// $.ajax({ |
|
|
|
// url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA" + "&where=" + "aparent='" + data.value + "'", |
|
|
|
// async: false, |
|
|
|
// success: function (msg) { |
|
|
|
// var companys = $.parseJSON(msg).data.data; |
|
|
|
// var str = '<option value="">请选择</option>'; |
|
|
|
// $.each(companys, |
|
|
|
// function (i, item) { |
|
|
|
// str += '<option value="' + item.acode + '">' + item.aname + '</option>'; |
|
|
|
// }); |
|
|
|
// $("#County").html(str); |
|
|
|
// }, |
|
|
|
// }); |
|
|
|
// //绑定专业 |
|
|
|
|
|
|
|
|
|
|
|
// form.render(); |
|
|
|
//}); |
|
|
|
////监听县区 |
|
|
|
//form.on('select(County)', function (data) { |
|
|
|
// //绑定专业 |
|
|
|
// $.ajax({ |
|
|
|
// url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo" + "&where=" + "Area='" + data.value + "'", |
|
|
|
// async: false, |
|
|
|
// success: function (msg) { |
|
|
|
// var companys = $.parseJSON(msg).data.data; |
|
|
|
// var str = '<option value="">请选择</option>'; |
|
|
|
// $.each(companys, |
|
|
|
// function (i, item) { |
|
|
|
// str += '<option value="' + item.id + '">' + item.majorname + '</option>' |
|
|
|
// }) |
|
|
|
// $("#MajorNo").html(str); |
|
|
|
// }, |
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
// form.render(); |
|
|
|
//}); |
|
|
|
}); |
|
|
|
$(window).load(function () { |
|
|
|
//$('.chickInputBoxs input').attr('lay-verify', 'required'); |
|
|
@@ -492,52 +535,78 @@ |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.id + '">' + item.majorname + '</option>' |
|
|
|
}) |
|
|
|
$("#MajorNo").html(str); |
|
|
|
$("#MajorOne").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
//民族 |
|
|
|
$.ajax({ |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "BCdNationality", |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo", |
|
|
|
async: false, |
|
|
|
success: function (msg) { |
|
|
|
var companys = $.parseJSON(msg).data.data; |
|
|
|
var str = '<option value="">请选择</option>'; |
|
|
|
$.each(companys, |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.nationalityno + '">' + item.nationality + '</option>' |
|
|
|
str += '<option value="' + item.id + '">' + item.majorname + '</option>' |
|
|
|
}) |
|
|
|
$("#Nationals").html(str); |
|
|
|
$("#MajorTwo").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
//地市 |
|
|
|
$.ajax({ |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_CITY" + "&where=" + "cparent='650000'", |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "CdMajorInfo", |
|
|
|
async: false, |
|
|
|
success: function (msg) { |
|
|
|
var companys = $.parseJSON(msg).data.data; |
|
|
|
var str = '<option value="">请选择</option>'; |
|
|
|
$.each(companys, |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.ccode + '">' + item.cname + '</option>' |
|
|
|
str += '<option value="' + item.id + '">' + item.majorname + '</option>' |
|
|
|
}) |
|
|
|
$("#City").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
//县区 |
|
|
|
$.ajax({ |
|
|
|
url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA", |
|
|
|
async: false, |
|
|
|
success: function (msg) { |
|
|
|
var companys = $.parseJSON(msg).data.data; |
|
|
|
var str = '<option value="">请选择</option>'; |
|
|
|
$.each(companys, |
|
|
|
function (i, item) { |
|
|
|
str += '<option value="' + item.acode + '">' + item.aname + '</option>'; |
|
|
|
}); |
|
|
|
$("#County").html(str); |
|
|
|
$("#MajorThree").html(str); |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
////民族 |
|
|
|
//$.ajax({ |
|
|
|
// url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "BCdNationality", |
|
|
|
// async: false, |
|
|
|
// success: function (msg) { |
|
|
|
// var companys = $.parseJSON(msg).data.data; |
|
|
|
// var str = '<option value="">请选择</option>'; |
|
|
|
// $.each(companys, |
|
|
|
// function (i, item) { |
|
|
|
// str += '<option value="' + item.nationalityno + '">' + item.nationality + '</option>' |
|
|
|
// }) |
|
|
|
// $("#Nationals").html(str); |
|
|
|
// }, |
|
|
|
//}); |
|
|
|
////地市 |
|
|
|
//$.ajax({ |
|
|
|
// url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_CITY" + "&where=" + "cparent='650000'", |
|
|
|
// async: false, |
|
|
|
// success: function (msg) { |
|
|
|
// var companys = $.parseJSON(msg).data.data; |
|
|
|
// var str = '<option value="">请选择</option>'; |
|
|
|
// $.each(companys, |
|
|
|
// function (i, item) { |
|
|
|
// str += '<option value="' + item.ccode + '">' + item.cname + '</option>' |
|
|
|
// }) |
|
|
|
// $("#City").html(str); |
|
|
|
// }, |
|
|
|
//}); |
|
|
|
////县区 |
|
|
|
//$.ajax({ |
|
|
|
// url: "/EducationalAdministration/EmpInfoEnternal/GetMap?code=" + "DIC_AREA", |
|
|
|
// async: false, |
|
|
|
// success: function (msg) { |
|
|
|
// var companys = $.parseJSON(msg).data.data; |
|
|
|
// var str = '<option value="">请选择</option>'; |
|
|
|
// $.each(companys, |
|
|
|
// function (i, item) { |
|
|
|
// str += '<option value="' + item.acode + '">' + item.aname + '</option>'; |
|
|
|
// }); |
|
|
|
// $("#County").html(str); |
|
|
|
// }, |
|
|
|
//}); |
|
|
|
renderForm(); |
|
|
|
|
|
|
|
}); |
|
|
|