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
fbcf17a0
Commit
fbcf17a0
authored
Jan 29, 2022
by
许倩倩
Browse files
Options
Browse Files
Download
Plain Diff
样式同步
parents
34eb0fbf
ff7c9d56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
39 deletions
+57
-39
equipment.vue
src/views/monitor/equipment.vue
+27
-19
leakageCable.vue
src/views/monitor/leakageCable.vue
+30
-20
No files found.
src/views/monitor/equipment.vue
View file @
fbcf17a0
<
template
>
<
template
>
<!-- 漏缆实时状态 -->
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<div
class=
"leakage-cable"
>
<breadcrumb
/>
<div
class=
"leakage-top"
>
<div
class=
"leakage-top"
>
<div>
共6条数据
</div>
<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>
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
>
导出
</el-button>
</div>
</div>
<div>
共6条数据
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#
000
'}">
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#
666666
'}">
<el-table-column
prop=
"equipment1"
label=
"网元设备"
align=
"center"
/>
<el-table-column
prop=
"equipment1"
label=
"网元设备"
align=
"center"
/>
<el-table-column
prop=
"state1"
label=
"连接状态"
align=
"center"
/>
<el-table-column
prop=
"state1"
label=
"连接状态"
align=
"center"
/>
<el-table-column
prop=
"equipment2"
label=
"网元设备"
align=
"center"
/>
<el-table-column
prop=
"equipment2"
label=
"网元设备"
align=
"center"
/>
...
@@ -19,18 +20,29 @@
...
@@ -19,18 +20,29 @@
<el-table-column
prop=
"equipment3"
label=
"网元设备"
align=
"center"
/>
<el-table-column
prop=
"equipment3"
label=
"网元设备"
align=
"center"
/>
<el-table-column
prop=
"uploadDate"
label=
"上传时间"
align=
"center"
/>
<el-table-column
prop=
"uploadDate"
label=
"上传时间"
align=
"center"
/>
</el-table>
</el-table>
<div
class=
"page"
>
<pagination
<el-button>
上一页
</el-button>
:limit=
"searchForm.pageSize"
<span
class=
"pageNum"
>
2/5
</span>
:page=
"searchForm.pageNum"
<el-button>
下一页
</el-button>
:total=
"total"
</div>
class=
"pagination"
@
pagination=
"handlePageChange"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Pagination
from
'@/components/Pagination'
export
default
{
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
pageNum
:
1
,
pageSize
:
10
},
total
:
10
,
tableData
:
[
tableData
:
[
{
{
equipment1
:
'监控中心LSC'
,
equipment1
:
'监控中心LSC'
,
...
@@ -149,8 +161,6 @@ export default {
...
@@ -149,8 +161,6 @@ export default {
methods
:
{
methods
:
{
// 表格背景图颜色
// 表格背景图颜色
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
console
.
log
(
row
,
'row'
)
console
.
log
(
column
,
'column'
)
if
((
row
.
state1
==
'连接正常'
&&
column
.
property
==
'state1'
))
{
if
((
row
.
state1
==
'连接正常'
&&
column
.
property
==
'state1'
))
{
return
'green'
return
'green'
}
}
...
@@ -166,11 +176,9 @@ export default {
...
@@ -166,11 +176,9 @@ export default {
return
'stripe'
return
'stripe'
}
}
},
},
handleSizeChange
(
val
)
{
handlePageChange
(
pageData
)
{
console
.
log
(
`每页
${
val
}
条`
);
this
.
searchForm
.
pageSize
=
pageData
.
size
},
this
.
searchForm
.
pageNum
=
pageData
.
page
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
}
}
}
}
};
};
...
@@ -179,13 +187,13 @@ export default {
...
@@ -179,13 +187,13 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.leakage-cable
{
.leakage-cable
{
.leakage-top
{
.leakage-top
{
margin
:
20px
;
margin
-bottom
:
20px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
flex-end
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
&
:
:
v-deep
.
cell
{
&
:
:
v-deep
.
cell
{
color
:
#
000
;
color
:
#
333333
;
}
}
&
:
:
v-deep
.
stripe
{
&
:
:
v-deep
.
stripe
{
background-color
:
#EAF1FE
;
background-color
:
#EAF1FE
;
...
...
src/views/monitor/leakageCable.vue
View file @
fbcf17a0
<
template
>
<
template
>
<!-- 漏缆实时状态 -->
<!-- 漏缆实时状态 -->
<div
class=
"leakage-cable"
>
<div
class=
"leakage-cable"
>
<breadcrumb
/>
<div
class=
"leakage-top"
>
<div
class=
"leakage-top"
>
<div
style=
"color: #666666"
>
共6条数据
</div>
<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>
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
>
导出
</el-button>
</div>
</div>
<div>
共6条数据
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#
000
'}">
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#
666666
'}">
<el-table-column
type=
"index"
label=
"序列号"
width=
"100"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序列号"
width=
"100"
align=
"center"
/>
<el-table-column
prop=
"name"
label=
"基站名称"
width=
"180"
align=
"center"
/>
<el-table-column
prop=
"name"
label=
"基站名称"
width=
"180"
align=
"center"
/>
<el-table-column
prop=
"object"
label=
"告警对象"
width=
"180"
align=
"center"
/>
<el-table-column
prop=
"object"
label=
"告警对象"
width=
"180"
align=
"center"
/>
<el-table-column
prop=
"level"
label=
"告警级别"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"level"
label=
"告警级别"
width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
:class=
"scope.row.level == '重要'?'red':'orange'"
>
<div>
{{
scope
.
row
.
level
}}
{{
scope
.
row
.
level
}}
</div>
</div>
</
template
>
</
template
>
...
@@ -27,28 +28,39 @@
...
@@ -27,28 +28,39 @@
<div
v-for=
"(item, index) in scope.row.message.red"
:key=
"index+'red'"
class=
"red message"
>
<div
v-for=
"(item, index) in scope.row.message.red"
:key=
"index+'red'"
class=
"red message"
>
{{
item
}}
{{
item
}}
</div>
</div>
<div
v-for=
"(item, index) in scope.row.message.green"
:key=
"index+'
red
'"
class=
"green message"
>
<div
v-for=
"(item, index) in scope.row.message.green"
:key=
"index+'
green
'"
class=
"green message"
>
{{
item
}}
{{
item
}}
</div>
</div>
<div
v-for=
"(item, index) in scope.row.message.black"
:key=
"index+'
red
'"
class=
"black message"
>
<div
v-for=
"(item, index) in scope.row.message.black"
:key=
"index+'
black
'"
class=
"black message"
>
{{
item
}}
{{
item
}}
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"uploadDate"
label=
"最新上传时间"
align=
"center"
/>
<el-table-column
prop=
"uploadDate"
label=
"最新上传时间"
align=
"center"
/>
</el-table>
</el-table>
<div
class=
"page"
>
<pagination
<el-button>
上一页
</el-button>
:limit=
"searchForm.pageSize"
<span
class=
"pageNum"
>
2/5
</span>
:page=
"searchForm.pageNum"
<el-button>
下一页
</el-button>
:total=
"total"
</div>
class=
"pagination"
@
pagination=
"handlePageChange"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Breadcrumb
from
'@/components/Breadcrumb'
import
Pagination
from
'@/components/Pagination'
export
default
{
export
default
{
components
:
{
Pagination
,
Breadcrumb
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
pageNum
:
1
,
pageSize
:
10
},
total
:
10
,
tableData
:
[
tableData
:
[
{
{
name
:
'STATION2未开通'
,
name
:
'STATION2未开通'
,
...
@@ -127,11 +139,9 @@ export default {
...
@@ -127,11 +139,9 @@ export default {
return
'stripe'
return
'stripe'
}
}
},
},
handleSizeChange
(
val
)
{
handlePageChange
(
pageData
)
{
console
.
log
(
`每页
${
val
}
条`
);
this
.
searchForm
.
pageSize
=
pageData
.
size
},
this
.
searchForm
.
pageNum
=
pageData
.
page
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
}
}
}
}
};
};
...
@@ -140,13 +150,13 @@ export default {
...
@@ -140,13 +150,13 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.leakage-cable
{
.leakage-cable
{
.leakage-top
{
.leakage-top
{
margin
:
20px
;
margin
-bottom
:
20px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
flex-end
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
&
:
:
v-deep
.
cell
{
&
:
:
v-deep
.
cell
{
color
:
#
000
;
color
:
#
333333
;
}
}
.message
{
.message
{
line-height
:
32px
;
line-height
:
32px
;
...
...
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