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
67679db2
Commit
67679db2
authored
Jan 09, 2025
by
huanghaoting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可视化驾驶舱静态数据展示
parent
80dd6d1a
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6370 additions
and
100 deletions
+6370
-100
screenDisplay.js
src/api/screenDisplay.js
+380
-96
videoComponents.vue
src/components/videoComponents.vue
+6
-2
videoComponentsTwo.vue
src/components/videoComponentsTwo.vue
+5
-2
mock.js
src/dataJson/screenDisplayData/mock.js
+4519
-0
mock.js
src/dataJson/videoData/mock.js
+1460
-0
No files found.
src/api/screenDisplay.js
View file @
67679db2
This diff is collapsed.
Click to expand it.
src/components/videoComponents.vue
View file @
67679db2
...
...
@@ -68,6 +68,7 @@ import $ from 'jquery'
import
{
JSEncrypt
}
from
'jsencrypt'
import
{
WebControl
}
from
'../assets/script/video/web-control.esm.min.js'
import
{
onActivated
,
onDeactivated
}
from
'vue'
import
{
videoGetVideoTable
}
from
'@/dataJson/videoData/mock.js'
onActivated
(()
=>
{
if
(
route
.
query
.
id
)
{
...
...
@@ -211,12 +212,15 @@ function getStats() {
//从数据库获得监控点信息
function
getVideoInfo
()
{
http
.
post
(
'/api/video/GetVideoTable'
).
then
((
result
)
=>
{
//
http.post('/api/video/GetVideoTable').then((result) => {
//若获得视频列表,则存入
//静态数据
const
result
=
videoGetVideoTable
if
(
result
.
data
.
count
>
0
)
{
VideoInfo
.
videoList
.
push
.
apply
(
VideoInfo
.
videoList
,
result
.
data
.
dataTable
);
}
})
//
})
}
//页面初始化
...
...
src/components/videoComponentsTwo.vue
View file @
67679db2
...
...
@@ -67,6 +67,7 @@ import $ from 'jquery'
import
{
JSEncrypt
}
from
'jsencrypt'
import
{
WebControl
}
from
'../assets/script/video/web-control.esm.min.js'
import
{
onActivated
,
onDeactivated
}
from
'vue'
import
{
videoGetVideoTable
}
from
'@/dataJson/videoData/mock.js'
onActivated
(()
=>
{
if
(
route
.
query
.
id
)
{
...
...
@@ -215,12 +216,14 @@ function getStats() {
//从数据库获得监控点信息
function
getVideoInfo
()
{
http
.
post
(
'/api/video/GetVideoTable'
).
then
((
result
)
=>
{
//
http.post('/api/video/GetVideoTable').then((result) => {
//若获得视频列表,则存入
//静态数据
const
result
=
videoGetVideoTable
if
(
result
.
data
.
count
>
0
)
{
VideoInfo
.
videoList
.
push
.
apply
(
VideoInfo
.
videoList
,
result
.
data
.
dataTable
);
}
})
//
})
}
//页面初始化
...
...
src/dataJson/screenDisplayData/mock.js
0 → 100644
View file @
67679db2
This diff is collapsed.
Click to expand it.
src/dataJson/videoData/mock.js
0 → 100644
View file @
67679db2
This diff is collapsed.
Click to expand it.
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