Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI推理平台
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
lichunliang
AI推理平台
Commits
9142674e
Commit
9142674e
authored
Feb 27, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:点位数量修改
parent
6da24588
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
.env
.env
+1
-1
index.vue
src/views/_builtin/demo/index.vue
+10
-4
index.vue
src/views/home/index.vue
+10
-3
No files found.
.env
View file @
9142674e
...
...
@@ -67,7 +67,7 @@ VITE_STORAGE_PREFIX=SOY_
# VITE_WEBSOCKET_URL=ws://192.168.2.16:9999
# VITE_SERVICE_URL=http://192.168.2.16:9998
# 开发环境(黄国安)
#
#
开发环境(黄国安)
VITE_VIDEO_URL=ws://192.168.2.14:9999
VITE_WEBSOCKET_URL=ws://192.168.2.14:9999
VITE_SERVICE_URL=http://192.168.2.14:9998
...
...
src/views/_builtin/demo/index.vue
View file @
9142674e
...
...
@@ -131,13 +131,13 @@
<img
src=
"../../../assets/jiankong1.png"
style=
"height: 80px; display: inline-block; border-radius: 50%; width: 80px; box-shadow: 0 0 10px rgba(0,0,0,.3);"
/>
<br
/>
<i>
在线监控:
{{
form
[
0
]
||
0
}}
个
</i>
<i>
在线监控:
{{
form
.
online
||
0
}}
个
</i>
</div>
<div>
<img
src=
"../../../assets/jiankong2.png"
style=
"height: 80px; display: inline-block; border-radius: 50%; width: 80px; box-shadow: 0 0 10px rgba(0,0,0,.3);"
/>
<br
/>
<i>
离线监控:
{{
form
[
1
]
||
0
}}
个
</i>
<i>
离线监控:
{{
form
.
offline
||
0
}}
个
</i>
</div>
</div>
</div>
...
...
@@ -693,13 +693,19 @@ const getCameraList = async () => {
});
};
const
form
=
ref
([]);
// 初始化响应式对象
const
form
=
ref
({});
const
getLogData
=
async
()
=>
{
await
api_pointsCount
().
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
form
.
value
.
push
(
item
.
count
)
if
(
item
.
status
===
0
){
form
.
value
.
online
=
item
.
count
}
else
{
form
.
value
.
offline
=
item
.
count
}
// form.value.push(item.count)
})
};
})
...
...
src/views/home/index.vue
View file @
9142674e
...
...
@@ -231,7 +231,14 @@ const devData = ref({});
const
getCardData
=
async
()
=>
{
await
api_pointsCount
().
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
devData
.
value
=
res
.
data
.
data
;
// devData.value = res.data.data;
(
res
.
data
.
data
).
forEach
(
item
=>
{
if
(
item
.
status
===
0
){
devData
.
value
.
online
=
item
.
count
}
else
{
devData
.
value
.
offline
=
item
.
count
}
})
};
})
};
...
...
@@ -517,7 +524,7 @@ onMounted(() => {
<div
style=
"height: 100px; display: flex; justify-content: space-between; align-items: center;"
>
<div
style=
"flex: 1; text-align: center;"
>
<div
style=
"display: inline-block; font-size: 40px; font-weight: 500;"
>
{{ devData
[0]?.count
|| 0 }}
{{ devData
.online
|| 0 }}
</div>
<br
/>
<div
style=
"display: inline-block;margin-top: 10px; margin-bottom: 20px;"
>
...
...
@@ -526,7 +533,7 @@ onMounted(() => {
</div>
<div
style=
"flex: 1; text-align: center;"
>
<div
style=
"display: inline-block;font-size: 40px; font-weight: 500;"
>
{{ devData
[1]?.count
|| 0 }}
{{ devData
.offline
|| 0 }}
</div>
<br
/>
<div
style=
"display: inline-block; margin-top: 10px; margin-bottom: 20px;"
>
...
...
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