From 3adcada7351e0df0fe0967eeb3956f5478eb0e8f Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 3 Mar 2022 10:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/queue/index.html | 7 ++++--- app/admin/view/user/form.html | 8 +------- app/admin/view/user/index.html | 3 ++- app/admin/view/user/index_search.html | 1 - 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/app/admin/view/queue/index.html b/app/admin/view/queue/index.html index ea3236d9b..0b9875de1 100644 --- a/app/admin/view/queue/index.html +++ b/app/admin/view/queue/index.html @@ -24,7 +24,7 @@ 服务状态:检查中 - + 任务统计:待处理 {$total.pre|default=0} 个任务,处理中 {$total.dos|default=0} 个任务,已完成 {$total.oks|default=0} 个任务,已失败 {$total.ers|default=0} 个任务。 @@ -37,7 +37,7 @@ {block name='script'} + \ No newline at end of file + \ No newline at end of file diff --git a/app/admin/view/user/index.html b/app/admin/view/user/index.html index 9ca500757..a747cfc8f 100644 --- a/app/admin/view/user/index.html +++ b/app/admin/view/user/index.html @@ -69,7 +69,8 @@ // 数据状态切换操作 layui.form.on('switch(StatusSwitch)', function (obj) { - $.form.load("{:url('state')}", {id: obj.value, status: obj.elem.checked > 0 ? 1 : 0}, 'post', function (ret) { + var data = {id: obj.value, status: obj.elem.checked > 0 ? 1 : 0}; + $.form.load("{:url('state')}", data, 'post', function (ret) { if (ret.code < 1) $.msg.error(ret.info, 3, function () { $('#UserData').trigger('reload'); }); diff --git a/app/admin/view/user/index_search.html b/app/admin/view/user/index_search.html index 52240a610..4bcd66dde 100644 --- a/app/admin/view/user/index_search.html +++ b/app/admin/view/user/index_search.html @@ -65,5 +65,4 @@ - \ No newline at end of file