zbUserList.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. <link href="../../AFrontEnd/js/jquery/jquery-ui.css" rel="stylesheet" />
  12. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. </head>
  14. <body ng-controller="indexCtrl as ctl" ng-cloak>
  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-tab">
  28. <span ng-class="{'pageTabActive':ctl.type==1}" ng-click="ctl.type=1;ctl.getData(1)">带班领导</span>
  29. <span ng-class="{'pageTabActive':ctl.type==2}" ng-click="ctl.type=2;ctl.getData(1)">带班处长</span>
  30. <span ng-class="{'pageTabActive':ctl.type==3}" ng-click="ctl.type=3;ctl.getData(1)">值班员</span>
  31. <div class="sp-page-col sp-pull-right">
  32. <a class="sp-btn-gray sp-md sp-btn-radius" ng-click="ctl.opneInsertLayer()"><i class="fa fa-plus"></i> 新 增</a>
  33. <a class="sp-btn-gray sp-md sp-btn-radius" ng-click="ctl.openSearchLayer()"><i class="fa fa-search"></i> 查 询</a>
  34. <a class="sp-btn-gray sp-md sp-btn-radius" ng-click="ctl.openSortLayer()"><i class="fa fa-sort"></i> 排 序</a>
  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 width="50">序号</th>
  44. <th width="200">姓名</th>
  45. <th width="200">性别</th>
  46. <th width="200">职务</th>
  47. <th ng-if="ctl.type==1">座机号码</th>
  48. <th ng-if="ctl.type==1">手机号码</th>
  49. <th ng-if="ctl.type!=1">处室</th>
  50. <th ng-if="ctl.type!=1">备注</th>
  51. <th width="160">操作</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage"
  56. total-items="ctl.total_count">
  57. <td ng-bind="$index+1"></td>
  58. <td>
  59. <div class="sp-color-blue" ng-bind="item.CNAME"></div>
  60. </td>
  61. <td ng-bind="item.SEX"></td>
  62. <td ng-bind="item.ZHIWU"></td>
  63. <td ng-if="ctl.type==1" ng-bind="item.TEL"></td>
  64. <td ng-if="ctl.type==1" ng-bind="item.MOBILEPHONE"></td>
  65. <td ng-if="ctl.type!=1" ng-bind="item.DPNAME"></td>
  66. <td ng-if="ctl.type!=1" ng-bind="item.REMARK"></td>
  67. <td>
  68. <button class="sp-btn-blue-outline sp-btn-sm sp-radius" title="编辑" ng-click="ctl.itemDataEdit(item)">编 辑</button>
  69. <button class="sp-btn-red-outline sp-btn-sm sp-radius" title="删除" ng-click="ctl.deleteData(item)">删 除</button>
  70. </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  75. <i class="fa fa-exclamation-circle"></i> 您好,暂无数据!
  76. </div>
  77. <div class="sp-page" ng-show="ctl.noDataTip != 0">
  78. <div class="sp-page-col sp-pull-right">
  79. <div class="sp-lh-34">
  80. 每页 <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions"
  81. ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select> 条
  82. </div>
  83. </div>
  84. <div class="sp-page-col sp-pull-right">
  85. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  86. on-page-change="ctl.getData(newPageNumber)">
  87. </dir-pagination-controls>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="sp-layer" id="layer_search" style="width: 500px;">
  95. <div class="sp-layer-head">
  96. <div class="sp-layer-title">
  97. 值班人员查询
  98. </div>
  99. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  100. ×
  101. </div>
  102. </div>
  103. <div class="sp-layer-body">
  104. <table class="sp-grid-job">
  105. <tbody>
  106. <tr>
  107. <td style="width:120px;">姓名</td>
  108. <td>
  109. <input type="text" class="sp-input" placeholder="姓名" ng-model="ctl.search.CNAME" />
  110. </td>
  111. <td style="width:120px;">职务</td>
  112. <td>
  113. <input type="text" class="sp-input" placeholder="职务" ng-model="ctl.search.ZHIWU" />
  114. </td>
  115. </tr>
  116. </tbody>
  117. </table>
  118. <div class="sp-line-txt sp-text-center sp-pt-10">
  119. <a class="sp-btn-blue sp-sm sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-search"></i>&nbsp;查 询</a>
  120. <a class="sp-btn-blue sp-sm sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-reply-all"></i>&nbsp;取 消</a>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="sp-layer" id="layer_insert" style="width: 1000px;">
  125. <div class="sp-layer-head">
  126. <div class="sp-layer-title">
  127. 值班人员新增
  128. </div>
  129. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  130. ×
  131. </div>
  132. </div>
  133. <div class="sp-layer-body">
  134. <table class="sp-table">
  135. <thead>
  136. <tr>
  137. <th style="width:60px;">
  138. <i class="fa fa-plus" title="新增" ng-click="ctl.addItemData()"></i>
  139. </th>
  140. <th>姓名</th>
  141. <th>性别</th>
  142. <th>职务</th>
  143. <th ng-if="ctl.type==1">座机号码</th>
  144. <th ng-if="ctl.type==1">手机号码</th>
  145. <th ng-if="ctl.type!=1">处室</th>
  146. <th ng-if="ctl.type!=1">备注</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr ng-repeat="item in ctl.insertData">
  151. <td>
  152. <i class="fa fa-trash" ng-click="ctl.deleteItem($index)"></i>
  153. </td>
  154. <td>
  155. <input type="text" class="sp-input" ng-model="item.CNAME" sp-required>
  156. </td>
  157. <td>
  158. <input type="text" class="sp-input" ng-model="item.SEX">
  159. </td>
  160. <td>
  161. <input type="text" class="sp-input" ng-model="item.ZHIWU">
  162. </td>
  163. <td ng-if="ctl.type==1">
  164. <input type="text" class="sp-input" ng-model="item.TEL">
  165. </td>
  166. <td ng-if="ctl.type==1">
  167. <input type="text" class="sp-input" ng-model="item.MOBILEPHONE">
  168. </td>
  169. <td ng-if="ctl.type!=1">
  170. <input type="text" class="sp-input" ng-model="item.DPNAME">
  171. </td>
  172. <td ng-if="ctl.type!=1">
  173. <input type="text" class="sp-input" ng-model="item.REMARK">
  174. </td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <div class="sp-table-tip ng-hide" ng-show="ctl.insertData.length == 0">
  179. <i class="fa fa-exclamation-circle"></i> 暂未新增数据!
  180. </div>
  181. <div class="sp-line-txt sp-text-center sp-pt-10">
  182. <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>
  183. <a class="sp-btn-blue sp-sm sp-radius" onclick="sp.closeCenter('.sp-layer')">
  184. <i class="fa fa-reply-all"></i>&nbsp;取
  185. </a>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="sp-layer" id="layer_edit" style="width:500px;">
  190. <div class="sp-layer-head">
  191. <span class="sp-layer-title">值班人员编辑</span>
  192. <span class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">×</span>
  193. </div>
  194. <div class="sp-layer-body">
  195. <div class="sp-page">
  196. <table class="sp-grid-job">
  197. <tbody>
  198. <tr>
  199. <td style="width:120px;">姓名</td>
  200. <td>
  201. <input type="text" class="sp-input" ng-model="ctl.itemObj.CNAME" />
  202. </td>
  203. </tr>
  204. <tr>
  205. <td style="width:120px;">性别</td>
  206. <td>
  207. <input type="text" class="sp-input" ng-model="ctl.itemObj.SEX" />
  208. </td>
  209. </tr>
  210. <tr>
  211. <td style="width:120px;">职务</td>
  212. <td>
  213. <input type="text" class="sp-input" ng-model="ctl.itemObj.ZHIWU" />
  214. </td>
  215. </tr>
  216. <tr ng-if="ctl.type==1">
  217. <td style="width:120px;">座机号码</td>
  218. <td>
  219. <input type="text" class="sp-input" ng-model="ctl.itemObj.TEL" />
  220. </td>
  221. </tr>
  222. <tr ng-if="ctl.type==1">
  223. <td style="width:120px;">手机号码</td>
  224. <td>
  225. <input type="text" class="sp-input" ng-model="ctl.itemObj.MOBILEPHONE" />
  226. </td>
  227. </tr>
  228. <tr ng-if="ctl.type!=1">
  229. <td style="width:120px;">处室</td>
  230. <td>
  231. <input type="text" class="sp-input" ng-model="ctl.itemObj.DPNAME" />
  232. </td>
  233. </tr>
  234. <tr ng-if="ctl.type!=1">
  235. <td style="width:120px;">备注</td>
  236. <td>
  237. <input type="text" class="sp-input" ng-model="ctl.itemObj.REMARK" />
  238. </td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  243. <button class="sp-btn-blue sp-btn-md" ng-click="ctl.editBtn()">
  244. <i class="fa fa-check"></i>&nbsp;提交
  245. </button>
  246. <button class="sp-btn-default sp-btn-md" onclick="sp.layerhide()">
  247. <i class="fa fa-close"></i>&nbsp;取消
  248. </button>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <div class="sp-layer" id="sortWin" style="width:800px;">
  254. <div class="sp-layer-head">
  255. <span class="sp-layer-title">值班人员排序</span>
  256. <span class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">×</span>
  257. </div>
  258. <div class="sp-layer-body">
  259. <div class="sp-page" style="height:400px;overflow:auto">
  260. <table class="sp-table" id="sortList">
  261. <thead>
  262. <tr>
  263. <th width="50">序号</th>
  264. <th width="200">姓名</th>
  265. <th width="50">性别</th>
  266. <th width="200">职务</th>
  267. <th ng-if="ctl.type==1">座机号码</th>
  268. <th ng-if="ctl.type==1">手机号码</th>
  269. <th ng-if="ctl.type!=1">处室</th>
  270. <th ng-if="ctl.type!=1">备注</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. <tr ng-repeat="item in ctl.sortList" data-col="{{item.ID}}">
  275. <td ng-bind="$index+1"></td>
  276. <td>
  277. <div class="sp-color-blue" ng-bind="item.CNAME"></div>
  278. </td>
  279. <td ng-bind="item.SEX"></td>
  280. <td ng-bind="item.ZHIWU"></td>
  281. <td ng-if="ctl.type==1" ng-bind="item.TEL"></td>
  282. <td ng-if="ctl.type==1" ng-bind="item.MOBILEPHONE"></td>
  283. <td ng-if="ctl.type!=1" ng-bind="item.DPNAME"></td>
  284. <td ng-if="ctl.type!=1" ng-bind="item.REMARK"></td>
  285. </tr>
  286. </tbody>
  287. </table>
  288. </div>
  289. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  290. <button class="sp-btn-blue sp-btn-md" ng-click="ctl.btnSortBtn()">
  291. <i class="fa fa-check"></i>&nbsp;提交
  292. </button>
  293. <button class="sp-btn-default sp-btn-md" onclick="sp.layerhide()">
  294. <i class="fa fa-close"></i>&nbsp;取消
  295. </button>
  296. </div>
  297. </div>
  298. </div>
  299. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  300. <script src="../../AFrontEnd/js/jquery/jquery-ui-1.10.4.min.js"></script>
  301. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  302. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  303. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  304. <script src="../../apiurljs.js"></script>
  305. <script src="../../js/sm4.js"></script>
  306. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  307. <script>document.write('<scri' + 'pt src="js/zbUserList.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  308. <script src="../../AFrontEnd/js/special/spng.js"></script>
  309. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  310. </body>
  311. </html>