Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cd Comprehensive Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cityLevel
Cd Comprehensive Web
Commits
452a4e7a
Commit
452a4e7a
authored
5 months ago
by
yms
Browse files
Options
Downloads
Patches
Plain Diff
调整连接
parent
119011f4
Branches
Branches containing commit
Tags
city_0.3.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/UrbanManagementResourceElements/ManagementElement/index.tsx
+25
-21
25 additions, 21 deletions
...banManagementResourceElements/ManagementElement/index.tsx
with
25 additions
and
21 deletions
src/pages/UrbanManagementResourceElements/ManagementElement/index.tsx
+
25
−
21
View file @
452a4e7a
import
{
Flex
,
Statistic
,
Space
}
from
'
antd
'
import
type
{
StatisticProps
}
from
'
antd
'
;
import
{
Flex
,
Space
,
Statistic
}
from
'
antd
'
;
import
CountUp
from
'
react-countup
'
;
import
styles
from
'
./index.less
'
import
styles
from
'
./index.less
'
;
/**
*
*
* @description 管理要素
*/
...
...
@@ -20,22 +19,27 @@ const formatter1: StatisticProps['formatter'] = (value) => (
const
ManagementElement
=
()
=>
{
return
(
<
Flex
vertical
className
=
{
styles
.
wrap
}
>
<
Flex
justify
=
'
space-between
'
align
=
'
center
'
className
=
{
styles
.
top
}
>
<
Flex
justify
=
"
space-between
"
align
=
"
center
"
className
=
{
styles
.
top
}
>
<
span
className
=
{
styles
.
title
}
>
管理要素
</
span
>
<
span
className
=
{
styles
.
right
}
onClick
=
{
()
=>
{
window
.
open
(
'
http://10.1.214.174:1800/comprehensivebig
'
)
}
}
>
进入网格基座查看更多
</
span
>
<
span
className
=
{
styles
.
right
}
onClick
=
{
()
=>
{
window
.
open
(
'
https://10.1.174.34:13600/user/autoLogin
'
);
}
}
>
进入网格基座查看更多
</
span
>
</
Flex
>
<
Flex
vertical
justify
=
'
space-between
'
className
=
{
styles
.
main
}
>
<
Flex
justify
=
'
space-between
'
style
=
{
{
padding
:
'
0 60px
'
}
}
>
<
Space
direction
=
'
vertical
'
className
=
{
styles
.
card
}
>
<
Flex
vertical
justify
=
"
space-between
"
className
=
{
styles
.
main
}
>
<
Flex
justify
=
"
space-between
"
style
=
{
{
padding
:
'
0 60px
'
}
}
>
<
Space
direction
=
"
vertical
"
className
=
{
styles
.
card
}
>
<
Space
>
<
Statistic
value
=
{
1144
}
formatter
=
{
formatter
}
/>
<
span
className
=
{
styles
.
unit
}
>
个
</
span
>
</
Space
>
<
span
className
=
{
styles
.
name
}
>
责任网格
</
span
>
</
Space
>
<
Space
direction
=
'
vertical
'
className
=
{
styles
.
card
}
>
<
Space
direction
=
"
vertical
"
className
=
{
styles
.
card
}
>
<
Space
>
<
Statistic
value
=
{
8
}
formatter
=
{
formatter
}
/>
<
span
className
=
{
styles
.
unit
}
>
个
</
span
>
...
...
@@ -43,22 +47,22 @@ const ManagementElement = () => {
<
span
className
=
{
styles
.
name
}
>
资源网格
</
span
>
</
Space
>
</
Flex
>
<
Flex
justify
=
'
space-between
'
className
=
{
styles
.
gridSection
}
>
<
Space
direction
=
'
vertical
'
className
=
{
styles
.
gridItem
}
>
<
Flex
justify
=
"
space-between
"
className
=
{
styles
.
gridSection
}
>
<
Space
direction
=
"
vertical
"
className
=
{
styles
.
gridItem
}
>
<
Space
>
<
Statistic
value
=
{
94156
}
formatter
=
{
formatter
}
/>
<
span
className
=
{
styles
.
unit
}
>
个
</
span
>
</
Space
>
<
span
className
=
{
styles
.
name
}
>
资源
</
span
>
</
Space
>
<
Space
direction
=
'
vertical
'
className
=
{
styles
.
gridItem
}
>
<
Space
direction
=
"
vertical
"
className
=
{
styles
.
gridItem
}
>
<
Space
>
<
Statistic
value
=
{
3046396
}
formatter
=
{
formatter
}
/>
<
span
className
=
{
styles
.
unit
}
>
个
</
span
>
</
Space
>
<
span
className
=
{
styles
.
name
}
>
部件
</
span
>
</
Space
>
<
Space
direction
=
'
vertical
'
className
=
{
styles
.
gridItem
}
>
<
Space
direction
=
"
vertical
"
className
=
{
styles
.
gridItem
}
>
<
Space
>
<
Statistic
value
=
{
2370154
}
formatter
=
{
formatter
}
/>
<
span
className
=
{
styles
.
unit
}
>
条
</
span
>
...
...
@@ -66,8 +70,8 @@ const ManagementElement = () => {
<
span
className
=
{
styles
.
name
}
>
感知
</
span
>
</
Space
>
</
Flex
>
<
Flex
justify
=
'
center
'
className
=
{
styles
.
bottom
}
>
<
Space
direction
=
'
vertical
'
style
=
{
{
textAlign
:
'
center
'
}
}
>
<
Flex
justify
=
"
center
"
className
=
{
styles
.
bottom
}
>
<
Space
direction
=
"
vertical
"
style
=
{
{
textAlign
:
'
center
'
}
}
>
<
Space
>
<
Statistic
value
=
{
143.48
}
formatter
=
{
formatter1
}
/>
<
span
className
=
{
styles
.
unit
}
>
亿
</
span
>
...
...
@@ -77,7 +81,7 @@ const ManagementElement = () => {
</
Flex
>
</
Flex
>
</
Flex
>
)
}
)
;
}
;
export
default
ManagementElement
\ No newline at end of file
export
default
ManagementElement
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment