|
@@ -213,11 +213,13 @@
|
|
|
<el-table-column label="昵称" align="center" prop="nickName" />
|
|
|
</el-table>
|
|
|
<br />
|
|
|
- <el-pagination small
|
|
|
+ <el-pagination small layout="prev, pager, next"
|
|
|
v-show="ftotal>0"
|
|
|
:page-size="friendsParams.pageSize"
|
|
|
:current-page="friendsParams.pageNum"
|
|
|
:total="ftotal"
|
|
|
+ @size-change="friendsSizeChange"
|
|
|
+ @current-change="friendsCurrentChange"
|
|
|
/>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="friendBack">返回</el-button>
|
|
@@ -233,11 +235,13 @@
|
|
|
<el-table-column label="创建地" align="center" prop="address" />
|
|
|
</el-table>
|
|
|
<br />
|
|
|
- <el-pagination small
|
|
|
+ <el-pagination small layout="prev, pager, next"
|
|
|
v-show="mtotal>0"
|
|
|
:page-size="familyParams.pageSize"
|
|
|
:current-page="familyParams.pageNum"
|
|
|
:total="mtotal"
|
|
|
+ @size-change="familySizeChange"
|
|
|
+ @current-change="familyCurrentChange"
|
|
|
/>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="familyBack">返回</el-button>
|
|
@@ -555,11 +559,22 @@ export default {
|
|
|
friendBack(){
|
|
|
this.friendsOpen = false;
|
|
|
},
|
|
|
+ friendsSizeChange: function(size) {
|
|
|
+ this.friendsParams.pageSize = size
|
|
|
+ this.getMyFriends();
|
|
|
+ },
|
|
|
+ friendsCurrentChange: function(currentPage) {
|
|
|
+ this.friendsParams.pageNum = currentPage
|
|
|
+ this.getMyFriends();
|
|
|
+ },
|
|
|
|
|
|
myFamily(row) {
|
|
|
this.familyOpen = true;
|
|
|
this.familyLoading = true;
|
|
|
- this.familyParams.userId = row.userId;
|
|
|
+ this.getMyFamilys(row.userId);
|
|
|
+ },
|
|
|
+ getMyFamilys(uid){
|
|
|
+ this.familyParams.userId = uid;
|
|
|
listFamilyByUid(this.familyParams).then(res => {
|
|
|
this.familyList = res.rows;
|
|
|
this.mtotal = res.total;
|
|
@@ -569,6 +584,18 @@ export default {
|
|
|
familyBack(){
|
|
|
this.familyOpen = false;
|
|
|
},
|
|
|
+ familySizeChange: function(size) {
|
|
|
+ this.familyParams.pageSize = size
|
|
|
+ var uid = this.familyParams.userId;
|
|
|
+ debugger
|
|
|
+ this.getMyFamilys(uid);
|
|
|
+ },
|
|
|
+ familyCurrentChange: function(currentPage) {
|
|
|
+ this.familyParams.pageNum = currentPage
|
|
|
+ var uid = this.familyParams.userId;
|
|
|
+ debugger
|
|
|
+ this.getMyFamilys(uid);
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|