魏熙美 6 lat temu
rodzic
commit
2036583048
18 zmienionych plików z 288 dodań i 33 usunięć
  1. 4
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  2. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml
  3. BIN
      CODE/smart-community/community-common/target/community-common-0.0.1.jar
  4. 4
    0
      CODE/smart-community/community-common/target/maven-archiver/pom.properties
  5. 32
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  6. 29
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  7. 19
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java
  8. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/UserVerifyController.java
  9. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaFaceMapper.java
  10. 63
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaFace.java
  11. 6
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBuildingOwnerInfo.java
  12. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITaFaceService.java
  13. 4
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java
  14. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaFaceServiceImpl.java
  15. 1
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml
  16. 4
    9
      VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js
  17. 66
    16
      VUECODE/smart-property-manage/src/views/building/edi/index.vue
  18. 1
    1
      VUECODE/smart-property-manage/src/views/building/index.vue

+ 4
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java Wyświetl plik

@@ -871,9 +871,6 @@ public class TaUserServiceImpl implements ITaUserService {
871 871
 
872 872
         BeanTools.copyProperties(user, userVO);
873 873
 
874
-        // 房产状态
875
-        userVO.setVerifyStatus(user.getVerifyStatus());
876
-
877 874
         // 默认未绑定微信
878 875
         userVO.setBindingWX(Constant.NO_BINDING_WX);
879 876
 
@@ -889,6 +886,10 @@ public class TaUserServiceImpl implements ITaUserService {
889 886
 
890 887
         // 根据 审核id 查询 出审核的数据,里面有角色id
891 888
         TaUserVerify userVerify = taUserVerifyMapper.selectByPrimaryKey(user.getUserVerifyId());
889
+
890
+        // 房产状态
891
+        userVO.setVerifyStatus(userVerify.getVerifyStatus());
892
+
892 893
         userVO.setAddressBuilding(userVerify.getPhaseName() + userVerify.getBuildingName() + userVerify.getUnitName() + userVerify.getLevelName() + userVerify.getRoomNoName());
893 894
 
894 895
         // 角色

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml Wyświetl plik

@@ -161,7 +161,7 @@
161 161
         #{verifyName,jdbcType=VARCHAR},
162 162
       </if>
163 163
       <if test="remark != null">
164
-        #{remark,,jdbcType=VARCHAR},
164
+        #{remark,jdbcType=VARCHAR},
165 165
       </if>
166 166
     </trim>
167 167
   </insert>
@@ -217,7 +217,7 @@
217 217
         verify_name = #{verifyName,jdbcType=VARCHAR},
218 218
       </if>
219 219
       <if test="remark != null">
220
-        remark = #{remark,,jdbcType=VARCHAR}
220
+        remark = #{remark,jdbcType=VARCHAR}
221 221
       </if>
222 222
     </set>
223 223
     where id = #{id,jdbcType=INTEGER}

BIN
CODE/smart-community/community-common/target/community-common-0.0.1.jar Wyświetl plik


+ 4
- 0
CODE/smart-community/community-common/target/maven-archiver/pom.properties Wyświetl plik

@@ -0,0 +1,4 @@
1
+#Created by Apache Maven 3.3.9
2
+version=0.0.1
3
+groupId=com.community
4
+artifactId=community-common

+ 32
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst Wyświetl plik

@@ -0,0 +1,32 @@
1
+com\community\commom\redis\RedisTemplate.class
2
+com\community\commom\redis\RedisConfiguration.class
3
+com\community\commom\utils\OssUtil.class
4
+com\community\commom\redis\SingleRedisTemplate.class
5
+com\community\commom\utils\EnumUtils.class
6
+com\community\commom\hk\HttpClientSSLUtils$2.class
7
+com\community\commom\redis\RedisJsonSerializer.class
8
+com\community\commom\uuid\IdGen.class
9
+com\community\commom\utils\BeanTools.class
10
+com\community\commom\hk\HttpClientSSLUtils.class
11
+com\community\commom\session\UserElement.class
12
+com\community\commom\utils\CommonUtils.class
13
+com\community\commom\redis\RedisSerializer.class
14
+com\community\commom\utils\StringConverter.class
15
+com\community\commom\mode\ResponseBean.class
16
+com\community\commom\utils\DESUtils.class
17
+com\community\commom\redis\FastJsonSerializer.class
18
+com\community\commom\utils\DateUtils.class
19
+com\community\commom\utils\HttpClientUtils.class
20
+com\community\commom\constant\Constant.class
21
+com\community\commom\utils\CookieUtil.class
22
+com\community\commom\mode\HkResponseBean.class
23
+com\community\commom\ailiyun\AESDecode.class
24
+com\community\commom\uuid\IdGen$IdGenHolder.class
25
+com\community\commom\utils\PayPriceUtils.class
26
+com\community\commom\hk\HttpClientSSLUtils$1.class
27
+com\community\commom\utils\MD5Utils.class
28
+com\community\commom\redis\RedisObjectSerializer.class
29
+com\community\commom\utils\QRCodeGeneratorUtils.class
30
+com\community\commom\redis\SerializationFailedException.class
31
+com\community\commom\hk\Digests.class
32
+com\community\commom\utils\AccountValidatorUtil.class

+ 29
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst Wyświetl plik

@@ -0,0 +1,29 @@
1
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisJsonSerializer.java
2
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\ailiyun\AESDecode.java
3
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\HttpClientSSLUtils.java
4
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\PayPriceUtils.java
5
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DateUtils.java
6
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\HttpClientUtils.java
7
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DESUtils.java
8
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisSerializer.java
9
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\BeanTools.java
10
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\OssUtil.java
11
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisObjectSerializer.java
12
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\EnumUtils.java
13
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisTemplate.java
14
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\HkResponseBean.java
15
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SerializationFailedException.java
16
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CommonUtils.java
17
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\MD5Utils.java
18
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\session\UserElement.java
19
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SingleRedisTemplate.java
20
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\Digests.java
21
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\QRCodeGeneratorUtils.java
22
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisConfiguration.java
23
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\AccountValidatorUtil.java
24
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\uuid\IdGen.java
25
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\ResponseBean.java
26
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\StringConverter.java
27
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\FastJsonSerializer.java
28
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\constant\Constant.java
29
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CookieUtil.java

+ 19
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java Wyświetl plik

@@ -5,10 +5,12 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5 5
 import com.community.commom.mode.ResponseBean;
6 6
 import com.community.commom.session.UserElement;
7 7
 import com.community.huiju.common.base.BaseController;
8
+import com.community.huiju.model.TaFace;
8 9
 import com.community.huiju.model.TaUser;
9 10
 import com.community.huiju.model.TaUserVerify;
10 11
 import com.community.huiju.model.TpBuildingOwnerInfo;
11 12
 import com.community.huiju.service.IBuildingOwnerInfoService;
13
+import com.community.huiju.service.ITaFaceService;
12 14
 import com.community.huiju.service.ITaUserService;
13 15
 import com.community.huiju.service.ITaUserVerifyService;
14 16
 import com.google.common.collect.Maps;
@@ -53,6 +55,9 @@ public class BuildingOwnerInfoController extends BaseController {
53 55
     @Autowired
54 56
     private ITaUserService iTaUserService;
55 57
 
58
+    @Autowired
59
+    private ITaFaceService iTaFaceService;
60
+
56 61
     @ApiOperation(value = "获取楼栋业主信息", notes = "根据条件获取")
57 62
     @ApiImplicitParams({
58 63
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter",value = "buildingId栋;" +
@@ -89,18 +94,31 @@ public class BuildingOwnerInfoController extends BaseController {
89 94
         // true 标识业主 false 非业主
90 95
         map.put("boolRole", false);
91 96
 
97
+        // 默认人脸未录入
98
+        map.put("face", "unregister");
99
+
92 100
         QueryWrapper<TaUserVerify> userVerifyQueryWrapper = new QueryWrapper<>();
93 101
         userVerifyQueryWrapper.eq("phase_id", userVerify.getPhaseId());
94 102
         userVerifyQueryWrapper.eq("building_id", userVerify.getBuildingId());
95 103
         userVerifyQueryWrapper.eq("unit_id", userVerify.getUnitId());
96 104
         userVerifyQueryWrapper.eq("level_id", userVerify.getLevelId());
97 105
         userVerifyQueryWrapper.eq("room_no_id", userVerify.getRoomNoId());
106
+        userVerifyQueryWrapper.eq("user_id", userVerify.getUserId());
98 107
         userVerifyQueryWrapper.eq("role_id", 1);
99 108
         TaUserVerify userVerifyOne = iTaUserVerifyService.getOne(userVerifyQueryWrapper);
100
-        if (null == userVerifyOne) {
109
+        if (null != userVerifyOne) {
101 110
             map.put("boolRole", true);
102 111
         }
103 112
 
113
+        // 人脸是否录入
114
+        QueryWrapper<TaFace> faceQueryWrapper = new QueryWrapper<>();
115
+        faceQueryWrapper.eq("ta_user_verify_id", userVerify.getId());
116
+        TaFace face = iTaFaceService.getOne(faceQueryWrapper);
117
+        if (null != face) {
118
+            map.put("face", "register");
119
+        }
120
+
121
+
104 122
         responseBean.addSuccess(map);
105 123
         return responseBean;
106 124
 

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/UserVerifyController.java Wyświetl plik

@@ -146,7 +146,7 @@ public class UserVerifyController extends BaseController {
146 146
         userVerifyQueryWrapper.eq("role_id", 1);
147 147
         userVerifyQueryWrapper.eq("verify_status", 1);
148 148
         TaUserVerify userVerify = iTaUserVerifyService.getOne(userVerifyQueryWrapper);
149
-        if (null == userVerify) {
149
+        if (null != userVerify) {
150 150
             map.put("boolRole", true);
151 151
         }
152 152
         return map;

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaFaceMapper.java Wyświetl plik

@@ -0,0 +1,16 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaFace;
5
+
6
+/**
7
+ * <p>
8
+ * 人脸检测图片 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-04-11
13
+ */
14
+public interface TaFaceMapper extends BaseMapper<TaFace> {
15
+
16
+}

+ 63
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaFace.java Wyświetl plik

@@ -0,0 +1,63 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.io.Serializable;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * 人脸检测图片
14
+ * </p>
15
+ *
16
+ * @author jobob
17
+ * @since 2019-04-11
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@TableName("ta_face")
23
+public class TaFace implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 小区id
29
+     */
30
+    private Integer communityId;
31
+
32
+    /**
33
+     * 用户审核表id
34
+     */
35
+    private Integer taUserVerifyId;
36
+
37
+    /**
38
+     * 上传的图片
39
+     */
40
+    private String faceImg;
41
+
42
+    /**
43
+     * 创建人
44
+     */
45
+    private Integer createUser;
46
+
47
+    /**
48
+     * 创建时间
49
+     */
50
+    private LocalDateTime createDate;
51
+
52
+    /**
53
+     * 更新人
54
+     */
55
+    private Integer updateUser;
56
+
57
+    /**
58
+     * 更新时间
59
+     */
60
+    private LocalDateTime updateDate;
61
+
62
+
63
+}

+ 6
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBuildingOwnerInfo.java Wyświetl plik

@@ -149,4 +149,10 @@ public class TpBuildingOwnerInfo implements Serializable {
149 149
      */
150 150
     @TableField(exist = false)
151 151
     private String updateName;
152
+
153
+    /**
154
+     * 审核id
155
+     */
156
+    @TableField(exist = false)
157
+    private Integer userVerifyId;
152 158
 }

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITaFaceService.java Wyświetl plik

@@ -0,0 +1,16 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.huiju.model.TaFace;
5
+
6
+/**
7
+ * <p>
8
+ * 人脸检测图片 服务类
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-04-11
13
+ */
14
+public interface ITaFaceService extends IService<TaFace> {
15
+
16
+}

+ 4
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java Wyświetl plik

@@ -150,6 +150,10 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
150 150
             responseBean.addError("审核不存在!");
151 151
             return responseBean;
152 152
         }
153
+        if (!"0".equals(userVerify.getVerifyStatus())) {
154
+            responseBean.addError("只能审核待审核状态!");
155
+            return responseBean;
156
+        }
153 157
 
154 158
         // 判断当前是否存在审核通过的业主
155 159
         // 根据 小区id 、 小区、期、栋、单元、楼层、户号 进行条件查询出 已审核通过的并且是业主

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaFaceServiceImpl.java Wyświetl plik

@@ -0,0 +1,20 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.huiju.dao.TaFaceMapper;
5
+import com.community.huiju.model.TaFace;
6
+import com.community.huiju.service.ITaFaceService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 人脸检测图片 服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-04-11
16
+ */
17
+@Service
18
+public class TaFaceServiceImpl extends ServiceImpl<TaFaceMapper, TaFace> implements ITaFaceService {
19
+
20
+}

+ 1
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpBuildingOwnerInfoMapper.xml Wyświetl plik

@@ -61,6 +61,7 @@
61 61
     <select id="selectListByParams" resultType="com.community.huiju.model.TpBuildingOwnerInfo">
62 62
         SELECT
63 63
             t.id,
64
+            u.id as userVerifyId,
64 65
             t.community_id as communityId,
65 66
             t.owner_tel as ownerTel,
66 67
             t.owner_name as ownerName,

+ 4
- 9
VUECODE/smart-property-manage/src/api/buildingOwnerInfo.js Wyświetl plik

@@ -125,14 +125,9 @@ export function updateBuilding(data) {
125 125
     url: '/building/update',
126 126
     method: 'put',
127 127
     data: {
128
-      id: data.id,
129
-      phase: data.phase,
130
-      building: data.building,
131
-      unit: data.unit,
132
-      level: data.level,
133
-      roomNo: data.roomNo,
134
-      ownerName: data.ownerName,
135
-      ownerTel: data.ownerTel
128
+      userVerifyId: data.userVerifyId,
129
+      roleId: data.roleId,
130
+      verifyStatus: data.verifyStatus
136 131
     }
137 132
   })
138 133
 }
@@ -140,7 +135,7 @@ export function updateBuilding(data) {
140 135
 // 根据楼栋信息 id 查询
141 136
 export function getByIdBuildingId(buildingId) {
142 137
   return request({
143
-    url: '/building/' + buildingId,
138
+    url: '/building/verify/' + buildingId,
144 139
     method: 'get'
145 140
   })
146 141
 }

+ 66
- 16
VUECODE/smart-property-manage/src/views/building/edi/index.vue Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   <div class="root">
3 3
     <el-form ref="ruleForm" :model="listQuery" :rules="rules" label-width="100px" class="add-ruleForm">
4 4
       <el-form-item label="手机号" prop="ownerTel" placeholder="手机号">
5
-        <span>{{ listQuery.ownerTel }}</span>
5
+        <span>{{ ownerTel }}</span>
6 6
       </el-form-item>
7 7
       <el-form-item label="身份" prop="roleId">
8 8
         <el-select v-model="listQuery.roleId" placeholder="身份">
@@ -12,8 +12,8 @@
12 12
         </el-select>
13 13
       </el-form-item>
14 14
       <el-form-item label="审核">
15
-        <el-radio v-model="listQuery.gender" label="1">通过</el-radio>
16
-        <el-radio v-model="listQuery.gender" label="2">不通过</el-radio>
15
+        <el-radio v-model="listQuery.verifyStatus" label="true">通过</el-radio>
16
+        <el-radio v-model="listQuery.verifyStatus" label="false">不通过</el-radio>
17 17
       </el-form-item>
18 18
       <div>
19 19
         <el-form-item label="注册状态:" >
@@ -30,7 +30,7 @@
30 30
         </el-form-item>
31 31
       </div>
32 32
       <el-form-item>
33
-        <el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button>
33
+        <el-button type="primary" @click="submitForm('ruleForm')">确定</el-button>
34 34
         <el-button @click="resetForm('ruleForm')">重置</el-button>
35 35
       </el-form-item>
36 36
     </el-form>
@@ -42,7 +42,8 @@ export default {
42 42
   data() {
43 43
     return {
44 44
       listQuery: {
45
-        ownerTel: '',
45
+        userVerifyId: '',
46
+        verifyStatus: '',
46 47
         roleId: ''
47 48
       },
48 49
       isRegistered: true, // true 未注册 false 注册
@@ -83,27 +84,76 @@ export default {
83 84
     }
84 85
   },
85 86
   mounted() {
86
-    this.query.id
87
+    this.listQuery.userVerifyId = this.$route.query.id
88
+    this.getByBuildId()
87 89
   },
88 90
   methods: {
89 91
     submitForm(formName) { // 提交
90
-      this.$refs[formName].validate((valid) => {
91
-        if (valid) {
92
-          this.addBuilding()
93
-        } else {
94
-          console.log('error submit!!')
95
-          return false
96
-        }
97
-      })
92
+      this.updateBuilding()
98 93
     },
99 94
     resetForm(formName) { // 重置
100
-      // 重置为未注册
101
-      this.isRegistered = true
102 95
       // 重置为非业主
103 96
       this.roleDisabled = false
104 97
 
105 98
       console.log(this.isRegistered)
106 99
       this.$refs[formName].resetFields()
100
+    },
101
+    getByBuildId() {
102
+      this.$store.dispatch('GetByIdBuildingId', this.listQuery.userVerifyId).then((res) => {
103
+        const resCode = res.code
104
+        if (resCode === '1') {
105
+          this.$message.error(res.message)
106
+          return
107
+        }
108
+
109
+        const resData = res.data
110
+        // 显示数据
111
+        const resInfo = resData.info
112
+        this.userName = resInfo.userName
113
+        this.idCard = resInfo.idCard
114
+        this.gender = resInfo.gender === '1' ? '男' : '女'
115
+        this.ownerTel = resInfo.loginName
116
+
117
+        if (resData.boolRole === true) {
118
+          // 表示已经是业主
119
+          this.roleDisabled = true
120
+        }
121
+      }).catch(() => {
122
+        console.log('GetByIdBuildingId error')
123
+      })
124
+    },
125
+    updateBuilding() { // 审核用户
126
+      if (this.listQuery.roleId === '') {
127
+        this.$message.error('请选择审身份!')
128
+        return
129
+      }
130
+      if (this.listQuery.verifyStatus === '') {
131
+        this.$message.error('请选择审核项!')
132
+        return
133
+      }
134
+      this.$store.dispatch('UpdateBuilding', this.listQuery).then((res) => {
135
+        const resCode = res.code
136
+        if (resCode === '1') {
137
+          this.$message.error(res.message)
138
+          return
139
+        }
140
+        this.$message.success(res.message)
141
+        this.$router.go(-1)
142
+      }).catch(() => {
143
+        console.log('UpdateBuilding error')
144
+      })
145
+    },
146
+    taUserHasOwner() { // 根据 期/栋/单元/楼层/户号 校验是否有业主
147
+      this.$store.dispatch('TaUserHasOwner', this.listQuery).then((res) => {
148
+        this.roleDisabled = false
149
+        const resData = res.data
150
+        if (resData.boolRole === true) {
151
+          // 表示已经是业主
152
+          this.roleDisabled = true
153
+        }
154
+      }).catch(() => {
155
+        console.log('TaUserHasOwner error')
156
+      })
107 157
     }
108 158
   }
109 159
 }

+ 1
- 1
VUECODE/smart-property-manage/src/views/building/index.vue Wyświetl plik

@@ -196,7 +196,7 @@ export default {
196 196
       // 设置为 空
197 197
       this.deleteIds = []
198 198
       for (let i = 0; i < data.length; i++) {
199
-        this.deleteIds.push(data[i].id)
199
+        this.deleteIds.push(data[i].userVerifyId)
200 200
       }
201 201
     },
202 202
     getPhase() { // 获取期