|
@@ -8,6 +8,13 @@
|
8
|
8
|
<el-form-item class="filter-item" label="姓名" >
|
9
|
9
|
<el-input v-model="listQuery.ownerTel" placeholder="姓名" />
|
10
|
10
|
</el-form-item>
|
|
11
|
+ <el-form-item label="审核状态">
|
|
12
|
+ <el-select v-model="listQuery.verifyStatus" placeholder="请选择">
|
|
13
|
+ <el-option label="选择状态" value="5" />
|
|
14
|
+ <el-option label="已认证通过" value="1"/>
|
|
15
|
+ <el-option label="已停用" value="0"/>
|
|
16
|
+ </el-select>
|
|
17
|
+ </el-form-item>
|
11
|
18
|
<el-form-item>
|
12
|
19
|
<el-button type="info" class="filter-item" @click="handleFilter">清空</el-button>
|
13
|
20
|
<el-button type="primary" @click="dataQuery">查询</el-button>
|
|
@@ -21,25 +28,28 @@
|
21
|
28
|
tooltip-effect="dark"
|
22
|
29
|
style="width: 100%; margin-top: 20px;"
|
23
|
30
|
@selection-change="handleSelectionChange">
|
24
|
|
- <el-table-column
|
25
|
|
- label="选择"
|
26
|
|
- type="index"
|
27
|
|
- width="70"/>
|
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" />
|
|
31
|
+ <el-table-column prop="ownerName" label="姓名" width="250" align="center"/>
|
|
32
|
+ <el-table-column prop="ownerTel" label="手机号" width="300" align="center" />
|
|
33
|
+ <el-table-column prop="gender" label="性别" width="200" align="center">
|
|
34
|
+ <template slot-scope="scope">{{ scope.row.gender =='1' ? '男':'女' }}</template>
|
|
35
|
+ </el-table-column>
|
|
36
|
+ <el-table-column prop="idCard" label="身份证号" width="500" align="center" />
|
32
|
37
|
<!-- <el-table-column prop="name" label="所在户" width="180" /> -->
|
33
|
|
- <el-table-column label="所在户" width="250">
|
|
38
|
+ <el-table-column label="所在户" width="400" align="center">
|
34
|
39
|
<template slot-scope="scope">{{ scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo }}</template>
|
35
|
40
|
</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>
|
|
41
|
+ <!-- <el-table-column prop="createDate" label="创建时间" width="540" align="center" /> -->
|
|
42
|
+ <el-table-column label="录入时间" align="center">
|
|
43
|
+ <template slot-scope="scope">
|
|
44
|
+ <span>{{ formatDate(scope.row.createDate) }}</span>
|
|
45
|
+ </template>
|
39
|
46
|
</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>
|
|
47
|
+ <el-table-column label="认证状态" width="500" align="center">
|
|
48
|
+ <template slot-scope="scope">{{ scope.row.verifyStatus =='1' ? '已认证通过':'已停用' }}</template>
|
42
|
49
|
</el-table-column>
|
|
50
|
+ <!-- <el-table-column label="操作" width="250">
|
|
51
|
+ <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>
|
|
52
|
+ </el-table-column> -->
|
43
|
53
|
</el-table>
|
44
|
54
|
<div class="block">
|
45
|
55
|
<el-pagination
|
|
@@ -103,6 +113,20 @@ export default {
|
103
|
113
|
this.dataQuery()
|
104
|
114
|
|
105
|
115
|
},
|
|
116
|
+ padDate(value) {
|
|
117
|
+ value = value < 10 ? '0' + value : value
|
|
118
|
+ return value
|
|
119
|
+ },
|
|
120
|
+ formatDate(val) {
|
|
121
|
+ var value = new Date(val)
|
|
122
|
+ var year = value.getFullYear()
|
|
123
|
+ var month = this.padDate(value.getMonth() + 1)
|
|
124
|
+ var day = this.padDate(value.getDate())
|
|
125
|
+ var hour = this.padDate(value.getHours())
|
|
126
|
+ var minutes = this.padDate(value.getMinutes())
|
|
127
|
+ var seconds = this.padDate(value.getSeconds())
|
|
128
|
+ return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
|
|
129
|
+ },
|
106
|
130
|
dataQuery() { // 查询数据
|
107
|
131
|
this.listLoading = true
|
108
|
132
|
this.$store.dispatch('UserPassCertification', this.listQuery).then((res) => {
|