knowledge.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <style>
  2. /* 公共css,需要复用 */
  3. .iconfont {
  4. font-size: 14px;
  5. }
  6. .nav-pills>li>a {
  7. border-radius: 0px;
  8. }
  9. .nav-pills>li.active>a,
  10. .nav-pills>li.active>a:hover,
  11. .nav-pills>li.active>a:focus {
  12. background-color: #006bbf;
  13. color: white !important;
  14. }
  15. .panel-tabs,
  16. .tabbable {
  17. /* padding: 14px; */
  18. background-color: white;
  19. }
  20. .tab-content>.tab-pane,
  21. .pill-content>.pill-pane {
  22. padding: 14px;
  23. border-bottom: 1px solid #eeeeee;
  24. border-left: 1px solid #eeeeee;
  25. border-right: 1px solid #eeeeee;
  26. border-radius: 0px 0px 8px 8px;
  27. }
  28. .nav-tabs>li.active a,
  29. .nav-tabs>li.active a:hover,
  30. .nav-tabs>li.active a:focus {
  31. background-color: #006bc0;
  32. color: white;
  33. }
  34. .nav-tabs {
  35. border-top: 1px solid #eeeeee;
  36. border-bottom: 1px solid #eeeeee;
  37. border-left: 1px solid #eeeeee;
  38. border-right: 1px solid #eeeeee;
  39. border-radius: 8px 8px 0 0;
  40. height: 47px;
  41. }
  42. .nav-tabs>li {
  43. border-right: 1px solid #eeeeee;
  44. }
  45. .nav-tabs>li:last-child {
  46. border-right: none;
  47. }
  48. /* 独立css */
  49. .mainDiv {
  50. /* background: red; */
  51. /* padding: 14px; */
  52. /* height: 50px; */
  53. overflow: hidden;
  54. /* zoom: 1; */
  55. }
  56. /* .mainDivLeft {
  57. border-radius: 8px;
  58. border: 1px solid #eeeeee;
  59. width: 288px;
  60. float: left;
  61. }
  62. .mainDivRight {
  63. margin-left: 302px;
  64. border-radius: 8px;
  65. border: 1px solid #eeeeee;
  66. } */
  67. /* 这里3 DIV 布局 class名有变化 */
  68. .mainDiv-wrapper {
  69. display: inline-block;
  70. width: 33%;
  71. padding-left: 7px;
  72. padding-right: 7px;
  73. }
  74. .mainDiv-Left {
  75. border-radius: 8px;
  76. border: 1px solid #eeeeee;
  77. }
  78. .mainDiv-Middle {
  79. border-radius: 8px;
  80. border: 1px solid #eeeeee;
  81. }
  82. .mainDiv-Right {
  83. border-radius: 8px;
  84. border: 1px solid #eeeeee;
  85. }
  86. .mainDiv-head {
  87. height: 47px;
  88. line-height: 47px;
  89. background: #f5f5f5;
  90. font-size: 16px;
  91. color: #606367;
  92. border-radius: 8px 8px 0 0;
  93. padding-left: 10px;
  94. padding-right: 4px;
  95. }
  96. .mainDivLeft-span {
  97. border: 1px solid;
  98. /* padding: 15px 0px 15px 0px; */
  99. padding-left: 15px;
  100. padding-right: 15px;
  101. padding-top: 4px;
  102. padding-bottom: 4px;
  103. height: 28px;
  104. line-height: 28px;
  105. border-radius: 4px;
  106. margin-right: 10px;
  107. font-size: 14px;
  108. }
  109. .mainDiv-head-right {
  110. display: inline-block;
  111. float: right;
  112. }
  113. .edit-left {
  114. display: inline-block;
  115. /* float: left; */
  116. margin-left: 10px;
  117. }
  118. .span-1 {
  119. border-color: #006bc0;
  120. color: #006bc0;
  121. }
  122. .span-2 {
  123. border: none;
  124. color: white;
  125. background-color: #006bc0;
  126. }
  127. .span-3 {
  128. border: none;
  129. color: white;
  130. background-color: #fc4c58;
  131. }
  132. .mainDiv-body {
  133. border-radius: 8px;
  134. border: 1px solid #eeeeee;
  135. margin: 14px;
  136. padding-top: 14px;
  137. }
  138. .mainDiv-body-1 {
  139. height: 50px;
  140. line-height: 50px;
  141. font-size: 16px;
  142. color: #606367;
  143. padding: 0px 14px;
  144. border-bottom: 1px solid #eeeeee;
  145. }
  146. .mainDiv-body-2 {
  147. height: 70px;
  148. line-height: 70px;
  149. font-size: 14px;
  150. color: #606367;
  151. padding: 0px 30px;
  152. border-bottom: 1px solid #eeeeee;
  153. }
  154. .mainDiv-body-2:last-child {
  155. border-bottom: none;
  156. }
  157. .fixHeight {
  158. height: 400px;
  159. overflow: auto;
  160. }
  161. .mainDiv-body-3 {
  162. height: 50px;
  163. line-height: 50px;
  164. font-size: 14px;
  165. color: #606367;
  166. padding: 0px 30px;
  167. border-bottom: 1px solid #eeeeee;
  168. }
  169. .mainDiv-body-3:last-child {
  170. border-bottom: none;
  171. }
  172. .mainDiv-body-img {
  173. height: 90px;
  174. border-radius: 4px;
  175. margin: 14px;
  176. margin-bottom: 0px;
  177. overflow: hidden;
  178. }
  179. .mainDiv-body-noList {
  180. height: 110px;
  181. margin: 50px 0;
  182. text-align: center;
  183. }
  184. .form-control {
  185. display: inline-block;
  186. }
  187. .mainDivLeft-span-1 {
  188. border: 1px solid;
  189. padding-left: 15px;
  190. padding-right: 15px;
  191. /* padding-top: 4px; */
  192. /* padding-bottom: 4px; */
  193. height: 28px;
  194. line-height: 28px;
  195. border-radius: 4px;
  196. margin-right: 10px;
  197. font-size: 14px;
  198. display: inline-block;
  199. }
  200. .mainDivLeft-span-2 {
  201. border: 1px solid;
  202. padding-left: 15px;
  203. padding-right: 15px;
  204. /* padding-top: 4px; */
  205. /* padding-bottom: 4px; */
  206. height: 28px;
  207. line-height: 28px;
  208. border-radius: 4px;
  209. margin-right: 10px;
  210. font-size: 14px;
  211. display: inline-block;
  212. }
  213. .mainDivLeft-span-edit-1 {
  214. border: 1px solid;
  215. padding-left: 8px;
  216. padding-right: 8px;
  217. /* padding-top: 4px; */
  218. /* padding-bottom: 4px; */
  219. height: 22px;
  220. line-height: 22px;
  221. border-radius: 2px;
  222. margin-right: 10px;
  223. font-size: 12px;
  224. display: inline-block;
  225. }
  226. .mainDivLeft-span-edit-2 {
  227. border: 1px solid;
  228. padding-left: 8px;
  229. padding-right: 8px;
  230. /* padding-top: 4px; */
  231. /* padding-bottom: 4px; */
  232. height: 22px;
  233. line-height: 22px;
  234. border-radius: 2px;
  235. margin-right: 10px;
  236. font-size: 12px;
  237. display: inline-block;
  238. }
  239. /* tab内容css */
  240. .tab-mainDiv {
  241. border: 1px solid #eeeeee;
  242. border-radius: 8px;
  243. /* min-height: 360px; */
  244. }
  245. .tab-mainDiv-head {
  246. text-align: center;
  247. border-bottom: 1px solid #eeeeee;
  248. height: 34px;
  249. line-height: 34px;
  250. font-size: 14px;
  251. color: #93989e;
  252. }
  253. .tab-mainDiv-body {
  254. padding: 14px;
  255. min-height: 280px;
  256. max-height: 320px;
  257. overflow: auto;
  258. /* padding-top: 14px; */
  259. /* padding-bottom: 14px; */
  260. }
  261. .tab-mainDiv-body-lineDiv-50 {
  262. /* display: inline-block; */
  263. font-size: 14px;
  264. color: #93989e;
  265. margin-right: 14px;
  266. width: 47%;
  267. padding-left: 14px;
  268. }
  269. .tab-mainDiv-body-lineDiv-100 {
  270. /* display: inline-block; */
  271. font-size: 14px;
  272. color: #93989e;
  273. margin-right: 14px;
  274. width: 96%;
  275. padding-left: 14px;
  276. }
  277. .tab-mainDiv-body-lable {
  278. padding-bottom: 10px;
  279. /* width: 370px; */
  280. }
  281. .tab-mainDiv-body-content {
  282. padding-bottom: 10px;
  283. /* width: 370px; */
  284. }
  285. .tab-mainDiv-body-content>textarea {
  286. min-height: 68px;
  287. width: 100%;
  288. }
  289. .tab-mainDiv-foot {
  290. /* margin: 14px auto; */
  291. border-top: 1px solid #eeeeee;
  292. text-align: center;
  293. padding: 14px;
  294. }
  295. .tab-mainDiv-body-button-1 {
  296. display: inline-block;
  297. width: 80px;
  298. height: 34px;
  299. line-height: 34px;
  300. font-size: 14px;
  301. color: white;
  302. text-align: center;
  303. background-color: #006bc0;
  304. border-radius: 4px;
  305. margin-right: 14px;
  306. }
  307. .tab-mainDiv-body-button-3 {
  308. display: inline-block;
  309. width: 80px;
  310. height: 34px;
  311. line-height: 34px;
  312. font-size: 14px;
  313. color: white;
  314. text-align: center;
  315. background-color: #fc4c58;
  316. border-radius: 4px;
  317. margin-right: 14px;
  318. }
  319. .tab-mainDiv-body-button-2 {
  320. display: inline-block;
  321. width: 80px;
  322. height: 34px;
  323. line-height: 34px;
  324. font-size: 14px;
  325. color: #93989e;
  326. text-align: center;
  327. background-color: #f5f5f5;
  328. border-radius: 4px;
  329. box-sizing: border-box;
  330. border: 1px solid #eeeeee;
  331. }
  332. .abn-tree {}
  333. .tree-control .tree-view {
  334. width: inherit;
  335. z-index: 9999;
  336. }
  337. .selectList {
  338. border-radius: 4px;
  339. font-size: 14px;
  340. color: #606367;
  341. border: 1px solid #eeeeee;
  342. margin-bottom: 14px;
  343. }
  344. .selectList.selected,
  345. .selectList:hover {
  346. border-right: none;
  347. margin-right: 0;
  348. }
  349. .selectList.selected {
  350. background-color: #006bbf;
  351. color: white;
  352. }
  353. .mainDiv-body-wrapper {
  354. padding-left: 14px;
  355. padding-right: 14px;
  356. }
  357. .mainDiv-foot {
  358. text-align: center;
  359. padding: 14px;
  360. }
  361. </style>
  362. <section id="page-title">
  363. <div class="row">
  364. <div class="col-sm-8">
  365. <h1 class="mainTitle">知识库权限配置
  366. <i tooltip='对知识库审核人员权限进行配置' tooltip-placement="right" class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
  367. </h1>
  368. </div>
  369. </div>
  370. </section>
  371. <div ng-controller="knowledgebaseCtrl">
  372. <div class="mainDiv">
  373. <div class="mainDiv-wrapper">
  374. <div class="mainDiv-Left">
  375. <div class="mainDiv-head">
  376. <span>知识库分类</span>
  377. </div>
  378. <div class="mainDiv-body fixHeight">
  379. <div class="box-tree">
  380. <span ng-if="doing_async">...加载中...</span>
  381. <!-- <abn-tree tree-data="my_data" tree-control="my_tree" on-select="my_tree_handler(branch)" expand-level="2" icon-leaf="iconfont icon-zuzhijiaose" icon-expand="ti-plus" icon-collapse="ti-minus "></abn-tree> -->
  382. <abn-tree tree-data="my_data" tree-control="my_tree" on-select="my_tree_handler(branch)" expand-level="2" icon-leaf="iconfont icon-fenlei" icon-expand="ti-plus" icon-collapse="ti-minus"></abn-tree>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. <div class="mainDiv-wrapper">
  388. <div class="mainDiv-Middle">
  389. <div class="mainDiv-head">
  390. <span>已选知识库分类</span>
  391. </div>
  392. <div class="mainDiv-body fixHeight">
  393. <div class="mainDiv-body-wrapper">
  394. <div ng-repeat="item in outdata" row-select selected-indices="selectedItems" class="selectList list-group-item" ng-class="{selected: selectedItems.indexOf($index) > -1}">
  395. {{item.name}} {{item.selected}}<i class="ti-close" style="float:right;" ng-click="remove(item)"></i>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. <div class="mainDiv-wrapper">
  402. <div class="mainDiv-Right">
  403. <div class="mainDiv-head">
  404. <span>审核员</span>
  405. </div>
  406. <div class="mainDiv-body fixHeight">
  407. <div class="mainDiv-body-wrapper">
  408. <div class="tab-mainDiv-head">
  409. <ui-select ng-model="approvalUser" theme="bootstrap" reset-search-input="true" search-enabled="true" append-to-body="true" on-select="addApprovalUser($item,$model);">
  410. <ui-select-match placeholder="请选择审核员...">{{$select.selected['name']}}</ui-select-match>
  411. <ui-select-choices repeat="option in approvalusers | filter: $select.search" refresh="filterUserData($select.search)" refresh-delay="0">
  412. <!-- <div ng-bind-html="option['account']+option['name']| highlight: $select.search"></div> -->
  413. <div ng-bind-html="option['account' || 'name'] | highlight: $select.search"></div>
  414. <div style="font-size:12px;">{{option.name}}</div>
  415. </ui-select-choices>
  416. </ui-select>
  417. </div>
  418. <div class="" style="margin-top:14px;">
  419. <div ng-repeat="user in userdata" row-select selected-indices="selectedUsers" class="selectList list-group-item" ng-class="{selected: selectedUsers.indexOf($index) > -1}">
  420. {{user.username}} {{user.selected}}<i class="ti-close" style="float:right;" ng-click="removeUser(user)"></i>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. <div class="mainDiv-foot">
  428. <div class="tab-mainDiv-body-button-3 pointfont" ng-click="reset()">
  429. 清空
  430. </div>
  431. <div class="tab-mainDiv-body-button-1 pointfont" ng-click="ok()">
  432. 确认
  433. </div>
  434. <div class="tab-mainDiv-body-button-2 pointfont" ng-click="cancel()">
  435. 取消
  436. </div>
  437. </div>
  438. </div>
  439. </div>