优化表单提交保存错误时提示的显示类型

This commit is contained in:
wumingyu
2019-05-09 17:02:50 +08:00
parent df74e417e8
commit 73c7060e02

View File

@@ -65,7 +65,11 @@
$("#inputForm").validate({
submitHandler: function(form){
js.ajaxSubmitForm($(form), function(data){
js.showMessage(data.message);
if(data.result == Global.FALSE){
js.showMessage(data.message,"错误","error");
}else{
js.showMessage(data.message);
}
if(data.result == Global.TRUE){
js.closeCurrentTabPage(function(contentWindow){
<% if(table.isTreeEntity){ %>