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
6fcca9e7
Commit
6fcca9e7
authored
7 months ago
by
1147379969
Browse files
Options
Downloads
Patches
Plain Diff
feat: 重点区域视频
parent
4b03438f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/routes.ts
+1
-1
1 addition, 1 deletion
config/routes.ts
src/pages/UrbanSituation/Focus/index.tsx
+16
-8
16 additions, 8 deletions
src/pages/UrbanSituation/Focus/index.tsx
with
17 additions
and
9 deletions
config/routes.ts
+
1
−
1
View file @
6fcca9e7
...
@@ -14,7 +14,7 @@ const router: RouteType = [
...
@@ -14,7 +14,7 @@ const router: RouteType = [
{
{
path
:
'
/home
'
,
path
:
'
/home
'
,
component
:
'
./Home
'
,
component
:
'
./Home
'
,
redirect
:
'
/home/
industryOper
ation
'
,
redirect
:
'
/home/
urbanSitu
ation
'
,
},
},
{
{
path
:
'
/home/industryOperation
'
,
path
:
'
/home/industryOperation
'
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/UrbanSituation/Focus/index.tsx
+
16
−
8
View file @
6fcca9e7
...
@@ -7,6 +7,8 @@ import services from '@/services';
...
@@ -7,6 +7,8 @@ import services from '@/services';
import
{
Flex
,
Space
}
from
'
antd
'
;
import
{
Flex
,
Space
}
from
'
antd
'
;
import
{
useEffect
,
useState
}
from
'
react
'
;
import
{
useEffect
,
useState
}
from
'
react
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
import
myVideo1
from
'
@/assets/media/movie.mp4
'
;
import
myVideo
from
'
@/assets/media/movie1.mp4
'
;
const
Focus
=
()
=>
{
const
Focus
=
()
=>
{
const
[
areaData
,
setAreaData
]
=
useState
([]);
const
[
areaData
,
setAreaData
]
=
useState
([]);
...
@@ -16,18 +18,18 @@ const Focus = () => {
...
@@ -16,18 +18,18 @@ const Focus = () => {
const
areas
=
[
const
areas
=
[
{
{
icon
:
area1
,
icon
:
area1
,
n
ame
:
'
天府广场
'
,
objectN
ame
:
'
市委市政委
'
,
value
:
99.9
,
cqi
:
99.9
,
},
},
{
{
icon
:
area2
,
icon
:
area2
,
name
:
'
宽窄巷子
'
,
objectName
:
'
市城管委周边
'
,
value
:
99.9
,
cqi
:
99.9
,
},
},
{
{
icon
:
area3
,
icon
:
area3
,
n
ame
:
'
武侯祠
'
,
objectN
ame
:
'
高新区
'
,
value
:
99.9
,
cqi
:
99.9
,
},
},
];
];
...
@@ -89,14 +91,20 @@ const Focus = () => {
...
@@ -89,14 +91,20 @@ const Focus = () => {
</
Flex
>
</
Flex
>
<
div
style
=
{
{
height
:
'
246px
'
}
}
>
<
div
style
=
{
{
height
:
'
246px
'
}
}
>
<
Flex
justify
=
"space-between"
>
<
Flex
justify
=
"space-between"
>
{
area
Data
.
map
((
item
,
index
)
=>
(
{
area
s
.
map
((
item
,
index
)
=>
(
<
Space
<
Space
direction
=
"vertical"
direction
=
"vertical"
size
=
{
10
}
size
=
{
10
}
key
=
{
index
}
key
=
{
index
}
className
=
{
styles
.
areaCard
}
className
=
{
styles
.
areaCard
}
>
>
<
img
src
=
{
area1
}
alt
=
""
/>
<
video
autoPlay
width
=
{
193
}
height
=
{
168
}
>
<
source
width
=
{
193
}
height
=
{
168
}
src
=
{
index
==
1
?
myVideo
:
myVideo1
}
type
=
"video/mp4"
></
source
>
</
video
>
<
div
>
<
div
>
<
div
className
=
{
styles
.
name
}
>
{
item
.
objectName
}
</
div
>
<
div
className
=
{
styles
.
name
}
>
{
item
.
objectName
}
</
div
>
<
div
className
=
{
styles
.
value
}
>
{
item
.
cqi
||
0
}
</
div
>
<
div
className
=
{
styles
.
value
}
>
{
item
.
cqi
||
0
}
</
div
>
...
...
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