index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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: 200px; top: 0; background: #F7F7F7; border-left: 1px #F7F7F7 solid; border-right: 1px #F7F7F7 solid; ">
  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-if="ctl.leftTree">
  21. <a>
  22. <span class="sp-menu-ltitle" ng-bind="ctl.leftTree[0].CNAME"></span>
  23. <span class="sp-menu-icon" ng-click="ctl.addNode()">
  24. <i class="fa fa-plus"></i>
  25. </span>
  26. </a>
  27. <ul>
  28. <li class="sp-menu-second" ng-class="{'active-second':ctl.active.CODE==item1.CODE}" ng-repeat="item1 in ctl.leftTree[0].C_H_I_L_D_DATA">
  29. <span class="sp-menu-ltitle" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1)"></span>
  30. <span class="sp-menu-icon" ng-if="item1.CODE!='P0101'&&item1.CODE!='P0102'&&item1.CODE!='P0103'&&item1.CODE!='P0104'&&item1.CODE==ctl.active.CODE" ng-click="ctl.editNode(item1)">
  31. <i class="fa fa-pencil"></i>
  32. </span>
  33. <span class="sp-menu-icon" ng-if="item1.CODE!='P0101'&&item1.CODE!='P0102'&&item1.CODE!='P0103'&&item1.CODE!='P0104'&&item1.CODE==ctl.active.CODE" ng-click="ctl.deleteNode(item1)">
  34. <i class="fa fa-trash"></i>
  35. </span>
  36. </li>
  37. </ul>
  38. </li>
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="sp-wrapper-right print" style="left: 231px; top: 25px; right: 31px">
  44. <div class="sp-page">
  45. <div class="sp-span2 sp-pull-left" style="margin:1px">
  46. <select class="sp-select" ng-model="ctl.search.type" ng-change="ctl.getRightData(ctl.active)">
  47. <option value="">全部分类</option>
  48. <option value="text">文档</option>
  49. <option value="img">图片</option>
  50. <option value="audio">音频</option>
  51. <option value="video">视频</option>
  52. <option value="other">其他</option>
  53. </select>
  54. </div>
  55. <div class="sp-col-15" style="position:relative">
  56. <input type="text" class="sp-input" ng-model="ctl.search.name" ng-change="ctl.getRightData(ctl.active)" />
  57. <i class="fa fa-search" style="position:absolute;top:10px;right:20px;"></i>
  58. </div>
  59. <div class="sp-col-10">
  60. <span class="listType" ng-class="{'sp-bg-brown':ctl.listType==1}" ng-click="ctl.changeListType(1)">
  61. <img src="css/list.png" width="20" />
  62. </span>
  63. <span class="listType" ng-class="{'sp-bg-brown':ctl.listType==2}" ng-click="ctl.changeListType(2)">
  64. <img src="css/pic.png" width="20" />
  65. </span>
  66. </div>
  67. <div class="sp-span3 sp-pull-right" ng-if="ctl.active.CODE!='P0103'&&ctl.active.CODE!='P0104'">
  68. <!--<span class="sp-btn-gray sp-btn-radius sp-pull-right upload" ng-if="ctl.search.type=='text'||ctl.search.type==''" ng-click="ctl.openAddFile()"><i class="fa fa-plus"></i> 新 建</span>-->
  69. <span class="sp-btn-gray sp-radius sp-pull-right upload">
  70. <span class="upload-tip"></span>
  71. <input id="fileupload" class="upload-file-single" ng-click="ctl.upload()" type="file" name="files[]" multiple>
  72. <i class="fa fa-upload sp-mr-5"></i>上 传
  73. <span class="upload-loading" ng-if="ctl.uploading"><i class="fa fa-spinner fa-pulse sp-fs-20"></i></span>
  74. </span>
  75. </div>
  76. <div class="sp-line-gray"></div>
  77. </div>
  78. <div class="sp-page filelist" style="overflow:auto">
  79. <table class="sp-table" ng-if="ctl.listType==1">
  80. <thead>
  81. <tr>
  82. <th>名称</th>
  83. <th width="200">大小</th>
  84. <th width="200">文件日期</th>
  85. <th width="230">操作</th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <tr ng-repeat="item in ctl.list">
  90. <td>
  91. <a ng-click="ctl.goUrl(item)" ng-bind="item.FILENAMES" class="sp-color-blue"></a>
  92. </td>
  93. <td ng-bind="item.FILESIZE"></td>
  94. <td ng-bind="item.FILEDATE1"></td>
  95. <td>
  96. <button class="sp-btn-green sp-btn-sm sp-radius" ng-disabled="item.FILEURL.length==0" ng-click="ctl.downloadFile(item)">下&nbsp;载</button>
  97. <button class="sp-btn-blue sp-btn-sm sp-radius" ng-if="ctl.active.CODE!='P0104'&&item.USERID==ctl.userId" ng-click="ctl.fxFile(item)">分&nbsp;享</button>
  98. <button class="sp-btn-red sp-btn-sm sp-radius" ng-if="ctl.active.CODE!='P0103'&&ctl.active.CODE!='P0104'&&item.USERID==ctl.userId" ng-click="ctl.deleteFile(item)">删&nbsp;除</button>
  99. </td>
  100. </tr>
  101. </tbody>
  102. </table>
  103. <div class="sp-page" ng-if="ctl.listType==2">
  104. <div class="list-item" ng-repeat="item in ctl.list" title="{{item.FILEOLDNAME}}">
  105. <i class="fa fa-download" ng-click="ctl.downloadFile(item)"></i>
  106. <img ng-src="{{item.img}}" />
  107. <div ng-bind="item.FILEOLDNAME"></div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="sp-layer" id="layer_box_add" style="width:500px;">
  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">
  122. <div class="sp-page">
  123. <table class="sp-grid-job">
  124. <tbody>
  125. <tr>
  126. <td style="width:150px;">新增目录名称</td>
  127. <td>
  128. <input type="text" class="sp-input" ng-model="ctl.add.cname" />
  129. </td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  134. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSaveNode(1)">
  135. <i class="fa fa-check sp-mr-5"></i>保 存
  136. </button>
  137. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  138. <i class="fa fa-close sp-mr-5"></i>取 消
  139. </button>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="sp-layer" id="layer_box_edit" style="width:500px;">
  145. <div class="sp-layer-head" style="background:#2176d6">
  146. <div class="sp-page sp-text-center sp-font16">
  147. 修改节点信息
  148. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  149. ×
  150. </div>
  151. </div>
  152. </div>
  153. <div class="sp-layer-body">
  154. <div class="sp-page">
  155. <table class="sp-grid-job">
  156. <tbody>
  157. <tr>
  158. <td style="width:150px;">当前节点名称</td>
  159. <td>
  160. <input type="text" class="sp-input" ng-model="ctl.edit.cname" />
  161. </td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  166. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSaveNode(2)">
  167. <i class="fa fa-check sp-mr-5"></i>保 存
  168. </button>
  169. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  170. <i class="fa fa-close sp-mr-5"></i>取 消
  171. </button>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="sp-layer" id="layer_fenxiang" style="width:500px;">
  177. <div class="sp-layer-head" style="background:#2176d6">
  178. <div class="sp-page sp-text-center sp-font16">
  179. <div class="sp-page" style="width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap">
  180. <span ng-bind="ctl.fxFileName" title="{{ctl.fxFileName}}"></span>
  181. </div>
  182. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  183. ×
  184. </div>
  185. </div>
  186. </div>
  187. <div class="sp-layer-body">
  188. <div class="sp-page">
  189. <table class="sp-grid-job">
  190. <tbody>
  191. <tr>
  192. <td width="80">人员选择</td>
  193. <td>
  194. <div class="sp-page sp-text-left sp-pl-5">
  195. <div class="checkbox" id="selectMember" style="height: 160px;overflow: auto;">
  196. <label>
  197. <input ng-click="ctl.selectAll()" ng-model="ctl.isSelectedAll" type="checkbox"> 全选
  198. </label>
  199. <div ng-repeat="item in ctl.personList">
  200. <div class="firstDepart" style="clear: both;">
  201. <label>
  202. <input type="checkbox" ng-model="item.isChecked" ng-click="ctl.firstDepartSelect($index)">
  203. <span ng-bind="item.SECTION" style="font-weight: bold"></span>
  204. </label>
  205. <ul class="userList" ng-repeat="item2 in item.C_H_I_L_D_DATA">
  206. <li style="float: left">
  207. <label style="margin-left: 15px; margin-right: 10px;">
  208. <input type="checkbox" ng-model="item2.isChecked" ng-click="ctl.firstUserSelect($parent.$index)">
  209. <span ng-bind="item2.ushowname"></span>
  210. </label>
  211. </li>
  212. </ul>
  213. <div class="secondDepart" style="clear: both;margin-left: 15px;" ng-repeat="item3 in item.C_H_I_L_D">
  214. <label>
  215. <input type="checkbox" ng-model="item3.isChecked" ng-click="ctl.secondDepartSelect($parent.$index,$index)">
  216. <span ng-bind="item3.SECTION" style="font-weight: bold"></span>
  217. </label>
  218. <ul class="userList" ng-repeat="item4 in item3.C_H_I_L_D_DATA">
  219. <li style="float: left">
  220. <label style="margin-left: 15px; margin-right: 10px;">
  221. <input type="checkbox" ng-model="item4.isChecked" ng-click="ctl.secondUserSelect($parent.$parent.$index,$parent.$index)">
  222. <span ng-bind="item4.ushowname"></span>
  223. </label>
  224. </li>
  225. </ul>
  226. <div class="thirdDepart" style="clear: both;margin-left: 15px;" ng-repeat="item5 in item3.C_H_I_L_D">
  227. <label>
  228. <input type="checkbox" ng-model="item5.isChecked" ng-click="ctl.thirdDepartSelect($parent.$parent.$index,$parent.$index,$index)">
  229. <span ng-bind="item5.SECTION" style="font-weight: bold"></span>
  230. </label>
  231. <ul class="userList" ng-repeat="item6 in item5.C_H_I_L_D_DATA">
  232. <li style="float: left">
  233. <label style="margin-left: 15px; margin-right: 10px;">
  234. <input type="checkbox" ng-model="item6.isChecked" ng-click="ctl.thirdUserSelect($parent.$parent.$parent.$index,$parent.$parent.$index,$parent.$index)">
  235. <span ng-bind="item6.ushowname"></span>
  236. </label>
  237. </li>
  238. </ul>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </td>
  246. </tr>
  247. </tbody>
  248. </table>
  249. <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
  250. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnFX()">
  251. <i class="fa fa-check sp-mr-5"></i>确 定
  252. </button>
  253. <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
  254. <i class="fa fa-close sp-mr-5"></i>取 消
  255. </button>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="sp-layer" id="layer_addwps" style="width: 400px;">
  261. <div class="sp-layer-head" style="background:#2176d6">
  262. <div class="sp-page sp-text-center sp-font16">
  263. 新&nbsp;&nbsp;建
  264. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  265. ×
  266. </div>
  267. </div>
  268. </div>
  269. <div class="sp-layer-body">
  270. <table class="sp-grid-job">
  271. <tbody>
  272. <tr>
  273. <td class="sp-text-center">
  274. 名称
  275. </td>
  276. <td>
  277. <input type="text" class="sp-input" placeholder="名称" ng-model="ctl.add.FILESNAME" />
  278. </td>
  279. </tr>
  280. </tbody>
  281. </table>
  282. <div class="sp-line-txt sp-text-center sp-pt-10">
  283. <a class="sp-btn-blue sp-radius" ng-click="ctl.btnAddWps()"><i class="fa fa-search sp-mr-5"></i>确 定</a>
  284. <a class="sp-btn-blue sp-radius" onclick="sp.closeCenter('.sp-layer')"><i class="fa fa-close sp-mr-5"></i>取 消</a>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  290. <script src="../../AFrontEnd/plugins/hightcharts/highcharts.js"></script>
  291. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  292. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  293. <script src="../../apiurljs.js"></script>
  294. <script src="../../js/sm4.js"></script>
  295. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  296. <script>document.write('<scri' + 'pt src="js/index.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
  297. <!--附件-->
  298. <script src="../../AFrontEnd/plugins/js.fileupload/vendor/jquery.ui.widget.js"></script>
  299. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.iframe-transport.js"></script>
  300. <script src="../../AFrontEnd/plugins/js.fileupload/jquery.fileupload.js"></script>
  301. </body>
  302. </html>