index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 http-equiv="Pragma" content="no-cache" />
  6. <meta http-equiv="Cache-Control" content="no-cache" />
  7. <meta http-equiv="Expires" content="0" />
  8. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  9. <title>值班安排</title>
  10. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  11. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  12. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  13. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  14. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  15. </head>
  16. <body ng-controller="dutyCtrl as ctl" ng-cloak>
  17. <div class="wrapper wrapper-content">
  18. <div class="row">
  19. <div class="col-md-12">
  20. <div class="ibox float-e-margins">
  21. <div class="ibox-title">
  22. <span ng-bind="ctl.duty.year"></span>年第&nbsp;<span class="sp-color-blue sp-fs-18" ng-bind="ctl.duty.weekNum"></span>&nbsp;周值班安排
  23. <div class="ibox-tools">今日:<span ng-bind="ctl.duty.nowDay"></span></div>
  24. </div>
  25. <div class="ibox-content">
  26. <div class="row">
  27. <div class="col-md-12">
  28. <div class="sp-duty">
  29. <div class="sp-duty-col" ng-repeat="item in ctl.weekinfo" ng-class="{'sp-duty-weekend':'{{ctl.duty.weekday}}'=='{{item.weekNum}}'}">
  30. <ul class="sp-duty-col-up">
  31. <li class="sp-duty-col-left" ng-bind="item.weekNum"></li>
  32. <li class="sp-duty-col-right" ng-bind="item.day"></li>
  33. </ul>
  34. <ul class="sp-duty-col-foot">
  35. <li>带班人:<span ng-bind="item.Parti"></span></li>
  36. <li ng-repeat="item2 in item.person">值班人:<span ng-bind="item2.tname"></span>(<span ng-bind="item2.ctype"></span>)</li>
  37. </ul>
  38. </div>
  39. <!--<div class="sp-duty-col">
  40. <ul class="sp-duty-col-up">
  41. <li class="sp-duty-col-left">周二</li>
  42. <li class="sp-duty-col-right">10</li>
  43. </ul>
  44. <ul class="sp-duty-col-foot">
  45. <li>带班人:李晓然</li>
  46. <li>值班人:张亚楠(夜)</li>
  47. </ul>
  48. </div>
  49. <div class="sp-duty-col sp-duty-weekend">
  50. <ul class="sp-duty-col-up">
  51. <li class="sp-duty-col-left">周六</li>
  52. <li class="sp-duty-col-right">14</li>
  53. </ul>
  54. <ul class="sp-duty-col-foot">
  55. <li>带班人:李晓然</li>
  56. <li>值班人:张亚楠(早)</li>
  57. <li>值班人:张亚楠(晚)</li>
  58. <li>值班人:张亚楠(夜)</li>
  59. </ul>
  60. </div>
  61. <div class="sp-duty-col sp-duty-weekend">
  62. <ul class="sp-duty-col-up">
  63. <li class="sp-duty-col-left">周七</li>
  64. <li class="sp-duty-col-right">15</li>
  65. </ul>
  66. <ul class="sp-duty-col-foot">
  67. <li>带班人:李晓然</li>
  68. <li>值班人:张亚楠(早)</li>
  69. <li>值班人:张亚楠(晚)</li>
  70. <li>值班人:张亚楠(夜)</li>
  71. </ul>
  72. </div>-->
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="ibox float-e-margins">
  79. <div class="ibox-title">
  80. <h5>值班列表</h5>
  81. <div class="ibox-tools">
  82. <button class="sp-btn-blue sp-btn-radius sp-btn-sm" onclick="sp.layer('#layer_addDuty')" ><i class="fa fa-plus sp-mr-5"></i>新 建</button>
  83. </div>
  84. </div>
  85. <div class="ibox-content">
  86. <div class="row">
  87. <div class="col-md-12">
  88. <table class="sp-table">
  89. <thead>
  90. <tr>
  91. <th style="width:60px;">序号</th>
  92. <th>名称</th>
  93. <th>登记人</th>
  94. <th>登记时间</th>
  95. <th>所属部门</th>
  96. <th>值班类型</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage" total-items="ctl.total_count">
  101. <td ng-bind="(ctl.pageno-1)*ctl.itemsPerPage+($index+1)"></td>
  102. <td>
  103. <a ng-bind="item.title" class="sp-color-blue" ng-click="ctl.getSelectedWeekInfo($index)"></a>
  104. </td>
  105. <td ng-bind="item.person"></td>
  106. <td ng-bind="item.tdate"></td>
  107. <td ng-bind="item.depart"></td>
  108. <td ng-bind="item.ctype"></td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  113. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  114. </div>
  115. <div class="sp-page" ng-show="ctl.noDataTip == 1">
  116. <div class="sp-page-col sp-pull-right">
  117. <div class="sp-lh-34">
  118. 每页
  119. <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions" ng-init="ctl.itemsPerPage=ctl.pageOptions[0]" ng-change="ctl.changePageOption()"></select>
  120. </div>
  121. </div>
  122. <div class="sp-page-col sp-pull-right">
  123. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  124. on-page-change="ctl.getData(newPageNumber)">
  125. </dir-pagination-controls>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="sp-layer" id="layer_addDuty" data-title="新建值班安排" style="width:500px;">
  136. <div class="sp-layer-body">
  137. <div class="sp-page">
  138. <table class="sp-grid-job">
  139. <tbody>
  140. <tr>
  141. <td style="width:80px;">年度</td>
  142. <td><input type="text" class="sp-input" ng-model="ctl.add.year" readonly="readonly" /></td>
  143. </tr>
  144. <tr>
  145. <td>周数</td>
  146. <td><input type="text" class="sp-input" ng-model="ctl.add.week" sp-required sp-digit /></td>
  147. </tr>
  148. <tr>
  149. <td>名称</td>
  150. <td class="sp-text-left">
  151. <span ng-bind="ctl.add.year"></span>
  152. 年第
  153. <span ng-bind="ctl.add.week"></span>
  154. 周值班安排
  155. </td>
  156. </tr>
  157. <tr>
  158. <td>值班类型</td>
  159. <td>
  160. <select class="sp-select" ng-model="ctl.add.ctype">
  161. <option>日常</option>
  162. <option>春节</option>
  163. <option>清明节</option>
  164. <option>五一劳动节</option>
  165. <option>端午节</option>
  166. <option>国庆节</option>
  167. <option>中秋节</option>
  168. </select>
  169. </td>
  170. </tr>
  171. </tbody>
  172. </table>
  173. <div class="sp-line-gray"></div>
  174. <div class="sp-page sp-text-center">
  175. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnAddDuty()"><i class="fa fa-check sp-mr-5"></i>提 交</button>
  176. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()"><i class="fa fa-trash sp-mr-5"></i>取 消</button>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  182. <script src="../../AFrontEnd/js/laydate/laydate.js"></script>
  183. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  184. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  185. <script src="../../AFrontEnd/js/angularjs/angular-sanitize.js"></script>
  186. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  187. <script>document.write('<scri' + 'pt src="js/duty.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');;</script>
  188. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  189. </body>
  190. </html>