Commit 9dd1396e by 朱继来

调整

parent bf89fd19
Showing with 2 additions and 2 deletions
...@@ -195,8 +195,8 @@ layui.use(['form', 'table', 'laydate'], function(){ ...@@ -195,8 +195,8 @@ layui.use(['form', 'table', 'laydate'], function(){
data: datax, data: datax,
dataType: 'json', dataType: 'json',
success: function(resp) { success: function(resp) {
console.log(resp)
if (resp.errcode == 0) { if (resp.errcode == 0) {
layer.close(index)
layer.msg(resp.errmsg); layer.msg(resp.errmsg);
renderTable(); // 重新加载table renderTable(); // 重新加载table
$('.search').trigger("click"); // 触发搜索按钮 $('.search').trigger("click"); // 触发搜索按钮
...@@ -204,7 +204,7 @@ layui.use(['form', 'table', 'laydate'], function(){ ...@@ -204,7 +204,7 @@ layui.use(['form', 'table', 'laydate'], function(){
return false; return false;
} }
layer.close(index)
layer.alert(resp.errmsg); layer.alert(resp.errmsg);
}, },
error: function(err) { error: function(err) {
......
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 sign in to comment