Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
welfare
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
达摩4.0重构
welfare
Commits
bb42032c
Commit
bb42032c
authored
Jun 02, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复实物礼品、虚拟礼品列表没有分页控件的bug
parent
3d8fdc91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
12 deletions
+9
-12
switch-page.vue
src/components/libs/switch-page.vue
+2
-0
table.js
src/mixins/table.js
+1
-0
real-gift.vue
src/views/gift-manage/real-gift.vue
+3
-6
virtual-gift.vue
src/views/gift-manage/virtual-gift.vue
+3
-6
No files found.
src/components/libs/switch-page.vue
View file @
bb42032c
...
...
@@ -94,6 +94,8 @@ export default {
},
visible
()
{
let
routes
=
[
'/gic-card/list'
,
'/card-package/list'
,
'/gift-manage/real-gift'
,
'/gift-manage/virtual-gift'
];
// 因为会挡住分页控件,ui考虑之后决定砍掉本控件
routes
=
[];
return
routes
.
some
(
i
=>
i
.
indexOf
(
this
.
$route
.
path
)
>
-
1
);
}
},
...
...
src/mixins/table.js
View file @
bb42032c
...
...
@@ -9,6 +9,7 @@ export const page = {
this
.
getTableList
();
},
handleSizeChange
(
val
)
{
this
.
listParams
.
currentPage
=
1
;
this
.
listParams
.
pageSize
=
val
;
this
.
getTableList
();
},
...
...
src/views/gift-manage/real-gift.vue
View file @
bb42032c
...
...
@@ -174,11 +174,7 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-conteiner"
style=
"background:#fff;"
v-show=
"total > 0"
>
<div
class=
"pagination"
>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"query.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
v-if=
"total != 0"
>
</dm-pagination>
</div>
</div>
<dm-pagination
style=
"text-align: right"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"query.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
>
</dm-pagination>
</div>
</div>
</div>
...
...
@@ -321,15 +317,16 @@ export default {
this
.
tableData
.
forEach
(
item
=>
{
this
.
$set
(
item
,
'visible'
,
false
);
});
this
.
total
=
res
.
result
.
totalCount
;
}).
finally
(()
=>
this
.
loading
=
false
);
},
handleSizeChange
(
value
){
this
.
query
.
currentPage
=
1
;
this
.
query
.
pageSize
=
value
;
this
.
getTableList
();
},
handleCurrentChange
(
value
){
this
.
query
.
currentPage
=
value
;
this
.
query
.
pageSize
=
1
;
this
.
getTableList
();
},
// 展开与收起
...
...
src/views/gift-manage/virtual-gift.vue
View file @
bb42032c
...
...
@@ -178,11 +178,7 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"pagination-conteiner"
style=
"background:#fff;"
v-show=
"total > 0"
>
<div
class=
"pagination"
>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"query.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
v-if=
"total != 0"
>
</dm-pagination>
</div>
</div>
<dm-pagination
style=
"text-align: right"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"query.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"query.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"total"
>
</dm-pagination>
</div>
</div>
</div>
...
...
@@ -348,15 +344,16 @@ export default {
this
.
tableData
.
forEach
(
item
=>
{
this
.
$set
(
item
,
'visible'
,
false
);
});
this
.
total
=
res
.
result
.
totalCount
;
}).
finally
(()
=>
this
.
loading
=
false
);
},
handleSizeChange
(
value
){
this
.
query
.
currentPage
=
1
;
this
.
query
.
pageSize
=
value
;
this
.
getTableList
();
},
handleCurrentChange
(
value
){
this
.
query
.
currentPage
=
value
;
this
.
query
.
pageSize
=
1
;
this
.
getTableList
();
},
closeUploadDetail
(){
...
...
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