a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
1
2
3
4
5
6
7
8
|
<template>
<div class="admin-auth-owner-container animated fadeInRight">
<el-row :gutter="20">
<el-col :span="3">
<select-admin-community @changeCommunity="handleCommunityChange" />
</el-col>
<el-col :span="21">
<el-card class="box-card">
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
9
|
<div slot="header" class="flex justify-between">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
10
11
12
|
<span>{{ $t('adminAuthOwner.search.title') }}</span>
</div>
<el-row :gutter="20">
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
13
14
15
16
17
|
<el-col :span="4">
<el-select v-model="searchForm.state" :placeholder="$t('adminAuthOwner.search.state')" clearable
class="filter-item">
<el-option v-for="item in statusOptions" :key="item.statusCd" :label="item.name"
:value="item.statusCd" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
18
19
|
</el-select>
</el-col>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
20
21
22
|
<el-col :span="4">
<el-input v-model="searchForm.appUserName" :placeholder="$t('adminAuthOwner.search.appUserName')"
clearable class="filter-item" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
23
|
</el-col>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
24
25
26
|
<el-col :span="4">
<el-input v-model="searchForm.idCard" :placeholder="$t('adminAuthOwner.search.idCard')" clearable
class="filter-item" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
27
|
</el-col>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
28
29
30
|
<el-col :span="4">
<el-input v-model="searchForm.link" :placeholder="$t('adminAuthOwner.search.link')" clearable
class="filter-item" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
31
|
</el-col>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
32
33
|
<el-col :span="4" >
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
34
35
36
37
38
39
40
41
42
43
44
|
<el-button type="primary" @click="handleSearch">
{{ $t('common.search') }}
</el-button>
<el-button @click="handleReset">
{{ $t('common.reset') }}
</el-button>
</el-col>
</el-row>
</el-card>
<el-card class="box-card" style="margin-top: 20px;">
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
45
|
<div slot="header" class="flex justify-between">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
46
47
|
<span>{{ $t('adminAuthOwner.list.title') }}</span>
</div>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
48
49
50
|
<el-table v-loading="loading" :data="tableData" border style="width: 100%">
<el-table-column prop="communityName" :label="$t('adminAuthOwner.table.communityName')" align="center" />
<el-table-column :label="$t('adminAuthOwner.table.appUserName')" align="center">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
51
52
53
54
55
|
<template slot-scope="scope">
<div>{{ scope.row.appUserName }}</div>
<div v-if="scope.row.ownerId">({{ scope.row.ownerId }})</div>
</template>
</el-table-column>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
56
57
|
<el-table-column prop="link" :label="$t('adminAuthOwner.table.link')" align="center" />
<el-table-column prop="roomName" :label="$t('adminAuthOwner.table.roomName')" align="center">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
58
59
60
61
|
<template slot-scope="scope">
{{ scope.row.roomName || '-' }}
</template>
</el-table-column>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
62
|
<el-table-column prop="ownerTypeCdName" :label="$t('adminAuthOwner.table.ownerTypeCdName')" align="center">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
63
64
65
66
|
<template slot-scope="scope">
{{ scope.row.ownerTypeCdName || '-' }}
</template>
</el-table-column>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
67
|
<el-table-column prop="idCard" :label="$t('adminAuthOwner.table.idCard')" align="center">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
68
69
70
71
|
<template slot-scope="scope">
{{ scope.row.idCard || '-' }}
</template>
</el-table-column>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
72
73
|
<el-table-column prop="stateName" :label="$t('adminAuthOwner.table.stateName')" align="center" />
<el-table-column prop="remark" :label="$t('adminAuthOwner.table.remark')" align="center">
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
74
75
76
77
|
<template slot-scope="scope">
{{ scope.row.remark || '-' }}
</template>
</el-table-column>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
78
79
|
<el-table-column prop="createTime" :label="$t('adminAuthOwner.table.createTime')" align="center" />
<el-table-column prop="appTypeName" :label="$t('adminAuthOwner.table.appTypeName')" align="center" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
80
|
</el-table>
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
81
82
83
|
<el-pagination :current-page="pagination.current" :page-sizes="[10, 20, 30, 50]" :page-size="pagination.size"
:total="pagination.total" layout="total, sizes, prev, pager, next, jumper" style="margin-top: 15px;"
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
import { listAdminAppUserOwners } from '@/api/owner/adminAuthOwnerApi'
import SelectAdminCommunity from '@/components/community/selectAdminCommunity'
export default {
name: 'AdminAuthOwnerList',
components: {
SelectAdminCommunity
},
data() {
return {
loading: false,
searchForm: {
appUserName: '',
idCard: '',
link: '',
state: '',
communityId: ''
},
statusOptions: [
{ name: this.$t('adminAuthOwner.status.all'), statusCd: '' },
{ name: this.$t('adminAuthOwner.status.pending'), statusCd: '10000' },
{ name: this.$t('adminAuthOwner.status.success'), statusCd: '12000' },
{ name: this.$t('adminAuthOwner.status.failed'), statusCd: '13000' }
],
tableData: [],
pagination: {
current: 1,
size: 10,
total: 0
}
}
},
created() {
this.getList()
},
methods: {
async getList() {
try {
this.loading = true
const params = {
...this.searchForm,
page: this.pagination.current,
row: this.pagination.size
}
const { data, total } = await listAdminAppUserOwners(params)
this.tableData = data
this.pagination.total = total
} catch (error) {
this.$message.error(this.$t('adminAuthOwner.fetchError'))
} finally {
this.loading = false
}
},
handleSearch() {
this.pagination.current = 1
this.getList()
},
handleReset() {
this.searchForm = {
appUserName: '',
idCard: '',
link: '',
state: '',
communityId: this.searchForm.communityId
}
this.handleSearch()
},
handleSizeChange(val) {
this.pagination.size = val
this.getList()
},
handleCurrentChange(val) {
this.pagination.current = val
this.getList()
},
handleCommunityChange(community) {
this.searchForm.communityId = community.communityId
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.admin-auth-owner-container {
padding: 20px;
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
177
|
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
178
179
180
|
.box-card {
margin-bottom: 20px;
}
|
0b8f34f9
wuxw
完成admin下的房屋详情页面,业...
|
181
|
|
a42b3256
wuxw
HC小区管理系统前段vue版正在开发中
|
182
183
184
185
186
|
.filter-item {
width: 100%;
}
}
</style>
|