zxjxxxview.jsp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function zxjxxxview(zxjxid){
  5. var path="/xkzsq/viewmain?path=11:id="+$('#id').val()+"";
  6. location.href=$.app+'/zxjx/view?id='+zxjxid+'&path='+path;
  7. }
  8. function initzxjxxx(){
  9. $.post($.app + "/gkjyr/zxjxxx", {
  10. id : $('#jyrid').val(),
  11. czid:$('#id').val()
  12. }, function(data) {
  13. if (data) {
  14. var str =""
  15. for(var i=0;i<data.length;i++){
  16. var zxjx = data[i];
  17. str+="<tr class='tr_bg'>";
  18. str+="<td>"+(i+1)+"</td>";
  19. str+="<td>"+zxjx.jxlbmczw+"</td>";
  20. str+="<td>"+zxjx.ssjyrzw+"</td>";
  21. str+="<td>"+zxjx.xhhgg+"</td>";
  22. str+="<td>"+zxjx.jxsl+"</td>";
  23. str+="<td>"+zxjx.syqzw+"</td>";
  24. str+="<td>";
  25. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxview('"+zxjx.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  26. str+="</td>";
  27. str+="</tr>";
  28. }
  29. $('#zxjxxxdiv').empty();
  30. $('#zxjxxxdiv').append(str);
  31. } else {
  32. }
  33. }, "json");
  34. }
  35. </script>
  36. <table class="main_table" cellpadding="0" cellspacing="0">
  37. <tr>
  38. <th width="5%">序号</th>
  39. <th width="15%">机械类别名称</th>
  40. <th width="15%">港口经营人</th>
  41. <th width="15%">型号或规格</th>
  42. <th width="15%">机械数量</th>
  43. <th width="15%">所有权</th>
  44. <th width="20%">操作</th>
  45. </tr>
  46. <tbody id="zxjxxxdiv"></tbody>
  47. </table>