取消考试申请图片和PDF必填验证

This commit is contained in:
wans 2021-06-03 15:19:38 +08:00
parent 460b7b4a42
commit b029950011
2 changed files with 4 additions and 20 deletions

View File

@ -19,7 +19,7 @@
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-form-item layui-form-text"> <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"> <div class="layui-input-block">
<input type="hidden" id="examImages" name="examImages"> <input type="hidden" id="examImages" name="examImages">
<div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div> <div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div>
@ -51,7 +51,7 @@
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-form-item layui-form-text"> <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"> <div class="layui-input-block">
<input type="hidden" id="examPDF" name="examPDF"> <input type="hidden" id="examPDF" name="examPDF">
<div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div> <div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div>
@ -263,14 +263,6 @@
// 提交表单 // 提交表单
form.on('submit(submitForm)', function(formData) { 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.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index); top.dialog.close(index);
var loadLayerIndex; var loadLayerIndex;

View File

@ -20,7 +20,7 @@
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-form-item layui-form-text"> <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"> <div class="layui-input-block">
<input type="hidden" id="examImages" name="examImages"> <input type="hidden" id="examImages" name="examImages">
<div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div> <div class="layui-btn-container" id="examImagesFileBox" style="border: 1px solid #e6e6e6;"></div>
@ -52,7 +52,7 @@
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-form-item layui-form-text"> <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"> <div class="layui-input-block">
<input type="hidden" id="examPDF" name="examPDF"> <input type="hidden" id="examPDF" name="examPDF">
<div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div> <div class="layui-btn-container" id="examPDFFileBox" style="border: 1px solid #e6e6e6;"></div>
@ -285,14 +285,6 @@
// 提交表单 // 提交表单
form.on('submit(submitForm)', function(formData) { 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.confirm(top.dataMessage.commit, function(index) {
top.dialog.close(index); top.dialog.close(index);
var loadLayerIndex; var loadLayerIndex;