askbot-dragon 1.6.78-beta → 1.6.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/package.json +9 -6
  2. package/public/index.html +8 -5
  3. package/public/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  4. package/public/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  5. package/public/pdfjs/cmaps/78-H.bcmap +0 -0
  6. package/public/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  7. package/public/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  8. package/public/pdfjs/cmaps/78-V.bcmap +0 -0
  9. package/public/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  10. package/public/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  11. package/public/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  12. package/public/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  13. package/public/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  14. package/public/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  15. package/public/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  16. package/public/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  17. package/public/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  18. package/public/pdfjs/cmaps/Add-H.bcmap +0 -0
  19. package/public/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  20. package/public/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  21. package/public/pdfjs/cmaps/Add-V.bcmap +0 -0
  22. package/public/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  23. package/public/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  24. package/public/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  25. package/public/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  26. package/public/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  27. package/public/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  28. package/public/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  29. package/public/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  30. package/public/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  31. package/public/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  32. package/public/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  33. package/public/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  34. package/public/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  35. package/public/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  36. package/public/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  37. package/public/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  38. package/public/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  39. package/public/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  40. package/public/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  41. package/public/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  42. package/public/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  43. package/public/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  44. package/public/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  45. package/public/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  46. package/public/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  47. package/public/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  48. package/public/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  49. package/public/pdfjs/cmaps/B5-H.bcmap +0 -0
  50. package/public/pdfjs/cmaps/B5-V.bcmap +0 -0
  51. package/public/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  52. package/public/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  53. package/public/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  54. package/public/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  55. package/public/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  56. package/public/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  57. package/public/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  58. package/public/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  59. package/public/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  60. package/public/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  61. package/public/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  62. package/public/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  63. package/public/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  64. package/public/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  65. package/public/pdfjs/cmaps/EUC-H.bcmap +0 -0
  66. package/public/pdfjs/cmaps/EUC-V.bcmap +0 -0
  67. package/public/pdfjs/cmaps/Ext-H.bcmap +0 -0
  68. package/public/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  69. package/public/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  70. package/public/pdfjs/cmaps/Ext-V.bcmap +0 -0
  71. package/public/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  72. package/public/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  73. package/public/pdfjs/cmaps/GB-H.bcmap +4 -0
  74. package/public/pdfjs/cmaps/GB-V.bcmap +0 -0
  75. package/public/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  76. package/public/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  77. package/public/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  78. package/public/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  79. package/public/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  80. package/public/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  81. package/public/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  82. package/public/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  83. package/public/pdfjs/cmaps/GBT-H.bcmap +0 -0
  84. package/public/pdfjs/cmaps/GBT-V.bcmap +0 -0
  85. package/public/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  86. package/public/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  87. package/public/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  88. package/public/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  89. package/public/pdfjs/cmaps/H.bcmap +0 -0
  90. package/public/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  91. package/public/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  92. package/public/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  93. package/public/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  94. package/public/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  95. package/public/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  96. package/public/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  97. package/public/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  98. package/public/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  99. package/public/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  100. package/public/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  101. package/public/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  102. package/public/pdfjs/cmaps/Hankaku.bcmap +0 -0
  103. package/public/pdfjs/cmaps/Hiragana.bcmap +0 -0
  104. package/public/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  105. package/public/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  106. package/public/pdfjs/cmaps/KSC-H.bcmap +0 -0
  107. package/public/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  108. package/public/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  109. package/public/pdfjs/cmaps/KSC-V.bcmap +0 -0
  110. package/public/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  111. package/public/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  112. package/public/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  113. package/public/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  114. package/public/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  115. package/public/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  116. package/public/pdfjs/cmaps/Katakana.bcmap +0 -0
  117. package/public/pdfjs/cmaps/LICENSE +36 -0
  118. package/public/pdfjs/cmaps/NWP-H.bcmap +0 -0
  119. package/public/pdfjs/cmaps/NWP-V.bcmap +0 -0
  120. package/public/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  121. package/public/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  122. package/public/pdfjs/cmaps/Roman.bcmap +0 -0
  123. package/public/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  124. package/public/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  125. package/public/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  126. package/public/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  127. package/public/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  128. package/public/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  129. package/public/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  130. package/public/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  131. package/public/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  132. package/public/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  133. package/public/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  134. package/public/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  135. package/public/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  136. package/public/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  137. package/public/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  138. package/public/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  139. package/public/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  140. package/public/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  141. package/public/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  142. package/public/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  143. package/public/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  144. package/public/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  145. package/public/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  146. package/public/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  147. package/public/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  148. package/public/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  149. package/public/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  150. package/public/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  151. package/public/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  152. package/public/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  153. package/public/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  154. package/public/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  155. package/public/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  156. package/public/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  157. package/public/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  158. package/public/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  159. package/public/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  160. package/public/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  161. package/public/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  162. package/public/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  163. package/public/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  164. package/public/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  165. package/public/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  166. package/public/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  167. package/public/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  168. package/public/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  169. package/public/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  170. package/public/pdfjs/cmaps/V.bcmap +0 -0
  171. package/public/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  172. package/public/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  173. package/public/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  174. package/public/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  175. package/public/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  176. package/public/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  177. package/public/pdfjs/standard_fonts/FoxitSans.pfb +0 -0
  178. package/public/pdfjs/standard_fonts/FoxitSansBold.pfb +0 -0
  179. package/public/pdfjs/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
  180. package/public/pdfjs/standard_fonts/FoxitSansItalic.pfb +0 -0
  181. package/public/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  182. package/public/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  183. package/public/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  184. package/public/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  185. package/public/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  186. package/public/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  187. package/public/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
  188. package/public/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  189. package/public/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  190. package/public/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  191. package/public/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  192. package/src/assets/image/default_avt_ui.png +0 -0
  193. package/src/assets/image/filtType/audio.png +0 -0
  194. package/src/assets/image/filtType/excel1.png +0 -0
  195. package/src/assets/image/filtType/general.png +0 -0
  196. package/src/assets/image/filtType/html.png +0 -0
  197. package/src/assets/image/filtType/image1.png +0 -0
  198. package/src/assets/image/filtType/link.png +0 -0
  199. package/src/assets/image/filtType/md2.png +0 -0
  200. package/src/assets/image/filtType/mode.png +0 -0
  201. package/src/assets/image/filtType/news.png +0 -0
  202. package/src/assets/image/filtType/pdf1.png +0 -0
  203. package/src/assets/image/filtType/ppt1.png +0 -0
  204. package/src/assets/image/filtType/selfadd1.png +0 -0
  205. package/src/assets/image/filtType/txt1.png +0 -0
  206. package/src/assets/image/filtType/video.png +0 -0
  207. package/src/assets/image/filtType/wechat.png +0 -0
  208. package/src/assets/image/filtType/word1.png +0 -0
  209. package/src/assets/image/loading.gif +0 -0
  210. package/src/assets/js/AliyunlssUtil.js +35 -10
  211. package/src/assets/js/common.js +44 -9
  212. package/src/assets/js/hammer.js +2 -13
  213. package/src/assets/less/converSationContainer/common.less +0 -7
  214. package/src/assets/less/converSationContainer/converSatonContainer.less +44 -51
  215. package/src/assets/less/variables.less +122 -0
  216. package/src/components/ActionAlertIframe.vue +5 -27
  217. package/src/components/AiGuide.vue +33 -26
  218. package/src/components/AnswerDocknowledge.vue +331 -183
  219. package/src/components/AnswerVoice.vue +8 -7
  220. package/src/components/ConversationContainer.vue +7046 -1100
  221. package/src/components/MyEditor.vue +17 -25
  222. package/src/components/QwFeedback.vue +304 -0
  223. package/src/components/actionSatisfaction.vue +9 -7
  224. package/src/components/actionSendToBot.vue +6 -4
  225. package/src/components/answerDissatisfaction.vue +5 -3
  226. package/src/components/answerRadio.vue +96 -21
  227. package/src/components/ask-components/DissatisfactionOptions.vue +4 -3
  228. package/src/components/ask-components/Msgloading.vue +3 -2
  229. package/src/components/askVideo.vue +78 -26
  230. package/src/components/assetDetails.vue +18 -17
  231. package/src/components/assetMessage.vue +29 -26
  232. package/src/components/associationIntention.vue +85 -26
  233. package/src/components/attachmentPreview.vue +7 -5
  234. package/src/components/botActionSatisfactor.vue +5 -3
  235. package/src/components/chatContent.vue +21 -20
  236. package/src/components/feedBack.vue +6 -4
  237. package/src/components/fielListView.vue +8 -7
  238. package/src/components/file/AliyunOssComponents.vue +1 -1
  239. package/src/components/formTemplate.vue +1593 -1648
  240. package/src/components/imgView.vue +32 -0
  241. package/src/components/intelligentSummary.vue +24 -19
  242. package/src/components/interruptComponents/imageSelectionAnswer.vue +203 -0
  243. package/src/components/interruptComponents/multipleChoiceAnswer.vue +134 -0
  244. package/src/components/interruptComponents/singleChoiceAnswer.vue +82 -0
  245. package/src/components/kkview.vue +20 -28
  246. package/src/components/markDownText.vue +961 -0
  247. package/src/components/message/TextMessage.vue +8 -6
  248. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  249. package/src/components/myPopup.vue +18 -13
  250. package/src/components/outputComponents/outputCom.vue +149 -0
  251. package/src/components/pagination.vue +130 -0
  252. package/src/components/pdfPosition.vue +96 -267
  253. package/src/components/popup.vue +15 -12
  254. package/src/components/preview/docView.vue +263 -0
  255. package/src/components/preview/excelView.vue +260 -0
  256. package/src/components/preview/markDownView.vue +70 -0
  257. package/src/components/preview/newPositionPreview.vue +601 -0
  258. package/src/components/preview/pdfView.vue +976 -0
  259. package/src/components/previewDoc.vue +12 -3
  260. package/src/components/previewPdf.vue +521 -203
  261. package/src/components/previewWisdom.vue +255 -0
  262. package/src/components/receiverMessagePlatform.vue +28 -22
  263. package/src/components/recommend.vue +9 -7
  264. package/src/components/senderMessagePlatform.vue +24 -14
  265. package/src/components/tree.vue +120 -105
  266. package/src/components/utils/AliyunIssUtil.js +35 -13
  267. package/src/components/utils/ckeditor.js +59 -48
  268. package/src/components/voiceComponent.vue +9 -6
  269. package/src/components/welcomeKnowledgeFile.vue +19 -13
  270. package/src/components/welcomeLlmCard.vue +11 -9
  271. package/src/components/welcomeSuggest.vue +6 -4
  272. package/src/locales/cn.json +100 -0
  273. package/src/locales/en.json +99 -0
  274. package/src/main.js +19 -0
  275. package/src/components/newPdfPosition.vue +0 -878
@@ -5,7 +5,7 @@
5
5
  <template>
6
6
  <div class="answer-docknowledge">
7
7
  <div :class="['answer-docknowledge-header', msg.content.isKnowledgeSummary ? 'bgc' : '']">
8
- <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
8
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">{{$t('dragonCommon.summaryGeneratedByAI')}}</div>
9
9
  <!-- <div v-if="msg.content.type == 0" class="answer-text">
10
10
  <template v-if="msg.content.renderType == 1">
11
11
  <p v-html="msg.content.text"></p>
@@ -16,22 +16,60 @@
16
16
  <template v-if="msg.content.renderType == 1">
17
17
  <p v-html="msg.content.text"></p>
18
18
  </template>
19
+ <template v-else-if="msg.content.renderType == 2">
20
+ <!-- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText> -->
21
+ <markDownText
22
+ :chainValues="msg.content.text || ''"
23
+ :whetherRequestStream="msg.content.whetherRequestStream"
24
+ @sseOtherInfo="sseOtherInfo"
25
+ @answerDocKnowledgeFn="answerDocKnowledgeFn"
26
+ :streamRequestUrl="msg.content.streamRequestUrl"
27
+ :msgId="msg.id"
28
+ :isHistory="isHistory">
29
+ </markDownText>
30
+ </template>
31
+ <template v-else-if="msg.content.renderType == null">
32
+ <!-- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText> -->
33
+ <markDownText
34
+ :chainValues="msg.content.text || ''"
35
+ :whetherRequestStream="msg.content.whetherRequestStream"
36
+ @sseOtherInfo="sseOtherInfo"
37
+ @answerDocKnowledgeFn="answerDocKnowledgeFn"
38
+ :streamRequestUrl="msg.content.streamRequestUrl"
39
+ :msgId="msg.id"
40
+ :isHistory="isHistory">
41
+ </markDownText>
42
+ </template>
19
43
  <template v-else>{{ msg.content.text }}</template>
20
44
  </div>
21
- <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
22
- <img v-for="(imageItem, imageItemIndex) in msg.content.images"
23
- style="max-width: 230px;border-radius: 25px;margin-bottom: 15px" :src="imageItem.url"
24
- :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
25
- </div>
45
+ <template v-if="isPC">
46
+ <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box-pc">
47
+ <img v-for="(imageItem, imageItemIndex) in msg.content.images"
48
+ style="max-width: 230px;" :src="imageItem.url"
49
+ v-show="showImage || imageItemIndex < 2"
50
+ :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
51
+ <div class="img-placeholder" v-if="msg.content.images.length > 2 && !showImage" @click="showImage = true">
52
+ +{{ msg.content.images.length - 2 }}
53
+ </div>
54
+ </div>
55
+ </template>
56
+ <template v-else>
57
+ <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box-mobile">
58
+ <img v-for="(imageItem, imageItemIndex) in msg.content.images"
59
+ style="max-width: 230px;" :src="imageItem.url"
60
+ :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
61
+ </div>
62
+ </template>
26
63
  </div>
27
64
  <template v-if="!isLiBang">
28
- <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
65
+ <div class="ad-list" :class="msg.content.type == 0 || msg.content.type == 2 ? 'ad-list-recognition' : ''">
29
66
  <template v-if="msg.content.type == 1">
30
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
67
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
68
+ :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
31
69
  <div class="alc-title">
32
70
  <div class="alc-box">
33
71
  <div class="alc-source-left">
34
- <span class="source-form">出自</span>
72
+ <span class="source-form">{{$t('dragonCommon.from')}}</span>
35
73
  <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
36
74
  srcset="">
37
75
  <span class="alc-title-from">{{ item.from }}</span>
@@ -51,39 +89,39 @@
51
89
  {{ docSource[item.source] }}
52
90
  </div>
53
91
  <div v-show="item.url" class="alc-content-text">
54
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
92
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">{{$t('dragonCommon.check')}} ></span>
55
93
  </div>
56
94
  </div>
57
95
  </div>
58
96
  <div class="alc-content" v-if="false">
59
97
  <div v-if="msg.content.type == 1" class="alc-content-text">
60
98
  {{ item.introduction }}
61
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
99
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">{{$t('dragonCommon.viewOriginal')}} ></span>
62
100
  </div>
63
- <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
101
+ <span v-if="!isPC" class="alc-title-updateTime">{{$t('dragonCommon.lastUpdateTime')}}: {{ item.updateTime }}</span>
64
102
  <div v-if="false" class="alc-content-info">
65
103
  <div class="alcc-box">
66
- <span class="aci-owner">所有者: {{ item.owner }}</span>
67
- <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
68
- <span class="aci-source">文件来源: {{ item.source }}</span>
104
+ <span class="aci-owner">{{$t('dragonCommon.owner')}}: {{ item.owner }}</span>
105
+ <span class="aci-enterprise">{{$t('dragonCommon.enterprise')}}: {{ item.enterprise }}</span>
106
+ <span class="aci-source">{{$t('dragonCommon.source')}}: {{ item.source }}</span>
69
107
  </div>
70
108
  </div>
71
109
  </div>
72
110
  </div>
73
111
  </template>
74
- <template v-if="msg.content.type == 0">
75
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition">
112
+ <template v-if="msg.content.type == 0 || msg.content.type == 2">
113
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition" :id="item.knowledgeId + knowledgeIndex">
76
114
  <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
77
115
  <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
78
- <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
116
+ <span class="alc-title-from">{{ item.from }}</span>
79
117
  <div v-show="docSource[item.source]" class="upload-source">
80
- {{ docSource[item.source] }}
118
+ -{{ docSource[item.source] }}
81
119
  </div>
82
120
  <i class="iconfont guoran-right"></i>
83
121
  </div>
84
122
  </div>
85
123
  </template>
86
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
124
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">{{$t('dragonCommon.viewMore')}}</div>
87
125
  </div>
88
126
  </template>
89
127
  <template v-if="isLiBang">
@@ -93,7 +131,7 @@
93
131
  <div class="libang_title">
94
132
  <div class="libang_box">
95
133
  <div class="libang_source_left">
96
- <span class="source-form">出自</span>
134
+ <span class="source-form">{{$t('dragonCommon.from')}}</span>
97
135
  <img class="libang_title_icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
98
136
  srcset="">
99
137
  <span class="libang_title_from">{{ item.from }}</span>
@@ -114,11 +152,12 @@
114
152
  {{ docSource[item.source] }}
115
153
  </div>
116
154
  <div class="libang_floder" @click.stop="clickFloder(item)">
155
+ <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
117
156
  {{ item.folderName }}
118
157
  </div>
119
158
  </div>
120
159
  <div v-show="item.url" class="libang_content_text">
121
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
160
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">{{$t('dragonCommon.check')}} ></span>
122
161
  </div>
123
162
  </div>
124
163
  </div>
@@ -138,25 +177,26 @@
138
177
  </div> -->
139
178
  </div>
140
179
  </template>
141
- <template v-if="msg.content.type == 0">
180
+ <template v-if="msg.content.type == 0 || msg.content.type == 2">
142
181
  <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
143
- class="libang_list_cell_recognition">
144
- <div class="libang_list_cell_left" @click="lookAttach(item.url, item, $event)">
182
+ class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)" :id="item.knowledgeId + knowledgeIndex">
183
+ <div class="libang_list_cell_left" >
145
184
  <div class="libang_source_name" >
146
185
  <img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
147
- <span class="libang_title_from">{{ item.from }}</span>&nbsp;-&nbsp;
186
+ <span class="libang_title_from">{{ item.from }}</span>
148
187
  <div v-show="docSource[item.source]" class="upload_source">
149
- {{ docSource[item.source] }}
188
+ -{{ docSource[item.source] }}
150
189
  </div>
151
190
  </div>
152
191
  <div class="libang_source_floder" @click.stop="clickFloder(item)">
192
+ <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
153
193
  {{ item.folderName }}
154
194
  </div>
155
195
  </div>
156
- <i class="iconfont guoran-right"></i>
196
+ <i class="iconfont guoran-right" @click="lookAttach(item.url, item, $event)"></i>
157
197
  </div>
158
198
  </template>
159
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
199
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">{{$t('dragonCommon.viewMore')}}</div>
160
200
  </div>
161
201
  </template>
162
202
 
@@ -172,9 +212,10 @@
172
212
  /* eslint-disable */
173
213
  import previewPdf from "./previewPdf";
174
214
  import { isMobile } from "../assets/js/common";
215
+ import markDownText from "./markDownText.vue";
175
216
  export default {
176
217
  name: "answerDocknowledge",
177
- components: { previewPdf },
218
+ components: { previewPdf, markDownText },
178
219
  data () {
179
220
  return {
180
221
  isPC: true,
@@ -189,15 +230,7 @@ export default {
189
230
  // CORP_LOCAL_FILE: '来源于企业知识库',
190
231
  // FEISHU: '来源于飞书-云文档'
191
232
  // },
192
- docSource: {
193
- LOCAL_FILE: "个人知识",
194
- CREATED_BY_ONESELF: "个人知识",
195
- WECHAT: "个人知识",
196
- AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
197
- YUQUE: "企业知识",
198
- CORP_LOCAL_FILE: '企业知识',
199
- FEISHU: '企业知识'
200
- },
233
+ docSource: {},
201
234
  imageObj: {
202
235
  PDF: 'pdf1',
203
236
  pdf: 'pdf1',
@@ -228,7 +261,7 @@ export default {
228
261
  mp4: "video",
229
262
  MP4: "video",
230
263
  xlsx: "excel1",
231
- SLSX: "excel1",
264
+ XLSX: "excel1",
232
265
  xls: "excel1",
233
266
  XLS: "excel1",
234
267
  jpg: "image1",
@@ -261,14 +294,15 @@ export default {
261
294
  allKnowledgeList: [],
262
295
  loadMoreFlag: false,
263
296
  title: '',
264
- folderName:'',
265
- folderUrl:'',
297
+ folderName: '',
298
+ folderUrl: '',
266
299
  previewKnowledgeId: "",
267
300
  previewKnowledge: {},
268
- previewOssPath: ""
301
+ previewOssPath: "",
302
+ showImage: false
269
303
  }
270
304
  },
271
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang"],
305
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","isHistory","knowledgeIndex"],
272
306
  beforeMounted () {
273
307
  },
274
308
  watch: {
@@ -288,15 +322,16 @@ export default {
288
322
  // }
289
323
  },
290
324
  created () {
291
- var system = {};
292
- system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
293
- if (system.pingtai) {
294
- //电脑
295
- this.isPC = true;
296
- } else {
297
- //手机
298
- this.isPC = false;
299
- }
325
+ // var system = {};
326
+ // system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
327
+ // if (system.pingtai) {
328
+ // //电脑
329
+ // this.isPC = true;
330
+ // } else {
331
+ // //手机
332
+ // this.isPC = false;
333
+ // }
334
+ this.isPC = !isMobile()
300
335
  // this.msg.content.list.forEach(element => {
301
336
  // console.log(this.imageObj[element.format],1111);
302
337
  // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
@@ -306,6 +341,16 @@ export default {
306
341
  // });
307
342
  },
308
343
  mounted () {
344
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
345
+ this.docSource = {
346
+ LOCAL_FILE: this.$t('dragonCommon.personalknowledge'),
347
+ CREATED_BY_ONESELF: this.$t('dragonCommon.personalknowledge'),
348
+ WECHAT: this.$t('dragonCommon.personalknowledge'),
349
+ AUTO_SYN_FROM_LOCAL_FILE: this.$t('dragonCommon.personalknowledge'),
350
+ YUQUE: this.$t('dragonCommon.enterpriseknowledge'),
351
+ CORP_LOCAL_FILE: this.$t('dragonCommon.enterpriseknowledge'),
352
+ FEISHU: this.$t('dragonCommon.enterpriseknowledge'),
353
+ }
309
354
  console.log(this.msg.content, 'this.msg.content');
310
355
  // if(this.msg.content.type == 1) {
311
356
 
@@ -319,89 +364,119 @@ export default {
319
364
  }
320
365
  },
321
366
  methods: {
367
+ answerDocKnowledgeFn(){
368
+ console.log(
369
+ "answerDocKnowledgeFn 2"
370
+ );
371
+ this.$emit('answerDocKnowledgeFn');
372
+ },
373
+ // 知识类型消息 推荐、关联文档、图片
374
+ sseOtherInfo(msgId, eventId, data){
375
+ if (eventId === "matched") {
376
+ console.log("matched: ", this.msg.content.type);
377
+
378
+ if (JSON.parse(data.content).length > 0) {
379
+ this.$set(this.msg.content, "list", JSON.parse(data.content));
380
+ }
381
+ } else {
382
+ this.$emit("sseOtherInfo",msgId, eventId, data);
383
+ }
384
+ },
322
385
  getIconSrc (element) {
323
386
  if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
324
- return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png'
325
- } else {
326
- return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png'
387
+ return require("../assets/image/filtType/wechat.png")
388
+ } else if (element.format !== 'url'){
389
+ return require("../assets/image/filtType/" + this.imageObj[element.format] + '.png')
390
+
391
+ } else if (element.format === 'url'){
392
+ return require("../assets/image/filtType/" + 'html.png')
327
393
  }
328
394
  },
329
395
  //预览图片
330
396
  lookAttach (url, item, event) {
331
397
  // console.log(item.knowledgeId);
332
- // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
333
- // debugger
334
- event.preventDefault();
335
- if (this.isAskLightning == 1 && !this.isApp){
336
- window.parent.postMessage({
337
- data: "bot_preview",
338
- item: JSON.stringify(item),
339
- url: url
340
- },"*");
341
- } else {
342
- // if (isMobile()) {
343
- // this.$refs.previewPdf.drawer = true;
344
- // this.$refs.previewPdf.previewShowPopup = false;
345
- // } else {
346
- // this.$refs.previewPdf.drawer = false;
347
- // }
348
- this.title = item.from || item.name
349
- this.folderName = item.folderName
398
+ // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
399
+ // debugger
400
+ event.preventDefault();
401
+ if (this.isAskLightning == 1 && !this.isApp) {
402
+ window.parent.postMessage({
403
+ data: "bot_preview",
404
+ item: JSON.stringify(item),
405
+ url: url
406
+ }, "*");
407
+ } else {
408
+ // if (isMobile()) {
409
+ // this.$refs.previewPdf.drawer = true;
410
+ // this.$refs.previewPdf.previewShowPopup = false;
411
+ // } else {
412
+ // this.$refs.previewPdf.drawer = false;
413
+ // }
414
+ //该事件是为了打开新的弹框时关闭上一个弹框
415
+ window.parent.postMessage({
416
+ type: "close_drawer",
417
+ data:this.knowledgeIndex
418
+ }, "*");
419
+ this.title = item.from || item.name
420
+ this.folderName = item.folderName
350
421
  this.folderUrl = item.folderUrl
351
422
  this.previewKnowledge = item;
352
- this.previewKnowledgeId = item.knowledgeId
353
- this.$refs.previewPdf.previewShowPopup = false;
354
- this.$refs.previewPdf.drawer = false;
355
- this.previewOssPath = url;
356
- let index = url.lastIndexOf('?')
357
- let type = ''
358
- let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
359
- if (index !== -1) {
360
- url = url.substring(0, index)
361
- type = this.fileType(url)
362
- } else {
363
- type = this.fileType(url)
364
- }
365
- if (type === '' || type === 'OTHER') {
366
- httpUrl = httpUrl += '?needEncrypt=true'
367
- } else {
368
- httpUrl = httpUrl += '?needEncrypt=false'
369
- }
370
- this.$http.post(httpUrl, {
371
- "fileInOssPath":url
372
- }).then(res =>{
373
- if(res.data.code == '0') {
374
- this.previewHref = res.data.data;
375
- this.sourceFileType = url.substring(url.lastIndexOf('.'))
376
- let isOhmPc = sessionStorage.getItem('isOhmPc')
377
- if (isMobile() || isOhmPc == 'true'){
378
- this.$refs.previewPdf.drawer = true;
379
- this.$refs.previewPdf.previewShowPopup = true;
423
+ this.previewKnowledgeId = item.knowledgeId
424
+ this.$refs.previewPdf.previewShowPopup = false;
425
+ this.$refs.previewPdf.drawer = false;
426
+ this.previewOssPath = url;
427
+ let index = url.lastIndexOf('?')
428
+ let type = ''
429
+ let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
430
+ if (index !== -1) {
431
+ url = url.substring(0, index)
432
+ type = this.fileType(url)
380
433
  } else {
381
- this.$refs.previewPdf.previewShowPopup = false;
382
- this.$refs.previewPdf.drawer = true;
434
+ type = this.fileType(url)
383
435
  }
384
- //聊一聊按钮的选中状态
385
- if (this.activeKnowledgeId == item.knowledgeId){
386
- this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
436
+ if (type === '' || type === 'OTHER' || type == 'IMAGE') {
437
+ httpUrl = httpUrl += '?needEncrypt=true'
387
438
  } else {
388
- this.$refs.previewPdf.previewKnowledgeId = ""
389
- }
390
- this.$refs.previewPdf.fileType = type
391
- this.$refs.previewPdf.tagIds = item.tagIds
392
- this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
393
- let index = url.indexOf("?");
394
- let newFileInOssPath = url;
395
- if (index !== -1){
396
- newFileInOssPath = url.substring(0, url.indexOf("?"))
439
+ httpUrl = httpUrl += '?needEncrypt=false'
397
440
  }
398
- let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
399
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
400
- this.$refs.previewPdf.fileName = fileName;
401
- } else {
402
- this.$refs.previewPdf.fileName = '';
403
- }
404
- if (item.tagIds && item.tagIds.length != 0) {
441
+ this.$refs.previewPdf.getOssPath(url);
442
+ this.$http.post(httpUrl, {
443
+ "fileInOssPath": url
444
+ }).then(res => {
445
+ if (res.data.code == '0') {
446
+ this.previewHref = res.data.data;
447
+ this.sourceFileType = url.substring(url.lastIndexOf('.'))
448
+ let isOhmPc = sessionStorage.getItem('isOhmPc')
449
+ if (isMobile() || isOhmPc == 'true') {
450
+ this.$refs.previewPdf.drawer = true;
451
+ this.$refs.previewPdf.previewShowPopup = true;
452
+ } else {
453
+ this.$refs.previewPdf.previewShowPopup = false;
454
+ this.$refs.previewPdf.drawer = true;
455
+ }
456
+ //聊一聊按钮的选中状态
457
+ if (this.activeKnowledgeId == item.knowledgeId) {
458
+ this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
459
+ } else {
460
+ this.$refs.previewPdf.previewKnowledgeId = ""
461
+ }
462
+ this.$refs.previewPdf.fileType = type
463
+ this.$refs.previewPdf.tagIds = item.tagIds;
464
+ if (item.tagIds && item.tagIds.length > 0){
465
+ this.$refs.previewPdf.getLocationInfo();
466
+ }
467
+ this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
468
+ let index = url.indexOf("?");
469
+ let newFileInOssPath = url;
470
+ if (index !== -1) {
471
+ newFileInOssPath = url.substring(0, url.indexOf("?"))
472
+ }
473
+ let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
474
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
475
+ this.$refs.previewPdf.fileName = fileName;
476
+ } else {
477
+ this.$refs.previewPdf.fileName = '';
478
+ }
479
+ if (item.tagIds && item.tagIds.length != 0 && this.$refs.previewPdf.newFileType !== 'PPT') {
405
480
  this.$refs.previewPdf.loading = false
406
481
  return
407
482
  }
@@ -410,7 +485,7 @@ export default {
410
485
  this.$refs.previewPdf.getBolb(item)
411
486
  }
412
487
  this.$refs.previewPdf.loadIframe(item)
413
- this.$refs.previewPdf.showSummary = true;
488
+ this.$refs.previewPdf.showSummary = false;
414
489
  })
415
490
  }
416
491
  })
@@ -428,6 +503,8 @@ export default {
428
503
  return 'VIDEO'
429
504
  } else if (fileType === '.html') {
430
505
  return 'HTML'
506
+ } else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
507
+ return 'IMAGE'
431
508
  } else {
432
509
  return 'OTHER'
433
510
  }
@@ -488,13 +565,13 @@ export default {
488
565
  recommendQues (item, knowledgeId) {
489
566
  this.$emit('recommendQues', item, knowledgeId)
490
567
  },
491
- clickFloder(item) {
568
+ clickFloder (item) {
492
569
  this.$emit('clickFloder', item)
493
570
  },
494
- previewClickFloder() {
571
+ previewClickFloder () {
495
572
  let item = null
496
573
  this.msg.content.list.forEach(element => {
497
- if(element.knowledgeId == this.previewKnowledgeId) {
574
+ if (element.knowledgeId == this.previewKnowledgeId) {
498
575
  item = element
499
576
  }
500
577
  });
@@ -505,6 +582,8 @@ export default {
505
582
  </script>
506
583
 
507
584
  <style scoped lang="less">
585
+ @import "../assets/less/variables.less";
586
+
508
587
  .answer-docknowledge {
509
588
  min-width: 100px;
510
589
  background: #ffffff;
@@ -513,11 +592,11 @@ export default {
513
592
  .tips {
514
593
  width: 154px;
515
594
  height: 22px;
516
- background: #366aff;
595
+ background: @primary-color;
517
596
  border-radius: 5px;
518
597
  text-align: center;
519
598
  line-height: 22px;
520
- color: #fff;
599
+ color: @font-primary-light-color;
521
600
  font-size: 12px;
522
601
  margin-bottom: 7px;
523
602
  }
@@ -532,7 +611,7 @@ export default {
532
611
  // font-size: 13px;
533
612
  display: inline-block;
534
613
  // margin-left: 5px;
535
- color: #366aff;
614
+ color: @font-primary-accent-color;
536
615
  cursor: pointer;
537
616
  }
538
617
  }
@@ -548,8 +627,59 @@ export default {
548
627
  }
549
628
  }
550
629
 
551
- .answer-kn-image-box {
630
+ // .answer-kn-image-box {
631
+ // margin-bottom: 10px;
632
+ // }
633
+ .answer-kn-image-box-pc {
634
+ margin-bottom: 10px;
635
+ display: flex;
636
+ width: 100%;
637
+ overflow: hidden;
638
+ overflow-x: auto;
639
+ img {
640
+ width: 120px;
641
+ height: 120px;
642
+ border-radius: 5px;
643
+ object-fit: cover;
644
+ margin-right: 10px;
645
+ margin-bottom: 10px;
646
+ cursor: pointer;
647
+ flex: none;
648
+ }
649
+ .img-placeholder {
650
+ width: 120px;
651
+ height: 120px;
652
+ border-radius: 5px;
653
+ margin-right: 10px;
654
+ margin-bottom: 10px;
655
+ cursor: pointer;
656
+ border: 1px dashed @border-color-r4;
657
+ color: @font-primary-accent-color;
658
+ flex: none;
659
+ display: flex;
660
+ align-items: center;
661
+ justify-content: center;
662
+ font-size: 22px;
663
+ }
664
+ .img-placeholder:hover {
665
+ border: 1px dashed @border-color-primary;
666
+ }
667
+ }
668
+ .answer-kn-image-box-mobile {
552
669
  margin-bottom: 10px;
670
+ display: flex;
671
+ width: 100%;
672
+ overflow: hidden;
673
+ overflow-x: auto;
674
+ img {
675
+ width: 35vw;
676
+ height: 35vw;
677
+ border-radius: 5px;
678
+ object-fit: cover;
679
+ margin-right: 10px;
680
+ margin-bottom: 10px;
681
+ flex: none;
682
+ }
553
683
  }
554
684
  }
555
685
 
@@ -568,7 +698,7 @@ export default {
568
698
 
569
699
  .ad-list {
570
700
  .ad-list-cell {
571
- border-top: solid 1px #eeeeee;
701
+ border-top: solid 1px @border-color-r3;
572
702
  padding: 10px 0 10px;
573
703
 
574
704
  .alc-title {
@@ -592,7 +722,7 @@ export default {
592
722
  .source-form {
593
723
  width: 34px;
594
724
  flex: none;
595
- color: #a9b3c6;
725
+ color: @font-primary-color-r4;
596
726
  }
597
727
  }
598
728
 
@@ -601,7 +731,7 @@ export default {
601
731
  flex: none;
602
732
 
603
733
  .aci-view {
604
- color: #366aff;
734
+ color: @font-primary-accent-color;
605
735
  cursor: pointer;
606
736
  }
607
737
  }
@@ -614,6 +744,9 @@ export default {
614
744
  display: flex;
615
745
  justify-content: flex-start;
616
746
  }
747
+ .upload-source {
748
+ // flex: none;
749
+ }
617
750
  }
618
751
 
619
752
  .alc-box-introduction {
@@ -623,7 +756,7 @@ export default {
623
756
  -webkit-line-clamp: 3;
624
757
  -webkit-box-orient: vertical;
625
758
  margin-top: 10px;
626
- color: #616161;
759
+ color: @font-secondary-color;
627
760
  // font-size: 12px;
628
761
  line-height: 24px;
629
762
  text-align: left;
@@ -638,24 +771,25 @@ export default {
638
771
 
639
772
  .alc-box-introduction-previewImage {
640
773
  width: 100%;
641
- display: block;
642
- overflow: hidden;
643
- text-overflow: ellipsis;
644
- display: -webkit-box;
645
- -webkit-line-clamp:3;
646
- -webkit-box-orient:vertical;
647
- margin-top: 10px;
648
- color: #616161;
649
- // font-size: 12px;
650
- line-height: 24px;
651
- text-align: left;
652
- img {
653
- max-width: 300px;
654
- width: 100%;
655
- max-height: 150px;
656
- margin: 10px;
657
- cursor: pointer;
658
- }
774
+ display: block;
775
+ overflow: hidden;
776
+ text-overflow: ellipsis;
777
+ display: -webkit-box;
778
+ -webkit-line-clamp: 3;
779
+ -webkit-box-orient: vertical;
780
+ margin-top: 10px;
781
+ color: @font-secondary-color;
782
+ // font-size: 12px;
783
+ line-height: 24px;
784
+ text-align: left;
785
+
786
+ img {
787
+ max-width: 300px;
788
+ width: 100%;
789
+ max-height: 150px;
790
+ margin: 10px;
791
+ cursor: pointer;
792
+ }
659
793
  }
660
794
 
661
795
  .alc-updateTime {
@@ -670,8 +804,8 @@ export default {
670
804
  flex: none;
671
805
  height: 18px;
672
806
  line-height: 18px;
673
- background: #e9f9f8;
674
- border: 1px solid #aff2cd;
807
+ background: @background-color-alc;
808
+ border: 1px solid @border-color-alc;
675
809
  border-radius: 2px;
676
810
  display: flex;
677
811
  align-items: center;
@@ -681,12 +815,12 @@ export default {
681
815
  }
682
816
 
683
817
  .time {
684
- color: #999999;
818
+ color: @font-primary-color-r1;
685
819
  margin-left: 10px;
686
820
  }
687
821
 
688
822
  .alc-content-text {
689
- color: #366aff;
823
+ color: @font-primary-accent-color;
690
824
  cursor: pointer;
691
825
  }
692
826
  }
@@ -700,7 +834,7 @@ export default {
700
834
 
701
835
  .alc-title-updateTime {
702
836
  text-align: right;
703
- color: #999999;
837
+ color: @font-primary-color-r1;
704
838
  // font-size: 13px;
705
839
  }
706
840
  }
@@ -710,7 +844,7 @@ export default {
710
844
  margin-top: 6px;
711
845
  display: block;
712
846
  text-align: right;
713
- color: #999999;
847
+ color: @font-primary-color-r1;
714
848
  // font-size: 13px;
715
849
  }
716
850
 
@@ -722,7 +856,7 @@ export default {
722
856
  .aci-view {
723
857
  display: inline-block;
724
858
  margin-left: 30px;
725
- color: #366aff;
859
+ color: @font-primary-accent-color;
726
860
  cursor: pointer;
727
861
  }
728
862
  }
@@ -735,7 +869,7 @@ export default {
735
869
  .alcc-box {
736
870
  display: flex;
737
871
  flex-wrap: wrap;
738
- color: #999999;
872
+ color: @font-primary-color-r1;
739
873
 
740
874
  .aci-owner {
741
875
  margin-right: 20px;
@@ -750,12 +884,15 @@ export default {
750
884
  }
751
885
 
752
886
  .ad-list-cell-recognition {
887
+ max-width: 270px;
888
+ margin-right: 12px;
889
+ font-size: 12px;
753
890
  .alc-source-name {
754
891
  flex: none;
755
892
  padding: 3px;
756
893
  margin-right: 5px;
757
894
  margin-bottom: 5px;
758
- background: #f2f6ff;
895
+ background: @background-color-alc-source;
759
896
  border-radius: 5px;
760
897
  display: flex;
761
898
  align-items: center;
@@ -779,6 +916,7 @@ export default {
779
916
 
780
917
  .upload-source {
781
918
  margin-right: 5px;
919
+ flex: none;
782
920
  }
783
921
 
784
922
  i {
@@ -794,7 +932,7 @@ export default {
794
932
  align-items: center;
795
933
  justify-content: center;
796
934
  // background: #FFFFFF;
797
- color: #366aff;
935
+ color: @font-primary-accent-color;
798
936
  font-size: 14px;
799
937
  margin-top: 8px;
800
938
  cursor: pointer;
@@ -803,9 +941,9 @@ export default {
803
941
 
804
942
  .libang_list {
805
943
  .libang_list_cell {
806
- border-top: solid 1px #eeeeee;
944
+ border-top: solid 1px @border-color-r3;
807
945
  padding: 10px 0 10px;
808
-
946
+ font-size: 12px;
809
947
  .libang_title {
810
948
  display: flex;
811
949
  flex-wrap: wrap;
@@ -827,7 +965,7 @@ export default {
827
965
  .source-form {
828
966
  width: 34px;
829
967
  flex: none;
830
- color: #a9b3c6;
968
+ color: @font-primary-color-r4;
831
969
  }
832
970
  }
833
971
 
@@ -836,7 +974,7 @@ export default {
836
974
  flex: none;
837
975
 
838
976
  .aci-view {
839
- color: #366aff;
977
+ color: @font-primary-accent-color;
840
978
  cursor: pointer;
841
979
  }
842
980
  }
@@ -858,7 +996,7 @@ export default {
858
996
  -webkit-line-clamp: 3;
859
997
  -webkit-box-orient: vertical;
860
998
  margin-top: 10px;
861
- color: #616161;
999
+ color: @font-secondary-color;
862
1000
  // font-size: 12px;
863
1001
  line-height: 24px;
864
1002
  text-align: left;
@@ -878,7 +1016,7 @@ export default {
878
1016
  -webkit-line-clamp: 3;
879
1017
  -webkit-box-orient: vertical;
880
1018
  margin-top: 10px;
881
- color: #616161;
1019
+ color: @font-secondary-color;
882
1020
  // font-size: 12px;
883
1021
  line-height: 24px;
884
1022
  text-align: left;
@@ -914,24 +1052,28 @@ export default {
914
1052
  align-items: center;
915
1053
  justify-content: center;
916
1054
  padding: 0 8px;
917
- color: #00c2bb;
1055
+ color: @font-alc-color;
918
1056
  }
919
1057
  .libang_floder {
920
1058
  width:calc(100% - 90px);
921
- margin-left: 10px;
1059
+ // margin-left: 10px;
922
1060
  overflow: hidden;
923
1061
  text-overflow: ellipsis;
924
1062
  white-space: nowrap;
925
- color: #366aff;
1063
+ color: @font-primary-accent-color;
926
1064
  cursor: pointer;
1065
+ text-align: left;
1066
+ i {
1067
+ margin-left: 8px;
1068
+ }
927
1069
  }
928
1070
  }
929
1071
  .libang_content_text {
930
- color: #366aff;
1072
+ color: @font-primary-accent-color;
931
1073
  cursor: pointer;
932
1074
  }
933
1075
  .time {
934
- color: #999999;
1076
+ color: @font-primary-color-r1;
935
1077
  margin-left: 10px;
936
1078
  }
937
1079
  }
@@ -944,7 +1086,7 @@ export default {
944
1086
 
945
1087
  .alc-title-updateTime {
946
1088
  text-align: right;
947
- color: #999999;
1089
+ color: @font-primary-color-r1;
948
1090
  // font-size: 13px;
949
1091
  }
950
1092
  }
@@ -954,7 +1096,7 @@ export default {
954
1096
  margin-top: 6px;
955
1097
  display: block;
956
1098
  text-align: right;
957
- color: #999999;
1099
+ color: @font-primary-color-r1;
958
1100
  // font-size: 13px;
959
1101
  }
960
1102
 
@@ -966,7 +1108,7 @@ export default {
966
1108
  .aci-view {
967
1109
  display: inline-block;
968
1110
  margin-left: 30px;
969
- color: #366aff;
1111
+ color: @font-primary-accent-color;
970
1112
  cursor: pointer;
971
1113
  }
972
1114
  }
@@ -979,7 +1121,7 @@ export default {
979
1121
  .alcc-box {
980
1122
  display: flex;
981
1123
  flex-wrap: wrap;
982
- color: #999999;
1124
+ color: @font-primary-color-r1;
983
1125
 
984
1126
  .aci-owner {
985
1127
  margin-right: 20px;
@@ -994,7 +1136,7 @@ export default {
994
1136
  }
995
1137
 
996
1138
  .libang_list_cell_recognition {
997
- background: #f2f6ff;
1139
+ background: @background-color-alc-source;
998
1140
  display: flex;
999
1141
  align-items: center;
1000
1142
  justify-content: space-between;
@@ -1003,7 +1145,7 @@ export default {
1003
1145
  margin-bottom: 5px;
1004
1146
  border-radius: 5px;
1005
1147
  cursor: pointer;
1006
- font-size: 14px;
1148
+ font-size: 12px;
1007
1149
 
1008
1150
  .libang_list_cell_left {
1009
1151
  margin-right: 5px;
@@ -1026,16 +1168,22 @@ export default {
1026
1168
  white-space: nowrap;
1027
1169
  line-height: 20px;
1028
1170
  }
1171
+ .upload_source {
1172
+ flex: none;
1173
+ }
1029
1174
  }
1030
1175
  .libang_source_floder {
1031
1176
  max-width: calc(226px - 24px);
1032
- margin-left: 24px;
1033
1177
  text-align: left;
1034
- color: #366aff;
1178
+ color: @font-primary-accent-color;
1035
1179
  overflow: hidden;
1036
1180
  text-overflow: ellipsis;
1037
1181
  white-space: nowrap;
1038
1182
  cursor: pointer;
1183
+ .iconfont {
1184
+ margin: 0 5px;
1185
+ font-size: 14px
1186
+ }
1039
1187
  }
1040
1188
  }
1041
1189
  i {
@@ -1050,7 +1198,7 @@ export default {
1050
1198
  align-items: center;
1051
1199
  justify-content: center;
1052
1200
  // background: #FFFFFF;
1053
- color: #366aff;
1201
+ color: @font-primary-accent-color;
1054
1202
  font-size: 14px;
1055
1203
  margin-top: 8px;
1056
1204
  cursor: pointer;