记得上下班打卡 | git大法好,push需谨慎

Commit f293f2fc authored by xuchen's avatar xuchen

修改小家伙

parent 8f5d0af7
...@@ -212,10 +212,15 @@ ...@@ -212,10 +212,15 @@
headers:{"Content-Type":"application/json;charset=UTF-8"}, headers:{"Content-Type":"application/json;charset=UTF-8"},
data: JSON.stringify(postData), data: JSON.stringify(postData),
success:function(e) { success:function(e) {
$(".layui-layer-close1").click(); console.log(e)
refreshItem(); if(e.code === 301){
$('.required-group-text').val(''); $.modal.msg(e.msg)
$('.required-province-text').val(''); }else{
$(".layui-layer-close1").click();
refreshItem();
$('.required-group-text').val('');
$('.required-province-text').val('');
}
} }
}) })
} else { // create } else { // create
...@@ -226,8 +231,12 @@ ...@@ -226,8 +231,12 @@
headers:{"Content-Type":"application/json;charset=UTF-8"}, headers:{"Content-Type":"application/json;charset=UTF-8"},
data: JSON.stringify(postData), data: JSON.stringify(postData),
success:function(e) { success:function(e) {
$(".layui-layer-close1").click(); if(e.code === 301){
refreshItem(); $.modal.msg(e.msg)
}else{
$(".layui-layer-close1").click();
refreshItem();
}
} }
}) })
} }
......
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