Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
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
daywrite
bms-vue-obear
Commits
34465469
Commit
34465469
authored
May 22, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.实施方式
parent
29052d43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
6 deletions
+79
-6
implement_type_list.vue
...nents/setting_list/implement_type/implement_type_list.vue
+31
-6
pagenation.vue
src/components/setting_list/pagenation.vue
+48
-0
No files found.
src/components/setting_list/implement_type/implement_type_list.vue
View file @
34465469
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-alert
title=
""
type=
"info"
>
<el-alert
title=
""
type=
"info"
>
<BreadCrumb
name=
"实施阶段"
></BreadCrumb>
<BreadCrumb
name=
"实施阶段"
></BreadCrumb>
</el-alert>
</el-alert>
<el-table
:data=
"list"
border
stripe
style=
"width: 100%;margin-top:20px;"
>
<el-table
:data=
"
result.
list"
border
stripe
style=
"width: 100%;margin-top:20px;"
>
<el-table-column
prop=
"type"
align=
"center"
label=
"实施阶段"
>
<el-table-column
prop=
"type"
align=
"center"
label=
"实施阶段"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"description"
align=
"center"
label=
"备注"
>
<el-table-column
prop=
"description"
align=
"center"
label=
"备注"
>
...
@@ -26,6 +26,10 @@
...
@@ -26,6 +26,10 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<Pagenation
@
update:pager=
"pager => {updatePage(pager)}"
:total=
"result.pagenation.totalcount"
>
</Pagenation>
</div>
</div>
</div>
</div>
<FormModal
ref=
"formModal"
></FormModal>
<FormModal
ref=
"formModal"
></FormModal>
...
@@ -35,6 +39,7 @@
...
@@ -35,6 +39,7 @@
import
SearchHeader
from
'../../common/searchHeader'
import
SearchHeader
from
'../../common/searchHeader'
import
BreadCrumb
from
'../BreadCrumb'
import
BreadCrumb
from
'../BreadCrumb'
import
FormModal
from
'../implement/modal'
import
FormModal
from
'../implement/modal'
import
Pagenation
from
'../pagenation'
import
{
import
{
requestAPI
,
requestAPI
,
api
api
...
@@ -45,12 +50,24 @@ export default {
...
@@ -45,12 +50,24 @@ export default {
components
:
{
components
:
{
SearchHeader
,
SearchHeader
,
BreadCrumb
,
BreadCrumb
,
Pagenation
,
FormModal
FormModal
},
},
data
()
{
data
()
{
return
{
return
{
list
:
[]
pagenation
:
{
thispage
:
1
,
pagesize
:
20
},
result
:
{
list
:
[],
pagenation
:
{
totalcount
:
1
,
thispage
:
1
,
pagesize
:
20
}
}
}
}
},
},
...
@@ -59,15 +76,23 @@ export default {
...
@@ -59,15 +76,23 @@ export default {
},
},
methods
:
{
methods
:
{
getList
()
{
getList
(
params
)
{
requestAPI
(
api
.
getListimplementType
,
{}
)
requestAPI
(
api
.
getListimplementType
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
list
=
res
.
list
this
.
result
.
list
=
res
.
list
this
.
result
.
pagenation
=
res
.
pagenation
})
})
},
},
updatePage
(
pager
)
{
let
ret
=
Object
.
assign
({
page
:
this
.
pagenation
.
thispage
},
{
page
:
pager
.
thispage
})
this
.
getList
(
ret
)
},
_reload
()
{
_reload
()
{
this
.
getList
()
this
.
getList
(
{
page
:
this
.
pagenation
.
thispage
}
)
},
},
// 6.1新增
// 6.1新增
...
...
src/components/setting_list/pagenation.vue
0 → 100644
View file @
34465469
<
template
>
<section
class=
"pull-right"
>
<el-pagination
v-if=
"total > 0"
class=
"mb20 mt20"
background
@
current-change=
"handleCurrentChange"
:current-page=
"pager.thispage"
:page-sizes=
"[10, 20, 40, 60, 80, 100]"
:page-size=
"pager.pagesize"
layout=
"total, prev, pager, next, jumper"
:total=
"total"
>
</el-pagination>
</section>
</
template
>
<
script
>
export
default
{
props
:
{
total
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
pager
:
{
thispage
:
1
,
pagesize
:
20
,
totalcount
:
0
}
}
},
created
()
{
this
.
$emit
(
'update:pager'
,
this
.
pager
)
},
methods
:
{
handleCurrentChange
(
val
)
{
this
.
pager
.
thispage
=
val
this
.
pager
.
totalcount
=
this
.
total
this
.
$emit
(
'update:pager'
,
this
.
pager
)
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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