Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
b09ebaec
Commit
b09ebaec
authored
Sep 05, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '优化仪表盘loading加载效果'
parent
e6fce994
Pipeline
#78447
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
index.jsx
src/pages/homePage/index.jsx
+12
-14
No files found.
src/pages/homePage/index.jsx
View file @
b09ebaec
...
...
@@ -97,9 +97,6 @@ const HomePage = () => {
onGetProduct
();
getLimits
();
getMapLayer
();
setTimeout
(()
=>
{
setLoading
(
false
);
},
0
);
},
[
flag
]);
const
getLimits
=
()
=>
{
...
...
@@ -152,6 +149,7 @@ const HomePage = () => {
const
getOMSDashboard
=
()
=>
{
setDashboardData
([]);
setWebsite
([]);
GetOMSDashboard
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
let
arr
=
[];
...
...
@@ -174,7 +172,7 @@ const HomePage = () => {
});
setTip
(
newTipList
);
let
echartsData
=
res
.
data
.
用户登录统计
;
echartsData
.
map
(
i
=>
{
echartsData
?
.
map
(
i
=>
{
if
(
i
.
月份
!==
1
&&
i
.
月份
!==
12
)
{
let
str
=
i
.
日期
.
split
(
'-'
)[
1
];
i
.
日期
=
`
${
str
}
月`
;
...
...
@@ -228,16 +226,16 @@ const HomePage = () => {
password
:
str
.
password
,
})
.
then
(
res
=>
{
if
(
!
val
)
{
setLoading
(
false
);
}
setLoading
(
false
);
if
(
res
.
code
===
0
)
{
setState
(
res
.
data
);
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'连接成功'
,
});
if
(
!
val
)
{
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'连接成功'
,
});
}
}
else
{
setState
();
notification
.
error
({
...
...
@@ -680,8 +678,8 @@ const HomePage = () => {
<
div
>
连接状态:
</
div
>
</
div
>
<
div
className=
{
styles
.
dataCenterValue
}
>
<
div
>
{
dataBase
.
ip
||
'-'
}
</
div
>
<
div
>
{
dataBase
.
dbName
||
'-'
}
</
div
>
<
div
>
{
dataBase
?
.
ip
||
'-'
}
</
div
>
<
div
>
{
dataBase
?
.
dbName
||
'-'
}
</
div
>
<
div
className=
{
styles
.
fontText
}
>
<
span
className=
{
classnames
({
...
...
Write
Preview
Markdown
is supported
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