|
@@ -2,45 +2,51 @@
|
2
|
2
|
<template>
|
3
|
3
|
<div class="root">
|
4
|
4
|
<el-form :inline="true" :model="listQuery" class="form-listQuery">
|
5
|
|
- <el-form-item label="手机号">
|
6
|
|
- <el-input placeholder="手机号" />
|
|
5
|
+ <el-form-item class="filter-item" label="手机号">
|
|
6
|
+ <el-input v-model="listQuery.ownerName" placeholder="手机号" />
|
7
|
7
|
</el-form-item>
|
8
|
|
- <el-form-item label="姓名">
|
9
|
|
- <el-input placeholder="姓名" />
|
|
8
|
+ <el-form-item class="filter-item" label="姓名" >
|
|
9
|
+ <el-input v-model="listQuery.ownerTel" placeholder="姓名" />
|
10
|
10
|
</el-form-item>
|
11
|
11
|
<el-form-item>
|
12
|
|
- <el-button type="info">清空</el-button>
|
13
|
|
- <el-button type="primary">查询</el-button>
|
|
12
|
+ <el-button type="info" class="filter-item" @click="handleFilter">清空</el-button>
|
|
13
|
+ <el-button type="primary" @click="dataQuery">查询</el-button>
|
14
|
14
|
</el-form-item>
|
15
|
15
|
</el-form>
|
16
|
16
|
<el-table
|
|
17
|
+ v-loading="listLoading"
|
17
|
18
|
ref="multipleTable"
|
18
|
|
- :data="tableData3"
|
|
19
|
+ :data="userPassCertification"
|
19
|
20
|
border
|
20
|
21
|
tooltip-effect="dark"
|
21
|
22
|
style="width: 100%; margin-top: 20px;"
|
22
|
23
|
@selection-change="handleSelectionChange">
|
23
|
24
|
<el-table-column
|
24
|
25
|
label="选择"
|
25
|
|
- type="index"
|
|
26
|
+ type="index"
|
26
|
27
|
width="70"/>
|
27
|
|
- <el-table-column prop="name" label="姓名" width="180" />
|
28
|
|
- <el-table-column prop="name" label="手机号" width="200" />
|
29
|
|
- <el-table-column prop="name" label="性别" width="120" />
|
30
|
|
- <el-table-column prop="name" label="身份证号" width="320" />
|
31
|
|
- <el-table-column prop="name" label="所在户" width="180" />
|
32
|
|
- <el-table-column label="创建时间" width="250">
|
33
|
|
- <template slot-scope="scope">{{ scope.row.date }}</template>
|
|
28
|
+ <el-table-column prop="ownerName" label="姓名" width="180" />
|
|
29
|
+ <el-table-column prop="ownerTel" label="手机号" width="200" />
|
|
30
|
+ <el-table-column prop="gender" label="性别" width="120" />
|
|
31
|
+ <el-table-column prop="idCard" label="身份证号" width="320" />
|
|
32
|
+ <!-- <el-table-column prop="name" label="所在户" width="180" /> -->
|
|
33
|
+ <el-table-column label="所在户" width="250">
|
|
34
|
+ <template slot-scope="scope">{{ scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo }}</template>
|
|
35
|
+ </el-table-column>
|
|
36
|
+ <el-table-column prop="createDate" label="创建时间" width="180" />
|
|
37
|
+ <el-table-column label="认证状态" width="250">
|
|
38
|
+ <template slot-scope="scope">{{ scope.row.verifyStatus === '1' ? '已认证通过':'已停用' }}</template>
|
|
39
|
+ </el-table-column>
|
|
40
|
+ <el-table-column label="操作" width="250">
|
|
41
|
+ <template slot-scope="scope"><a><span @click="open3(scope.row.ownerTel, scope.row.verifyStatus)" style="text-decoration: underline; color: blue ">{{ scope.row.verifyStatus === '1' ? '停用':'启用' }}</span></a></template>
|
34
|
42
|
</el-table-column>
|
35
|
|
- <el-table-column prop="name" label="认证状态" width="120" />
|
36
|
|
- <el-table-column prop="address" label="操作" show-overflow-tooltip />
|
37
|
43
|
</el-table>
|
38
|
44
|
<div class="block">
|
39
|
45
|
<el-pagination
|
40
|
|
- :current-page="currentPage4"
|
41
|
|
- :page-sizes="[100, 200, 300, 400]"
|
42
|
|
- :page-size="100"
|
43
|
|
- :total="400"
|
|
46
|
+ :current-page="listQuery.pageNum"
|
|
47
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
48
|
+ :page-size="listQuery.pageSize"
|
|
49
|
+ :total="total"
|
44
|
50
|
layout="total, sizes, prev, pager, next, jumper"
|
45
|
51
|
@size-change="handleSizeChange"
|
46
|
52
|
@current-change="handleCurrentChange"/>
|
|
@@ -49,31 +55,118 @@
|
49
|
55
|
</template>
|
50
|
56
|
|
51
|
57
|
<script>
|
|
58
|
+import { mapActions } from 'vuex'
|
|
59
|
+
|
52
|
60
|
export default {
|
53
|
61
|
data() {
|
54
|
62
|
return {
|
55
|
|
- listQuery: {},
|
56
|
|
- tableData3: [{
|
57
|
|
- date: '2016-05-03',
|
58
|
|
- name: '王小虎',
|
59
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
60
|
|
- }, {
|
61
|
|
- date: '2016-05-02',
|
62
|
|
- name: '王小虎',
|
63
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
64
|
|
- }],
|
65
|
|
- currentPage4: 4
|
|
63
|
+ listQuery: {
|
|
64
|
+ building: '',
|
|
65
|
+ unit: '',
|
|
66
|
+ ownerTel: '',
|
|
67
|
+ idCard: '',
|
|
68
|
+ gender: '',
|
|
69
|
+ level: '',
|
|
70
|
+ roomNo: '',
|
|
71
|
+ ownerName: '',
|
|
72
|
+ createDate: '',
|
|
73
|
+ verifyStatus: '',
|
|
74
|
+ pageNum: 1,
|
|
75
|
+ pageSize: 10,
|
|
76
|
+ },
|
|
77
|
+ total: 0, // 数据总数
|
|
78
|
+ userPassCertification: [],
|
|
79
|
+ buildingList: [],
|
|
80
|
+ unitList: [],
|
|
81
|
+ levelList: [],
|
|
82
|
+ roomNoList: [],
|
|
83
|
+ listLoading: true // 加载圈
|
66
|
84
|
}
|
67
|
85
|
},
|
|
86
|
+ mounted() {
|
|
87
|
+ // 获取数据
|
|
88
|
+ this.dataQuery()
|
|
89
|
+ },
|
68
|
90
|
methods: {
|
|
91
|
+ ...mapActions('buildingOwnerInfo', [
|
|
92
|
+ 'BserPassCertification'
|
|
93
|
+ ]),
|
69
|
94
|
handleSizeChange(val) {
|
70
|
95
|
console.log(`每页 ${val} 条`)
|
|
96
|
+ this.pageNum = 1
|
|
97
|
+ this.listQuery.pageSize = val
|
|
98
|
+ this.dataQuery();
|
71
|
99
|
},
|
72
|
100
|
handleCurrentChange(val) {
|
73
|
101
|
console.log(`当前页: ${val}`)
|
|
102
|
+ this.listQuery.pageNum = val
|
|
103
|
+ this.dataQuery()
|
|
104
|
+
|
|
105
|
+ },
|
|
106
|
+ dataQuery() { // 查询数据
|
|
107
|
+ this.listLoading = true
|
|
108
|
+ this.$store.dispatch('UserPassCertification', this.listQuery).then((res) => {
|
|
109
|
+ const resData = res.data
|
|
110
|
+ this.userPassCertification = resData.list
|
|
111
|
+ this.listQuery.pageNum = resData.pageNum
|
|
112
|
+ this.listQuery.pageSize = resData.pageSize
|
|
113
|
+ this.total = resData.total
|
|
114
|
+ this.listLoading = false
|
|
115
|
+ }).catch(() => {
|
|
116
|
+ this.listLoading = false
|
|
117
|
+ console.log('error BuildingInfoList')
|
|
118
|
+ })
|
|
119
|
+ },
|
|
120
|
+ handleSelectionChange(data) {
|
|
121
|
+
|
74
|
122
|
},
|
75
|
|
- dialogBatchImport() {
|
76
|
|
- this.$router.push({ name: 'batch-import' })
|
|
123
|
+ handleFilter() {
|
|
124
|
+ this.listQuery.pageNum = 1
|
|
125
|
+ this.listQuery.pageSize = 10
|
|
126
|
+ this.listQuery.ownerName = ''
|
|
127
|
+ this.listQuery.ownerTel = ''
|
|
128
|
+ this.dataQuery()
|
|
129
|
+ },
|
|
130
|
+ newsDetail(){
|
|
131
|
+
|
|
132
|
+ },
|
|
133
|
+ open3(ownerTel, verifyStatus) {
|
|
134
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
135
|
+ confirmButtonText: '确定',
|
|
136
|
+ cancelButtonText: '取消',
|
|
137
|
+ type: 'warning'
|
|
138
|
+ }).then(() => {
|
|
139
|
+ this.$message({
|
|
140
|
+ type: 'success',
|
|
141
|
+ message: '启用成功!'
|
|
142
|
+ })
|
|
143
|
+ this.update(ownerTel, verifyStatus)
|
|
144
|
+ }).catch(() => {
|
|
145
|
+ this.$message({
|
|
146
|
+ type: 'info',
|
|
147
|
+ message: '已取消'
|
|
148
|
+ });
|
|
149
|
+ });
|
|
150
|
+ },
|
|
151
|
+ update(ownerTel, verifyStatus) { // 查询数据
|
|
152
|
+
|
|
153
|
+ this.listQuery.ownerTel = ownerTel
|
|
154
|
+ this.listQuery.verifyStatus = verifyStatus
|
|
155
|
+
|
|
156
|
+ console.log(this.listQuery.ownerTel, ' -- ', this.listQuery.verifyStatus)
|
|
157
|
+
|
|
158
|
+ this.listLoading = true
|
|
159
|
+ this.$store.dispatch('UpdataPassCertification', this.listQuery).then((res) => {
|
|
160
|
+ const resData = res.data
|
|
161
|
+ this.updataPassCertification = resData.list
|
|
162
|
+ this.listQuery.pageNum = resData.pageNum
|
|
163
|
+ this.listQuery.pageSize = resData.pageSize
|
|
164
|
+ this.total = resData.total
|
|
165
|
+ this.listLoading = false
|
|
166
|
+ }).catch(() => {
|
|
167
|
+ this.listLoading = false
|
|
168
|
+ console.log('error UpdataPassCertification')
|
|
169
|
+ })
|
77
|
170
|
}
|
78
|
171
|
}
|
79
|
172
|
}
|
|
@@ -98,6 +191,6 @@ export default {
|
98
|
191
|
display: flex;
|
99
|
192
|
justify-content: flex-end;
|
100
|
193
|
margin-top: 10px;
|
101
|
|
-}
|
|
194
|
+}
|
102
|
195
|
</style>
|
103
|
196
|
|