askbot-dragon 1.6.76-beta → 1.6.76

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 (308) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +58 -55
  5. package/public/index.html +75 -72
  6. package/public/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  7. package/public/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  8. package/public/pdfjs/cmaps/78-H.bcmap +0 -0
  9. package/public/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  10. package/public/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  11. package/public/pdfjs/cmaps/78-V.bcmap +0 -0
  12. package/public/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  13. package/public/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  14. package/public/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  15. package/public/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  16. package/public/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  17. package/public/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  18. package/public/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  19. package/public/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  20. package/public/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  21. package/public/pdfjs/cmaps/Add-H.bcmap +0 -0
  22. package/public/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  23. package/public/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  24. package/public/pdfjs/cmaps/Add-V.bcmap +0 -0
  25. package/public/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  26. package/public/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  27. package/public/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  28. package/public/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  29. package/public/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  30. package/public/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  31. package/public/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  32. package/public/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  33. package/public/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  34. package/public/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  35. package/public/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  36. package/public/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  37. package/public/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  38. package/public/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  39. package/public/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  40. package/public/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  41. package/public/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  42. package/public/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  43. package/public/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  44. package/public/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  45. package/public/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  46. package/public/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  47. package/public/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  48. package/public/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  49. package/public/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  50. package/public/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  51. package/public/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  52. package/public/pdfjs/cmaps/B5-H.bcmap +0 -0
  53. package/public/pdfjs/cmaps/B5-V.bcmap +0 -0
  54. package/public/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  55. package/public/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  56. package/public/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  57. package/public/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  58. package/public/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  59. package/public/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  60. package/public/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  61. package/public/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  62. package/public/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  63. package/public/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  64. package/public/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  65. package/public/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  66. package/public/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  67. package/public/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  68. package/public/pdfjs/cmaps/EUC-H.bcmap +0 -0
  69. package/public/pdfjs/cmaps/EUC-V.bcmap +0 -0
  70. package/public/pdfjs/cmaps/Ext-H.bcmap +0 -0
  71. package/public/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  72. package/public/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  73. package/public/pdfjs/cmaps/Ext-V.bcmap +0 -0
  74. package/public/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  75. package/public/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  76. package/public/pdfjs/cmaps/GB-H.bcmap +4 -0
  77. package/public/pdfjs/cmaps/GB-V.bcmap +0 -0
  78. package/public/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  79. package/public/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  80. package/public/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  81. package/public/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  82. package/public/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  83. package/public/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  84. package/public/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  85. package/public/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  86. package/public/pdfjs/cmaps/GBT-H.bcmap +0 -0
  87. package/public/pdfjs/cmaps/GBT-V.bcmap +0 -0
  88. package/public/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  89. package/public/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  90. package/public/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  91. package/public/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  92. package/public/pdfjs/cmaps/H.bcmap +0 -0
  93. package/public/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  94. package/public/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  95. package/public/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  96. package/public/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  97. package/public/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  98. package/public/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  99. package/public/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  100. package/public/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  101. package/public/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  102. package/public/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  103. package/public/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  104. package/public/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  105. package/public/pdfjs/cmaps/Hankaku.bcmap +0 -0
  106. package/public/pdfjs/cmaps/Hiragana.bcmap +0 -0
  107. package/public/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  108. package/public/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  109. package/public/pdfjs/cmaps/KSC-H.bcmap +0 -0
  110. package/public/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  111. package/public/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  112. package/public/pdfjs/cmaps/KSC-V.bcmap +0 -0
  113. package/public/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  114. package/public/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  115. package/public/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  116. package/public/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  117. package/public/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  118. package/public/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  119. package/public/pdfjs/cmaps/Katakana.bcmap +0 -0
  120. package/public/pdfjs/cmaps/LICENSE +36 -0
  121. package/public/pdfjs/cmaps/NWP-H.bcmap +0 -0
  122. package/public/pdfjs/cmaps/NWP-V.bcmap +0 -0
  123. package/public/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  124. package/public/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  125. package/public/pdfjs/cmaps/Roman.bcmap +0 -0
  126. package/public/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  127. package/public/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  128. package/public/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  129. package/public/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  130. package/public/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  131. package/public/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  132. package/public/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  133. package/public/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  134. package/public/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  135. package/public/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  136. package/public/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  137. package/public/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  138. package/public/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  139. package/public/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  140. package/public/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  141. package/public/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  142. package/public/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  143. package/public/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  144. package/public/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  145. package/public/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  146. package/public/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  147. package/public/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  148. package/public/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  149. package/public/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  150. package/public/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  151. package/public/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  152. package/public/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  153. package/public/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  154. package/public/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  155. package/public/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  156. package/public/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  157. package/public/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  158. package/public/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  159. package/public/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  160. package/public/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  161. package/public/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  162. package/public/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  163. package/public/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  164. package/public/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  165. package/public/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  166. package/public/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  167. package/public/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  168. package/public/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  169. package/public/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  170. package/public/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  171. package/public/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  172. package/public/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  173. package/public/pdfjs/cmaps/V.bcmap +0 -0
  174. package/public/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  175. package/public/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  176. package/public/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  177. package/public/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  178. package/public/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  179. package/public/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  180. package/public/pdfjs/standard_fonts/FoxitSans.pfb +0 -0
  181. package/public/pdfjs/standard_fonts/FoxitSansBold.pfb +0 -0
  182. package/public/pdfjs/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
  183. package/public/pdfjs/standard_fonts/FoxitSansItalic.pfb +0 -0
  184. package/public/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  185. package/public/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  186. package/public/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  187. package/public/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  188. package/public/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  189. package/public/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  190. package/public/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
  191. package/public/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  192. package/public/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  193. package/public/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  194. package/public/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  195. package/src/App.vue +31 -31
  196. package/src/api/index.js +1 -1
  197. package/src/api/mock.http +2 -2
  198. package/src/api/requestUrl.js +185 -185
  199. package/src/assets/image/default_avt_ui.png +0 -0
  200. package/src/assets/image/filtType/audio.png +0 -0
  201. package/src/assets/image/filtType/excel1.png +0 -0
  202. package/src/assets/image/filtType/general.png +0 -0
  203. package/src/assets/image/filtType/html.png +0 -0
  204. package/src/assets/image/filtType/image1.png +0 -0
  205. package/src/assets/image/filtType/link.png +0 -0
  206. package/src/assets/image/filtType/md2.png +0 -0
  207. package/src/assets/image/filtType/mode.png +0 -0
  208. package/src/assets/image/filtType/news.png +0 -0
  209. package/src/assets/image/filtType/pdf1.png +0 -0
  210. package/src/assets/image/filtType/ppt1.png +0 -0
  211. package/src/assets/image/filtType/selfadd1.png +0 -0
  212. package/src/assets/image/filtType/txt1.png +0 -0
  213. package/src/assets/image/filtType/video.png +0 -0
  214. package/src/assets/image/filtType/wechat.png +0 -0
  215. package/src/assets/image/filtType/word1.png +0 -0
  216. package/src/assets/image/loading.gif +0 -0
  217. package/src/assets/js/AliyunlssUtil.js +117 -92
  218. package/src/assets/js/Base64Util.js +22 -22
  219. package/src/assets/js/common.js +287 -252
  220. package/src/assets/js/hammer.js +89 -100
  221. package/src/assets/js/script.js +36 -36
  222. package/src/assets/less/common.css +6773 -6773
  223. package/src/assets/less/converSationContainer/common.less +192 -199
  224. package/src/assets/less/converSationContainer/converSatonContainer.less +486 -493
  225. package/src/assets/less/iconfont.css +37 -37
  226. package/src/assets/less/ticketMessage.less +294 -294
  227. package/src/assets/less/variables.less +122 -0
  228. package/src/components/ActionAlertIframe.vue +155 -177
  229. package/src/components/AiGuide.vue +473 -466
  230. package/src/components/AnswerDocknowledge.vue +1207 -1059
  231. package/src/components/AnswerVoice.vue +286 -285
  232. package/src/components/AskIFrame.vue +15 -15
  233. package/src/components/ConversationContainer.vue +10880 -4934
  234. package/src/components/FileType.vue +86 -86
  235. package/src/components/Message.vue +27 -27
  236. package/src/components/MyEditor.vue +343 -351
  237. package/src/components/QwFeedback.vue +304 -0
  238. package/src/components/actionSatisfaction.vue +109 -107
  239. package/src/components/actionSendToBot.vue +64 -62
  240. package/src/components/answerDissatisfaction.vue +64 -62
  241. package/src/components/answerRadio.vue +261 -186
  242. package/src/components/ask-components/DissatisfactionOptions.vue +58 -57
  243. package/src/components/ask-components/Msgloading.vue +38 -37
  244. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  245. package/src/components/askVideo.vue +214 -162
  246. package/src/components/assetDetails.vue +379 -378
  247. package/src/components/assetMessage.vue +231 -228
  248. package/src/components/associationIntention.vue +414 -355
  249. package/src/components/attachmentPreview.vue +92 -90
  250. package/src/components/botActionSatisfactor.vue +70 -68
  251. package/src/components/chatContent.vue +514 -513
  252. package/src/components/feedBack.vue +138 -136
  253. package/src/components/fielListView.vue +352 -351
  254. package/src/components/file/AliyunOssComponents.vue +108 -108
  255. package/src/components/formTemplate.vue +3517 -3572
  256. package/src/components/imgView.vue +32 -0
  257. package/src/components/intelligentSummary.vue +232 -227
  258. package/src/components/interruptComponents/imageSelectionAnswer.vue +203 -0
  259. package/src/components/interruptComponents/multipleChoiceAnswer.vue +134 -0
  260. package/src/components/interruptComponents/singleChoiceAnswer.vue +82 -0
  261. package/src/components/kkview.vue +1130 -1138
  262. package/src/components/loadingProcess.vue +164 -164
  263. package/src/components/markDownText.vue +961 -0
  264. package/src/components/message/ActionAlertIframe.vue +112 -112
  265. package/src/components/message/ShopMessage.vue +164 -164
  266. package/src/components/message/TextMessage.vue +926 -924
  267. package/src/components/message/TicketMessage.vue +201 -201
  268. package/src/components/message/swiper/index.js +4 -4
  269. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  270. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  271. package/src/components/msgLoading.vue +231 -231
  272. package/src/components/myPopup.vue +75 -70
  273. package/src/components/outputComponents/outputCom.vue +149 -0
  274. package/src/components/pagination.vue +130 -0
  275. package/src/components/pdfPosition.vue +1337 -1506
  276. package/src/components/popup.vue +230 -227
  277. package/src/components/preview/docView.vue +263 -0
  278. package/src/components/preview/excelView.vue +260 -0
  279. package/src/components/preview/markDownView.vue +70 -0
  280. package/src/components/preview/newPositionPreview.vue +601 -0
  281. package/src/components/preview/pdfView.vue +973 -0
  282. package/src/components/previewDoc.vue +253 -247
  283. package/src/components/previewPdf.vue +1106 -757
  284. package/src/components/previewWisdom.vue +252 -0
  285. package/src/components/receiverMessagePlatform.vue +71 -65
  286. package/src/components/recommend.vue +82 -80
  287. package/src/components/selector/hOption.vue +20 -20
  288. package/src/components/selector/hSelector.vue +199 -199
  289. package/src/components/selector/hWrapper.vue +216 -216
  290. package/src/components/senderMessagePlatform.vue +60 -50
  291. package/src/components/source/BotMessage.vue +24 -24
  292. package/src/components/source/CustomMessage.vue +24 -24
  293. package/src/components/test.vue +260 -260
  294. package/src/components/tree.vue +310 -295
  295. package/src/components/utils/AliyunIssUtil.js +103 -81
  296. package/src/components/utils/ckeditor.js +185 -174
  297. package/src/components/utils/format_date.js +25 -25
  298. package/src/components/utils/index.js +6 -6
  299. package/src/components/utils/math_utils.js +29 -29
  300. package/src/components/voiceComponent.vue +122 -119
  301. package/src/components/welcomeKnowledgeFile.vue +346 -340
  302. package/src/components/welcomeLlmCard.vue +142 -140
  303. package/src/components/welcomeSuggest.vue +99 -97
  304. package/src/locales/cn.json +100 -0
  305. package/src/locales/en.json +99 -0
  306. package/src/main.js +76 -57
  307. package/vue.config.js +54 -54
  308. package/src/components/newPdfPosition.vue +0 -878
@@ -1,467 +1,474 @@
1
- <template>
2
- <div
3
- id="ai-guide"
4
- class="ai-guide"
5
- :class="{
6
- phoneClass: isPhone,
7
- companyClass: isPC,
8
- }"
9
- >
10
- <div class="ig-view-cli">
11
- <!-- 描述 -->
12
- <div
13
- v-show="aiGuide.content.descriptionVisible && aiGuide.content.description !== ''"
14
- class="ig-types-des"
15
- >
16
- <span v-html="aiGuide.content.description"></span>
17
- </div>
18
- <!-- 一级分类 -->
19
- <div v-show="aiGuide.content.typesVisible && aiGuide.content.options && aiGuide.content.options.length > 0" class="ig-types-f">
20
- <span
21
- v-for="(fType, fTypeIndex) in aiGuide.content.options"
22
- :key="`f_${fTypeIndex}`"
23
- @click="changeFirstType(fTypeIndex)"
24
- :class="[
25
- 'ig-types-f-cell',
26
- activeFirstTypeIndex === fTypeIndex
27
- ? 'ig-types-f-cell-active'
28
- : '',
29
- ]"
30
- >{{ fType.name }}</span
31
- >
32
- </div>
33
- <!-- 二级分类 -->
34
- <div v-if="aiGuide.content.typesVisible && aiGuide.content.options[activeFirstTypeIndex] && aiGuide.content.options[activeFirstTypeIndex].types && aiGuide.content.options[activeFirstTypeIndex].types.length !== 0" class="ig-types-s">
35
- <span
36
- v-for="(sType, sTypeIndex) in aiGuide.content.options[
37
- activeFirstTypeIndex
38
- ].types"
39
- :key="`s_${sTypeIndex}`"
40
- @click="changeLastType(sTypeIndex)"
41
- :class="[
42
- 'ig-types-s-cell',
43
- activeSecondTypeIndex === sTypeIndex
44
- ? 'ig-types-s-cell-active'
45
- : '',
46
- ]"
47
- >{{ sType.name }}</span
48
- >
49
- </div>
50
- <!-- 横向排版 -->
51
- <div
52
- v-show="
53
- activeOtherObj.recommendType == 0 &&
54
- aiGuide.content.typesetting === 'horizontal'
55
- "
56
- class="ig-types-tags"
57
- >
58
- <span
59
- v-for="(
60
- intentCell, intentCellIndex
61
- ) in recommendIntentPageList(activeOtherObj)"
62
- @click="
63
- sendAiGuideInfo(
64
- activeOtherObj.recommendType,
65
- intentCell
66
- )
67
- "
68
- :key="`i_${intentCellIndex}`"
69
- class="ig-types-tags-cell"
70
- >{{ intentCell.questionName }}</span
71
- >
72
- </div>
73
- <!-- 竖向排版 -->
74
- <div
75
- v-show="
76
- activeOtherObj.recommendType == 0 &&
77
- aiGuide.content.typesetting === 'vertical'
78
- "
79
- class="ig-types-list"
80
- >
81
- <span
82
- v-for="(
83
- intentCell, intentCellIndex
84
- ) in recommendIntentPageList(activeOtherObj)"
85
- @click="
86
- sendAiGuideInfo(
87
- activeOtherObj.recommendType,
88
- intentCell
89
- )
90
- "
91
- :key="`i_${intentCellIndex}`"
92
- class="ig-types-list-cell"
93
- >
94
- <span>{{ intentCell.questionName }}</span>
95
- <span><i class="el-icon-arrow-right"></i></span
96
- ></span>
97
- </div>
98
- <!-- 横向排版 -->
99
- <div
100
- v-show="
101
- activeOtherObj.recommendType == 1 &&
102
- aiGuide.content.typesetting === 'horizontal'
103
- "
104
- class="ig-types-tags"
105
- >
106
- <span
107
- v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
108
- :key="`i_${intentCellIndex}`"
109
- @click="
110
- sendAiGuideInfo(
111
- activeOtherObj.recommendType,
112
- intentCell
113
- )
114
- "
115
- class="ig-types-tags-cell"
116
- >{{ intentCell.exampleQuestion }}</span
117
- >
118
- </div>
119
- <!-- 竖向排版 -->
120
- <div
121
- v-show="
122
- activeOtherObj.recommendType == 1 &&
123
- aiGuide.content.typesetting === 'vertical'
124
- "
125
- class="ig-types-list"
126
- >
127
- <span
128
- v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
129
- :key="`i_${intentCellIndex}`"
130
- @click="
131
- sendAiGuideInfo(
132
- activeOtherObj.recommendType,
133
- intentCell
134
- )
135
- "
136
- class="ig-types-list-cell"
137
- >
138
- <span>{{ intentCell.exampleQuestion }}</span>
139
- <span><i class="el-icon-arrow-right"></i></span
140
- ></span>
141
- </div>
142
- <!-- 横向排版 -->
143
- <div
144
- v-show="
145
- activeOtherObj.recommendType == 2 &&
146
- aiGuide.content.typesetting === 'horizontal'
147
- "
148
- class="ig-types-tags"
149
- >
150
- <span
151
- v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
152
- :key="`i_${intentCellIndex}`"
153
- @click="
154
- sendAiGuideInfo(
155
- activeOtherObj.recommendType,
156
- intentCell
157
- )
158
- "
159
- class="ig-types-tags-cell"
160
- >{{ intentCell.exampleQuestion }}</span
161
- >
162
- </div>
163
- <!-- 竖向排版 -->
164
- <div
165
- v-show="
166
- activeOtherObj.recommendType == 2 &&
167
- aiGuide.content.typesetting === 'vertical'
168
- "
169
- class="ig-types-list"
170
- >
171
- <span
172
- v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
173
- :key="`i_${intentCellIndex}`"
174
- @click="
175
- sendAiGuideInfo(
176
- activeOtherObj.recommendType,
177
- intentCell
178
- )
179
- "
180
- class="ig-types-list-cell"
181
- >
182
- <span>{{ intentCell.exampleQuestion }}</span>
183
- <span><i class="el-icon-arrow-right"></i></span
184
- ></span>
185
- </div>
186
- <div
187
- v-if="aiGuide.content.groupVisible && totalPage > 1"
188
- class="ig-change-list"
189
- >
190
- <span @click="changeIntellectGuide" class="ig-change-list-btn">
191
- <i class="el-icon-refresh">换一批</i></span
192
- >
193
- </div>
194
- </div>
195
- </div>
196
- </template>
197
- <script>
198
- export default {
199
- name: "aiGuide",
200
- data() {
201
- return {
202
- isPhone: false,
203
- isPC: false,
204
-
205
- activeFirstTypeIndex: 0,
206
- activeSecondTypeIndex: 0,
207
- activeOtherObj: {
208
- name: "",
209
- recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
210
- recommendIntentList: [], // recommendType = 0
211
- highFrequency: {
212
- // recommendType = 1
213
- rang: [], // 推荐范围
214
- number: 20, // 最多推荐问题数
215
- question: [],
216
- },
217
- intelligenceRecommend: {
218
- // recommendType = 2
219
- recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
220
- rang: [], // 推荐范围
221
- number: 20, // 最多推荐问题数
222
- question: [],
223
- },
224
- },
225
- activePage: 1,
226
- totalPage: 1,
227
- };
228
- },
229
- props: {
230
- aiGuide: Object,
231
- },
232
- beforeMount() {},
233
- mounted() {
234
- this.isMobile();
235
- if (this.aiGuide.content.options[0] && this.aiGuide.content.options[0] && this.aiGuide.content.options[0].types && this.aiGuide.content.options[0].types.length === 0) {
236
- this.activeOtherObj = this.aiGuide.content.options[0];
237
- } else {
238
- this.activeSecondTypeIndex = 0;
239
- this.activeOtherObj = this.aiGuide.content.options[0] && this.aiGuide.content.options[0].types && this.aiGuide.content.options[0].types[0] ? this.aiGuide.content.options[0].types[0] : [];
240
- }
241
- },
242
- methods: {
243
- isMobile() {
244
- let flag = navigator.userAgent.match(
245
- /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
246
- );
247
- if (flag) {
248
- this.isPhone = true;
249
- } else {
250
- this.isPC = true;
251
- }
252
- },
253
- changeIntellectGuide() {
254
- if (this.activePage === this.totalPage) {
255
- this.activePage = 1;
256
- } else {
257
- this.activePage++;
258
- }
259
- },
260
- changeFirstType(fTypeIndex) {
261
- this.activeFirstTypeIndex = fTypeIndex;
262
- if (this.aiGuide.content.options[fTypeIndex].types.length === 0) {
263
- this.activeOtherObj = this.aiGuide.content.options[fTypeIndex];
264
- } else {
265
- this.activeSecondTypeIndex = 0;
266
- this.activeOtherObj =
267
- this.aiGuide.content.options[fTypeIndex].types[0];
268
- }
269
- this.activePage = 1;
270
- },
271
- changeLastType(sTypeIndex) {
272
- this.activeSecondTypeIndex = sTypeIndex;
273
- this.activeOtherObj =
274
- this.aiGuide.content.options[this.activeFirstTypeIndex].types[
275
- sTypeIndex
276
- ];
277
- this.activePage = 1;
278
- },
279
- // 根据当前分组数页数返回展示列表
280
- recommendIntentPageList(obj) {
281
- let list = [];
282
- if (obj.recommendType === 0) {
283
- list = obj.recommendIntentList;
284
- }
285
- if (obj.recommendType === 1) {
286
- list = obj.highFrequency.question;
287
- }
288
- if (obj.recommendType === 2) {
289
- list = obj.intelligenceRecommend.question;
290
- }
291
- let arr = [];
292
- let len = 0;
293
- if (list) {
294
- len = list.length;
295
-
296
- // 每组展示数
297
- let groupNumber = this.aiGuide.content.groupNumber;
298
-
299
- this.totalPage = Math.ceil(len / groupNumber);
300
- if (this.aiGuide.content.groupVisible) {
301
- arr = list.slice(
302
- (this.activePage - 1) * groupNumber,
303
- this.activePage * groupNumber
304
- );
305
- } else {
306
- arr = list;
307
- }
308
- }
309
- return arr;
310
- },
311
- sendAiGuideInfo(recommendType, cell) {
312
- console.log("组件-312-3", recommendType, cell);
313
- this.$emit('sendAiGuide', recommendType, cell);
314
- },
315
- },
316
- };
317
- </script>
318
-
319
- <style scoped lang="less">
320
- .ig-view-cli {
321
- // background: #fbfcfd;
322
- font-size: 0.9em;
323
- border-radius: 5px;
324
- position: relative;
325
- .ig-view-example {
326
- position: absolute;
327
- right: -10px;
328
- top: -10px;
329
- opacity: 0.5;
330
- img {
331
- height: 50px;
332
- }
333
- }
334
- .ig-types-des {
335
- padding: 12px 16px 0px;
336
- text-align: left;
337
- }
338
- .ig-types-f {
339
- display: flex;
340
- justify-content: flex-start;
341
- flex-wrap: wrap;
342
- padding: 4px 8px;
343
- .ig-types-f-cell {
344
- height: 1.8em;
345
- line-height: 1.8em;
346
- padding: 0 12px;
347
- margin-left: 5px;
348
- margin-right: 5px;
349
- margin-top: 4px;
350
- background: #ffffff;
351
- border: 1px solid #e0e6f7;
352
- border-radius: 1em;
353
- color: #a3adc6;
354
- cursor: pointer;
355
- overflow: hidden;
356
- text-overflow: ellipsis;
357
- white-space: nowrap;
358
- &:hover {
359
- border: 1px solid #366aff;
360
- color: #366aff;
361
- }
362
- &-active {
363
- background-color: #366aff;
364
- border: 1px solid #366aff;
365
- color: white;
366
- }
367
- }
368
- .ig-types-f-cell-active {
369
- &:hover {
370
- color: white;
371
- }
372
- }
373
- }
374
- .ig-types-s {
375
- display: flex;
376
- justify-content: flex-start;
377
- flex-wrap: wrap;
378
- margin: 0px 16px 4px;
379
- border-bottom: solid 1px #e0e6f7;
380
- .ig-types-s-cell {
381
- height: 2.2em;
382
- line-height: 2.2em;
383
- margin-right: 18px;
384
- color: #b2c2d8;
385
- cursor: pointer;
386
- margin-bottom: -1px;
387
- overflow: hidden;
388
- text-overflow: ellipsis;
389
- white-space: nowrap;
390
- &:hover {
391
- color: #366aff;
392
- }
393
- &-active {
394
- border-bottom: 2px solid #366aff;
395
- color: #366aff;
396
- }
397
- }
398
- }
399
- .ig-types-tags {
400
- margin: 0 16px;
401
- padding: 0 0 12px;
402
- display: flex;
403
- justify-content: flex-start;
404
- flex-wrap: wrap;
405
- .ig-types-tags-cell {
406
- line-height: 1.4em;
407
- padding: 2px 8px;
408
- margin-right: 6px;
409
- margin-top: 4px;
410
- color: #366aff;
411
- background: #ffffff;
412
- border: 1px solid #a1b9ff;
413
- border-radius: 5px;
414
- cursor: pointer;
415
- }
416
- }
417
- .ig-high-frequency-empty {
418
- margin: 6px 15px;
419
- height: 40px;
420
- line-height: 40px;
421
- background: #fff8f4;
422
- border-radius: 5px;
423
- color: #ff9555;
424
- padding: 0 12px;
425
- text-align: left;
426
- }
427
- .ig-types-list {
428
- margin: 0 16px;
429
- padding: 0 0 8px 0;
430
- display: flex;
431
- flex-direction: column;
432
- justify-content: flex-start;
433
- .ig-types-list-cell {
434
- line-height: 1.1em;
435
- padding: 8px 0;
436
- overflow: hidden;
437
- display: flex;
438
- justify-content: space-between;
439
- color: #366aff;
440
- cursor: pointer;
441
- align-items: center;
442
- text-align: left;
443
- span {
444
- display: flex;
445
- align-items: center;
446
- flex-direction: column;
447
- i {
448
- // margin-top: 12px;
449
- }
450
- }
451
- }
452
- }
453
- .ig-change-list {
454
- padding: 8px 0;
455
- margin-top: 4px;
456
- display: flex;
457
- flex-direction: column;
458
- align-items: center;
459
- border-top: 1px solid #eeeeee;
460
- .ig-change-list-btn {
461
- font-weight: 600;
462
- color: #366aff;
463
- cursor: pointer;
464
- }
465
- }
466
- }
1
+ <template>
2
+ <div
3
+ id="ai-guide"
4
+ class="ai-guide"
5
+ :class="{
6
+ phoneClass: isPhone,
7
+ companyClass: isPC,
8
+ }"
9
+ >
10
+ <div class="ig-view-cli">
11
+ <!-- 描述 -->
12
+ <div
13
+ v-show="aiGuide.content.descriptionVisible && aiGuide.content.description !== ''"
14
+ class="ig-types-des"
15
+ >
16
+ <span v-html="aiGuide.content.description"></span>
17
+ </div>
18
+ <!-- 一级分类 -->
19
+ <div v-show="aiGuide.content.typesVisible" class="ig-types-f">
20
+ <span
21
+ v-for="(fType, fTypeIndex) in aiGuide.content.options"
22
+ :key="`f_${fTypeIndex}`"
23
+ @click="changeFirstType(fTypeIndex)"
24
+ :class="[
25
+ 'ig-types-f-cell',
26
+ activeFirstTypeIndex === fTypeIndex
27
+ ? 'ig-types-f-cell-active'
28
+ : '',
29
+ ]"
30
+ >{{ fType.name }}</span
31
+ >
32
+ </div>
33
+ <!-- 二级分类 -->
34
+ <div v-show="aiGuide.content.typesVisible && aiGuide.content.options[
35
+ activeFirstTypeIndex
36
+ ].types.length !== 0" class="ig-types-s">
37
+ <span
38
+ v-for="(sType, sTypeIndex) in aiGuide.content.options[
39
+ activeFirstTypeIndex
40
+ ].types"
41
+ :key="`s_${sTypeIndex}`"
42
+ @click="changeLastType(sTypeIndex)"
43
+ :class="[
44
+ 'ig-types-s-cell',
45
+ activeSecondTypeIndex === sTypeIndex
46
+ ? 'ig-types-s-cell-active'
47
+ : '',
48
+ ]"
49
+ >{{ sType.name }}</span
50
+ >
51
+ </div>
52
+ <!-- 横向排版 -->
53
+ <div
54
+ v-show="
55
+ activeOtherObj.recommendType == 0 &&
56
+ aiGuide.content.typesetting === 'horizontal'
57
+ "
58
+ class="ig-types-tags"
59
+ >
60
+ <span
61
+ v-for="(
62
+ intentCell, intentCellIndex
63
+ ) in recommendIntentPageList(activeOtherObj)"
64
+ @click="
65
+ sendAiGuideInfo(
66
+ activeOtherObj.recommendType,
67
+ intentCell
68
+ )
69
+ "
70
+ :key="`i_${intentCellIndex}`"
71
+ class="ig-types-tags-cell"
72
+ >{{ intentCell.questionName }}</span
73
+ >
74
+ </div>
75
+ <!-- 竖向排版 -->
76
+ <div
77
+ v-show="
78
+ activeOtherObj.recommendType == 0 &&
79
+ aiGuide.content.typesetting === 'vertical'
80
+ "
81
+ class="ig-types-list"
82
+ >
83
+ <span
84
+ v-for="(
85
+ intentCell, intentCellIndex
86
+ ) in recommendIntentPageList(activeOtherObj)"
87
+ @click="
88
+ sendAiGuideInfo(
89
+ activeOtherObj.recommendType,
90
+ intentCell
91
+ )
92
+ "
93
+ :key="`i_${intentCellIndex}`"
94
+ class="ig-types-list-cell"
95
+ >
96
+ <span>{{ intentCell.questionName }}</span>
97
+ <span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
98
+ ></span>
99
+ </div>
100
+ <!-- 横向排版 -->
101
+ <div
102
+ v-show="
103
+ activeOtherObj.recommendType == 1 &&
104
+ aiGuide.content.typesetting === 'horizontal'
105
+ "
106
+ class="ig-types-tags"
107
+ >
108
+ <span
109
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
110
+ :key="`i_${intentCellIndex}`"
111
+ @click="
112
+ sendAiGuideInfo(
113
+ activeOtherObj.recommendType,
114
+ intentCell
115
+ )
116
+ "
117
+ class="ig-types-tags-cell"
118
+ >{{ intentCell.exampleQuestion }}</span
119
+ >
120
+ </div>
121
+ <!-- 竖向排版 -->
122
+ <div
123
+ v-show="
124
+ activeOtherObj.recommendType == 1 &&
125
+ aiGuide.content.typesetting === 'vertical'
126
+ "
127
+ class="ig-types-list"
128
+ >
129
+ <span
130
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
131
+ :key="`i_${intentCellIndex}`"
132
+ @click="
133
+ sendAiGuideInfo(
134
+ activeOtherObj.recommendType,
135
+ intentCell
136
+ )
137
+ "
138
+ class="ig-types-list-cell"
139
+ >
140
+ <span>{{ intentCell.exampleQuestion }}</span>
141
+ <span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
142
+ ></span>
143
+ </div>
144
+ <!-- 横向排版 -->
145
+ <div
146
+ v-show="
147
+ activeOtherObj.recommendType == 2 &&
148
+ aiGuide.content.typesetting === 'horizontal'
149
+ "
150
+ class="ig-types-tags"
151
+ >
152
+ <span
153
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
154
+ :key="`i_${intentCellIndex}`"
155
+ @click="
156
+ sendAiGuideInfo(
157
+ activeOtherObj.recommendType,
158
+ intentCell
159
+ )
160
+ "
161
+ class="ig-types-tags-cell"
162
+ >{{ intentCell.exampleQuestion }}</span
163
+ >
164
+ </div>
165
+ <!-- 竖向排版 -->
166
+ <div
167
+ v-show="
168
+ activeOtherObj.recommendType == 2 &&
169
+ aiGuide.content.typesetting === 'vertical'
170
+ "
171
+ class="ig-types-list"
172
+ >
173
+ <span
174
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
175
+ :key="`i_${intentCellIndex}`"
176
+ @click="
177
+ sendAiGuideInfo(
178
+ activeOtherObj.recommendType,
179
+ intentCell
180
+ )
181
+ "
182
+ class="ig-types-list-cell"
183
+ >
184
+ <span>{{ intentCell.exampleQuestion }}</span>
185
+ <span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
186
+ ></span>
187
+ </div>
188
+ <div
189
+ v-if="aiGuide.content.groupVisible && totalPage > 1"
190
+ class="ig-change-list"
191
+ >
192
+ <span @click="changeIntellectGuide" class="ig-change-list-btn">
193
+ <svg t="1720148246364" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="136175" width="16" height="16"><path d="M225.6 540.8C240 686.4 363.2 800 512 800c76.8 0 150.4-30.4 203.2-84.8 12.8-12.8 32-12.8 44.8 0s12.8 32 0 44.8c-64 65.6-153.6 104-248 104-184 0-336-142.4-350.4-323.2l-43.2 41.6c-12.8 12.8-33.6 11.2-44.8 0s-11.2-33.6 0-44.8l99.2-96c12.8-12.8 33.6-11.2 44.8 0l92.8 96c12.8 12.8 11.2 33.6-1.6 44.8-12.8 12.8-33.6 11.2-44.8-1.6l-38.4-40zM800 497.6C792 345.6 665.6 224 512 224c-76.8 0-148.8 30.4-203.2 83.2-12.8 12.8-33.6 12.8-44.8 0-12.8-12.8-12.8-33.6 0-44.8 65.6-64 153.6-102.4 248-102.4 192 0 347.2 153.6 352 342.4l41.6-40c12.8-12.8 33.6-11.2 44.8 1.6 12.8 12.8 11.2 33.6-1.6 44.8l-94.4 89.6c-12.8 11.2-32 11.2-44.8 0l-97.6-96c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l43.2 40z" p-id="136176" fill="#366aff"></path></svg>
194
+ {{$t('dragonCommon.refresh')}}</span
195
+ >
196
+ </div>
197
+ </div>
198
+ </div>
199
+ </template>
200
+ <script>
201
+ export default {
202
+ name: "aiGuide",
203
+ data() {
204
+ return {
205
+ isPhone: false,
206
+ isPC: false,
207
+
208
+ activeFirstTypeIndex: 0,
209
+ activeSecondTypeIndex: 0,
210
+ activeOtherObj: {
211
+ name: "",
212
+ recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
213
+ recommendIntentList: [], // recommendType = 0
214
+ highFrequency: {
215
+ // recommendType = 1
216
+ rang: [], // 推荐范围
217
+ number: 20, // 最多推荐问题数
218
+ question: [],
219
+ },
220
+ intelligenceRecommend: {
221
+ // recommendType = 2
222
+ recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐
223
+ rang: [], // 推荐范围
224
+ number: 20, // 最多推荐问题数
225
+ question: [],
226
+ },
227
+ },
228
+ activePage: 1,
229
+ totalPage: 1,
230
+ };
231
+ },
232
+ props: {
233
+ aiGuide: Object,
234
+ },
235
+ beforeMount() {},
236
+ mounted() {
237
+ this.isMobile();
238
+ if (this.aiGuide.content.options[0].types.length === 0) {
239
+ this.activeOtherObj = this.aiGuide.content.options[0];
240
+ } else {
241
+ this.activeSecondTypeIndex = 0;
242
+ this.activeOtherObj = this.aiGuide.content.options[0].types[0];
243
+ }
244
+ },
245
+ methods: {
246
+ isMobile() {
247
+ let flag = navigator.userAgent.match(
248
+ /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
249
+ );
250
+ if (flag) {
251
+ this.isPhone = true;
252
+ } else {
253
+ this.isPC = true;
254
+ }
255
+ },
256
+ changeIntellectGuide() {
257
+ if (this.activePage === this.totalPage) {
258
+ this.activePage = 1;
259
+ } else {
260
+ this.activePage++;
261
+ }
262
+ },
263
+ changeFirstType(fTypeIndex) {
264
+ this.activeFirstTypeIndex = fTypeIndex;
265
+ if (this.aiGuide.content.options[fTypeIndex].types.length === 0) {
266
+ this.activeOtherObj = this.aiGuide.content.options[fTypeIndex];
267
+ } else {
268
+ this.activeSecondTypeIndex = 0;
269
+ this.activeOtherObj =
270
+ this.aiGuide.content.options[fTypeIndex].types[0];
271
+ }
272
+ this.activePage = 1;
273
+ },
274
+ changeLastType(sTypeIndex) {
275
+ this.activeSecondTypeIndex = sTypeIndex;
276
+ this.activeOtherObj =
277
+ this.aiGuide.content.options[this.activeFirstTypeIndex].types[
278
+ sTypeIndex
279
+ ];
280
+ this.activePage = 1;
281
+ },
282
+ // 根据当前分组数页数返回展示列表
283
+ recommendIntentPageList(obj) {
284
+ let list = [];
285
+ if (obj.recommendType === 0) {
286
+ list = obj.recommendIntentList;
287
+ }
288
+ if (obj.recommendType === 1) {
289
+ list = obj.highFrequency.question;
290
+ }
291
+ if (obj.recommendType === 2) {
292
+ list = obj.intelligenceRecommend.question;
293
+ }
294
+ let arr = [];
295
+ let len = 0;
296
+ if (list) {
297
+ len = list.length;
298
+
299
+ // 每组展示数
300
+ let groupNumber = this.aiGuide.content.groupNumber;
301
+
302
+ this.totalPage = Math.ceil(len / groupNumber);
303
+ if (this.aiGuide.content.groupVisible) {
304
+ arr = list.slice(
305
+ (this.activePage - 1) * groupNumber,
306
+ this.activePage * groupNumber
307
+ );
308
+ } else {
309
+ arr = list;
310
+ }
311
+ }
312
+ return arr;
313
+ },
314
+ sendAiGuideInfo(recommendType, cell) {
315
+ console.log("组件-312-3", recommendType, cell);
316
+ this.$emit('sendAiGuide', recommendType, cell);
317
+ },
318
+ },
319
+ };
320
+ </script>
321
+
322
+ <style scoped lang="less">
323
+ @import "../assets/less/variables.less";
324
+
325
+ .ig-view-cli {
326
+ // background: #fbfcfd;
327
+ font-size: 0.9em;
328
+ border-radius: 5px;
329
+ position: relative;
330
+ .ig-view-example {
331
+ position: absolute;
332
+ right: -10px;
333
+ top: -10px;
334
+ opacity: 0.5;
335
+ img {
336
+ height: 50px;
337
+ }
338
+ }
339
+ .ig-types-des {
340
+ padding: 12px 16px 0px;
341
+ text-align: left;
342
+ }
343
+ .ig-types-f {
344
+ display: flex;
345
+ justify-content: flex-start;
346
+ flex-wrap: wrap;
347
+ padding: 4px 8px;
348
+ .ig-types-f-cell {
349
+ height: 1.8em;
350
+ line-height: 1.8em;
351
+ padding: 0 12px;
352
+ margin-left: 5px;
353
+ margin-right: 5px;
354
+ margin-top: 4px;
355
+ background: @background-color-light;
356
+ border: 1px solid @border-color-table;
357
+ border-radius: 1em;
358
+ color: @font-primary-color-r4;
359
+ cursor: pointer;
360
+ overflow: hidden;
361
+ text-overflow: ellipsis;
362
+ white-space: nowrap;
363
+ &:hover {
364
+ border: 1px solid @border-color-primary;
365
+ color: @primary-color;
366
+ }
367
+ &-active {
368
+ background-color: @primary-color;
369
+ border: 1px solid @border-color-primary;
370
+ color: @font-primary-light-color;
371
+ }
372
+ }
373
+ .ig-types-f-cell-active {
374
+ &:hover {
375
+ color: @font-primary-light-color;
376
+ }
377
+ }
378
+ }
379
+ .ig-types-s {
380
+ display: flex;
381
+ justify-content: flex-start;
382
+ flex-wrap: wrap;
383
+ margin: 0px 16px 4px;
384
+ border-bottom: solid 1px #e0e6f7;
385
+ .ig-types-s-cell {
386
+ height: 2.2em;
387
+ line-height: 2.2em;
388
+ margin-right: 18px;
389
+ color: #b2c2d8;
390
+ cursor: pointer;
391
+ margin-bottom: -1px;
392
+ overflow: hidden;
393
+ text-overflow: ellipsis;
394
+ white-space: nowrap;
395
+ &:hover {
396
+ color: @font-primary-accent-color;
397
+ }
398
+ &-active {
399
+ border-bottom: 2px solid @border-color-primary;
400
+ color: @font-primary-accent-color;
401
+ }
402
+ }
403
+ }
404
+ .ig-types-tags {
405
+ margin: 0 16px;
406
+ padding: 0 0 12px;
407
+ display: flex;
408
+ justify-content: flex-start;
409
+ flex-wrap: wrap;
410
+ .ig-types-tags-cell {
411
+ line-height: 1.4em;
412
+ padding: 2px 8px;
413
+ margin-right: 6px;
414
+ margin-top: 4px;
415
+ color: @font-primary-accent-color;
416
+ background: @background-color-light;
417
+ border: 1px solid @border-color-copy;
418
+ border-radius: 5px;
419
+ cursor: pointer;
420
+ }
421
+ }
422
+ .ig-high-frequency-empty {
423
+ margin: 6px 15px;
424
+ height: 40px;
425
+ line-height: 40px;
426
+ background: #fff8f4;
427
+ border-radius: 5px;
428
+ color: #ff9555;
429
+ padding: 0 12px;
430
+ text-align: left;
431
+ }
432
+ .ig-types-list {
433
+ margin: 0 16px;
434
+ padding: 0 0 8px 0;
435
+ display: flex;
436
+ flex-direction: column;
437
+ justify-content: flex-start;
438
+ .ig-types-list-cell {
439
+ line-height: 1.1em;
440
+ padding: 8px 0;
441
+ overflow: hidden;
442
+ display: flex;
443
+ justify-content: space-between;
444
+ color: @font-primary-accent-color;
445
+ cursor: pointer;
446
+ align-items: center;
447
+ text-align: left;
448
+ span {
449
+ display: flex;
450
+ align-items: center;
451
+ flex-direction: column;
452
+ i {
453
+ // margin-top: 12px;
454
+ }
455
+ }
456
+ }
457
+ }
458
+ .ig-change-list {
459
+ padding: 8px 0;
460
+ margin-top: 4px;
461
+ display: flex;
462
+ flex-direction: column;
463
+ align-items: center;
464
+ border-top: 1px solid @border-color-r3;
465
+ .ig-change-list-btn {
466
+ font-weight: 600;
467
+ color: @font-primary-accent-color;
468
+ cursor: pointer;
469
+ display: flex;
470
+ align-items: center;
471
+ }
472
+ }
473
+ }
467
474
  </style>