Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
67c69896
Commit
67c69896
authored
Jan 29, 2022
by
yanzhongrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app_main breadcrumb
parent
2bab14bc
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
47 additions
and
38 deletions
+47
-38
index.vue
src/components/Breadcrumb/index.vue
+2
-2
AppMain.vue
src/layout/components/AppMain.vue
+5
-0
index.vue
src/layout/index.vue
+10
-2
index.js
src/router/index.js
+16
-6
common.scss
src/styles/common.scss
+4
-0
sidebar.scss
src/styles/sidebar.scss
+1
-0
index.vue
src/views/dashboard/index.vue
+2
-1
index.vue
src/views/maintain/oneself/index.vue
+2
-5
index.vue
src/views/maintain/parameter/index.vue
+0
-3
equipment.vue
src/views/monitor/equipment.vue
+1
-3
leakageCable.vue
src/views/monitor/leakageCable.vue
+1
-3
index.vue
src/views/setting/add/index.vue
+0
-3
index.vue
src/views/setting/statistics/index.vue
+1
-3
index.vue
src/views/user/updateUser/index.vue
+1
-3
index.vue
src/views/user/userList/index.vue
+1
-4
No files found.
src/components/Breadcrumb/index.vue
View file @
67c69896
<
template
>
<el-breadcrumb
class=
"app-breadcrumb"
separator=
"
/
"
>
<el-breadcrumb
class=
"app-breadcrumb"
separator=
"
>
"
>
<transition-group
name=
"breadcrumb"
>
<el-breadcrumb-item
v-for=
"(item,index) in levelList"
:key=
"item.path"
>
<span
v-if=
"item.redirect==='noRedirect'||index==levelList.length-1"
class=
"no-redirect"
>
{{
item
.
meta
.
title
}}
</span>
...
...
@@ -33,7 +33,7 @@ export default {
const
first
=
matched
[
0
]
if
(
!
this
.
isDashboard
(
first
))
{
matched
=
[{
path
:
'/dashboard'
,
meta
:
{
title
:
'
Dashboard
'
}}].
concat
(
matched
)
matched
=
[{
path
:
'/dashboard'
,
meta
:
{
title
:
'
首页
'
}}].
concat
(
matched
)
}
this
.
levelList
=
matched
.
filter
(
item
=>
item
.
meta
&&
item
.
meta
.
title
&&
item
.
meta
.
breadcrumb
!==
false
)
...
...
src/layout/components/AppMain.vue
View file @
67c69896
...
...
@@ -7,6 +7,7 @@
</
template
>
<
script
>
export
default
{
name
:
'AppMain'
,
computed
:
{
...
...
@@ -19,6 +20,10 @@ export default {
<
style
scoped
>
.app-main
{
margin
:
0
20px
20px
20px
;
padding
:
20px
;
background
:
#fff
;
border-radius
:
8px
;
/*50 = navbar */
min-height
:
calc
(
100vh
-
50px
);
width
:
100%
;
...
...
src/layout/index.vue
View file @
67c69896
...
...
@@ -3,22 +3,30 @@
<navbar
/>
<div
v-if=
"device==='mobile'&&sidebar.opened"
class=
"drawer-bg"
@
click=
"handleClickOutside"
/>
<div
:class=
"
{sidebarHide: sidebar.hide}" class="main-container">
<orgTree
style=
"float:left"
/>
<div
class=
"flex_clo"
>
<Breadcrumb
/>
<app-main
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
{
Navbar
,
Sidebar
,
AppMain
,
Topbar
}
from
'./components'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
orgTree
from
'@/components/orgTree.vue'
export
default
{
name
:
'Layout'
,
components
:
{
Breadcrumb
,
Navbar
,
Sidebar
,
AppMain
,
Topbar
Topbar
,
orgTree
},
mixins
:
[
ResizeMixin
],
computed
:
{
...
...
src/router/index.js
View file @
67c69896
...
...
@@ -58,12 +58,22 @@ export const constantRoutes = [
path
:
'/alarm'
,
component
:
Layout
,
redirect
:
'/dashboard'
,
children
:
[{
path
:
'alarm'
,
name
:
'Alarm'
,
component
:
()
=>
import
(
'@/views/dashboard/index'
),
meta
:
{
title
:
'告警管理'
,
icon
:
'dashboard'
}
}]
name
:
'监测实时状态'
,
meta
:
{
title
:
'告警管理'
,
icon
:
'dashboard'
},
children
:
[
{
path
:
'leakageCable'
,
name
:
'漏缆实时状态'
,
component
:
()
=>
import
(
'@/views/monitor/leakageCable'
),
meta
:
{
title
:
'漏缆监测告警'
}
},
{
path
:
'equipment'
,
name
:
'设备实时状态'
,
component
:
()
=>
import
(
'@/views/monitor/equipment'
),
meta
:
{
title
:
'设备连接告警'
}
}
]
},
{
path
:
'/setting'
,
...
...
src/styles/common.scss
View file @
67c69896
...
...
@@ -13,3 +13,7 @@
.ml20
{
margin-left
:
20px
;
}
.flex_clo
{
display
:
flex
;
flex-direction
:
column
;
}
\ No newline at end of file
src/styles/sidebar.scss
View file @
67c69896
#app
{
.main-container
{
background-color
:
#F9F9F9
;
min-height
:
100%
;
transition
:
margin-left
.28s
;
// margin-left: $sideBarWidth;
...
...
src/views/dashboard/index.vue
View file @
67c69896
<
template
>
<div
class=
"dashboard-container"
>
<OrgTree
/>
<!--
<OrgTree
/>
-->
</div>
</
template
>
...
...
src/views/maintain/oneself/index.vue
View file @
67c69896
<
template
>
<div
class=
"oneself"
>
<Breadcrumb
/>
<div
class=
"oneself-title"
>
温馨提示:系统如无异常,请勿操作此界面
</div>
<el-form
ref=
"form1"
:model=
"formData1"
:rules=
"rules1"
label-width=
"200px"
class=
"oneself-form"
>
<el-form-item
label=
"服务器IP地址"
prop=
"ip"
>
...
...
@@ -53,7 +52,7 @@
</el-radio>
</el-row>
</el-radio-group>
<el-button
class=
"btn"
style=
"width: 120px"
type=
"primary"
:loading=
"loading3"
@
click=
"sendContent"
>
发送查询内容
</el-button>
<el-button
size=
"mini"
class=
"btn"
style=
"width: 120px"
type=
"primary"
:loading=
"loading3"
@
click=
"sendContent"
>
发送查询内容
</el-button>
</el-form-item>
</el-form>
<el-form
ref=
"form3"
:model=
"formData3"
:rules=
"rules3"
label-width=
"200px"
class=
"oneself-form"
>
...
...
@@ -66,7 +65,7 @@
:value=
"item.value"
/>
</el-select>
<el-button
style=
"width: 120px"
class=
"btn"
type=
"primary"
:loading=
"loading2"
@
click=
"sendData"
>
发送数据
</el-button>
<el-button
s
ize=
"mini"
s
tyle=
"width: 120px"
class=
"btn"
type=
"primary"
:loading=
"loading2"
@
click=
"sendData"
>
发送数据
</el-button>
</el-form-item>
</el-form>
<div
class=
"oneself-tips"
>
当前未向服务器下发指令!
</div>
...
...
@@ -74,9 +73,7 @@
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
export
default
{
components
:
{
Breadcrumb
},
data
()
{
return
{
baseStationList
:
[],
...
...
src/views/maintain/parameter/index.vue
View file @
67c69896
<
template
>
<div
class=
"parameter"
>
<Breadcrumb
/>
<div
class=
"parameter-title"
>
温馨提示:告警门限参数设置,数据如无异常,请勿修改告警门限参数!
</div>
...
...
@@ -48,9 +47,7 @@
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
export
default
{
components
:
{
Breadcrumb
},
data
()
{
return
{
loading
:
false
,
...
...
src/views/monitor/equipment.vue
View file @
67c69896
<
template
>
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<breadcrumb
/>
<div
class=
"leakage-top"
>
<div>
共6条数据
...
...
@@ -31,11 +30,10 @@
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Pagination
from
'@/components/Pagination'
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
components
:
{
Pagination
},
data
()
{
return
{
searchForm
:
{
...
...
src/views/monitor/leakageCable.vue
View file @
67c69896
<
template
>
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<breadcrumb
/>
<div
class=
"leakage-top"
>
<div
style=
"color: #666666"
>
共6条数据
...
...
@@ -49,11 +48,10 @@
</template>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Pagination
from
'@/components/Pagination'
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
components
:
{
Pagination
},
data
()
{
return
{
searchForm
:
{
...
...
src/views/setting/add/index.vue
View file @
67c69896
<
template
>
<div
class=
"add"
>
<breadcrumb
/>
<div
class=
"add-tab"
>
<el-tabs
v-model=
"activeName"
:stretc=
"true"
>
<el-tab-pane
...
...
@@ -37,9 +36,7 @@
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
export
default
{
components
:
{
Breadcrumb
},
data
()
{
return
{
activeName
:
'0'
,
...
...
src/views/setting/statistics/index.vue
View file @
67c69896
<
template
>
<div
class=
"statistics"
>
<Breadcrumb
/>
<div
class=
"header"
>
<div
class=
"header-left"
>
<!--
<el-tabs
v-model=
"activeName"
type=
"border-card"
>
...
...
@@ -86,9 +85,8 @@
<
script
>
import
Pagination
from
'@/components/Pagination'
import
Breadcrumb
from
'@/components/Breadcrumb'
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
components
:
{
Pagination
},
data
()
{
return
{
searchForm
:
{
...
...
src/views/user/updateUser/index.vue
View file @
67c69896
<
template
>
<div>
<breadcrumb
/>
<div
class=
"update-user-container"
>
<div
class=
"header"
>
<div
class=
"tab"
>
...
...
@@ -16,11 +15,10 @@
</
template
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
baseInfo
from
'../updateUser/components/baseInfo.vue'
import
Password
from
'../updateUser/components/password.vue'
export
default
{
components
:
{
Breadcrumb
,
baseInfo
,
Password
},
components
:
{
baseInfo
,
Password
},
data
()
{
return
{
options
:
[{
...
...
src/views/user/userList/index.vue
View file @
67c69896
<
template
>
<div>
<breadcrumb
/>
<el-row
class=
"header"
>
<el-col
:span=
"4"
>
<div
class=
"message"
>
共
<span>
{{
total
}}
</span>
条数据
</div>
...
...
@@ -35,12 +34,10 @@
<
script
>
import
Pagination
from
'@/components/Pagination'
import
Breadcrumb
from
'@/components/Breadcrumb'
export
default
{
components
:
{
Pagination
,
Breadcrumb
Pagination
},
data
()
{
return
{
...
...
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