Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
holo-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinkong
holo-web
Commits
c6af1ebd
Commit
c6af1ebd
authored
Jun 17, 2024
by
ninglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wj-smartcity 处理济南反馈bug
parent
76268767
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
crossDetail.vue
wj-smartcity/src/views/signal/msgs/right/crossDetail.vue
+4
-1
trafficFlow.vue
.../views/signal/msgs/right/detailComponents/trafficFlow.vue
+12
-5
No files found.
wj-smartcity/src/views/signal/msgs/right/crossDetail.vue
View file @
c6af1ebd
<
template
>
<msg-card
class=
"item-crossDetail"
title=
"路口监测"
>
<simple-card
style=
"height: 15%"
title=
"路口交通指标"
>
<simple-card
style=
"height: 15%
;
"
title=
"路口交通指标"
>
<traffic-index
:crossData=
"clickCrossData"
/>
</simple-card>
<simple-card
style=
"height: 25%"
title=
"交通状态"
>
...
...
@@ -231,5 +231,8 @@ export default {
line-height: 25px;
color: white;
}
::v-deep .msg-card-content{
overflow: hidden;
}
}
</
style
>
wj-smartcity/src/views/signal/msgs/right/detailComponents/trafficFlow.vue
View file @
c6af1ebd
...
...
@@ -100,8 +100,8 @@ export default {
if
(
this
.
activeCode
===
2
)
{
let
start
=
`
${
new
Date
().
toLocaleDateString
().
replaceAll
(
'
/
'
,
'
-
'
)}
00:00:00`
let
end
=
new
Date
().
toLocaleString
().
replaceAll
(
'
/
'
,
'
-
'
)
// let start = '2024-0
4-04
00:00:00'
// let end = '2024-0
4-04
00:00:00'
// let start = '2024-0
2-25
00:00:00'
// let end = '2024-0
2-26
00:00:00'
getCrossTurnData1
({
crossId
:
this
.
crossId
,
start
,
end
}).
then
(
res
=>
{
this
.
loading
=
false
console
.
log
(
'
zhuanxaingji
'
,
res
)
...
...
@@ -350,9 +350,9 @@ export default {
renderTurn
()
{
let
filterData
=
this
.
allTurnData
.
filter
(
item
=>
{
return
item
.
fRidDir
===
this
.
selectVal
})
})
.
reverse
()
let
xData
=
filterData
.
reduce
((
a
,
b
)
=>
{
let
time
=
new
Date
(
b
.
windowEndTime
).
toLocaleTimeString
()
let
time
=
new
Date
(
b
.
windowEndTime
).
toLocaleTimeString
()
.
slice
(
0
,
5
)
if
(
!
a
.
includes
(
time
)){
a
.
push
(
time
)
}
...
...
@@ -389,7 +389,7 @@ export default {
],
tooltip
:
{
enterable
:
true
,
trigger
:
"
item
"
,
trigger
:
"
axis
"
,
axisPointer
:
{
type
:
"
shadow
"
,
},
...
...
@@ -541,8 +541,15 @@ export default {
}
return
a
},{})
let
title
=
{
show
:
false
,
}
if
(
!
xData
.
length
){
title
=
noDataTitle
}
console
.
log
(
'
x,y
'
,
xData
,
yDatas
)
let
option
=
{
title
,
dataZoom
:
{
type
:
"
inside
"
,
startValue
:
Object
.
keys
(
yDatas
).
length
-
6
,
...
...
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