Commit 0fba8cde authored by caimeng's avatar caimeng

所有的列表 都新增可以切换每页显示条数的功能

parent c049930e
......@@ -30,7 +30,7 @@ $base: '.vab';
}
html {
overflow: hidden;
//overflow: hidden;
body {
overflow: auto;
position: relative;
......
......@@ -83,10 +83,12 @@
<!--分页-->
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
......@@ -222,6 +224,12 @@
query: { creditNo }
})
},
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -147,10 +147,12 @@
<!--分页-->
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
......@@ -316,6 +318,12 @@
window.open(routeUrl.href, '_blank')
},
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -150,10 +150,12 @@
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
......@@ -309,6 +311,12 @@
}
})
},
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -127,10 +127,12 @@
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
</div>
......@@ -259,6 +261,13 @@
}
})
},
// 分页显示条数变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
// 下一页,上一页
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -138,10 +138,12 @@
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
</div>
......@@ -269,6 +271,12 @@
}
})
},
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -238,6 +238,7 @@
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
async fetchData() {
......
......@@ -109,10 +109,12 @@
<el-pagination
:current-page='queryForm.current'
layout='total, prev, pager, next'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
......@@ -265,6 +267,12 @@
}
})
},
// 页码变更
handleSizeChange(val) {
this.queryForm.size = val
this.queryForm.current = 1
this.fetchData()
},
handleCurrentChange(val) {
this.queryForm.current = val
this.fetchData()
......
......@@ -26,8 +26,8 @@
v-for='(item,index) in searchData.financierResponseList'
:key='index'
:value='item.capitalCodeLoanSign'
@click.native='handleCapitalChange(item)'
:label='item.message'>
:label='item.message'
@click.native='handleCapitalChange(item)'>
</el-option>
</el-select>
</el-form-item>
......@@ -126,10 +126,10 @@
:current-page='queryForm.current'
layout='total,sizes, prev, pager, next'
:page-sizes='[10,20,30,40,50,100]'
@size-change='handleSizeChange'
:page-size='queryForm.size'
:total='total'
background
@size-change='handleSizeChange'
@current-change='handleCurrentChange'
/>
......@@ -139,9 +139,9 @@
<check
:title='DialogTitle'
:visible='DialogVisible'
:item='item'
@handleClose='DialogVisible = false'
@callback='fetchData'
:item='item' />
@callback='fetchData' />
</template>
......@@ -345,6 +345,7 @@
},
// 页码变更
handleSizeChange(val) {
this.queryForm.current = 1
this.queryForm.size = val
this.fetchData()
},
......
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