Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
video-monitoring
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
刘怀志
video-monitoring
Commits
5a1b6f34
Commit
5a1b6f34
authored
Jul 30, 2024
by
拾柒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面布局
parent
e96a44f1
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
118 additions
and
93 deletions
+118
-93
ruoyi.scss
src/assets/styles/ruoyi.scss
+1
-1
index.vue
src/components/TopNav/index.vue
+11
-9
index.js
src/router/index.js
+15
-1
index.vue
src/views/employee/index.vue
+63
-72
index.vue
src/views/history/index.vue
+23
-7
index.vue
src/views/video/index.vue
+5
-3
No files found.
src/assets/styles/ruoyi.scss
View file @
5a1b6f34
...
...
@@ -135,7 +135,7 @@
.pagination-container
.el-pagination
{
right
:
0
;
position
:
absolute
;
//
position: absolute;
}
@media
(
max-width
:
768px
)
{
...
...
src/components/TopNav/index.vue
View file @
5a1b6f34
...
...
@@ -6,7 +6,7 @@
@
select=
"handleSelect"
>
<template
v-for=
"(item, index) in newTopNev"
>
<el-menu-item
class=
"menuStyle"
style=
"font-size: small;background-color: #F6F6FA;border-top-right-radius:
9%;border-top-left-radius: 9%
;text-align: center;margin-left: 1px"
:index=
"item.path"
:key=
"index"
<el-menu-item
class=
"menuStyle"
style=
"font-size: small;background-color: #F6F6FA;border-top-right-radius:
15px;border-top-left-radius: 15px
;text-align: center;margin-left: 1px"
:index=
"item.path"
:key=
"index"
>
<i
:class=
"item.icon"
style=
"width: 10px;height: 10px;margin-top: -12px"
></i>
{{
item
.
name
}}
</el-menu-item
...
...
@@ -49,12 +49,12 @@ export default {
name
:
'首页'
,
},
{
path
:
'/'
,
path
:
'/
employee/employee
'
,
icon
:
'el-icon-user'
,
name
:
'员工信息'
,
},
{
path
:
'/monitoring
Playback/video
'
,
path
:
'/monitoring
history/history
'
,
icon
:
'el-icon-view'
,
name
:
'历史记录'
,
}
...
...
@@ -220,7 +220,7 @@ export default {
//}
.menuStyle
{
box-shadow
:
0
0
8px
#D4D9E5
;
height
:
3
0px
;
height
:
6
0px
;
border-bottom
:
transparent
;
}
.menuStyle
:hover
{
...
...
@@ -231,15 +231,15 @@ export default {
color
:
transparent
;
}
::v-deep
.el-submenu
{
height
:
3
0px
;
height
:
6
0px
;
}
.el-menu--horizontal
>
.el-menu-item
{
margin-top
:
30
px
;
height
:
4
0px
;
line-height
:
3
0
px
;
margin-top
:
19
px
;
height
:
6
0px
;
line-height
:
3
5
px
;
}
.el-menu--horizontal
>
.el-menu-item.is-active
{
margin-top
:
23
px
;
margin-top
:
12
px
;
}
//.el-menu--horizontal > .el-menu-item.is-active{
// //margin-top: 30px;
...
...
@@ -247,6 +247,8 @@ export default {
// line-height: 30px;
//}
.el-menu-item.is-active
{
font-weight
:
bolder
;
line-height
:
45px
;
color
:
white
!
important
;
background-color
:
#0D8EEE
!
important
;
}
...
...
src/router/index.js
View file @
5a1b6f34
...
...
@@ -68,7 +68,7 @@ export const constantRoutes = [
children
:
[
{
path
:
'index'
,
component
:
()
=>
import
(
'@/views/index'
),
component
:
()
=>
import
(
'@/views/
video/
index'
),
name
:
'Index'
,
meta
:
{
title
:
'首页'
,
icon
:
'dashboard'
,
affix
:
true
}
}
...
...
@@ -129,6 +129,20 @@ export const constantRoutes = [
meta
:
{
title
:
'历史记录'
,
icon
:
'user'
}
}
]
},
{
path
:
'/employee'
,
component
:
Layout
,
hidden
:
false
,
redirect
:
'employee'
,
children
:
[
{
path
:
'employee'
,
component
:
()
=>
import
(
'@/views/employee/index'
),
name
:
'employee'
,
meta
:
{
title
:
'历史记录'
,
icon
:
'user'
}
}
]
}
]
...
...
src/views/employee/index.vue
View file @
5a1b6f34
This diff is collapsed.
Click to expand it.
src/views/history/index.vue
View file @
5a1b6f34
...
...
@@ -18,13 +18,23 @@
placeholder=
"请选择监控时间"
>
</el-date-picker>
</el-form-item>
<!--
<el-form-item
label=
"监控状态"
prop=
"monitorState"
>
-->
<!--
<el-input-->
<!-- v-model="queryParams.monitorState"-->
<!-- placeholder="请输入监控状态"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!--
</el-form-item>
-->
<el-form-item
label=
"监控状态"
prop=
"monitorState"
>
<el-input
v-model=
"queryParams.monitorState"
placeholder=
"请输入监控状态"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
<el-select
v-model=
"queryParams.monitorState"
placeholder=
"请选择监控状态"
clearable
>
<el-option
v-for=
"dict in dict.type.history_state"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
...
@@ -56,7 +66,11 @@
<
span
>
{{
parseTime
(
scope
.
row
.
monitorTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"监控状态"
align
=
"center"
prop
=
"monitorState"
/>
<
el
-
table
-
column
label
=
"监控状态"
align
=
"center"
prop
=
"monitorState"
>
<
template
slot
-
scope
=
"scope"
>
<
dict
-
tag
:
options
=
"dict.type.history_state"
:
value
=
"scope.row.monitorState"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
...
...
@@ -96,6 +110,7 @@ import {parseTime} from "../../utils/ruoyi";
export
default
{
name
:
"Histable"
,
dicts
:
[
'history_state'
],
data
()
{
return
{
// 遮罩层
...
...
@@ -144,6 +159,7 @@ export default {
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
...
...
src/views/video/index.vue
View file @
5a1b6f34
<
template
>
<div
class=
"video-now"
>
<div
class=
"video-now"
style=
"margin-top: 20px"
>
<!--
<div
@
click=
"setLayout('1x1')"
>
1x1
</div>
<div
@
click=
"setLayout('2x2')"
>
2x2
</div>
-->
<!-- 创建一个用于显示视频的容器 -->
...
...
@@ -7,7 +7,7 @@
</div>
</
template
>
<
script
>
<
script
>
import
{
getCameras
}
from
"@/api/system/video"
;
import
videoParams
from
'./videoParams'
...
...
@@ -208,16 +208,18 @@ export default {
<
style
scoped
>
.video-watch
{
margin-top
:
20px
;
min-height
:
calc
(
80vh
-
84px
);
width
:
90%
;
}
.video-now
{
width
:
95vw
;
height
:
90
vh
;
height
:
87
vh
;
background
:
#fff
;
margin
:
0
auto
;
display
:
flex
;
justify-content
:
center
;
}
</
style
>
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