| | |
| | | </el-table> |
| | | |
| | | <div class="pages" ref="tablePagination"> |
| | | |
| | | <el-pagination background layout="prev, pager, next" :page-size="peoplePage.pageSize" |
| | | :page-count="peoplePage.count" :current-page="peoplePage.currentPage" |
| | | @current-change="handlePeopleCurrentChange"></el-pagination> |
| | | <el-pagination |
| | | background layout="prev, pager, next" |
| | | :page-size="peoplePage.pageSize" |
| | | :page-count="peoplePage.count" |
| | | :current-page="peoplePage.currentPage" |
| | | @current-change="handlePeopleCurrentChange" |
| | | ></el-pagination> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | |
| | | peopleVisible: false, |
| | | peopleInfoList:[], |
| | | peoplePage:{ |
| | | //页数 |
| | | count:0, |
| | | total:0, |
| | | pageSize:5, |
| | | currentPage:1 |
| | | }, |
| | |
| | | this.peopleTitle = name |
| | | this.peopleId = id |
| | | this.getPeopleInfoList() |
| | | this.peopleVisible = true |
| | | }, |
| | | |
| | | getPeopleInfoList(){ |
| | | getAreaPage(this.peoplePage.currentPage,this.peoplePage.pageSize,this.peopleId).then(res=>{ |
| | | if (res.data.code == 200){ |
| | | this.peopleInfoList = res.data.data.records |
| | | |
| | | this.peoplePage.count = res.data.total |
| | | let data = res.data.data |
| | | this.peopleInfoList = data.records |
| | | this.peoplePage.count = data.pages |
| | | this.peopleVisible = true |
| | | } |
| | | }) |
| | | }, |