记得上下班打卡 | git大法好,push需谨慎

Commit 5b8fb9a2 authored by dongchun's avatar dongchun

修改创建券时描述全为空格的问题

parent d3c07420
......@@ -485,6 +485,7 @@
});
function create() {
if (!$('#valFace').val() || !$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!');
if (typeTwo == 0) {
......@@ -493,6 +494,9 @@
}
}
}
if ($("#describeTxt").val().match(/^\s+$/)) {
return layer.msg('描述说明不可全为空格!');
}
let useScope = 100;
let busiName = $('#searchIpt').val();
let busiId = '';
......
......@@ -425,6 +425,9 @@
}
}
}
if ($("#describeTxt").val().match(/^\s+$/)) {
return layer.msg('描述说明不可全为空格!');
}
let useScope = 100;
let busiName = $('#searchIpt').val();
let busiId = '';
......
......@@ -495,6 +495,9 @@
}
}
}
if ($("#describeTxt").val().match(/^\s+$/)) {
return layer.msg('描述说明不可全为空格!');
}
let useScope = 100;
let busiName = $('#searchIpt').val();
let busiId = '';
......
......@@ -296,6 +296,9 @@
if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!');
}
if ($("#describeTxt").val().match(/^\s+$/)) {
return layer.msg('描述说明不可全为空格!');
}
let useScope = 100;
let busiName = $("#searchIpt").val();
let busiId = '';
......
......@@ -322,6 +322,9 @@
};
}
}
if ($("#describeTxt").val().match(/^\s+$/)) {
return layer.msg('描述说明不可全为空格!');
}
let useScope = 100;
let busiName = '';
let busiId = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment