Commit f3b9fa48 authored by daywrite's avatar daywrite

修复分页查询

parent 3d979067
......@@ -22,9 +22,9 @@
<div class="page-body-content">
<div class="mb10">
<singleRadioTool
:form-item="reimType"
:form-item="form.navCount"
:options-list="result.navCount"
@update:item="val => {reimType = val}">
@update:item="val => { reimTypeChange(val) }">
<el-radio-button solt="default" key="default" label="default" value="报销单">报销单</el-radio-button>
</singleRadioTool>
</div>
......@@ -132,9 +132,9 @@ export default {
],
filter: [],
form: {
'ClientSearch[keyword]': ''
'ClientSearch[keyword]': '',
'navCount': 'default'
},
reimType: 'default',
// reimTypeArray: [],
pagenation: {
thispage: 1,
......@@ -175,6 +175,14 @@ export default {
this.getList(params)
},
reimTypeChange (val) {
let params = this.setParams({
...this.form,
page: this.pagenation.thispage
}, {navCount: this.reimType})
this.getList(params)
},
timeSearchForm (search) {
let params = this.setParams({
...this.form,
......@@ -200,8 +208,11 @@ export default {
},
updatePage (pager) {
Object.assign(this.pagenation, pager)
this.getList()
let ret = this.setParams({
...this.form,
page: this.pagenation.thispage
}, {page: pager.thispage})
this.getList(ret)
},
getFilter () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment