Commit 8d0c9706aaa6a1bcd18d42f0fc2d39c0b6351d0a

Authored by lizhuojun
1 parent d42e5163

线调更新,路牌对调快速点击多次问题修复

src/main/resources/fatso/start.js
@@ -16,7 +16,7 @@ var platform = process.platform; @@ -16,7 +16,7 @@ var platform = process.platform;
16 var iswin = platform == 'win32'; 16 var iswin = platform == 'win32';
17 var sp = platform == 'win32' ? '\\' : '/'; 17 var sp = platform == 'win32' ? '\\' : '/';
18 //不参与的目录 18 //不参与的目录
19 -var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission' + sp + 'authorize_all', 'summary', 'history_sch', 'report' + sp + 'oil', 'base' + sp + 'geo_data_edit', 'base' + sp + 'carpark', 'forms', 'mforms', 'report', 'punctual', 'base' + sp + 'timesmodel'] 19 +var excludes = ['scheduleApp', 'trafficManage', 'control', 'permission' + sp + 'authorize_all','permission' + sp + 'user', 'summary', 'history_sch', 'report' + sp + 'oil', 'base' + sp + 'geo_data_edit', 'base' + sp + 'carpark', 'forms', 'mforms', 'report', 'punctual', 'base' + sp + 'timesmodel']
20 , ep = new EventProxy() 20 , ep = new EventProxy()
21 , pName = 'bsth_control' 21 , pName = 'bsth_control'
22 , path = process.cwd() 22 , path = process.cwd()
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/lp_change.html
@@ -389,21 +389,20 @@ @@ -389,21 +389,20 @@
389 rightIdx = rightIdx.substr(0, rightIdx.length - 1); 389 rightIdx = rightIdx.substr(0, rightIdx.length - 1);
390 390
391 var type = $(this).data('type'); 391 var type = $(this).data('type');
  392 + reLoadCurrPageData();
392 gb_common.$post('/realSchedule/lpChangeMulti', {leftIdx: leftIdx, rightIdx: rightIdx, type: type}, function (rs) { 393 gb_common.$post('/realSchedule/lpChangeMulti', {leftIdx: leftIdx, rightIdx: rightIdx, type: type}, function (rs) {
393 console.log('rs', rs); 394 console.log('rs', rs);
394 - debugger  
395 notify_succ("操作成功!!"); 395 notify_succ("操作成功!!");
396 if(rs.ts) 396 if(rs.ts)
397 gb_schedule_table.updateSchedule(rs.ts); 397 gb_schedule_table.updateSchedule(rs.ts);
398 398
399 - reLoadCurrPageData(); 399 +
400 400
401 }); 401 });
402 }); 402 });
403 403
404 404
405 function reLoadCurrPageData(){ 405 function reLoadCurrPageData(){
406 - debugger  
407 $('[name=lineSelect]', modal).each(function () { 406 $('[name=lineSelect]', modal).each(function () {
408 var array = gb_common.get_vals(gb_schedule_table.findScheduleByLine($(this).val())).sort(gb_schedule_table.schedule_sort); 407 var array = gb_common.get_vals(gb_schedule_table.findScheduleByLine($(this).val())).sort(gb_schedule_table.schedule_sort);
409 //按路牌分组 408 //按路牌分组