list.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. <style>
  13. #table thead tr th,
  14. #table1 thead tr th {
  15. font-size: 20px;
  16. font-weight: 600;
  17. background: #e0e0e0;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div ng-controller="taizhangCtrl as ctl" ng-cloak>
  23. <div class="loading" ng-if="ctl.loading">
  24. <div class="loading-msg">
  25. <h3>数据加载中,请等待</h3>
  26. <div class="spinner">
  27. <div class="bounce1"></div>
  28. <div class="bounce2"></div>
  29. <div class="bounce3"></div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="wrapper wrapper-content">
  34. <div class="row">
  35. <div class="col-md-12">
  36. <div class="ibox float-e-margins">
  37. <div class="ibox-content">
  38. <div class="row">
  39. <div class="col-md-12">
  40. <div class="sp-page-tab">
  41. <div class="sp-page-col">
  42. <div class="sp-page-title" style="margin:7px 0;">一周安排</div>
  43. </div>
  44. <div class="sp-pull-right">
  45. <!--<a class="sp-pull-right sp-btn-gray sp-btn-radius" href="list.html">
  46. <i class="fa fa-reply sp-mr-5"></i>返 回
  47. </a>-->
  48. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.printOut()">
  49. <i class="fa fa-sign-out sp-mr-5"></i>导 出
  50. </a>
  51. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.refresh()">
  52. <i class="fa fa-refresh sp-mr-5"></i>刷 新
  53. </a>
  54. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.addItem()">
  55. <i class="fa fa-plus sp-mr-5"></i>日新增
  56. </a>
  57. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.openInit()">
  58. <i class="fa fa-recycle sp-mr-5"></i>周新建
  59. </a>
  60. <a class="sp-pull-right sp-btn-gray sp-btn-radius" ng-click="ctl.openLayer()">
  61. <i class="fa fa-search sp-mr-5"></i>筛 选
  62. </a>
  63. </div>
  64. </div>
  65. <table class="sp-grid-import" id="table1">
  66. <thead>
  67. <tr>
  68. <th width="500">时间</th>
  69. <th>工作内容</th>
  70. <th width="400">参加范围</th>
  71. <th width="400">地点</th>
  72. </tr>
  73. </thead>
  74. </table>
  75. <div class="sp-page table-scroll" style="max-height:450px;overflow:auto">
  76. <table class="sp-grid-import" style="margin-top:-37px" id="table">
  77. <thead>
  78. <tr>
  79. <th colspan="4">时间</th>
  80. <th>工作内容</th>
  81. <th width="400">参加范围</th>
  82. <th width="400">地点</th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. <tr ng-repeat="item in ctl.list" repeat-finish>
  87. <td width="150" ng-bind="item.YZAPDATE1"></td>
  88. <td width="100" ng-bind="item.CWEEK"></td>
  89. <td width="100">
  90. <span ng-bind="item.TIMEPERIOD" ng-if="ctl.editFlag==false"></span>
  91. <span ng-bind="item.TIMEPERIOD1" ng-if="ctl.editFlag==true"></span>
  92. </td>
  93. <td width="150">
  94. <span ng-bind="item.CTIME1" ng-if="ctl.editFlag==false"></span>
  95. <input type="text" class="sp-input laydate-logo" sp-laydate laytype="time" format="HH:mm" ng-model="item.CTIME2" ng-if="ctl.editFlag==true" ng-change="ctl.changeCtime(item,1)" />
  96. </td>
  97. <td>
  98. <span ng-bind="item.CNAME" ng-if="ctl.editFlag==false"></span>
  99. <i class="fa fa-close sp-color-red" style="float:right;cursor:pointer" ng-if="ctl.editFlag==false" ng-click="ctl.delItem(item)" title="删除"></i>
  100. <input type="text" class="sp-input" ng-model="item.CNAME1" ng-if="ctl.editFlag==true" />
  101. </td>
  102. <td>
  103. <span ng-bind="item.ATTENDANCESCOPE" ng-if="ctl.editFlag==false"></span>
  104. <input type="text" class="sp-input" ng-model="item.ATTENDANCESCOPE1" ng-if="ctl.editFlag==true" />
  105. </td>
  106. <td>
  107. <span ng-bind="item.ADDR" ng-if="ctl.editFlag==false"></span>
  108. <input type="text" class="sp-input" ng-model="item.ADDR1" ng-if="ctl.editFlag==true" />
  109. </td>
  110. </tr>
  111. <tr ng-repeat="item in ctl.addList" ng-if="ctl.addFlag==true">
  112. <td width="150">
  113. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="item.YZAPDATE" ng-change="ctl.changeCtime(item,0)" />
  114. </td>
  115. <td width="100" ng-bind="item.CWEEK"></td>
  116. <td width="100" ng-bind="item.TIMEPERIOD"></td>
  117. <td width="150">
  118. <input type="text" class="sp-input laydate-logo" sp-laydate laytype="time" format="HH:mm" ng-model="item.CTIME" ng-change="ctl.changeCtime(item,0)" />
  119. </td>
  120. <td>
  121. <input type="text" class="sp-input" ng-model="item.CNAME" />
  122. </td>
  123. <td>
  124. <input type="text" class="sp-input" ng-model="item.ATTENDANCESCOPE" />
  125. </td>
  126. <td>
  127. <input type="text" class="sp-input" ng-model="item.ADDR" />
  128. </td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <div class="sp-table-tip ng-hide" ng-show="ctl.list.length == 0&&ctl.addFlag==false">
  133. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  134. </div>
  135. </div>
  136. <div class="sp-page sp-text-right">
  137. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-if="ctl.editFlag==false" ng-click="ctl.editFlag=true">编辑</button>
  138. <button class="sp-btn-green sp-btn-sm sp-radius" ng-if="ctl.editFlag==true||ctl.addFlag==true" ng-click="ctl.btnSave()">保存</button>
  139. <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="ctl.editFlag==true||ctl.addFlag==true" ng-click="ctl.btnCancal()">取消</button>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="sp-layer" id="Search" style="width: 550px;">
  149. <div class="sp-layer-head" style="background:#2176d6">
  150. <div class="sp-page sp-text-center sp-font16">
  151. 筛选
  152. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  153. ×
  154. </div>
  155. </div>
  156. </div>
  157. <div class="sp-layer-body">
  158. <table class="sp-grid-job">
  159. <tbody>
  160. <tr>
  161. <td style="width:120px;">开始时间</td>
  162. <td>
  163. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.search.DATE1" />
  164. </td>
  165. </tr>
  166. <tr>
  167. <td style="width:120px;">结束时间</td>
  168. <td>
  169. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.search.DATE2" />
  170. </td>
  171. </tr>
  172. </tbody>
  173. </table>
  174. <div class="sp-page sp-text-center sp-mt-20">
  175. <a class="sp-btn-blue sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-check sp-mr-5"></i>确 定</a>
  176. <a class="sp-btn-blue sp-radius" ng-click="ctl.cancal()"><i class="fa fa-refresh sp-mr-5"></i>重 置</a>
  177. </div>
  178. </div>
  179. </div>
  180. <div class="sp-layer" id="Init" style="width: 550px;">
  181. <div class="sp-layer-head" style="background:#2176d6">
  182. <div class="sp-page sp-text-center sp-font16">
  183. 初始化
  184. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  185. ×
  186. </div>
  187. </div>
  188. </div>
  189. <div class="sp-layer-body">
  190. <table class="sp-grid-job">
  191. <tbody>
  192. <tr>
  193. <td style="width:120px;">开始时间</td>
  194. <td>
  195. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.init.DATE1" />
  196. </td>
  197. </tr>
  198. <tr>
  199. <td style="width:120px;">结束时间</td>
  200. <td>
  201. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.init.DATE2" />
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <div class="sp-page sp-text-center sp-mt-20">
  207. <a class="sp-btn-blue sp-radius" ng-click="ctl.doInit()"><i class="fa fa-check sp-mr-5"></i>初始化</a>
  208. <a class="sp-btn-blue sp-radius" onclick="sp.layerhide()"><i class="fa fa-refresh sp-mr-5"></i>取 消</a>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <script src="../../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  214. <script src="../../../AFrontEnd/js/laydate/laydate.js"></script>
  215. <script src="../../../AFrontEnd/js/angularjs/angular.js"></script>
  216. <script src="../../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  217. <script src="../../../apiurljs.js"></script>
  218. <script src="../../../js/sm4.js"></script>
  219. <script>document.write('<scri' + 'pt src="../../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  220. <script>document.write('<scri' + 'pt src="js/taizhang.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  221. <script src="../../../AFrontEnd/js/special/spng.js"></script>
  222. <script src="../../../AFrontEnd/js/special/spngvld.js"></script>
  223. <!-- 导出excel -->
  224. <script src="../../gongzi/js/vendor/jquery.jqprint-0.3.js"></script>
  225. <script src="../../gongzi/js/vendor/shim.min.js"></script>
  226. <script src="../../gongzi/js/vendor/jszip.js"></script>
  227. <script src="../../gongzi/js/vendor/xlsx.full.js"></script>
  228. <script src="../../gongzi/js/vendor/Blob.js"></script>
  229. <script src="../../gongzi/js/vendor/FileSaver.js"></script>
  230. </body>
  231. </html>