Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-manager-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
ka-manager-ui
Commits
783612fb
Commit
783612fb
authored
Jul 29, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页查询
parent
fa8cd988
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
index.vue
src/components/Pagination/index.vue
+18
-14
index.vue
src/modules/channels/index.vue
+1
-0
No files found.
src/components/Pagination/index.vue
View file @
783612fb
...
...
@@ -29,7 +29,7 @@ export default {
},
limit
:
{
type
:
Number
,
default
:
2
0
default
:
1
0
},
pageSizes
:
{
type
:
Array
,
...
...
@@ -55,32 +55,36 @@ export default {
}
},
computed
:
{
currentPag
e
:
{
pageSiz
e
:
{
get
()
{
return
this
.
page
return
this
.
limit
},
set
(
val
)
{
this
.
$emit
(
'
update:page
'
,
val
)
}
// set(val) {
// console.log("update:limit=="+val)
// this.$emit('update:limit', val)
// }
},
pageSiz
e
:
{
currentPag
e
:
{
get
()
{
return
this
.
limit
return
this
.
page
},
set
(
val
)
{
this
.
$emit
(
'
update:limit
'
,
val
)
}
}
// set(val) {
// console.log("update:page=="+val)
// this.$emit('update:page', val)
// }
},
},
methods
:
{
handleSizeChange
(
val
)
{
this
.
$emit
(
'
pagination
'
,
{
page
:
this
.
currentPage
,
limit
:
val
})
this
.
$emit
(
'
update:limit
'
,
val
)
this
.
$emit
(
'
pagination
'
)
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
},
handleCurrentChange
(
val
)
{
this
.
$emit
(
'
pagination
'
,
{
page
:
val
,
limit
:
this
.
pageSize
})
this
.
$emit
(
'
update:page
'
,
val
)
this
.
$emit
(
'
pagination
'
)
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
...
...
src/modules/channels/index.vue
View file @
783612fb
...
...
@@ -278,6 +278,7 @@
},
count
:
1
,
page
:
1
,
psize
:
10
,
roles
:
undefined
,
isEdit
:
true
,
checkedItemsResultVO
:
{
point
:
[],
value
:[]},
...
...
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