Commit ecad1f45de2dc048462a7c4948e27bf351cd46a6

Authored by 潘钊
1 parent ac15eac0

update

src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/tzrc.html
... ... @@ -27,20 +27,20 @@
27 27 </div>
28 28  
29 29 <form class="uk-form">
30   - <div class="ct_table_wrap ct_table_no_border tzrc-table-wrap" style="height: 340px;">
31   - <div class="ct_table sch-tzrc-table">
32   - <div class="ct_table_head">
33   - <dl>
34   - <dt><input type="checkbox" id="globalCheckBox" class="i-cbox" >时间</dt>
35   - <dt>车辆</dt>
36   - <dt>驾驶员</dt>
37   - <dt>售票员</dt>
38   - <dt>状态</dt>
39   - </dl>
  30 + <div class="ct_table_wrap ct_table_no_border tzrc-table-wrap" style="height: 340px;">
  31 + <div class="ct_table sch-tzrc-table">
  32 + <div class="ct_table_head">
  33 + <dl>
  34 + <dt><input type="checkbox" id="globalCheckBox" class="i-cbox" >时间</dt>
  35 + <dt>车辆</dt>
  36 + <dt>驾驶员</dt>
  37 + <dt>售票员</dt>
  38 + <dt>状态</dt>
  39 + </dl>
  40 + </div>
  41 + <div class="ct_table_body"></div>
40 42 </div>
41   - <div class="ct_table_body"></div>
42 43 </div>
43   - </div>
44 44 </form>
45 45 <form class="uk-form uk-form-horizontal tzrc_form">
46 46 <div class="uk-grid">
... ... @@ -89,34 +89,34 @@
89 89 {{each list as sch i}}
90 90 <dl data-id="{{sch.id}}" {{if sch.status==0}}class="no_exec_sch_row"{{/if}}>
91 91 <dd>
92   - <input type="checkbox" value=1 name="schCBox" class="i-cbox" >
93   - {{sch.dfsj}}
94   - {{if sch.bcType == "out"}}
95   - <span class="uk-badge uk-badge-success">出场</span>
96   - {{else if sch.bcType == "in"}}
97   - <span class="uk-badge uk-badge-warning">进场</span>
98   - {{else if sch.bcType == "venting"}}
99   - <span class="uk-badge uk-badge-danger">直放</span>
100   - {{else if sch.bcType == "major"}}
101   - <span class="uk-badge uk-badge-danger">放站</span>
102   - {{/if}}
103   - {{if sch.sflj}}
104   - <span class="uk-badge uk-badge-danger">临加</span>
105   - {{/if}}
106   - {{if sch.cTasks.length > 0}}
107   - <span class="uk-badge uk-badge-notification">{{sch.cTasks.length}}</span>
108   - {{/if}}
  92 + <input type="checkbox" value=1 name="schCBox" class="i-cbox" >
  93 + {{sch.dfsj}}
  94 + {{if sch.bcType == "out"}}
  95 + <span class="uk-badge uk-badge-success">出场</span>
  96 + {{else if sch.bcType == "in"}}
  97 + <span class="uk-badge uk-badge-warning">进场</span>
  98 + {{else if sch.bcType == "venting"}}
  99 + <span class="uk-badge uk-badge-danger">直放</span>
  100 + {{else if sch.bcType == "major"}}
  101 + <span class="uk-badge uk-badge-danger">放站</span>
  102 + {{/if}}
  103 + {{if sch.sflj}}
  104 + <span class="uk-badge uk-badge-danger">临加</span>
  105 + {{/if}}
  106 + {{if sch.cTasks.length > 0}}
  107 + <span class="uk-badge uk-badge-notification">{{sch.cTasks.length}}</span>
  108 + {{/if}}
109 109 </dd>
110 110 <dd>{{sch.clZbh}}</dd>
111 111 <dd>{{sch.jGh}}/{{sch.jName}}</dd>
112 112 <dd>{{sch.sGh}}/{{sch.sName}}</dd>
113 113 <dd>
114 114 {{if sch.status==2}}
115   - <span class="ct_zt_yzx">已执行</span>
  115 + <span class="ct_zt_yzx">已执行</span>
116 116 {{else if sch.status==1}}
117   - <span class="ct_zt_zzzx">正在执行</span>
  117 + <span class="ct_zt_zzzx">正在执行</span>
118 118 {{else if sch.status==-1}}
119   - <span class="ct_zt_lb">烂班</span>
  119 + <span class="ct_zt_lb">烂班</span>
120 120 {{/if}}
121 121 </dd>
122 122 </dl>
... ... @@ -225,9 +225,6 @@
225 225 });
226 226 });
227 227  
228   - //检查一下是否跨公司换人,换车
229   - // gb_common.$get('/')
230   -
231 228 gb_common.$post('/realSchedule/multi_tzrc', {
232 229 cpcsJson: JSON.stringify(data)
233 230 }, function (rs) {
... ... @@ -239,38 +236,6 @@
239 236 });
240 237 return false;
241 238 });
242   - /*var f = $('form.tzrc_form', modal).formValidation({
243   - framework: 'uikit',
244   - locale: 'zh_CN'
245   - });
246   - f.on('success.form.fv', function (e) {
247   - e.preventDefault();
248   - var param = $(this).serializeJSON();
249   - var data = [];
250   - var checkeds = $('.sch-tzrc-table .ct_table_body input[type=checkbox]:checked', modal);
251   - if (checkeds.length == 0)
252   - return notify_err('请选中要调整的班次');
253   -
254   - var schId;
255   - $.each(checkeds, function () {
256   - schId = $(this).parents('dl').data('id');
257   - data.push({
258   - schId: schId,
259   - jsy: param.jsy,
260   - spy: param.spy,
261   - clZbh: param.clZbh
262   - });
263   - });
264   - gb_common.$post('/realSchedule/multi_tzrc', {
265   - cpcsJson: JSON.stringify(data)
266   - }, function (rs) {
267   - if (rs.ts && rs.ts.length > 0) {
268   - gb_schedule_table.updateSchedule(rs.ts);
269   - UIkit.modal(modal).hide();
270   - notify_succ('调整人车成功');
271   - }
272   - });
273   - });*/
274 239 });
275 240  
276 241 function writeSch2Form(sch) {
... ... @@ -298,7 +263,7 @@
298 263 writeSch2Form(sch);
299 264 }
300 265 });
301   -
  266 +
302 267 function clearCheckAll() {
303 268 $('.sch-tzrc-table .ct_table_body>dl', modal).each(function () {
304 269 $(this).removeClass('active');
... ...