wuxw лет назад: 7
Родитель
Сommit
dd34ef2eae

+ 49 - 0
WebService/src/main/resources/components/noticePackage/notice-manage/noticeManage.html

@@ -1,4 +1,53 @@
 <div id="component">
+    <div class="row">
+        <div class="col-lg-12">
+            <div class="ibox ">
+                <div class="ibox-title">
+                    <h5>查询条件</h5>
+                    <div class="ibox-tools" style="top:10px;">
+                        <!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
+                                 v-on:click="_moreCondition()">更多
+                         </button>-->
+                    </div>
+                </div>
+                <div class="ibox-content">
+                    <div class="row">
+
+                        <div class="col-sm-4">
+                            <div class="form-group">
+                                <input type="text" placeholder="请输入公告标题"
+                                       v-model="noticeManageInfo.conditions.title" class=" form-control">
+                            </div>
+                        </div>
+                        <div class="col-sm-3">
+                            <div class="form-group">
+                                <select class="custom-select" v-model="noticeManageInfo.conditions.noticeTypeCd">
+                                    <option selected disabled value="">请选择公告类型</option>
+                                    <option value="1000">业主通知</option>
+                                    <option value="1001">员工通知</option>
+                                    <option value="1002">小区通知</option>
+                                </select>
+                            </div>
+                        </div>
+                        <div class="col-sm-4">
+                            <div class="form-group">
+                                <input type="text" placeholder="请输入公告ID"
+                                       v-model="noticeManageInfo.conditions.noticeId" class=" form-control">
+                            </div>
+                        </div>
+                        <div class="col-sm-1">
+                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryNoticeMethod()"><i
+                                    class="glyphicon glyphicon-search" ></i> 查询
+                            </button>
+                        </div>
+
+                    </div>
+
+
+                </div>
+            </div>
+        </div>
+    </div>
     <div class="row" v-if="noticeManageInfo.componentShow == 'noticeList'">
         <div class="col-lg-12">
             <div class="ibox">

+ 15 - 7
WebService/src/main/resources/components/noticePackage/notice-manage/noticeManage.js

@@ -10,7 +10,12 @@
                 notices:[],
                 total:0,
                 records:1,
-                componentShow:'noticeList'
+                componentShow:'noticeList',
+                conditions:{
+                    title:'',
+                    noticeTypeCd:'',
+                    noticeId:''
+                }
             }
         },
         _initMethod:function(){
@@ -28,14 +33,13 @@
         },
         methods:{
             _listNotices:function(_page, _rows){
+                vc.component.noticeManageInfo.conditions.page = _page;
+                vc.component.noticeManageInfo.conditions.row = _rows;
+                vc.component.noticeManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
                 var param = {
-                    params:{
-                        page:_page,
-                        row:_rows,
-                        communityId:vc.getCurrentCommunity().communityId
-                    }
+                    params:vc.component.noticeManageInfo.conditions
+               };
 
-               }
                //发送get请求
                vc.http.get('noticeManage',
                             'list',
@@ -70,6 +74,10 @@
             _openNoticeDetail:function(_notice){
                 vc.jumpToPage("/flow/noticeDetailFlow?noticeId="+_notice.noticeId);
 
+            },
+            _queryNoticeMethod:function(){
+                vc.component._listNotices(DEFAULT_PAGE, DEFAULT_ROWS);
+
             }
         }
     });