dingxin 6 anni fa
parent
commit
2add322c84

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java Vedi File

@@ -151,7 +151,7 @@ public class BuildingOwnerInfoController extends BaseController {
151 151
 
152 152
     @ApiOperation(value = "获取已认证通过的用户信息",nickname ="获取已认证通过的用户信息")
153 153
     @ApiImplicitParams({
154
-            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="ownerName:姓名,ownerTel:手机号 ,current:每页显示多少条,pageSzie:当前页数")})
154
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="ownerName:姓名,ownerTel:手机号 ,current:每页显示多少条,current:每页显示多少条,pageSzie:当前页数")})
155 155
 
156 156
     @RequestMapping(value="/userPassCertification",method = RequestMethod.POST)
157 157
     public ResponseBean userPassCertification(@RequestBody String paramets){

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java Vedi File

@@ -24,9 +24,9 @@ public interface TpBuildingOwnerInfoMapper extends BaseMapper<TpBuildingOwnerInf
24 24
      * @param
25 25
      * @return
26 26
      */
27
-    IPage<TpBuildingOwnerInfo> selectUserApprove(Page page ,@Param("ownerName") String r , @Param("ownerTel") String ownerTel);
27
+    IPage<TpBuildingOwnerInfo> selectUserApprove(Page page ,@Param("ownerName") String r , @Param("ownerTel") String ownerTel, @Param("VerifyStatus") String VerifyStatus );
28 28
     
29 29
     int batchInsert(List<TpBuildingOwnerInfo> list);
30
-    
30
+
31 31
     int batchUpdate(List<TpBuildingOwnerInfo> list);
32 32
 }

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java Vedi File

@@ -567,7 +567,7 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
567 567
         page.setSize(pageSize == null ? 10 : pageSize);
568 568
         page.setCurrent(pageNum == null ? 1 : pageNum);
569 569
 
570
-        IPage<TpBuildingOwnerInfo> ownerInfoIPage = tpBuildingOwnerInfoMapper.selectUserApprove(page, tpBuildingOwnerInfo.getOwnerName(),tpBuildingOwnerInfo.getOwnerTel());
570
+        IPage<TpBuildingOwnerInfo> ownerInfoIPage = tpBuildingOwnerInfoMapper.selectUserApprove(page, tpBuildingOwnerInfo.getOwnerName(),tpBuildingOwnerInfo.getOwnerTel(),tpBuildingOwnerInfo.getVerifyStatus());
571 571
 
572 572
         Map<String, Object> map = Maps.newHashMap();
573 573
         map.put("list", ownerInfoIPage.getRecords());

+ 6
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml Vedi File

@@ -23,6 +23,12 @@
23 23
             <if test="ownerTel != null and ownerTel != ''" >
24 24
                 AND  owner_tel = #{ownerTel,jdbcType=VARCHAR}
25 25
             </if>
26
+            <if test="VerifyStatus == 1 and VerifyStatus != ''" >
27
+                AND  verify_status = #{VerifyStatus,jdbcType=VARCHAR}
28
+            </if>
29
+            <if test="VerifyStatus == 0 and VerifyStatus != ''" >
30
+                AND  verify_status = #{VerifyStatus,jdbcType=VARCHAR}
31
+            </if>
26 32
             and tp_building_owner_info.pair_status=1
27 33
         </where>
28 34
     </select>

+ 2
- 1
VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js Vedi File

@@ -40,7 +40,8 @@ export function userPassCertification(data) {
40 40
       ownerName: data.ownerName,
41 41
       ownerTel: data.ownerTel,
42 42
       pageNum: data.pageNum,
43
-      pageSize: data.pageSize
43
+      pageSize: data.pageSize,
44
+      verifyStatus: data.verifyStatus
44 45
     }
45 46
   })
46 47
 }

+ 38
- 14
VUECODE/smart-property-manage/src/views/owner/index.vue Vedi File

@@ -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) => {