Commit 0fba8cde authored by caimeng's avatar caimeng

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

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