This commit is contained in:
parent
ec51ffb665
commit
99c584543e
|
|
@ -38,7 +38,9 @@
|
|||
<label for="file_name" class="layui-form-label">
|
||||
<span class="x-red"></span>文件名</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="file_name" name="file_name" required="" lay-verify="file_name" autocomplete="off" class="layui-input" readonly></div>
|
||||
<!-- <input type="text" id="file_name" name="file_name" required="" lay-verify="file_name" autocomplete="off" class="layui-input" readonly> -->
|
||||
<input type="text" id="file_name" name="file_name" required="" lay-verify="file_name" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="version_num" class="layui-form-label">
|
||||
|
|
@ -157,22 +159,22 @@
|
|||
//自定义验证规则
|
||||
form.verify({
|
||||
|
||||
// upload_file_app: function(value) {
|
||||
// if (value == '') {
|
||||
// return '请先选择文件';
|
||||
// }
|
||||
// },
|
||||
// file_name: function(value) {
|
||||
// if (value == '') {
|
||||
// return '必须填写文件名';
|
||||
// }
|
||||
// },
|
||||
// version_num: [/^V[\d.]{0,9}$/, '版本号必须以大写V开头最多10个字符(由数字跟英文"."组成)'],
|
||||
// content: function(value) {
|
||||
// if (value == '') {
|
||||
// return '必须填写描述';
|
||||
// }
|
||||
// },
|
||||
upload_file_app: function(value) {
|
||||
if (value == '') {
|
||||
return '请先选择文件';
|
||||
}
|
||||
},
|
||||
file_name: function(value) {
|
||||
if (value == '') {
|
||||
return '必须填写文件名';
|
||||
}
|
||||
},
|
||||
version_num: [/^V[\d.]{0,9}$/, '版本号必须以大写V开头最多10个字符(由数字跟英文"."组成)'],
|
||||
content: function(value) {
|
||||
if (value == '') {
|
||||
return '必须填写描述';
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue