统一table,成功,失败返回响应,封装模型序列化函数
This commit is contained in:
@@ -160,7 +160,7 @@
|
||||
type: 'POST',
|
||||
success: function(res) {
|
||||
layer.close(loading);
|
||||
if (res.code==200) {
|
||||
if (res.success) {
|
||||
layer.msg(res.msg, {
|
||||
icon: 1,
|
||||
time: 1000
|
||||
@@ -208,7 +208,7 @@
|
||||
type: 'POST',
|
||||
success: function(res) {
|
||||
layer.close(loading);
|
||||
if (res.code==200) {
|
||||
if (res.success) {
|
||||
layer.msg(res.msg, {
|
||||
icon: 1,
|
||||
time: 1000
|
||||
|
||||
@@ -46,7 +46,7 @@ layui.use(['jquery','element','form','upload'], function() {
|
||||
,size: 1000
|
||||
,bindAction: '#logo-upload-button'
|
||||
,done: function(res){
|
||||
if(res.code == 0){
|
||||
if(res.success){
|
||||
layer.msg(res.msg,{icon:1,time:500},function(){
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));//关闭当前页
|
||||
window.parent.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user