Commit 38727fb7 authored by 程卓's avatar 程卓

修改住宅小区分页bug

parent 5e5d3efe
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
@selKeysNew ="selKeysNew" @selKeysNew ="selKeysNew"
/> />
<p style="textAlign:left;margin:-10px;marginLeft:10px;" v-if="$route.name == 'basicInfo'"> <p style="textAlign:left;margin:-10px;marginLeft:10px;" v-if="$route.name == 'basicInfo'">
小区总数: {{pagination.total != '' ? pagination.total+'个': '暂无数据'}},&nbsp;&nbsp;&nbsp; 小区总数: {{paginationshow.total != '' ? paginationshow.total+'个': '暂无数据'}},&nbsp;&nbsp;&nbsp;
房屋总面积: {{pagination.totStCnstArea != '0' ? pagination.totStCnstArea+'平方米': '暂无数据'}} ,&nbsp;&nbsp;&nbsp; 房屋总面积: {{paginationshow.totStCnstArea != '0' ? paginationshow.totStCnstArea+'平方米': '暂无数据'}} ,&nbsp;&nbsp;&nbsp;
总门牌数: {{pagination.totUnits != '0' ? pagination.totUnits+'幢': '暂无数据'}} ,&nbsp;&nbsp;&nbsp; 总门牌数: {{paginationshow.totUnits != '0' ? paginationshow.totUnits+'幢': '暂无数据'}} ,&nbsp;&nbsp;&nbsp;
总分户数: {{pagination.totHous != '0' ? pagination.totHous+'户': '暂无数据'}}&nbsp;&nbsp;&nbsp; 总分户数: {{paginationshow.totHous != '0' ? paginationshow.totHous+'户': '暂无数据'}}&nbsp;&nbsp;&nbsp;
</p> </p>
<a-table class="portalTable" <a-table class="portalTable"
size="small" size="small"
...@@ -68,6 +68,9 @@ export default { ...@@ -68,6 +68,9 @@ export default {
pagination: { pagination: {
type: Object type: Object
}, },
paginationshow: {
type: Object
},
tbl: { tbl: {
type: String type: String
}, },
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</a-form> </a-form>
<!-- <p class="gayLine noline" /> --> <!-- <p class="gayLine noline" /> -->
<div class="portalTableOperates"> <div class="portalTableOperates">
<tableAndMut ref="childTab" :tableData="tableData" :pagination="pagination" :tbl="tbl" /> <tableAndMut ref="childTab" :paginationshow="paginationshow" :tableData="tableData" :pagination="pagination" :tbl="tbl" />
</div> </div>
</div> </div>
<RouterWapper v-else></RouterWapper> <RouterWapper v-else></RouterWapper>
...@@ -353,6 +353,23 @@ export default { ...@@ -353,6 +353,23 @@ export default {
totUnits: '', // 总门牌数 幢 totUnits: '', // 总门牌数 幢
totHous: '', // 总分户数 户 totHous: '', // 总分户数 户
}, },
paginationshow: { // 分页信息
pageNo: 1,
pageSize: 20,
current: 1,
defaultCurrent: 1,
defaultPageSize: 20,
showQuickJumper: true,
onChange: this.pageChange,
showSizeChanger: true,
onShowSizeChange: this.showSizeChange,
pageSizeOptions: ['10', '20', '50', '100'],
total: 0, // 小区总数
showTotal: total => `总条数: ${total}`,
totStCnstArea: '', // 房屋总面积 平方米
totUnits: '', // 总门牌数 幢
totHous: '', // 总分户数 户
},
tableData: [], tableData: [],
stLevel: '', stLevel: '',
cspServiceType: '', cspServiceType: '',
...@@ -425,11 +442,12 @@ export default { ...@@ -425,11 +442,12 @@ export default {
url: this.$api.GET_XIAOQUTOTAL, url: this.$api.GET_XIAOQUTOTAL,
}).then(res => { }).then(res => {
if (res.code == '200') { if (res.code == '200') {
console.log(res)
const contentTotal = res.data.content const contentTotal = res.data.content
this.pagination.total= contentTotal.sectCount this.paginationshow.total= contentTotal.sectCount
this.pagination.totStCnstArea= contentTotal.stCnstArea this.paginationshow.totStCnstArea= contentTotal.stCnstArea
this.pagination.totUnits= contentTotal.totUnits this.paginationshow.totUnits= contentTotal.totUnits
this.pagination.totHous= contentTotal.totHous this.paginationshow.totHous= contentTotal.totHous
} }
}) })
}, },
...@@ -585,6 +603,7 @@ export default { ...@@ -585,6 +603,7 @@ export default {
}) })
}).then(res => { }).then(res => {
if (res.code == 200 ) { if (res.code == 200 ) {
/** /**
* 存导出的数据? 暂时废弃 * 存导出的数据? 暂时废弃
*/ */
...@@ -594,10 +613,15 @@ export default { ...@@ -594,10 +613,15 @@ export default {
// a = a+k+'='+ searchParams[k]+ '&' // a = a+k+'='+ searchParams[k]+ '&'
// } // }
// this.exportParams = a // this.exportParams = a
// 小区的展示统计量信息数据 // 小区的展示统计量信息数据
if(this.$store.state.userInfos.orgType == 2){ if(this.$store.state.userInfos.orgType == 2){
this.showCom = false this.showCom = false
} }
this.pagination.total= this.$com.confirm(res, 'data.totalRows', 0)
this.pagination.totStCnstArea= this.$com.confirm(res, 'data.totStCnstArea', 0)
this.pagination.totUnits= this.$com.confirm(res, 'data.totUnits', 0)
this.pagination.totHous= this.$com.confirm(res, 'data.totHous', 0)
this.tableData = this.$com.confirm(res, 'data.content', []) this.tableData = this.$com.confirm(res, 'data.content', [])
// 处理显示的字段 // 处理显示的字段
...@@ -844,6 +868,8 @@ export default { ...@@ -844,6 +868,8 @@ export default {
}, },
changeServiceType(val) { changeServiceType(val) {
this.cspServiceType = val this.cspServiceType = val
this.pagination.current = 1
this.pagination.pageNo = 1
this.getList() this.getList()
}, },
changeNeighbourType(val) { changeNeighbourType(val) {
......
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