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
8b582c80
Commit
8b582c80
authored
Aug 01, 2024
by
拾柒
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sunyu'
parents
a3e04f0b
86362e63
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
637 additions
and
238 deletions
+637
-238
index.scss
src/assets/styles/index.scss
+3
-3
index.vue
src/components/TopNav/index.vue
+31
-18
Navbar.vue
src/layout/components/Navbar.vue
+95
-8
index.js
src/router/index.js
+4
-0
index.vue
src/views/employee/index.vue
+343
-89
index.vue
src/views/history/index.vue
+143
-112
playback.vue
src/views/video/playback.vue
+17
-7
vue.config.js
vue.config.js
+1
-1
No files found.
src/assets/styles/index.scss
View file @
8b582c80
...
@@ -127,9 +127,9 @@ aside {
...
@@ -127,9 +127,9 @@ aside {
margin
:
0
;
margin
:
0
;
//padding: 0;
//padding: 0;
overflow
:
hidden
;
/* 防止内容溢出 */
overflow
:
hidden
;
/* 防止内容溢出 */
padding-left
:
2
0px
;
padding-left
:
4
0px
;
padding-right
:
2
0px
;
padding-right
:
4
0px
;
padding-top
:
1
0px
;
padding-top
:
2
0px
;
background-color
:
#D4D9E5
;
background-color
:
#D4D9E5
;
}
}
...
...
src/components/TopNav/index.vue
View file @
8b582c80
...
@@ -6,29 +6,42 @@
...
@@ -6,29 +6,42 @@
@
select=
"handleSelect"
@
select=
"handleSelect"
style=
"margin-right: 120px"
style=
"margin-right: 120px"
>
>
<template
v-for=
"(item, index) in newTopNev"
>
<template>
<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"
<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=
"/monitoring/video"
>
>
<i
:class=
"item.icon"
style=
"width: 10px;height: 10px;margin-top: -12px"
></i>
<i
style=
"width: 10px;height: 10px;margin-top: -12px"
></i>
{{
item
.
name
}}
</el-menu-item
首页
</el-menu-item
>
<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=
"/employee/employee"
>
<i
style=
"width: 10px;height: 10px;margin-top: -12px"
></i>
员工信息
</el-menu-item
>
<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=
"/monitoringhistory/history"
>
<i
style=
"width: 10px;height: 10px;margin-top: -12px"
></i>
历史记录
</el-menu-item
>
>
</
template
>
</
template
>
<!-- 顶部菜单超出数量折叠 -->
<!-- 顶部菜单超出数量折叠 -->
<!-- <el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">-->
<!-- <el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">-->
<!-- <template slot="title">更多菜单</template>-->
<!-- <template slot="title">更多菜单</template>-->
<!-- <template v-for="(item, index) in topMenus">-->
<!-- <template v-for="(item, index) in topMenus">-->
<!-- <el-menu-item-->
<!-- <el-menu-item-->
<!-- :index="item.path"-->
<!-- :index="item.path"-->
<!-- :key="index"-->
<!-- :key="index"-->
<!-- v-if="index >= visibleNumber">-->
<!-- v-if="index >= visibleNumber">-->
<!-- <svg-icon-->
<!-- <svg-icon-->
<!-- v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"-->
<!-- v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"-->
<!-- :icon-class="item.meta.icon"/>-->
<!-- :icon-class="item.meta.icon"/>-->
<!-- {{ item.meta.title }}-->
<!-- {{ item.meta.title }}-->
<!-- </el-menu-item>-->
<!-- </el-menu-item>-->
<!-- </template>-->
<!-- </template>-->
<!-- </el-submenu>-->
<!-- </el-submenu>-->
</el-menu>
</el-menu>
</template>
</template>
...
...
src/layout/components/Navbar.vue
View file @
8b582c80
<
template
>
<
template
>
<div
class=
"navbar"
>
<div
class=
"navbar"
>
<hamburger
id=
"hamburger-container"
:is-active=
"sidebar.opened"
class=
"hamburger-container"
@
toggleClick=
"toggleSideBar"
v-if =
"false"
/>
<hamburger
id=
"hamburger-container"
:is-active=
"sidebar.opened"
class=
"hamburger-container"
<!--
<breadcrumb
id=
"breadcrumb-container"
class=
"breadcrumb-container"
v-if=
"!topNav"
/>
-->
@
toggleClick=
"toggleSideBar"
v-if=
"false"
/>
<!--
<breadcrumb
id=
"breadcrumb-container"
class=
"breadcrumb-container"
v-if=
"!topNav"
/>
-->
<img
src=
"../../assets/images/titlePic.png"
alt=
""
style=
"width: 200px;height: 80px;"
>
<img
src=
"../../assets/images/titlePic.png"
alt=
""
style=
"width: 200px;height: 80px;"
>
<top-nav
id=
"topmenu-container"
class=
"topmenu-container"
v-if=
"topNav"
/>
<top-nav
id=
"topmenu-container"
class=
"topmenu-container"
v-if=
"topNav"
/>
<div
class=
"right-menu"
style=
"margin-top: 20px"
>
<div
class=
"right-menu"
style=
"margin-top: 20px"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
<img
:src=
"avatar"
class=
"user-avatar"
>
<img
:src=
"avatar"
class=
"user-avatar"
>
<i
class=
"el-icon-caret-bottom"
/>
<i
class=
"el-icon-caret-bottom"
/>
</div>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<router-link
to=
"/user/profile"
>
<router-link
to=
"/user/profile"
>
...
@@ -17,6 +18,32 @@
...
@@ -17,6 +18,32 @@
<el-dropdown-item
@
click
.
native=
"setting = true"
>
<el-dropdown-item
@
click
.
native=
"setting = true"
>
<span>
布局设置
</span>
<span>
布局设置
</span>
</el-dropdown-item>
</el-dropdown-item>
<!-- sunyu 新加了修改密码的弹窗,完成修改密码功能-->
<el-dropdown-item
@
click
.
native=
"resetPwdVisible = true"
>
<span>
修改密码
</span>
</el-dropdown-item>
<el-dialog
title=
"修改密码"
:visible
.
sync=
"resetPwdVisible"
:before-close=
"handleClose"
append-to-body=
"true"
>
<el-form
ref=
"form"
:model=
"user"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"旧密码"
prop=
"oldPassword"
>
<el-input
v-model=
"user.oldPassword"
placeholder=
"请输入旧密码"
type=
"password"
show-password
/>
</el-form-item>
<el-form-item
label=
"新密码"
prop=
"newPassword"
>
<el-input
v-model=
"user.newPassword"
placeholder=
"请输入新密码"
type=
"password"
show-password
/>
</el-form-item>
<el-form-item
label=
"确认密码"
prop=
"confirmPassword"
>
<el-input
v-model=
"user.confirmPassword"
placeholder=
"请确认新密码"
type=
"password"
show-password
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"submit"
>
保存
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click=
"close"
>
关闭
</el-button>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click
.
native=
"resetPwdVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click
.
native=
"resetPwdVisible = false"
>
确 定
</el-button>
</span>
</el-dialog>
<el-dropdown-item
divided
@
click
.
native=
"logout"
>
<el-dropdown-item
divided
@
click
.
native=
"logout"
>
<span>
退出登录
</span>
<span>
退出登录
</span>
</el-dropdown-item>
</el-dropdown-item>
...
@@ -27,7 +54,7 @@
...
@@ -27,7 +54,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Breadcrumb
from
'@/components/Breadcrumb'
import
TopNav
from
'@/components/TopNav'
import
TopNav
from
'@/components/TopNav'
import
Hamburger
from
'@/components/Hamburger'
import
Hamburger
from
'@/components/Hamburger'
...
@@ -36,8 +63,43 @@ import SizeSelect from '@/components/SizeSelect'
...
@@ -36,8 +63,43 @@ import SizeSelect from '@/components/SizeSelect'
import
Search
from
'@/components/HeaderSearch'
import
Search
from
'@/components/HeaderSearch'
import
RuoYiGit
from
'@/components/RuoYi/Git'
import
RuoYiGit
from
'@/components/RuoYi/Git'
import
RuoYiDoc
from
'@/components/RuoYi/Doc'
import
RuoYiDoc
from
'@/components/RuoYi/Doc'
import
{
updateUserPwd
}
from
"@/api/system/user"
;
export
default
{
export
default
{
data
()
{
const
equalToPassword
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
user
.
newPassword
!==
value
)
{
callback
(
new
Error
(
"两次输入的密码不一致"
));
}
else
{
callback
();
}
};
return
{
user
:
{
oldPassword
:
undefined
,
newPassword
:
undefined
,
confirmPassword
:
undefined
,
},
// 表单校验
rules
:
{
oldPassword
:
[
{
required
:
true
,
message
:
"旧密码不能为空"
,
trigger
:
"blur"
}
],
newPassword
:
[
{
required
:
true
,
message
:
"新密码不能为空"
,
trigger
:
"blur"
},
{
min
:
6
,
max
:
20
,
message
:
"长度在 6 到 20 个字符"
,
trigger
:
"blur"
},
{
pattern
:
/^
[^
<>"'|
\\]
+$/
,
message
:
"不能包含非法字符:< >
\"
'
\\\
|"
,
trigger
:
"blur"
}
],
confirmPassword
:
[
{
required
:
true
,
message
:
"确认密码不能为空"
,
trigger
:
"blur"
},
{
required
:
true
,
validator
:
equalToPassword
,
trigger
:
"blur"
}
]
},
resetPwdVisible
:
false
,
};
},
components
:
{
components
:
{
Breadcrumb
,
Breadcrumb
,
TopNav
,
TopNav
,
...
@@ -72,6 +134,29 @@ export default {
...
@@ -72,6 +134,29 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
submit
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
});
}
});
},
close
()
{
this
.
$tab
.
closePage
();
},
handleClose
(
done
)
{
this
.
$confirm
(
'确定关闭吗'
).
then
(()
=>
{
// function(done),done 用于关闭 Dialog
done
();
console
.
info
(
"点击右上角 'X' ,取消按钮或遮罩层时触发"
);
}).
catch
(()
=>
{
console
.
log
(
"点击确定时触发"
);
});
},
toggleSideBar
()
{
toggleSideBar
()
{
this
.
$store
.
dispatch
(
'app/toggleSideBar'
)
this
.
$store
.
dispatch
(
'app/toggleSideBar'
)
},
},
...
@@ -84,7 +169,8 @@ export default {
...
@@ -84,7 +169,8 @@ export default {
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
location
.
href
=
'/index'
;
location
.
href
=
'/index'
;
})
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
});
}
}
}
}
}
}
...
@@ -97,15 +183,16 @@ export default {
...
@@ -97,15 +183,16 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
position
:
relative
;
position
:
relative
;
background
:
#fff
;
background
:
#fff
;
box-shadow
:
0
1px
4px
rgba
(
0
,
21
,
41
,
.
08
);
box-shadow
:
0
1px
4px
rgba
(
0
,
21
,
41
,
.08
);
justify-content
:
space-between
;
justify-content
:
space-between
;
.hamburger-container
{
.hamburger-container
{
line-height
:
46px
;
line-height
:
46px
;
height
:
100%
;
height
:
100%
;
float
:
left
;
float
:
left
;
cursor
:
pointer
;
cursor
:
pointer
;
transition
:
background
.3s
;
transition
:
background
.3s
;
-webkit-tap-highlight-color
:transparent
;
-webkit-tap-highlight-color
:
transparent
;
&
:hover
{
&
:hover
{
background
:
rgba
(
0
,
0
,
0
,
.025
)
background
:
rgba
(
0
,
0
,
0
,
.025
)
...
@@ -117,7 +204,7 @@ export default {
...
@@ -117,7 +204,7 @@ export default {
}
}
.topmenu-container
{
.topmenu-container
{
margin-top
:
30px
;
margin-top
:
30px
;
//margin-left: -10px;
//margin-left: -10px;
//height: 80px;
//height: 80px;
//position: absolute;
//position: absolute;
...
...
src/router/index.js
View file @
8b582c80
...
@@ -86,8 +86,11 @@ export const constantRoutes = [
...
@@ -86,8 +86,11 @@ export const constantRoutes = [
name
:
'Profile'
,
name
:
'Profile'
,
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
}
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
}
}
}
]
]
},
},
{
{
path
:
'/monitoring'
,
path
:
'/monitoring'
,
component
:
Layout
,
component
:
Layout
,
...
@@ -144,6 +147,7 @@ export const constantRoutes = [
...
@@ -144,6 +147,7 @@ export const constantRoutes = [
}
}
]
]
}
}
]
]
// 动态路由,基于用户权限动态去加载
// 动态路由,基于用户权限动态去加载
...
...
src/views/employee/index.vue
View file @
8b582c80
This diff is collapsed.
Click to expand it.
src/views/history/index.vue
View file @
8b582c80
This diff is collapsed.
Click to expand it.
src/views/video/playback.vue
View file @
8b582c80
<
template
>
<
template
>
<div
class=
"playback"
>
<div
class=
"playback"
>
<div
ref=
"playWndBack"
class=
"video-watch"
id=
"playWndBack"
></div>
<div
ref=
"playWndBack"
class=
"video-watch"
id=
"playWndBack"
></div>
<div>
<div
style=
"margin-right: 30px;margin-top: 60px"
>
<el-form
label-position=
"right"
label-width=
"100px"
:model=
"formLabelAlign"
>
<el-form
label-position=
"right"
label-width=
"100px"
:model=
"formLabelAlign"
>
<el-form-item
label=
"监控点名称"
>
<el-form-item
label=
"监控点名称"
>
<el-input
v-model=
"
formLabelAlign.name
"
disabled
></el-input>
<el-input
v-model=
"
carryRowCode.id
"
disabled
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间"
>
<el-form-item
label=
"开始时间"
>
<el-input
v-model=
"
formLabelAlign.startT
ime"
disabled
></el-input>
<el-input
v-model=
"
carryRowCode.monitoringStartt
ime"
disabled
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间"
>
<el-form-item
label=
"结束时间"
>
<el-input
v-model=
"
formLabelAlign.endT
ime"
disabled
></el-input>
<el-input
v-model=
"
carryRowCode.monitoringFinallyt
ime"
disabled
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"监控时间"
>
<el-form-item
label=
"监控时间"
>
<el-input
v-model=
"
formLabelAlign.t
ime"
disabled
></el-input>
<el-input
v-model=
"
carryRowCode.monitorT
ime"
disabled
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"监控状态"
>
<el-form-item
label=
"监控状态"
>
<el-input
v-model=
"
formLabelAlign.flag
"
disabled
></el-input>
<el-input
v-model=
"
carryRowCode.monitorState
"
disabled
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -27,11 +27,14 @@
...
@@ -27,11 +27,14 @@
<
script
>
<
script
>
import
{
getCameras
}
from
"@/api/system/video"
;
import
{
getCameras
}
from
"@/api/system/video"
;
import
videoParams
from
"@/views/video/videoParams"
;
import
videoParams
from
"@/views/video/videoParams"
;
import
{
listHistable
,
getHistable
,
delHistable
,
addHistable
,
updateHistable
}
from
"@/api/system/histable"
;
export
default
{
export
default
{
name
:
"playback"
,
name
:
"playback"
,
data
()
{
data
()
{
return
{
return
{
carryRowCode
:{},
oWebControl
:
null
,
oWebControl
:
null
,
initCount
:
0
,
initCount
:
0
,
pubKey
:
''
,
pubKey
:
''
,
...
@@ -45,6 +48,9 @@ export default {
...
@@ -45,6 +48,9 @@ export default {
}
}
};
};
},
},
created
()
{
this
.
carryRowCode
=
this
.
$route
.
query
.
carryRowCode
;
},
mounted
()
{
mounted
()
{
this
.
getIndex
()
this
.
getIndex
()
},
},
...
@@ -227,7 +233,11 @@ export default {
...
@@ -227,7 +233,11 @@ export default {
<
style
scoped
>
<
style
scoped
>
.playback
{
.playback
{
display
:
flex
;
display
:
flex
;
margin
:
0
20px
;
margin-top
:
20px
;
margin-left
:
40px
;
margin-right
:
40px
;
height
:
1000px
;
background
:
white
;
}
}
.video-watch
{
.video-watch
{
min-height
:
calc
(
100vh
-
104px
);
min-height
:
calc
(
100vh
-
104px
);
...
...
vue.config.js
View file @
8b582c80
...
@@ -35,7 +35,7 @@ module.exports = {
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://1
92.168.10.129
:8080`
,
target
:
`http://1
27.0.0.1
:8080`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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