index.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" data-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. <title>部门管理</title>
  9. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  11. <script>document.write("<link rel='stylesheet' href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "'>");</script>
  12. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  13. <link href="css/index.css?v=202006011551" rel="stylesheet" />
  14. </head>
  15. <body ng-controller="appCtrl as ctl" ng-cloak>
  16. <div class="wrapper wrapper-content">
  17. <div class="loading" ng-if="ctl.loading">
  18. <div class="loading-msg">
  19. <h3>数据加载中,请等待</h3>
  20. <div class="spinner">
  21. <div class="bounce1"></div>
  22. <div class="bounce2"></div>
  23. <div class="bounce3"></div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="ibox float-e-margins">
  28. <div class="ibox-content">
  29. <div class="row">
  30. <div class="col-md-12">
  31. <div class="sp-page">
  32. <div class="sp-page-col">
  33. <div class="sp-lh-26">选择机构: </div>
  34. </div>
  35. <div class="sp-page-col sp-ml-15">
  36. <select ng-model="ctl.unit" ng-change="ctl.getData()" class="sp-select">
  37. <option ng-repeat="item in ctl.unitList" ng-init="ctl.unit=ctl.unitList[0].CODE" value="{{item.CODE}}">{{item.SECTION}}</option>
  38. </select>
  39. </div>
  40. <div class="sp-page-col sp-ml-15" ng-if="ctl.userTypeEng!='SECADMIN'">
  41. <a class="sp-lh-26 sp-color-blue" ng-click="ctl.recordCtime()">机构设置</a>
  42. </div>
  43. <div class="sp-page-col sp-pull-right" ng-if="ctl.userTypeEng!='SECADMIN'">
  44. <button class="sp-btn-blue sp-btn-radius sp-btn-sm" ng-click="ctl.btnAddFirstDepartment(ctl.rows)">
  45. <i class="fa fa-plus sp-mr-5"></i>新建一级部门
  46. </button>
  47. </div>
  48. </div>
  49. <div class="sp-line-gray"></div>
  50. <div class="menu-list" tree-view tree-data="ctl.rows.C_H_I_L_D" text-field="SECTION" item-clicked="ctl.itemClicked($item)"
  51. item-edit="ctl.itemEdit($item,$event)" item-delete="ctl.itemDelete($item,$event)" item-sortup="ctl.itemSortup($item,$event)"
  52. item-sortdown="ctl.itemSortdown($item,$event)" user-type-eng="ctl.userTypeEng">
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <!-- 新建一级部门 -->
  59. <div class="sp-layer" id="layer_addFirstDepartment" data-title="部门设置" style="width:500px;">
  60. <div class="sp-layer-body">
  61. <div class="sp-page">
  62. <table class="sp-grid-job">
  63. <tbody>
  64. <tr>
  65. <td style="width:80px;">部门名称</td>
  66. <td>
  67. <input type="text" class="sp-input" ng-model="ctl.selectedItem.child_title" />
  68. </td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  73. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSetTitle()">
  74. <i class="fa fa-check sp-mr-5"></i>提 交
  75. </button>
  76. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  77. <i class="fa fa-trash sp-mr-5"></i>取 消
  78. </button>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="sp-layer" id="layer_box" data-title="部门设置" style="width:500px;">
  84. <div class="sp-layer-body">
  85. <div class="sp-page">
  86. <table class="sp-grid-job">
  87. <tbody>
  88. <tr>
  89. <td style="width:80px;">部门名称</td>
  90. <td>
  91. <input type="text" class="sp-input" ng-readonly="ctl.selectedItem.add" ng-model="ctl.selectedItem.title" />
  92. </td>
  93. </tr>
  94. <tr ng-show="ctl.selectedItem.add">
  95. <td style="width:80px;">子部门名称</td>
  96. <td>
  97. <input type="text" class="sp-input" ng-model="ctl.selectedItem.child_title" />
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  103. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSetTitle()">
  104. <i class="fa fa-check sp-mr-5"></i>提 交
  105. </button>
  106. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  107. <i class="fa fa-trash sp-mr-5"></i>取 消
  108. </button>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <script type="text/ng-template" id="/treeView.html">
  114. <ul>
  115. <li ng-repeat="item in treeData" ng-include="'/treeItem.html'"></li>
  116. </ul>
  117. </script>
  118. <script type="text/ng-template" id="/treeItem.html">
  119. <p>
  120. <i ng-click="itemExpended(item, $event);" class="{{getItemIcon(item)}}"></i>
  121. <span ng-click="itemExpended(item, $event);" class='text-field'>{{item[textField]}}</span>
  122. <span class="edit-menu sp-color-gray">
  123. <i ng-click="warpCallback('itemClicked', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-plus sp-pl-10" title="增加"></i>
  124. <i ng-click="warpCallback('itemEdit', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-pencil sp-pl-5" title="编辑"></i>
  125. <i ng-click="warpCallback('itemDelete', item, $event);" ng-if="userTypeEng!='SECADMIN'" class="fa fa-trash sp-pl-5" title="删除"></i>
  126. <i ng-click="warpCallback('itemSortup', item, $event);" ng-if="userTypeEng!='SYSADMIN'" class="fa fa-arrow-up sp-pl-5" title="上移"></i>
  127. <i ng-click="warpCallback('itemSortdown', item, $event);" ng-if="userTypeEng!='SYSADMIN'" class="fa fa-arrow-down sp-pl-5" title="下移"></i>
  128. </span>
  129. </p>
  130. <!--<ul ng-if="!isEnd(item)" ng-show="item.$$isExpend">
  131. <li ng-repeat="item in item.C_H_I_L_D" ng-include="'/treeItem.html'"></li>
  132. </ul>-->
  133. <ul ng-if="!isEnd(item)" ng-show="item.show">
  134. <li ng-repeat="item in item.C_H_I_L_D" ng-include="'/treeItem.html'"></li>
  135. </ul>
  136. </script>
  137. </div>
  138. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  139. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  140. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  141. <script src="../../apiurljs.js"></script>
  142. <script src="../../js/sm4.js"></script>
  143. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  144. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  145. <script src="../../AFrontEnd/js/special/spng.js"></script>
  146. <script src="../../AFrontEnd/js/special/spngvld.js"></script>
  147. </body>
  148. </html>