list.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>驾驶员管理</title>
  7. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  8. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  9. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  12. </head>
  13. <body ng-controller="indexCtrl as ctl" ng-cloak>
  14. <div>
  15. <div class="loading" ng-if="ctl.loading">
  16. <div class="loading-msg">
  17. <h3>数据加载中,请等待</h3>
  18. <div class="spinner">
  19. <div class="bounce1"></div>
  20. <div class="bounce2"></div>
  21. <div class="bounce3"></div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="sp-page-mgn">
  26. <div class="sp-page-pad">
  27. <div class="sp-page">
  28. <div class="sp-page-col sp-pull-left">
  29. <span class="sp-page-title">驾驶员管理</span>
  30. </div>
  31. <div class="sp-page-col sp-pull-right">
  32. <span class="sp-btn-gray sp-md sp-btn-radius" ng-click="ctl.opneInsertLayer()"><i class="fa fa-plus"></i> 新 增</span>
  33. <span class="sp-btn-gray sp-md sp-btn-radius" ng-click="ctl.openSearchLayer()"><i class="fa fa-search"></i> 查 询</span>
  34. </div>
  35. </div>
  36. <div class="sp-line-gray"></div>
  37. <div class="sp-page">
  38. <div class="sp-page-mgn">
  39. <table class="sp-table">
  40. <thead>
  41. <tr>
  42. <th style="width:60px;">序号</th>
  43. <th>驾驶员</th>
  44. <th>手机号</th>
  45. <th>准驾车型</th>
  46. <th style="width:160px;">操作</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage"
  51. total-items="ctl.total_count">
  52. <td ng-bind="$index+1"></td>
  53. <td>
  54. <div class="sp-color-blue" ng-bind="item.CNAME"></div>
  55. </td>
  56. <td ng-bind="item.TEL"></td>
  57. <td ng-bind="item.CARDTYPE"></td>
  58. <td>
  59. <button class="sp-btn-blue-outline sp-btn-sm sp-radius" title="编辑" ng-click="ctl.itemDataEdit(item)">编 辑</button>
  60. <button class="sp-btn-red-outline sp-btn-sm sp-radius" title="删除" ng-click="ctl.deleteData(item)">删 除</button>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  66. <i class="fa fa-exclamation-circle"></i> 您好,暂无数据!
  67. </div>
  68. <div class="sp-page" ng-show="ctl.noDataTip != 0">
  69. <div class="sp-page-col sp-pull-right">
  70. <div class="sp-lh-34">
  71. 每页 <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions"
  72. ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select> 条
  73. </div>
  74. </div>
  75. <div class="sp-page-col sp-pull-right">
  76. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  77. on-page-change="ctl.getData(newPageNumber)">
  78. </dir-pagination-controls>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="sp-layer" id="layer_search" style="width: 500px;">
  87. <div class="sp-layer-head">
  88. <div class="sp-layer-title">
  89. 驾驶员查询
  90. </div>
  91. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  92. ×
  93. </div>
  94. </div>
  95. <div class="sp-layer-body">
  96. <table class="sp-grid-job">
  97. <tbody>
  98. <tr>
  99. <td style="width:120px;">驾驶员</td>
  100. <td>
  101. <input type="text" class="sp-input" placeholder="驾驶员姓名" ng-model="ctl.search.CNAME" />
  102. </td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <div class="sp-line-txt sp-text-center sp-pt-10">
  107. <a class="sp-btn-blue sp-sm sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-search"></i>&nbsp;查 询</a>
  108. <a class="sp-btn-blue sp-sm sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all"></i>&nbsp;取 消</a>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="sp-layer" id="layer_insert" style="width: 1000px;">
  113. <div class="sp-layer-head">
  114. <div class="sp-layer-title">
  115. 驾驶员新增
  116. </div>
  117. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  118. ×
  119. </div>
  120. </div>
  121. <div class="sp-layer-body">
  122. <table class="sp-table">
  123. <thead>
  124. <tr>
  125. <th style="width:60px;">
  126. <i class="fa fa-plus" title="新增" ng-click="ctl.addItemData()"></i>
  127. </th>
  128. <th>驾驶员</th>
  129. <th>手机号</th>
  130. <th>准驾车型</th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr ng-repeat="item in ctl.insertData">
  135. <td>
  136. <i class="fa fa-trash" ng-click="ctl.deleteItem($index)"></i>
  137. </td>
  138. <td>
  139. <input type="text" class="sp-input" ng-model="item.CNAME" sp-required>
  140. </td>
  141. <td>
  142. <input type="text" class="sp-input" ng-model="item.TEL">
  143. </td>
  144. <td>
  145. <input type="text" class="sp-input" ng-model="item.CARDTYPE">
  146. </td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <div class="sp-table-tip ng-hide" ng-show="ctl.insertData.length == 0">
  151. <i class="fa fa-exclamation-circle"></i> 暂未新增数据!
  152. </div>
  153. <div class="sp-line-txt sp-text-center sp-pt-10">
  154. <button ng-disabled="ctl.insertData.length == 0" class="sp-btn-blue sp-sm sp-radius" ng-click="ctl.saveInsertData()"><i class="fa fa-save"></i>&nbsp;保 存</button>
  155. <a class="sp-btn-blue sp-sm sp-radius" onclick="sp.closeCenter('.sp-layer')">
  156. <i class="fa fa-reply-all"></i>&nbsp;取
  157. </a>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="sp-layer" id="layer_edit" style="width:500px;">
  162. <div class="sp-layer-head">
  163. <span class="sp-layer-title">驾驶员编辑</span>
  164. <span class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">×</span>
  165. </div>
  166. <div class="sp-layer-body">
  167. <div class="sp-page">
  168. <table class="sp-grid-job">
  169. <tbody>
  170. <tr>
  171. <td style="width:120px;">驾驶员</td>
  172. <td>
  173. <input type="text" class="sp-input" ng-model="ctl.itemObj.CNAME" />
  174. </td>
  175. </tr>
  176. <tr>
  177. <td style="width:120px;">手机号</td>
  178. <td>
  179. <input type="text" class="sp-input" ng-model="ctl.itemObj.TEL" />
  180. </td>
  181. </tr>
  182. <tr>
  183. <td style="width:120px;">准驾车型</td>
  184. <td>
  185. <input type="text" class="sp-input" ng-model="ctl.itemObj.CARDTYPE" />
  186. </td>
  187. </tr>
  188. </tbody>
  189. </table>
  190. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  191. <button class="sp-btn-blue sp-btn-md" ng-click="ctl.editBtn()">
  192. <i class="fa fa-check"></i>&nbsp;提交
  193. </button>
  194. <button class="sp-btn-default sp-btn-md" onclick="sp.layerhide()">
  195. <i class="fa fa-close"></i>&nbsp;取消
  196. </button>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  202. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  203. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  204. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  205. <script src="../../apiurljs.js"></script>
  206. <script src="../../js/sm4.js"></script>
  207. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  208. <script>document.write('<scri' + 'pt src="js/list.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  209. <script src="../../AFrontEnd/js/special/spng.js"></script>
  210. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  211. </body>
  212. </html>