index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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/list.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. </head>
  14. <body ng-controller="indexCtrl as ctl" ng-cloak>
  15. <div class="sp-page-mgn">
  16. <div class="sp-page-pad">
  17. <div class="sp-page">
  18. <div class="sp-page-col sp-pull-left">
  19. <span class="sp-page-title">栏目管理</span>
  20. </div>
  21. </div>
  22. <div class="sp-line-gray"></div>
  23. <div class="sp-page sp-mt-10">
  24. <div class="fp-part-left">
  25. <div class="sp-page" id="treeDivPart" style="overflow:auto;">
  26. <div style="width: 100%;" class="menu-list" tree-view tree-data="ctl.treeData" text-field="CNAME"
  27. item-up="ctl.itemUp($item,$index,$event)"
  28. item-down="ctl.itemDown($item,$index,$event)"
  29. item-add="ctl.itemAdd($item,$event)"
  30. item-edit="ctl.itemEdit($item,$event)"
  31. item-check="ctl.itemCheck($item,$event)"
  32. item-delete="ctl.itemDelete($item,$event)">
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="sp-layer" id="layer_box" style="width:800px;">
  40. <div class="sp-layer-head">
  41. <span class="sp-layer-title" ng-bind="ctl.itemNode.layerTitle"></span>
  42. <span class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">×</span>
  43. </div>
  44. <div class="sp-layer-body">
  45. <div class="sp-page">
  46. <table class="sp-grid-job">
  47. <tbody>
  48. <tr ng-if="(ctl.itemNode.id!=0&&ctl.itemNode.level==2)||ctl.itemNode.id==0">
  49. <td width="150">分类名称</td>
  50. <td>
  51. <input type="text" class="sp-input" ng-model="ctl.itemNode.name" ng-if="ctl.itemNode.id==0" ng-disabled="ctl.itemNode.level!=1" sp-required />
  52. <input type="text" class="sp-input" ng-model="ctl.itemNode.name" ng-if="ctl.itemNode.id!=0" ng-disabled="ctl.itemNode.level!=2" sp-required />
  53. </td>
  54. </tr>
  55. <tr ng-if="(ctl.itemNode.id!=0&&ctl.itemNode.level==3)||(ctl.itemNode.id==0&&ctl.itemNode.level!=1)">
  56. <td>栏目名称</td>
  57. <td>
  58. <input type="text" class="sp-input" ng-model="ctl.itemNode.child_title" ng-if="ctl.itemNode.id==0" ng-disabled="ctl.itemNode.level!=2" sp-required />
  59. <input type="text" class="sp-input" ng-model="ctl.itemNode.child_title" ng-if="ctl.itemNode.id!=0" ng-disabled="ctl.itemNode.level!=3" sp-required />
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>是否为专栏</td>
  64. <td>
  65. <label ng-repeat="item in ctl.COLUMNTYPE"><input type="radio" name="COLUMNTYPE" ng-model="ctl.itemNode.COLUMNTYPE" value="{{item.CODE}}" />{{item.CNAME}}</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>专栏背景图片</td>
  70. <td>
  71. <span class="upload-img sp-pull-left">
  72. <img ng-click="ctl.beforeUpload()" ng-src="{{ctl.itemNode.imgurl}}" ng-if="ctl.itemNode.imgurl!=null" />
  73. <img ng-click="ctl.beforeUpload()" ng-if="ctl.itemNode.imgurl==null" src="../../../AFrontEnd/css/icons/logo/sp-logo-add-gray.png" />
  74. <input id="fileupload" class="upload-img-file-single" type="file" name="files[]" />
  75. </span>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>操作人员</td>
  80. <td>
  81. <div class="sp-col-100 sp-text-left" id="selectMember" style="height: 160px;overflow: auto;">
  82. <label>
  83. <input ng-click="ctl.selectAll()" ng-model="ctl.isSelectedAll" type="checkbox"> 全选
  84. </label>
  85. <div ng-repeat="item in ctl.userList">
  86. <div class="firstDepart" style="clear: both;">
  87. <label>
  88. <input type="checkbox" ng-model="item.isChecked" ng-click="ctl.firstDepartSelect($index)">
  89. <span ng-bind="item.SECTION" style="font-weight: bold"></span>
  90. </label>
  91. <ul class="userList" ng-repeat="item2 in item.C_H_I_L_D_DATA">
  92. <li style="float: left">
  93. <label style="margin-left: 15px; margin-right: 10px;">
  94. <input type="checkbox" ng-model="item2.isChecked" ng-click="ctl.firstUserSelect($parent.$index)">
  95. <span ng-bind="item2.ushowname"></span>
  96. </label>
  97. </li>
  98. </ul>
  99. <div class="secondDepart" style="clear: both;margin-left: 15px;" ng-repeat="item3 in item.C_H_I_L_D">
  100. <label>
  101. <input type="checkbox" ng-model="item3.isChecked" ng-click="ctl.secondDepartSelect($parent.$index,$index)">
  102. <span ng-bind="item3.SECTION" style="font-weight: bold"></span>
  103. </label>
  104. <ul class="userList" ng-repeat="item4 in item3.C_H_I_L_D_DATA">
  105. <li style="float: left">
  106. <label style="margin-left: 15px; margin-right: 10px;">
  107. <input type="checkbox" ng-model="item4.isChecked" ng-click="ctl.secondUserSelect($parent.$parent.$index,$parent.$index)">
  108. <span ng-bind="item4.ushowname"></span>
  109. </label>
  110. </li>
  111. </ul>
  112. <div class="thirdDepart" style="clear: both;margin-left: 15px;" ng-repeat="item5 in item3.C_H_I_L_D">
  113. <label>
  114. <input type="checkbox" ng-model="item5.isChecked" ng-click="ctl.thirdDepartSelect($parent.$parent.$index,$parent.$index,$index)">
  115. <span ng-bind="item5.SECTION" style="font-weight: bold"></span>
  116. </label>
  117. <ul class="userList" ng-repeat="item6 in item5.C_H_I_L_D_DATA">
  118. <li style="float: left">
  119. <label style="margin-left: 15px; margin-right: 10px;">
  120. <input type="checkbox" ng-model="item6.isChecked" ng-click="ctl.thirdUserSelect($parent.$parent.$parent.$index,$parent.$parent.$index,$parent.$index)">
  121. <span ng-bind="item6.ushowname"></span>
  122. </label>
  123. </li>
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  135. <button class="sp-btn-blue sp-btn-md" ng-click="ctl.btnSetTitle()">
  136. <i class="fa fa-check"></i>&nbsp;提交
  137. </button>
  138. <button class="sp-btn-default sp-btn-md" onclick="sp.layerhide()">
  139. <i class="fa fa-close"></i>&nbsp;取消
  140. </button>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <script type="text/ng-template" id="/treeView.html">
  146. <ul>
  147. <li ng-repeat="item in treeData" ng-include="'/treeItem.html'"></li>
  148. </ul>
  149. </script>
  150. <script type="text/ng-template" id="/treeItem.html">
  151. <p ng-class="{'pActive':item.checked}">
  152. <i ng-click="itemExpended(item, $event);" class="{{getItemIcon(item)}}"></i>
  153. <span style="display: inline-block;height: 18px;line-height: 18px;" ng-click="warpCallback('itemCheck', item, $event);">
  154. {{item[textField]}}
  155. </span>
  156. <span class="edit-menu sp-color-gray">
  157. <i ng-click="warpCallback('itemAdd', item, $event);" title="新增分类" class="fa fa-plus"></i>
  158. <i ng-if="item.LEVELS!=1"
  159. ng-click="warpCallback('itemEdit', item, $event);" title="编辑分类" class="fa fa-pencil"></i>
  160. <i ng-if="!item.C_H_I_L_D_DATA || item.C_H_I_L_D_DATA.length<1"
  161. ng-click="warpCallback('itemDelete', item, $event);" title="删除分类" class="fa fa-trash"></i>
  162. <i ng-if="$index!=0"
  163. ng-click="warpCallback('itemUp', item, $index, $event);" title="上移" class="fa fa-arrow-up"></i>
  164. <i ng-if="$index+1!=item.C_H_I_L_D_DATA_L"
  165. ng-click="warpCallback('itemDown', item, $index, $event);" title="下移" class="fa fa-arrow-down"></i>
  166. </span>
  167. </p>
  168. <ul ng-if="!isEnd(item)" ng-show="!item.$$isExpend">
  169. <li ng-repeat="item in item.C_H_I_L_D_DATA" ng-include="'/treeItem.html'"></li>
  170. </ul>
  171. </script>
  172. <script src="../../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  173. <script src="../../../AFrontEnd/js/laydate/laydate.js"></script>
  174. <script src="../../../AFrontEnd/js/angularjs/angular.js"></script>
  175. <script src="../../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  176. <script src="../../../apiurljs.js"></script>
  177. <script src="../../../js/sm4.js"></script>
  178. <script>document.write('<scri' + 'pt src="../../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  179. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  180. <script src="../../../AFrontEnd/js/special/spng.js"></script>
  181. <script src="../../../AFrontEnd/js/special/spngvld.js"></script>
  182. <!--附件-->
  183. <script src="../../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  184. <script src="../../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  185. <script src="../../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  186. </body>
  187. </html>