order-list.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>订单管理</title>
  6. <meta name="description" content="后台管理系统" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <!-- bootstrap -->
  9. <link href="css/bootstrap/bootstrap.css" rel="stylesheet">
  10. <link href="css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet">
  11. <!-- global styles -->
  12. <link rel="stylesheet" type="text/css" href="css/compiled/layout.css">
  13. <link rel="stylesheet" type="text/css" href="css/compiled/elements.css">
  14. <link rel="stylesheet" type="text/css" href="css/compiled/icons.css">
  15. <!-- libraries -->
  16. <link href="css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
  17. <link rel="stylesheet" type="text/css" href="css/lib/easyui.css">
  18. <link rel="stylesheet" type="text/css" href="css/lib/icon.css">
  19. <!-- this page specific styles -->
  20. <link rel="stylesheet" href="css/compiled/orderlist.css" type="text/css" media="screen" />
  21. <!--[if lt IE 9]>
  22. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  23. <![endif]-->
  24. </head>
  25. <body>
  26. <!-- navbar -->
  27. <header class="navbar navbar-inverse" role="banner">
  28. <div class="navbar-header">
  29. <button class="navbar-toggle" type="button" data-toggle="collapse" id="menu-toggler">
  30. <span class="sr-only">导航</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="./index.html"><img src="img/logo.png"></a>
  36. </div>
  37. <ul class="nav navbar-nav pull-right hidden-xs">
  38. <li class="settings hidden-xs hidden-sm">
  39. <a href="./setting.html" role="button">
  40. <i class="icon-cog"></i>
  41. </a>
  42. </li>
  43. <li class="settings hidden-xs hidden-sm">
  44. <a href="./signin.html" role="button">
  45. 退出<i class="icon-signout" style="font-size: 12px;margin-left: 10px;"></i>
  46. </a>
  47. </li>
  48. </ul>
  49. </header>
  50. <!-- end navbar -->
  51. <!-- sidebar -->
  52. <div id="sidebar-nav">
  53. <ul id="dashboard-menu">
  54. <li>
  55. <a href="./index.html">
  56. <i class="icon-home"></i>
  57. <span>首页</span>
  58. </a>
  59. </li>
  60. <li>
  61. <a href="./flight-query.html">
  62. <i class="icon-plane"></i>
  63. <span>快捷下单</span>
  64. </a>
  65. </li>
  66. <li>
  67. <a href="./flight-query-complex.html">
  68. <i class="icon-fighter-jet"></i>
  69. <span>人工下单</span>
  70. </a>
  71. </li>
  72. <li class="active">
  73. <div class="pointer">
  74. <div class="arrow"></div>
  75. <div class="arrow_border"></div>
  76. </div>
  77. <a href="./order-list.html">
  78. <i class="icon-tasks"></i>
  79. <span>订单管理</span>
  80. </a>
  81. </li>
  82. <li>
  83. <a href="./setting.html">
  84. <i class="icon-cog"></i>
  85. <span>系统配置</span>
  86. </a>
  87. </li>
  88. </ul>
  89. </div>
  90. <!-- end sidebar -->
  91. <!-- main container -->
  92. <div class="content">
  93. <div id="pad-wrapper">
  94. <p class="tit">订单列表</p>
  95. <div class="table-responsive">
  96. <table id="dg" class="easyui-datagrid table" style="width:100%;"></table>
  97. </div>
  98. </div>
  99. </div>
  100. <!-- end main container -->
  101. <script src="js/jquery.min.js"></script>
  102. <script type="text/javascript" src="js/jquery.easyui.min.js"></script>
  103. <script type="text/javascript" src="js/easyui-lang-zh_CN.js"></script>
  104. <script type="text/javascript">
  105. $('#dg').datagrid({
  106. // url:'http://114.55.6.23/jh/ticket/listOrders',//数据请求地址
  107. url:'http://www.zjh.free.ngrok.cc/ticket/listOrders',//数据请求地址
  108. toolbar:'#toolbar',// 数据网格工具栏 比如添加 修改
  109. pagination:true,//分页显示
  110. fitColumns:true,//自动适应宽度
  111. autoRowHeight:true,//自动行高度
  112. loadMsg:'正在加载数据请稍后...',
  113. nowrap:true,//设置为true 有利于提高性能
  114. idField:'id',//字段标识
  115. rownumbers:true,//显示行号
  116. singleSelect:true,//只允许选择一行
  117. pageNumber:1,//初始化页面数量
  118. pageSize:30,//初始化显示条数
  119. pageList:[10,30,50],//分页列表
  120. columns:[[
  121. {field:'id',title:'id',width:"3%",align:'center'},
  122. {field:'orderId',title:'订单号',width:"13%",align:'center'},
  123. {field:'airlineCode',title:'航司',width:"3%",align:'center'},
  124. {field:'flightNo',title:'航班号',width:"5%",align:'center'},
  125. {field:'cabin',title:'舱位',width:"3%",align:'center'},
  126. {field:'depAirport',title:'出发机场',width:"5%",align:'center'},
  127. {field:'arrAirport',title:'到达机场',width:"5%",align:'center'},
  128. {field:'depTime',title:'出发时间',width:"12%",align:'center'},
  129. {field:'arrTime',title:'到达时间',width:"12%",align:'center'},
  130. {field:'salePrice',title:'售价',width:"6%",align:'center'},
  131. {field:'passengerName',title:'乘机人',width:"7%",align:'center'},
  132. {field:'passengerId',title:'乘机人证件',width:"12%",align:'center'},
  133. {field:'addtime',title:'添加时间',width:"12%",align:'center'},
  134. {field:'payStatus',title:'支付状态',width:"8%",align:'center'},
  135. {field:'sellerTaobaoNick',title:'卖家',width:"13%",align:'center'},
  136. ]]
  137. });
  138. var p = $('#dg').datagrid('getPager');
  139. $(p).pagination({
  140. beforePageText: '第',//页数文本框前显示的汉字
  141. afterPageText: '页 共 {pages} 页',
  142. displayMsg: '第{from}到{to}条,共{total}条',
  143. });
  144. $(function(){
  145. $('#dg').datagrid({
  146. //单击事件
  147. // onClickRow:function(rowIndex,rowData){
  148. // alert("单击");
  149. // },
  150. //双击事件
  151. onDblClickRow :function(rowIndex,rowData){
  152. var row = $('#dg').datagrid('getSelected');//获取选中行的数据
  153. if (!row){
  154. return;//为防止意外情况可以选择加上此判断
  155. }
  156. var aid = row.orderId;
  157. window.location.href="order-details.html?Id="+aid;
  158. }
  159. });
  160. });
  161. </script>
  162. </body>
  163. </html>