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
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <div>
3
+ <el-image-viewer :zIndex="999999" :on-close="closeViewer" :url-list="urlList" />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import ElementUI from 'element-ui';
9
+ // import ElImageViewer from ElementUI.Image.components.ImageViewer;
10
+
11
+ export default {
12
+ name: "imgView",
13
+ components: {
14
+ ElImageViewer: ElementUI.Image.components.ImageViewer
15
+ },
16
+ data () {
17
+ return {};
18
+ },
19
+ props: ["urlList"],
20
+ methods: {
21
+ closeViewer () {
22
+ // 关闭组件后从父级dom销毁这个挂载
23
+ if (this.$el.parentNode) {
24
+ this.$el.parentNode.removeChild(this.$el);
25
+ }
26
+ this.$emit("closeViewer");
27
+ },
28
+ },
29
+ };
30
+ </script>
31
+
32
+ <style scoped></style>
@@ -3,21 +3,23 @@
3
3
  <div class="summaryHeader">
4
4
  <div class="left">
5
5
  <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
6
- <span>智能摘要</span>
6
+ <span>{{ $t('dragonCommon.smartSummary') }}</span>
7
7
  </div>
8
8
  <div class="right">
9
9
  <div class="regenerationBtn" @click="regeneration">
10
- <template v-if="!isLoading">重新生成</template>
10
+ <template v-if="!isLoading">
11
+ {{ $t('dragonCommon.regenerate') }}
12
+ </template>
11
13
  <template v-else>
12
14
  <img
13
- height="20px"
14
- width="20px"
15
- src="https://static.guoranbot.com/loading.gif"
16
- alt
17
- srcset
18
- style="margin-right: 6px"
15
+ height="20px"
16
+ width="20px"
17
+ src="../assets/image/loading.gif"
18
+ alt
19
+ srcset
20
+ style="margin-right: 6px"
19
21
  />
20
- <span>生成中</span>
22
+ <span>{{ $t('dragonCommon.generating') }}</span>
21
23
  </template>
22
24
  </div>
23
25
  <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
@@ -28,9 +30,9 @@
28
30
  </div>
29
31
  <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
30
32
  <div class="intelligentQues"
31
- v-for="(item,index) in recommendQuestions"
32
- :key="index"
33
- @click="recommendQues(item)"
33
+ v-for="(item, index) in recommendQuestions"
34
+ :key="index"
35
+ @click="recommendQues(item)"
34
36
  >
35
37
  {{ item }}
36
38
  </div>
@@ -129,16 +131,19 @@ export default {
129
131
  },
130
132
  },
131
133
  mounted() {
134
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
132
135
  this.getKnowledgeSummary();
133
136
  }
134
137
  };
135
138
  </script>
136
139
 
137
140
  <style scoped lang="less">
141
+ @import "../assets/less/variables.less";
142
+
138
143
  .intelligentSummary{
139
144
  background-color: #ffffff;
140
145
  border-radius: 20px;
141
- border: 1px solid #366AFF;
146
+ border: 1px solid @border-color-primary;
142
147
  margin-bottom: 20px;
143
148
  .summaryHeader{
144
149
  display: flex;
@@ -149,7 +154,7 @@ export default {
149
154
  .left{
150
155
  //display: flex;
151
156
  //align-items: center;
152
- color: #366aff;
157
+ color: @font-primary-accent-color;
153
158
  i{
154
159
  padding-right: 6px;
155
160
  }
@@ -157,12 +162,12 @@ export default {
157
162
  .right{
158
163
  display: flex;
159
164
  align-items: center;
160
- color: #366aff;
165
+ color: @font-primary-accent-color;
161
166
  .regenerationBtn{
162
167
  height: 26px;
163
168
  background: #E9EFFF;
164
169
  border-radius: 12px;
165
- color: #366AFF;
170
+ color: @font-primary-accent-color;
166
171
  display: flex;
167
172
  align-items: center;
168
173
  justify-content: center;
@@ -184,7 +189,7 @@ export default {
184
189
  text-align: left;
185
190
  }
186
191
  .intelligentBottom{
187
- background: #F9FAFD;
192
+ background: @background-color-list-r2;
188
193
  padding: 0 20px;
189
194
  border-bottom-left-radius: 20px;
190
195
  border-bottom-right-radius: 20px;
@@ -197,8 +202,8 @@ export default {
197
202
  align-items: center;
198
203
  justify-content: center;
199
204
  padding: 0 8px;
200
- background: #E5EBFF;
201
- color: #366AFF;
205
+ background: @background-color-example;
206
+ color: @font-primary-accent-color;
202
207
  border-radius: 10px;
203
208
  margin-right: 5px;
204
209
  margin-top: 5px;
@@ -0,0 +1,203 @@
1
+ <template>
2
+ <div class="imageSelectionAnswer">
3
+ <div class="imageSelectionText" v-if="msg.content.prompt">
4
+ {{msg.content.prompt}}
5
+ </div>
6
+ <div class="imageList">
7
+ <div class="imageItem"
8
+ v-for="(item,index) in msg.content.options"
9
+ :key="index"
10
+ :class="disabled || isDisabled ? 'disabledItem' : ''"
11
+ >
12
+ <el-image
13
+ style="width: 120px!important; height: 120px!important;"
14
+ :src="item.url"
15
+ @click="onImageClick(item.url)"
16
+ fit="cover">
17
+ <template #placeholder>
18
+ <div class="custom-loading">
19
+ <i class="el-icon-loading"></i>
20
+ </div>
21
+ </template>
22
+ <template #error>
23
+ <div class="custom-error">
24
+ <i class="el-icon-picture-outline"></i>
25
+ </div>
26
+ </template>
27
+ </el-image>
28
+ <div class="checkIcon"
29
+ :class="checkImage && checkImage.url === item.url ? 'activeCheckIcon' : 'noCheckIcon'"
30
+ @click="selectImage(item)"
31
+ >
32
+ <div class="centerIcon" v-if="checkImage && checkImage.url === item.url">
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <div class="answerButton" v-if="msg.content.handleSettings && msg.content.handleSettings.length > 0" :class="disabled || isDisabled || !checkImage ? 'disabledButton' : ''">
38
+ <div class="buttonText"
39
+ v-for="(item,index) in msg.content.handleSettings"
40
+ :key="index"
41
+ @click="imageSelectionConfirm(item)"
42
+ >
43
+ {{ item }}
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </template>
48
+
49
+ <script>
50
+ export default {
51
+ name: "imageSelectionAnswer",
52
+ data(){
53
+ return{
54
+ checkImage:"",
55
+ isDisabled:false
56
+ }
57
+ },
58
+ props:{
59
+ answer:{
60
+ type:Object,
61
+ default(){
62
+ return{}
63
+ }
64
+ },
65
+ disabled:{
66
+ type:Boolean,
67
+ default:false
68
+ },
69
+ msg:{
70
+ type:Object,
71
+ default(){
72
+ return{}
73
+ }
74
+ },
75
+ },
76
+ methods:{
77
+ previewList(options){
78
+ let arr = [];
79
+ arr = options.map(item => item.url)
80
+ return arr
81
+ },
82
+ selectImage(item){
83
+ if (this.disabled || this.isDisabled){
84
+ return
85
+ }
86
+ this.checkImage = item;
87
+ },
88
+ imageSelectionConfirm(item){
89
+ if (this.disabled || this.isDisabled || !this.checkImage){
90
+ return
91
+ }
92
+ this.isDisabled = true;
93
+ this.$emit('imageSelectionConfirm',item,this.checkImage,this.msg)
94
+ },
95
+ onImageClick(url){
96
+ this.$emit('onImageClick',url)
97
+ },
98
+ }
99
+ };
100
+ </script>
101
+
102
+ <style scoped lang="less">
103
+ @import "../../assets/less/variables.less";
104
+
105
+ .imageSelectionAnswer{
106
+ .imageSelectionText{
107
+ padding-bottom: 10px;
108
+ }
109
+ .imageList{
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: flex-start;
113
+ flex-wrap: wrap;
114
+ background-color: @background-color-light;
115
+ .imageItem{
116
+ position: relative;
117
+ margin-right: 10px;
118
+ margin-bottom: 5px;
119
+ margin-top: 5px;
120
+ .checkIcon{
121
+ position: absolute;
122
+ top: 0;
123
+ right: 0;
124
+ width: 15px;
125
+ height: 15px;
126
+ border-radius: 8px;
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ flex: none;
131
+ }
132
+ .activeCheckIcon{
133
+ background: @primary-color;
134
+ border: 1px solid @primary-color;
135
+ .centerIcon{
136
+ width: 6px;
137
+ height: 6px;
138
+ background: @background-color-light;
139
+ border-radius: 50%;
140
+ flex: none;
141
+ }
142
+ }
143
+ .noCheckIcon{
144
+ background: @background-color-light;
145
+ border: 1px solid @border-color-r6;
146
+ }
147
+ }
148
+ }
149
+ .answerButton{
150
+ padding-top: 10px;
151
+ width: 100%;
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ border-top: 1px solid @border-color-r6;
156
+ .buttonText{
157
+ padding: 0 4px;
158
+ cursor: pointer;
159
+ color: @font-primary-accent-color;
160
+ }
161
+ }
162
+ .disabledItem{
163
+ .checkIcon{
164
+ background-color: @background-color-asset-text-r2 !important;
165
+ }
166
+ .centerIcon{
167
+ background: @primary-color!important;
168
+ }
169
+ }
170
+ .custom-loading,
171
+ .custom-error {
172
+ width: 100%;
173
+ height: 100%;
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ background: @background-color-custom;
178
+ }
179
+
180
+ .custom-loading {
181
+ color: @font-primary-accent-color;
182
+ }
183
+
184
+ .custom-error {
185
+ color: red;
186
+ }
187
+
188
+ .el-icon-loading {
189
+ font-size: 24px;
190
+ animation: rotating 2s linear infinite;
191
+ }
192
+
193
+ @keyframes rotating {
194
+ from { transform: rotate(0deg); }
195
+ to { transform: rotate(360deg); }
196
+ }
197
+ }
198
+ .disabledButton{
199
+ .buttonText{
200
+ color: @font-disable-color !important;
201
+ }
202
+ }
203
+ </style>
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div class="multipleChoiceAnswer">
3
+ <div class="multipleText" v-if="msg.content.prompt">
4
+ {{msg.content.prompt}}
5
+ </div>
6
+ <div class="multipleList" :class="msg.content.options && msg.content.options.length == 0 ? 'disabledMultiple' : ''">
7
+ <el-checkbox-group v-model="checkList">
8
+ <el-checkbox
9
+ :label="item._metadata.id"
10
+ v-for="item in msg.content.options"
11
+ :key="item._metadata.id"
12
+ :disabled="disabled || isDisabled"
13
+ >
14
+ <el-image
15
+ style="width: 32px!important; height: 32px!important;margin-right: 4px;flex: none"
16
+ :src="item.url"
17
+ v-if="item.url"
18
+ @click.stop="onImageClick(item.url)"
19
+ fit="cover"></el-image>
20
+ {{ item.text }}
21
+ </el-checkbox>
22
+ </el-checkbox-group>
23
+ </div>
24
+ <div class="answerButton" v-if="msg.content.handleSettings && msg.content.handleSettings.length > 0" :class="disabled || isDisabled || checkList.length === 0 ? 'disabledButton' : ''">
25
+ <div class="buttonText"
26
+ v-for="(item,index) in msg.content.handleSettings"
27
+ :key="index"
28
+ @click="multipleChoiceConfirm(item)"
29
+ >
30
+ {{ item }}
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </template>
35
+
36
+ <script>
37
+ export default {
38
+ name: "multipleChoiceAnswer",
39
+ data(){
40
+ return{
41
+ checkList:[],
42
+ isDisabled:false
43
+ }
44
+ },
45
+ props:{
46
+ disabled:{
47
+ type:Boolean,
48
+ default:false
49
+ },
50
+ msg:{
51
+ type:Object,
52
+ default(){
53
+ return{}
54
+ }
55
+ },
56
+ },
57
+ methods:{
58
+ previewList(options){
59
+ let arr = [];
60
+ arr = options.map(item => item.url)
61
+ return arr
62
+ },
63
+ multipleChoiceConfirm(item){
64
+ if (this.disabled || this.isDisabled || this.checkList.length === 0){
65
+ return
66
+ }
67
+ this.isDisabled = true;
68
+ this.$emit('multipleChoiceConfirm',item,this.checkList,this.msg)
69
+ },
70
+ onImageClick(url){
71
+ this.$emit('onImageClick',url)
72
+ },
73
+ }
74
+ };
75
+ </script>
76
+
77
+ <style scoped lang="less">
78
+ @import "../../assets/less/variables.less";
79
+
80
+ .multipleChoiceAnswer{
81
+ .multipleText{
82
+ //margin-bottom: 10px;
83
+ }
84
+ .multipleList{
85
+ display: flex;
86
+ justify-items: flex-start;
87
+ padding: 8px 0;
88
+ background-color: @background-color-light;
89
+ /deep/.el-checkbox-group{
90
+ //display: flex;
91
+ //align-items: center;
92
+ //flex-direction: column;
93
+ .el-checkbox{
94
+ margin-right: 0!important;
95
+ margin-bottom: 10px;
96
+ display: flex;
97
+ align-items: center;
98
+ .el-checkbox__label{
99
+ display: flex;
100
+ align-items: center;
101
+ color: @font-primary-color;
102
+ white-space: pre-line;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ .answerButton{
108
+ padding-top: 10px;
109
+ width: 100%;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ border-top: 1px solid @border-color-r3;
114
+ .buttonText{
115
+ padding: 0 4px;
116
+ cursor: pointer;
117
+ color: @primary-color;
118
+ }
119
+ }
120
+ }
121
+ .disabledMultiple{
122
+ /deep/.el-checkbox__input{
123
+ display: none;
124
+ }
125
+ /deep/.el-checkbox__label{
126
+ padding-left: 0;
127
+ }
128
+ }
129
+ .disabledButton{
130
+ .buttonText{
131
+ color: @font-disable-color !important;
132
+ }
133
+ }
134
+ </style>
@@ -0,0 +1,82 @@
1
+ <template>
2
+ <div class="singleChoiceAnswer">
3
+ <div class="singleChoiceText" v-if="msg.content.prompt">
4
+ {{msg.content.prompt}}
5
+ </div>
6
+ <div class="optionsList" :class="isDisabled || disabled ? 'disabledOption' : ''">
7
+ <div
8
+ v-for="(option, index) in msg.content.options"
9
+ class="optionsItem"
10
+ :key="index"
11
+ @click="handleClick(option)"
12
+ >
13
+ <span> {{ option.text }}</span>
14
+ <i class="arsenal_icon arsenalangle-right-solid"></i>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: "singleChoiceAnswer",
23
+ data(){
24
+ return{
25
+ isDisabled:false
26
+ }
27
+ },
28
+ props:{
29
+ msg:{
30
+ type:Object,
31
+ default(){
32
+ return{}
33
+ }
34
+ },
35
+ disabled:{
36
+ type:Boolean,
37
+ default:false
38
+ }
39
+ },
40
+ methods:{
41
+ handleClick(item){
42
+ if (this.disabled || this.isDisabled){
43
+ return
44
+ }
45
+ this.isDisabled = true;
46
+ this.$emit('singleChoice',item,this.msg)
47
+ }
48
+ }
49
+ };
50
+ </script>
51
+
52
+ <style scoped lang="less">
53
+ @import "../../assets/less/variables.less";
54
+ .singleChoiceAnswer{
55
+
56
+ .singleChoiceText{
57
+ //padding-bottom: 10px;
58
+ }
59
+ .optionsList {
60
+ padding-top: 4px;
61
+
62
+ .optionsItem {
63
+ line-height: 25px;
64
+ background-color: @background-content-color;
65
+ color: @primary-color;
66
+ cursor: pointer;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: space-between;
70
+ padding: 8px 0;
71
+ i {
72
+ padding-left: 10px;
73
+ }
74
+ }
75
+ }
76
+ .disabledOption{
77
+ .optionsItem{
78
+ color: @font-disable-color !important;
79
+ }
80
+ }
81
+ }
82
+ </style>
@@ -774,16 +774,6 @@ export default {
774
774
  // Math.hypot()计算参数的平方根
775
775
  return Math.hypot(stop.x - start.x, stop.y - start.y);
776
776
  },
777
- setupCanvas (canvas, width, height) {
778
- const dpr = 1;
779
- // const rect = canvas.getBoundingClientRect();
780
- canvas.width = width
781
- canvas.height = height
782
- const ctx = canvas.getContext('2d');
783
- console.log(canvas.width, canvas.height, dpr, this.scale);
784
- ctx?.scale(dpr, dpr);
785
- return ctx;
786
- },
787
777
  changeScale (value) {
788
778
  if (value == 'zoom') {
789
779
  this.handScale = 'auto'
@@ -913,11 +903,13 @@ export default {
913
903
  </script>
914
904
 
915
905
  <style lang="less" scoped>
906
+ @import "../assets/less/variables.less";
907
+
916
908
  .pdf_view {
917
909
  width: 100%;
918
910
  height: calc(100% - 110px);
919
911
  overflow: auto;
920
- background-color: #f5f7fb;
912
+ background-color: @background-content-color;
921
913
  // margin-bottom: 60px;
922
914
  box-sizing: border-box;
923
915
 
@@ -960,7 +952,7 @@ export default {
960
952
  bottom: 0px;
961
953
  left: 0;
962
954
  z-index: 999;
963
- background: #ffffff;
955
+ background: @background-color-light;
964
956
 
965
957
  .prev,
966
958
  .next {
@@ -974,13 +966,13 @@ export default {
974
966
  }
975
967
 
976
968
  .prev {
977
- background: #F2F5FA;
978
- color: #000;
969
+ background: @background-color-prev;
970
+ color: @font-primary-color;
979
971
  }
980
972
 
981
973
  .next {
982
- background: #366aff;
983
- color: #ffffff;
974
+ background: @primary-color;
975
+ color: @font-primary-light-color;
984
976
  }
985
977
  }
986
978
 
@@ -998,7 +990,7 @@ export default {
998
990
  align-items: center;
999
991
  justify-content: center;
1000
992
  height: 50px;
1001
- background-color: white;
993
+ background-color: @background-color-light;
1002
994
  box-shadow: 0px 0px 18px 0px rgba(29, 55, 129, 0.07);
1003
995
  border-radius: 5px;
1004
996
  z-index: 1000;
@@ -1008,21 +1000,21 @@ export default {
1008
1000
  }
1009
1001
 
1010
1002
  /deep/.el-pager {
1011
- background: #EDF0F6;
1003
+ background: @background-color-pagination;
1012
1004
  border-radius: 15px;
1013
1005
  }
1014
1006
 
1015
1007
  /deep/.el-pagination.is-background .btn-next {
1016
1008
  width: 30px;
1017
1009
  height: 30px;
1018
- background: #EDF0F6;
1010
+ background: @background-color-pagination;
1019
1011
  border-radius: 50%;
1020
1012
  }
1021
1013
 
1022
1014
  /deep/.el-pagination .btn-next {
1023
1015
  width: 30px;
1024
1016
  height: 30px;
1025
- background: #EDF0F6;
1017
+ background: @background-color-pagination;
1026
1018
  border-radius: 50%;
1027
1019
  padding-left: 0;
1028
1020
  margin-left: 5px;
@@ -1031,7 +1023,7 @@ export default {
1031
1023
  /deep/.el-pagination .btn-prev {
1032
1024
  width: 30px;
1033
1025
  height: 30px;
1034
- background: #EDF0F6;
1026
+ background: @background-color-pagination;
1035
1027
  border-radius: 50%;
1036
1028
  padding-right: 0;
1037
1029
  margin-right: 5px;
@@ -1043,12 +1035,12 @@ export default {
1043
1035
  }
1044
1036
 
1045
1037
  /deep/.el-pager li {
1046
- background: #EDF0F6;
1038
+ background: @background-color-pagination;
1047
1039
  height: 30px;
1048
1040
  min-width: 30px;
1049
1041
  line-height: 30px;
1050
1042
  font-size: 12px;
1051
- color: #717b90;
1043
+ color: @font-pagination-color;
1052
1044
  }
1053
1045
 
1054
1046
  /deep/.el-pager li:first-child {
@@ -1065,15 +1057,15 @@ export default {
1065
1057
  width: 30px;
1066
1058
  height: 30px;
1067
1059
  min-width: 30px;
1068
- background: #366AFF;
1069
- border: 3px solid #A1B9FF;
1060
+ background: @font-primary-accent-color;
1061
+ border: 3px solid @border-color-copy;
1070
1062
  border-radius: 50%;
1071
1063
  line-height: 24px;
1072
- color: white;
1064
+ color: @background-color-light;
1073
1065
  }
1074
1066
 
1075
1067
  /deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
1076
- background: #366AFF;
1068
+ background: @primary-color;
1077
1069
  }
1078
1070
  }
1079
1071
 
@@ -1083,7 +1075,7 @@ export default {
1083
1075
  position: absolute;
1084
1076
  top: 50px;
1085
1077
  left: 0;
1086
- background: #ffffff;
1078
+ background: @background-color-light;
1087
1079
  display: flex;
1088
1080
  align-items: center;
1089
1081
  padding: 0 10px;