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