|
@@ -1609,17 +1609,20 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- if(validateForm.form()){
|
|
|
- var t1=new Date().getTime();
|
|
|
- $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
+ if(validateForm.form()) {
|
|
|
+ var action = $document.getElementById(inputForm).action;
|
|
|
+ var handleInfo = $($document.getElementById(inputForm)).serialize();
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: action,
|
|
|
+ data: handleInfo,
|
|
|
+ //请求成功
|
|
|
success:function(data) {
|
|
|
var d = data;
|
|
|
//输出提示信息
|
|
|
if(d.str.length>0){
|
|
|
parent.layer.msg(d.str,{icon:1});
|
|
|
}
|
|
|
- var t2=new Date().getTime();
|
|
|
- console.log(t2-t1);
|
|
|
$("#"+tableId).load(location.href + " #"+tableId);
|
|
|
//关闭当前页
|
|
|
top.layer.close(index)
|