searchknowledge.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <!-- start: SETTINGS -->
  2. <button ct-toggle="toggle" tooltip="知识库查询" tooltip-placement="left" target="seachknowledge" parent-active-class="active"
  3. class="btn btn-info">
  4. <i class="iconfont icon-zhishiku11"></i>
  5. </button>
  6. <div class="ng-scope headersize">
  7. 知识库查询
  8. </div>
  9. <div class="container" style="border-top: 1px solid #c8c7cc;padding-right: 55px;">
  10. <div class="searchInp">
  11. <input type="text" ng-model="searchKeyWord" placeholder="请输入..." ng-keypress="keypressModel($event,searchKeyWord)">
  12. <i class="iconfont icon-fangdajing1" ng-click="openModel(searchKeyWord)"></i>
  13. </div>
  14. <div class="mainlist">
  15. <div class="grid">
  16. <div class="grid__item" ng-repeat="item in searchData">
  17. <div>
  18. <div class="knowledgetitle">
  19. <span><span class="titleLabel">事件分类:</span> {{item.category?item.category.category:''}}</span>
  20. <div class="btn btn-zancun ng-binding ng-scope fr" ng-click="related(item)">引用</div>
  21. </div>
  22. <div class="loader"></div>
  23. <div class="col-sm-12">
  24. <span class="item pull-left"><span class="titleLabel">故障描述:</span> {{item.title}}</span>
  25. </div>
  26. <div class="col-sm-12">
  27. <div class="titleLabel" ng-style="{{}}">解决方案:</div>
  28. <div
  29. ng-class="{'showAllDiv':(showId==item.id&&ifshow),'showOverDiv':(showId!=item.id||!ifshow)}">
  30. <div ng-bind-html="item.content"></div>
  31. <div ng-if="showId==item.id&&ifshow">
  32. <label class="titleLabel">附件信息:</label>
  33. <table style="width: 414px;" class="solutionTable">
  34. <tbody>
  35. <tr ng-repeat="attachment in attachments">
  36. <td class="hidden-xs">{{attachment.name}}</td>
  37. <td class="center">
  38. <div class="visible-md visible-lg hidden-sm hidden-xs">
  39. <a ng-click="download(attachment.token,attachment.name)"
  40. class="downBtn" tooltip-placement="top"
  41. tooltip="下载"><i class="fa fa-download"></i></a>
  42. </div>
  43. </td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="overVis">
  52. <span class="fr" ng-click="showAll(item.id)">{{(ifshow&&showId==item.id)?'收起':'展开'}}</span>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- <button type="button" class="btn btn-success getin" ng-click="related(tempData)">引用</button> -->
  57. </div>
  58. </div>
  59. <style type="text/css">
  60. .fl {
  61. float: left;
  62. }
  63. .fr {
  64. float: right;
  65. }
  66. .changeRightDiv {
  67. transition: all 1s linear;
  68. position: fixed;
  69. top: 40px;
  70. left: 0px;
  71. width: 100%;
  72. height: 0px;
  73. /*border: 1px #d8d8d8 solid;*/
  74. background: white;
  75. overflow: hidden;
  76. z-index: 10;
  77. /*margin: 5px;*/
  78. /*border-radius:5px ;*/
  79. }
  80. .changeRightDiv.active {
  81. /*width: 100%;*/
  82. height: 100%;
  83. max-height: 460px;
  84. overflow-y: auto;
  85. padding-right: 55px;
  86. ;
  87. }
  88. .showDiv {
  89. transition: all 1s linear 1s;
  90. opacity: 0;
  91. }
  92. .showDiv.active {
  93. opacity: 1;
  94. }
  95. .mainlist {
  96. color: #333;
  97. }
  98. .mainlist .grid__item::before {
  99. background: #f9f9f9;
  100. }
  101. .searchInp {
  102. width: 100%;
  103. height: 32px;
  104. position: relative;
  105. margin-top: 10px;
  106. line-height: 33px;
  107. overflow: hidden;
  108. }
  109. .searchInp input {
  110. width: 100%;
  111. height: 100%;
  112. }
  113. .searchInp i {
  114. position: absolute;
  115. right: 6px;
  116. font-size: 22px;
  117. color: #d1d1d1;
  118. border-left: 1px solid #d1d1d1;
  119. padding-left: 6px;
  120. }
  121. .grid__item {
  122. width: 100%;
  123. }
  124. .knowledgetitle {
  125. text-align: left;
  126. font-size: 14px;
  127. height: 20px;
  128. line-height: 28px;
  129. color: #333;
  130. font-family: unset;
  131. }
  132. .titleLabel {
  133. color: #333;
  134. font-weight: 800;
  135. }
  136. .knowledgetitle .btn {
  137. height: 22px;
  138. line-height: 22px;
  139. padding: 0 12px;
  140. cursor: pointer;
  141. }
  142. .overVis {
  143. padding: 0 20px;
  144. }
  145. .overVis span {
  146. display: inline-block;
  147. width: 100%;
  148. text-align: right;
  149. color: #005395;
  150. border-top: 1px dashed #d1d1d1;
  151. }
  152. .showOverDiv {
  153. max-height: 100px;
  154. overflow: hidden;
  155. padding-bottom: 10px;
  156. }
  157. .showAllDiv {
  158. height: auto;
  159. width: 414px;
  160. padding-bottom: 10px;
  161. }
  162. .center {
  163. text-align: center !important;
  164. }
  165. .solutionTable td {
  166. line-height: 20px;
  167. color: #005395;
  168. text-decoration: underline;
  169. }
  170. .solutionTable .downBtn{
  171. color: #005395;
  172. }
  173. .solutionTable tr:hover{
  174. background: #fff;
  175. }
  176. </style>