Commit c4487d2b99f1cd410281d05fba01ea4f2b5a7516
1 parent
d51a5bb7
update...
Showing
5 changed files
with
86 additions
and
14 deletions
src/main/resources/static/pages/base/geo_data_edit/css/mian.css
| @@ -772,4 +772,23 @@ div[id*='PanoramaFlashWraperTANGRAM']{ | @@ -772,4 +772,23 @@ div[id*='PanoramaFlashWraperTANGRAM']{ | ||
| 772 | 772 | ||
| 773 | .line_change_panel .uk-list>li{ | 773 | .line_change_panel .uk-list>li{ |
| 774 | padding: 5px; | 774 | padding: 5px; |
| 775 | +} | ||
| 776 | + | ||
| 777 | +.instructions_tips{ | ||
| 778 | + position: absolute; | ||
| 779 | + z-index: 9999; | ||
| 780 | + background: #fffdf0; | ||
| 781 | + width: 635px; | ||
| 782 | + left: 590px; | ||
| 783 | + top: 10px; | ||
| 784 | + font-size: 14px; | ||
| 785 | + padding: 15px 15px 0; | ||
| 786 | + box-shadow: 5px 5px 15px rgba(90, 90, 90, 0.48); | ||
| 787 | + color: #000000; | ||
| 788 | + display: none; | ||
| 789 | +} | ||
| 790 | + | ||
| 791 | +.instructions_tips .uk-close{ | ||
| 792 | + position: absolute; | ||
| 793 | + right: 20px; | ||
| 775 | } | 794 | } |
| 776 | \ No newline at end of file | 795 | \ No newline at end of file |
src/main/resources/static/pages/base/geo_data_edit/js/map.js
| @@ -37,7 +37,7 @@ var gb_ct_map = function () { | @@ -37,7 +37,7 @@ var gb_ct_map = function () { | ||
| 37 | 37 | ||
| 38 | map = new BMap.Map($(gb_map_consts.mapContainer)[0], {enableMapClick: false}); | 38 | map = new BMap.Map($(gb_map_consts.mapContainer)[0], {enableMapClick: false}); |
| 39 | //中心点和缩放级别 | 39 | //中心点和缩放级别 |
| 40 | - map.centerAndZoom(new BMap.Point(gb_map_consts.center_point.lng, gb_map_consts.center_point.lat), 14); | 40 | + map.centerAndZoom(new BMap.Point(gb_map_consts.center_point.lng, gb_map_consts.center_point.lat), 15); |
| 41 | map.enableScrollWheelZoom(); | 41 | map.enableScrollWheelZoom(); |
| 42 | 42 | ||
| 43 | var stCtrl = new BMap.PanoramaControl(); //构造全景控件 | 43 | var stCtrl = new BMap.PanoramaControl(); //构造全景控件 |
src/main/resources/static/pages/base/geo_data_edit/js/submit.js
| @@ -3,6 +3,10 @@ | @@ -3,6 +3,10 @@ | ||
| 3 | */ | 3 | */ |
| 4 | var gb_data_submit = function () { | 4 | var gb_data_submit = function () { |
| 5 | 5 | ||
| 6 | + function confirmRejected() { | ||
| 7 | + console.log('Rejected'); | ||
| 8 | + } | ||
| 9 | + | ||
| 6 | /** | 10 | /** |
| 7 | * 缓冲区编辑提交 | 11 | * 缓冲区编辑提交 |
| 8 | */ | 12 | */ |
| @@ -38,7 +42,7 @@ var gb_data_submit = function () { | @@ -38,7 +42,7 @@ var gb_data_submit = function () { | ||
| 38 | //退出编辑模式 | 42 | //退出编辑模式 |
| 39 | gb_ct_map.exitEditBufferStatus(rs.station); | 43 | gb_ct_map.exitEditBufferStatus(rs.station); |
| 40 | }); | 44 | }); |
| 41 | - }); | 45 | + }, confirmRejected); |
| 42 | return false; | 46 | return false; |
| 43 | }); | 47 | }); |
| 44 | 48 | ||
| @@ -57,7 +61,7 @@ var gb_data_submit = function () { | @@ -57,7 +61,7 @@ var gb_data_submit = function () { | ||
| 57 | UIkit.notification("修改成功!", {status: 'success'}); | 61 | UIkit.notification("修改成功!", {status: 'success'}); |
| 58 | gb_station_route.update(rs.station); | 62 | gb_station_route.update(rs.station); |
| 59 | }); | 63 | }); |
| 60 | - }); | 64 | + },confirmRejected); |
| 61 | }); | 65 | }); |
| 62 | 66 | ||
| 63 | /** | 67 | /** |
| @@ -86,7 +90,7 @@ var gb_data_submit = function () { | @@ -86,7 +90,7 @@ var gb_data_submit = function () { | ||
| 86 | hide_run_text(); | 90 | hide_run_text(); |
| 87 | UIkit.notification("修改成功!", {status: 'success'}); | 91 | UIkit.notification("修改成功!", {status: 'success'}); |
| 88 | }); | 92 | }); |
| 89 | - }); | 93 | + },confirmRejected); |
| 90 | return false; | 94 | return false; |
| 91 | }); | 95 | }); |
| 92 | 96 | ||
| @@ -122,7 +126,7 @@ var gb_data_submit = function () { | @@ -122,7 +126,7 @@ var gb_data_submit = function () { | ||
| 122 | $('.add_road_search_point_wrap').remove(); | 126 | $('.add_road_search_point_wrap').remove(); |
| 123 | gb_ct_map.exitEditRoadStatus(null, true); | 127 | gb_ct_map.exitEditRoadStatus(null, true); |
| 124 | }); | 128 | }); |
| 125 | - }); | 129 | + },confirmRejected); |
| 126 | return false; | 130 | return false; |
| 127 | }); | 131 | }); |
| 128 | 132 | ||
| @@ -141,7 +145,6 @@ var gb_data_submit = function () { | @@ -141,7 +145,6 @@ var gb_data_submit = function () { | ||
| 141 | } | 145 | } |
| 142 | data.gsectionVector = gsectionVector.substr(0, gsectionVector.length - 1); | 146 | data.gsectionVector = gsectionVector.substr(0, gsectionVector.length - 1); |
| 143 | 147 | ||
| 144 | - console.log('data', data); | ||
| 145 | UIkit.modal.confirm('确定保存编辑的【'+data.sectionName+'】?').then(function() { | 148 | UIkit.modal.confirm('确定保存编辑的【'+data.sectionName+'】?').then(function() { |
| 146 | show_run_text('正在保存...'); | 149 | show_run_text('正在保存...'); |
| 147 | 150 | ||
| @@ -152,7 +155,7 @@ var gb_data_submit = function () { | @@ -152,7 +155,7 @@ var gb_data_submit = function () { | ||
| 152 | 155 | ||
| 153 | gb_ct_map.exitEditRoadStatus(rs.road); | 156 | gb_ct_map.exitEditRoadStatus(rs.road); |
| 154 | }); | 157 | }); |
| 155 | - }); | 158 | + },confirmRejected); |
| 156 | }); | 159 | }); |
| 157 | 160 | ||
| 158 | /** | 161 | /** |
| @@ -172,7 +175,7 @@ var gb_data_submit = function () { | @@ -172,7 +175,7 @@ var gb_data_submit = function () { | ||
| 172 | clearAll(); | 175 | clearAll(); |
| 173 | startup(); | 176 | startup(); |
| 174 | }); | 177 | }); |
| 175 | - }); | 178 | + },confirmRejected); |
| 176 | }); | 179 | }); |
| 177 | 180 | ||
| 178 | var show_run_text = function (t) { | 181 | var show_run_text = function (t) { |
| @@ -201,7 +204,7 @@ var gb_data_submit = function () { | @@ -201,7 +204,7 @@ var gb_data_submit = function () { | ||
| 201 | hide_run_text(); | 204 | hide_run_text(); |
| 202 | UIkit.notification("撤销成功!", {status: 'success'}); | 205 | UIkit.notification("撤销成功!", {status: 'success'}); |
| 203 | }); | 206 | }); |
| 204 | - }); | 207 | + },confirmRejected); |
| 205 | } | 208 | } |
| 206 | 209 | ||
| 207 | /** | 210 | /** |
| @@ -221,7 +224,7 @@ var gb_data_submit = function () { | @@ -221,7 +224,7 @@ var gb_data_submit = function () { | ||
| 221 | hide_run_text(); | 224 | hide_run_text(); |
| 222 | UIkit.notification("撤销成功!", {status: 'success'}); | 225 | UIkit.notification("撤销成功!", {status: 'success'}); |
| 223 | }); | 226 | }); |
| 224 | - }); | 227 | + },confirmRejected); |
| 225 | }; | 228 | }; |
| 226 | 229 | ||
| 227 | function getUpDown(){ | 230 | function getUpDown(){ |
src/main/resources/static/pages/base/geo_data_edit/main.html
| @@ -20,6 +20,19 @@ | @@ -20,6 +20,19 @@ | ||
| 20 | <div><span uk-spinner></span><span class="text">正在加载...</span></div> | 20 | <div><span uk-spinner></span><span class="text">正在加载...</span></div> |
| 21 | </div> | 21 | </div> |
| 22 | <div class="ct_page" > | 22 | <div class="ct_page" > |
| 23 | + <div class="instructions_tips uk-animation-slide-top-medium"> | ||
| 24 | + <button type="button" uk-close></button> | ||
| 25 | + <div> | ||
| 26 | + <h4>说明</h4> | ||
| 27 | + <ul class="uk-list"> | ||
| 28 | + <li>1、所有的改道、缩线、并线等对走向调整都必须新建版本,以保留原走向版本。</li> | ||
| 29 | + <li>2、只有在人工数据录入错误的情况下,才有理由对当前启用的版本进行走向编辑。</li> | ||
| 30 | + <li>3、走向版本可以任意切换,但是必须维护好一个准确的“版本切换记录”。</li> | ||
| 31 | + <hr> | ||
| 32 | + <li>4、调整缓冲区、修改站点名称、修改路段名称 不算走向调整,不需要新建版本。</li> | ||
| 33 | + </ul> | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 23 | <div id="map_wrap"></div> | 36 | <div id="map_wrap"></div> |
| 24 | <div class="main_left_panel_m_layer"></div> | 37 | <div class="main_left_panel_m_layer"></div> |
| 25 | <div class="main_left_panel"> | 38 | <div class="main_left_panel"> |
| @@ -34,6 +47,8 @@ | @@ -34,6 +47,8 @@ | ||
| 34 | <ul class="uk-list"></ul> | 47 | <ul class="uk-list"></ul> |
| 35 | </div> | 48 | </div> |
| 36 | 49 | ||
| 50 | + | ||
| 51 | + | ||
| 37 | <a uk-icon="icon: trash" class="remove_line_version_icon uk-animation-slide-right-small" title="删除线路版本" style="display: none" uk-tooltip></a> | 52 | <a uk-icon="icon: trash" class="remove_line_version_icon uk-animation-slide-right-small" title="删除线路版本" style="display: none" uk-tooltip></a> |
| 38 | <a uk-icon="icon: plus" class="add_line_version_icon" title="新增一个线路版本" uk-tooltip></a> | 53 | <a uk-icon="icon: plus" class="add_line_version_icon" title="新增一个线路版本" uk-tooltip></a> |
| 39 | </div> | 54 | </div> |
| @@ -79,7 +94,7 @@ | @@ -79,7 +94,7 @@ | ||
| 79 | <div class="main_rt_tools_panel"> | 94 | <div class="main_rt_tools_panel"> |
| 80 | <!--<a style="color: red;" uk-icon="icon: unlock;ratio: .9" class="_icon" title="当前版本有变更未启用" uk-tooltip="pos:bottom"></a>--> | 95 | <!--<a style="color: red;" uk-icon="icon: unlock;ratio: .9" class="_icon" title="当前版本有变更未启用" uk-tooltip="pos:bottom"></a>--> |
| 81 | 96 | ||
| 82 | - <a uk-icon="icon: bookmark;ratio: .9" class="_icon" title="变更日志,日后再说" uk-tooltip="pos:bottom"></a> | 97 | + <a uk-icon="icon: bookmark;ratio: .9" class="_icon" title="走向版本变更记录" uk-tooltip="pos:bottom"></a> |
| 83 | <a uk-icon="icon: expand;ratio: .9" class="_icon full_screen_icon"></a> | 98 | <a uk-icon="icon: expand;ratio: .9" class="_icon full_screen_icon"></a> |
| 84 | </div> | 99 | </div> |
| 85 | </div> | 100 | </div> |
| @@ -165,14 +180,16 @@ | @@ -165,14 +180,16 @@ | ||
| 165 | //文件加载 | 180 | //文件加载 |
| 166 | var res_load_ep = EventProxy.create('load_common_data', 'load_station_route','load_road_route' | 181 | var res_load_ep = EventProxy.create('load_common_data', 'load_station_route','load_road_route' |
| 167 | , 'load_version_manage', 'load_history_edit_logs', 'load_map', function () { | 182 | , 'load_version_manage', 'load_history_edit_logs', 'load_map', function () { |
| 168 | - startup(); | 183 | + startup(function () { |
| 184 | + $('.instructions_tips').show(); | ||
| 185 | + }); | ||
| 169 | 186 | ||
| 170 | gb_change_line.init(); | 187 | gb_change_line.init(); |
| 171 | }); | 188 | }); |
| 172 | 189 | ||
| 173 | var g_line_code; | 190 | var g_line_code; |
| 174 | var g_version; | 191 | var g_version; |
| 175 | - var startup = function () { | 192 | + var startup = function (cb) { |
| 176 | g_line_code = storage.getItem('geo_data_edit_line_code'); | 193 | g_line_code = storage.getItem('geo_data_edit_line_code'); |
| 177 | 194 | ||
| 178 | gb_main_ep = new EventProxy(); | 195 | gb_main_ep = new EventProxy(); |
| @@ -195,6 +212,8 @@ | @@ -195,6 +212,8 @@ | ||
| 195 | 212 | ||
| 196 | $loadPanel.hide(); | 213 | $loadPanel.hide(); |
| 197 | gb_ct_search.init(); | 214 | gb_ct_search.init(); |
| 215 | + | ||
| 216 | + cb && cb(); | ||
| 198 | }); | 217 | }); |
| 199 | }; | 218 | }; |
| 200 | 219 | ||
| @@ -233,6 +252,16 @@ | @@ -233,6 +252,16 @@ | ||
| 233 | e.stopPropagation(); | 252 | e.stopPropagation(); |
| 234 | return false; | 253 | return false; |
| 235 | }); | 254 | }); |
| 255 | + | ||
| 256 | + $(document).on('click', 'button.cancel', function (e) { | ||
| 257 | + e.stopPropagation(); | ||
| 258 | + return false; | ||
| 259 | + }); | ||
| 260 | + | ||
| 261 | + //关闭说明 | ||
| 262 | + $('.instructions_tips .uk-close').on('click', function () { | ||
| 263 | + $('.instructions_tips').remove(); | ||
| 264 | + }); | ||
| 236 | </script> | 265 | </script> |
| 237 | 266 | ||
| 238 | 267 |
src/main/resources/static/real_control_v2/fragments/north/nav/history_sch/h_add_sub_task_other.html
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | <script id="sub-task-other-form-temp" type="text/html"> | 10 | <script id="sub-task-other-form-temp" type="text/html"> |
| 11 | <input type="hidden" value="{{sch.id}}" name="schedule.id"> | 11 | <input type="hidden" value="{{sch.id}}" name="schedule.id"> |
| 12 | <div class="uk-grid"> | 12 | <div class="uk-grid"> |
| 13 | - <div class="uk-width-1-1"> | 13 | + <div class="uk-width-1-2"> |
| 14 | <div class="uk-form-row"> | 14 | <div class="uk-form-row"> |
| 15 | <label class="uk-form-label">班次类型</label> | 15 | <label class="uk-form-label">班次类型</label> |
| 16 | <div class="uk-form-controls"> | 16 | <div class="uk-form-controls"> |
| @@ -23,6 +23,22 @@ | @@ -23,6 +23,22 @@ | ||
| 23 | </div> | 23 | </div> |
| 24 | </div> | 24 | </div> |
| 25 | </div> | 25 | </div> |
| 26 | + | ||
| 27 | + <div class="uk-width-1-2 inout_reason_wrap" style="display: none"> | ||
| 28 | + <div class="uk-form-row"> | ||
| 29 | + <label class="uk-form-label">进出场原因</label> | ||
| 30 | + <div class="uk-form-controls"> | ||
| 31 | + <select class="form-control" name="reason" required> | ||
| 32 | + <option value="">请选择..</option> | ||
| 33 | + <option>故障</option> | ||
| 34 | + <option>肇事</option> | ||
| 35 | + <option>纠纷</option> | ||
| 36 | + <option>其他</option> | ||
| 37 | + </select> | ||
| 38 | + </div> | ||
| 39 | + </div> | ||
| 40 | + </div> | ||
| 41 | + | ||
| 26 | </div> | 42 | </div> |
| 27 | <div class="uk-grid"> | 43 | <div class="uk-grid"> |
| 28 | <div class="uk-width-1-2"> | 44 | <div class="uk-width-1-2"> |
| @@ -167,6 +183,7 @@ | @@ -167,6 +183,7 @@ | ||
| 167 | 183 | ||
| 168 | //班次类型 | 184 | //班次类型 |
| 169 | $('[name=type2]', f).on('change', function () { | 185 | $('[name=type2]', f).on('change', function () { |
| 186 | + $('.inout_reason_wrap').hide(); | ||
| 170 | var routes = stationRoutes[sch.xlDir] | 187 | var routes = stationRoutes[sch.xlDir] |
| 171 | , lastCode = routes[routes.length - 1].stationCode | 188 | , lastCode = routes[routes.length - 1].stationCode |
| 172 | , opts = '', park_opts = ''; | 189 | , opts = '', park_opts = ''; |
| @@ -184,11 +201,15 @@ | @@ -184,11 +201,15 @@ | ||
| 184 | qdz.html(park_opts).val(information.carPark); | 201 | qdz.html(park_opts).val(information.carPark); |
| 185 | zdz.html(opts); | 202 | zdz.html(opts); |
| 186 | mType.val('empty'); | 203 | mType.val('empty'); |
| 204 | + //进出场原因 | ||
| 205 | + $('.inout_reason_wrap').show(); | ||
| 187 | break; | 206 | break; |
| 188 | case '2'://进场 | 207 | case '2'://进场 |
| 189 | qdz.html(opts); | 208 | qdz.html(opts); |
| 190 | zdz.html(park_opts).val(information.carPark); | 209 | zdz.html(park_opts).val(information.carPark); |
| 191 | mType.val('empty'); | 210 | mType.val('empty'); |
| 211 | + //进出场原因 | ||
| 212 | + $('.inout_reason_wrap').show(); | ||
| 192 | break; | 213 | break; |
| 193 | default: | 214 | default: |
| 194 | qdz.html(opts); | 215 | qdz.html(opts); |