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
8f280e75
Commit
8f280e75
authored
Feb 11, 2022
by
neogcg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页
parent
fe495c03
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
145 additions
and
33 deletions
+145
-33
index.vue
src/views/alarm/cableTime/index.vue
+14
-2
index.vue
src/views/alarm/device/index.vue
+14
-2
index.vue
src/views/history/deviceLinkRepair/index.vue
+9
-9
index.vue
src/views/history/deviceLinkStatus/index.vue
+13
-2
index.vue
src/views/history/leakyCableRepair/index.vue
+11
-2
index.vue
src/views/history/leakyCableStatus/index.vue
+13
-1
equipment.vue
src/views/monitor/equipment.vue
+17
-5
leakageCable.vue
src/views/monitor/leakageCable.vue
+15
-3
index.vue
src/views/setting/statistics/index.vue
+13
-1
index.vue
src/views/user/userList/index.vue
+15
-3
index.vue
src/views/user/userLog/index.vue
+11
-3
No files found.
src/views/alarm/cableTime/index.vue
View file @
8f280e75
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</div>
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}">
<el-table
:data=
"tableData
2
"
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"
/>
...
@@ -76,6 +76,7 @@ export default {
...
@@ -76,6 +76,7 @@ export default {
},
},
total
:
10
,
total
:
10
,
tableData
,
tableData
,
tableData2
:[],
tabs
:
[
tabs
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
...
@@ -107,11 +108,22 @@ export default {
...
@@ -107,11 +108,22 @@ 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
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
changeType
(
item
)
{
changeType
(
item
)
{
this
.
activeName
=
item
.
key
this
.
activeName
=
item
.
key
},
},
}
},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
...
...
src/views/alarm/device/index.vue
View file @
8f280e75
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</div>
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}">
<el-table
:data=
"tableData
2
"
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"
/>
...
@@ -53,6 +53,7 @@ export default {
...
@@ -53,6 +53,7 @@ export default {
pageSize
:
10
pageSize
:
10
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
,
tableData
,
activeName
:
'0'
,
activeName
:
'0'
,
tabs
:
[
tabs
:
[
...
@@ -92,11 +93,22 @@ export default {
...
@@ -92,11 +93,22 @@ 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
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
changeType
(
item
)
{
changeType
(
item
)
{
this
.
activeName
=
item
.
key
this
.
activeName
=
item
.
key
},
},
}
},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
...
...
src/views/history/deviceLinkRepair/index.vue
View file @
8f280e75
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
</div>
</div>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData
2
"
style=
"width: 100%"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
},
},
total
:
1
0
,
total
:
1
4
,
tableData2
:[],
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
...
@@ -179,13 +179,13 @@ tableData2:[],
...
@@ -179,13 +179,13 @@ tableData2:[],
this
.
searchForm
.
pageNum
=
pageData
.
page
;
this
.
searchForm
.
pageNum
=
pageData
.
page
;
this
.
getTableData
()
this
.
getTableData
()
},
},
//
getTableData() {
getTableData
()
{
// this.tableData2 = this.tableData.slice((this.currentPage - 1) * this
.pageSize,
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
// this.currentPage * this
.pageSize
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
//
);
);
//
this.total = this.tableData.length
this
.
total
=
this
.
tableData
.
length
//
},
},
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
row
.
linkStatus
==
"连接异常"
&&
column
.
label
==
"连接状态"
)
{
if
(
row
.
linkStatus
==
"连接异常"
&&
column
.
label
==
"连接状态"
)
{
return
"emergency"
;
return
"emergency"
;
...
@@ -198,7 +198,7 @@ tableData2:[],
...
@@ -198,7 +198,7 @@ tableData2:[],
},
},
},
},
mounted
()
{
mounted
()
{
//
this.getTableData()
this
.
getTableData
()
},
},
};
};
</
script
>
</
script
>
...
...
src/views/history/deviceLinkStatus/index.vue
View file @
8f280e75
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
</div>
</div>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData
2
"
style=
"width: 100%"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
...
@@ -81,6 +81,7 @@ export default {
...
@@ -81,6 +81,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
netDevice
:
"监控中心LSC"
,
netDevice
:
"监控中心LSC"
,
...
@@ -198,6 +199,14 @@ export default {
...
@@ -198,6 +199,14 @@ 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
;
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
row
.
linkStatus
==
"连接异常"
&&
column
.
label
==
"连接状态"
)
{
if
(
row
.
linkStatus
==
"连接异常"
&&
column
.
label
==
"连接状态"
)
{
...
@@ -210,7 +219,9 @@ export default {
...
@@ -210,7 +219,9 @@ export default {
}
}
},
},
},
},
mounted
()
{},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/history/leakyCableRepair/index.vue
View file @
8f280e75
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
</div>
</div>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData
2
"
style=
"width: 100%"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
:header-cell-style=
"
{ background: '#EAF1FE', color: '#666666' }"
...
@@ -92,6 +92,7 @@ export default {
...
@@ -92,6 +92,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
"STATION2未开通"
,
name
:
"STATION2未开通"
,
...
@@ -191,6 +192,14 @@ export default {
...
@@ -191,6 +192,14 @@ 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
;
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
cellClassFn
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
row
.
level
==
'紧急'
&&
column
.
label
==
'告警级别'
)
{
if
(
row
.
level
==
'紧急'
&&
column
.
label
==
'告警级别'
)
{
...
@@ -203,7 +212,7 @@ export default {
...
@@ -203,7 +212,7 @@ export default {
}
}
},
},
},
},
mounted
()
{},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/history/leakyCableStatus/index.vue
View file @
8f280e75
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
:data=
"tableData"
:data=
"tableData
2
"
style=
"width: 100%"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}"
...
@@ -63,6 +63,7 @@ export default {
...
@@ -63,6 +63,7 @@ export default {
pageSize
:
10
pageSize
:
10
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
'STATION2未开通'
,
name
:
'STATION2未开通'
,
...
@@ -145,10 +146,21 @@ export default {
...
@@ -145,10 +146,21 @@ 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
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
this
.
multipleSelection
=
val
}
}
},
mounted
(){
this
.
getTableData
()
}
}
}
}
</
script
>
</
script
>
...
...
src/views/monitor/equipment.vue
View file @
8f280e75
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}">
<el-table
:data=
"tableData
2
"
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"
/>
...
@@ -41,6 +41,7 @@ export default {
...
@@ -41,6 +41,7 @@ export default {
pageSize
:
10
pageSize
:
10
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
equipment1
:
'监控中心LSC'
,
equipment1
:
'监控中心LSC'
,
...
@@ -175,10 +176,21 @@ export default {
...
@@ -175,10 +176,21 @@ 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
;
}
this
.
getTableData
()
}
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
...
...
src/views/monitor/leakageCable.vue
View file @
8f280e75
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-button
type=
"primary"
>
导出
</el-button>
<el-button
type=
"primary"
>
导出
</el-button>
</div>
</div>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
:cell-class-name=
"cellClassFn"
:header-cell-style=
"
{background:'#EAF1FE',color:'#666666'}">
<el-table
:data=
"tableData
2
"
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"
/>
...
@@ -59,6 +59,7 @@ export default {
...
@@ -59,6 +59,7 @@ export default {
pageSize
:
10
pageSize
:
10
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
'STATION2未开通'
,
name
:
'STATION2未开通'
,
...
@@ -140,8 +141,19 @@ export default {
...
@@ -140,8 +141,19 @@ 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
}
this
.
getTableData
()
}
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
...
...
src/views/setting/statistics/index.vue
View file @
8f280e75
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
class=
"statistics-table"
class=
"statistics-table"
:data=
"tableData"
:data=
"tableData
2
"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
style=
"width: 100%"
:row-class-name=
"tableRowClassName"
:row-class-name=
"tableRowClassName"
...
@@ -116,6 +116,7 @@ export default {
...
@@ -116,6 +116,7 @@ export default {
key
:
"5"
,
key
:
"5"
,
},
},
],
],
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
"张呼铁路客运专线"
,
name
:
"张呼铁路客运专线"
,
...
@@ -199,7 +200,18 @@ export default {
...
@@ -199,7 +200,18 @@ 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
;
this
.
getTableData
()
},
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
mounted
()
{
this
.
getTableData
()
},
},
};
};
</
script
>
</
script
>
...
...
src/views/user/userList/index.vue
View file @
8f280e75
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<el-table
<el-table
v-loading=
"loading"
v-loading=
"loading"
:data=
"tableData"
:data=
"tableData
2
"
class=
"statistics-table"
class=
"statistics-table"
style=
"width: 100%"
style=
"width: 100%"
:row-class-name=
"tableRowClassName"
:row-class-name=
"tableRowClassName"
...
@@ -52,6 +52,7 @@ export default {
...
@@ -52,6 +52,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
},
},
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
'admin'
,
name
:
'admin'
,
...
@@ -100,8 +101,19 @@ export default {
...
@@ -100,8 +101,19 @@ 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
}
this
.
getTableData
()
}
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
mounted
()
{
this
.
getTableData
()
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/user/userLog/index.vue
View file @
8f280e75
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
</div>
</div>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData
2
"
style=
"width: 100%"
style=
"width: 100%"
class=
"statistics-table"
class=
"statistics-table"
:row-class-name=
"tableRowClassName"
:row-class-name=
"tableRowClassName"
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
},
},
total
:
10
,
total
:
10
,
tableData2
:[],
tableData
:
[
tableData
:
[
{
{
name
:
"admin"
,
name
:
"admin"
,
...
@@ -126,12 +126,20 @@ export default {
...
@@ -126,12 +126,20 @@ 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
;
this
.
getTableData
()
},
getTableData
()
{
this
.
tableData2
=
this
.
tableData
.
slice
((
this
.
searchForm
.
pageNum
-
1
)
*
this
.
searchForm
.
pageSize
,
this
.
searchForm
.
pageNum
*
this
.
searchForm
.
pageSize
);
this
.
total
=
this
.
tableData
.
length
},
},
tableRowClassName
({
row
,
rowIndex
})
{
tableRowClassName
({
row
,
rowIndex
})
{
return
rowIndex
%
2
===
0
?
''
:
'single-row'
return
rowIndex
%
2
===
0
?
''
:
'single-row'
},
},
},
},
mounted
()
{},
mounted
()
{
this
.
getTableData
()
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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