taizhang.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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 width="150">领导</th>
  70. <th width="400">地点</th>
  71. <th>工作内容</th>
  72. <th width="400">参加范围</th>
  73. </tr>
  74. </thead>
  75. </table>
  76. <div class="sp-page table-scroll" style="max-height:450px;overflow:auto">
  77. <table class="sp-grid-import" style="margin-top:-37px" id="table">
  78. <thead>
  79. <tr>
  80. <th colspan="4">时间</th>
  81. <th width="150">领导</th>
  82. <th width="400">地点</th>
  83. <th>工作内容</th>
  84. <th width="400">参加范围</th>
  85. </tr>
  86. </thead>
  87. <tbody>
  88. <tr ng-repeat="item in ctl.list" repeat-finish>
  89. <td width="150" ng-bind="item.YZAPDATE1"></td>
  90. <td width="100" ng-bind="item.CWEEK"></td>
  91. <td width="100">
  92. <span ng-bind="item.TIMEPERIOD" ng-if="ctl.editFlag==false"></span>
  93. <span ng-bind="item.TIMEPERIOD1" ng-if="ctl.editFlag==true"></span>
  94. </td>
  95. <td width="150">
  96. <span ng-bind="item.CTIME1" ng-if="ctl.editFlag==false"></span>
  97. <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)" />
  98. </td>
  99. <td ng-bind="item.USERNAME"></td>
  100. <td>
  101. <span ng-bind="item.ADDR" ng-if="ctl.editFlag==false"></span>
  102. <input type="text" class="sp-input" ng-model="item.ADDR1" ng-if="ctl.editFlag==true" />
  103. </td>
  104. <td>
  105. <span ng-bind="item.CNAME" ng-if="ctl.editFlag==false"></span>
  106. <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>
  107. <input type="text" class="sp-input" ng-model="item.CNAME1" ng-if="ctl.editFlag==true" />
  108. </td>
  109. <td>
  110. <span ng-bind="item.ATTENDANCESCOPE" ng-if="ctl.editFlag==false"></span>
  111. <input type="text" class="sp-input" ng-model="item.ATTENDANCESCOPE1" ng-if="ctl.editFlag==true" />
  112. </td>
  113. </tr>
  114. <tr ng-repeat="item in ctl.addList" ng-if="ctl.addFlag==true">
  115. <td width="150">
  116. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="item.YZAPDATE" ng-change="ctl.changeCtime(item,0)" />
  117. </td>
  118. <td width="100" ng-bind="item.CWEEK"></td>
  119. <td width="100" ng-bind="item.TIMEPERIOD"></td>
  120. <td width="150">
  121. <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)" />
  122. </td>
  123. <td ng-bind="ctl.userName"></td>
  124. <td>
  125. <input type="text" class="sp-input" ng-model="item.ADDR" />
  126. </td>
  127. <td>
  128. <input type="text" class="sp-input" ng-model="item.CNAME" />
  129. </td>
  130. <td>
  131. <input type="text" class="sp-input" ng-model="item.ATTENDANCESCOPE" />
  132. </td>
  133. </tr>
  134. </tbody>
  135. </table>
  136. <div class="sp-table-tip ng-hide" ng-show="ctl.list.length == 0&&ctl.addFlag==false">
  137. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  138. </div>
  139. </div>
  140. <div class="sp-page sp-text-right">
  141. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-if="ctl.editFlag==false&&ctl.list.length>0" ng-click="ctl.editFlag=true">编辑</button>
  142. <button class="sp-btn-green sp-btn-sm sp-radius" ng-if="ctl.editFlag==true||ctl.addFlag==true" ng-click="ctl.btnSave()">保存</button>
  143. <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="ctl.editFlag==true||ctl.addFlag==true" ng-click="ctl.btnCancal()">取消</button>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="sp-layer" id="Search" style="width: 550px;">
  153. <div class="sp-layer-head" style="background:#2176d6">
  154. <div class="sp-page sp-text-center sp-font16">
  155. 筛选
  156. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  157. ×
  158. </div>
  159. </div>
  160. </div>
  161. <div class="sp-layer-body">
  162. <table class="sp-grid-job">
  163. <tbody>
  164. <tr>
  165. <td style="width:120px;">开始时间</td>
  166. <td>
  167. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.search.DATE1" />
  168. </td>
  169. </tr>
  170. <tr>
  171. <td style="width:120px;">结束时间</td>
  172. <td>
  173. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.search.DATE2" />
  174. </td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <div class="sp-page sp-text-center sp-mt-20">
  179. <a class="sp-btn-blue sp-radius" ng-click="ctl.doSearch()"><i class="fa fa-check sp-mr-5"></i>确 定</a>
  180. <a class="sp-btn-blue sp-radius" ng-click="ctl.cancal()"><i class="fa fa-refresh sp-mr-5"></i>重 置</a>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="sp-layer" id="Init" style="width: 550px;">
  185. <div class="sp-layer-head" style="background:#2176d6">
  186. <div class="sp-page sp-text-center sp-font16">
  187. 初始化
  188. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  189. ×
  190. </div>
  191. </div>
  192. </div>
  193. <div class="sp-layer-body">
  194. <table class="sp-grid-job">
  195. <tbody>
  196. <tr>
  197. <td style="width:120px;">开始时间</td>
  198. <td>
  199. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.init.DATE1" />
  200. </td>
  201. </tr>
  202. <tr>
  203. <td style="width:120px;">结束时间</td>
  204. <td>
  205. <input type="text" class="sp-input laydate-logo" sp-laydate ng-model="ctl.init.DATE2" />
  206. </td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <div class="sp-page sp-text-center sp-mt-20">
  211. <a class="sp-btn-blue sp-radius" ng-click="ctl.doInit()"><i class="fa fa-check sp-mr-5"></i>初始化</a>
  212. <a class="sp-btn-blue sp-radius" onclick="sp.layerhide()"><i class="fa fa-refresh sp-mr-5"></i>取 消</a>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <script src="../../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  218. <script src="../../../AFrontEnd/js/laydate/laydate.js"></script>
  219. <script src="../../../AFrontEnd/js/angularjs/angular.js"></script>
  220. <script src="../../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  221. <script src="../../../apiurljs.js"></script>
  222. <script src="../../../js/sm4.js"></script>
  223. <script>document.write('<scri' + 'pt src="../../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  224. <script>document.write('<scri' + 'pt src="js/taizhang.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  225. <script src="../../../AFrontEnd/js/special/spng.js"></script>
  226. <script src="../../../AFrontEnd/js/special/spngvld.js"></script>
  227. <!-- 导出excel -->
  228. <script src="../../gongzi/js/vendor/jquery.jqprint-0.3.js"></script>
  229. <script src="../../gongzi/js/vendor/shim.min.js"></script>
  230. <script src="../../gongzi/js/vendor/jszip.js"></script>
  231. <script src="../../gongzi/js/vendor/xlsx.full.js"></script>
  232. <script src="../../gongzi/js/vendor/Blob.js"></script>
  233. <script src="../../gongzi/js/vendor/FileSaver.js"></script>
  234. </body>
  235. </html>