GGican há 8 anos atrás
pai
commit
62b16d3d61

+ 5 - 1
app/Http/Controllers/Admin/TableController.php

xqd xqd xqd
@@ -1001,6 +1001,8 @@ FROM table_nine WHERE status > 5 GROUP BY bzc_name');
                         '房屋补偿金',
                         '庭院面积',
                         '庭院补偿',
+                    ];
+                    $th1 = [
                         '装修',
                         '构筑物及其他',
                         '停产停业损失补偿(临街路补偿)',
@@ -1012,6 +1014,8 @@ FROM table_nine WHERE status > 5 GROUP BY bzc_name');
                         '违章自行拆除费',
                         '残疾及其他',
                         '补偿总额',
+                    ];
+                    $th2 = [
                         '回迁套数',
                         '回迁小区楼栋号',
                         '回迁住宅面积',
@@ -1023,7 +1027,7 @@ FROM table_nine WHERE status > 5 GROUP BY bzc_name');
                         '交房日期',
                         '备注',
                     ];
-                    return view('admin.sta.sta_all',compact('th','table_name','user_data'));
+                    return view('admin.sta.sta_all',compact('th','th1','th2','table_name','user_data'));
                 break;
             }
         } else {

+ 1 - 1
resources/views/admin/left-sidebar.blade.php

xqd
@@ -23,7 +23,7 @@
             <li class="treeview
             @if(Request::url()==url('/')||Request::url()==url('/table/statistics/1')||Request::url()==url('/table/statistics/2')||Request::url()==url('/table/statistics/3')||
                     Request::url()==url('/table/statistics/4')||Request::url()==url('/table/statistics/5')||Request::url()==url('/table/statistics/6')||
-                    Request::url()==url('/table/statistics/7')||Request::url()==url('/table/statistics/8')||Request::url()==url('/table/statistics/9'))
+                    Request::url()==url('/table/statistics/7')||Request::url()==url('/table/statistics/8')||Request::url()==url('/table/statistics/9')||Request::url()==url('/table/statistics/10'))
                     active
                     @endif
             ">

+ 116 - 1
resources/views/admin/sta/sta_all.blade.php

xqd
@@ -36,4 +36,119 @@
                 </div>
             </div>
         </div>
-    @endsection
+        <div class="row">
+            <div class="col-md-12">
+                <div class="box box-primary">
+                    <div class="box-header with-border">
+                        <h3 class="box-title">统计数据(续)</h3>
+                    </div>
+                    <div class="box-body">
+                        <div class="dataTables_wrapper form-inline dt-bootstrap">
+                            <table id="table1" class="table table-hover dataTable" role="grid" aria-describedby="example2_info">
+                                <thead>
+                                <tr role="row">
+                                    @foreach($th1 as $h)
+                                        <th>{{ $h }}</th>
+                                    @endforeach
+                                </tr>
+                                </thead>
+                                <tbody>
+                                {{--@foreach($table as $data)--}}
+                                    {{--<tr>--}}
+                                        {{--<td>{{ $data->bzc_name }}</td>--}}
+                                        {{--<td>{{ $data->data7 }}</td>--}}
+                                        {{--<td>{{ $data->data10 }}</td>--}}
+                                        {{--<td>{{ $data->data13 }}</td>--}}
+                                        {{--<td>{{ $data->data16 }}</td>--}}
+                                        {{--<td>{{ $data->data19 }}</td>--}}
+                                        {{--<td>{{ $data->data22 }}</td>--}}
+                                        {{--<td>{{ $data->data25 }}</td>--}}
+                                    {{--</tr>--}}
+                                {{--@endforeach--}}
+                                </tbody>
+                            </table>
+                        </div>
+                    </div>
+                    {{-- /.boc-body--}}
+                </div>
+            </div>
+        </div>
+        <div class="row">
+            <div class="col-md-12">
+                <div class="box box-primary">
+                    <div class="box-header with-border">
+                        <h3 class="box-title">统计数据(续)</h3>
+                    </div>
+                    <div class="box-body">
+                        <div class="dataTables_wrapper form-inline dt-bootstrap">
+                            <table id="table2" class="table table-hover dataTable" role="grid" aria-describedby="example2_info">
+                                <thead>
+                                <tr role="row">
+                                    @foreach($th2 as $h)
+                                        <th>{{ $h }}</th>
+                                    @endforeach
+                                </tr>
+                                </thead>
+                                <tbody>
+                                {{--@foreach($table as $data)--}}
+                                    {{--<tr>--}}
+                                        {{--<td>{{ $data->bzc_name }}</td>--}}
+                                        {{--<td>{{ $data->data26 }}</td>--}}
+                                        {{--<td>{{ $data->data27 }}</td>--}}
+                                        {{--<td>{{ $data->data28 }}</td>--}}
+                                        {{--<td>{{ $data->data43 }}</td>--}}
+                                        {{--<td>{{ $data->data44 }}</td>--}}
+                                    {{--</tr>--}}
+                                {{--@endforeach--}}
+                                </tbody>
+                            </table>
+                        </div>
+                    </div>
+                    {{-- /.boc-body--}}
+                </div>
+            </div>
+        </div>
+
+        <script>
+            $(document).ready(function() {
+                $('#table1').dataTable({
+                    "aLengthMenu": [[10, 20, 50, -1], ["10", "20", "50", "所有"]],
+                    "oLanguage": {
+                        "sLengthMenu": "每页显示 _MENU_ 条记录",
+                        "sZeroRecords": "对不起,没有匹配的数据",
+                        "sInfo": "第 _START_ - _END_ 条 / 共 _TOTAL_ 条数据",
+                        "sInfoEmpty": "没有匹配的数据",
+                        "sInfoFiltered": "(数据表中共 _MAX_ 条记录)",
+                        "sProcessing": "正在加载中...",
+                        "sSearch": "全文搜索:",
+                        "oPaginate": {
+                            "sFirst": "第一页",
+                            "sPrevious": " 上一页 ",
+                            "sNext": " 下一页 ",
+                            "sLast": " 最后一页 "
+                        }
+                    }
+                });
+            });
+            $(document).ready(function() {
+                $('#table2').dataTable({
+                    "aLengthMenu": [[10, 20, 50, -1], ["10", "20", "50", "所有"]],
+                    "oLanguage": {
+                        "sLengthMenu": "每页显示 _MENU_ 条记录",
+                        "sZeroRecords": "对不起,没有匹配的数据",
+                        "sInfo": "第 _START_ - _END_ 条 / 共 _TOTAL_ 条数据",
+                        "sInfoEmpty": "没有匹配的数据",
+                        "sInfoFiltered": "(数据表中共 _MAX_ 条记录)",
+                        "sProcessing": "正在加载中...",
+                        "sSearch": "全文搜索:",
+                        "oPaginate": {
+                            "sFirst": "第一页",
+                            "sPrevious": " 上一页 ",
+                            "sNext": " 下一页 ",
+                            "sLast": " 最后一页 "
+                        }
+                    }
+                });
+            });
+        </script>
+    @endsection