统一table,成功,失败返回响应,封装模型序列化函数

This commit is contained in:
mkg
2021-04-29 19:01:18 +08:00
parent 3d5e4b9e9b
commit e111f4a763
15 changed files with 167 additions and 170 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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();