st-comp 0.0.277 → 0.0.279

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 (319) hide show
  1. package/README.md +19 -19
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +1 -1
  4. package/es/ConfigProvider.cjs +1 -1
  5. package/es/ConfigProvider.js +3 -3
  6. package/es/Contextmenu.cjs +1 -1
  7. package/es/Contextmenu.js +7 -7
  8. package/es/CustomFunction.cjs +2 -2
  9. package/es/CustomFunction.js +514 -308
  10. package/es/FactorWarning.cjs +1 -1
  11. package/es/FactorWarning.js +37 -37
  12. package/es/HeatMap.cjs +1 -1
  13. package/es/HeatMap.js +7 -7
  14. package/es/Kline.cjs +1 -1
  15. package/es/Kline.js +18 -18
  16. package/es/KlineBasic.cjs +1 -1
  17. package/es/KlineBasic.js +93 -93
  18. package/es/KlineConfig.cjs +1 -1
  19. package/es/KlineConfig.js +17 -17
  20. package/es/KlineNew.cjs +1 -1
  21. package/es/KlineNew.js +14 -14
  22. package/es/KlinePlus.cjs +4 -4
  23. package/es/KlinePlus.js +760 -656
  24. package/es/LinearLegend.cjs +1 -1
  25. package/es/LinearLegend.js +1 -1
  26. package/es/Map.cjs +1 -1
  27. package/es/Map.js +1 -1
  28. package/es/MonacoEditor.cjs +1 -1
  29. package/es/MonacoEditor.js +18 -18
  30. package/es/Pagination.cjs +1 -1
  31. package/es/Pagination.js +76 -76
  32. package/es/PasswordPrompt.cjs +1 -1
  33. package/es/PasswordPrompt.js +2 -2
  34. package/es/Pie.cjs +2 -2
  35. package/es/Pie.js +14 -14
  36. package/es/Table.cjs +1 -1
  37. package/es/Table.js +22 -22
  38. package/es/TreeMap.cjs +1 -1
  39. package/es/TreeMap.js +4 -4
  40. package/es/User.cjs +1 -1
  41. package/es/User.js +73 -73
  42. package/es/VarSelectDialog.cjs +2 -2
  43. package/es/VarSelectDialog.js +21 -21
  44. package/es/VarietyAiHelper.cjs +4 -4
  45. package/es/VarietyAiHelper.js +139 -138
  46. package/es/VarietyAutoComplete.cjs +1 -1
  47. package/es/VarietyAutoComplete.js +16 -16
  48. package/es/VarietySearch.cjs +4 -4
  49. package/es/VarietySearch.js +861 -857
  50. package/es/{VarietySelect-6a166293.js → VarietySelect-41daac7b.js} +10 -10
  51. package/es/{VarietySelect-610903f0.cjs → VarietySelect-d58eee29.cjs} +1 -1
  52. package/es/VarietyTextCopy.cjs +2 -2
  53. package/es/VarietyTextCopy.js +25 -25
  54. package/es/VirtualTable.cjs +1 -1
  55. package/es/VirtualTable.js +6 -6
  56. package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
  57. package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
  58. package/es/aiTools-229609fb.cjs +2 -0
  59. package/es/aiTools-ce2f9281.js +115 -0
  60. package/es/aiTools.js +179 -176
  61. package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
  62. package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
  63. package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
  64. package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
  65. package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
  66. package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
  67. package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
  68. package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
  69. package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
  70. package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
  71. package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
  72. package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
  73. package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
  74. package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
  75. package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
  76. package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
  77. package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
  78. package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
  79. package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
  80. package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
  81. package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
  82. package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
  83. package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
  84. package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
  85. package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
  86. package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
  87. package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
  88. package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
  89. package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
  90. package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
  91. package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
  92. package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
  93. package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
  94. package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
  95. package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
  96. package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
  97. package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
  98. package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
  99. package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
  100. package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
  101. package/es/index-00f6ca75.cjs +1 -0
  102. package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
  103. package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
  104. package/es/{index-0986e373.cjs → index-3153c1db.cjs} +1 -1
  105. package/es/{index-936e7dec.js → index-44a382a5.js} +2 -2
  106. package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
  107. package/es/{index-7ed0999e.js → index-53cc4e43.js} +720 -716
  108. package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
  109. package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
  110. package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
  111. package/es/{index-8901a38c.cjs → index-94131fd7.cjs} +30 -30
  112. package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
  113. package/es/{index-f3f6ee27.js → index-a33b2fb8.js} +178 -178
  114. package/es/{index-2d7ac156.cjs → index-a9246d17.cjs} +17 -17
  115. package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
  116. package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
  117. package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
  118. package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
  119. package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
  120. package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
  121. package/es/{python-6cc6ec1b.js → python-8a1664e6.js} +18 -18
  122. package/es/{python-71f59893.cjs → python-a3db9620.cjs} +1 -1
  123. package/es/style.css +1 -1
  124. package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
  125. package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
  126. package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
  127. package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
  128. package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
  129. package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
  130. package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
  131. package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
  132. package/lib/aiTools.js +179 -176
  133. package/lib/bundle.js +1 -1
  134. package/lib/bundle.umd.cjs +230 -230
  135. package/lib/{index-2a269748.js → index-62fa175a.js} +30149 -29800
  136. package/lib/{python-41da18e5.js → python-4a48fa39.js} +1 -1
  137. package/lib/style.css +1 -1
  138. package/package.json +53 -44
  139. package/auto-imports.d.ts +0 -13
  140. package/components.d.ts +0 -59
  141. package/es/aiTools-a3b095f6.js +0 -113
  142. package/es/aiTools-f36136a4.cjs +0 -2
  143. package/es/index-476c4459.cjs +0 -1
  144. package/index.html +0 -13
  145. package/packages/ChartLayout/index.ts +0 -8
  146. package/packages/ChartLayout/index.vue +0 -63
  147. package/packages/ConfigProvider/index.ts +0 -8
  148. package/packages/ConfigProvider/index.vue +0 -66
  149. package/packages/Contextmenu/index.ts +0 -8
  150. package/packages/Contextmenu/index.vue +0 -134
  151. package/packages/CustomFunction/components/ManageDialog.vue +0 -706
  152. package/packages/CustomFunction/index.ts +0 -8
  153. package/packages/CustomFunction/index.vue +0 -200
  154. package/packages/FactorWarning/index.ts +0 -8
  155. package/packages/FactorWarning/index.vue +0 -754
  156. package/packages/FactorWarning/tools.js +0 -10
  157. package/packages/HeatMap/index.ts +0 -8
  158. package/packages/HeatMap/index.vue +0 -141
  159. package/packages/Kline/components/Contextmenu/index.vue +0 -110
  160. package/packages/Kline/components/Tips/index.vue +0 -40
  161. package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
  162. package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
  163. package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
  164. package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
  165. package/packages/Kline/componentsNew/Tips/index.vue +0 -33
  166. package/packages/Kline/formatKlineData.ts +0 -109
  167. package/packages/Kline/images/buy.svg +0 -1
  168. package/packages/Kline/images/pen.png +0 -0
  169. package/packages/Kline/images/sell.svg +0 -1
  170. package/packages/Kline/images/t.svg +0 -1
  171. package/packages/Kline/index.ts +0 -16
  172. package/packages/Kline/index.vue +0 -891
  173. package/packages/Kline/option.ts +0 -539
  174. package/packages/Kline/type.d.ts +0 -219
  175. package/packages/Kline/utils.ts +0 -682
  176. package/packages/KlineBasic/api.js +0 -58
  177. package/packages/KlineBasic/components/AverageTips/index.vue +0 -33
  178. package/packages/KlineBasic/components/Contextmenu/index.vue +0 -105
  179. package/packages/KlineBasic/components/KlineSub/index.vue +0 -332
  180. package/packages/KlineBasic/components/KlineTips/index.vue +0 -99
  181. package/packages/KlineBasic/components/Tips/index.vue +0 -56
  182. package/packages/KlineBasic/index.ts +0 -8
  183. package/packages/KlineBasic/index.vue +0 -839
  184. package/packages/KlineBasic/utils.js +0 -258
  185. package/packages/KlineConfig/config.js +0 -46
  186. package/packages/KlineConfig/index.ts +0 -8
  187. package/packages/KlineConfig/index.vue +0 -356
  188. package/packages/KlineNew/components/KlineSlide/index.vue +0 -156
  189. package/packages/KlineNew/components/KlineSub/index.vue +0 -335
  190. package/packages/KlineNew/components/KlineTips/index.vue +0 -96
  191. package/packages/KlineNew/components/KlineUtils/index.vue +0 -341
  192. package/packages/KlineNew/components/Tips/index.vue +0 -33
  193. package/packages/KlineNew/index.ts +0 -14
  194. package/packages/KlinePlus/components/SliderChart.vue +0 -208
  195. package/packages/KlinePlus/components/Tips.vue +0 -36
  196. package/packages/KlinePlus/images/buy.svg +0 -1
  197. package/packages/KlinePlus/images/sell.svg +0 -1
  198. package/packages/KlinePlus/images/t.svg +0 -1
  199. package/packages/KlinePlus/index.ts +0 -8
  200. package/packages/KlinePlus/index.vue +0 -1067
  201. package/packages/KlinePlus/utils.js +0 -771
  202. package/packages/LinearLegend/index.ts +0 -8
  203. package/packages/LinearLegend/index.vue +0 -112
  204. package/packages/Map/China.json +0 -1
  205. package/packages/Map/index.ts +0 -8
  206. package/packages/Map/index.vue +0 -147
  207. package/packages/MonacoEditor/index.ts +0 -8
  208. package/packages/MonacoEditor/index.vue +0 -1141
  209. package/packages/MonacoEditor/tools.js +0 -18
  210. package/packages/Pagination/index.ts +0 -8
  211. package/packages/Pagination/index.vue +0 -87
  212. package/packages/PasswordPrompt/index.ts +0 -8
  213. package/packages/PasswordPrompt/index.vue +0 -267
  214. package/packages/Pie/index.ts +0 -8
  215. package/packages/Pie/index.vue +0 -148
  216. package/packages/Table/components/Button/index.vue +0 -61
  217. package/packages/Table/components/Formatter/index.vue +0 -26
  218. package/packages/Table/index.d.ts +0 -0
  219. package/packages/Table/index.ts +0 -8
  220. package/packages/Table/index.vue +0 -133
  221. package/packages/TreeMap/index.ts +0 -8
  222. package/packages/TreeMap/index.vue +0 -186
  223. package/packages/User/components/EditInfoDialog/Mobile.vue +0 -214
  224. package/packages/User/components/EditInfoDialog/index.vue +0 -161
  225. package/packages/User/components/EditPasswordDialog.vue +0 -168
  226. package/packages/User/components/SetPasswordDialog.vue +0 -160
  227. package/packages/User/index.ts +0 -8
  228. package/packages/User/index.vue +0 -117
  229. package/packages/VarSelectDialog/Mock.js +0 -495
  230. package/packages/VarSelectDialog/VarietySelect.vue +0 -78
  231. package/packages/VarSelectDialog/index.ts +0 -8
  232. package/packages/VarSelectDialog/index.vue +0 -323
  233. package/packages/VarietyAiHelper/images/like.png +0 -0
  234. package/packages/VarietyAiHelper/images/like_no.png +0 -0
  235. package/packages/VarietyAiHelper/index.ts +0 -8
  236. package/packages/VarietyAiHelper/index.vue +0 -910
  237. package/packages/VarietyAutoComplete/index.ts +0 -8
  238. package/packages/VarietyAutoComplete/index.vue +0 -89
  239. package/packages/VarietySearch/components/AddTag/index.vue +0 -268
  240. package/packages/VarietySearch/components/CommonIndicator/IndicatorTags.vue +0 -52
  241. package/packages/VarietySearch/components/CommonIndicator/index.vue +0 -697
  242. package/packages/VarietySearch/components/CommonIndicator/tools.js +0 -260
  243. package/packages/VarietySearch/components/CompositeOrder/index.vue +0 -260
  244. package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +0 -70
  245. package/packages/VarietySearch/components/FactorScreen/index.vue +0 -1158
  246. package/packages/VarietySearch/components/FactorScreen/tools.js +0 -34
  247. package/packages/VarietySearch/config.js +0 -539
  248. package/packages/VarietySearch/index.ts +0 -8
  249. package/packages/VarietySearch/index.vue +0 -688
  250. package/packages/VarietyTextCopy/index.ts +0 -8
  251. package/packages/VarietyTextCopy/index.vue +0 -136
  252. package/packages/VirtualTable/index.ts +0 -8
  253. package/packages/VirtualTable/index.vue +0 -241
  254. package/packages/index.ts +0 -59
  255. package/public/aiTools.js +0 -176
  256. package/public/talib.wasm +0 -0
  257. package/public/vite.svg +0 -1
  258. package/src/App.vue +0 -140
  259. package/src/assets/vue.svg +0 -1
  260. package/src/components/Dialog/index.vue +0 -16
  261. package/src/components/Kline/index.vue +0 -21
  262. package/src/components/Table/index.vue +0 -27
  263. package/src/main.ts +0 -17
  264. package/src/pages/ChartLayout/index.vue +0 -22
  265. package/src/pages/ConfigProvider/index.vue +0 -9
  266. package/src/pages/Contextmenu/index.vue +0 -46
  267. package/src/pages/CustomFunction/index.vue +0 -13
  268. package/src/pages/FactorWarning/index.vue +0 -203
  269. package/src/pages/HeatMap/index.vue +0 -128
  270. package/src/pages/Kline/index.vue +0 -12
  271. package/src/pages/KlineBasic/api.js +0 -48
  272. package/src/pages/KlineBasic/index.vue +0 -366
  273. package/src/pages/KlineBasic/indicator.js +0 -114
  274. package/src/pages/KlineConfig/index.vue +0 -20
  275. package/src/pages/KlineNew/components/KlineAction/components/ContextMenu/index.vue +0 -91
  276. package/src/pages/KlineNew/components/KlineAction/components/YearChart/index.vue +0 -532
  277. package/src/pages/KlineNew/components/KlineAction/images/pen.png +0 -0
  278. package/src/pages/KlineNew/components/KlineAction/index.vue +0 -716
  279. package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +0 -13
  280. package/src/pages/KlineNew/components/KlineAction/utils.js +0 -571
  281. package/src/pages/KlineNew/components/KlineBasic/index.vue +0 -336
  282. package/src/pages/KlineNew/components/KlineBasic/utils.js +0 -46
  283. package/src/pages/KlineNew/components/KlineNew/index.vue +0 -316
  284. package/src/pages/KlineNew/components/KlineNew/utils.js +0 -31
  285. package/src/pages/KlineNew/components/KlineSlide/index.vue +0 -448
  286. package/src/pages/KlineNew/components/KlineSlide/utils.js +0 -78
  287. package/src/pages/KlineNew/components/KlineSlideNew/index.vue +0 -430
  288. package/src/pages/KlineNew/components/KlineSlideNew/utils.js +0 -78
  289. package/src/pages/KlineNew/index.vue +0 -92
  290. package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +0 -312
  291. package/src/pages/KlinePlus/KlineDialog/api.js +0 -108
  292. package/src/pages/KlinePlus/KlineDialog/index.vue +0 -582
  293. package/src/pages/KlinePlus/KlineDialog/indicator.js +0 -109
  294. package/src/pages/KlinePlus/KlineDialog/tools.js +0 -86
  295. package/src/pages/KlinePlus/index.vue +0 -30
  296. package/src/pages/KlinePlus/tradeLogMock.js +0 -1927
  297. package/src/pages/LinearLegend/index.vue +0 -92
  298. package/src/pages/Map/index.vue +0 -62
  299. package/src/pages/MonacoEditor/index.vue +0 -63
  300. package/src/pages/Pagination/index.vue +0 -24
  301. package/src/pages/PasswordPrompt/index.vue +0 -12
  302. package/src/pages/Pie/index.vue +0 -36
  303. package/src/pages/Table/index.vue +0 -117
  304. package/src/pages/TreeMap/index.vue +0 -542
  305. package/src/pages/User/index.vue +0 -24
  306. package/src/pages/VarSelectDialog/index.vue +0 -16
  307. package/src/pages/VarietyAiHelper/index.vue +0 -20
  308. package/src/pages/VarietyAutoComplete/index.vue +0 -19
  309. package/src/pages/VarietySearch/api.js +0 -70
  310. package/src/pages/VarietySearch/index.vue +0 -467
  311. package/src/pages/VarietyTextCopy/index.vue +0 -24
  312. package/src/pages/VirtualTable/demo.json +0 -6377
  313. package/src/pages/VirtualTable/index.vue +0 -79
  314. package/src/router/index.ts +0 -9
  315. package/src/router/routes.ts +0 -132
  316. package/src/style.css +0 -79
  317. package/src/vite-env.d.ts +0 -9
  318. package/tsconfig.json +0 -30
  319. package/tsconfig.node.json +0 -10
@@ -1,910 +0,0 @@
1
- <script setup>
2
- import dayjs from "dayjs";
3
- import { ElMessage } from "element-plus";
4
- import { getUserData, getToken } from "st-func";
5
- import { inject, ref, nextTick, watch, reactive, computed } from "vue";
6
- import { sendToNodeVarietyAiHelper } from "../../public/aiTools";
7
- import { UserFilled, Service, Promotion, Refresh, SuccessFilled } from "@element-plus/icons-vue";
8
-
9
- const stConfig = inject("stConfig");
10
- const userData = reactive(getUserData());
11
- const visible = ref(false);
12
- const emit = defineEmits(["callBack"]);
13
- const props = defineProps({
14
- defaultMessage: {
15
- type: String,
16
- default:
17
- "你好呀!我是你的品种池AI助手,会根据您的自然语言去进行品种的条件查询\n\n示例: \n帮我查A股科创板下品种转价差上证50并且总市值大于1千万, 最近一次红箱的开盘价大于前5根K线的最高价, 并按照总市值升序进行排序",
18
- },
19
- });
20
-
21
- const isSending = ref(false);
22
- const isThinking = ref(false);
23
- const showFinalResult = ref(false);
24
- const messageListRef = ref(null);
25
- const messageList = ref([
26
- {
27
- role: "defaultMessage", // defaultMessage-组件内置, assistant-智能体, user-用户
28
- content: props.defaultMessage,
29
- fullQuery: "",
30
- historyList: [],
31
- userContent: null,
32
- showFeedback: false,
33
- createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
34
- resTime: 0,
35
- firstPackageTime: 0,
36
- },
37
- ]);
38
- const sessionId = ref(null);
39
- const userInput = ref("");
40
-
41
- // 反馈相关
42
- const feedbackDialogVisible = ref(false);
43
- const feedbackContent = ref("");
44
- const feedbackMessageIndex = ref({});
45
-
46
- // 节点相关
47
- const nodeProgressList = ref([]);
48
- const totalCount = computed(() => nodeProgressList.value.length);
49
- const completedCount = computed(() => nodeProgressList.value.filter((n) => n.status === "success").length);
50
- const progressPercent = computed(() => (totalCount.value ? (completedCount.value / totalCount.value) * 100 : 0));
51
- const currentStepName = computed(() => {
52
- const running = nodeProgressList.value.find((n) => n.status === "executing");
53
- return running ? running.name : "处理中";
54
- });
55
-
56
- // 发送消息
57
- const sendMessage = async () => {
58
- const content = userInput.value.trim();
59
- if (!content) return ElMessage.warning("请输入消息内容");
60
- if (isSending.value) return;
61
-
62
- nodeProgressList.value = [];
63
- showFinalResult.value = false;
64
-
65
- messageList.value.push({
66
- role: "user",
67
- content: content,
68
- createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
69
- });
70
- userInput.value = "";
71
- await scrollToBottom();
72
-
73
- messageList.value.push({
74
- role: "assistant",
75
- content: "",
76
- fullQuery: "",
77
- historyList: [],
78
- userContent: content,
79
- showFeedback: false,
80
- createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
81
- resTime: 0,
82
- firstPackageTime: 0,
83
- });
84
- await scrollToBottom();
85
-
86
- isSending.value = true;
87
- isThinking.value = true;
88
-
89
- let fullResponse = "";
90
- let resTime = new Date().getTime();
91
- let firstNodeReceived = false;
92
-
93
- try {
94
- await sendToNodeVarietyAiHelper({
95
- baseUrl: stConfig.env.VITE_BASE_URL,
96
- token: getToken(),
97
- value: content,
98
- sessionId: sessionId.value,
99
- callback: (type, data) => {
100
- if (type === "session") {
101
- sessionId.value = data;
102
- }
103
- if (type === "historyList") {
104
- const lastMessage = messageList.value[messageList.value.length - 1];
105
- lastMessage.historyList = data;
106
- }
107
- if (type === "fullQuery") {
108
- const lastMessage = messageList.value[messageList.value.length - 1];
109
- lastMessage.fullQuery = data;
110
- }
111
- if (type === "node") {
112
- if (!firstNodeReceived) {
113
- firstNodeReceived = true;
114
- isThinking.value = false;
115
- const lastMessage = messageList.value[messageList.value.length - 1];
116
- if (lastMessage && lastMessage.role === "assistant" && lastMessage.firstPackageTime === 0) {
117
- lastMessage.firstPackageTime = new Date().getTime() - resTime;
118
- }
119
- }
120
-
121
- const existing = nodeProgressList.value.find((n) => n.name === data.name);
122
- if (existing) {
123
- existing.status = data.status;
124
- } else {
125
- nodeProgressList.value.push({ name: data.name, status: data.status });
126
- }
127
- scrollToBottom();
128
- return;
129
- }
130
- if (type === "message") {
131
- fullResponse = data;
132
- const lastMessage = messageList.value[messageList.value.length - 1];
133
- if (lastMessage && lastMessage.role === "assistant") {
134
- lastMessage.content = fullResponse;
135
- scrollToBottom();
136
- }
137
- }
138
- if (type === "finish") {
139
- isSending.value = false;
140
- showFinalResult.value = true;
141
- const lastMessage = messageList.value[messageList.value.length - 1];
142
-
143
- if (lastMessage && lastMessage.role === "assistant") {
144
- lastMessage.showFeedback = true;
145
- lastMessage.resTime = new Date().getTime() - resTime;
146
- handleFeedbackAction("default", messageList.value.length - 1);
147
- }
148
- }
149
- if (type === "error") {
150
- isThinking.value = false;
151
- isSending.value = false;
152
- messageList.value.pop();
153
- messageList.value.push({
154
- role: "assistant",
155
- userContent: content,
156
- content: `❌ ${data}`,
157
- showFeedback: false,
158
- createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
159
- resTime: new Date().getTime() - resTime,
160
- firstPackageTime: 0,
161
- });
162
- handleFeedbackAction("default", messageList.value.length - 1);
163
- scrollToBottom();
164
- return;
165
- }
166
- },
167
- });
168
- } catch (error) {
169
- ElMessage.error(`AI响应异常: ${error}`);
170
- messageList.value.pop();
171
- messageList.value.push({
172
- role: "assistant",
173
- userContent: content,
174
- content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
175
- showFeedback: true,
176
- createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
177
- resTime: new Date().getTime() - resTime,
178
- firstPackageTime: 0,
179
- });
180
- handleFeedbackAction("default", messageList.value.length - 1);
181
- await scrollToBottom();
182
- isSending.value = false;
183
- isThinking.value = false;
184
- }
185
- };
186
- // 确认查询
187
- const lookResult = (content) => {
188
- const { parsedConditions, ...webParams } = JSON.parse(content);
189
- console.log({ parsedConditions, webParams });
190
- emit("callBack", webParams);
191
- };
192
- // 用户反馈
193
- const handleFeedbackAction = async (action, messageIndex) => {
194
- switch (action) {
195
- // 满意
196
- case "satisfied": {
197
- const message = messageList.value[messageIndex];
198
- await stConfig.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
199
- userName: userData.username,
200
- userContent: message.userContent,
201
- sessionId: sessionId.value,
202
- fullQuery: message.fullQuery,
203
- historyList: JSON.stringify(message.historyList ?? []),
204
- aiContent: message.content,
205
- type: 1,
206
- createTime: message.createTime,
207
- resTime: message.resTime,
208
- firstPackageTime: message.firstPackageTime,
209
- isSolved: 1,
210
- logOrigin: 1,
211
- });
212
- ElMessage.success("感谢您的评价!");
213
- messageList.value[messageIndex].showFeedback = false;
214
- break;
215
- }
216
- // 不满意-打开窗口
217
- case "open": {
218
- feedbackMessageIndex.value = messageIndex;
219
- feedbackDialogVisible.value = true;
220
- break;
221
- }
222
- // 不满意-确认提交
223
- case "unsatisfied": {
224
- const message = messageList.value[messageIndex];
225
- await stConfig.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
226
- userName: userData.username,
227
- userContent: message.userContent,
228
- sessionId: sessionId.value,
229
- fullQuery: message.fullQuery,
230
- historyList: JSON.stringify(message.historyList ?? []),
231
- userSuggestion: feedbackContent.value,
232
- aiContent: message.content,
233
- type: 2,
234
- resTime: message.resTime,
235
- createTime: message.createTime,
236
- firstPackageTime: message.firstPackageTime,
237
- isSolved: 0,
238
- logOrigin: 1,
239
- });
240
- ElMessage.success("感谢您的反馈!我们将持续跟踪并进行优化");
241
- feedbackDialogVisible.value = false;
242
- messageList.value[messageIndex].showFeedback = false;
243
- break;
244
- }
245
- // 默认记录
246
- case "default": {
247
- const message = messageList.value[messageIndex];
248
- console.log({
249
- userName: userData.username,
250
- userContent: message.userContent,
251
- sessionId: sessionId.value,
252
- fullQuery: message.fullQuery,
253
- historyList: JSON.stringify(message.historyList ?? []),
254
- aiContent: message.content,
255
- type: null,
256
- resTime: message.resTime,
257
- createTime: message.createTime,
258
- firstPackageTime: message.firstPackageTime,
259
- isSolved: 1,
260
- logOrigin: 1,
261
- });
262
- await stConfig.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
263
- userName: userData.username,
264
- userContent: message.userContent,
265
- sessionId: sessionId.value,
266
- fullQuery: message.fullQuery,
267
- historyList: JSON.stringify(message.historyList ?? []),
268
- aiContent: message.content,
269
- type: null,
270
- resTime: message.resTime,
271
- createTime: message.createTime,
272
- firstPackageTime: message.firstPackageTime,
273
- isSolved: 1,
274
- logOrigin: 1,
275
- });
276
- }
277
- }
278
- };
279
- // 键盘事件
280
- const handleKeydown = (event) => {
281
- if (event.key === "Enter") {
282
- if (event.ctrlKey) {
283
- event.preventDefault();
284
- const textarea = event.target;
285
- const start = textarea.selectionStart;
286
- const end = textarea.selectionEnd;
287
- userInput.value = userInput.value.substring(0, start) + "\n" + userInput.value.substring(end);
288
- nextTick(() => {
289
- textarea.selectionStart = textarea.selectionEnd = start + 1;
290
- });
291
- } else {
292
- event.preventDefault();
293
- sendMessage();
294
- }
295
- }
296
- };
297
- // 滚动到底部
298
- const scrollToBottom = async () => {
299
- await nextTick();
300
- if (messageListRef.value) {
301
- messageListRef.value.scrollTop = messageListRef.value.scrollHeight;
302
- }
303
- };
304
- // 校验是否支持JSON解析
305
- const isJSONSerializable = (str) => {
306
- if (typeof str !== "string") return false;
307
- try {
308
- const parsed = JSON.parse(str);
309
- return parsed !== null && typeof parsed === "object";
310
- } catch {
311
- return false;
312
- }
313
- };
314
- // 动态生成渲染DOM
315
- const renderJSONContent = (content) => {
316
- const { parsedConditions } = JSON.parse(content);
317
- // 创建DOM
318
- let html = "";
319
- if (parsedConditions?.length) {
320
- html += '<div class="parsed-conditions">';
321
- parsedConditions.forEach((text) => {
322
- html += `<div class="parsed-conditions-item">${text}</div>`;
323
- });
324
- html += "</div>";
325
- }
326
- return html;
327
- };
328
-
329
- watch(
330
- () => messageList.value,
331
- () => {
332
- scrollToBottom();
333
- },
334
- { deep: true },
335
- );
336
- watch(
337
- () => feedbackDialogVisible.value,
338
- (newValue) => {
339
- if (!newValue) feedbackContent.value = "";
340
- },
341
- );
342
-
343
- defineExpose({
344
- open: () => {
345
- visible.value = true;
346
- nextTick(() => {
347
- scrollToBottom();
348
- });
349
- },
350
- });
351
- </script>
352
-
353
- <template>
354
- <el-dialog
355
- class="ai-dialog"
356
- v-model="visible"
357
- title="✨ 品种池参数解析AI助手"
358
- width="500px"
359
- center
360
- draggable
361
- overflow
362
- :modal="false"
363
- :modal-penetrable="true"
364
- >
365
- <div class="ai-dialog-body">
366
- <!-- 对话展示 -->
367
- <div
368
- ref="messageListRef"
369
- class="message-list"
370
- >
371
- <div
372
- v-for="(message, index) in messageList"
373
- :key="index"
374
- :class="message.role"
375
- class="message-item"
376
- >
377
- <template v-if="message.content || (index === messageList.length - 1 && message.role === 'assistant' && nodeProgressList.length > 0)">
378
- <!-- 头像 -->
379
- <div class="avatar">
380
- <el-avatar
381
- :size="32"
382
- :icon="message.role === 'user' ? UserFilled : Service"
383
- />
384
- </div>
385
- <!-- 响应 -->
386
- <div class="message-content">
387
- <div
388
- v-if="message.fullQuery"
389
- style="font-weight: bold; margin-bottom: 10px"
390
- >
391
- 筛选结果: {{ message.fullQuery }}
392
- </div>
393
- <!-- 节点展示 -->
394
- <div
395
- v-if="index === messageList.length - 1 && message.role === 'assistant' && nodeProgressList.length > 0 && !showFinalResult"
396
- class="node-progress"
397
- >
398
- <div
399
- v-for="node in nodeProgressList"
400
- :key="node.name"
401
- class="node-progress-item"
402
- >
403
- <span class="node-status-icon">
404
- <el-icon
405
- v-if="node.status === 'success'"
406
- class="node-icon done"
407
- ><SuccessFilled
408
- /></el-icon>
409
- <el-icon
410
- v-else
411
- class="node-icon running"
412
- ><Refresh
413
- /></el-icon>
414
- </span>
415
- <span class="node-name">{{ node.name }}</span>
416
- </div>
417
-
418
- <div class="progress-footer">
419
- <el-progress
420
- :percentage="progressPercent"
421
- :show-text="false"
422
- :stroke-width="4"
423
- color="#667eea"
424
- />
425
- <span class="progress-text">第 {{ completedCount }}/{{ totalCount }} 步 · {{ currentStepName }}</span>
426
- </div>
427
- </div>
428
- <!-- 成功结果展示 -->
429
- <div
430
- v-if="isJSONSerializable(message.content)"
431
- class="message-content-json"
432
- :class="{ 'result-animation': index === messageList.length - 1 && showFinalResult }"
433
- v-html="renderJSONContent(message.content)"
434
- />
435
- <!-- 失败结果展示 -->
436
- <div
437
- v-else-if="message.content"
438
- class="message-content-text"
439
- :class="{ 'result-animation': index === messageList.length - 1 && showFinalResult }"
440
- >
441
- {{ message.content }}
442
- </div>
443
-
444
- <!-- 消息底部按钮 -->
445
- <div
446
- v-if="message.role === 'assistant'"
447
- class="message-content-footer"
448
- >
449
- <!-- 反馈按钮 -->
450
- <div
451
- v-if="message.showFeedback"
452
- class="feedback-box"
453
- >
454
- <el-tooltip
455
- content="满意"
456
- placement="bottom"
457
- >
458
- <img
459
- src="./images/like.png"
460
- alt="满意"
461
- @click="handleFeedbackAction('satisfied', index)"
462
- />
463
- </el-tooltip>
464
- <el-tooltip
465
- content="满意"
466
- placement="bottom"
467
- >
468
- <img
469
- src="./images/like_no.png"
470
- alt="不满意"
471
- @click="handleFeedbackAction('open', index)"
472
- />
473
- </el-tooltip>
474
- </div>
475
- <!-- 确认查询 -->
476
- <el-button
477
- v-if="isJSONSerializable(message.content)"
478
- class="confirm-btn"
479
- @click="lookResult(message.content)"
480
- >
481
- 确认查询
482
- </el-button>
483
- </div>
484
- </div>
485
- </template>
486
- </div>
487
- </div>
488
- <!-- 用户输入 -->
489
- <div class="input-area">
490
- <el-input
491
- class="message-input"
492
- v-model="userInput"
493
- type="textarea"
494
- :rows="4"
495
- :autosize="{ minRows: 2, maxRows: 4 }"
496
- placeholder="输入您想查询的品种条件..."
497
- @keydown="handleKeydown"
498
- />
499
- <div class="input-actions">
500
- <div class="input-hint">
501
- <span>Enter 发送 | Ctrl + Enter 换行</span>
502
- </div>
503
- <el-button
504
- class="send-btn"
505
- type="primary"
506
- :icon="Promotion"
507
- :loading="isSending"
508
- @click="sendMessage"
509
- round
510
- >
511
- 发送
512
- </el-button>
513
- </div>
514
- </div>
515
- </div>
516
- </el-dialog>
517
-
518
- <!-- 窗口: 反馈意见 -->
519
- <el-dialog
520
- v-model="feedbackDialogVisible"
521
- title="📝 反馈意见"
522
- width="400px"
523
- >
524
- <div class="feedback-dialog-content">
525
- <div class="feedback-emoji">😟</div>
526
- <p class="feedback-tip">很抱歉没能帮到您,请告诉我们哪里需要改进:</p>
527
- <el-input
528
- v-model="feedbackContent"
529
- type="textarea"
530
- :rows="4"
531
- placeholder="[非必填]例如:回答不够准确、查询结果有误、界面体验不佳..."
532
- />
533
- </div>
534
- <template #footer>
535
- <span class="dialog-footer">
536
- <el-button @click="feedbackDialogVisible = false">取消</el-button>
537
- <el-button
538
- type="primary"
539
- @click="handleFeedbackAction('unsatisfied', feedbackMessageIndex)"
540
- >提交反馈</el-button
541
- >
542
- </span>
543
- </template>
544
- </el-dialog>
545
- </template>
546
-
547
- <style lang="scss" scoped>
548
- .ai-dialog {
549
- .ai-dialog-body {
550
- display: flex;
551
- flex-direction: column;
552
- height: 480px;
553
- background: transparent;
554
- // 对话展示
555
- .message-list {
556
- flex: 1;
557
- overflow-y: auto;
558
- padding: 20px 24px;
559
- &::-webkit-scrollbar {
560
- width: 6px;
561
- }
562
- &::-webkit-scrollbar-track {
563
- background: rgba(0, 0, 0, 0.05);
564
- border-radius: 3px;
565
- }
566
- &::-webkit-scrollbar-thumb {
567
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
568
- border-radius: 3px;
569
- &:hover {
570
- background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
571
- }
572
- }
573
- .message-item {
574
- display: flex;
575
- margin-bottom: 20px;
576
- .avatar {
577
- flex-shrink: 0;
578
- :deep(.el-avatar) {
579
- background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
580
- color: #667eea;
581
- svg {
582
- width: 18px;
583
- height: 18px;
584
- }
585
- }
586
- }
587
- .message-content {
588
- width: calc(100% - 88px);
589
- display: flex;
590
- flex-direction: column;
591
- }
592
- }
593
- // 智能体
594
- .defaultMessage,
595
- .assistant {
596
- .avatar {
597
- margin-right: 12px;
598
- }
599
- .message-content {
600
- align-items: flex-start;
601
- .node-progress {
602
- background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
603
- border: 1px solid rgba(102, 126, 234, 0.15);
604
- border-radius: 16px;
605
- padding: 12px 16px;
606
- margin-bottom: 8px;
607
- min-width: 200px;
608
- animation: breathe 2s ease-in-out infinite;
609
-
610
- .node-progress-item {
611
- display: flex;
612
- align-items: center;
613
- gap: 10px;
614
- padding: 6px 0;
615
- position: relative;
616
- animation: slideIn 0.3s ease-out;
617
-
618
- &:not(:last-child)::after {
619
- content: "";
620
- position: absolute;
621
- left: 9px;
622
- top: 28px;
623
- width: 2px;
624
- height: calc(100% - 8px);
625
- background: linear-gradient(to bottom, #c7d2fe, transparent);
626
- }
627
-
628
- .node-status-icon {
629
- position: relative;
630
- z-index: 1;
631
- border-radius: 50%;
632
- width: 20px;
633
- height: 20px;
634
- display: inline-flex;
635
- align-items: center;
636
- justify-content: center;
637
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
638
- }
639
-
640
- .node-icon {
641
- font-size: 12px;
642
- &.done {
643
- color: #22c55e;
644
- }
645
- &.running {
646
- color: #667eea;
647
- animation: spin 0.6s linear infinite;
648
- }
649
- &.waiting {
650
- color: #d1d5db;
651
- animation: spin 0.8s linear infinite;
652
- }
653
- }
654
-
655
- .node-name {
656
- font-size: 13px;
657
- color: #6b7280;
658
- line-height: 20px;
659
- }
660
-
661
- &:has(.running) .node-name {
662
- font-weight: 500;
663
- color: #667eea;
664
- }
665
- }
666
-
667
- .progress-footer {
668
- margin-top: 12px;
669
- padding-top: 8px;
670
- border-top: 1px solid rgba(102, 126, 234, 0.1);
671
-
672
- :deep(.el-progress) {
673
- margin-bottom: 6px;
674
- }
675
-
676
- .progress-text {
677
- font-size: 11px;
678
- color: #9ca3af;
679
- display: block;
680
- text-align: center;
681
- }
682
- }
683
- }
684
- .message-content-json {
685
- width: 100%;
686
- overflow: hidden;
687
- :deep(.parsed-conditions) {
688
- margin: 0;
689
- padding: 0;
690
- .parsed-conditions-item {
691
- text-align: center;
692
- color: #f56c6c;
693
- margin-bottom: 8px;
694
- padding: 8px 12px;
695
- background: linear-gradient(135deg, #ffebeb 0%, #ffe0e0 100%);
696
- border-radius: 12px;
697
- font-weight: 500;
698
- transition: all 0.2s ease;
699
- &:last-child {
700
- margin-bottom: 0;
701
- }
702
- }
703
- }
704
- }
705
- .message-content-footer {
706
- width: 100%;
707
- display: flex;
708
- align-items: center;
709
- justify-content: space-between;
710
- .feedback-box {
711
- display: flex;
712
- align-items: center;
713
- margin-top: 10px;
714
- img {
715
- cursor: pointer;
716
- width: 26px;
717
- height: 26px;
718
- margin-right: 10px;
719
- &:hover {
720
- transition: 0.2s;
721
- transform: scale(1.1);
722
- }
723
- }
724
- }
725
- .confirm-btn {
726
- margin-left: auto;
727
- margin-top: 8px;
728
- padding: 6px 20px;
729
- font-size: 13px;
730
- border-radius: 20px;
731
- background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
732
- color: #667eea;
733
- border: 1px solid rgba(102, 126, 234, 0.15);
734
- cursor: pointer;
735
- transition: all 0.2s ease;
736
- font-weight: 500;
737
-
738
- &:hover {
739
- background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
740
- border-color: rgba(102, 126, 234, 0.3);
741
- transform: translateY(-1px);
742
- box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
743
- }
744
- }
745
- }
746
- .result-animation {
747
- animation: resultAppear 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
748
- }
749
- }
750
- }
751
- // 用户
752
- .user {
753
- flex-direction: row-reverse;
754
- .avatar {
755
- margin-left: 12px;
756
- margin-right: 0;
757
- }
758
- .message-content {
759
- align-items: flex-end;
760
- .message-content-text {
761
- color: white;
762
- border-radius: 18px 18px 4px 18px;
763
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
764
- }
765
- }
766
- }
767
- .message-content-json,
768
- .message-content-text {
769
- box-sizing: border-box;
770
- padding: 12px 16px;
771
- font-size: 14px;
772
- line-height: 1.6;
773
- word-wrap: break-word;
774
- white-space: pre-wrap;
775
- border-radius: 18px 18px 18px 4px;
776
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
777
- border: 1px solid rgba(102, 126, 234, 0.2);
778
- transition: all 0.3s ease;
779
- }
780
- }
781
-
782
- // 用户输入
783
- .input-area {
784
- padding: 16px 24px 24px;
785
- backdrop-filter: blur(10px);
786
-
787
- .message-input {
788
- :deep(.el-textarea__inner) {
789
- border-radius: 16px;
790
- border: 1px solid rgba(102, 126, 234, 0.2);
791
- font-size: 14px;
792
- padding: 12px 16px;
793
- transition: all 0.3s ease;
794
- &:focus {
795
- border-color: #667eea;
796
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
797
- }
798
- }
799
- }
800
-
801
- .input-actions {
802
- display: flex;
803
- justify-content: space-between;
804
- align-items: center;
805
- margin-top: 12px;
806
-
807
- .input-hint {
808
- font-size: 11px;
809
- color: var(--el-color-info);
810
- }
811
-
812
- .send-btn {
813
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
814
- border: none;
815
- padding: 8px 20px;
816
- font-weight: 500;
817
- transition: all 0.3s ease;
818
- &:hover {
819
- transform: translateY(-2px);
820
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
821
- }
822
- &:active {
823
- transform: translateY(0);
824
- }
825
- }
826
- }
827
- }
828
- }
829
- }
830
-
831
- @keyframes slideIn {
832
- from {
833
- opacity: 0;
834
- transform: translateX(-8px);
835
- }
836
- to {
837
- opacity: 1;
838
- transform: translateX(0);
839
- }
840
- }
841
-
842
- @keyframes spin {
843
- to {
844
- transform: rotate(360deg);
845
- }
846
- }
847
-
848
- @keyframes breathe {
849
- 0%,
850
- 100% {
851
- border-color: rgba(102, 126, 234, 0.15);
852
- box-shadow: 0 2px 8px rgba(102, 126, 234, 0.05);
853
- }
854
- 50% {
855
- border-color: rgba(102, 126, 234, 0.35);
856
- box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
857
- }
858
- }
859
-
860
- @keyframes resultAppear {
861
- 0% {
862
- opacity: 0;
863
- transform: scale(0.95);
864
- }
865
- 100% {
866
- opacity: 1;
867
- transform: scale(1);
868
- }
869
- }
870
-
871
- .feedback-dialog-content {
872
- text-align: center;
873
- padding: 12px 0;
874
-
875
- .feedback-emoji {
876
- font-size: 48px;
877
- margin-bottom: 16px;
878
- animation: shake 0.5s ease-in-out;
879
- }
880
- .feedback-tip {
881
- font-size: 14px;
882
- color: #666;
883
- margin-bottom: 20px;
884
- line-height: 1.6;
885
- }
886
-
887
- :deep(.el-textarea__inner) {
888
- border-radius: 12px;
889
- border: 1px solid rgba(102, 126, 234, 0.2);
890
- font-size: 14px;
891
- &:focus {
892
- border-color: #667eea;
893
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
894
- }
895
- }
896
- }
897
-
898
- @keyframes shake {
899
- 0%,
900
- 100% {
901
- transform: translateX(0);
902
- }
903
- 25% {
904
- transform: translateX(-5px);
905
- }
906
- 75% {
907
- transform: translateX(5px);
908
- }
909
- }
910
- </style>