Commit 43153751fd9570266664b197ae51ed7ad0d30d4d

Authored by 王通
1 parent 92c2d390

1.进出场轨迹使用历史GPS,修复

src/main/resources/static/pages/base/stationroute/list_template.html
1   -<div className="row">
2   - <div className="col-md-12">
3   - <!-- BEGIN VALIDATION STATES-->
4   - <div className="portlet light portlet-fit portlet-form bordered">
5   - <div className="portlet-body">
6   - <div class="table-container" style="margin-top: 10px">
7   - <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_waybill_choose">
8   - <thead>
9   - <tr role="row" class="heading">
10   - <th width="10%">序号</th>
11   - <th width="18%">线路名称</th>
12   - <th width="18%">起点</th>
13   - <th width="18%">终点</th>
14   - <th width="18%">实际发车时间</th>
15   - <th width="18%">实际到达时间</th>
16   - </tr>
17   - </thead>
18   - <tbody></tbody>
19   - </table>
20   - </div>
21   - </div>
22   - </div>
23   - </div>
24   -</div>
25   -<script type="text/html" id="waybill_choose_template">
26   - {{each list as obj i }}
27   - <tr>
28   - <td style="vertical-align: middle;">
29   - <input type="radio" class="group-checkable icheck" name="waybillRadio" data-id="{{obj.id}}">
30   - </td>
31   - <td style="vertical-align: middle;">
32   - {{obj.xlName}}
33   - </td>
34   - <td>
35   - {{obj.qdzName}}
36   - </td>
37   - <td>
38   - {{obj.zdzName}}
39   - </td>
40   - <td>
41   - {{obj.fcsjActual}}
42   - </td>
43   - <td>
44   - {{obj.zdsjActual}}
45   - </td>
46   - </tr>
47   - {{/each}}
48   - {{if list.length == 0}}
49   - <tr>
50   - <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td>
51   - </tr>
52   - {{/if}}
53   -</script>
54   -<script>
55   - $(function () {
56   - // 异步请求获取表格数据
57   - var params = {};
58   - params.qdzName_eq = $('#startPoint').val().split('_')[0];
59   - params.zdzName_eq = $('#endPoint').val().split('_')[0];
60   - params.xlBm_eq = LineObj.getLineObj().id;
61   - $.ajax({
62   - url: "/real_control_v2/assets/imgs/time.gif",
63   - type: "HEAD",
64   - async: false,
65   - success: function(result,status,xhr) {
66   - params.scheduleDateStr_eq = moment(xhr.getResponseHeader("Date")).add(-1, 'days').format('YYYY-MM-DD');
67   - }
68   - })
69   - $.get('/realSchedule/all',params,function(result){
70   - // 把数据填充到模版中
71   - var tbodyHtml = template('waybill_choose_template',{list:result});
72   - // 把渲染好的模版html文本追加到表格中
73   - $('#datatable_waybill_choose tbody').html(tbodyHtml);
74   - $("input[name='waybillRadio']").change(function () {
75   - $.post('/inout/pathPlaningByHistory', {schId: $(this).data('id'), version: $("#versions").val()}, function (result1) {
76   - layer.msg('路径规划已完成');
77   - // 刷新左边树
78   - $('#inoutSearch').click();
79   - layer.close(window.layerIdx);
80   - });
81   - });
82   - });
83   - });
  1 +<div className="row">
  2 + <div className="col-md-12">
  3 + <!-- BEGIN VALIDATION STATES-->
  4 + <div className="portlet light portlet-fit portlet-form bordered">
  5 + <div className="portlet-body">
  6 + <div class="table-container" style="margin-top: 10px">
  7 + <table class="table table-striped table-bordered table-hover table-checkable" id="datatable_waybill_choose">
  8 + <thead>
  9 + <tr role="row" class="heading">
  10 + <th width="10%">序号</th>
  11 + <th width="18%">线路名称</th>
  12 + <th width="18%">起点</th>
  13 + <th width="18%">终点</th>
  14 + <th width="18%">实际发车时间</th>
  15 + <th width="18%">实际到达时间</th>
  16 + </tr>
  17 + </thead>
  18 + <tbody></tbody>
  19 + </table>
  20 + </div>
  21 + </div>
  22 + </div>
  23 + </div>
  24 +</div>
  25 +<script type="text/html" id="waybill_choose_template">
  26 + {{each list as obj i }}
  27 + <tr>
  28 + <td style="vertical-align: middle;">
  29 + <input type="radio" class="group-checkable icheck" name="waybillRadio" data-id="{{obj.id}}">
  30 + </td>
  31 + <td style="vertical-align: middle;">
  32 + {{obj.xlName}}
  33 + </td>
  34 + <td>
  35 + {{obj.qdzName}}
  36 + </td>
  37 + <td>
  38 + {{obj.zdzName}}
  39 + </td>
  40 + <td>
  41 + {{obj.fcsjActual}}
  42 + </td>
  43 + <td>
  44 + {{obj.zdsjActual}}
  45 + </td>
  46 + </tr>
  47 + {{/each}}
  48 + {{if list.length == 0}}
  49 + <tr>
  50 + <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td>
  51 + </tr>
  52 + {{/if}}
  53 +</script>
  54 +<script>
  55 + $(function () {
  56 + // 异步请求获取表格数据
  57 + var params = {};
  58 + params.qdzName_eq = $('#startPoint').val().split('_')[0];
  59 + params.zdzName_eq = $('#endPoint').val().split('_')[0];
  60 + params.xlBm_eq = RoutesOperation.getProperties().lineId;
  61 + $.ajax({
  62 + url: "/real_control_v2/assets/imgs/time.gif",
  63 + type: "HEAD",
  64 + async: false,
  65 + success: function(result,status,xhr) {
  66 + params.scheduleDateStr_eq = moment(xhr.getResponseHeader("Date")).add(-1, 'days').format('YYYY-MM-DD');
  67 + }
  68 + })
  69 + $.get('/realSchedule/all',params,function(result){
  70 + // 把数据填充到模版中
  71 + var tbodyHtml = template('waybill_choose_template',{list:result});
  72 + // 把渲染好的模版html文本追加到表格中
  73 + $('#datatable_waybill_choose tbody').html(tbodyHtml);
  74 + $("input[name='waybillRadio']").change(function () {
  75 + $.post('/inout/pathPlaningByHistory', {schId: $(this).data('id'), version: $("#versions").val()}, function (result1) {
  76 + layer.msg('路径规划已完成');
  77 + // 刷新左边树
  78 + $('#inoutSearch').click();
  79 + layer.close(window.layerIdx);
  80 + });
  81 + });
  82 + });
  83 + });
84 84 </script>
85 85 \ No newline at end of file
... ...