list.jsp 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="p" uri="http://www.test.com/jsp/permission" %>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <%@ include file="../../common/head.jsp"%>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  10. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  12. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  13. <script>
  14. function test(value,row,index){
  15. // return '<a href="#">' + row['id'] + '</a>';
  16. return '<a href="#">编辑 </a>|<a href="#">删除</a>';
  17. }
  18. function format_action(value,row,index){
  19. var orderId;
  20. var type=0;
  21. //订单编号为空
  22. if(row.orderId!=null){
  23. orderId=row.orderId
  24. type=1;
  25. }else{
  26. orderId=row.id;
  27. type=0;
  28. }
  29. var id=row.order
  30. var returnhtml = '<a href="javascript:show('+orderId+','+type+');">查看详情 </a>';
  31. return returnhtml;
  32. }
  33. function show(id,type){
  34. $.openDlg({
  35. url:'transfer.cs?action=view&id=' +id+'&type='+type,
  36. title:'查看详情',
  37. width:'95%',
  38. height:'95%',
  39. });
  40. }
  41. </script>
  42. </head>
  43. <body class="gray-bg">
  44. <div class="wrapper wrapper-content animated fadeInUp">
  45. <!-- <div class="ibox " style=""> -->
  46. <!-- <div class="ibox-content"> -->
  47. <div class="row row-lg">
  48. <div class="col-sm-12">
  49. <table id="tab_user"
  50. data-toggle="table"
  51. data-url="list2.cs"
  52. data-method="get"
  53. data-click-to-select="true"
  54. data-pagination="true"
  55. data-data-type="json"
  56. data-show-refresh="true"
  57. data-show-columns="true"
  58. data-show-toggle="true"
  59. data-search-on-enter-key="true"
  60. data-toolbar="#def_toolbar"
  61. data-side-pagination="server"
  62. data-query-params="queryParams"
  63. data-mobile-responsive="true"
  64. >
  65. <thead>
  66. <tr>
  67. <th data-checkbox="true" data-click-to-select="true"></th>
  68. <th data-field="id">id</th>
  69. <th data-field="orderId">订单编号</th>
  70. <th data-field="name">客户姓名</th>
  71. <th data-field="phone">联系电话</th>
  72. <th data-field="attributionArea">地区</th>
  73. <th data-field="recommendName">推介人</th>
  74. <th data-field="createDate" data-formatter="format_time">首次推介时间</th>
  75. <th data-field="amount">成交总额</th>
  76. <th data-formatter="format_action">操作</th>
  77. </tr>
  78. </thead>
  79. </table>
  80. </div>
  81. </div>
  82. <!-- </div> -->
  83. <!-- </div> -->
  84. </div>
  85. </body>
  86. </html>