Browse Source

统计样式

温红权 8 years ago
parent
commit
5578ef90bc

+ 11 - 0
VisualInspection/css/other_check/other_check.css

@@ -83,4 +83,15 @@
     border: 1px solid #ccc;
     border-radius: 4px;
     font-size: 14px;
+}
+
+.statable {
+    background: #fff;
+    width: 100%
+}
+
+.statable td {
+    border: 1px solid;
+    padding: 5px;
+    text-align: center
 }

+ 61 - 0
VisualInspection/js/other_check/other_check.js

@@ -742,4 +742,65 @@ function setCheckTypeSelect(div, selectId, codeFlag, hasAll) {
         $(div).html('');
         $(div).html(optStr);
     });
+}
+
+
+
+
+function static(type) {
+    if (type == 1) {
+        var html = ' <table class="statable">' +
+            '            <thead style="font-size:  20px;text-align:  center;border:  0px;">' +
+            '                <tr>' +
+            '                    <td colspan="13" style="padding:  10px;border:  0px;">各站第三方暗访情况</td>' +
+            '                </tr>' +
+            '            </thead>' +
+            '            <tbody>' +
+            '                <tr>' +
+            '                    <td style="width:40px">道管排名</td>' +
+            '                    <td style="width:40px">公司排名</td>' +
+            '                    <td style="width:40px">道管内排名</td>' +
+            '                    <td style="width:78px">站名</td>' +
+            '                    <td>环境<br>卫生<br>(230)</td>' +
+            '                    <td>仪容<br>仪表<br>(170)</td>' +
+            '                    <td>动作<br>规范<br>(100)</td>' +
+            '                    <td>表情<br>(100)</td>' +
+            '                    <td>礼貌<br>用语<br>(200)</td>' +
+            '                    <td>行为<br>举止<br>(120)</td>' +
+            '                    <td>便民<br>服务<br>(80)</td>' +
+            '                    <td>得分<br>(1000)</td>' +
+            '                    <td>服务<br>评价</td>' +
+            '                </tr>' +
+            '                <tr>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                    <td>1</td>' +
+            '                </tr>' +
+            '            </tbody>' +
+            '        </table>';
+
+        layer.open({
+            area: ["800px"],
+            type: 1,
+            title: '第三方暗访统计',
+            maxmin: true,
+            closeBtn: 1,
+            shadeClose: true,
+            skin: 'layui-layer-nobg', //没有背景色
+            resize: true,
+            content: "<div style='width:100%;height:100%;background: #fff;text-align: center;padding:10px'>   <button class=\"btn btn-info3\" type=\"button\" style=\"    position: absolute;right: 10px;top: 17px;\" onclick=\"exportThird()\"> 导出Excel</button>" + html + "</div>"
+        });
+
+
+    }
 }

+ 30 - 23
VisualInspection/view/other_check/third_unannounced_check.html

@@ -4,33 +4,41 @@
 <div class="container-fluid ">
     <div class="row">
         <div>
-            <span style="float: left;
+            <div class="col-xs-1" style="width:160px">
+                <span style="float: left;
                 padding-top: 5px;">时间:</span>
-            <div class="div-month">
-                <input id="month_date" class="form-control form-date" type="text" placeholder="请选择" style="height:30px;">
+                <div class="div-month">
+                    <input id="month_date" class="form-control form-date" type="text" placeholder="请选择" style="height:30px;">
+                </div>
             </div>
-            <span style="float: left;
+            <div class="col-xs-1" style="width:220px">
+                <span style="float: left;
                  padding-top: 5px;">道管:</span>
-            <div class="div-roadManage">
-                <select class="form-control" id="first"></select>
+                <div class="div-roadManage">
+                    <select class="form-control" id="first"></select>
+                </div>
             </div>
-            <span style="float: left;
+            <div class="col-xs-1" style="width:212px">
+                <span style="float: left;
                 padding-top: 5px;">收费站:</span>
-            <div class="div-station">
-                <select class="form-control" id="second"></select>
+                <div class="div-station">
+                    <select class="form-control" id="second"></select>
+                </div>
             </div>
 
-            <div class="col-xs-3">
+            <div class="col-xs-1">
                 <div class="input-group">
                     <button class="btn btn-primary " type="button" id="conditional_query">查询</button>
                 </div>
             </div>
 
-            <div style="float:right;margin-right:30px;">
+            <div class="col-xs-4" style="float:right;margin-right:30px;">
+                <button class="btn btn-info3" type="button" style="margin-right:30px;" onclick="static(1)">统计</button>
+
                 <button class="btn btn-primary" type="button" id="add_btn"><i class="icon icon-plus-sign"></i> 增加稽查记录</button>
 
-                <button class="btn btn-info3" type="button" style="margin-left:30px;" onclick="exportThird()" > 导出Excel</button>
-            </div>      
+                <button class="btn btn-info3" type="button" style="margin-left:30px;" onclick="exportThird()"> 导出Excel</button>
+            </div>
 
         </div>
     </div>
@@ -41,7 +49,6 @@
     </div>
     <div class="">
 
-
     </div>
 
 </div>
@@ -141,16 +148,16 @@
             init();
         });
 
-        function exportThird(){
-             var param = '';
-             var month_date = $("#month_date").val();
-             var first =  $("#first").val(); 
-             var second = $("#second").val();
-            if( month_date != '' ){
-                param = "&check_time_name="+month_date ;
+        function exportThird() {
+            var param = '';
+            var month_date = $("#month_date").val();
+            var first = $("#first").val();
+            var second = $("#second").val();
+            if (month_date != '') {
+                param = "&check_time_name=" + month_date;
             }
-            if( second != '' ){
-                param += "&dept_id="+ second ;
+            if (second != '') {
+                param += "&dept_id=" + second;
             }
             window.open(getserveraddr() + "/file/other/check/excel?check_type=1" + param);
         }