Commit 5b49041123bff5baf888ab3da5e8c831b5bb81c8
1 parent
ea73153e
update
Showing
10 changed files
with
159 additions
and
107 deletions
src/main/resources/static/pages/control/lineallot/allot.html
| @@ -337,8 +337,8 @@ | @@ -337,8 +337,8 @@ | ||
| 337 | //alert('进入线调'); | 337 | //alert('进入线调'); |
| 338 | layer.closeAll(); | 338 | layer.closeAll(); |
| 339 | //loadPage('/pages/control/line/index.html'); | 339 | //loadPage('/pages/control/line/index.html'); |
| 340 | - //window.location.href = "/real_control/v2"; | ||
| 341 | - window.open("/real_control/v2"); | 340 | + window.location.href = "/real_control/v2"; |
| 341 | + //window.open("/real_control/v2"); | ||
| 342 | }); | 342 | }); |
| 343 | }); | 343 | }); |
| 344 | 344 |
src/main/resources/static/real_control_v2/css/electron.css
src/main/resources/static/real_control_v2/css/line_schedule.css
| @@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
| 13 | 13 | ||
| 14 | .line_schedule div.uk-width-1-6, .line_schedule div.uk-width-1-2 { | 14 | .line_schedule div.uk-width-1-6, .line_schedule div.uk-width-1-2 { |
| 15 | padding: 0 2px 2px 2px; | 15 | padding: 0 2px 2px 2px; |
| 16 | + height: 100%; | ||
| 16 | } | 17 | } |
| 17 | 18 | ||
| 18 | .line_schedule .footer-chart { | 19 | .line_schedule .footer-chart { |
src/main/resources/static/real_control_v2/css/north.css
| @@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
| 5 | } | 5 | } |
| 6 | 6 | ||
| 7 | .north.main { | 7 | .north.main { |
| 8 | - /*background: linear-gradient(to right, #082F4A, #125688, #0a3f64);*/ | ||
| 9 | - background-image: url('/assets/img/title-bg.jpg'); | 8 | + background: linear-gradient(to right, #082F4A, #125688, #0a3f64); |
| 9 | + /*background-image: url('/assets/img/title-bg.jpg');*/ | ||
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | .north.monitor { | 12 | .north.monitor { |
src/main/resources/static/real_control_v2/electron/lineSelect.html
| @@ -12,6 +12,21 @@ | @@ -12,6 +12,21 @@ | ||
| 12 | href="/real_control_v2/assets/plugins/uikit-2.27.1/components/sortable.gradient.min.css"/> | 12 | href="/real_control_v2/assets/plugins/uikit-2.27.1/components/sortable.gradient.min.css"/> |
| 13 | 13 | ||
| 14 | <style type="text/css"> | 14 | <style type="text/css"> |
| 15 | + html,body{ | ||
| 16 | + background: transparent; | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + body { | ||
| 20 | + overflow: hidden; | ||
| 21 | + padding: 3px; | ||
| 22 | + } | ||
| 23 | + .wrapper.ng-scope{ | ||
| 24 | + box-shadow: 1px 0px 20px 0 rgba(18, 86, 136, 0.41), 1px 3px 20px 0 rgba(18, 86, 136, 0.45); | ||
| 25 | + background-position: -15px -18px; | ||
| 26 | + border: 1px solid #125688; | ||
| 27 | + border-radius: 5px 5px 0 0; | ||
| 28 | + background: #fff; | ||
| 29 | + } | ||
| 15 | 30 | ||
| 16 | ::-webkit-scrollbar { | 31 | ::-webkit-scrollbar { |
| 17 | width: 16px; | 32 | width: 16px; |
| @@ -115,11 +130,52 @@ | @@ -115,11 +130,52 @@ | ||
| 115 | #submitBtn:disabled{ | 130 | #submitBtn:disabled{ |
| 116 | border-color: #ebe9e9; | 131 | border-color: #ebe9e9; |
| 117 | } | 132 | } |
| 133 | + | ||
| 134 | + .top-tools{ | ||
| 135 | + height:55px; | ||
| 136 | + position: relative; | ||
| 137 | + background-image: linear-gradient(to bottom,#125688,#14517b); | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + .icon-span{ | ||
| 141 | + padding: 6px 13px 10px 13px; | ||
| 142 | + cursor: default; | ||
| 143 | + -webkit-app-region: no-drag; | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + .icon-span:hover{ | ||
| 147 | + background: rgba(255, 255, 255, 0.29); | ||
| 148 | + border-radius: 3px; | ||
| 149 | + } | ||
| 150 | + | ||
| 151 | + .icon-span.close-icon:hover{ | ||
| 152 | + background: rgb(255, 118, 118); | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + div.title{ | ||
| 156 | + font-size: 18px; | ||
| 157 | + color: #e1e0e0; | ||
| 158 | + text-indent: 15px; | ||
| 159 | + padding-top: 15px; | ||
| 160 | + } | ||
| 118 | </style> | 161 | </style> |
| 119 | </head> | 162 | </head> |
| 120 | 163 | ||
| 121 | <body> | 164 | <body> |
| 122 | <div class="wrapper ng-scope"> | 165 | <div class="wrapper ng-scope"> |
| 166 | + <div class="top-tools" style="-webkit-app-region: drag"> | ||
| 167 | + <div class="title"> | ||
| 168 | + 选择线路 | ||
| 169 | + </div> | ||
| 170 | + <div style="position: absolute;right: 5px;top: 10px;"> | ||
| 171 | + <span class="icon-span" id="mnavbarIconBtnMIN"> | ||
| 172 | + <img src="/real_control_v2/electron/imgs/minus.png"> | ||
| 173 | + </span> | ||
| 174 | + <span class="icon-span close-icon" id="mnavbarIconBtnCLOSE"> | ||
| 175 | + <img src="/real_control_v2/electron/imgs/remove.png"> | ||
| 176 | + </span> | ||
| 177 | + </div> | ||
| 178 | + </div> | ||
| 123 | <div class="dialog dialog-shadow"> | 179 | <div class="dialog dialog-shadow"> |
| 124 | <form class="uk-form" style="width: 100%;"> | 180 | <form class="uk-form" style="width: 100%;"> |
| 125 | <div class="uk-grid"> | 181 | <div class="uk-grid"> |
| @@ -236,11 +292,13 @@ | @@ -236,11 +292,13 @@ | ||
| 236 | 292 | ||
| 237 | var rs = []; | 293 | var rs = []; |
| 238 | $.each(all, function () { | 294 | $.each(all, function () { |
| 239 | - if (this.camelChars.indexOf(t) != -1 | ||
| 240 | - || this.fullChars.indexOf(t) != -1 | ||
| 241 | - || this.name.indexOf(t) != -1) { | ||
| 242 | - rs.push(this.lineCode); | ||
| 243 | - } | 295 | + try{ |
| 296 | + if (this.camelChars.indexOf(t) != -1 | ||
| 297 | + || this.fullChars.indexOf(t) != -1 | ||
| 298 | + || this.name.indexOf(t) != -1) { | ||
| 299 | + rs.push(this.lineCode); | ||
| 300 | + } | ||
| 301 | + }catch (e){} | ||
| 244 | }); | 302 | }); |
| 245 | 303 | ||
| 246 | $('.line-btn-list .line-item').hide().each(function () { | 304 | $('.line-btn-list .line-item').hide().each(function () { |
src/main/resources/static/real_control_v2/fragments/north/toolbar.html
| @@ -120,11 +120,11 @@ | @@ -120,11 +120,11 @@ | ||
| 120 | </li> | 120 | </li> |
| 121 | {{/each}} | 121 | {{/each}} |
| 122 | </ul> | 122 | </ul> |
| 123 | - <div class="uk-navbar-content uk-navbar-flip uk-hidden-small"> | 123 | + <div class="uk-navbar-content uk-navbar-flip uk-hidden-small" style="padding-left: 0;"> |
| 124 | <div class="icon-item" id="mnavbarIconBtnMIN" data-uk-tooltip="{pos:'bottom'}" title="最小化"> | 124 | <div class="icon-item" id="mnavbarIconBtnMIN" data-uk-tooltip="{pos:'bottom'}" title="最小化"> |
| 125 | <img src="/real_control_v2/assets/imgs/icon/minus.png"> | 125 | <img src="/real_control_v2/assets/imgs/icon/minus.png"> |
| 126 | </div> | 126 | </div> |
| 127 | - | 127 | + |
| 128 | <div class="icon-item" id="mnavbarIconBtnCLOSE" data-uk-tooltip="{pos:'bottom'}" title="退出系统"> | 128 | <div class="icon-item" id="mnavbarIconBtnCLOSE" data-uk-tooltip="{pos:'bottom'}" title="退出系统"> |
| 129 | <img src="/real_control_v2/assets/imgs/icon/remove.png"> | 129 | <img src="/real_control_v2/assets/imgs/icon/remove.png"> |
| 130 | </div> | 130 | </div> |
src/main/resources/static/real_control_v2/js/data/data_basic.js
| @@ -164,7 +164,7 @@ var gb_data_basic = (function () { | @@ -164,7 +164,7 @@ var gb_data_basic = (function () { | ||
| 164 | //是否是环线 | 164 | //是否是环线 |
| 165 | isLoopLine: function (lineCode) { | 165 | isLoopLine: function (lineCode) { |
| 166 | var data = gb_common.groupBy(stationRoutes[lineCode], 'directions'); | 166 | var data = gb_common.groupBy(stationRoutes[lineCode], 'directions'); |
| 167 | - //如果上行起终点距离50米内 并且下行只有2个站点 | 167 | + //下行只有2个站点 |
| 168 | var len = data[0].length; | 168 | var len = data[0].length; |
| 169 | if (len > 0 && data[1].length == 2) { | 169 | if (len > 0 && data[1].length == 2) { |
| 170 | var first = data[0][0], | 170 | var first = data[0][0], |
| @@ -176,7 +176,8 @@ var gb_data_basic = (function () { | @@ -176,7 +176,8 @@ var gb_data_basic = (function () { | ||
| 176 | var fPoint = {latitude: first.station.gLaty, longitude: first.station.gLonx} | 176 | var fPoint = {latitude: first.station.gLaty, longitude: first.station.gLonx} |
| 177 | , ePoint = {latitude: end.station.gLaty, longitude: end.station.gLonx}; | 177 | , ePoint = {latitude: end.station.gLaty, longitude: end.station.gLonx}; |
| 178 | 178 | ||
| 179 | - if (geolib.getDistance(fPoint, ePoint) < 40) { | 179 | + //并且上行起终点距离200米内 |
| 180 | + if (geolib.getDistance(fPoint, ePoint) < 200) { | ||
| 180 | return true; | 181 | return true; |
| 181 | } | 182 | } |
| 182 | } | 183 | } |
src/main/resources/static/real_control_v2/js/data/json/north_toolbar.json
| @@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
| 65 | ] | 65 | ] |
| 66 | }, | 66 | }, |
| 67 | { | 67 | { |
| 68 | - "id": 1, | 68 | + "id": 2, |
| 69 | "text": "报表管理", | 69 | "text": "报表管理", |
| 70 | "clazz": "dropdown-column-2-lg", | 70 | "clazz": "dropdown-column-2-lg", |
| 71 | "columns": true, | 71 | "columns": true, |
| @@ -78,79 +78,79 @@ | @@ -78,79 +78,79 @@ | ||
| 78 | "header": 1 | 78 | "header": 1 |
| 79 | }, | 79 | }, |
| 80 | { | 80 | { |
| 81 | - "id": 4.5, | 81 | + "id": 2.2, |
| 82 | "text": "月存油报表", | 82 | "text": "月存油报表", |
| 83 | "event": "form_oilListMonth", | 83 | "event": "form_oilListMonth", |
| 84 | "icon": "uk-icon-table" | 84 | "icon": "uk-icon-table" |
| 85 | }, | 85 | }, |
| 86 | { | 86 | { |
| 87 | - "id": 4.6, | 87 | + "id": 2.3, |
| 88 | "text": "时刻表分析", | 88 | "text": "时刻表分析", |
| 89 | "event": "form_scheduleAnaly", | 89 | "event": "form_scheduleAnaly", |
| 90 | "icon": "uk-icon-table" | 90 | "icon": "uk-icon-table" |
| 91 | }, | 91 | }, |
| 92 | { | 92 | { |
| 93 | - "id": 4.7, | 93 | + "id": 2.4, |
| 94 | "text": "调度消息分析", | 94 | "text": "调度消息分析", |
| 95 | "event": "form_message", | 95 | "event": "form_message", |
| 96 | "icon": "uk-icon-table" | 96 | "icon": "uk-icon-table" |
| 97 | }, | 97 | }, |
| 98 | { | 98 | { |
| 99 | - "id": 4.8, | 99 | + "id": 2.5, |
| 100 | "text": "指令状态分析", | 100 | "text": "指令状态分析", |
| 101 | "event": "form_commandState", | 101 | "event": "form_commandState", |
| 102 | "icon": "uk-icon-table" | 102 | "icon": "uk-icon-table" |
| 103 | }, | 103 | }, |
| 104 | { | 104 | { |
| 105 | - "id": 4.9, | 105 | + "id": 2.6, |
| 106 | "text": "线路首末班查询", | 106 | "text": "线路首末班查询", |
| 107 | "event": "form_firstAndLastBus", | 107 | "event": "form_firstAndLastBus", |
| 108 | "icon": "uk-icon-table" | 108 | "icon": "uk-icon-table" |
| 109 | }, | 109 | }, |
| 110 | { | 110 | { |
| 111 | - "id": 5.0, | 111 | + "id": 2.7, |
| 112 | "text": "路单数据", | 112 | "text": "路单数据", |
| 113 | "event": "form_singledata", | 113 | "event": "form_singledata", |
| 114 | "icon": "uk-icon-table" | 114 | "icon": "uk-icon-table" |
| 115 | }, | 115 | }, |
| 116 | { | 116 | { |
| 117 | - "id": 5.1, | 117 | + "id": 2.8, |
| 118 | "text": "车辆加注", | 118 | "text": "车辆加注", |
| 119 | "event": "form_vehicleloading", | 119 | "event": "form_vehicleloading", |
| 120 | "icon": "uk-icon-table" | 120 | "icon": "uk-icon-table" |
| 121 | }, | 121 | }, |
| 122 | { | 122 | { |
| 123 | - "id": 5.2, | 123 | + "id": 2.9, |
| 124 | "text": "运营服务阶段报表", | 124 | "text": "运营服务阶段报表", |
| 125 | "event": "form_operationservice", | 125 | "event": "form_operationservice", |
| 126 | "icon": "uk-icon-table" | 126 | "icon": "uk-icon-table" |
| 127 | }, | 127 | }, |
| 128 | { | 128 | { |
| 129 | - "id": 5.3, | 129 | + "id": 3.0, |
| 130 | "text": "线路客流量报表", | 130 | "text": "线路客流量报表", |
| 131 | "event": "form_linepassengerflow", | 131 | "event": "form_linepassengerflow", |
| 132 | "icon": "uk-icon-table" | 132 | "icon": "uk-icon-table" |
| 133 | }, | 133 | }, |
| 134 | { | 134 | { |
| 135 | - "id": 5.4, | 135 | + "id": 3.1, |
| 136 | "text": "换人换车情况统计表", | 136 | "text": "换人换车情况统计表", |
| 137 | "event": "form_changetochange", | 137 | "event": "form_changetochange", |
| 138 | "icon": "uk-icon-table" | 138 | "icon": "uk-icon-table" |
| 139 | }, | 139 | }, |
| 140 | { | 140 | { |
| 141 | - "id": 5.5, | 141 | + "id": 3.2, |
| 142 | "text": "营运线路出车率统计表", | 142 | "text": "营运线路出车率统计表", |
| 143 | "event": "form_turnoutrate", | 143 | "event": "form_turnoutrate", |
| 144 | "icon": "uk-icon-table" | 144 | "icon": "uk-icon-table" |
| 145 | }, | 145 | }, |
| 146 | { | 146 | { |
| 147 | - "id": 5.6, | 147 | + "id": 3.3, |
| 148 | "text": "班次执行率统计表", | 148 | "text": "班次执行率统计表", |
| 149 | "event": "form_executionrate", | 149 | "event": "form_executionrate", |
| 150 | "icon": "uk-icon-table" | 150 | "icon": "uk-icon-table" |
| 151 | }, | 151 | }, |
| 152 | { | 152 | { |
| 153 | - "id": 5.6, | 153 | + "id": 3.4, |
| 154 | "text": "营运线路名称统计表", | 154 | "text": "营运线路名称统计表", |
| 155 | "event": "form_allline", | 155 | "event": "form_allline", |
| 156 | "icon": "uk-icon-table" | 156 | "icon": "uk-icon-table" |
| @@ -158,84 +158,84 @@ | @@ -158,84 +158,84 @@ | ||
| 158 | ], | 158 | ], |
| 159 | [ | 159 | [ |
| 160 | { | 160 | { |
| 161 | - "id": 3.1, | 161 | + "id": 4.1, |
| 162 | "text": "报表管理", | 162 | "text": "报表管理", |
| 163 | "header": 1 | 163 | "header": 1 |
| 164 | }, | 164 | }, |
| 165 | { | 165 | { |
| 166 | - "id": 3.2, | 166 | + "id": 4.2, |
| 167 | "text": "行车路单", | 167 | "text": "行车路单", |
| 168 | "event": "form_waybill", | 168 | "event": "form_waybill", |
| 169 | "icon": "uk-icon-table" | 169 | "icon": "uk-icon-table" |
| 170 | }, | 170 | }, |
| 171 | { | 171 | { |
| 172 | - "id": 3.3, | 172 | + "id": 4.3, |
| 173 | "text": "调度历史消息", | 173 | "text": "调度历史消息", |
| 174 | "event": "form_history_message", | 174 | "event": "form_history_message", |
| 175 | "icon": "uk-icon-table" | 175 | "icon": "uk-icon-table" |
| 176 | }, | 176 | }, |
| 177 | { | 177 | { |
| 178 | - "id": 3.4, | 178 | + "id": 4.4, |
| 179 | "text": "驾驶员请求台账", | 179 | "text": "驾驶员请求台账", |
| 180 | "event": "form_account", | 180 | "event": "form_account", |
| 181 | "icon": "uk-icon-table" | 181 | "icon": "uk-icon-table" |
| 182 | }, | 182 | }, |
| 183 | { | 183 | { |
| 184 | - "id": 3.5, | 184 | + "id": 4.5, |
| 185 | "text": "班次日报表", | 185 | "text": "班次日报表", |
| 186 | "event": "form_daily", | 186 | "event": "form_daily", |
| 187 | "icon": "uk-icon-table" | 187 | "icon": "uk-icon-table" |
| 188 | }, | 188 | }, |
| 189 | { | 189 | { |
| 190 | - "id": 3.6, | 190 | + "id": 4.6, |
| 191 | "text": "修正报表", | 191 | "text": "修正报表", |
| 192 | "event": "form_correctForm", | 192 | "event": "form_correctForm", |
| 193 | "icon": "uk-icon-table" | 193 | "icon": "uk-icon-table" |
| 194 | }, | 194 | }, |
| 195 | { | 195 | { |
| 196 | - "id": 3.7, | 196 | + "id": 4.7, |
| 197 | "text": "统计日报", | 197 | "text": "统计日报", |
| 198 | "event": "form_statisticsDaily", | 198 | "event": "form_statisticsDaily", |
| 199 | "icon": "uk-icon-table" | 199 | "icon": "uk-icon-table" |
| 200 | }, | 200 | }, |
| 201 | { | 201 | { |
| 202 | - "id": 3.8, | 202 | + "id": 4.8, |
| 203 | "text": "调度日报", | 203 | "text": "调度日报", |
| 204 | "event": "form_scheduleDaily", | 204 | "event": "form_scheduleDaily", |
| 205 | "icon": "uk-icon-table" | 205 | "icon": "uk-icon-table" |
| 206 | }, | 206 | }, |
| 207 | { | 207 | { |
| 208 | - "id": 3.9, | 208 | + "id": 4.9, |
| 209 | "text": "行车路单日报表", | 209 | "text": "行车路单日报表", |
| 210 | "event": "form_waybillday", | 210 | "event": "form_waybillday", |
| 211 | "icon": "uk-icon-table" | 211 | "icon": "uk-icon-table" |
| 212 | }, | 212 | }, |
| 213 | { | 213 | { |
| 214 | - "id": 4.0, | 214 | + "id": 5.0, |
| 215 | "text": "班次到离站", | 215 | "text": "班次到离站", |
| 216 | "event": "form_inoutstation", | 216 | "event": "form_inoutstation", |
| 217 | "icon": "uk-icon-table" | 217 | "icon": "uk-icon-table" |
| 218 | }, | 218 | }, |
| 219 | { | 219 | { |
| 220 | - "id": 4.1, | 220 | + "id": 5.1, |
| 221 | "text": "班次车辆人员日报表", | 221 | "text": "班次车辆人员日报表", |
| 222 | "event": "form_shifday", | 222 | "event": "form_shifday", |
| 223 | "icon": "uk-icon-table" | 223 | "icon": "uk-icon-table" |
| 224 | }, | 224 | }, |
| 225 | { | 225 | { |
| 226 | - "id": 4.2, | 226 | + "id": 5.2, |
| 227 | "text": "班次车辆人员月报表", | 227 | "text": "班次车辆人员月报表", |
| 228 | "event": "form_shiftuehiclemanth", | 228 | "event": "form_shiftuehiclemanth", |
| 229 | "icon": "uk-icon-table" | 229 | "icon": "uk-icon-table" |
| 230 | }, | 230 | }, |
| 231 | { | 231 | { |
| 232 | - "id": 4.3, | 232 | + "id": 5.3, |
| 233 | "text": "营运服务日报表", | 233 | "text": "营运服务日报表", |
| 234 | "event": "form_workDaily", | 234 | "event": "form_workDaily", |
| 235 | "icon": "uk-icon-table" | 235 | "icon": "uk-icon-table" |
| 236 | }, | 236 | }, |
| 237 | { | 237 | { |
| 238 | - "id": 4.4, | 238 | + "id": 5.4, |
| 239 | "text": "计划车辆班次人员", | 239 | "text": "计划车辆班次人员", |
| 240 | "event": "form_peopleCarPlan", | 240 | "event": "form_peopleCarPlan", |
| 241 | "icon": "uk-icon-table" | 241 | "icon": "uk-icon-table" |
| @@ -244,47 +244,47 @@ | @@ -244,47 +244,47 @@ | ||
| 244 | ] | 244 | ] |
| 245 | }, | 245 | }, |
| 246 | { | 246 | { |
| 247 | - "id": 2, | 247 | + "id": 3, |
| 248 | "text": "车载设备", | 248 | "text": "车载设备", |
| 249 | "children": [ | 249 | "children": [ |
| 250 | { | 250 | { |
| 251 | - "id": 2.1, | 251 | + "id": 3.1, |
| 252 | "text": "设备管理", | 252 | "text": "设备管理", |
| 253 | "event": "all_devices" | 253 | "event": "all_devices" |
| 254 | }, | 254 | }, |
| 255 | { | 255 | { |
| 256 | - "id": 2.3, | 256 | + "id": 3.2, |
| 257 | "text": "指令下发记录", | 257 | "text": "指令下发记录", |
| 258 | "event": "directive_history" | 258 | "event": "directive_history" |
| 259 | }, | 259 | }, |
| 260 | { | 260 | { |
| 261 | - "id": 2.2, | 261 | + "id": 3.3, |
| 262 | "text": "设备上报记录", | 262 | "text": "设备上报记录", |
| 263 | "event": "device_report" | 263 | "event": "device_report" |
| 264 | }, | 264 | }, |
| 265 | { | 265 | { |
| 266 | - "id": 2.3, | 266 | + "id": 3.4, |
| 267 | "text": "轨迹回放", | 267 | "text": "轨迹回放", |
| 268 | "event": "gps_play_back" | 268 | "event": "gps_play_back" |
| 269 | } | 269 | } |
| 270 | ] | 270 | ] |
| 271 | }, | 271 | }, |
| 272 | { | 272 | { |
| 273 | - "id": 3, | 273 | + "id": 4, |
| 274 | "text": "系统设置", | 274 | "text": "系统设置", |
| 275 | "children": [ | 275 | "children": [ |
| 276 | { | 276 | { |
| 277 | - "id": 3.1, | 277 | + "id": 4.1, |
| 278 | "text": "线路配置", | 278 | "text": "线路配置", |
| 279 | "event": "line_config" | 279 | "event": "line_config" |
| 280 | }, | 280 | }, |
| 281 | { | 281 | { |
| 282 | - "id": 3.2, | 282 | + "id": 4.2, |
| 283 | "text": "TTS", | 283 | "text": "TTS", |
| 284 | "event": "tts_config" | 284 | "event": "tts_config" |
| 285 | }, | 285 | }, |
| 286 | { | 286 | { |
| 287 | - "id": 3.3, | 287 | + "id": 4.3, |
| 288 | "text": "信号标记", | 288 | "text": "信号标记", |
| 289 | "event": "signal_state" | 289 | "event": "signal_state" |
| 290 | } | 290 | } |
src/main/resources/static/real_control_v2/js/forms/form_embed.js
| @@ -11,40 +11,32 @@ var gb_embed_form_hanlde = (function () { | @@ -11,40 +11,32 @@ var gb_embed_form_hanlde = (function () { | ||
| 11 | temps = gb_common.compileTempByDom(dom, {escape: false}); | 11 | temps = gb_common.compileTempByDom(dom, {escape: false}); |
| 12 | }); | 12 | }); |
| 13 | 13 | ||
| 14 | - //setTimeout(loadPlugins, 5000); | 14 | + /** |
| 15 | + * 打开表单片段 | ||
| 16 | + * @param pageUrl | ||
| 17 | + */ | ||
| 18 | + var open_modal_form_fragment = function (pageUrl, title) { | ||
| 19 | + //modal ID | ||
| 20 | + var id = '#formFragmentModal'; | ||
| 21 | + | ||
| 22 | + if($(id+'.uk-modal').length > 0){ | ||
| 23 | + $(id).remove(); | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + //将片段路径写入 localStorage | ||
| 27 | + window.localStorage.setItem('real_control_form_embed_pageUrl', pageUrl); | ||
| 28 | + //包裹页面 | ||
| 29 | + var wrapUrl = '/real_control_v2/js/forms/wrap.html?origin=real_control_iframe'; | ||
| 30 | + var htmlStr = gb_embed_form_hanlde.temps()['forms-embed-modal-temp']({pageUrl: wrapUrl, title: title}); | ||
| 31 | + $(document.body).append(htmlStr); | ||
| 32 | + UIkit.modal(id, {bgclose: false}).show(); | ||
| 33 | + }; | ||
| 15 | 34 | ||
| 16 | return { | 35 | return { |
| 17 | temps: function () { | 36 | temps: function () { |
| 18 | return temps; | 37 | return temps; |
| 19 | - } | 38 | + }, |
| 39 | + open_modal_form_fragment: open_modal_form_fragment | ||
| 20 | } | 40 | } |
| 21 | })(); | 41 | })(); |
| 22 | 42 | ||
| 23 | -/** | ||
| 24 | - * 打开表单片段 | ||
| 25 | - * @param pageUrl | ||
| 26 | - */ | ||
| 27 | -var open_modal_form_fragment = function (pageUrl, title) { | ||
| 28 | - //将片段路径写入 localStorage | ||
| 29 | - window.localStorage.setItem('real_control_form_embed_pageUrl', pageUrl); | ||
| 30 | - //包裹页面 | ||
| 31 | - var wrapUrl = '/real_control_v2/js/forms/wrap.html?origin=real_control_iframe'; | ||
| 32 | - //modal ID | ||
| 33 | - var id = '#formFragmentModal'; | ||
| 34 | - | ||
| 35 | - var htmlStr = gb_embed_form_hanlde.temps()['forms-embed-modal-temp']({pageUrl: wrapUrl, title: title}); | ||
| 36 | - $(document.body).append(htmlStr); | ||
| 37 | - UIkit.modal(id, {bgclose: false}).show(); | ||
| 38 | -}; | ||
| 39 | - | ||
| 40 | - | ||
| 41 | -/*function setIframeHeight(iframe) { | ||
| 42 | - setTimeout(function () { | ||
| 43 | - if (iframe) { | ||
| 44 | - var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow; | ||
| 45 | - if (iframeWin.document.body) { | ||
| 46 | - iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight; | ||
| 47 | - } | ||
| 48 | - } | ||
| 49 | - }, 800); | ||
| 50 | -};*/ |
src/main/resources/static/real_control_v2/js/north/toolbar.js
| @@ -100,82 +100,82 @@ var gb_northToolbar = (function () { | @@ -100,82 +100,82 @@ var gb_northToolbar = (function () { | ||
| 100 | open_modal('/real_control_v2/fragments/north/nav/cache_data/list.html', {}, modal_opts); | 100 | open_modal('/real_control_v2/fragments/north/nav/cache_data/list.html', {}, modal_opts); |
| 101 | }, | 101 | }, |
| 102 | form_waybill: function () { | 102 | form_waybill: function () { |
| 103 | - open_modal_form_fragment('/pages/forms/statement/waybill.html', '行车路单'); | 103 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/waybill.html', '行车路单'); |
| 104 | }, | 104 | }, |
| 105 | form_history_message: function () { | 105 | form_history_message: function () { |
| 106 | - open_modal_form_fragment('/pages/forms/statement/historyMessage.html', '调度历史消息'); | 106 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/historyMessage.html', '调度历史消息'); |
| 107 | }, | 107 | }, |
| 108 | form_account: function () { | 108 | form_account: function () { |
| 109 | - open_modal_form_fragment('/pages/forms/statement/account.html', '驾驶员请求台账'); | 109 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/account.html', '驾驶员请求台账'); |
| 110 | }, | 110 | }, |
| 111 | form_daily: function () { | 111 | form_daily: function () { |
| 112 | - open_modal_form_fragment('/pages/forms/statement/daily.html', '班次日报表'); | 112 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/daily.html', '班次日报表'); |
| 113 | }, | 113 | }, |
| 114 | form_correctForm: function () { | 114 | form_correctForm: function () { |
| 115 | - open_modal_form_fragment('/pages/forms/statement/correctForm.html', '修正报表'); | 115 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/correctForm.html', '修正报表'); |
| 116 | }, | 116 | }, |
| 117 | form_statisticsDaily: function () { | 117 | form_statisticsDaily: function () { |
| 118 | - open_modal_form_fragment('/pages/forms/statement/statisticsDaily.html', '统计日报'); | 118 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/statisticsDaily.html', '统计日报'); |
| 119 | }, | 119 | }, |
| 120 | form_scheduleDaily: function () { | 120 | form_scheduleDaily: function () { |
| 121 | - open_modal_form_fragment('/pages/forms/statement/scheduleDaily.html', '调度日报'); | 121 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/scheduleDaily.html', '调度日报'); |
| 122 | }, | 122 | }, |
| 123 | form_waybillday: function () { | 123 | form_waybillday: function () { |
| 124 | - open_modal_form_fragment('/pages/forms/statement/waybillday.html', '行车路单日报表'); | 124 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/waybillday.html', '行车路单日报表'); |
| 125 | }, | 125 | }, |
| 126 | form_inoutstation: function () { | 126 | form_inoutstation: function () { |
| 127 | - open_modal_form_fragment('/pages/report/inoutstation.html', '班次到离站'); | 127 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/inoutstation.html', '班次到离站'); |
| 128 | }, | 128 | }, |
| 129 | form_shifday: function () { | 129 | form_shifday: function () { |
| 130 | - open_modal_form_fragment('/pages/mforms/shifdays/shifday.html', '班次车辆人员日报表'); | 130 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/shifdays/shifday.html', '班次车辆人员日报表'); |
| 131 | }, | 131 | }, |
| 132 | form_shiftuehiclemanth: function () { | 132 | form_shiftuehiclemanth: function () { |
| 133 | - open_modal_form_fragment('/pages/mforms/shiftuehiclemanths/shiftuehiclemanth.html', '班次车辆人员月报表'); | 133 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/shiftuehiclemanths/shiftuehiclemanth.html', '班次车辆人员月报表'); |
| 134 | }, | 134 | }, |
| 135 | form_workDaily: function () { | 135 | form_workDaily: function () { |
| 136 | - open_modal_form_fragment('/pages/forms/statement/workDaily.html', '营运服务日报表'); | 136 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/workDaily.html', '营运服务日报表'); |
| 137 | }, | 137 | }, |
| 138 | form_peopleCarPlan: function () { | 138 | form_peopleCarPlan: function () { |
| 139 | - open_modal_form_fragment('/pages/forms/statement/peopleCarPlan.html', '计划车辆班次人员'); | 139 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/peopleCarPlan.html', '计划车辆班次人员'); |
| 140 | }, | 140 | }, |
| 141 | form_oilListMonth: function () { | 141 | form_oilListMonth: function () { |
| 142 | - open_modal_form_fragment('/pages/report/oil/oilListMonth.html', '月存油报表'); | 142 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/oil/oilListMonth.html', '月存油报表'); |
| 143 | }, | 143 | }, |
| 144 | form_scheduleAnaly: function () { | 144 | form_scheduleAnaly: function () { |
| 145 | - open_modal_form_fragment('/pages/forms/statement/scheduleAnaly.html', '时刻表分析'); | 145 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/scheduleAnaly.html', '时刻表分析'); |
| 146 | }, | 146 | }, |
| 147 | form_message: function () { | 147 | form_message: function () { |
| 148 | - open_modal_form_fragment('/pages/report/message/message.html', '调度消息分析'); | 148 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/report/message/message.html', '调度消息分析'); |
| 149 | }, | 149 | }, |
| 150 | form_commandState: function () { | 150 | form_commandState: function () { |
| 151 | - open_modal_form_fragment('/pages/forms/statement/commandState.html', '指令状态分析'); | 151 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/commandState.html', '指令状态分析'); |
| 152 | }, | 152 | }, |
| 153 | form_firstAndLastBus: function () { | 153 | form_firstAndLastBus: function () { |
| 154 | - open_modal_form_fragment('/pages/forms/statement/firstAndLastBus.html', '线路首末班查询'); | 154 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/forms/statement/firstAndLastBus.html', '线路首末班查询'); |
| 155 | }, | 155 | }, |
| 156 | form_singledata: function () { | 156 | form_singledata: function () { |
| 157 | - open_modal_form_fragment('/pages/mforms/singledatas/singledata.html', '路单数据'); | 157 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/singledatas/singledata.html', '路单数据'); |
| 158 | }, | 158 | }, |
| 159 | form_vehicleloading: function () { | 159 | form_vehicleloading: function () { |
| 160 | - open_modal_form_fragment('/pages/mforms/vehicleloadings/vehicleloading.html', '车辆加注'); | 160 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/vehicleloadings/vehicleloading.html', '车辆加注'); |
| 161 | }, | 161 | }, |
| 162 | form_operationservice: function () { | 162 | form_operationservice: function () { |
| 163 | - open_modal_form_fragment('/pages/mforms/operationservices/operationservice.html', '运营服务阶段报表'); | 163 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/operationservices/operationservice.html', '运营服务阶段报表'); |
| 164 | }, | 164 | }, |
| 165 | form_linepassengerflow: function () { | 165 | form_linepassengerflow: function () { |
| 166 | - open_modal_form_fragment('/pages/mforms/linepassengerflows/linepassengerflow.html', '线路客流量报表'); | 166 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/linepassengerflows/linepassengerflow.html', '线路客流量报表'); |
| 167 | }, | 167 | }, |
| 168 | form_changetochange: function () { | 168 | form_changetochange: function () { |
| 169 | - open_modal_form_fragment('/pages/mforms/changetochanges/changetochange.html', '换人换车情况统计表'); | 169 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/changetochanges/changetochange.html', '换人换车情况统计表'); |
| 170 | }, | 170 | }, |
| 171 | form_turnoutrate: function () { | 171 | form_turnoutrate: function () { |
| 172 | - open_modal_form_fragment('/pages/mforms/changetochanges/turnoutrate.html', '营运线路出车率统计表'); | 172 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/changetochanges/turnoutrate.html', '营运线路出车率统计表'); |
| 173 | }, | 173 | }, |
| 174 | form_executionrate: function () { | 174 | form_executionrate: function () { |
| 175 | - open_modal_form_fragment('/pages/mforms/executionrates/executionrate.html', '班次执行率统计表'); | 175 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/executionrates/executionrate.html', '班次执行率统计表'); |
| 176 | }, | 176 | }, |
| 177 | form_allline: function () { | 177 | form_allline: function () { |
| 178 | - open_modal_form_fragment('/pages/mforms/alllines/allline.html', '营运线路名称统计表'); | 178 | + gb_embed_form_hanlde.open_modal_form_fragment('/pages/mforms/alllines/allline.html', '营运线路名称统计表'); |
| 179 | } | 179 | } |
| 180 | }; | 180 | }; |
| 181 | 181 |