Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
44fb0976
Commit
44fb0976
authored
Sep 29, 2019
by
季圣华
Browse files
首页增加用户数量的统计
parent
5a12539d
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/home.html
View file @
44fb0976
...
...
@@ -62,7 +62,7 @@
<div
class=
"info-box-content"
>
<span
class=
"info-box-text"
>
用户数量
</span>
<span
class=
"info-box-number"
>
28
</span>
<span
id=
"thisUserSum"
class=
"info-box-number"
>
0
</span>
</div>
</div>
</div>
...
...
@@ -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
){
}
});
});
</script>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment