index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <ul>
  30. <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">
  31. <span class="sp-menu-ltitle" ng-bind="item2.CNAME" title="{{item2.CNAME}}" ng-click="ctl.checkNode(item2,1)"></span>
  32. </li>
  33. </ul>
  34. </li>
  35. </ul>
  36. </li>
  37. </ul>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="sp-wrapper-right" style="left: 20%; top: 25px; right: 31px">
  42. <span class="sp-pull-right sp-btn-blue sp-radius" ng-if="ctl.UserRole==true" ng-click="ctl.btnAdd()">添加人员</span>
  43. <div class="sp-page" style="max-height:700px;overflow:auto">
  44. <table class="sp-table">
  45. <thead>
  46. <tr>
  47. <th width="50">序号</th>
  48. <th width="100">姓名</th>
  49. <th>职务</th>
  50. <!--<th>部门名称</th>-->
  51. <th width="120">手机号</th>
  52. <th width="120">座机号</th>
  53. <th>房间号</th>
  54. <th>传真</th>
  55. <th>邮编</th>
  56. <th width="120">邮箱</th>
  57. <th width="250" ng-if="ctl.UserRole==true">操作</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr ng-repeat="item in ctl.list">
  62. <td ng-bind="$index+1"></td>
  63. <td>
  64. <span ng-bind="item.USHOWNAME" ng-if="item.editFlag==false"></span>
  65. <input type="text" class="sp-input" ng-model="ctl.editItem.USHOWNAME" ng-if="item.editFlag==true" />
  66. </td>
  67. <td>
  68. <span ng-bind="item.DUTYNAME" ng-if="item.editFlag==false"></span>
  69. <input type="text" class="sp-input" ng-model="ctl.editItem.DUTYNAME" ng-if="item.editFlag==true" />
  70. </td>
  71. <!--<td>
  72. <span ng-bind="item.SECTNAME" ng-if="item.editFlag==false"></span>
  73. <input type="text" class="sp-input" ng-model="ctl.editItem.SECTNAME" ng-if="item.editFlag==true" />
  74. </td>-->
  75. <td>
  76. <span ng-bind="item.MOBILE" ng-if="item.editFlag==false"></span>
  77. <input type="text" class="sp-input" ng-model="ctl.editItem.MOBILE" ng-if="item.editFlag==true" />
  78. </td>
  79. <td>
  80. <span ng-bind="item.TEL" ng-if="item.editFlag==false"></span>
  81. <input type="text" class="sp-input" ng-model="ctl.editItem.TEL" ng-if="item.editFlag==true" />
  82. </td>
  83. <td>
  84. <span ng-bind="item.ROOM" ng-if="item.editFlag==false"></span>
  85. <input type="text" class="sp-input" ng-model="ctl.editItem.ROOM" ng-if="item.editFlag==true" />
  86. </td>
  87. <td>
  88. <span ng-bind="item.FAX" ng-if="item.editFlag==false"></span>
  89. <input type="text" class="sp-input" ng-model="ctl.editItem.FAX" ng-if="item.editFlag==true" />
  90. </td>
  91. <td>
  92. <span ng-bind="item.ZIPCODE" ng-if="item.editFlag==false"></span>
  93. <input type="text" class="sp-input" ng-model="ctl.editItem.ZIPCODE" ng-if="item.editFlag==true" />
  94. </td>
  95. <td>
  96. <span ng-bind="item.EMAIL" ng-if="item.editFlag==false"></span>
  97. <input type="text" class="sp-input" ng-model="ctl.editItem.EMAIL" ng-if="item.editFlag==true" />
  98. </td>
  99. <td ng-if="ctl.UserRole==true">
  100. <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>
  101. <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>
  102. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.btnSave(2)" ng-if="item.editFlag==true">保存</button>
  103. <button class="sp-btn-red sp-btn-sm sp-radius" ng-click="ctl.editFlag=false;item.editFlag=false" ng-if="item.editFlag==true">取消</button>
  104. <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>
  105. <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>
  106. </td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. </div>
  111. </div>
  112. <div id="addUser" class="sp-layer" style="width:600px">
  113. <div class="sp-layer-head" style="background:#2176d6">
  114. <div class="sp-page sp-text-center sp-font16">
  115. 值班人员添加
  116. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  117. ×
  118. </div>
  119. </div>
  120. </div>
  121. <div class="sp-layer-body" ng-class="{'sp-height-400': '{{ctl.deviceType}}' =='pad'}">
  122. <table class="sp-table">
  123. <tr>
  124. <td width="80">姓名</td>
  125. <td>
  126. <input type="text" class="sp-input" ng-model="ctl.addItem.USHOWNAME" />
  127. </td>
  128. <td width="80">职务</td>
  129. <td>
  130. <input type="text" class="sp-input" ng-model="ctl.addItem.DUTYNAME" />
  131. </td>
  132. </tr>
  133. <tr>
  134. <td>手机号</td>
  135. <td>
  136. <input type="text" class="sp-input" ng-model="ctl.addItem.MOBILE" />
  137. </td>
  138. <td>邮箱</td>
  139. <td>
  140. <input type="text" class="sp-input" ng-model="ctl.addItem.EMAIL" />
  141. </td>
  142. </tr>
  143. <tr>
  144. <td>座机号</td>
  145. <td>
  146. <input type="text" class="sp-input" ng-model="ctl.addItem.TEL" />
  147. </td>
  148. <td>房间号</td>
  149. <td>
  150. <input type="text" class="sp-input" ng-model="ctl.addItem.ROOM" />
  151. </td>
  152. <tr>
  153. <td>传真</td>
  154. <td>
  155. <input type="text" class="sp-input" ng-model="ctl.addItem.FAX" />
  156. </td>
  157. <td>邮编</td>
  158. <td>
  159. <input type="text" class="sp-input" ng-model="ctl.addItem.ZIPCODE" />
  160. </td>
  161. </tr>
  162. </tr>
  163. </table>
  164. <div class="sp-page sp-text-center sp-pt-10">
  165. <a class="sp-btn-blue sp-radius" ng-click="ctl.btnSave(1)"><i class="fa fa-check sp-mr-5"></i>确 定</a>
  166. <a class="sp-btn-blue sp-radius" onclick="sp.layerhide()"><i class="fa fa-close sp-mr-5"></i>关 闭</a>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  172. <script src="../../AFrontEnd/plugins/hightcharts/highcharts.js"></script>
  173. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  174. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  175. <script src="../../apiurljs.js"></script>
  176. <script src="../../js/sm4.js"></script>
  177. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  178. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  179. <!--附件-->
  180. <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  181. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  182. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  183. </body>
  184. </html>