Bläddra i källkod

优化 公告 只限制于当前小区,不能夸小区发公告,切换小区时刷新当前页面

wuxw 7 år sedan
förälder
incheckning
111ea91ab6

+ 2 - 0
WebService/src/main/java/com/java110/web/smo/notice/impl/ListNoticesSMOImpl.java

@@ -45,6 +45,8 @@ public class ListNoticesSMOImpl extends AbstractComponentSMO implements IListNot
 
         Map paramMap = BeanConvertUtil.beanCovertMap(result);
         paramIn.putAll(paramMap);
+        //将用户ID刷掉
+        paramIn.remove("userId");
 
         String apiUrl = ServiceConstant.SERVICE_API_URL + "/api/notice.listNotices" + mapToUrlParam(paramIn);
 

+ 2 - 1
WebService/src/main/resources/components/noticePackage/notice-manage/noticeManage.js

@@ -31,7 +31,8 @@
                 var param = {
                     params:{
                         page:_page,
-                        row:_rows
+                        row:_rows,
+                        communityId:vc.getCurrentCommunity().communityId
                     }
 
                }

+ 3 - 1
WebService/src/main/resources/components/pageFramePackage/nav/nav.js

@@ -145,7 +145,9 @@
             },
             changeCommunity:function(_community){
                  vc.setCurrentCommunity(_community);
-                  vm.navCommunityInfo._currentCommunity= _community;
+                 vm.navCommunityInfo._currentCommunity= _community;
+                 //中心加载当前页
+                 location.reload();
             },
             _noticeDetail:function(_notice){
                 //console.log(_notice.noticeId);