Commit e7dd94bbe99ac540883056d227aa46b9f8a6ea3c
1 parent
810be6fb
LGF
Showing
1 changed file
with
14 additions
and
4 deletions
src/main/resources/static/pages/forms/statement/waybillQp.html
| @@ -164,6 +164,8 @@ | @@ -164,6 +164,8 @@ | ||
| 164 | $("#info tbody").on("click","tr",function(){ | 164 | $("#info tbody").on("click","tr",function(){ |
| 165 | if($(this).children().size() < 1){ | 165 | if($(this).children().size() < 1){ |
| 166 | return; | 166 | return; |
| 167 | + } else if($(this).children().children().html() == "没有找到相关数据"){ | ||
| 168 | + return; | ||
| 167 | } | 169 | } |
| 168 | $(this).children().each(function(index){ | 170 | $(this).children().each(function(index){ |
| 169 | params[index] = $(this).text(); | 171 | params[index] = $(this).text(); |
| @@ -209,10 +211,18 @@ | @@ -209,10 +211,18 @@ | ||
| 209 | }); | 211 | }); |
| 210 | 212 | ||
| 211 | $("#exportMore").on("click",function(){ | 213 | $("#exportMore").on("click",function(){ |
| 212 | - return; | ||
| 213 | - $post('/realSchedule/exportWaybillMore',{date:date},function(result){ | ||
| 214 | - window.open("/downloadFile/download?fileName="+jName); | 214 | + if($("#info tbody").children().size() < 1){ |
| 215 | + return; | ||
| 216 | + } else if($("#info tbody tr td").children().html() == "没有找到相关数据"){ | ||
| 217 | + return; | ||
| 218 | + } | ||
| 219 | + var param = new Array(); | ||
| 220 | + $("#info tbody tr").each(function(index){ | ||
| 221 | + param[index] = $(this).txet(); | ||
| 215 | }); | 222 | }); |
| 223 | +// $post('/realSchedule/exportWaybillQpMore',{date:date},function(result){ | ||
| 224 | +// window.open("/downloadFile/downloadList?fileName="+result.fileName); | ||
| 225 | +// }); | ||
| 216 | }); | 226 | }); |
| 217 | 227 | ||
| 218 | function getTime(list){ | 228 | function getTime(list){ |
| @@ -323,7 +333,7 @@ | @@ -323,7 +333,7 @@ | ||
| 323 | {{/each}} | 333 | {{/each}} |
| 324 | {{if list.length == 0}} | 334 | {{if list.length == 0}} |
| 325 | <tr> | 335 | <tr> |
| 326 | - <td colspan="14"><h6 class="muted">没有找到相关数据</h6></td> | 336 | + <td colspan="15"><h6 class="muted">没有找到相关数据</h6></td> |
| 327 | </tr> | 337 | </tr> |
| 328 | {{/if}} | 338 | {{/if}} |
| 329 | </script> | 339 | </script> |