Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
fukai
vue-gjjs
Commits
53b7a4b9
Commit
53b7a4b9
authored
Oct 26, 2022
by
jianglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改列表分页
parent
36f4701b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
CompareTable.vue
src/components/CompareTable.vue
+2
-2
IStreamTable.vue
src/components/IStreamTable.vue
+2
-2
IStreamTableDocpan.vue
src/components/IStreamTableDocpan.vue
+14
-14
Table.vue
src/components/Table.vue
+2
-2
No files found.
src/components/CompareTable.vue
View file @
53b7a4b9
...
...
@@ -58,7 +58,7 @@
</c-table-column>
<slot></slot>
</el-table>
<c-col
:span=
"16"
>
<c-col
:span=
"16"
v-if=
"tableData.length>10"
>
<el-pagination
v-if=
"paginationShow"
class=
"eContainer-pagination"
...
...
@@ -71,7 +71,7 @@
@
current-change=
"currentChange"
></el-pagination>
</c-col>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
style=
"float:right"
>
<div
class=
"paginationLable"
v-if=
"paginationShow"
>
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
...
...
src/components/IStreamTable.vue
View file @
53b7a4b9
...
...
@@ -85,7 +85,7 @@
<el-button
type=
"primary"
@
click=
"saveColumnEvent"
style=
"margin-left:10px;"
>
保存
</el-button>
</span>
</el-dialog>
<c-col
:span=
"16"
>
<c-col
:span=
"16"
v-if=
"tableData.length>10"
>
<el-pagination
v-if=
"paginationShow"
class=
"eContainer-pagination"
...
...
@@ -98,7 +98,7 @@
@
current-change=
"currentChange"
></el-pagination>
</c-col>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
style=
"float:right"
>
<div
class=
"paginationLable"
v-if=
"paginationShow"
>
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
...
...
src/components/IStreamTableDocpan.vue
View file @
53b7a4b9
...
...
@@ -16,21 +16,21 @@
></el-table-column>
<slot></slot>
</el-table>
<c-col
:span=
"16"
>
<el-pagination
class=
"eContainer-pagination"
layout=
"prev, pager, next, jumper"
:page-sizes=
"pageSizes"
:page-size=
"pageSize"
:current-page=
"currentPage"
:total=
"tableData.length"
@
size-change=
"sizeChange"
@
current-change=
"currentChange"
></el-pagination>
<c-col
:span=
"16"
v-if=
"tableData.length>10"
>
<el-pagination
class=
"eContainer-pagination"
layout=
"prev, pager, next, jumper"
:page-sizes=
"pageSizes"
:page-size=
"pageSize"
:current-page=
"currentPage"
:total=
"tableData.length"
@
size-change=
"sizeChange"
@
current-change=
"currentChange"
></el-pagination>
</c-col>
<c-col
:span=
"8"
style=
"float:right"
>
<div
class=
"paginationLable"
>
当前显示第
{{
(
currentPage
-
1
)
*
pageSize
+
1
}}
-
{{
currentPage
*
pageSize
>
tableData
.
length
?
tableData
.
length
:
currentPage
*
pageSize
}}
条,共
{{
tableData
.
length
}}
条
</div>
</c-col>
<c-col
:span=
"8"
>
<div
class=
"paginationLable"
>
当前显示第
{{
(
currentPage
-
1
)
*
pageSize
+
1
}}
-
{{
currentPage
*
pageSize
>
tableData
.
length
?
tableData
.
length
:
currentPage
*
pageSize
}}
条,共
{{
tableData
.
length
}}
条
</div>
</c-col>
</div>
</
template
>
...
...
src/components/Table.vue
View file @
53b7a4b9
...
...
@@ -22,7 +22,7 @@
<c-col
:span=
"16"
style=
"text-align:left"
>
<el-pagination
class=
"eContainer-pagination"
v-if=
"paginationShow"
v-if=
"paginationShow
&& total>10
"
:background=
"type == 'small' ? false : true"
small
layout=
"prev, pager, next, jumper"
...
...
@@ -32,7 +32,7 @@
v-on=
"$listeners"
></el-pagination>
</c-col>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
style=
"float:right"
>
<div
class=
"paginationLable"
v-if=
"paginationShow"
>
当前显示第
{{
page1
}}
-
{{
page2
}}
条,共
{{
total
}}
条
</div>
...
...
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