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.
- package/README.md +19 -19
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +1 -1
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +3 -3
- package/es/Contextmenu.cjs +1 -1
- package/es/Contextmenu.js +7 -7
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +514 -308
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +37 -37
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +7 -7
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +18 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +93 -93
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +17 -17
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +760 -656
- package/es/LinearLegend.cjs +1 -1
- package/es/LinearLegend.js +1 -1
- package/es/Map.cjs +1 -1
- package/es/Map.js +1 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +18 -18
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +76 -76
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Pie.cjs +2 -2
- package/es/Pie.js +14 -14
- package/es/Table.cjs +1 -1
- package/es/Table.js +22 -22
- package/es/TreeMap.cjs +1 -1
- package/es/TreeMap.js +4 -4
- package/es/User.cjs +1 -1
- package/es/User.js +73 -73
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +21 -21
- package/es/VarietyAiHelper.cjs +4 -4
- package/es/VarietyAiHelper.js +139 -138
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +16 -16
- package/es/VarietySearch.cjs +4 -4
- package/es/VarietySearch.js +861 -857
- package/es/{VarietySelect-6a166293.js → VarietySelect-41daac7b.js} +10 -10
- package/es/{VarietySelect-610903f0.cjs → VarietySelect-d58eee29.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +2 -2
- package/es/VarietyTextCopy.js +25 -25
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +6 -6
- package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
- package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
- package/es/aiTools-229609fb.cjs +2 -0
- package/es/aiTools-ce2f9281.js +115 -0
- package/es/aiTools.js +179 -176
- package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
- package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
- package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
- package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
- package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
- package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
- package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
- package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
- package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
- package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
- package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
- package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
- package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
- package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
- package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
- package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
- package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
- package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
- package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
- package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
- package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
- package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
- package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
- package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
- package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
- package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
- package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
- package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
- package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
- package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
- package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
- package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
- package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
- package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
- package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
- package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
- package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
- package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
- package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
- package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
- package/es/index-00f6ca75.cjs +1 -0
- package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
- package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
- package/es/{index-0986e373.cjs → index-3153c1db.cjs} +1 -1
- package/es/{index-936e7dec.js → index-44a382a5.js} +2 -2
- package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
- package/es/{index-7ed0999e.js → index-53cc4e43.js} +720 -716
- package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
- package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
- package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
- package/es/{index-8901a38c.cjs → index-94131fd7.cjs} +30 -30
- package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
- package/es/{index-f3f6ee27.js → index-a33b2fb8.js} +178 -178
- package/es/{index-2d7ac156.cjs → index-a9246d17.cjs} +17 -17
- package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
- package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
- package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
- package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
- package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
- package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
- package/es/{python-6cc6ec1b.js → python-8a1664e6.js} +18 -18
- package/es/{python-71f59893.cjs → python-a3db9620.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
- package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
- package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
- package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
- package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
- package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
- package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
- package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
- package/lib/aiTools.js +179 -176
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +230 -230
- package/lib/{index-2a269748.js → index-62fa175a.js} +30149 -29800
- package/lib/{python-41da18e5.js → python-4a48fa39.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +53 -44
- package/auto-imports.d.ts +0 -13
- package/components.d.ts +0 -59
- package/es/aiTools-a3b095f6.js +0 -113
- package/es/aiTools-f36136a4.cjs +0 -2
- package/es/index-476c4459.cjs +0 -1
- package/index.html +0 -13
- package/packages/ChartLayout/index.ts +0 -8
- package/packages/ChartLayout/index.vue +0 -63
- package/packages/ConfigProvider/index.ts +0 -8
- package/packages/ConfigProvider/index.vue +0 -66
- package/packages/Contextmenu/index.ts +0 -8
- package/packages/Contextmenu/index.vue +0 -134
- package/packages/CustomFunction/components/ManageDialog.vue +0 -706
- package/packages/CustomFunction/index.ts +0 -8
- package/packages/CustomFunction/index.vue +0 -200
- package/packages/FactorWarning/index.ts +0 -8
- package/packages/FactorWarning/index.vue +0 -754
- package/packages/FactorWarning/tools.js +0 -10
- package/packages/HeatMap/index.ts +0 -8
- package/packages/HeatMap/index.vue +0 -141
- package/packages/Kline/components/Contextmenu/index.vue +0 -110
- package/packages/Kline/components/Tips/index.vue +0 -40
- package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
- package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
- package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
- package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
- package/packages/Kline/componentsNew/Tips/index.vue +0 -33
- package/packages/Kline/formatKlineData.ts +0 -109
- package/packages/Kline/images/buy.svg +0 -1
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +0 -1
- package/packages/Kline/images/t.svg +0 -1
- package/packages/Kline/index.ts +0 -16
- package/packages/Kline/index.vue +0 -891
- package/packages/Kline/option.ts +0 -539
- package/packages/Kline/type.d.ts +0 -219
- package/packages/Kline/utils.ts +0 -682
- package/packages/KlineBasic/api.js +0 -58
- package/packages/KlineBasic/components/AverageTips/index.vue +0 -33
- package/packages/KlineBasic/components/Contextmenu/index.vue +0 -105
- package/packages/KlineBasic/components/KlineSub/index.vue +0 -332
- package/packages/KlineBasic/components/KlineTips/index.vue +0 -99
- package/packages/KlineBasic/components/Tips/index.vue +0 -56
- package/packages/KlineBasic/index.ts +0 -8
- package/packages/KlineBasic/index.vue +0 -839
- package/packages/KlineBasic/utils.js +0 -258
- package/packages/KlineConfig/config.js +0 -46
- package/packages/KlineConfig/index.ts +0 -8
- package/packages/KlineConfig/index.vue +0 -356
- package/packages/KlineNew/components/KlineSlide/index.vue +0 -156
- package/packages/KlineNew/components/KlineSub/index.vue +0 -335
- package/packages/KlineNew/components/KlineTips/index.vue +0 -96
- package/packages/KlineNew/components/KlineUtils/index.vue +0 -341
- package/packages/KlineNew/components/Tips/index.vue +0 -33
- package/packages/KlineNew/index.ts +0 -14
- package/packages/KlinePlus/components/SliderChart.vue +0 -208
- package/packages/KlinePlus/components/Tips.vue +0 -36
- package/packages/KlinePlus/images/buy.svg +0 -1
- package/packages/KlinePlus/images/sell.svg +0 -1
- package/packages/KlinePlus/images/t.svg +0 -1
- package/packages/KlinePlus/index.ts +0 -8
- package/packages/KlinePlus/index.vue +0 -1067
- package/packages/KlinePlus/utils.js +0 -771
- package/packages/LinearLegend/index.ts +0 -8
- package/packages/LinearLegend/index.vue +0 -112
- package/packages/Map/China.json +0 -1
- package/packages/Map/index.ts +0 -8
- package/packages/Map/index.vue +0 -147
- package/packages/MonacoEditor/index.ts +0 -8
- package/packages/MonacoEditor/index.vue +0 -1141
- package/packages/MonacoEditor/tools.js +0 -18
- package/packages/Pagination/index.ts +0 -8
- package/packages/Pagination/index.vue +0 -87
- package/packages/PasswordPrompt/index.ts +0 -8
- package/packages/PasswordPrompt/index.vue +0 -267
- package/packages/Pie/index.ts +0 -8
- package/packages/Pie/index.vue +0 -148
- package/packages/Table/components/Button/index.vue +0 -61
- package/packages/Table/components/Formatter/index.vue +0 -26
- package/packages/Table/index.d.ts +0 -0
- package/packages/Table/index.ts +0 -8
- package/packages/Table/index.vue +0 -133
- package/packages/TreeMap/index.ts +0 -8
- package/packages/TreeMap/index.vue +0 -186
- package/packages/User/components/EditInfoDialog/Mobile.vue +0 -214
- package/packages/User/components/EditInfoDialog/index.vue +0 -161
- package/packages/User/components/EditPasswordDialog.vue +0 -168
- package/packages/User/components/SetPasswordDialog.vue +0 -160
- package/packages/User/index.ts +0 -8
- package/packages/User/index.vue +0 -117
- package/packages/VarSelectDialog/Mock.js +0 -495
- package/packages/VarSelectDialog/VarietySelect.vue +0 -78
- package/packages/VarSelectDialog/index.ts +0 -8
- package/packages/VarSelectDialog/index.vue +0 -323
- package/packages/VarietyAiHelper/images/like.png +0 -0
- package/packages/VarietyAiHelper/images/like_no.png +0 -0
- package/packages/VarietyAiHelper/index.ts +0 -8
- package/packages/VarietyAiHelper/index.vue +0 -910
- package/packages/VarietyAutoComplete/index.ts +0 -8
- package/packages/VarietyAutoComplete/index.vue +0 -89
- package/packages/VarietySearch/components/AddTag/index.vue +0 -268
- package/packages/VarietySearch/components/CommonIndicator/IndicatorTags.vue +0 -52
- package/packages/VarietySearch/components/CommonIndicator/index.vue +0 -697
- package/packages/VarietySearch/components/CommonIndicator/tools.js +0 -260
- package/packages/VarietySearch/components/CompositeOrder/index.vue +0 -260
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +0 -70
- package/packages/VarietySearch/components/FactorScreen/index.vue +0 -1158
- package/packages/VarietySearch/components/FactorScreen/tools.js +0 -34
- package/packages/VarietySearch/config.js +0 -539
- package/packages/VarietySearch/index.ts +0 -8
- package/packages/VarietySearch/index.vue +0 -688
- package/packages/VarietyTextCopy/index.ts +0 -8
- package/packages/VarietyTextCopy/index.vue +0 -136
- package/packages/VirtualTable/index.ts +0 -8
- package/packages/VirtualTable/index.vue +0 -241
- package/packages/index.ts +0 -59
- package/public/aiTools.js +0 -176
- package/public/talib.wasm +0 -0
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -140
- package/src/assets/vue.svg +0 -1
- package/src/components/Dialog/index.vue +0 -16
- package/src/components/Kline/index.vue +0 -21
- package/src/components/Table/index.vue +0 -27
- package/src/main.ts +0 -17
- package/src/pages/ChartLayout/index.vue +0 -22
- package/src/pages/ConfigProvider/index.vue +0 -9
- package/src/pages/Contextmenu/index.vue +0 -46
- package/src/pages/CustomFunction/index.vue +0 -13
- package/src/pages/FactorWarning/index.vue +0 -203
- package/src/pages/HeatMap/index.vue +0 -128
- package/src/pages/Kline/index.vue +0 -12
- package/src/pages/KlineBasic/api.js +0 -48
- package/src/pages/KlineBasic/index.vue +0 -366
- package/src/pages/KlineBasic/indicator.js +0 -114
- package/src/pages/KlineConfig/index.vue +0 -20
- package/src/pages/KlineNew/components/KlineAction/components/ContextMenu/index.vue +0 -91
- package/src/pages/KlineNew/components/KlineAction/components/YearChart/index.vue +0 -532
- package/src/pages/KlineNew/components/KlineAction/images/pen.png +0 -0
- package/src/pages/KlineNew/components/KlineAction/index.vue +0 -716
- package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +0 -13
- package/src/pages/KlineNew/components/KlineAction/utils.js +0 -571
- package/src/pages/KlineNew/components/KlineBasic/index.vue +0 -336
- package/src/pages/KlineNew/components/KlineBasic/utils.js +0 -46
- package/src/pages/KlineNew/components/KlineNew/index.vue +0 -316
- package/src/pages/KlineNew/components/KlineNew/utils.js +0 -31
- package/src/pages/KlineNew/components/KlineSlide/index.vue +0 -448
- package/src/pages/KlineNew/components/KlineSlide/utils.js +0 -78
- package/src/pages/KlineNew/components/KlineSlideNew/index.vue +0 -430
- package/src/pages/KlineNew/components/KlineSlideNew/utils.js +0 -78
- package/src/pages/KlineNew/index.vue +0 -92
- package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +0 -312
- package/src/pages/KlinePlus/KlineDialog/api.js +0 -108
- package/src/pages/KlinePlus/KlineDialog/index.vue +0 -582
- package/src/pages/KlinePlus/KlineDialog/indicator.js +0 -109
- package/src/pages/KlinePlus/KlineDialog/tools.js +0 -86
- package/src/pages/KlinePlus/index.vue +0 -30
- package/src/pages/KlinePlus/tradeLogMock.js +0 -1927
- package/src/pages/LinearLegend/index.vue +0 -92
- package/src/pages/Map/index.vue +0 -62
- package/src/pages/MonacoEditor/index.vue +0 -63
- package/src/pages/Pagination/index.vue +0 -24
- package/src/pages/PasswordPrompt/index.vue +0 -12
- package/src/pages/Pie/index.vue +0 -36
- package/src/pages/Table/index.vue +0 -117
- package/src/pages/TreeMap/index.vue +0 -542
- package/src/pages/User/index.vue +0 -24
- package/src/pages/VarSelectDialog/index.vue +0 -16
- package/src/pages/VarietyAiHelper/index.vue +0 -20
- package/src/pages/VarietyAutoComplete/index.vue +0 -19
- package/src/pages/VarietySearch/api.js +0 -70
- package/src/pages/VarietySearch/index.vue +0 -467
- package/src/pages/VarietyTextCopy/index.vue +0 -24
- package/src/pages/VirtualTable/demo.json +0 -6377
- package/src/pages/VirtualTable/index.vue +0 -79
- package/src/router/index.ts +0 -9
- package/src/router/routes.ts +0 -132
- package/src/style.css +0 -79
- package/src/vite-env.d.ts +0 -9
- package/tsconfig.json +0 -30
- package/tsconfig.node.json +0 -10
package/es/VarietyAiHelper.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { b as de, p as fe, e as ee, u as pe, c as ae, n as ke, _ as me, w as ve, x as we } from "./base-a5af3db3.js";
|
|
2
|
-
import { E as be } from "./el-dialog-
|
|
3
|
-
import "./el-overlay-
|
|
4
|
-
import { E as Te } from "./el-input-
|
|
5
|
-
import { E as _e } from "./el-button-
|
|
2
|
+
import { E as be } from "./el-dialog-5e30161f.js";
|
|
3
|
+
import "./el-overlay-3e17604b.js";
|
|
4
|
+
import { E as Te } from "./el-input-342b2def.js";
|
|
5
|
+
import { E as _e } from "./el-button-94d3de38.js";
|
|
6
6
|
import "./el-tooltip-4ed993c7.js";
|
|
7
|
-
import { E as Se } from "./el-popper-
|
|
8
|
-
import { defineComponent as te, ref as y, computed as v, watch as oe, openBlock as l, createElementBlock as f, normalizeClass as w, unref as a, normalizeStyle as
|
|
7
|
+
import { E as Se } from "./el-popper-fbd0dcea.js";
|
|
8
|
+
import { defineComponent as te, ref as y, computed as v, watch as oe, openBlock as l, createElementBlock as f, normalizeClass as w, unref as a, normalizeStyle as J, createBlock as K, withCtx as k, resolveDynamicComponent as ge, renderSlot as re, createElementVNode as d, toDisplayString as L, createCommentVNode as Q, inject as De, reactive as Ce, nextTick as se, Fragment as X, createVNode as A, renderList as ce, createTextVNode as Z, pushScopeId as Me, popScopeId as Ee } from "vue";
|
|
9
9
|
import { d as q } from "./dayjs.min-8313b006.js";
|
|
10
|
-
import {
|
|
11
|
-
import { s as Ie } from "./aiTools-
|
|
12
|
-
import { E as
|
|
10
|
+
import { U as Ve, R as Be } from "./index-53cc4e43.js";
|
|
11
|
+
import { s as Ie } from "./aiTools-ce2f9281.js";
|
|
12
|
+
import { E as ne, w as Ne, s as Ue, t as Qe, v as Fe, c as Pe, u as Ye, x as ze, y as Je, z as Le, A as Oe } from "./index-eb96e074.js";
|
|
13
13
|
import { _ as He } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
-
import { E as W } from "./index-
|
|
15
|
-
import { k as Ke, i as Re } from "./use-form-common-props-
|
|
14
|
+
import { E as W } from "./index-5216d5f5.js";
|
|
15
|
+
import { k as Ke, i as Re } from "./use-form-common-props-ed72e914.js";
|
|
16
16
|
import "./index-d77a7336.js";
|
|
17
17
|
import "./index-960806da.js";
|
|
18
18
|
import "./index-2e331d74.js";
|
|
19
19
|
import "./vnode-5ddb7ed1.js";
|
|
20
20
|
import "./scroll-679bd6bf.js";
|
|
21
|
-
import "./use-global-config-
|
|
22
|
-
import "./index-
|
|
21
|
+
import "./use-global-config-ee406d58.js";
|
|
22
|
+
import "./index-8c2d7e05.js";
|
|
23
23
|
import "./typescript-7ae59c4c.js";
|
|
24
|
-
import "./index-
|
|
24
|
+
import "./index-f034b910.js";
|
|
25
25
|
import "./index-657047bb.js";
|
|
26
|
-
import "./config-provider-
|
|
26
|
+
import "./config-provider-88b637a8.js";
|
|
27
27
|
const xe = de({
|
|
28
28
|
size: {
|
|
29
29
|
type: [Number, String],
|
|
@@ -58,38 +58,38 @@ const xe = de({
|
|
|
58
58
|
props: xe,
|
|
59
59
|
emits: $e,
|
|
60
60
|
setup(p, { emit: i }) {
|
|
61
|
-
const M = p,
|
|
62
|
-
const { size: u, icon:
|
|
63
|
-
return ae(u) && o.push(
|
|
61
|
+
const M = p, n = pe("avatar"), _ = y(!1), E = v(() => {
|
|
62
|
+
const { size: u, icon: S, shape: V } = M, o = [n.b()];
|
|
63
|
+
return ae(u) && o.push(n.m(u)), S && o.push(n.m("icon")), V && o.push(n.m(V)), o;
|
|
64
64
|
}), R = v(() => {
|
|
65
65
|
const { size: u } = M;
|
|
66
|
-
return fe(u) ?
|
|
66
|
+
return fe(u) ? n.cssVarBlock({
|
|
67
67
|
size: ke(u) || ""
|
|
68
68
|
}) : void 0;
|
|
69
69
|
}), x = v(() => ({
|
|
70
70
|
objectFit: M.fit
|
|
71
71
|
}));
|
|
72
|
-
oe(() => M.src, () =>
|
|
72
|
+
oe(() => M.src, () => _.value = !1);
|
|
73
73
|
function h(u) {
|
|
74
|
-
|
|
74
|
+
_.value = !0, i("error", u);
|
|
75
75
|
}
|
|
76
|
-
return (u,
|
|
76
|
+
return (u, S) => (l(), f("span", {
|
|
77
77
|
class: w(a(E)),
|
|
78
|
-
style:
|
|
78
|
+
style: J(a(R))
|
|
79
79
|
}, [
|
|
80
|
-
(u.src || u.srcSet) && !
|
|
80
|
+
(u.src || u.srcSet) && !_.value ? (l(), f("img", {
|
|
81
81
|
key: 0,
|
|
82
82
|
src: u.src,
|
|
83
83
|
alt: u.alt,
|
|
84
84
|
srcset: u.srcSet,
|
|
85
|
-
style:
|
|
85
|
+
style: J(a(x)),
|
|
86
86
|
onError: h
|
|
87
|
-
}, null, 44, ["src", "alt", "srcset"])) : u.icon ? (l(), K(a(
|
|
87
|
+
}, null, 44, ["src", "alt", "srcset"])) : u.icon ? (l(), K(a(ne), { key: 1 }, {
|
|
88
88
|
default: k(() => [
|
|
89
89
|
(l(), K(ge(u.icon)))
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
|
-
})) :
|
|
92
|
+
})) : re(u.$slots, "default", { key: 2 })
|
|
93
93
|
], 6));
|
|
94
94
|
}
|
|
95
95
|
});
|
|
@@ -157,7 +157,7 @@ const Xe = ve(Ge), Ze = de({
|
|
|
157
157
|
exception: "#ff4949",
|
|
158
158
|
warning: "#e6a23c",
|
|
159
159
|
default: "#20a0ff"
|
|
160
|
-
},
|
|
160
|
+
}, n = pe("progress"), _ = v(() => {
|
|
161
161
|
const e = {
|
|
162
162
|
width: `${i.percentage}%`,
|
|
163
163
|
animationDuration: `${i.duration}s`
|
|
@@ -171,12 +171,12 @@ const Xe = ve(Ge), Ze = de({
|
|
|
171
171
|
a ${e} ${e} 0 1 1 0 ${g ? "-" : ""}${e * 2}
|
|
172
172
|
a ${e} ${e} 0 1 1 0 ${g ? "" : "-"}${e * 2}
|
|
173
173
|
`;
|
|
174
|
-
}), h = v(() => 2 * Math.PI * R.value), u = v(() => i.type === "dashboard" ? 0.75 : 1),
|
|
174
|
+
}), h = v(() => 2 * Math.PI * R.value), u = v(() => i.type === "dashboard" ? 0.75 : 1), S = v(() => `${-1 * h.value * (1 - u.value) / 2}px`), V = v(() => ({
|
|
175
175
|
strokeDasharray: `${h.value * u.value}px, ${h.value}px`,
|
|
176
|
-
strokeDashoffset:
|
|
176
|
+
strokeDashoffset: S.value
|
|
177
177
|
})), o = v(() => ({
|
|
178
178
|
strokeDasharray: `${h.value * u.value * (i.percentage / 100)}px, ${h.value}px`,
|
|
179
|
-
strokeDashoffset:
|
|
179
|
+
strokeDashoffset: S.value,
|
|
180
180
|
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
181
181
|
})), F = v(() => {
|
|
182
182
|
let e;
|
|
@@ -184,10 +184,10 @@ const Xe = ve(Ge), Ze = de({
|
|
|
184
184
|
}), B = v(() => i.status === "warning" ? Ne : i.type === "line" ? i.status === "success" ? Ue : Qe : i.status === "success" ? Fe : Pe), P = v(() => i.type === "line" ? 12 + i.strokeWidth * 0.4 : i.width * 0.111111 + 2), O = v(() => i.format(i.percentage));
|
|
185
185
|
function G(e) {
|
|
186
186
|
const g = 100 / e.length;
|
|
187
|
-
return e.map((
|
|
188
|
-
color:
|
|
187
|
+
return e.map((D, I) => ae(D) ? {
|
|
188
|
+
color: D,
|
|
189
189
|
percentage: (I + 1) * g
|
|
190
|
-
} :
|
|
190
|
+
} : D).sort((D, I) => D.percentage - I.percentage);
|
|
191
191
|
}
|
|
192
192
|
const b = (e) => {
|
|
193
193
|
var g;
|
|
@@ -197,21 +197,21 @@ const Xe = ve(Ge), Ze = de({
|
|
|
197
197
|
if (ae(Y))
|
|
198
198
|
return Y;
|
|
199
199
|
{
|
|
200
|
-
const
|
|
201
|
-
for (const I of
|
|
200
|
+
const D = G(Y);
|
|
201
|
+
for (const I of D)
|
|
202
202
|
if (I.percentage > e)
|
|
203
203
|
return I.color;
|
|
204
|
-
return (g =
|
|
204
|
+
return (g = D[D.length - 1]) == null ? void 0 : g.color;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
return (e, g) => (l(), f("div", {
|
|
208
208
|
class: w([
|
|
209
|
-
a(
|
|
210
|
-
a(
|
|
211
|
-
a(
|
|
209
|
+
a(n).b(),
|
|
210
|
+
a(n).m(e.type),
|
|
211
|
+
a(n).is(e.status),
|
|
212
212
|
{
|
|
213
|
-
[a(
|
|
214
|
-
[a(
|
|
213
|
+
[a(n).m("without-text")]: !e.showText,
|
|
214
|
+
[a(n).m("text-inside")]: e.textInside
|
|
215
215
|
}
|
|
216
216
|
]),
|
|
217
217
|
role: "progressbar",
|
|
@@ -221,70 +221,70 @@ const Xe = ve(Ge), Ze = de({
|
|
|
221
221
|
}, [
|
|
222
222
|
e.type === "line" ? (l(), f("div", {
|
|
223
223
|
key: 0,
|
|
224
|
-
class: w(a(
|
|
224
|
+
class: w(a(n).b("bar"))
|
|
225
225
|
}, [
|
|
226
226
|
d("div", {
|
|
227
|
-
class: w(a(
|
|
228
|
-
style:
|
|
227
|
+
class: w(a(n).be("bar", "outer")),
|
|
228
|
+
style: J({ height: `${e.strokeWidth}px` })
|
|
229
229
|
}, [
|
|
230
230
|
d("div", {
|
|
231
231
|
class: w([
|
|
232
|
-
a(
|
|
233
|
-
{ [a(
|
|
234
|
-
{ [a(
|
|
235
|
-
{ [a(
|
|
232
|
+
a(n).be("bar", "inner"),
|
|
233
|
+
{ [a(n).bem("bar", "inner", "indeterminate")]: e.indeterminate },
|
|
234
|
+
{ [a(n).bem("bar", "inner", "striped")]: e.striped },
|
|
235
|
+
{ [a(n).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
|
|
236
236
|
]),
|
|
237
|
-
style:
|
|
237
|
+
style: J(a(_))
|
|
238
238
|
}, [
|
|
239
239
|
(e.showText || e.$slots.default) && e.textInside ? (l(), f("div", {
|
|
240
240
|
key: 0,
|
|
241
|
-
class: w(a(
|
|
241
|
+
class: w(a(n).be("bar", "innerText"))
|
|
242
242
|
}, [
|
|
243
|
-
|
|
244
|
-
d("span", null,
|
|
243
|
+
re(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
244
|
+
d("span", null, L(a(O)), 1)
|
|
245
245
|
])
|
|
246
246
|
], 2)) : Q("v-if", !0)
|
|
247
247
|
], 6)
|
|
248
248
|
], 6)
|
|
249
249
|
], 2)) : (l(), f("div", {
|
|
250
250
|
key: 1,
|
|
251
|
-
class: w(a(
|
|
252
|
-
style:
|
|
251
|
+
class: w(a(n).b("circle")),
|
|
252
|
+
style: J({ height: `${e.width}px`, width: `${e.width}px` })
|
|
253
253
|
}, [
|
|
254
254
|
(l(), f("svg", { viewBox: "0 0 100 100" }, [
|
|
255
255
|
d("path", {
|
|
256
|
-
class: w(a(
|
|
256
|
+
class: w(a(n).be("circle", "track")),
|
|
257
257
|
d: a(x),
|
|
258
|
-
stroke: `var(${a(
|
|
258
|
+
stroke: `var(${a(n).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
259
259
|
"stroke-linecap": e.strokeLinecap,
|
|
260
260
|
"stroke-width": a(E),
|
|
261
261
|
fill: "none",
|
|
262
|
-
style:
|
|
262
|
+
style: J(a(V))
|
|
263
263
|
}, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
|
|
264
264
|
d("path", {
|
|
265
|
-
class: w(a(
|
|
265
|
+
class: w(a(n).be("circle", "path")),
|
|
266
266
|
d: a(x),
|
|
267
267
|
stroke: a(F),
|
|
268
268
|
fill: "none",
|
|
269
269
|
opacity: e.percentage ? 1 : 0,
|
|
270
270
|
"stroke-linecap": e.strokeLinecap,
|
|
271
271
|
"stroke-width": a(E),
|
|
272
|
-
style:
|
|
272
|
+
style: J(a(o))
|
|
273
273
|
}, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
|
|
274
274
|
]))
|
|
275
275
|
], 6)),
|
|
276
276
|
(e.showText || e.$slots.default) && !e.textInside ? (l(), f("div", {
|
|
277
277
|
key: 2,
|
|
278
|
-
class: w(a(
|
|
279
|
-
style:
|
|
278
|
+
class: w(a(n).e("text")),
|
|
279
|
+
style: J({ fontSize: `${a(P)}px` })
|
|
280
280
|
}, [
|
|
281
|
-
|
|
282
|
-
e.status ? (l(), K(a(
|
|
281
|
+
re(e.$slots, "default", { percentage: e.percentage }, () => [
|
|
282
|
+
e.status ? (l(), K(a(ne), { key: 1 }, {
|
|
283
283
|
default: k(() => [
|
|
284
284
|
(l(), K(ge(a(B))))
|
|
285
285
|
]),
|
|
286
286
|
_: 1
|
|
287
|
-
})) : (l(), f("span", { key: 0 },
|
|
287
|
+
})) : (l(), f("span", { key: 0 }, L(a(O)), 1))
|
|
288
288
|
])
|
|
289
289
|
], 6)) : Q("v-if", !0)
|
|
290
290
|
], 10, ["aria-valuenow"]));
|
|
@@ -293,7 +293,7 @@ const Xe = ve(Ge), Ze = de({
|
|
|
293
293
|
var tt = /* @__PURE__ */ me(et, [["__file", "progress.vue"]]);
|
|
294
294
|
const st = ve(tt);
|
|
295
295
|
const at = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMaSURBVHgB7ZhdbhMxEMf/9lLRN3oDlhMQTkB6AnqDlqdSVYgaDkD6zIdTKGqLkJreoD1BywnIDdiegPBWKYmH8e4mdZbAeqlTrcT+pJX8MV57dsee8QANDQ0NDf8zAgtA608tRJEGIeYZEjOmk1dqq4cFEFwBrQ9iSHzjV68UuhIYWlVqK0FAJAJDEDtzFm9hxcS51scrCEhwBYQUj6cVQ7tk6MTpjg2udhCQoAqk5gNqOU29l2prw7Ai0wmlfIGABFXAAG2n2p/Yu8RV97qZVvb3v9xHIIIqIKV4PSnzVz+blJVSAyyIYAroj0d28bHz4h5ugSAKvNVHa7xhO9MGtnn3uNRaz5w8w2H0E4G4sQJ28ZE0x05TwovvuDIjLDsbWwyUehrMpO74CqYmQtTmg74920O49oc04J28Whwr05Pp2mfqD4fH82cRAzMeX0qIU1+H5+WJecLz3xdexC7esKfd7v/b+AJSdNTzzd1SsTKBd/pgw2NyDhPwaN7iLRwLfUVVeE+lc5dQakKZ46GsQjhlM1Lp+0Fr3Kfz9uRvv5wDuQ47ucQ4p9Q8BIcgQuIJcjkZiXWUnGYee8DxrDTm02U7sUX+OpU2ovKMRlnRLpvP92w+0SqTr3QKLS3d/YFbhUoDv+DB3E0ZzZpZv0y+dgpEEGuTMkeyl2XytVMg38RZGXxolFArBbT+bDdt7DRdlI2plQIGo7ZT7ft441opIGW0PikbI068xqAmFG9zEqMLn3G1UaBwm0v+FJYUqY0CediQQgZn3uNQA1LzcQJGgXHPd6yHAjSNeYbD4QMsADafDafa9zUfS3kwJ0R/+nU4+nyjD9JoVEbyIUemuQxulKziZMDUfDiM3kMFyhXgvCZHh+2sQq07nF3LiuRKtfTeIWV/SwxsPjRvT7JblrF34IQgBwSTPmMuW4HliDMZVM15uXjdyN7rwy67+KAJqblkyYBOlSHeyV1tb0ci/dVx4Q0xQkC4UDvPVqsOC5KdzhK2V3YfxHlTbGN5Y29Y9hG4N9MnbJyfJ4B54XxxOVNqs4uGhoaGhoaK/AINQhvhDFaFYAAAAABJRU5ErkJggg==", ot = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMxSURBVHgB7ZhdbtNAEMdn1wmlTzUnIJyA9ASkNwgnaCMh0aKK1uIATV4R1bbQUlVCSrhBewLCCSg3CCfAPBFoM8PsxnHcVGHX7UZYwj/JytrecXb2a+a/ACUlJSUl/zMCPKBUNxzCMAwAQwEylAA1AAr586EM5Mq4zM9IhOPy+F3ShAtEPHwVbfXgFjg78Ea9bwaBXAeC+syrGvhAwFn0cvMp5MTJAfX2VAHRLiwYROrwSLTz2Fgd2FcnG1KKLjhBMU+TmD/LFw34QUwEP4if87QaJJX4F/m95AtDCII9HtVm0pwY8N6jKGrF4EjFVkEGQk+bBHEBOOroP0KABju2N2439KPdzTW4BUqpFsj7jfGaoBBhqEe67WovrTUIGmkZr1pR9OIsirb6MO3ROxFFUYwIh2mDAvEkh7mDAxmq1aXvsAC4Eb30hjtMqZNGDtt/D4/ogFdjf3Kvp6erbSEc0OAIzydlXlvrrnaFcUDCr17mtqbUcd3NriDoxXx9Gsmmi11hHNDgiD5Pyq67UaEcuLkbdUMHm+JgdqNMfEH4vWGzKZQDGkJIdyMB2LDVL5wDCNiflIUUj231C+dAoPOtKTVb/cI5wC5YF24WazZqMlAgE1Qu8ergtTrujDgVFhWxomO+KzotB0uPGvVG1Egf0DQuzMPqAMu9cw7t9eSDzaoMmlXzIlNJiDonYLVkF7nBvjrdlZIU2CCavf9oM7FOIaOQhK0nWONK+WVe+JcB5EqRDazOIged7KyJlZ4CQu6AoL/kKFpR4ersSPD0aafiR9chOpv7CcKvetommsPKnU8lFIt9MJJzcsrAgQiXVrOy0OT3UnxK/jKOdp4/AE/ceRfSCo2Hu5V5VEtkYYZhZmuk8Ojow0PwhJdtVDtBWVko5U42jzGZ5oLwFgcE/GybUwlDKs4XjjcHbojzjKrik4dcwSkPXiPxtXSY18JkrlNlOSsRB9vbz76BJ7w6MJsOX9JoQ7073RMIB2klh+iaB++5EB8PTqMnUttcUwYcAzrgEe8OSBgeTBfzNTg+0Nq8dOO2eDlen8WkFKLSTY7Vudf1kclyL8+ZZ0lJSUlJiQt/AOgzKhZAFyVoAAAAAElFTkSuQmCC";
|
|
296
|
-
const le = (p) => (Me("data-v-
|
|
296
|
+
const le = (p) => (Me("data-v-7e3d6eda"), p = p(), Ee(), p), rt = { class: "ai-dialog-body" }, nt = { class: "avatar" }, lt = { class: "message-content" }, it = {
|
|
297
297
|
key: 0,
|
|
298
298
|
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
299
299
|
}, ut = {
|
|
@@ -320,7 +320,7 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
320
320
|
},
|
|
321
321
|
emits: ["callBack"],
|
|
322
322
|
setup(p, { expose: i, emit: M }) {
|
|
323
|
-
const
|
|
323
|
+
const n = De("stConfig"), _ = Ce(Ve()), E = y(!1), R = M, x = p, h = y(!1), u = y(!1), S = y(!1), V = y(null), o = y([
|
|
324
324
|
{
|
|
325
325
|
role: "defaultMessage",
|
|
326
326
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
@@ -333,100 +333,101 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
333
333
|
resTime: 0,
|
|
334
334
|
firstPackageTime: 0
|
|
335
335
|
}
|
|
336
|
-
]), F = y(null), B = y(""), P = y(!1), O = y(""), G = y({}), b = y([]), e = v(() => b.value.length), g = v(() => b.value.filter((
|
|
337
|
-
const
|
|
338
|
-
return
|
|
336
|
+
]), F = y(null), B = y(""), P = y(!1), O = y(""), G = y({}), b = y([]), e = v(() => b.value.length), g = v(() => b.value.filter((r) => r.status === "success").length), Y = v(() => e.value ? g.value / e.value * 100 : 0), D = v(() => {
|
|
337
|
+
const r = b.value.find((s) => s.status === "executing");
|
|
338
|
+
return r ? r.name : "处理中";
|
|
339
339
|
}), I = async () => {
|
|
340
|
-
const
|
|
341
|
-
if (!
|
|
340
|
+
const r = B.value.trim();
|
|
341
|
+
if (!r)
|
|
342
342
|
return W.warning("请输入消息内容");
|
|
343
343
|
if (h.value)
|
|
344
344
|
return;
|
|
345
|
-
b.value = [],
|
|
345
|
+
b.value = [], S.value = !1, o.value.push({
|
|
346
346
|
role: "user",
|
|
347
|
-
content:
|
|
347
|
+
content: r,
|
|
348
348
|
createTime: q().format("YYYY-MM-DD HH:mm:ss")
|
|
349
|
-
}), B.value = "", await
|
|
349
|
+
}), B.value = "", await z(), o.value.push({
|
|
350
350
|
role: "assistant",
|
|
351
351
|
content: "",
|
|
352
352
|
fullQuery: "",
|
|
353
353
|
historyList: [],
|
|
354
|
-
userContent:
|
|
354
|
+
userContent: r,
|
|
355
355
|
showFeedback: !1,
|
|
356
356
|
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
357
357
|
resTime: 0,
|
|
358
358
|
firstPackageTime: 0
|
|
359
|
-
}), await
|
|
359
|
+
}), await z(), h.value = !0, u.value = !0;
|
|
360
360
|
let s = "", t = (/* @__PURE__ */ new Date()).getTime(), N = !1;
|
|
361
361
|
try {
|
|
362
362
|
await Ie({
|
|
363
|
-
baseUrl:
|
|
363
|
+
baseUrl: n.env.VITE_BASE_URL,
|
|
364
364
|
token: Be(),
|
|
365
|
-
value:
|
|
365
|
+
value: r,
|
|
366
366
|
sessionId: F.value,
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
userId: _.id,
|
|
368
|
+
callback: (C, T) => {
|
|
369
|
+
if (C === "session" && (F.value = T), C === "historyList") {
|
|
369
370
|
const m = o.value[o.value.length - 1];
|
|
370
371
|
m.historyList = T;
|
|
371
372
|
}
|
|
372
|
-
if (
|
|
373
|
+
if (C === "fullQuery") {
|
|
373
374
|
const m = o.value[o.value.length - 1];
|
|
374
375
|
m.fullQuery = T;
|
|
375
376
|
}
|
|
376
|
-
if (
|
|
377
|
+
if (C === "node") {
|
|
377
378
|
if (!N) {
|
|
378
379
|
N = !0, u.value = !1;
|
|
379
380
|
const U = o.value[o.value.length - 1];
|
|
380
381
|
U && U.role === "assistant" && U.firstPackageTime === 0 && (U.firstPackageTime = (/* @__PURE__ */ new Date()).getTime() - t);
|
|
381
382
|
}
|
|
382
383
|
const m = b.value.find((U) => U.name === T.name);
|
|
383
|
-
m ? m.status = T.status : b.value.push({ name: T.name, status: T.status }),
|
|
384
|
+
m ? m.status = T.status : b.value.push({ name: T.name, status: T.status }), z();
|
|
384
385
|
return;
|
|
385
386
|
}
|
|
386
|
-
if (
|
|
387
|
+
if (C === "message") {
|
|
387
388
|
s = T;
|
|
388
389
|
const m = o.value[o.value.length - 1];
|
|
389
|
-
m && m.role === "assistant" && (m.content = s,
|
|
390
|
+
m && m.role === "assistant" && (m.content = s, z());
|
|
390
391
|
}
|
|
391
|
-
if (
|
|
392
|
-
h.value = !1,
|
|
392
|
+
if (C === "finish") {
|
|
393
|
+
h.value = !1, S.value = !0;
|
|
393
394
|
const m = o.value[o.value.length - 1];
|
|
394
395
|
m && m.role === "assistant" && (m.showFeedback = !0, m.resTime = (/* @__PURE__ */ new Date()).getTime() - t, $("default", o.value.length - 1));
|
|
395
396
|
}
|
|
396
|
-
if (
|
|
397
|
+
if (C === "error") {
|
|
397
398
|
u.value = !1, h.value = !1, o.value.pop(), o.value.push({
|
|
398
399
|
role: "assistant",
|
|
399
|
-
userContent:
|
|
400
|
+
userContent: r,
|
|
400
401
|
content: `❌ ${T}`,
|
|
401
402
|
showFeedback: !1,
|
|
402
403
|
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
403
404
|
resTime: (/* @__PURE__ */ new Date()).getTime() - t,
|
|
404
405
|
firstPackageTime: 0
|
|
405
|
-
}), $("default", o.value.length - 1),
|
|
406
|
+
}), $("default", o.value.length - 1), z();
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
});
|
|
410
|
-
} catch (
|
|
411
|
-
W.error(`AI响应异常: ${
|
|
411
|
+
} catch (C) {
|
|
412
|
+
W.error(`AI响应异常: ${C}`), o.value.pop(), o.value.push({
|
|
412
413
|
role: "assistant",
|
|
413
|
-
userContent:
|
|
414
|
+
userContent: r,
|
|
414
415
|
content: "❌ 抱歉,AI服务响应异常,请稍后重试。",
|
|
415
416
|
showFeedback: !0,
|
|
416
417
|
createTime: q().format("YYYY-MM-DD HH:mm:ss"),
|
|
417
418
|
resTime: (/* @__PURE__ */ new Date()).getTime() - t,
|
|
418
419
|
firstPackageTime: 0
|
|
419
|
-
}), $("default", o.value.length - 1), await
|
|
420
|
+
}), $("default", o.value.length - 1), await z(), h.value = !1, u.value = !1;
|
|
420
421
|
}
|
|
421
|
-
}, he = (
|
|
422
|
-
const { parsedConditions: s, ...t } = JSON.parse(
|
|
422
|
+
}, he = (r) => {
|
|
423
|
+
const { parsedConditions: s, ...t } = JSON.parse(r);
|
|
423
424
|
console.log({ parsedConditions: s, webParams: t }), R("callBack", t);
|
|
424
|
-
}, $ = async (
|
|
425
|
-
switch (
|
|
425
|
+
}, $ = async (r, s) => {
|
|
426
|
+
switch (r) {
|
|
426
427
|
case "satisfied": {
|
|
427
428
|
const t = o.value[s];
|
|
428
|
-
await
|
|
429
|
-
userName:
|
|
429
|
+
await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
430
|
+
userName: _.username,
|
|
430
431
|
userContent: t.userContent,
|
|
431
432
|
sessionId: F.value,
|
|
432
433
|
fullQuery: t.fullQuery,
|
|
@@ -447,8 +448,8 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
447
448
|
}
|
|
448
449
|
case "unsatisfied": {
|
|
449
450
|
const t = o.value[s];
|
|
450
|
-
await
|
|
451
|
-
userName:
|
|
451
|
+
await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
452
|
+
userName: _.username,
|
|
452
453
|
userContent: t.userContent,
|
|
453
454
|
sessionId: F.value,
|
|
454
455
|
fullQuery: t.fullQuery,
|
|
@@ -467,7 +468,7 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
467
468
|
case "default": {
|
|
468
469
|
const t = o.value[s];
|
|
469
470
|
console.log({
|
|
470
|
-
userName:
|
|
471
|
+
userName: _.username,
|
|
471
472
|
userContent: t.userContent,
|
|
472
473
|
sessionId: F.value,
|
|
473
474
|
fullQuery: t.fullQuery,
|
|
@@ -479,8 +480,8 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
479
480
|
firstPackageTime: t.firstPackageTime,
|
|
480
481
|
isSolved: 1,
|
|
481
482
|
logOrigin: 1
|
|
482
|
-
}), await
|
|
483
|
-
userName:
|
|
483
|
+
}), await n.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
484
|
+
userName: _.username,
|
|
484
485
|
userContent: t.userContent,
|
|
485
486
|
sessionId: F.value,
|
|
486
487
|
fullQuery: t.fullQuery,
|
|
@@ -495,30 +496,30 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
495
496
|
});
|
|
496
497
|
}
|
|
497
498
|
}
|
|
498
|
-
}, Ae = (
|
|
499
|
-
if (
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
const s =
|
|
499
|
+
}, Ae = (r) => {
|
|
500
|
+
if (r.key === "Enter")
|
|
501
|
+
if (r.ctrlKey) {
|
|
502
|
+
r.preventDefault();
|
|
503
|
+
const s = r.target, t = s.selectionStart, N = s.selectionEnd;
|
|
503
504
|
B.value = B.value.substring(0, t) + `
|
|
504
505
|
` + B.value.substring(N), se(() => {
|
|
505
506
|
s.selectionStart = s.selectionEnd = t + 1;
|
|
506
507
|
});
|
|
507
508
|
} else
|
|
508
|
-
|
|
509
|
-
},
|
|
509
|
+
r.preventDefault(), I();
|
|
510
|
+
}, z = async () => {
|
|
510
511
|
await se(), V.value && (V.value.scrollTop = V.value.scrollHeight);
|
|
511
|
-
}, ie = (
|
|
512
|
-
if (typeof
|
|
512
|
+
}, ie = (r) => {
|
|
513
|
+
if (typeof r != "string")
|
|
513
514
|
return !1;
|
|
514
515
|
try {
|
|
515
|
-
const s = JSON.parse(
|
|
516
|
+
const s = JSON.parse(r);
|
|
516
517
|
return s !== null && typeof s == "object";
|
|
517
518
|
} catch {
|
|
518
519
|
return !1;
|
|
519
520
|
}
|
|
520
|
-
}, ye = (
|
|
521
|
-
const { parsedConditions: s } = JSON.parse(
|
|
521
|
+
}, ye = (r) => {
|
|
522
|
+
const { parsedConditions: s } = JSON.parse(r);
|
|
522
523
|
let t = "";
|
|
523
524
|
return s != null && s.length && (t += '<div class="parsed-conditions">', s.forEach((N) => {
|
|
524
525
|
t += `<div class="parsed-conditions-item">${N}</div>`;
|
|
@@ -527,22 +528,22 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
527
528
|
return oe(
|
|
528
529
|
() => o.value,
|
|
529
530
|
() => {
|
|
530
|
-
|
|
531
|
+
z();
|
|
531
532
|
},
|
|
532
533
|
{ deep: !0 }
|
|
533
534
|
), oe(
|
|
534
535
|
() => P.value,
|
|
535
|
-
(
|
|
536
|
-
|
|
536
|
+
(r) => {
|
|
537
|
+
r || (O.value = "");
|
|
537
538
|
}
|
|
538
539
|
), i({
|
|
539
540
|
open: () => {
|
|
540
541
|
E.value = !0, se(() => {
|
|
541
|
-
|
|
542
|
+
z();
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
|
-
}), (
|
|
545
|
-
const t = Xe, N =
|
|
545
|
+
}), (r, s) => {
|
|
546
|
+
const t = Xe, N = ne, C = st, T = Se, m = _e, U = Te, ue = be;
|
|
546
547
|
return l(), f(X, null, [
|
|
547
548
|
A(ue, {
|
|
548
549
|
class: "ai-dialog",
|
|
@@ -557,7 +558,7 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
557
558
|
"modal-penetrable": !0
|
|
558
559
|
}, {
|
|
559
560
|
default: k(() => [
|
|
560
|
-
d("div",
|
|
561
|
+
d("div", rt, [
|
|
561
562
|
d("div", {
|
|
562
563
|
ref_key: "messageListRef",
|
|
563
564
|
ref: V,
|
|
@@ -568,15 +569,15 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
568
569
|
class: w([c.role, "message-item"])
|
|
569
570
|
}, [
|
|
570
571
|
c.content || H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 ? (l(), f(X, { key: 0 }, [
|
|
571
|
-
d("div",
|
|
572
|
+
d("div", nt, [
|
|
572
573
|
A(t, {
|
|
573
574
|
size: 32,
|
|
574
|
-
icon: c.role === "user" ? a(Ye) : a(
|
|
575
|
+
icon: c.role === "user" ? a(Ye) : a(ze)
|
|
575
576
|
}, null, 8, ["icon"])
|
|
576
577
|
]),
|
|
577
578
|
d("div", lt, [
|
|
578
|
-
c.fullQuery ? (l(), f("div", it, " 筛选结果: " +
|
|
579
|
-
H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 && !
|
|
579
|
+
c.fullQuery ? (l(), f("div", it, " 筛选结果: " + L(c.fullQuery), 1)) : Q("", !0),
|
|
580
|
+
H === o.value.length - 1 && c.role === "assistant" && b.value.length > 0 && !S.value ? (l(), f("div", ut, [
|
|
580
581
|
(l(!0), f(X, null, ce(b.value, (j) => (l(), f("div", {
|
|
581
582
|
key: j.name,
|
|
582
583
|
class: "node-progress-item"
|
|
@@ -587,7 +588,7 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
587
588
|
class: "node-icon done"
|
|
588
589
|
}, {
|
|
589
590
|
default: k(() => [
|
|
590
|
-
A(a(
|
|
591
|
+
A(a(Je))
|
|
591
592
|
]),
|
|
592
593
|
_: 1
|
|
593
594
|
})) : (l(), K(N, {
|
|
@@ -595,31 +596,31 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
595
596
|
class: "node-icon running"
|
|
596
597
|
}, {
|
|
597
598
|
default: k(() => [
|
|
598
|
-
A(a(
|
|
599
|
+
A(a(Le))
|
|
599
600
|
]),
|
|
600
601
|
_: 1
|
|
601
602
|
}))
|
|
602
603
|
]),
|
|
603
|
-
d("span", dt,
|
|
604
|
+
d("span", dt, L(j.name), 1)
|
|
604
605
|
]))), 128)),
|
|
605
606
|
d("div", ft, [
|
|
606
|
-
A(
|
|
607
|
+
A(C, {
|
|
607
608
|
percentage: Y.value,
|
|
608
609
|
"show-text": !1,
|
|
609
610
|
"stroke-width": 4,
|
|
610
611
|
color: "#667eea"
|
|
611
612
|
}, null, 8, ["percentage"]),
|
|
612
|
-
d("span", pt, "第 " +
|
|
613
|
+
d("span", pt, "第 " + L(g.value) + "/" + L(e.value) + " 步 · " + L(D.value), 1)
|
|
613
614
|
])
|
|
614
615
|
])) : Q("", !0),
|
|
615
616
|
ie(c.content) ? (l(), f("div", {
|
|
616
617
|
key: 2,
|
|
617
|
-
class: w(["message-content-json", { "result-animation": H === o.value.length - 1 &&
|
|
618
|
+
class: w(["message-content-json", { "result-animation": H === o.value.length - 1 && S.value }]),
|
|
618
619
|
innerHTML: ye(c.content)
|
|
619
620
|
}, null, 10, mt)) : c.content ? (l(), f("div", {
|
|
620
621
|
key: 3,
|
|
621
|
-
class: w(["message-content-text", { "result-animation": H === o.value.length - 1 &&
|
|
622
|
-
},
|
|
622
|
+
class: w(["message-content-text", { "result-animation": H === o.value.length - 1 && S.value }])
|
|
623
|
+
}, L(c.content), 3)) : Q("", !0),
|
|
623
624
|
c.role === "assistant" ? (l(), f("div", vt, [
|
|
624
625
|
c.showFeedback ? (l(), f("div", gt, [
|
|
625
626
|
A(T, {
|
|
@@ -741,7 +742,7 @@ const le = (p) => (Me("data-v-1ebca857"), p = p(), Ee(), p), nt = { class: "ai-d
|
|
|
741
742
|
], 64);
|
|
742
743
|
};
|
|
743
744
|
}
|
|
744
|
-
}, Ct = /* @__PURE__ */ He(Dt, [["__scopeId", "data-v-
|
|
745
|
+
}, Ct = /* @__PURE__ */ He(Dt, [["__scopeId", "data-v-7e3d6eda"]]), es = {
|
|
745
746
|
install(p) {
|
|
746
747
|
p.component("st-varietyAiHelper", Ct);
|
|
747
748
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./base-ef747d02.cjs");const
|
|
1
|
+
"use strict";require("./base-ef747d02.cjs");const q=require("./el-autocomplete-e0857c5b.cjs");require("./el-input-9a9a7f7f.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-a4f3ae4d.cjs");const e=require("vue"),f=require("./index-94131fd7.cjs"),x=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-form-common-props-ac666630.cjs");require("./index-9780a537.cjs");require("./index-00f6ca75.cjs");require("./index-185792a7.cjs");require("./debounce-62f5b6e8.cjs");require("./typescript-b63f8e83.cjs");require("./index-870b6c9d.cjs");const S={class:"variety-auto-complete"},b={key:0,class:"label"},v={class:"label"},C={__name:"index",props:{width:{type:String,default:"200px"},size:{type:String,default:"default"},label:{type:String,default:"品种搜索"},placeholder:{type:String,default:"请输入品种名称或代码"},selectClearEnable:{type:Boolean,default:!0}},emits:["input","select","change"],setup(o,{emit:u}){const d=e.inject("stConfig"),s=u,c=o,r=e.ref(""),p=async(t,l)=>{if(t===""||t==="null")l([]);else{const a={keyWord:t,pageNum:1,pageSize:999,userId:f.U("id"),hotSearchFlag:1},{body:n}=await d.request.post("/common/qt/quickSearch",a),g=n.list.map(({code:i,featureName:y})=>({label:`${i} ${y}`,value:i}));l(g)}},m=t=>{s("input",t)},_=({label:t,value:l})=>{const a=t.split(" ").at(-1);s("select",{name:a,code:l}),c.selectClearEnable&&(r.value="")},h=t=>{s("change",t)};return(t,l)=>{const a=q.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",S,[o.label?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=n=>r.value=n),clearable:"",size:c.size,placeholder:c.placeholder,"fetch-suggestions":p,onInput:m,onSelect:_,onChange:h,style:e.normalizeStyle({width:o.width})},{default:e.withCtx(({item:n})=>[e.createElementVNode("div",v,e.toDisplayString(n.label),1)]),_:1},8,["modelValue","size","placeholder","style"])])}}},V=x._export_sfc(C,[["__scopeId","data-v-09ae2cbc"]]),k={install(o){o.component("st-varietyAutoComplete",V)}};module.exports=k;
|