Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
web-monitor
Project
Project
Details
Activity
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
Administrator
web-monitor
Commits
a8e5c02a
Commit
a8e5c02a
authored
Jan 29, 2022
by
yanzhongrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui style
parent
b1b8d4de
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
96 additions
and
43 deletions
+96
-43
App.vue
src/App.vue
+7
-6
Navbar.vue
src/layout/components/Navbar.vue
+2
-7
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+13
-1
index.vue
src/layout/components/Sidebar/index.vue
+1
-0
settings.js
src/settings.js
+1
-1
element-ui.scss
src/styles/element-ui.scss
+12
-1
sidebar.scss
src/styles/sidebar.scss
+4
-2
variables.scss
src/styles/variables.scss
+1
-1
index.vue
src/views/alarm/cableTime/index.vue
+25
-9
index.vue
src/views/alarm/device/index.vue
+23
-7
index.vue
src/views/dashboard/index.vue
+3
-2
index.vue
src/views/history/leakyCableStatus/index.vue
+2
-4
index.vue
src/views/login/index.vue
+1
-1
leakageCable.vue
src/views/monitor/leakageCable.vue
+1
-1
No files found.
src/App.vue
View file @
a8e5c02a
...
@@ -10,13 +10,14 @@ export default {
...
@@ -10,13 +10,14 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
// zheyeshi
#app
{
#app
{
&
:
:
v-deep
.
el-table__body
tr
:
hover
>
td
{
//
& ::v-deep .el-table__body tr:hover>td{
background-color
:
#bed5ff
!
important
;
//
background-color: #bed5ff !important;
}
//
}
&
:
:
v-deep
.
el-table__body
tr
.
current-row
>
td
{
//
& ::v-deep .el-table__body tr.current-row>td{
background-color
:
#bed5ff
!
important
;
//
background-color: #bed5ff !important;
}
//
}
}
}
</
style
>
</
style
>
src/layout/components/Navbar.vue
View file @
a8e5c02a
...
@@ -9,12 +9,7 @@
...
@@ -9,12 +9,7 @@
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
admin
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
admin
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
class=
"user-dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
<router-link
to=
"/"
>
<el-dropdown-item>
首页
</el-dropdown-item>
</router-link>
<el-dropdown-item
divided
@
click
.
native=
"logout"
>
<el-dropdown-item
divided
@
click
.
native=
"logout"
>
<span
style=
"display:block;"
>
退出
</span>
<span
style=
"display:block;"
>
退出
</span>
</el-dropdown-item>
</el-dropdown-item>
...
@@ -68,7 +63,7 @@ export default {
...
@@ -68,7 +63,7 @@ export default {
let
mm
=
new
Date
(
timeStamp
).
getMinutes
()
<
10
?
'0'
+
new
Date
(
timeStamp
).
getMinutes
()
:
new
Date
(
timeStamp
).
getMinutes
()
let
mm
=
new
Date
(
timeStamp
).
getMinutes
()
<
10
?
'0'
+
new
Date
(
timeStamp
).
getMinutes
()
:
new
Date
(
timeStamp
).
getMinutes
()
let
ss
=
new
Date
(
timeStamp
).
getSeconds
()
<
10
?
"0"
+
new
Date
(
timeStamp
).
getSeconds
():
new
Date
(
timeStamp
).
getSeconds
();
let
ss
=
new
Date
(
timeStamp
).
getSeconds
()
<
10
?
"0"
+
new
Date
(
timeStamp
).
getSeconds
():
new
Date
(
timeStamp
).
getSeconds
();
// return year + "年" + month + "月" + date +"日"+" "+hh+":"+mm ;
// return year + "年" + month + "月" + date +"日"+" "+hh+":"+mm ;
this
.
dateTime
=
year
+
'/'
+
month
+
'/'
+
date
+
'
/'
+
'
'
+
hh
+
':'
+
mm
+
':'
+
ss
this
.
dateTime
=
year
+
'/'
+
month
+
'/'
+
date
+
' '
+
hh
+
':'
+
mm
+
':'
+
ss
},
},
// 定时器函数
// 定时器函数
nowTimes
()
{
nowTimes
()
{
...
...
src/layout/components/Sidebar/SidebarItem.vue
View file @
a8e5c02a
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<el-submenu
ref=
"subMenu"
:index=
"resolvePath(item.path)"
>
<el-submenu
id=
"subid"
ref=
"subMenu"
:index=
"resolvePath(item.path)"
>
<template
slot=
"title"
>
<template
slot=
"title"
>
<icon-item
<icon-item
v-if=
"item.meta"
v-if=
"item.meta"
...
@@ -80,8 +80,13 @@ export default {
...
@@ -80,8 +80,13 @@ export default {
this
.
onlyOneChild
=
null
;
this
.
onlyOneChild
=
null
;
return
{};
return
{};
},
},
mounted
()
{
console
.
log
(
this
.
$refs
[
'subMenu'
]);
console
.
log
(
document
.
getElementById
(
'subid'
));
},
methods
:
{
methods
:
{
hasOneShowingChild
(
children
=
[],
parent
)
{
hasOneShowingChild
(
children
=
[],
parent
)
{
const
showingChildren
=
children
.
filter
(
item
=>
{
const
showingChildren
=
children
.
filter
(
item
=>
{
if
(
item
.
hidden
)
{
if
(
item
.
hidden
)
{
return
false
;
return
false
;
...
@@ -130,4 +135,11 @@ export default {
...
@@ -130,4 +135,11 @@ export default {
width
:
100%
;
width
:
100%
;
}
}
}
}
.el-menu--collapse
.el-menu
.el-submenu
,
.el-menu--popup
{
min-width
:
120px
!
important
;
}
.
el-menu
.
el-menu--popup
.
el-menu--popup-bottom-start
:
:
v-deep
{
width
:
1020px
;
}
</
style
>
</
style
>
src/layout/components/Sidebar/index.vue
View file @
a8e5c02a
...
@@ -56,6 +56,7 @@ export default {
...
@@ -56,6 +56,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.frame-menu
{
.frame-menu
{
padding-left
:
30px
;
border
:
none
;
border
:
none
;
height
:
100%
;
height
:
100%
;
// width: 100% !important;
// width: 100% !important;
...
...
src/settings.js
View file @
a8e5c02a
module
.
exports
=
{
module
.
exports
=
{
title
:
'Vue Admin Template'
,
title
:
"RX100R 漏缆故障定位监测系统"
,
/**
/**
* @type {boolean} true | false
* @type {boolean} true | false
...
...
src/styles/element-ui.scss
View file @
a8e5c02a
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
.el-breadcrumb__inner
a
{
.el-breadcrumb__inner
a
{
font-weight
:
400
!
important
;
font-weight
:
400
!
important
;
}
}
.el-breadcrumb__item
:last-child
.el-breadcrumb__inner
,
.el-breadcrumb__item
:last-child
.el-breadcrumb__inner
a
,
.el-breadcrumb__item
:last-child
.el-breadcrumb__inner
a
:hover
,
.el-breadcrumb__item
:last-child
.el-breadcrumb__inner
:hover
,
.app-breadcrumb.el-breadcrumb
.no-redirect
{
color
:
#2066F9
!
important
;
}
.el-upload
{
.el-upload
{
input
[
type
=
"file"
]
{
input
[
type
=
"file"
]
{
display
:
none
!
important
;
display
:
none
!
important
;
...
@@ -86,3 +89,11 @@
...
@@ -86,3 +89,11 @@
right
:
0
;
right
:
0
;
top
:
53%
;
top
:
53%
;
}
}
.el-table__body
tr
:active
>
td
{
background-color
:
#bed5ff
!
important
;
}
.el-table__body
tr
.hover-row
>
td
{
background-color
:
#bed5ff
!
important
;
}
\ No newline at end of file
src/styles/sidebar.scss
View file @
a8e5c02a
...
@@ -160,6 +160,7 @@
...
@@ -160,6 +160,7 @@
min-width
:
$sideBarWidth
!
important
;
min-width
:
$sideBarWidth
!
important
;
}
}
// mobile responsive
// mobile responsive
.mobile
{
.mobile
{
.main-container
{
.main-container
{
...
@@ -190,7 +191,7 @@
...
@@ -190,7 +191,7 @@
}
}
// when menu collapsed
// when menu collapsed
.el-menu--
vertic
al
{
.el-menu--
horizont
al
{
&
>
.el-menu
{
&
>
.el-menu
{
.svg-icon
{
.svg-icon
{
margin-right
:
16px
;
margin-right
:
16px
;
...
@@ -211,7 +212,8 @@
...
@@ -211,7 +212,8 @@
// the scroll bar appears when the subMenu is too long
// the scroll bar appears when the subMenu is too long
>
.el-menu--popup
{
>
.el-menu--popup
{
max-height
:
100vh
;
max-height
:
20vh
;
min-width
:
80px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
&
:
:-
webkit-scrollbar-track-piece
{
&
:
:-
webkit-scrollbar-track-piece
{
...
...
src/styles/variables.scss
View file @
a8e5c02a
...
@@ -9,7 +9,7 @@ $menuHover:#263445;
...
@@ -9,7 +9,7 @@ $menuHover:#263445;
$subMenuBg
:
#1f2d3d
;
$subMenuBg
:
#1f2d3d
;
$subMenuHover
:
#001528
;
$subMenuHover
:
#001528
;
$sideBarWidth
:
21
0px
;
$sideBarWidth
:
12
0px
;
// the :export directive is the magic sauce for webpack
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
...
...
src/views/alarm/cableTime/index.vue
View file @
a8e5c02a
...
@@ -2,11 +2,9 @@
...
@@ -2,11 +2,9 @@
<!-- 漏缆实时状态 -->
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<div
class=
"leakage-cable"
>
<div
class=
"leakage-top"
>
<div
class=
"leakage-top"
>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<el-button-group>
<el-tab-pane
label=
"全部"
name=
"first"
>
全部
</el-tab-pane>
<el-button
v-for=
"item in tabs"
:key=
"item.key"
:type=
"activeName === item.key ? 'primary' : ''"
@
click=
"changeType(item)"
>
{{
item
.
label
}}
</el-button>
<el-tab-pane
label=
"已确认"
name=
"second"
>
已确认
</el-tab-pane>
</el-button-group>
<el-tab-pane
label=
"未确认"
name=
"third"
>
未确认
</el-tab-pane>
</el-tabs>
<div
class=
"operate-btn"
>
<div
class=
"operate-btn"
>
<el-button
type=
"primary"
>
刷新
</el-button>
<el-button
type=
"primary"
>
刷新
</el-button>
<el-button
type=
"primary"
>
查询
</el-button>
<el-button
type=
"primary"
>
查询
</el-button>
...
@@ -47,6 +45,7 @@
...
@@ -47,6 +45,7 @@
<el-table-column
<el-table-column
fixed=
"right"
fixed=
"right"
label=
"操作"
label=
"操作"
align=
"center"
width=
"100"
>
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
>
确认
</el-button>
<el-button
type=
"text"
>
确认
</el-button>
...
@@ -70,13 +69,27 @@ export default {
...
@@ -70,13 +69,27 @@ export default {
components
:
{
Pagination
},
components
:
{
Pagination
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'
全部
'
,
activeName
:
'
0
'
,
searchForm
:
{
searchForm
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
},
},
total
:
10
,
total
:
10
,
tableData
tableData
,
tabs
:
[
{
label
:
'全部'
,
key
:
'0'
},
{
label
:
'已确认'
,
key
:
'1'
},
{
label
:
'未确认'
,
key
:
'2'
}
],
};
};
},
},
methods
:
{
methods
:
{
...
@@ -94,7 +107,10 @@ export default {
...
@@ -94,7 +107,10 @@ export default {
handlePageChange
(
pageData
)
{
handlePageChange
(
pageData
)
{
this
.
searchForm
.
pageSize
=
pageData
.
size
this
.
searchForm
.
pageSize
=
pageData
.
size
this
.
searchForm
.
pageNum
=
pageData
.
page
this
.
searchForm
.
pageNum
=
pageData
.
page
}
},
changeType
(
item
)
{
this
.
activeName
=
item
.
key
},
}
}
};
};
</
script
>
</
script
>
...
@@ -111,7 +127,7 @@ export default {
...
@@ -111,7 +127,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
}
}
.message
{
.message
{
line-height
:
3
2px
;
line-height
:
2
2px
;
}
}
.red
{
.red
{
color
:
red
;
color
:
red
;
...
...
src/views/alarm/device/index.vue
View file @
a8e5c02a
...
@@ -2,11 +2,9 @@
...
@@ -2,11 +2,9 @@
<!-- 漏缆实时状态 -->
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<div
class=
"leakage-cable"
>
<div
class=
"leakage-top"
>
<div
class=
"leakage-top"
>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<el-button-group>
<el-tab-pane
label=
"全部"
name=
"first"
>
全部
</el-tab-pane>
<el-button
v-for=
"item in tabs"
:key=
"item.key"
:type=
"activeName === item.key ? 'primary' : ''"
@
click=
"changeType(item)"
>
{{
item
.
label
}}
</el-button>
<el-tab-pane
label=
"已确认"
name=
"second"
>
已确认
</el-tab-pane>
</el-button-group>
<el-tab-pane
label=
"未确认"
name=
"third"
>
未确认
</el-tab-pane>
</el-tabs>
<div
class=
"operate-btn"
>
<div
class=
"operate-btn"
>
<el-button
type=
"primary"
>
刷新
</el-button>
<el-button
type=
"primary"
>
刷新
</el-button>
...
@@ -27,6 +25,7 @@
...
@@ -27,6 +25,7 @@
<el-table-column
<el-table-column
fixed=
"right"
fixed=
"right"
label=
"操作"
label=
"操作"
align=
"center"
width=
"100"
>
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
>
确认
</el-button>
<el-button
type=
"text"
>
确认
</el-button>
...
@@ -56,7 +55,21 @@ export default {
...
@@ -56,7 +55,21 @@ export default {
},
},
total
:
10
,
total
:
10
,
tableData
,
tableData
,
activeName
:
'全部'
,
activeName
:
'0'
,
tabs
:
[
{
label
:
'全部'
,
key
:
'0'
},
{
label
:
'已确认'
,
key
:
'1'
},
{
label
:
'未确认'
,
key
:
'2'
}
],
};
};
},
},
methods
:
{
methods
:
{
...
@@ -80,7 +93,10 @@ export default {
...
@@ -80,7 +93,10 @@ export default {
handlePageChange
(
pageData
)
{
handlePageChange
(
pageData
)
{
this
.
searchForm
.
pageSize
=
pageData
.
size
this
.
searchForm
.
pageSize
=
pageData
.
size
this
.
searchForm
.
pageNum
=
pageData
.
page
this
.
searchForm
.
pageNum
=
pageData
.
page
}
},
changeType
(
item
)
{
this
.
activeName
=
item
.
key
},
}
}
};
};
</
script
>
</
script
>
...
...
src/views/dashboard/index.vue
View file @
a8e5c02a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<el-card
shadow=
"never"
>
<el-card
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
item
.
title
}}
</span>
<span>
{{
item
.
title
}}
</span>
<el-button
v-if=
"item.option"
style=
"float: right; padding: 3px 0"
type=
"text"
>
保存
</el-button>
<el-button
v-if=
"item.option"
style=
"float: right; padding: 3px 0
;margin-right:20px
"
type=
"text"
>
保存
</el-button>
</div>
</div>
<div
v-for=
"k in item.list"
:key=
"k.name"
class=
"text"
>
<div
v-for=
"k in item.list"
:key=
"k.name"
class=
"text"
>
<el-row
:gutter=
"24"
>
<el-row
:gutter=
"24"
>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</el-col>
</el-col>
<el-col
:span=
"14"
>
<el-col
:span=
"14"
>
<div
v-if=
"item.option"
>
<div
v-if=
"item.option"
>
<el-input
v-model=
"k.value"
clearable
placeholder=
"请输入内容"
>
{{
k
.
value
}}
</el-input>
<el-input
v-model=
"k.value"
size=
"mini"
clearable
placeholder=
"请输入内容"
>
{{
k
.
value
}}
</el-input>
</div>
</div>
<el-row
:gutter=
"20"
v-else-if=
"k.handle"
>
<el-row
:gutter=
"20"
v-else-if=
"k.handle"
>
<el-col
:span=
"10"
class=
"value_handle"
>
{{
k
.
value
}}
</el-col>
<el-col
:span=
"10"
class=
"value_handle"
>
{{
k
.
value
}}
</el-col>
...
@@ -92,6 +92,7 @@ export default {
...
@@ -92,6 +92,7 @@ export default {
.item_name
{
.item_name
{
width
:
262px
;
width
:
262px
;
height
:
26px
;
height
:
26px
;
line-height
:
1
;
}
}
.value_handle
{
.value_handle
{
color
:red
;
color
:red
;
...
...
src/views/history/leakyCableStatus/index.vue
View file @
a8e5c02a
<
template
>
<
template
>
<!-- 漏缆实时状态 -->
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<div
class=
"leakage-cable"
>
<breadcrumb
/>
<div
class=
"leakage-top"
>
<div
class=
"leakage-top"
>
<div
style=
"color: #666666"
>
<div
style=
"color: #666666"
>
共6条数据
共6条数据
...
@@ -54,11 +53,10 @@
...
@@ -54,11 +53,10 @@
</template>
</template>
<
script
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Pagination
from
'@/components/Pagination'
import
Pagination
from
'@/components/Pagination'
export
default
{
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
components
:
{
Pagination
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
searchForm
:
{
...
@@ -168,7 +166,7 @@ export default {
...
@@ -168,7 +166,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
}
}
.message
{
.message
{
line-height
:
3
2px
;
line-height
:
2
2px
;
}
}
.red
{
.red
{
color
:
red
;
color
:
red
;
...
...
src/views/login/index.vue
View file @
a8e5c02a
<
template
>
<
template
>
<div
class=
"login-container"
>
<div
class=
"login-container"
>
<div
class=
"text"
>
<div
class=
"text"
>
<p
style=
"color: white;font-size: 30px;text-align: center;"
>
Birtronix漏缆及天馈线在线
监测系统
</p>
<p
style=
"color: white;font-size: 30px;text-align: center;"
>
RX100R 漏缆故障定位
监测系统
</p>
</div>
</div>
<div
class=
"loginBox"
>
<div
class=
"loginBox"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
auto-complete=
"on"
label-position=
"left"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
auto-complete=
"on"
label-position=
"left"
>
...
...
src/views/monitor/leakageCable.vue
View file @
a8e5c02a
...
@@ -157,7 +157,7 @@ export default {
...
@@ -157,7 +157,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
}
}
.message
{
.message
{
line-height
:
3
2px
;
line-height
:
2
2px
;
}
}
.red
{
.red
{
color
:
red
;
color
:
red
;
...
...
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