c85e0853
wuxw
业主详情开发完成
|
17
18
19
20
21
22
23
24
25
26
27
28
29
|
@click="_openAuditAppUserBindingOwnerModel(scope.row)">
{{ $t('common.audit') }}
</el-button>
<el-button size="mini" @click="_deleteAppUserBindingOwnerModel(scope.row)">
{{ $t('ownerDetailAppUser.unbind') }}
</el-button>
<el-button size="mini" @click="_resetUserPwdModel(scope.row)">
{{ $t('ownerDetailAppUser.resetPwd') }}
</el-button>
</el-button-group>
</template>
</el-table-column>
</el-table>
|
0724714b
wuxw
优化业主详情页面
|
30
31
|
<el-pagination @current-change="handleCurrentChange" :current-page="pagination.currentPage"
:page-size="pagination.pageSize" :total="pagination.total" layout="total, prev, pager, next, jumper">
|
c85e0853
wuxw
业主详情开发完成
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<reset-staff-pwd ref="resetStaffPwd"></reset-staff-pwd>
</div>
</template>
<script>
import Audit from '@/components/staff/Audit'
import DeleteAppUserBindingOwner from './DeleteAppUserBindingOwner'
import ResetStaffPwd from '@/components/staff/resetStaffPwd'
import { listAuditAppUserBindingOwners, updateAppUserBindingOwner } from '@/api/owner/ownerDetailAppUserApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'OwnerDetailAppUser',
components: {
Audit,
DeleteAppUserBindingOwner,
ResetStaffPwd
},
data() {
return {
ownerDetailAppUserInfo: {
appUsers: [],
ownerId: '',
name: '',
currentAppUserId: ''
},
pagination: {
currentPage: 1,
pageSize: 10,
total: 0
}
}
},
methods: {
open(ownerId, ownerName, link) {
this.ownerDetailAppUserInfo.ownerId = ownerId
this.ownerDetailAppUserInfo.ownerName = ownerName
this.ownerDetailAppUserInfo.link = link
this._loadOwnerDetailAppUserData(1, this.pagination.pageSize)
},
_loadOwnerDetailAppUserData(page, row) {
const params = {
communityId: getCommunityId(),
memberId: this.ownerDetailAppUserInfo.ownerId,
name: this.ownerDetailAppUserInfo.name,
page: page,
row: row
}
listAuditAppUserBindingOwners(params).then(response => {
this.ownerDetailAppUserInfo.appUsers = response.data
this.pagination.total = response.records
}).catch(error => {
console.error('请求失败处理', error)
})
},
_openAuditAppUserBindingOwnerModel(auditAppUserBindingOwner) {
this.ownerDetailAppUserInfo.currentAppUserId = auditAppUserBindingOwner.appUserId
this.$refs.audit.open({})
},
_auditAppUserBindingOwner(auditInfo) {
auditInfo.communityId = getCommunityId()
auditInfo.appUserId = this.ownerDetailAppUserInfo.currentAppUserId
|
c85e0853
wuxw
业主详情开发完成
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
updateAppUserBindingOwner(auditInfo).then(() => {
this.$message.success(this.$t('common.processSuccess'))
this._loadOwnerDetailAppUserData(1, this.pagination.pageSize)
}).catch(error => {
this.$message.error(this.$t('common.processFailed') + error)
})
},
_deleteAppUserBindingOwnerModel(auditAppUserBindingOwner) {
this.$refs.deleteAppUserBindingOwner.open(auditAppUserBindingOwner)
},
_resetUserPwdModel(staff) {
this.$refs.resetStaffPwd.open(staff)
},
handleCurrentChange(val) {
this._loadOwnerDetailAppUserData(val, this.pagination.pageSize)
},
},
created() {
this.$on('switch', (data) => {
this.ownerDetailAppUserInfo.ownerId = data.ownerId
this._loadOwnerDetailAppUserData(1, this.pagination.pageSize)
})
}
}
</script>
|