Commit 9dd3a92c by wancheng

前端校验优化

parent 96deb3b4
...@@ -594,11 +594,6 @@ function saveFunc() { ...@@ -594,11 +594,6 @@ function saveFunc() {
flag = false; flag = false;
return false; return false;
} }
if(isBlank(num)){
message("选中的第"+(index+1)+"行\"数量\",不能为空!");
flag = false;
return false;
}
if (!isPositiveInteger(num)) { if (!isPositiveInteger(num)) {
message("勾选的第" + (index + 1) + "行\"数量\"必须是大于0的整数"); message("勾选的第" + (index + 1) + "行\"数量\"必须是大于0的整数");
flag = false; flag = false;
......
...@@ -45,8 +45,7 @@ $(function () { ...@@ -45,8 +45,7 @@ $(function () {
deleteFunc(); deleteFunc();
}, },
onSuccess: function (e) { onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update' if(e.eiInfo.extAttr.methodName == 'save'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){ ||e.eiInfo.extAttr.methodName == 'delete' ){
query(); query();
} }
......
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