Commit 4882a474 authored by qinj's avatar qinj

企查查分页查询

parent 19cea903
......@@ -325,10 +325,10 @@
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="page.TotalRecords>0"
:total="page.TotalRecords"
:page.sync="page.CurrentPage"
:limit.sync="page.PageSize"
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
</el-dialog>
......@@ -379,10 +379,8 @@ export default {
dialogTableVisible: false,
TotalRecords: 0,
page: {
TotalRecords: 0,
PageIndex: 0,
PageSize: 10,
CurrentPage:1
pageSize: 10,
currentPage:1
}
}
......@@ -400,12 +398,15 @@ export default {
},
methods: {
getList() {
this.page.TotalRecords=null
this.page.searchKey = this.formInline.Name
delete this.page.TotalRecords
this.page.pageIndex=0
this.$request(Qcc.searchUrl, this.page).then((resp) => {
if (resp.results.Result) {
this.tableData = resp.results.Result
this.page = resp.results.Paging
this.page.currentPage=this.page.PageIndex
this.TotalRecords=this.page.TotalRecords
} else {
this.$message.warning('无相关公司!')
}
......
......@@ -423,7 +423,7 @@
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
......@@ -489,8 +489,8 @@ export default {
dialogTableVisible: false,
TotalRecords: 0,
page: {
currentPage: 0,
pageSize: 0
pageSize: 10,
currentPage:1
}
}
......@@ -513,11 +513,14 @@ export default {
getList() {
this.page.searchKey = this.formInline.Name
delete this.page.TotalRecords
this.page.pageIndex=0
this.$request(Qcc.searchUrl, this.page).then((resp) => {
if(resp.results.Result){
this.tableData = resp.results.Result
this.page = resp.results.Paging
this.TotalRecords = resp.results.Paging.TotalRecords
this.page = resp.results.Paging
this.page.currentPage=this.page.PageIndex
this.TotalRecords=this.page.TotalRecords
}else{
this.$message.warning('无相关公司!')
}
......
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