取消考试申请图片和PDF必填验证
This commit is contained in:
parent
460b7b4a42
commit
b029950011
@ -19,7 +19,7 @@
|
||||
<div class="layui-row">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-form-item layui-form-text">
|
||||
<label class="layui-form-label"><span style="color: #cc0000">*</span>上传考试申请图片</label>
|
||||
<label class="layui-form-label">上传考试申请图片</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="examImages" name="examImages">
|
||||
<div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div>
|
||||
@ -51,7 +51,7 @@
|
||||
<div class="layui-row">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-form-item layui-form-text">
|
||||
<label class="layui-form-label"><span style="color: #cc0000">*</span>上传考试申请PDF</label>
|
||||
<label class="layui-form-label">上传考试申请PDF</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="examPDF" name="examPDF">
|
||||
<div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div>
|
||||
@ -263,14 +263,6 @@
|
||||
|
||||
// 提交表单
|
||||
form.on('submit(submitForm)', function(formData) {
|
||||
if(formData.field['examImages'] == ''){
|
||||
top.dialog.msg('请上传考试申请图片资料');
|
||||
return;
|
||||
}
|
||||
if(formData.field['examPDF'] == ''){
|
||||
top.dialog.msg('请上传考试申请PDF资料');
|
||||
return;
|
||||
}
|
||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||
top.dialog.close(index);
|
||||
var loadLayerIndex;
|
||||
|
@ -20,7 +20,7 @@
|
||||
<div class="layui-row">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-form-item layui-form-text">
|
||||
<label class="layui-form-label"><span style="color: #cc0000">*</span>上传考试申请图片</label>
|
||||
<label class="layui-form-label">上传考试申请图片</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="examImages" name="examImages">
|
||||
<div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div>
|
||||
@ -52,7 +52,7 @@
|
||||
<div class="layui-row">
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-form-item layui-form-text">
|
||||
<label class="layui-form-label"><span style="color: #cc0000">*</span>上传考试申请PDF</label>
|
||||
<label class="layui-form-label">上传考试申请PDF</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" id="examPDF" name="examPDF">
|
||||
<div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div>
|
||||
@ -285,14 +285,6 @@
|
||||
|
||||
// 提交表单
|
||||
form.on('submit(submitForm)', function(formData) {
|
||||
if(formData.field['examImages'] == ''){
|
||||
top.dialog.msg('请上传考试申请图片资料');
|
||||
return;
|
||||
}
|
||||
if(formData.field['examPDF'] == ''){
|
||||
top.dialog.msg('请上传考试申请PDF资料');
|
||||
return;
|
||||
}
|
||||
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
||||
top.dialog.close(index);
|
||||
var loadLayerIndex;
|
||||
|
Loading…
Reference in New Issue
Block a user