Commit 1cd8d7fe156cede120525b53b2d3ce0f190df871

Authored by 潘钊
1 parent ad1b8985

update...

src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
@@ -10,11 +10,10 @@ import com.bsth.controller.realcontrol.dto.DfsjChange; @@ -10,11 +10,10 @@ import com.bsth.controller.realcontrol.dto.DfsjChange;
10 import com.bsth.controller.realcontrol.dto.LpData; 10 import com.bsth.controller.realcontrol.dto.LpData;
11 import com.bsth.data.BasicData; 11 import com.bsth.data.BasicData;
12 import com.bsth.data.LineConfigData; 12 import com.bsth.data.LineConfigData;
13 -import com.bsth.data.msg_queue.DirectivePushQueue;  
14 import com.bsth.data.schedule.DayOfSchedule; 13 import com.bsth.data.schedule.DayOfSchedule;
15 import com.bsth.data.schedule.SchAttrCalculator; 14 import com.bsth.data.schedule.SchAttrCalculator;
16 -import com.bsth.data.schedule.edit_logs.FormLogger;  
17 import com.bsth.data.schedule.ScheduleComparator; 15 import com.bsth.data.schedule.ScheduleComparator;
  16 +import com.bsth.data.schedule.edit_logs.FormLogger;
18 import com.bsth.data.schedule.edit_logs.ScheduleModifyLogger; 17 import com.bsth.data.schedule.edit_logs.ScheduleModifyLogger;
19 import com.bsth.data.schedule.edit_logs.loggers.FcxxwtLogger; 18 import com.bsth.data.schedule.edit_logs.loggers.FcxxwtLogger;
20 import com.bsth.data.schedule.late_adjust.LateAdjustHandle; 19 import com.bsth.data.schedule.late_adjust.LateAdjustHandle;
@@ -1320,14 +1319,14 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf @@ -1320,14 +1319,14 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf
1320 ts.add(next); 1319 ts.add(next);
1321 } 1320 }
1322 1321
1323 - try{ 1322 +/* try{
1324 //车辆下一个要执行的班次 1323 //车辆下一个要执行的班次
1325 ScheduleRealInfo carNext = dayOfSchedule.next(sch); 1324 ScheduleRealInfo carNext = dayOfSchedule.next(sch);
1326 if(carNext != null && !carNext.getXlBm().equals(sch.getXlBm())){ 1325 if(carNext != null && !carNext.getXlBm().equals(sch.getXlBm())){
1327 DirectivePushQueue.put64(carNext.getClZbh(), carNext.getXlBm(), "套跑@系统"); 1326 DirectivePushQueue.put64(carNext.getClZbh(), carNext.getXlBm(), "套跑@系统");
1328 fLog.log("下发线路切换指令", sch.getXlName(), carNext.getXlName()); 1327 fLog.log("下发线路切换指令", sch.getXlName(), carNext.getXlName());
1329 } 1328 }
1330 - }catch (Exception e){logger.error("", e);} 1329 + }catch (Exception e){logger.error("", e);}*/
1331 1330
1332 //重新计算车辆执行班次 1331 //重新计算车辆执行班次
1333 dayOfSchedule.reCalcExecPlan(sch.getClZbh()); 1332 dayOfSchedule.reCalcExecPlan(sch.getClZbh());
src/main/resources/static/real_control_v2/fragments/north/nav/sch_edit_info/list.html
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="uk-modal-dialog" style="width: 1280px;"> 2 <div class="uk-modal-dialog" style="width: 1280px;">
3 <a href="" class="uk-modal-close uk-close"></a> 3 <a href="" class="uk-modal-close uk-close"></a>
4 <div class="uk-modal-header"> 4 <div class="uk-modal-header">
5 - <h2>班次修正记录</h2> 5 + <h2>班次修正日志</h2>
6 </div> 6 </div>
7 7
8 <div style="padding-left: 12px;margin: 20px 0"> 8 <div style="padding-left: 12px;margin: 20px 0">
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <button class="uk-button">检索</button> 38 <button class="uk-button">检索</button>
39 39
40 <label style="float: right;font-size: 12px;color: #989797;"> 40 <label style="float: right;font-size: 12px;color: #989797;">
41 - <input type="checkbox" disabled> 显示系统修正记录 41 + <input type="checkbox" disabled> 显示系统修正日志
42 </label> 42 </label>
43 </fieldset> 43 </fieldset>
44 </form> 44 </form>
@@ -175,8 +175,8 @@ @@ -175,8 +175,8 @@
175 var etInfos={};//id映射 175 var etInfos={};//id映射
176 176
177 //滚动条 177 //滚动条
178 - //$('.history-sch-wrap', modal).perfectScrollbar({suppressScrollX: true});  
179 - //history-sch-wrap 178 + $('.edit-info-table-wrap', modal).perfectScrollbar({suppressScrollX: true});
  179 +
180 $(modal).on('init', function (e, data) { 180 $(modal).on('init', function (e, data) {
181 e.stopPropagation(); 181 e.stopPropagation();
182 $.get('/realSchedule/dateArray?c=1', function (rs) { 182 $.get('/realSchedule/dateArray?c=1', function (rs) {
@@ -242,18 +242,42 @@ @@ -242,18 +242,42 @@
242 loading=true; 242 loading=true;
243 gb_common.$get('/schEditInfo/_list', data, function (rs) { 243 gb_common.$get('/schEditInfo/_list', data, function (rs) {
244 etInfos = {}; 244 etInfos = {};
  245 + nbbmArray=[];
  246 + jsyArray=[];
  247 + lpArray = [];
245 $.each(rs.list, function () { 248 $.each(rs.list, function () {
246 this.jsonArray = JSON.parse(this.jsonArray); 249 this.jsonArray = JSON.parse(this.jsonArray);
247 etInfos[this.id] = this; 250 etInfos[this.id] = this;
  251 +
  252 + nbbmArray.push({value: this.clZbh});
  253 + jsyArray.push({value: this.jGh+'/'+this.jName,
  254 + fullChars: pinyin.getFullChars(this.jName).toUpperCase(),
  255 + camelChars: pinyin.getCamelChars(this.jName)});
  256 + lpArray.push({value: this.lpName});
248 }); 257 });
249 //根据班次ID合并修正操作 258 //根据班次ID合并修正操作
250 var list = mergeData(rs.list).sort(sortFun); 259 var list = mergeData(rs.list).sort(sortFun);
251 -  
252 var htmlStr = template('history-sch-edit-info-temp', {list: list}); 260 var htmlStr = template('history-sch-edit-info-temp', {list: list});
253 -  
254 $('.sch-edit-info-table .ct_table_body', modal).html(htmlStr); 261 $('.sch-edit-info-table .ct_table_body', modal).html(htmlStr);
255 $('.load-panel', modal).hide(); 262 $('.load-panel', modal).hide();
256 loading=false; 263 loading=false;
  264 +
  265 + //value
  266 + nbbmArray=distinctByField(nbbmArray);
  267 + jsyArray=distinctByField(jsyArray);
  268 + lpArray=distinctByField(lpArray);
  269 + if(reLoadLp){
  270 + //路牌下拉框
  271 + var ops = '<option value="">全部</option>';
  272 + $.each(lpArray, function () {
  273 + ops += '<option value="'+this.value+'">'+this.value+'</option>';
  274 + });
  275 + $('[name=lpName]', modal).html(ops);
  276 + reLoadLp = false;
  277 + }
  278 +
  279 + //更新滚动条高度
  280 + $('.edit-info-table-wrap', modal).perfectScrollbar('update');
257 }); 281 });
258 } 282 }
259 283
src/main/resources/static/real_control_v2/js/data/json/north_toolbar.json
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 }, 29 },
30 { 30 {
31 "id": 1.41, 31 "id": 1.41,
32 - "text": "班次修正记录", 32 + "text": "班次修正日志",
33 "event": "sch_edit_info" 33 "event": "sch_edit_info"
34 }, 34 },
35 { 35 {
src/main/resources/static/real_control_v2/js/main.js
@@ -169,9 +169,8 @@ var disabled_submit_btn = function (form) { @@ -169,9 +169,8 @@ var disabled_submit_btn = function (form) {
169 function showUpdateDescription() { 169 function showUpdateDescription() {
170 //更新说明 170 //更新说明
171 var updateDescription = { 171 var updateDescription = {
172 - date: '2017-05-18',  
173 - text: '<h5>现在自定义子任务,勾选是否烂班后,烂班原因必填。</h5><h5>修复了在驾驶员请求出场时,误下发分班出场指令的问题</h5>' +  
174 - '<h5>调整了报表的弹出窗口<br>1、取消了窗口遮罩,可同时打开多个报表窗口,窗口堆叠时,点击窗口title切换堆叠顺序<br>2、鼠标按住窗口右下角,可随意改变窗口大小。<br>3、拖动窗口时,允许拖出页面之外<br><br>注意:将窗口和窗口title拖出页面外时,会面临窗口丢失的风险,过多丢失的窗口会影响到页面性能,你可以刷新页面以重置!</h5>' 172 + date: '2017-05-23',
  173 + text: '<h5>现在可以在 数据&统计 里面看到班次修正日志。05-23之后的数据开始展现</h5>'
175 }; 174 };
176 175
177 var storage = window.localStorage 176 var storage = window.localStorage