Commit 2c467da32b3b0b7b5cb4e5c9584175134f4d05f9

Authored by 潘钊
1 parent 78d1c539

update...

src/main/java/com/bsth/data/pilot80/PilotReport.java
... ... @@ -78,6 +78,12 @@ public class PilotReport {
78 78 //d80MultiMap.put(d80.getData().getLineId().toString(), d80);
79 79  
80 80 String nbbm = BasicData.deviceId2NbbmMap.get(d80.getDeviceId());
  81 + //上报时,在执行的班次
  82 + if(StringUtils.isNotEmpty(nbbm)){
  83 + ScheduleRealInfo sch = dayOfSchedule.executeCurr(nbbm);
  84 + if(null != sch)
  85 + d80.setSchId(sch.getId());
  86 + }
81 87 //处理
82 88 switch (d80.getData().getRequestCode()) {
83 89 //出场请求
... ...
src/main/java/com/bsth/entity/directive/D80.java
... ... @@ -62,7 +62,17 @@ public class D80 {
62 62 private Date handleTime;
63 63  
64 64 private String remarks;
65   -
  65 +
  66 + private Long schId;
  67 +
  68 + public Long getSchId() {
  69 + return schId;
  70 + }
  71 +
  72 + public void setSchId(Long schId) {
  73 + this.schId = schId;
  74 + }
  75 +
66 76 @Embeddable
67 77 public static class D80Data {
68 78  
... ...
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
... ... @@ -3270,7 +3270,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf
3270 3270 ScheduleRealInfo sch = dayOfSchedule.get(id);
3271 3271 if (sch != null) {
3272 3272 sch.setBcType(bcType);
3273   - sch.addRemarks(remarks);
  3273 + sch.setRemarks(remarks);
3274 3274 rs.put("status", ResponseCode.SUCCESS);
3275 3275 rs.put("t", sch);
3276 3276  
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/dftz.html
... ... @@ -164,7 +164,7 @@
164 164  
165 165 $('[name=bcType]', modal).on('change', function(){
166 166 var type = $(this).val();
167   - if(sch.bcType != 'normal')
  167 + if(sch.bcType == 'in' || sch.bcType == 'out')
168 168 return;
169 169  
170 170 //重置类型,等待调整界面触发刷新事件
... ... @@ -188,6 +188,18 @@
188 188 $(detailModal).trigger('init', {sch: sch, parentModal: modal, _dfsj: $('[name=dfsj]', modal).val()});
189 189 })
190 190 });
  191 +
  192 + /**
  193 + * 相同选项 也触发 onchange
  194 + */
  195 + $('[name=bcType]', modal).mousedown(function () {
  196 + this.sindex = $(this)[0].selectedIndex;
  197 + $(this)[0].selectedIndex = 0;
  198 + }).mouseout(function () {
  199 + if ($(this)[0].selectedIndex === 0) {
  200 + $(this)[0].selectedIndex = this.sindex;
  201 + }
  202 + });
191 203 });
192 204 })();
193 205 </script>
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/fcxxwt.html
... ... @@ -267,7 +267,7 @@
267 267  
268 268 $('select[name=bcType]', modal).on('change', function(){
269 269 var type = $(this).val();
270   - if(sch.bcType != 'normal')
  270 + if(sch.bcType == 'in' || sch.bcType == 'out')
271 271 return;
272 272  
273 273 //重置类型,等待调整界面触发刷新事件
... ... @@ -289,6 +289,18 @@
289 289 $(detailModal).trigger('init', {sch: sch, parentModal: modal});
290 290 })
291 291 });
  292 +
  293 + /**
  294 + * 相同选项 也触发 onchange
  295 + */
  296 + $('select[name=bcType]', modal).mousedown(function () {
  297 + this.sindex = $(this)[0].selectedIndex;
  298 + $(this)[0].selectedIndex = 0;
  299 + }).mouseout(function () {
  300 + if ($(this)[0].selectedIndex === 0) {
  301 + $(this)[0].selectedIndex = this.sindex;
  302 + }
  303 + });
292 304 });
293 305  
294 306 function validation_s_e_Time(data) {
... ...
src/main/resources/static/real_control_v2/fragments/line_schedule/sys_mailbox.html
... ... @@ -5,8 +5,9 @@
5 5 <h4 class="uk-panel-title">{{data.nbbm}} {{text}}</h4>
6 6 <code>{{dateStr}}</code>
7 7 <div class="uk-button-group">
8   - <a class="uk-button uk-button-mini uk-button-primary">同意</a>
9   - <a class="uk-button uk-button-mini reject">不同意</a>
  8 + <button class="uk-button uk-button-mini uk-button-primary">同意</button>
  9 + <button class="uk-button uk-button-mini reject">不同意</button>
  10 + <a class="edit_link" data-id="{{schId}}" data-line="{{data.lineId}}" >编辑</a>
10 11 </div>
11 12 </div>
12 13 </div>
... ...
src/main/resources/static/real_control_v2/js/main.js
... ... @@ -168,8 +168,8 @@ var disabled_submit_btn = function (form) {
168 168 function showUpdateDescription() {
169 169 //更新说明
170 170 var updateDescription = {
171   - date: '2017-11-01',
172   - text: '<h5>1、修正了XP系统下主页滚动条的显示问题(Windows XP sp3 + chrome 49.0.2623.112)。</h5>'
  171 + date: '2017-11-02',
  172 + text: '<h5>1、修正了在放站重复操作时,需要先将班次切回正常班次的问题。</h5><h5>2、驾驶员请求信使上,添加“编辑”链接,可弹出对应班次的发车信息微调框。</h5>'
173 173 };
174 174  
175 175 var storage = window.localStorage
... ...
src/main/resources/static/real_control_v2/js/websocket/sch_websocket.js
... ... @@ -235,8 +235,10 @@ var gb_sch_websocket = (function () {
235 235 dl.addClass('relevance-active intimity').find('dd:eq(5)').trigger('click');
236 236 });
237 237  
  238 +
238 239 //80同意
239 240 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button-primary', function () {
  241 + $(this).attr('disabled', 'disabled');
240 242 var panel = $(this).parents('.sys-note-80')
241 243 , id = panel.data('id');
242 244  
... ... @@ -245,6 +247,7 @@ var gb_sch_websocket = (function () {
245 247  
246 248 //80不同意
247 249 $(document).on('click', '.sys-mailbox .sys-note-80 .uk-button.reject', function () {
  250 + $(this).attr('disabled', 'disabled');
248 251 var panel = $(this).parents('.sys-note-80')
249 252 , id = panel.data('id');
250 253  
... ... @@ -329,6 +332,24 @@ var gb_sch_websocket = (function () {
329 332 gb_schedule_context_menu.dftz(nextSch);
330 333 });
331 334  
  335 + /**
  336 + * 信使 sys-note-80 编辑
  337 + */
  338 + $(document).on('click', '.sys-note-80 .edit_link', function () {
  339 + var id = $(this).data('id'),
  340 + lineCode = $(this).data('line');
  341 +
  342 + var sch = gb_schedule_table.findScheduleByLine(lineCode)[id];
  343 + if(!sch)
  344 + return;
  345 +
  346 + gb_schedule_context_menu.fcxxwt(sch);
  347 + var dl = gb_schedule_table.scroToDl(sch);
  348 + //高亮
  349 + gb_schedule_table.reset_drag_active_all(dl);
  350 + dl.addClass('relevance-active intimity').find('dd:eq(5)').trigger('click');
  351 + });
  352 +
332 353 return {
333 354 sock: function () {
334 355 return schSock;
... ...