list.html 11 KB

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