From 906c56ba3a5a5bf89551ba20a073a8e4a87e5484 Mon Sep 17 00:00:00 2001 From: hdm Date: Mon, 1 Nov 2021 08:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/menu/index.html | 12 ++++++------ app/admin/view/role/add.html | 4 ++-- app/admin/view/rule/index.html | 6 +++--- app/home/view/index/logs.html | 24 ++++++++++++++++++++++++ public/index.php | 2 +- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/app/admin/view/menu/index.html b/app/admin/view/menu/index.html index 98355f0..50005e6 100644 --- a/app/admin/view/menu/index.html +++ b/app/admin/view/menu/index.html @@ -62,9 +62,9 @@ url: "/admin/menu/post_submit", type: 'post', data: { id: obj.data.id, field: obj.field, value: obj.value }, - success: function (res) { - layer.msg(res.msg); - if(res.code == 1){ + success: function (e) { + layer.msg(e.msg); + if(e.code == 0){ setTimeout(function(){ location.reload() },2000) @@ -82,9 +82,9 @@ url: "/admin/menu/delete", type: 'post', data: { id: obj.data.id }, - success: function (res) { - layer.msg(res.msg); - if (res.code == 0) { + success: function (e) { + layer.msg(e.msg); + if (e.code == 0) { obj.del(); } } diff --git a/app/admin/view/role/add.html b/app/admin/view/role/add.html index c6ed6f3..700cd10 100644 --- a/app/admin/view/role/add.html +++ b/app/admin/view/role/add.html @@ -47,7 +47,7 @@
{volist name="voo.children" id="vooo"}
- +
{/volist}
@@ -85,7 +85,7 @@
{volist name="voo.children" id="vooo"}
- +
{/volist}
diff --git a/app/admin/view/rule/index.html b/app/admin/view/rule/index.html index d706b5e..370beeb 100644 --- a/app/admin/view/rule/index.html +++ b/app/admin/view/rule/index.html @@ -62,9 +62,9 @@ url: "/admin/rule/post_submit", type: 'post', data: { id: obj.data.id, field: obj.field, value: obj.value }, - success: function (res) { - layer.msg(res.msg); - if(res.code == 1){ + success: function (e) { + layer.msg(e.msg); + if(e.code == 0){ setTimeout(function(){ location.reload() },2000) diff --git a/app/home/view/index/logs.html b/app/home/view/index/logs.html index 8fd20e5..b1ca0de 100644 --- a/app/home/view/index/logs.html +++ b/app/home/view/index/logs.html @@ -11,6 +11,30 @@

更新日志