Commit 1837a33a9c2ece2c3559a8ad20d4f664d25b8c31
1 parent
b4022868
update
Showing
6 changed files
with
323 additions
and
5 deletions
src/main/java/com/bsth/data/schedule/late_adjust/LateAdjustHandle.java
| @@ -117,6 +117,7 @@ public class LateAdjustHandle implements ApplicationContextAware{ | @@ -117,6 +117,7 @@ public class LateAdjustHandle implements ApplicationContextAware{ | ||
| 117 | sch.setLateMinute(0); | 117 | sch.setLateMinute(0); |
| 118 | sch.setDfAuto(false); | 118 | sch.setDfAuto(false); |
| 119 | 119 | ||
| 120 | + lateSchMap.remove(nbbm); | ||
| 120 | logger.info("移除误点调整 nbbm -" + nbbm); | 121 | logger.info("移除误点调整 nbbm -" + nbbm); |
| 121 | } | 122 | } |
| 122 | } | 123 | } |
src/main/resources/static/pages/summary/fast_and_slow/data.html
0 → 100644
| 1 | +<div class="ct_data_body_wrap"> | ||
| 2 | + <div class="uk-card uk-card-default uk-card-body ct_rq_left"> | ||
| 3 | + <ul uk-scrollspy-nav="closest: li; scroll: true; offset: 100" | ||
| 4 | + class="uk-nav uk-nav-default tm-nav uk-nav-parent-icon"> | ||
| 5 | + <li class="uk-active"><a href="#table_20171010">2017-10-10</a></li> | ||
| 6 | + <li><a href="#table_20171011">2017-10-11</a></li> | ||
| 7 | + <li><a href="#table_20171012">2017-10-12</a></li> | ||
| 8 | + <li><a href="#table_20171013">2017-10-13</a></li> | ||
| 9 | + <li><a href="#table_20171014">2017-10-14</a></li> | ||
| 10 | + <li><a href="#table_20171015">2017-10-15</a></li> | ||
| 11 | + <li><a href="#table_20171016">2017-10-16</a></li> | ||
| 12 | + </ul> | ||
| 13 | + </div> | ||
| 14 | + | ||
| 15 | + <div class="uk-card uk-card-default uk-card-body ct_right_tables"> | ||
| 16 | + <div id="table_20171010"> | ||
| 17 | + <table> | ||
| 18 | + | ||
| 19 | + </table> | ||
| 20 | + </div> | ||
| 21 | + </div> | ||
| 22 | + | ||
| 23 | + <script> | ||
| 24 | + (function () { | ||
| 25 | + var wrap = '.ct_data_body_wrap'; | ||
| 26 | + | ||
| 27 | + $(wrap).on('init', function (e, data) { | ||
| 28 | + e.stopPropagation(); | ||
| 29 | + console.log('data init'); | ||
| 30 | + | ||
| 31 | + }); | ||
| 32 | + })(); | ||
| 33 | + </script> | ||
| 34 | +</div> | ||
| 0 | \ No newline at end of file | 35 | \ No newline at end of file |
src/main/resources/static/pages/summary/fast_and_slow/f_a_s_wrap.html
0 → 100644
src/main/resources/static/pages/summary/fast_and_slow/main.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="zh-cn"> | ||
| 3 | + | ||
| 4 | +<head> | ||
| 5 | + <meta charset="UTF-8"> | ||
| 6 | + <link rel="stylesheet" href="/assets/plugins/uk3.0/uikit.min.css"/> | ||
| 7 | + <link rel="stylesheet" href="/real_control_v2/assets/plugins/perfect-scrollbar/perfect-scrollbar.css" /> | ||
| 8 | + <!-- flatpickr --> | ||
| 9 | + <link rel="stylesheet" href="/real_control_v2/assets/plugins/flatpickr/flatpickr.min.css"> | ||
| 10 | + <style> | ||
| 11 | + html,body{ | ||
| 12 | + height: 100%; | ||
| 13 | + } | ||
| 14 | + .ct_page{ | ||
| 15 | + padding: 25px 15px; | ||
| 16 | + height: 100%; | ||
| 17 | + height: calc(100% - 50px); | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + .ct_cont{ | ||
| 21 | + height: calc(100% - 35px); | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + .ct_cont>div>div.uk-card{ | ||
| 25 | + height: 99%; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + .loading{ | ||
| 29 | + height: 100%; | ||
| 30 | + text-align: center; | ||
| 31 | + } | ||
| 32 | + .loading .uk-spinner{ | ||
| 33 | + margin-top: 200px; | ||
| 34 | + } | ||
| 35 | + .loading circle{ | ||
| 36 | + stroke: red; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + .ps-container > .ps-scrollbar-x-rail, .ps-container > .ps-scrollbar-y-rail{ | ||
| 40 | + opacity: 0.6 !important; | ||
| 41 | + padding: 0 !important; | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + .ct_search_form_wrap{ | ||
| 45 | + border-bottom: 1px solid #e5e5e5; | ||
| 46 | + padding: 10px 0 25px 10px; | ||
| 47 | + } | ||
| 48 | + .ct_search_form_wrap .ct_field{ | ||
| 49 | + display: inline-block; | ||
| 50 | + margin: 0 5px; | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + .ct_search_form_wrap .ct_field label{ | ||
| 54 | + font-size: 14px; | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + .ct_search_form_wrap .ct_field input[type=text]{ | ||
| 58 | + width: 110px; | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + .ct_search_form_wrap .ct_field select{ | ||
| 62 | + width: auto; | ||
| 63 | + min-width: 100px; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + .ct_search_form_wrap .uk-button{ | ||
| 67 | + padding: 0 14px; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + .ct_search_form_wrap .uk-button i{ | ||
| 71 | + vertical-align: middle; | ||
| 72 | + margin-top: -2px; | ||
| 73 | + margin-right: 7px; | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + .ct_field.ct_field_bottom{ | ||
| 77 | + vertical-align: bottom; | ||
| 78 | + font-size: 12px; | ||
| 79 | + margin-left: 0; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + .ct_cont_body{ | ||
| 83 | + height: calc(100% - 88px); | ||
| 84 | + width: 100%; | ||
| 85 | + padding-top: 12px; | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + .ct_data_body_wrap{ | ||
| 89 | + height: 100%; | ||
| 90 | + width: 100%; | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + .ct_rq_left{ | ||
| 94 | + width: 200px; | ||
| 95 | + display: inline-block; | ||
| 96 | + vertical-align: top; | ||
| 97 | + height: 99%; | ||
| 98 | + height: calc(100% - 5px); | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + .ct_right_tables{ | ||
| 102 | + width: calc(100% - 220px); | ||
| 103 | + display: inline-block; | ||
| 104 | + margin-left: 12px; | ||
| 105 | + height: 99%; | ||
| 106 | + height: calc(100% - 5px); | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + .tm-nav>li a{ | ||
| 110 | + position: relative; | ||
| 111 | + font-size: 15px; | ||
| 112 | + } | ||
| 113 | + .tm-nav>li.uk-active>a:before { | ||
| 114 | + content: ""; | ||
| 115 | + position: absolute; | ||
| 116 | + width: 15px; | ||
| 117 | + border-top: 1px solid #1e87f0; | ||
| 118 | + z-index: 9; | ||
| 119 | + right: 60px; | ||
| 120 | + top: 15px; | ||
| 121 | + } | ||
| 122 | + .uk-nav-default>li.uk-active>a { | ||
| 123 | + color: #222; | ||
| 124 | + } | ||
| 125 | + </style> | ||
| 126 | +</head> | ||
| 127 | + | ||
| 128 | +<body> | ||
| 129 | +<div class="loading"> | ||
| 130 | + <div uk-spinner></div> | ||
| 131 | +</div> | ||
| 132 | +<div class="ct_page" style="display: none;"> | ||
| 133 | + <h3 class="uk-heading-line uk-heading-bullet"><span>快慢误点统计</span></h3> | ||
| 134 | + <div class="ct_cont" > | ||
| 135 | + <div class="ct_search_form_wrap"> | ||
| 136 | + <form> | ||
| 137 | + <div class="ct_field"> | ||
| 138 | + <label>公司: | ||
| 139 | + <select class="uk-select" name="companyId_eq"> | ||
| 140 | + </select> | ||
| 141 | + </label> | ||
| 142 | + </div> | ||
| 143 | + <div class="ct_field"> | ||
| 144 | + <label>分公司: | ||
| 145 | + <select class="uk-select" name="subCompanyId_eq"> | ||
| 146 | + </select> | ||
| 147 | + </label> | ||
| 148 | + </div> | ||
| 149 | + <div class="ct_field"> | ||
| 150 | + <label>线路: | ||
| 151 | + <select class="uk-select" name="lineCode_eq"> | ||
| 152 | + </select> | ||
| 153 | + </label> | ||
| 154 | + </div> | ||
| 155 | + <div class="ct_field"> | ||
| 156 | + <label>日期范围: | ||
| 157 | + <input class="uk-input" name="rq" style="width: 200px;"> | ||
| 158 | + </label> | ||
| 159 | + </div> | ||
| 160 | + <div class="ct_field"> | ||
| 161 | + <label><input class="uk-radio" type="radio" name="type" checked> 全部</label> | ||
| 162 | + <label><input class="uk-radio" type="radio" name="type"> 快误</label> | ||
| 163 | + <label><input class="uk-radio" type="radio" name="type"> 慢误</label> | ||
| 164 | + </div> | ||
| 165 | + <div class="ct_field"> | ||
| 166 | + <button class="uk-button uk-button-primary search"><i uk-icon="icon: search"></i>搜索</button> | ||
| 167 | + </div> | ||
| 168 | + <div class="ct_field ct_field_bottom"> | ||
| 169 | + <button class="uk-button uk-button-text" style="padding: 0 5px;">导出数据</button> | ||
| 170 | + </div> | ||
| 171 | + <div class="ct_field ct_field_bottom"> | ||
| 172 | + <span uk-icon="icon: question" title="统计 “正常”、“区间”、“放站” 班次" uk-tooltip="pos: bottom"></span> | ||
| 173 | + </div> | ||
| 174 | + </form> | ||
| 175 | + </div> | ||
| 176 | + | ||
| 177 | + <div class="ct_cont_body"> | ||
| 178 | + </div> | ||
| 179 | + </div> | ||
| 180 | +</div> | ||
| 181 | + | ||
| 182 | +<script src="/metronic_v4.5.4/plugins/jquery.min.js"></script> | ||
| 183 | +<script src="/assets/plugins/uk3.0/uikit.min.js"></script> | ||
| 184 | +<script src="/assets/plugins/uk3.0/uikit-icons.min.js"></script> | ||
| 185 | +<script src="/real_control_v2/assets/plugins/perfect-scrollbar/perfect-scrollbar.jquery.js" ></script> | ||
| 186 | +<!-- EventProxy --> | ||
| 187 | +<script src="/assets/js/eventproxy.js"></script> | ||
| 188 | +<!-- art-template 模版引擎 --> | ||
| 189 | +<script src="/assets/plugins/template.js"></script> | ||
| 190 | +<script src="/real_control_v2/assets/plugins/moment/moment.min.js"></script> | ||
| 191 | +<!-- jquery.serializejson JSON序列化插件 --> | ||
| 192 | +<script src="/assets/plugins/jquery.serializejson.js" merge="plugins"></script> | ||
| 193 | +<!-- flatpickr --> | ||
| 194 | +<script src="/real_control_v2/assets/plugins/flatpickr/flatpickr.min.js" ></script> | ||
| 195 | +<script src="/real_control_v2/assets/plugins/flatpickr/l10n/zh.js" ></script> | ||
| 196 | +<script> | ||
| 197 | + | ||
| 198 | +(function () { | ||
| 199 | + //var data_dom; | ||
| 200 | + var f = $('form', ''); | ||
| 201 | + var ep = EventProxy.create('query_comps', 'query_lines', function () { | ||
| 202 | + $('[name=companyId_eq]', f).trigger('change');//公司change | ||
| 203 | + //query(); | ||
| 204 | + | ||
| 205 | + $('.loading').remove(); | ||
| 206 | + $('.ct_page').show(); | ||
| 207 | + }); | ||
| 208 | + | ||
| 209 | + $.get('/pages/summary/fast_and_slow/data.html', function (rs) { | ||
| 210 | + $('.ct_cont_body').html(rs); | ||
| 211 | + }); | ||
| 212 | + | ||
| 213 | + //点击搜索按钮 | ||
| 214 | + $('.search', f).on('click', function () { | ||
| 215 | + $('.ct_data_body_wrap').trigger('init'); | ||
| 216 | + }); | ||
| 217 | + | ||
| 218 | + //日期选择框 | ||
| 219 | + var fs='YYYY-MM-DD' | ||
| 220 | + , ets=moment().format(fs) | ||
| 221 | + , sts=moment().subtract(7, 'days').format(fs); | ||
| 222 | + flatpickr('.ct_search_form_wrap [name=rq]', { | ||
| 223 | + mode: "range", dateFormat: "Y-m-d","locale": "zh", defaultDate: [sts, ets] | ||
| 224 | + }); | ||
| 225 | + var comps; | ||
| 226 | + //构建公司级联下拉框 | ||
| 227 | + $.get('/user/companyData', function (rs) { | ||
| 228 | + comps = rs; | ||
| 229 | + var opts = ''; | ||
| 230 | + for(var i=0,obj;obj=comps[i++];){ | ||
| 231 | + opts += '<option value="'+obj.companyCode+'">'+obj.companyName+'</option>'; | ||
| 232 | + } | ||
| 233 | + $('[name=companyId_eq]', f).html(opts); | ||
| 234 | + ep.emit('query_comps'); | ||
| 235 | + }); | ||
| 236 | + var lineMapps; | ||
| 237 | + //加载线路信息 | ||
| 238 | + $.get('/line/all', {'destroy_eq': 0}, function (rs) { | ||
| 239 | + rs.sort(function (a, b) { | ||
| 240 | + return a.name.localeCompare(b.name); | ||
| 241 | + }); | ||
| 242 | + lineMapps={}; | ||
| 243 | + var k; | ||
| 244 | + $.each(rs, function () { | ||
| 245 | + k = this.company+'_'+this.brancheCompany; | ||
| 246 | + if(!lineMapps[k]) | ||
| 247 | + lineMapps[k]=[]; | ||
| 248 | + lineMapps[k].push(this); | ||
| 249 | + }); | ||
| 250 | + | ||
| 251 | + ep.emit('query_lines'); | ||
| 252 | + }); | ||
| 253 | + | ||
| 254 | + $('[name=companyId_eq]', f).on('change', function () { | ||
| 255 | + var code = $(this).val(), subs=[]; | ||
| 256 | + $.each(comps, function () { | ||
| 257 | + if(this.companyCode==code) | ||
| 258 | + subs=this.children; | ||
| 259 | + }); | ||
| 260 | + | ||
| 261 | + var opts=''; | ||
| 262 | + $.each(subs, function () { | ||
| 263 | + opts += '<option value="'+this.code+'">'+this.name+'</option>'; | ||
| 264 | + }); | ||
| 265 | + $('[name=subCompanyId_eq]', f).html(opts).trigger('change'); | ||
| 266 | + }); | ||
| 267 | + | ||
| 268 | + $('[name=subCompanyId_eq]', f).on('change', function () { | ||
| 269 | + var k = $('[name=companyId_eq]', f).val() + '_' + $(this).val(); | ||
| 270 | + var array = lineMapps[k]; | ||
| 271 | + var opts = ''; | ||
| 272 | + if(array){ | ||
| 273 | + $.each(array, function () { | ||
| 274 | + opts += '<option value="'+this.lineCode+'">'+this.name+'</option>'; | ||
| 275 | + }); | ||
| 276 | + } | ||
| 277 | + $('[name=lineCode_eq]', f).html(opts); | ||
| 278 | + }); | ||
| 279 | +})(); | ||
| 280 | +</script> | ||
| 281 | +</body> | ||
| 282 | +</html> | ||
| 0 | \ No newline at end of file | 283 | \ No newline at end of file |
src/main/resources/static/pages/summary/work_hours/list.html
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | .ct_cont{ | 20 | .ct_cont{ |
| 21 | - height: calc(100% - 41px); | 21 | + height: calc(100% - 35px); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | .ct_cont>div>div.uk-card{ | 24 | .ct_cont>div>div.uk-card{ |
| @@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
| 122 | <div uk-spinner></div> | 122 | <div uk-spinner></div> |
| 123 | </div> | 123 | </div> |
| 124 | <div class="ct_page" style="display: none;"> | 124 | <div class="ct_page" style="display: none;"> |
| 125 | - <h2 class="uk-heading-line uk-heading-bullet"><span>工时统计</span></h2> | 125 | + <h3 class="uk-heading-line uk-heading-bullet"><span>工时统计</span></h3> |
| 126 | <div class="ct_cont" > | 126 | <div class="ct_cont" > |
| 127 | <div class="ct_search_form_wrap"> | 127 | <div class="ct_search_form_wrap"> |
| 128 | <form> | 128 | <form> |
| @@ -141,7 +141,6 @@ | @@ -141,7 +141,6 @@ | ||
| 141 | <div class="ct_field"> | 141 | <div class="ct_field"> |
| 142 | <label>线路: | 142 | <label>线路: |
| 143 | <select class="uk-select" name="lineCode_eq"> | 143 | <select class="uk-select" name="lineCode_eq"> |
| 144 | - <option value="81101">航头4路</option> | ||
| 145 | </select> | 144 | </select> |
| 146 | </label> | 145 | </label> |
| 147 | </div> | 146 | </div> |
src/main/resources/static/real_control_v2/js/utils/dispatch_pattern.js
| 1 | /** 调度模式 */ | 1 | /** 调度模式 */ |
| 2 | 2 | ||
| 3 | +//主调和监控模式 | ||
| 4 | +var operationMode = window.localStorage.getItem('operationMode'); | ||
| 3 | var gb_dp_initHttpIntercept = function () { | 5 | var gb_dp_initHttpIntercept = function () { |
| 4 | - //主调和监控模式 | ||
| 5 | - var operationMode = window.localStorage.getItem('operationMode'); | ||
| 6 | $(document).off('ajaxSend', interceptPOST); | 6 | $(document).off('ajaxSend', interceptPOST); |
| 7 | $('body>.north').removeClass('monitor main'); | 7 | $('body>.north').removeClass('monitor main'); |
| 8 | if (operationMode == 0) { | 8 | if (operationMode == 0) { |