index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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/index.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. </head>
  14. <body>
  15. <div ng-controller="indexCtrl as ctl" id="app" ng-cloak>
  16. <div class="sp-wrapper-left" style="width: 20%; top: 0; background: #F7F7F7; border-left: 1px #F7F7F7 solid; border-right: 1px #F7F7F7 solid;overflow:auto ">
  17. <div class="sp-menu" id="spWrapperLeftBar">
  18. <div class="sp-menu-row">
  19. <ul id="spWrapperLeftBarUl" class="sp-menu">
  20. <li class="sp-menu-first" ng-repeat="item in ctl.leftTree">
  21. <span class="sp-menu-ltitle" title="{{item.CNAME}}" ng-bind="item.CNAME" ng-click="ctl.checkNode(item,0)"></span>
  22. <!--<span class="sp-menu-icon" ng-click="ctl.addNode(item)">
  23. <i class="fa fa-plus"></i>
  24. </span>-->
  25. <ul>
  26. <li class="sp-menu-second" ng-class="{'activeNode':ctl.activeNode.CODE==item1.CODE}" ng-show="item.show" ng-repeat="item1 in item.C_H_I_L_D_DATA">
  27. <span class="sp-menu-ltitle" ng-if="item1.C_H_I_L_D_DATA.length!=0" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1,0)"></span>
  28. <span class="sp-menu-ltitle" ng-if="item1.C_H_I_L_D_DATA.length==0" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1,1)"></span>
  29. <span class="sp-pull-right sp-mr-15" ng-if="ctl.UserRole==true" ng-click="ctl.LPEdit(item1)">
  30. <i class="fa fa-edit sp-color-blue" title="编辑"></i>
  31. </span>
  32. <ul>
  33. <li class="sp-menu-third" ng-class="{'activeNode':ctl.activeNode.CODE==item2.CODE}" ng-show="item1.show" ng-repeat="item2 in item1.C_H_I_L_D_DATA">
  34. <span class="sp-menu-ltitle" ng-bind="item2.CNAME" title="{{item2.CNAME}}" ng-click="ctl.checkNode(item2,1)"></span>
  35. <span class="sp-pull-right sp-mr-15" ng-if="ctl.UserRole==true" ng-click="ctl.LPEdit(item2)">
  36. <i class="fa fa-edit sp-color-blue" title="编辑"></i>
  37. </span>
  38. </li>
  39. </ul>
  40. </li>
  41. </ul>
  42. </li>
  43. </ul>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="sp-wrapper-right" style="left: 20%; top: 25px; right: 31px">
  48. <span class="sp-pull-right sp-btn-blue sp-radius" ng-if="ctl.UserRole==true" ng-click="ctl.btnAdd()">添加人员</span>
  49. <div class="sp-page" style="max-height:700px;overflow:auto">
  50. <table class="sp-table">
  51. <thead>
  52. <tr>
  53. <th width="50">序号</th>
  54. <th width="100">姓名</th>
  55. <th>职务</th>
  56. <!--<th>部门名称</th>-->
  57. <th width="120">手机号</th>
  58. <th width="120">座机号</th>
  59. <th>房间号</th>
  60. <th>传真</th>
  61. <th>邮编</th>
  62. <th width="120">邮箱</th>
  63. <th width="250" ng-if="ctl.UserRole==true">操作</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <tr ng-repeat="item in ctl.list">
  68. <td ng-bind="$index+1"></td>
  69. <td>
  70. <span ng-bind="item.USHOWNAME" ng-if="item.editFlag==false"></span>
  71. <input type="text" class="sp-input" ng-model="ctl.editItem.USHOWNAME" ng-if="item.editFlag==true" />
  72. </td>
  73. <td>
  74. <span ng-bind="item.DUTYNAME" ng-if="item.editFlag==false"></span>
  75. <input type="text" class="sp-input" ng-model="ctl.editItem.DUTYNAME" ng-if="item.editFlag==true" />
  76. </td>
  77. <!--<td>
  78. <span ng-bind="item.SECTNAME" ng-if="item.editFlag==false"></span>
  79. <input type="text" class="sp-input" ng-model="ctl.editItem.SECTNAME" ng-if="item.editFlag==true" />
  80. </td>-->
  81. <td>
  82. <span ng-bind="item.MOBILE" ng-if="item.editFlag==false"></span>
  83. <input type="text" class="sp-input" ng-model="ctl.editItem.MOBILE" ng-if="item.editFlag==true" />
  84. </td>
  85. <td>
  86. <span ng-bind="item.TEL" ng-if="item.editFlag==false"></span>
  87. <input type="text" class="sp-input" ng-model="ctl.editItem.TEL" ng-if="item.editFlag==true" />
  88. </td>
  89. <td>
  90. <span ng-bind="item.ROOM" ng-if="item.editFlag==false"></span>
  91. <input type="text" class="sp-input" ng-model="ctl.editItem.ROOM" ng-if="item.editFlag==true" />
  92. </td>
  93. <td>
  94. <span ng-bind="item.FAX" ng-if="item.editFlag==false"></span>
  95. <input type="text" class="sp-input" ng-model="ctl.editItem.FAX" ng-if="item.editFlag==true" />
  96. </td>
  97. <td>
  98. <span ng-bind="item.ZIPCODE" ng-if="item.editFlag==false"></span>
  99. <input type="text" class="sp-input" ng-model="ctl.editItem.ZIPCODE" ng-if="item.editFlag==true" />
  100. </td>
  101. <td>
  102. <span ng-bind="item.EMAIL" ng-if="item.editFlag==false"></span>
  103. <input type="text" class="sp-input" ng-model="ctl.editItem.EMAIL" ng-if="item.editFlag==true" />
  104. </td>
  105. <td ng-if="ctl.UserRole==true">
  106. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.btnEdit(item)" ng-disabled="ctl.editFlag==true" ng-if="item.editFlag==false">编辑</button>
  107. <button class="sp-btn-red sp-btn-sm sp-radius" ng-click="ctl.btnDelete(item)" ng-disabled="ctl.editFlag==true" ng-if="item.editFlag==false">删除</button>
  108. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.btnSave(2)" ng-if="item.editFlag==true">保存</button>
  109. <button class="sp-btn-red sp-btn-sm sp-radius" ng-click="ctl.editFlag=false;item.editFlag=false" ng-if="item.editFlag==true">取消</button>
  110. <button class="sp-btn-green sp-btn-sm sp-radius" ng-click="ctl.btnSort(item,-1)" ng-disabled="ctl.editFlag==true||$index==0" ng-if="item.editFlag==false">上移</button>
  111. <button class="sp-btn-green sp-btn-sm sp-radius" ng-click="ctl.btnSort(item,1)" ng-disabled="ctl.editFlag==true||$index==ctl.list.length-1" ng-if="item.editFlag==false">下移</button>
  112. </td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. </div>
  118. <div class="sp-layer" id="layer_box_edit" style="width:500px;">
  119. <div class="sp-layer-head" style="background:#2176d6">
  120. <div class="sp-page sp-text-center sp-font16">
  121. 修改节点信息
  122. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  123. ×
  124. </div>
  125. </div>
  126. </div>
  127. <div class="sp-layer-body">
  128. <div class="sp-page">
  129. <table class="sp-grid-job">
  130. <tbody>
  131. <tr>
  132. <td style="width:150px;">当前节点名称</td>
  133. <td>
  134. <input type="text" class="sp-input" ng-model="ctl.edit.cname" />
  135. </td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  140. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSaveNode()">
  141. <i class="fa fa-check sp-mr-5"></i>保 存
  142. </button>
  143. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  144. <i class="fa fa-close sp-mr-5"></i>取 消
  145. </button>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <div id="addUser" class="sp-layer" style="width:600px">
  151. <div class="sp-layer-head" style="background:#2176d6">
  152. <div class="sp-page sp-text-center sp-font16">
  153. 值班人员添加
  154. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  155. ×
  156. </div>
  157. </div>
  158. </div>
  159. <div class="sp-layer-body" ng-class="{'sp-height-400': '{{ctl.deviceType}}' =='pad'}">
  160. <table class="sp-table">
  161. <tr>
  162. <td width="80">姓名</td>
  163. <td>
  164. <input type="text" class="sp-input" ng-model="ctl.addItem.USHOWNAME" />
  165. </td>
  166. <td width="80">职务</td>
  167. <td>
  168. <input type="text" class="sp-input" ng-model="ctl.addItem.DUTYNAME" />
  169. </td>
  170. </tr>
  171. <tr>
  172. <td>手机号</td>
  173. <td>
  174. <input type="text" class="sp-input" ng-model="ctl.addItem.MOBILE" />
  175. </td>
  176. <td>邮箱</td>
  177. <td>
  178. <input type="text" class="sp-input" ng-model="ctl.addItem.EMAIL" />
  179. </td>
  180. </tr>
  181. <tr>
  182. <td>座机号</td>
  183. <td>
  184. <input type="text" class="sp-input" ng-model="ctl.addItem.TEL" />
  185. </td>
  186. <td>房间号</td>
  187. <td>
  188. <input type="text" class="sp-input" ng-model="ctl.addItem.ROOM" />
  189. </td>
  190. <tr>
  191. <td>传真</td>
  192. <td>
  193. <input type="text" class="sp-input" ng-model="ctl.addItem.FAX" />
  194. </td>
  195. <td>邮编</td>
  196. <td>
  197. <input type="text" class="sp-input" ng-model="ctl.addItem.ZIPCODE" />
  198. </td>
  199. </tr>
  200. </tr>
  201. </table>
  202. <div class="sp-page sp-text-center sp-pt-10">
  203. <a class="sp-btn-blue sp-radius" ng-click="ctl.btnSave(1)"><i class="fa fa-check sp-mr-5"></i>确 定</a>
  204. <a class="sp-btn-blue sp-radius" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>关 闭</a>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  210. <script src="../../AFrontEnd/plugins/hightcharts/highcharts.js"></script>
  211. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  212. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  213. <script src="../../apiurljs.js"></script>
  214. <script src="../../js/sm4.js"></script>
  215. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  216. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  217. <!--附件-->
  218. <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  219. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  220. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  221. </body>
  222. </html>