Commit c4487d2b99f1cd410281d05fba01ea4f2b5a7516

Authored by 潘钊
1 parent d51a5bb7

update...

src/main/resources/static/pages/base/geo_data_edit/css/mian.css
... ... @@ -772,4 +772,23 @@ div[id*='PanoramaFlashWraperTANGRAM']{
772 772  
773 773 .line_change_panel .uk-list>li{
774 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 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 37  
38 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 41 map.enableScrollWheelZoom();
42 42  
43 43 var stCtrl = new BMap.PanoramaControl(); //构造全景控件
... ...
src/main/resources/static/pages/base/geo_data_edit/js/submit.js
... ... @@ -3,6 +3,10 @@
3 3 */
4 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 42 //退出编辑模式
39 43 gb_ct_map.exitEditBufferStatus(rs.station);
40 44 });
41   - });
  45 + }, confirmRejected);
42 46 return false;
43 47 });
44 48  
... ... @@ -57,7 +61,7 @@ var gb_data_submit = function () {
57 61 UIkit.notification("修改成功!", {status: 'success'});
58 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 90 hide_run_text();
87 91 UIkit.notification("修改成功!", {status: 'success'});
88 92 });
89   - });
  93 + },confirmRejected);
90 94 return false;
91 95 });
92 96  
... ... @@ -122,7 +126,7 @@ var gb_data_submit = function () {
122 126 $('.add_road_search_point_wrap').remove();
123 127 gb_ct_map.exitEditRoadStatus(null, true);
124 128 });
125   - });
  129 + },confirmRejected);
126 130 return false;
127 131 });
128 132  
... ... @@ -141,7 +145,6 @@ var gb_data_submit = function () {
141 145 }
142 146 data.gsectionVector = gsectionVector.substr(0, gsectionVector.length - 1);
143 147  
144   - console.log('data', data);
145 148 UIkit.modal.confirm('确定保存编辑的【'+data.sectionName+'】?').then(function() {
146 149 show_run_text('正在保存...');
147 150  
... ... @@ -152,7 +155,7 @@ var gb_data_submit = function () {
152 155  
153 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 175 clearAll();
173 176 startup();
174 177 });
175   - });
  178 + },confirmRejected);
176 179 });
177 180  
178 181 var show_run_text = function (t) {
... ... @@ -201,7 +204,7 @@ var gb_data_submit = function () {
201 204 hide_run_text();
202 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 224 hide_run_text();
222 225 UIkit.notification("撤销成功!", {status: 'success'});
223 226 });
224   - });
  227 + },confirmRejected);
225 228 };
226 229  
227 230 function getUpDown(){
... ...
src/main/resources/static/pages/base/geo_data_edit/main.html
... ... @@ -20,6 +20,19 @@
20 20 <div><span uk-spinner></span><span class="text">正在加载...</span></div>
21 21 </div>
22 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 36 <div id="map_wrap"></div>
24 37 <div class="main_left_panel_m_layer"></div>
25 38 <div class="main_left_panel">
... ... @@ -34,6 +47,8 @@
34 47 <ul class="uk-list"></ul>
35 48 </div>
36 49  
  50 +
  51 +
37 52 <a uk-icon="icon: trash" class="remove_line_version_icon uk-animation-slide-right-small" title="删除线路版本" style="display: none" uk-tooltip></a>
38 53 <a uk-icon="icon: plus" class="add_line_version_icon" title="新增一个线路版本" uk-tooltip></a>
39 54 </div>
... ... @@ -79,7 +94,7 @@
79 94 <div class="main_rt_tools_panel">
80 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 98 <a uk-icon="icon: expand;ratio: .9" class="_icon full_screen_icon"></a>
84 99 </div>
85 100 </div>
... ... @@ -165,14 +180,16 @@
165 180 //文件加载
166 181 var res_load_ep = EventProxy.create('load_common_data', 'load_station_route','load_road_route'
167 182 , 'load_version_manage', 'load_history_edit_logs', 'load_map', function () {
168   - startup();
  183 + startup(function () {
  184 + $('.instructions_tips').show();
  185 + });
169 186  
170 187 gb_change_line.init();
171 188 });
172 189  
173 190 var g_line_code;
174 191 var g_version;
175   - var startup = function () {
  192 + var startup = function (cb) {
176 193 g_line_code = storage.getItem('geo_data_edit_line_code');
177 194  
178 195 gb_main_ep = new EventProxy();
... ... @@ -195,6 +212,8 @@
195 212  
196 213 $loadPanel.hide();
197 214 gb_ct_search.init();
  215 +
  216 + cb && cb();
198 217 });
199 218 };
200 219  
... ... @@ -233,6 +252,16 @@
233 252 e.stopPropagation();
234 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 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 10 <script id="sub-task-other-form-temp" type="text/html">
11 11 <input type="hidden" value="{{sch.id}}" name="schedule.id">
12 12 <div class="uk-grid">
13   - <div class="uk-width-1-1">
  13 + <div class="uk-width-1-2">
14 14 <div class="uk-form-row">
15 15 <label class="uk-form-label">班次类型</label>
16 16 <div class="uk-form-controls">
... ... @@ -23,6 +23,22 @@
23 23 </div>
24 24 </div>
25 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 42 </div>
27 43 <div class="uk-grid">
28 44 <div class="uk-width-1-2">
... ... @@ -167,6 +183,7 @@
167 183  
168 184 //班次类型
169 185 $('[name=type2]', f).on('change', function () {
  186 + $('.inout_reason_wrap').hide();
170 187 var routes = stationRoutes[sch.xlDir]
171 188 , lastCode = routes[routes.length - 1].stationCode
172 189 , opts = '', park_opts = '';
... ... @@ -184,11 +201,15 @@
184 201 qdz.html(park_opts).val(information.carPark);
185 202 zdz.html(opts);
186 203 mType.val('empty');
  204 + //进出场原因
  205 + $('.inout_reason_wrap').show();
187 206 break;
188 207 case '2'://进场
189 208 qdz.html(opts);
190 209 zdz.html(park_opts).val(information.carPark);
191 210 mType.val('empty');
  211 + //进出场原因
  212 + $('.inout_reason_wrap').show();
192 213 break;
193 214 default:
194 215 qdz.html(opts);
... ...