提交数据加载中缓冲提示

$('#healthResultCorrelationCompanyAddForm').form('submit', {
onSubmit: function () {
$.messager.progress({
title: '提示',
msg: '数据提交中,请稍候……',
text: ''
});
return true;
},
url: '<%=basePath%>xyData/health/addCorrelationCompany.do',
success: function (data) {
$.messager.progress('close');
data = eval("(" + data + ")");//JSON字符串转对象

$.messager.show({
title: '提示',
msg: data.msg,
showType: 'show'
});

$('#healthResultCorrelationCompanyAdd').dialog('close');
$('#healthResultCorrelationCompanyTablelist').datagrid('reload');

},
error: function () {
$.messager.show({
title: '提示',
msg: data.msg,
showType: 'show'
});
}
});

posted @ 2020-01-20 11:33  红尘沙漏  阅读(268)  评论(0编辑  收藏  举报