Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
6bdc668c
Commit
6bdc668c
authored
Sep 26, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏页面路由调整本地存储问题修改
parent
4b9c13d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
screenDisplay.js
src/api/screenDisplay.js
+7
-0
screenDisplay.vue
src/components/screenDisplay.vue
+32
-0
No files found.
src/api/screenDisplay.js
View file @
6bdc668c
...
...
@@ -97,6 +97,13 @@ export const getGYSupplyWaterTrend = params => {
})
}
//获取港益换热站视频数据
export
const
GYTransferVideo
=
params
=>
{
return
http
.
post
(
`/api/gis/GYTransferVideo`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
}
//获取实时数据接口
export
const
postGYPipeReal
=
params
=>
{
return
http
.
post
(
`/api/gis/GYPipeReal`
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
...
...
src/components/screenDisplay.vue
View file @
6bdc668c
...
...
@@ -534,6 +534,7 @@ import {
GetGYHeatSourceTrend
,
getGYTransferRealData
,
getGYTransferAlarmData
,
GYTransferVideo
,
}
from
"../api/screenDisplay"
;
import
moment
from
'moment'
import
{
defineComponent
}
from
"vue"
;
...
...
@@ -689,7 +690,27 @@ export default defineComponent({
},
handleToDetail
()
{
this
.
$router
.
push
(
"/Alarm"
)
localStorage
.
setItem
(
"activeTab"
,
"/Alarm"
);
this
.
addTab
()
},
addTab
()
{
const
editableTabs
=
[
{
title
:
"首页-实时热源"
,
path
:
"/RealSupply"
,
},
{
title
:
'报警信息'
,
path
:
'/Alarm'
,
}
]
//本地存储
window
.
sessionStorage
.
setItem
(
"tabList"
,
JSON
.
stringify
(
editableTabs
)
);
window
.
sessionStorage
.
setItem
(
'activePath'
,
'/Alarm'
)
},
handleShowMore
(
type
)
{
if
(
type
===
'1'
)
{
this
.
alarmList
=
this
.
alarmDataList
...
...
@@ -2902,6 +2923,17 @@ export default defineComponent({
thirdLevelPageFun
()
{
this
.
handleGetGYTransferRealData
()
// 获取港益换热站实时能耗数据
this
.
handleGetGYTransferAlarmData
()
// 获取港益换热站报警数据
this
.
getGYTransferVideo
()
// 获取港益换热站视频数据
},
// 获取港益换热站视频数据
getGYTransferVideo
()
{
const
params
=
{
// id: this.markerThree.stationId
id
:
'9C9D13FA-BA07-4394-8441-55F98F160EDA'
}
GYTransferVideo
(
params
).
then
(
res
=>
{
})
},
// 获取港益换热站实时能耗数据
handleGetGYTransferRealData
()
{
...
...
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