dingxin před 6 roky
rodič
revize
9ad7376931
21 změnil soubory, kde provedl 2432 přidání a 1992 odebrání
  1. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/config/HttpSessionConfig.java
  2. 27
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java
  3. 5
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java
  4. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java
  5. 16
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java
  6. 48
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java
  7. 41
    42
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  8. 14
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml
  9. 2
    4
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpActivitySignUpMapper.java
  10. 1
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java
  11. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java
  12. 9
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignUpMapper.xml
  13. 1
    1
      VUECODE/smart-property-manage/src/api/activity.js
  14. 2
    2
      VUECODE/smart-property-manage/src/views/building/add/index.vue
  15. 1
    1
      VUECODE/smart-property-manage/src/views/building/batch/batchImport.vue
  16. 8
    4
      VUECODE/smart-property-manage/src/views/building/edi/index.vue
  17. 1
    1
      VUECODE/smart-property-manage/src/views/building/index.vue
  18. 4
    3
      VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue
  19. 13
    4
      VUECODE/smart-property-manage/src/views/social/signUp/index.vue
  20. 1112
    963
      文档/MYSQL/smartCommunity.pdb
  21. 1112
    963
      文档/MYSQL/smartCommunity.pdm

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/config/HttpSessionConfig.java Zobrazit soubor

@@ -11,7 +11,7 @@ import org.springframework.session.web.http.HttpSessionIdResolver;
11 11
  * @author weiximei
12 12
  */
13 13
 @Configuration
14
-@EnableJdbcHttpSession(maxInactiveIntervalInSeconds = MapSession.DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS*4)
14
+@EnableJdbcHttpSession(maxInactiveIntervalInSeconds = MapSession.DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS*48*7)
15 15
 public class HttpSessionConfig {
16 16
 
17 17
     @Bean

+ 27
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Zobrazit soubor

@@ -18,6 +18,7 @@ import org.springframework.web.multipart.MultipartFile;
18 18
 import javax.servlet.http.HttpSession;
19 19
 import java.io.IOException;
20 20
 import java.util.List;
21
+import java.util.Map;
21 22
 
22 23
 /**
23 24
  * @author weichaochao
@@ -304,6 +305,23 @@ public class SocialController extends BaseController {
304 305
         ResponseBean response = socialServiceI.addAllTransaction(userId, paramets);
305 306
         return response;
306 307
     }
308
+    
309
+    @ApiOperation(value = "举报二手交易帖子", notes = "举报二手交易帖子")
310
+    @ApiImplicitParams({
311
+            @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
312
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="transactionId:二手交易帖子id, reportReasonId:举报原因id"),
313
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
314
+    })
315
+    @RequestMapping(value = "/transaction/report/{communityId}", method = RequestMethod.POST)
316
+    @ResponseBody
317
+    public ResponseBean reportTransaction(@PathVariable("communityId") Integer communityId,@RequestBody String paramets, HttpSession session)throws IOException{
318
+        
319
+        ResponseBean responseBean = new ResponseBean();
320
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
321
+        Integer userId = userElement.getId();
322
+        ResponseBean response = socialServiceI.reportTransaction(userId, communityId,paramets);
323
+        return response;
324
+    }
307 325
 
308 326
     @ApiOperation(value = "获取我发布所有二手租赁帖子", notes = "获取我发布所有二手租赁帖子")
309 327
     @ApiImplicitParams({
@@ -374,4 +392,13 @@ public class SocialController extends BaseController {
374 392
         socialServiceI.accessTicket(communityId, tpTicket, ticketId, userId);
375 393
         return responseBean;
376 394
     }
395
+    
396
+    @ApiOperation(value = "获取举报原因列表", notes = "获取举报原因列表")
397
+    @RequestMapping(value = "/reports", method = RequestMethod.GET)
398
+    public ResponseBean getReportReasons() {
399
+        ResponseBean responseBean = new ResponseBean();
400
+        List<Map<String,Object>> reportList = socialServiceI.getReportReasons();
401
+        responseBean.addSuccess(reportList);
402
+        return responseBean;
403
+    }
377 404
 }

+ 5
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java Zobrazit soubor

@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;
8
+import java.util.Map;
8 9
 
9 10
 @Mapper
10 11
 public interface TpTransactionMapper {
@@ -27,4 +28,8 @@ public interface TpTransactionMapper {
27 28
     void updateTransaction(@Param("id")Integer id, @Param("transactionTitle")String transactionTitle, @Param("transactionContent")String transactionContent, @Param("userId")Integer userId);
28 29
 
29 30
     TpTransaction getById(@Param("id")Integer id);
31
+	
32
+	List<Map<String, Object>> getReportReasons();
33
+    
34
+    int saveReportReason(@Param("userId") Integer userId,@Param("communityId") Integer communityId,@Param("transactionId") Integer transactionId,@Param("reportReasonId") String reportReasonId);
30 35
 }

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java Zobrazit soubor

@@ -29,6 +29,11 @@ public class TpTransaction {
29 29
     private Date updateDate;
30 30
 
31 31
     private List<String> imgList;
32
+    
33
+    /**
34
+     * 是否被举报 1是被举报 0或null是没被举报
35
+     */
36
+    private String isReported;
32 37
 
33 38
     private  Integer roleId;
34 39
 
@@ -150,4 +155,12 @@ public class TpTransaction {
150 155
     public void setImgList(List<String> imgList) {
151 156
         this.imgList = imgList;
152 157
     }
158
+    
159
+    public String getIsReported() {
160
+        return isReported;
161
+    }
162
+    
163
+    public void setIsReported(String isReported) {
164
+        this.isReported = isReported;
165
+    }
153 166
 }

+ 16
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java Zobrazit soubor

@@ -5,6 +5,7 @@ import com.community.huiju.model.*;
5 5
 
6 6
 import java.io.IOException;
7 7
 import java.util.List;
8
+import java.util.Map;
8 9
 
9 10
 /**
10 11
  * @author weichaochao
@@ -151,4 +152,19 @@ public interface SocialServiceI {
151 152
 	 * @return
152 153
 	 */
153 154
 	ResponseBean deleteransaction(Integer id,Integer userid);
155
+	
156
+	/**
157
+	 * 获取举报原因列表
158
+	 * @return
159
+	 */
160
+	List<Map<String, Object>> getReportReasons();
161
+	
162
+	/**
163
+	 * 举报二手交易帖子
164
+	 * @param userId
165
+	 * @param communityId
166
+	 * @param paramets
167
+	 * @return
168
+	 */
169
+	ResponseBean reportTransaction(Integer userId,Integer communityId, String paramets);
154 170
 }

+ 48
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Zobrazit soubor

@@ -11,6 +11,7 @@ import com.github.pagehelper.Page;
11 11
 import com.github.pagehelper.PageHelper;
12 12
 import com.google.common.collect.Maps;
13 13
 import com.sun.org.apache.bcel.internal.generic.NEW;
14
+import io.swagger.models.auth.In;
14 15
 import org.springframework.beans.BeanUtils;
15 16
 import org.springframework.beans.factory.annotation.Autowired;
16 17
 import org.springframework.stereotype.Service;
@@ -26,6 +27,7 @@ import java.util.stream.Collectors;
26 27
  * @date 2018/10/23
27 28
  */
28 29
 @Service("SocialService")
30
+@Transactional
29 31
 public class SocialServiceImpl implements SocialServiceI {
30 32
 
31 33
     @Autowired
@@ -445,8 +447,52 @@ public class SocialServiceImpl implements SocialServiceI {
445 447
         }
446 448
         return responseBean;
447 449
         }
448
-
449
-
450
+    
451
+    /**
452
+     * 获取举报原因列表
453
+     *
454
+     * @return
455
+     */
456
+    @Override
457
+    public List<Map<String, Object>> getReportReasons() {
458
+        return tpTransactionMapper.getReportReasons();
459
+    }
460
+    
461
+    /**
462
+     * 举报二手交易帖子
463
+     *
464
+     * @param userId
465
+     * @param paramets
466
+     * @return
467
+     */
468
+    @Override
469
+    public ResponseBean reportTransaction(Integer userId, Integer communityId, String paramets) {
470
+        ResponseBean responseBean = new ResponseBean();
471
+        JSONObject jsonObject = JSONObject.parseObject(paramets);
472
+        Integer transactionId = jsonObject.getInteger("transactionId");
473
+        String reportReasonId = jsonObject.getString("reportReasonId");
474
+        //校验举报的帖子存不存在
475
+        TpTransaction tpTransaction = tpTransactionMapper.selectByPrimaryKey(transactionId,communityId);
476
+        if (null == tpTransaction){
477
+            responseBean.addError("举报的交易不存在");
478
+            return responseBean;
479
+        }
480
+        //插入举报表
481
+        tpTransactionMapper.saveReportReason(userId,communityId,transactionId,reportReasonId);
482
+        //更新交易表的举报状态为被举报
483
+        TpTransaction record = new TpTransaction();
484
+        record.setId(transactionId);
485
+        record.setIsReported("1");
486
+        Integer size = tpTransactionMapper.updateByPrimaryKeySelective(record);
487
+        if (size > 0){
488
+            responseBean.addSuccess(size);
489
+            return responseBean;
490
+        }
491
+        responseBean.addError("举报出错");
492
+        return responseBean;
493
+    }
494
+    
495
+    
450 496
     @Override
451 497
     public void accessTicket(Integer communityId, TpTicket tpTicket, String ticketId, Integer userId) {
452 498
         //修改工单内容和评分

+ 41
- 42
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java Zobrazit soubor

@@ -129,48 +129,27 @@ public class TaUserServiceImpl implements ITaUserService {
129 129
         Map<String,Object> map = Maps.newHashMap();
130 130
         map.put("loginName",loginName);
131 131
         TaUser currentUser = taUserMapper.selectByLoginName(map);
132
+        TaUserVO taUserVO = new TaUserVO();
132 133
         if (null != currentUser){
133 134
             if (!communityId.equals(currentUser.getCommunityId()+"")) {
134 135
                 response.addError("用户不在此小区!");
135 136
                 return response;
136 137
             }
137
-            TaUserVO taUserVO = new TaUserVO();
138
-            BeanUtils.copyProperties(currentUser,taUserVO);
139
-            // 角色
140
-            TaSysRole taSysRole = taSysRoleMapper.findRoleByUserId(currentUser.getId());
141
-            taUserVO.setRole(taSysRole.getRoleName());
142
-            // 人脸是否已录入
143
-            // taUserVO.setFace("register");
144
-            if ("1".equals(currentUser.getFaceStatus())) {
145
-                taUserVO.setFace("register");
146
-            } else {
147
-                taUserVO.setFace("unregister");
148
-            }
149 138
 
150
-            ToCommunities communities = toCommunitiesMapper.selectByPrimaryKey(currentUser.getCommunityId());
151
-            taUserVO.setCommunityName(communities.getCommunityName());
152
-            //查询当前人信息
153
-            if (null!=currentUser.getParentId() && !"".equals(currentUser.getParentId())) {
154
-                //查询当前人业主或租客的信息
155
-                TaUser proprietorUser = taUserMapper.selectByPrimaryKey(currentUser.getParentId());
156
-                taUserVO.setProprietorID(proprietorUser.getId());
157
-                taUserVO.setProprietorPhone(proprietorUser.getLoginName());
158
-                taUserVO.setProprietorName(proprietorUser.getUserName());
159
-            }
160 139
             response.addSuccess(taUserVO);
161
-            return response;
162 140
         }else {
163
-            TaUser user = new TaUser();
164
-            user.setLoginName(loginName);
165
-            user.setCommunityId(Integer.valueOf(communityId));
166
-            ResponseBean result = register(user);
141
+            currentUser = new TaUser();
142
+            currentUser.setLoginName(loginName);
143
+            currentUser.setCommunityId(Integer.valueOf(communityId));
144
+            ResponseBean result = register(currentUser);
145
+            taUserVO = (TaUserVO) result.getData();
146
+            response.addSuccess(taUserVO);
147
+        }
167 148
 
168
-            ToCommunities communities = toCommunitiesMapper.selectByPrimaryKey(user.getCommunityId());
169
-            TaUserVO taUserVO = (TaUserVO) result.getData();
170
-            taUserVO.setCommunityName(communities.getCommunityName());
149
+        // 获取住址位置
150
+        // 根据用户id, 获取 用户的住址, 人脸是否认证, 角色
151
+        userSetUp(currentUser, taUserVO);
171 152
 
172
-            response.addSuccess(result.getData());
173
-        }
174 153
 
175 154
         return response;
176 155
     }
@@ -831,11 +810,38 @@ public class TaUserServiceImpl implements ITaUserService {
831 810
         }
832 811
 
833 812
 
813
+        TaUserVO userVO = new TaUserVO();
814
+
815
+        // 根据用户id, 获取 用户的住址, 人脸是否认证, 角色
816
+        userSetUp(user, userVO);
817
+
818
+        response.addSuccess(userVO);
819
+
820
+        return response;
821
+    }
822
+
823
+    /**
824
+     * 根据用户id, 获取 用户的住址, 人脸是否认证, 角色
825
+     * @param user
826
+     * @param userVO
827
+     */
828
+    private TaUserVO userSetUp(TaUser user, TaUserVO userVO){
834 829
 
830
+        BeanTools.copyProperties(user,userVO);
835 831
         // 获取业主信息
836
-        TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectByPrimaryKey(user.getBuildingOwnerInfoId());
832
+        TpBuildingOwnerInfo tpBuildingOwnerInfo = null;
833
+        if ( null != user.getBuildingOwnerInfoId() && !"".equals(user.getBuildingOwnerInfoId())) {
834
+            // 获取业主信息
835
+            tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectByPrimaryKey(user.getBuildingOwnerInfoId());
836
+            userVO.setAddressBuilding(tpBuildingOwnerInfo.getPhase() + tpBuildingOwnerInfo.getBuilding()
837
+                    +tpBuildingOwnerInfo.getUnit()
838
+                    +tpBuildingOwnerInfo.getLevel()
839
+                    +tpBuildingOwnerInfo.getRoomNo());
840
+        }
841
+
842
+
837 843
         // 获取小区
838
-        ToCommunities toCommunities = toCommunitiesMapper.selectByPrimaryKey(tpBuildingOwnerInfo.getCommunityId());
844
+        ToCommunities toCommunities = toCommunitiesMapper.selectByPrimaryKey(user.getCommunityId());
839 845
 
840 846
         // 省
841 847
         SysNation province = sysNationMapper.selectByPrimaryKey(toCommunities.getProvinceId());
@@ -844,13 +850,7 @@ public class TaUserServiceImpl implements ITaUserService {
844 850
         // 区
845 851
         SysNation district = sysNationMapper.selectByPrimaryKey(toCommunities.getDistrictId());
846 852
 
847
-        TaUserVO userVO = new TaUserVO();
848
-        BeanUtils.copyProperties(user,userVO);
849 853
         userVO.setAddressProvince(province.getProvince()+""+city.getCity()+""+district.getDistrict());
850
-        userVO.setAddressBuilding(tpBuildingOwnerInfo.getPhase() + tpBuildingOwnerInfo.getBuilding()
851
-                +tpBuildingOwnerInfo.getUnit()
852
-                +tpBuildingOwnerInfo.getLevel()
853
-                +tpBuildingOwnerInfo.getRoomNo());
854 854
         userVO.setCommunityName(toCommunities.getCommunityName());
855 855
 
856 856
         // 角色
@@ -871,9 +871,8 @@ public class TaUserServiceImpl implements ITaUserService {
871 871
             userVO.setProprietorPhone(proprietorUser.getLoginName());
872 872
             userVO.setProprietorName(proprietorUser.getUserName());
873 873
         }
874
-        response.addSuccess(userVO);
875 874
 
876
-        return response;
875
+        return userVO;
877 876
     }
878 877
 
879 878
     @Override

+ 14
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml Zobrazit soubor

@@ -156,6 +156,9 @@ LEFT JOIN ta_sys_role sr ON sr.id = tsur.role_id
156 156
       <if test="viewCount != null" >
157 157
         view_count = #{viewCount,jdbcType=INTEGER},
158 158
       </if>
159
+      <if test="isReported != null and isReported !=''" >
160
+        is_reported = #{isReported,jdbcType=CHAR},
161
+      </if>
159 162
       <if test="status != null" >
160 163
         status = #{status,jdbcType=CHAR},
161 164
       </if>
@@ -238,4 +241,15 @@ LEFT JOIN ta_sys_role sr ON sr.id = tsur.role_id
238 241
     from tp_transaction
239 242
     where id = #{id,jdbcType=INTEGER} and status = 1
240 243
   </select>
244
+
245
+  <select id="getReportReasons" resultType="java.util.Map">
246
+    SELECT id,reason FROM sys_report_reason ORDER BY sort
247
+  </select>
248
+
249
+  <insert id="saveReportReason">
250
+    insert into tp_transaction_report (community_id, transaction_id,
251
+      report_reason_id, reporter_id)
252
+    values (#{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},
253
+      #{reportReasonId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER})
254
+  </insert>
241 255
 </mapper>

+ 2
- 4
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpActivitySignUpMapper.java Zobrazit soubor

@@ -4,9 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 4
 import com.baomidou.mybatisplus.core.metadata.IPage;
5 5
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6 6
 import com.community.huiju.model.TpActivitySignUp;
7
-import org.apache.ibatis.annotations.Mapper;
8
-import org.apache.ibatis.annotations.Param;
9
-import org.apache.ibatis.annotations.Select;
7
+import org.apache.ibatis.annotations.*;
10 8
 
11 9
 import java.util.List;
12 10
 
@@ -21,7 +19,7 @@ import java.util.List;
21 19
 @Mapper
22 20
 public interface TpActivitySignUpMapper extends BaseMapper<TpActivitySignUp> {
23 21
 
24
-    @Select("SELECT tas.* FROM tp_activity_sign_up tas LEFT JOIN ta_user tau on tas.ta_user_id = tau.id where tau.user_name like concat('%',#{userName,jdbcType=VARCHAR},'%') and tau.login_name LIKE concat('%',#{phone,jdbcType=VARCHAR},'%')")
22
+//    @Select("SELECT tas.* FROM tp_activity_sign_up tas LEFT JOIN ta_user tau on tas.ta_user_id = tau.id where tau.user_name like concat('%',#{userName,jdbcType=VARCHAR},'%') and tau.login_name LIKE concat('%',#{phone,jdbcType=VARCHAR},'%')")
25 23
     IPage<TpActivitySignUp> listQuery(Page page, @Param("userName") String userName, @Param("phone") String phone);
26 24
 
27 25
 }

+ 1
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java Zobrazit soubor

@@ -111,6 +111,7 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
111 111
         QueryWrapper<TpBuildingOwnerInfo> queryWrapper = new QueryWrapper<>();
112 112
         queryWrapper.allEq(map,false);
113 113
         queryWrapper.like(tpBuildingOwnerInfo.getOwnerName() != null,"owner_name", tpBuildingOwnerInfo.getOwnerName());
114
+        queryWrapper.orderByDesc("create_date");
114 115
 
115 116
         // 分页查询
116 117
         IPage<TpBuildingOwnerInfo> infoIPage = tpBuildingOwnerInfoMapper.selectPage(page, queryWrapper);

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java Zobrazit soubor

@@ -56,7 +56,7 @@ public class TpActivitySignUpServiceImpl extends ServiceImpl<TpActivitySignUpMap
56 56
         Integer pageNum = jsonObject.getInteger("pageNum");
57 57
         Integer pageSize = jsonObject.getInteger("pageSize");
58 58
         String userName = jsonObject.getString("userName");
59
-        String phone = jsonObject.getString("userName");
59
+        String phone = jsonObject.getString("phone");
60 60
 
61 61
         TpActivity tpActivity = tpActivityMapper.selectById(activityId);
62 62
         if (null == tpActivity) {

+ 9
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignUpMapper.xml Zobrazit soubor

@@ -2,4 +2,13 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.community.huiju.dao.TpActivitySignUpMapper">
4 4
 
5
+    <select id="listQuery" resultType="com.community.huiju.model.TpActivitySignUp">
6
+        SELECT
7
+        tas.*
8
+        FROM tp_activity_sign_up tas
9
+        LEFT JOIN ta_user tau on tas.ta_user_id = tau.id
10
+        where tau.user_name like concat('%',#{userName,jdbcType=VARCHAR},'%')
11
+        and tau.login_name LIKE concat('%',#{phone,jdbcType=VARCHAR},'%')
12
+    </select>
13
+
5 14
 </mapper>

+ 1
- 1
VUECODE/smart-property-manage/src/api/activity.js Zobrazit soubor

@@ -77,7 +77,7 @@ export function getSignUp(data) {
77 77
       id: data.id,
78 78
       userName: data.userName,
79 79
       phone: data.phone,
80
-      pageNum: data.userName,
80
+      pageNum: data.pageNum,
81 81
       pageSize: data.pageSize
82 82
     }
83 83
   })

+ 2
- 2
VUECODE/smart-property-manage/src/views/building/add/index.vue Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="root">
3 3
     <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="100px" class="add-ruleForm">
4
-      <el-form-item label="期" prop="phase">
4
+      <el-form-item label="期/区" prop="phase">
5 5
         <el-input v-model="ruleForm.phase"/>
6 6
       </el-form-item>
7 7
       <el-form-item label="栋" prop="building">
@@ -45,7 +45,7 @@ export default {
45 45
       },
46 46
       rules: {
47 47
         phase: [
48
-          { required: true, message: '请输入期', trigger: 'blur' }
48
+          { required: true, message: '请输入期/区', trigger: 'blur' }
49 49
         ],
50 50
         building: [
51 51
           { required: true, message: '请输入楼栋', trigger: 'blur' }

+ 1
- 1
VUECODE/smart-property-manage/src/views/building/batch/batchImport.vue Zobrazit soubor

@@ -4,7 +4,7 @@
4 4
     <el-form :inline="true" :model="listQuery" class="form-listQuery">
5 5
       <el-form-item>
6 6
         <el-upload :on-preview="handlePreview" :on-change="handleChange" :before-upload="beforeUpload" :limit="1" :on-exceed="handleExceed" class="upload-demo" action="" multiple>
7
-          <el-button style="margin-left: 10px;" size="large" type="primary"><a href="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/%E6%A5%BC%E6%A0%8B%E5%BA%93%E6%A8%A1%E6%9D%BF.xlsx?Expires=1548327771">下载模板</a></el-button>
7
+          <a href="http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/%E6%A5%BC%E6%A0%8B%E5%BA%93%E6%A8%A1%E6%9D%BF.xlsx?Expires=1548327771"><el-button style="margin-left: 10px;" size="large" type="primary">下载模板</el-button></a>
8 8
           <el-button slot="trigger" size="large" type="primary">选取文件并预览</el-button>
9 9
           <el-button style="margin-left: 10px;" size="large" type="success" @click="submitUpload">提交</el-button>
10 10
           <el-button style="margin-left: 10px;" size="large" type="success" @click="dialogBuildingIndex">取消</el-button>

+ 8
- 4
VUECODE/smart-property-manage/src/views/building/edi/index.vue Zobrazit soubor

@@ -4,6 +4,9 @@
4 4
       <el-form-item v-show="false" label="编号" >
5 5
         <el-input v-model="ruleForm.id" disabled/>
6 6
       </el-form-item>
7
+      <el-form-item label="期/区" prop="phase">
8
+        <el-input v-model="ruleForm.phase"/>
9
+      </el-form-item>
7 10
       <el-form-item label="栋" prop="building">
8 11
         <el-input v-model="ruleForm.building"/>
9 12
       </el-form-item>
@@ -48,7 +51,7 @@ export default {
48 51
       listQuery: [], // 查询的参数
49 52
       rules: {
50 53
         phase: [
51
-          { required: true, message: '请输入楼栋', trigger: 'blur' }
54
+          { required: true, message: '请输入期/区', trigger: 'blur' }
52 55
         ],
53 56
         building: [
54 57
           { required: true, message: '请输入楼栋', trigger: 'blur' }
@@ -74,7 +77,8 @@ export default {
74 77
   },
75 78
   mounted() {
76 79
     this.listQuery = this.$route.params.listQuery
77
-    this.getById(this.$route.params.id)
80
+    this.ruleForm.id = this.$route.params.id
81
+    this.getById()
78 82
   },
79 83
   methods: {
80 84
     submitForm(formName) { // 提交
@@ -115,8 +119,8 @@ export default {
115 119
         console.log('error AddBuilding')
116 120
       })
117 121
     },
118
-    getById(buildingId) { // 根据楼栋信息 id 查询楼栋信息
119
-      this.$store.dispatch('GetByIdBuildingId', buildingId).then((res) => {
122
+    getById() { // 根据楼栋信息 id 查询楼栋信息
123
+      this.$store.dispatch('GetByIdBuildingId', this.ruleForm.id).then((res) => {
120 124
         const data = res.data
121 125
         this.ruleForm.id = data.id
122 126
         this.ruleForm.phase = data.phase

+ 1
- 1
VUECODE/smart-property-manage/src/views/building/index.vue Zobrazit soubor

@@ -3,7 +3,7 @@
3 3
   <div class="root">
4 4
     <el-form :inline="true" :model="listQuery" class="form-listQuery">
5 5
       <el-form-item label="楼盘库">
6
-        <el-select v-model="listQuery.phase" placeholder="期" @change="buildSelectChange(0)">
6
+        <el-select v-model="listQuery.phase" placeholder="期/区" @change="buildSelectChange(0)">
7 7
           <!--<el-option label="选择楼栋" value="-1" />-->
8 8
           <el-option
9 9
             v-for="item in phaseList"

+ 4
- 3
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue Zobrazit soubor

@@ -105,7 +105,8 @@ export default {
105 105
     }
106 106
   },
107 107
   mounted() {
108
-    this.getById(this.$route.params.id)
108
+    this.ruleForm.id = this.$route.params.id
109
+    this.getById()
109 110
   },
110 111
   methods: {
111 112
     submitForm(formName) {
@@ -182,8 +183,8 @@ export default {
182 183
       this.ruleForm.sort = value
183 184
       console.log(value)
184 185
     },
185
-    getById(id) { // 根据ID获取活动信息
186
-      this.$store.dispatch('ActivityById', id).then((res) => {
186
+    getById() { // 根据ID获取活动信息
187
+      this.$store.dispatch('ActivityById', this.ruleForm.id).then((res) => {
187 188
         const resData = res.data
188 189
         this.imageUrl = resData.info.activityCarouselImg
189 190
         this.ruleForm = resData.info

+ 13
- 4
VUECODE/smart-property-manage/src/views/social/signUp/index.vue Zobrazit soubor

@@ -57,7 +57,7 @@
57 57
         prop="remark"
58 58
         label="报名备注"
59 59
         align="center">
60
-        <template slot-scope="scope">{{ scope.row.remark }}</template>
60
+        <template slot-scope="scope"><el-input :value="scope.row.remark" readonly @click="showDialog(scope.row.remark)" /></template>
61 61
       </el-table-column>
62 62
       <el-table-column
63 63
         prop="phone"
@@ -80,6 +80,9 @@
80 80
         @size-change="handleSizeChange"
81 81
         @current-change="handleCurrentChange"/>
82 82
     </div>
83
+    <el-dialog :visible.sync="dialogTableVisible" title="收货地址">
84
+      <div>{{ dialogContent }}</div>
85
+    </el-dialog>
83 86
   </div>
84 87
 </template>
85 88
 <script>
@@ -95,7 +98,9 @@ export default {
95 98
       },
96 99
       total: 0, // 数据总数
97 100
       list: [],
98
-      listLoading: true // 表格加载框
101
+      listLoading: true, // 表格加载框
102
+      dialogTableVisible: false, // 是否显示弹框
103
+      dialogContent: '提示信息' // 弹框内容
99 104
     }
100 105
   },
101 106
   mounted() {
@@ -108,10 +113,10 @@ export default {
108 113
       this.signUpList()
109 114
     },
110 115
     clearListQuery() {
116
+      this.listQuery.userName = ''
117
+      this.listQuery.phone = ''
111 118
       this.listQuery.pageNum = 1
112 119
       this.listQuery.pageSize = 10
113
-      this.listQuery.id = ''
114
-      this.listQuery.activityTitle = ''
115 120
       this.signUpList()
116 121
     },
117 122
     handleSelectionChange(data) { // 表格选择
@@ -173,6 +178,10 @@ export default {
173 178
           role = '未认证'
174 179
       }
175 180
       return role
181
+    },
182
+    showDialog(remark) { // 备注 弹框
183
+      this.dialogContent = remark
184
+      this.dialogTableVisible = true
176 185
     }
177 186
   }
178 187
 }

+ 1112
- 963
文档/MYSQL/smartCommunity.pdb
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 1112
- 963
文档/MYSQL/smartCommunity.pdm
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor