ryxxview.jsp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function ryxxview(ryid){
  5. var path="/xkzbg/viewmain?path=8:id="+$('#id').val()+"";
  6. location.href=$.app+'/ry/view?id='+ryid+'&path='+path;
  7. }
  8. function ryxxdelete(ryid){
  9. $.confirm({
  10. title: '确认框',
  11. content: '确认删除吗',
  12. confirm: function(){
  13. $.post($.app + "/ry/delete", {
  14. id : ryid
  15. }, function(data) {
  16. if (data.success) {
  17. $.alert({
  18. title: '提示',
  19. content: '操作成功',
  20. confirm: function(){
  21. initryxx();
  22. }
  23. });
  24. } else {
  25. $.alert({
  26. title: '提示',
  27. content: data.message,
  28. confirm: function(){
  29. }
  30. });
  31. }
  32. }, "json");
  33. },
  34. cancel: function(){
  35. }
  36. });
  37. }
  38. function initryxx(){
  39. $.post($.app + "/gkjyr/ryxx2", {
  40. id : $('#jyrid').val(),
  41. czid:$('#id').val(),
  42. recordStatus:10
  43. }, function(data) {
  44. if (data) {
  45. var str =""
  46. for(var i=0;i<data.length;i++){
  47. var ry = data[i];
  48. str+="<tr class='tr_bg'>";
  49. str+="<td>"+(i+1)+"</td>";
  50. str+="<td>"+(ry.ssjyrzw==null? "":ry.ssjyrzw)+"</td>";
  51. str+="<td>"+ry.xm+"</td>";
  52. str+="<td>"+ry.rylxzw+"</td>";
  53. str+="<td>";
  54. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ryxxview('"+ry.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  55. str+="</td>";
  56. str+="</tr>";
  57. }
  58. $('#ryxxdiv').empty();
  59. $('#ryxxdiv').append(str);
  60. } else {
  61. }
  62. }, "json");
  63. }
  64. </script>
  65. <table class="main_table" cellpadding="0" cellspacing="0">
  66. <tr>
  67. <th width="5%">序号</th>
  68. <th width="15%">港口经营人</th>
  69. <th width="15%">姓名</th>
  70. <th width="15%">人员类型</th>
  71. <th width="20%">操作</th>
  72. </tr>
  73. <tbody id="ryxxdiv"></tbody>
  74. </table>