From 44fb09768247816999e05dae91605bd6f80b8037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 29 Sep 2019 21:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=95=B0=E9=87=8F=E7=9A=84=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/home.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/erp_web/home.html b/erp_web/home.html index adefe13a..ea4f10bc 100644 --- a/erp_web/home.html +++ b/erp_web/home.html @@ -62,7 +62,7 @@
用户数量 - 28 + 0
@@ -193,4 +193,30 @@ } }); }); + + $(function () { + $.ajax({ + type: "get", + url: "/user/list", + dataType: "json", + data: ({ + search: JSON.stringify({ + userName: "", + loginName: "" + }), + currentPage: 1, + pageSize: 10 + }), + success: function (res) { + if(res && res.code === 200) { + if(res.data && res.data.page) { + $("#thisUserSum").text(res.data.page.total); + } + } + }, + error:function(res){ + + } + }); + }); \ No newline at end of file