|
|
@@ -78,28 +78,26 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- reload(){
|
|
|
+ reload() {
|
|
|
this.mescroll.resetUpScroll()
|
|
|
},
|
|
|
/**
|
|
|
* 删除用户
|
|
|
*/
|
|
|
deleteUserById(id) {
|
|
|
- app.globalData.twoFailHint("确认删除该住户吗?", ()=>{
|
|
|
+ this.$dialog.showModal('确认删除该住户吗?').then(() => {
|
|
|
let params = {
|
|
|
user_id: id
|
|
|
};
|
|
|
- // let operation = 'user/deleteUserById';
|
|
|
- this.$http.deleteUserById(params).then(res =>{
|
|
|
+ this.$http.deleteUserById(params).then(res => {
|
|
|
if (res.data.result_code == 1) {
|
|
|
this.$u.toast(res.data.result_msg)
|
|
|
this.mescroll.resetUpScroll()
|
|
|
} else {
|
|
|
app.globalData.oneFailHint(res.data.result_msg);
|
|
|
}
|
|
|
-
|
|
|
- });
|
|
|
- });
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
/**
|
|
|
* @param {Object} mescroll 初始化组件
|
|
|
@@ -137,11 +135,11 @@
|
|
|
*/
|
|
|
getUserListByMemberId(mescroll) {
|
|
|
let params = {
|
|
|
- query:{
|
|
|
- current:mescroll.num,
|
|
|
- size:mescroll.size,
|
|
|
+ query: {
|
|
|
+ current: mescroll.num,
|
|
|
+ size: mescroll.size,
|
|
|
},
|
|
|
- "residentialId":uni.getStorageSync('residentialId'),
|
|
|
+ "residentialId": uni.getStorageSync('residentialId'),
|
|
|
};
|
|
|
if (!this.$isEmpty(this.roomId)) {
|
|
|
params.roomId = this.roomId
|
|
|
@@ -151,7 +149,7 @@
|
|
|
this.$http.getAllUserByMemberId(params).then(res => {
|
|
|
if (res.data.success) {
|
|
|
let data = res.data.data.records
|
|
|
- let total=res.data.data.total
|
|
|
+ let total = res.data.data.total
|
|
|
mescroll.endBySize(data.length, total);
|
|
|
if (mescroll.num == 1) this.userList = [];
|
|
|
this.userList = this.userList.concat(data); //追加新数据
|
|
|
@@ -173,14 +171,13 @@
|
|
|
"current": mescroll.num,
|
|
|
"size": mescroll.size,
|
|
|
"memberId": getApp().globalData.member.id,
|
|
|
- 'residentialId':uni.getStorageSync('residentialId')
|
|
|
}
|
|
|
try {
|
|
|
this.$http.getAllApplyUserByMemberId(params).then(res => {
|
|
|
console.log(res);
|
|
|
if (res.data.success) {
|
|
|
let data = res.data.data.records
|
|
|
- let total=res.data.data.total
|
|
|
+ let total = res.data.data.total
|
|
|
mescroll.endBySize(data.length, total);
|
|
|
if (mescroll.num == 1) this.applyList = [];
|
|
|
this.applyList = this.applyList.concat(data); //追加新数据
|
|
|
@@ -203,13 +200,13 @@
|
|
|
let params = {
|
|
|
"current": mescroll.num,
|
|
|
"size": mescroll.size,
|
|
|
- "memberId": getApp().globalData.member.id
|
|
|
+ "memberId": getApp().globalData.member.id
|
|
|
}
|
|
|
try {
|
|
|
- this.$http.getAuditListByMemberId(params).then(res =>{
|
|
|
+ this.$http.getAuditListByMemberId(params).then(res => {
|
|
|
if (res.data.success) {
|
|
|
let data = res.data.data.records
|
|
|
- let total=res.data.data.total
|
|
|
+ let total = res.data.data.total
|
|
|
mescroll.endBySize(data.length, total);
|
|
|
if (mescroll.num == 1) this.auditList = [];
|
|
|
this.auditList = this.auditList.concat(data); //追加新数据
|