Commit 89dfc861385510b2e2429a7e8df43577d5f90c6e

Authored by 廖磊
1 parent 49257b4c

报表

src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
... ... @@ -502,9 +502,9 @@ public class ReportServiceImpl implements ReportService{
502 502 String lx1="";
503 503 for (int x = 0; x < lists.size(); x++) {
504 504 if(lists.get(x).get("lx").equals("lx0")){
505   - lx0=lists.get(x).get("fcsj").toString();
  505 + lx0=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString();
506 506 }else{
507   - lx1=lists.get(x).get("fcsj").toString();
  507 + lx1=lists.get(x).get("fcsj")==null?"0:0":lists.get(x).get("fcsj").toString();
508 508 }
509 509 }
510 510  
... ...
src/main/resources/static/pages/oil/cylAdd.html
... ... @@ -88,8 +88,6 @@
88 88 submitHandler : function(f) {
89 89 var params = form.serializeJSON();
90 90 error.hide();
91   - console.log(params);
92   -
93 91 //检查一下用户是否存在
94 92 $get('/cyl/all', {nbbm_eq: params.nbbm}, function(list){
95 93 if(!list || list.length == 0){
... ... @@ -104,10 +102,6 @@
104 102 loadPage('cylList.html');
105 103 }
106 104 });
107   - /* $post('/user', params, function(res){
108   - layer.msg('添加用户成功.');
109   - loadPage('list.html');
110   - }); */
111 105 }
112 106 else
113 107 layer.alert('内部编码【' + params.nbbm + '】已存在', {icon: 2, title: '提交被拒绝'});
... ...
src/main/resources/static/pages/oil/cylList.html
... ... @@ -115,7 +115,7 @@
115 115 {{obj.updatetime}}
116 116 </td>
117 117 <td>
118   - <!--<a class="btn btn-sm blue btn-outline" href="edit.html?no={{obj.id}}" data-pjax><i class="fa fa-edit"></i> 编辑</a>-->
  118 + <a class="btn btn-sm blue btn-outline" href="edit.html?no={{obj.id}}" data-pjax><i class="fa fa-edit"></i> 编辑</a>
119 119 </td>
120 120 </tr>
121 121 {{/each}}
... ... @@ -237,11 +237,4 @@ $(function(){
237 237 });
238 238 });
239 239 });
240   -//改变状态
241   -function changeEnabled(id,enabled){
242   - debugger
243   - $get('/user/changeEnabled',{id:id,enabled:enabled},function(result){
244   - jsDoQuery(null, true);
245   - })
246   -}
247 240 </script>
248 241 \ No newline at end of file
... ...
src/main/resources/static/pages/report/timetable/timetable.html
... ... @@ -44,7 +44,7 @@
44 44 <div class="portlet-body">
45 45 <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px">
46 46 <label id="xlxq"></label>
47   - <table class="table table-bordered table-hover table-checkable" style="margin-bottom:5p" id="formsTime1">
  47 + <table class="table table-bordered table-hover table-checkable" style="margin-bottom:5px" id="formsTime1">
48 48 <thead>
49 49 <tr>
50 50 <th colspan="10">行车时刻表统计表</th>
... ... @@ -160,7 +160,7 @@
160 160 <td colspan="5">全日分组行驶时间(区间除外)</td>
161 161 </tr>
162 162 <tr>
163   - <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;w">分组 时间</td>
  163 + <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;">分组 时间</td>
164 164 <td width="30%" colspan="2" style="text-align:center;vertical-align:middle;">实驶(分)</td>
165 165 <td width="20%" rowspan="2" style="text-align:center;vertical-align:middle;">分圈 时间</td>
166 166 <td width="25%" rowspan="2" style="text-align:center;vertical-align:middle;">车距</td>
... ... @@ -215,11 +215,11 @@
215 215 layer.msg('请选择线路.');
216 216 }else{
217 217 $get('/report/tbodyTime1',{line:line,date:date},function(result){
218   - var tbodyTime1 = template('tbodyTime1',{result});
  218 + var tbodyTime1 = template('tbodyTime1',{map:result});
219 219 $('#formsTime1 .tbody_time_1').html(tbodyTime1);
220 220 });
221 221 $.get('/report/tbodyTime2',{line:line,date:date},function(result){
222   - var tbodyTime2 = template('tbodyTime2',{result});
  222 + var tbodyTime2 = template('tbodyTime2',{map:result});
223 223 $('#formsTime2 .tbody_time_2').html(tbodyTime2);
224 224 });
225 225 $.get('/report/tbodyTime3',{line:line,date:date},function(result){
... ... @@ -247,23 +247,23 @@
247 247 </script>
248 248 <script type="text/html" id="tbodyTime1">
249 249 <tr>
250   - <td>{{result.pcs}}</td>
251   - <td>{{result.qcbc}}</td>
252   - <td>{{result.qjbc}}</td>
253   - <td>{{result.zqcbc}}</td>
254   - <td>{{result.zqjbc}}</td>
255   - <td>{{result.wqcbc}}</td>
256   - <td>{{result.wqjbc}}</td>
257   - <td>{{result.zlc}}</td>
258   - <td>{{result.yylc}}</td>
259   - <td>{{result.kslc}}</td>
  250 + <td>{{map.pcs}}</td>
  251 + <td>{{map.qcbc}}</td>
  252 + <td>{{map.qjbc}}</td>
  253 + <td>{{map.zqcbc}}</td>
  254 + <td>{{map.zqjbc}}</td>
  255 + <td>{{map.wqcbc}}</td>
  256 + <td>{{map.wqjbc}}</td>
  257 + <td>{{map.zlc}}</td>
  258 + <td>{{map.yylc}}</td>
  259 + <td>{{map.kslc}}</td>
260 260 </tr>
261 261 </script>
262 262  
263 263 <script type="text/html" id="tbodyTime2">
264 264 <tr>
265   - <td align="center">{{result.yysj}}</td>
266   - <td align="center">{{result.yycs}}</td>
  265 + <td align="center">{{map.yysj}}</td>
  266 + <td align="center">{{map.yycs}}</td>
267 267 </tr>
268 268 </script>
269 269  
... ...