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

+ 60 - 0
WebService/src/main/resources/components/index-arrears/indexArrears.html

@@ -0,0 +1,60 @@
+<div class="row">
+
+    <div class="col-lg-12">
+        <div class="ibox ">
+            <div class="ibox-title">
+                <h5>欠费信息</h5>
+                <div class="ibox-tools">
+                </div>
+            </div>
+            <div class="ibox-content">
+                <div class="row">
+                    <div class="col-sm-9 m-b-xs">
+                        <div data-toggle="buttons" class="btn-group btn-group-toggle">
+                            <label class="btn btn-sm btn-white active"> <input type="radio" id="option1" name="options"> 物业费 </label>
+                            <label class="btn btn-sm btn-white "> <input type="radio" id="option2" name="options"> 停车费 </label>
+                        </div>
+                    </div>
+                    <div class="col-sm-3">
+                        <div class="input-group mb-3">
+                            <input type="text" class="form-control form-control-sm" placeholder="请输入业主名称">
+                            <div class="input-group-append">
+                                <button class="btn btn-sm btn-primary" type="button">查询</button>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+                <div class="table-responsive">
+                    <table class="table table-striped">
+                        <thead>
+                        <tr>
+                            <th>费用ID </th>
+                            <th>业主名称 </th>
+                            <th>联系电话 </th>
+                            <th>房屋编号 </th>
+                            <th>费用开始时间 </th>
+                            <th>到期时间 </th>
+                        </tr>
+                        </thead>
+                        <tbody>
+                        <tr>
+                            <td>Project <small>This is example of project</small></td>
+                            <td>Patrick Smith</td>
+                            <td>0800 051213</td>
+                            <td>Inceptos Hymenaeos Ltd</td>
+                            <td><span class="pie">0.52/1.561</span></td>
+                            <td>20%</td>
+                        </tr>
+
+
+                        </tbody>
+                    </table>
+                    <!-- 分页 -->
+                    <vc:create name="pagination"></vc:create>
+                </div>
+
+            </div>
+        </div>
+    </div>
+
+</div>

+ 52 - 0
WebService/src/main/resources/components/index-arrears/indexArrears.js

@@ -0,0 +1,52 @@
+(function(vc){
+    var DEFAULT_PAGE = 1;
+    var DEFAULT_ROWS = 10;
+    vc.extends({
+        data:{
+            indexArrearsInfo:{
+                arrears:[],
+                total:0,
+                records:1
+            }
+        },
+        _initMethod:function(){
+            //vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
+        },
+        _initEvent:function(){
+
+        },
+        methods:{
+            _listOwnerData:function(_page,_row){
+                var param = {
+                    params:{
+                        page:_page,
+                        row:_row,
+                        communityId:vc.getCurrentCommunity().communityId,
+                        ownerTypeCd:'1001'
+                    }
+                }
+
+               //发送get请求
+               vc.http.get('listOwner',
+                            'list',
+                             param,
+                             function(json,res){
+                                var listOwnerData =JSON.parse(json);
+
+                                vc.component.listOwnerInfo.total = listOwnerData.total;
+                                vc.component.listOwnerInfo.records = listOwnerData.records;
+                                vc.component.listOwnerInfo.owners = listOwnerData.owners;
+
+                                vc.emit('pagination','init',{
+                                    total:vc.component.listOwnerInfo.records,
+                                    currentPage:_page
+                                });
+                             },function(errInfo,error){
+                                console.log('请求失败处理');
+                             }
+                           );
+
+            }
+        }
+    })
+})(window.vc);

+ 11 - 10
WebService/src/main/resources/components/index-context/indexContext.html

@@ -8,8 +8,8 @@
                     <h5>业主</h5>
                     <h5>业主</h5>
                 </div>
                 </div>
                 <div class="ibox-content">
                 <div class="ibox-content">
-                    <h1 class="no-margins">40 886,200</h1>
-                    <div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i></div>
+                    <h1 class="no-margins">{{indexContextInfo.ownerCount}}</h1>
+                    <div class="stat-percent font-bold text-success">{{indexContextInfo.noEnterRoomCount}} <i class="fa fa-bolt"></i></div>
                     <small>未迁入</small>
                     <small>未迁入</small>
                 </div>
                 </div>
             </div>
             </div>
@@ -21,8 +21,8 @@
                     <h5>房屋</h5>
                     <h5>房屋</h5>
                 </div>
                 </div>
                 <div class="ibox-content">
                 <div class="ibox-content">
-                    <h1 class="no-margins">275,800</h1>
-                    <div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i></div>
+                    <h1 class="no-margins">{{indexContextInfo.roomCount}}</h1>
+                    <div class="stat-percent font-bold text-info">{{indexContextInfo.freeRoomCount}} <i class="fa fa-level-up"></i></div>
                     <small>空闲</small>
                     <small>空闲</small>
                 </div>
                 </div>
             </div>
             </div>
@@ -34,8 +34,8 @@
                     <h5>停车位</h5>
                     <h5>停车位</h5>
                 </div>
                 </div>
                 <div class="ibox-content">
                 <div class="ibox-content">
-                    <h1 class="no-margins">106,120</h1>
-                    <div class="stat-percent font-bold text-navy">44% <i class="fa fa-level-up"></i></div>
+                    <h1 class="no-margins">{{indexContextInfo.parkingSpaceCount}}</h1>
+                    <div class="stat-percent font-bold text-navy">{{indexContextInfo.freeParkingSpaceCount}} <i class="fa fa-level-up"></i></div>
                     <small>空闲</small>
                     <small>空闲</small>
                 </div>
                 </div>
             </div>
             </div>
@@ -44,16 +44,17 @@
             <div class="ibox ">
             <div class="ibox ">
                 <div class="ibox-title">
                 <div class="ibox-title">
                     <span class="label label-danger float-right">总数</span>
                     <span class="label label-danger float-right">总数</span>
-                    <h5></h5>
+                    <h5>商铺</h5>
                 </div>
                 </div>
                 <div class="ibox-content">
                 <div class="ibox-content">
-                    <h1 class="no-margins">80,600</h1>
-                    <div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i></div>
-                    <small>In first month</small>
+                    <h1 class="no-margins">{{indexContextInfo.shopCount}}</h1>
+                    <div class="stat-percent font-bold text-danger">{{indexContextInfo.freeShopCount}} <i class="fa fa-level-down"></i></div>
+                    <small>空闲</small>
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </div>
     </div>
     </div>
 
 
+    <vc:create name="indexArrears"></vc:create>
 
 
 </div>
 </div>

+ 11 - 12
WebService/src/main/resources/components/index-context/indexContext.js

@@ -4,22 +4,22 @@
     vc.extends({
     vc.extends({
         data:{
         data:{
             indexContextInfo:{
             indexContextInfo:{
-                owners:[],
-                total:0,
-                records:1,
-                errorInfo:""
+                ownerCount:'1000',
+                noEnterRoomCount:'90',
+                roomCount:'2000',
+                freeRoomCount:'100',
+                parkingSpaceCount:'3000',
+                freeParkingSpaceCount:'110',
+                shopCount:'70',
+                freeShopCount:'10'
+
             }
             }
         },
         },
         _initMethod:function(){
         _initMethod:function(){
             //vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
             //vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
         },
         },
         _initEvent:function(){
         _initEvent:function(){
-            vc.on('listOwner','listOwnerData',function(){
-                vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
-            });
-            vc.on('pagination','page_event',function(_currentPage){
-                vc.component._listOwnerData(_currentPage,DEFAULT_ROWS);
-            });
+
         },
         },
         methods:{
         methods:{
             _listOwnerData:function(_page,_row){
             _listOwnerData:function(_page,_row){
@@ -27,8 +27,7 @@
                     params:{
                     params:{
                         page:_page,
                         page:_page,
                         row:_row,
                         row:_row,
-                        communityId:vc.getCurrentCommunity().communityId,
-                        ownerTypeCd:'1001'
+                        communityId:vc.getCurrentCommunity().communityId
                     }
                     }
                 }
                 }
 
 

+ 1 - 2
WebService/src/main/resources/components/list-owner/listOwner.js

@@ -6,8 +6,7 @@
             listOwnerInfo:{
             listOwnerInfo:{
                 owners:[],
                 owners:[],
                 total:0,
                 total:0,
-                records:1,
-                errorInfo:""
+                records:1
             }
             }
         },
         },
         _initMethod:function(){
         _initMethod:function(){