st-comp 0.0.279 → 0.0.281
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +377 -376
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +260 -260
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +43 -43
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +615 -464
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1927 -2259
- package/es/_baseClone-f8e5d3ba.cjs +1 -0
- package/es/_baseClone-fb6a3947.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-06d8207f.js +86 -0
- package/es/config-provider-bb61bd3e.cjs +1 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-8fa21bfd.cjs +1 -0
- package/es/dropdown-bcf8d198.js +178 -0
- package/es/el-autocomplete-13b9e372.cjs +1 -0
- package/es/el-autocomplete-419bfbcf.js +434 -0
- package/es/el-button-ee9fe159.js +343 -0
- package/es/el-button-fac5e058.cjs +1 -0
- package/es/el-checkbox-6cf1a71c.cjs +1 -0
- package/es/el-checkbox-b5ac7f04.js +566 -0
- package/es/el-dialog-060b3735.js +252 -0
- package/es/el-dialog-54aebacd.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-2be6b683.js +1265 -0
- package/es/el-form-item-758dfefa.cjs +12 -0
- package/es/el-input-7fe53030.cjs +1 -0
- package/es/el-input-d23f5442.js +761 -0
- package/es/el-input-number-484fb184.js +390 -0
- package/es/el-input-number-f0f4eedb.cjs +1 -0
- package/es/el-loading-9d3e405c.js +190 -0
- package/es/el-loading-fafaaa7b.cjs +1 -0
- package/es/el-menu-item-0ac22681.js +824 -0
- package/es/el-menu-item-c91ae430.cjs +1 -0
- package/es/el-message-box-568a0aa6.js +481 -0
- package/es/el-message-box-ceacb54e.cjs +1 -0
- package/es/el-overlay-9f36e73c.cjs +1 -0
- package/es/el-overlay-cb5c85aa.js +444 -0
- package/es/el-popconfirm-4a8cd35c.cjs +1 -0
- package/es/el-popconfirm-6f8e65c8.js +190 -0
- package/es/el-popper-0454c8e8.js +2235 -0
- package/es/el-popper-acd0ff35.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-64dc7258.js +168 -0
- package/es/el-segmented-eb3c8e65.cjs +1 -0
- package/es/el-select-a573c78b.js +1535 -0
- package/es/el-select-c317294a.cjs +1 -0
- package/es/el-table-column-1c443963.js +3651 -0
- package/es/el-table-column-f555115d.cjs +14 -0
- package/es/el-tag-2d8a3fe7.js +77 -0
- package/es/el-tag-dca1292c.cjs +1 -0
- package/es/el-text-649c986a.cjs +1 -0
- package/es/el-text-761e6717.js +84 -0
- package/es/index-11181b5f.cjs +1 -0
- package/es/index-21a3dc89.cjs +1 -0
- package/es/index-33e039e3.cjs +1 -0
- package/es/index-3806160e.js +710 -0
- package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
- package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
- package/es/index-5cada1ed.cjs +1 -0
- package/es/index-6a36e1fc.cjs +1 -0
- package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-78dab605.js +141 -0
- package/es/index-798fec2d.cjs +1 -0
- package/es/index-9573f74b.js +372 -0
- package/es/index-a181f161.js +429 -0
- package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
- package/es/index-beb5cb7d.cjs +1 -0
- package/es/index-c09fc6f5.js +131 -0
- package/es/index-ceae4c47.cjs +1 -0
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-d9379af4.js +413 -0
- package/es/index-dddacf80.js +47 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/index-e2e58ea9.js +468 -0
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-76516e50.cjs +2 -0
- package/es/use-form-item-784142b4.js +422 -0
- package/es/use-global-config-7ff9a1c2.cjs +1 -0
- package/es/use-global-config-9a4ccf33.js +71 -0
- package/es/validator-1926345b.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
- package/es/zh-cn-ad12d9f5.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +265 -246
- package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
- package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
package/es/CustomFunction.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-
|
|
4
|
-
import { E as
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
1
|
+
import { c as ne, d as pe, a as me, b as $e, m as De, e as Ie, l as Fe, E as ve, f as Oe } from "./index-6a52dc7c.js";
|
|
2
|
+
import { E as _e } from "./el-button-ee9fe159.js";
|
|
3
|
+
import { E as Ae, a as ze } from "./el-select-a573c78b.js";
|
|
4
|
+
import { E as ge } from "./el-popconfirm-6f8e65c8.js";
|
|
5
|
+
import { E as V } from "./index-e2e58ea9.js";
|
|
6
|
+
import "./base-dd156b8e.js";
|
|
7
|
+
import "./el-scrollbar-0a42c1d0.js";
|
|
8
|
+
import "./el-popper-0454c8e8.js";
|
|
9
|
+
import "./el-tag-2d8a3fe7.js";
|
|
8
10
|
import "./el-popover-4ed993c7.js";
|
|
9
|
-
import { inject as
|
|
10
|
-
import {
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as
|
|
13
|
-
import "./el-
|
|
14
|
-
import { E as
|
|
15
|
-
import { E as
|
|
11
|
+
import { inject as ye, ref as p, reactive as Q, computed as Be, watch as Re, nextTick as ue, resolveComponent as ce, openBlock as f, createBlock as F, withCtx as l, createElementVNode as s, normalizeClass as W, createVNode as o, unref as g, createTextVNode as x, createElementBlock as E, Fragment as Y, renderList as Z, toDisplayString as O, withModifiers as ee, createCommentVNode as X, h as H, onMounted as Me, normalizeStyle as Ue } from "vue";
|
|
12
|
+
import { E as je, a as Te } from "./el-form-item-2be6b683.js";
|
|
13
|
+
import { E as de } from "./el-input-d23f5442.js";
|
|
14
|
+
import { E as qe } from "./index-d9379af4.js";
|
|
15
|
+
import { E as Le } from "./el-dialog-060b3735.js";
|
|
16
|
+
import { E as Pe } from "./el-divider-c5d72961.js";
|
|
17
|
+
import { E as We } from "./el-empty-552baf04.js";
|
|
18
|
+
import { E as fe } from "./el-message-box-568a0aa6.js";
|
|
19
|
+
import "./el-overlay-cb5c85aa.js";
|
|
16
20
|
import { j as He, R as Je } from "./index-53cc4e43.js";
|
|
17
21
|
import { s as Ke } from "./aiTools-ce2f9281.js";
|
|
18
22
|
import "./el-message-4ed993c7.js";
|
|
19
|
-
import { E as pe } from "./el-message-box-035b699c.js";
|
|
20
|
-
import { E as Ge, a as Qe } from "./el-form-item-9e8969ea.js";
|
|
21
23
|
import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./use-global-config-
|
|
26
|
-
import "./
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./index-
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./vnode-5ddb7ed1.js";
|
|
24
|
+
import "./use-form-item-784142b4.js";
|
|
25
|
+
import "./index-a181f161.js";
|
|
26
|
+
import "./index-de9ad85c.js";
|
|
27
|
+
import "./use-global-config-9a4ccf33.js";
|
|
28
|
+
import "./index-9573f74b.js";
|
|
29
|
+
import "./index-3806160e.js";
|
|
30
|
+
import "./castArray-18eb6a41.js";
|
|
31
|
+
import "./vnode-8ee9bf4e.js";
|
|
32
|
+
import "./index-c09fc6f5.js";
|
|
33
|
+
import "./scroll-70271cb1.js";
|
|
34
|
+
import "./index-dddacf80.js";
|
|
35
|
+
import "./toNumber-f077c66a.js";
|
|
36
|
+
import "./clamp-c7512966.js";
|
|
37
|
+
import "./config-provider-06d8207f.js";
|
|
37
38
|
import "./typescript-7ae59c4c.js";
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
const
|
|
39
|
+
import "./_baseClone-fb6a3947.js";
|
|
40
|
+
import "./raf-b4fd1e12.js";
|
|
41
|
+
import "./validator-a66ec4f8.js";
|
|
42
|
+
const Ge = { class: "custom-header" }, Qe = { class: "left" }, Xe = ["id"], Ye = { class: "right" }, Ze = { class: "manage-dialog-body" }, et = { class: "func-list" }, tt = { class: "search" }, ot = ["onClick"], lt = { class: "icon-box" }, nt = { class: "rule-form" }, st = { class: "header" }, at = { class: "right" }, it = { class: "custom-header" }, rt = { class: "left" }, ut = ["id"], ct = { class: "right" }, dt = { class: "ai-dialog-body" }, ft = {
|
|
42
43
|
key: 0,
|
|
43
44
|
class: "node-progress"
|
|
44
|
-
},
|
|
45
|
+
}, pt = {
|
|
45
46
|
key: 1,
|
|
46
47
|
class: "ai-error"
|
|
47
|
-
},
|
|
48
|
+
}, mt = {
|
|
48
49
|
key: 2,
|
|
49
50
|
class: "ai-result"
|
|
50
|
-
},
|
|
51
|
+
}, vt = { class: "factor-expr" }, _t = { class: "dialog-footer" }, gt = { class: "custom-header" }, yt = { class: "left" }, xt = ["id"], Et = { class: "right" }, kt = { class: "content" }, ht = { class: "dialog-footer" }, Ct = {
|
|
51
52
|
__name: "ManageDialog",
|
|
52
53
|
props: {
|
|
53
54
|
data: {
|
|
@@ -56,93 +57,93 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
emits: ["refreshData"],
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
60
|
+
setup(D, { expose: te, emit: J }) {
|
|
61
|
+
const S = ye("stConfig"), { request: R } = S, m = p(null), k = p(null), w = J, M = D, A = p(!1), N = Q({
|
|
61
62
|
save: !1,
|
|
62
63
|
test: !1
|
|
63
|
-
}),
|
|
64
|
+
}), h = p(null), _ = Be(() => h.value ? M.data.filter((n) => n.funcName.includes(h.value)) : M.data), t = Q({
|
|
64
65
|
id: null,
|
|
65
66
|
funcName: "",
|
|
66
67
|
funcExpression: ""
|
|
67
|
-
}),
|
|
68
|
+
}), c = Q({
|
|
68
69
|
result: null,
|
|
69
70
|
detail: "",
|
|
70
71
|
code: ""
|
|
71
|
-
}),
|
|
72
|
-
var
|
|
73
|
-
Object.assign(
|
|
72
|
+
}), $ = p(!1), q = () => {
|
|
73
|
+
var n;
|
|
74
|
+
Object.assign(t, {
|
|
74
75
|
id: null,
|
|
75
76
|
funcName: "",
|
|
76
77
|
funcExpression: ""
|
|
77
|
-
}), (
|
|
78
|
-
}, L = (
|
|
78
|
+
}), (n = m.value) == null || n.setValue(t.funcExpression);
|
|
79
|
+
}, L = (n) => {
|
|
79
80
|
var e;
|
|
80
|
-
Object.assign(
|
|
81
|
-
id:
|
|
82
|
-
funcName:
|
|
83
|
-
funcExpression:
|
|
84
|
-
}), (e = m.value) == null || e.setValue(
|
|
85
|
-
}, K = (
|
|
81
|
+
Object.assign(t, {
|
|
82
|
+
id: n.id,
|
|
83
|
+
funcName: n.funcName,
|
|
84
|
+
funcExpression: n.funcExpression
|
|
85
|
+
}), (e = m.value) == null || e.setValue(t.funcExpression);
|
|
86
|
+
}, K = (n) => {
|
|
86
87
|
var e;
|
|
87
|
-
Object.assign(
|
|
88
|
+
Object.assign(t, {
|
|
88
89
|
id: null,
|
|
89
|
-
funcName: `${
|
|
90
|
-
funcExpression:
|
|
91
|
-
}), (e = m.value) == null || e.setValue(
|
|
92
|
-
}, y = async (
|
|
90
|
+
funcName: `${n.funcName}-复制`,
|
|
91
|
+
funcExpression: n.funcExpression
|
|
92
|
+
}), (e = m.value) == null || e.setValue(t.funcExpression);
|
|
93
|
+
}, y = async (n) => {
|
|
93
94
|
var e;
|
|
94
|
-
|
|
95
|
+
n.id === t.id && (Object.assign(t, {
|
|
95
96
|
id: null,
|
|
96
97
|
funcName: "",
|
|
97
98
|
funcExpression: ""
|
|
98
|
-
}), (e = m.value) == null || e.setValue(
|
|
99
|
+
}), (e = m.value) == null || e.setValue(t.funcExpression)), await R.post("/common/qt/deleteSearchFunctionById", { id: n.id }), w("refreshData");
|
|
99
100
|
}, G = He(async () => {
|
|
100
101
|
try {
|
|
101
|
-
if (
|
|
102
|
-
return
|
|
103
|
-
if (!
|
|
104
|
-
return
|
|
105
|
-
await R.post("/common/qt/saveOrUpdateSearchFunction",
|
|
102
|
+
if (N.save = !0, t.funcExpression = m.value.getValue(), !t.funcName)
|
|
103
|
+
return V.error("函数名称不可为空");
|
|
104
|
+
if (!t.funcExpression)
|
|
105
|
+
return V.error("函数内容不可为空");
|
|
106
|
+
await R.post("/common/qt/saveOrUpdateSearchFunction", t), V.success("操作成功"), w("refreshData"), t.id || q();
|
|
106
107
|
} finally {
|
|
107
|
-
|
|
108
|
+
N.save = !1;
|
|
108
109
|
}
|
|
109
|
-
}), Ee = (
|
|
110
|
+
}), Ee = (n) => new Promise((e) => {
|
|
110
111
|
const i = p(
|
|
111
|
-
|
|
112
|
-
),
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
return
|
|
112
|
+
n.reduce((r, v) => (r[v] = "", r), {})
|
|
113
|
+
), u = p({}), d = () => {
|
|
114
|
+
let r = !0;
|
|
115
|
+
const v = {};
|
|
116
|
+
return n.forEach((I) => {
|
|
116
117
|
var T;
|
|
117
|
-
(T = i.value[
|
|
118
|
-
}),
|
|
118
|
+
(T = i.value[I]) != null && T.trim() || (v[I] = `请输入${I}的值`, r = !1);
|
|
119
|
+
}), u.value = v, r;
|
|
119
120
|
};
|
|
120
|
-
|
|
121
|
+
fe({
|
|
121
122
|
title: "填写变量值用于接口测试",
|
|
122
123
|
message: H({
|
|
123
124
|
setup() {
|
|
124
125
|
return () => H("div", [
|
|
125
126
|
H(
|
|
126
|
-
|
|
127
|
+
je,
|
|
127
128
|
{
|
|
128
129
|
model: i.value
|
|
129
130
|
},
|
|
130
|
-
() =>
|
|
131
|
-
(
|
|
132
|
-
|
|
131
|
+
() => n.map(
|
|
132
|
+
(r) => H(
|
|
133
|
+
Te,
|
|
133
134
|
{
|
|
134
|
-
label: `${
|
|
135
|
-
prop:
|
|
136
|
-
error:
|
|
135
|
+
label: `${r}: `,
|
|
136
|
+
prop: r,
|
|
137
|
+
error: u.value[r],
|
|
137
138
|
"label-width": "90px"
|
|
138
139
|
},
|
|
139
|
-
() => H(
|
|
140
|
-
modelValue: i.value[
|
|
141
|
-
"onUpdate:modelValue": (
|
|
142
|
-
i.value[
|
|
140
|
+
() => H(de, {
|
|
141
|
+
modelValue: i.value[r],
|
|
142
|
+
"onUpdate:modelValue": (v) => {
|
|
143
|
+
i.value[r] = v, u.value[r] && delete u.value[r];
|
|
143
144
|
},
|
|
144
|
-
placeholder: `请输入 ${
|
|
145
|
-
status:
|
|
145
|
+
placeholder: `请输入 ${r} 的值`,
|
|
146
|
+
status: u.value[r] ? "error" : ""
|
|
146
147
|
})
|
|
147
148
|
)
|
|
148
149
|
)
|
|
@@ -154,87 +155,87 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
154
155
|
confirmButtonText: "确定",
|
|
155
156
|
cancelButtonText: "取消",
|
|
156
157
|
customClass: "variable-input-dialog",
|
|
157
|
-
beforeClose: async (
|
|
158
|
-
|
|
158
|
+
beforeClose: async (r, v, I) => {
|
|
159
|
+
r !== "confirm" && (e(!1), I()), await ue(), d() && (e({ ...i.value }), I());
|
|
159
160
|
}
|
|
160
161
|
}).catch(() => e(!1));
|
|
161
|
-
}), ke = (
|
|
162
|
+
}), ke = (n) => {
|
|
162
163
|
const e = /\$\{([^}]*)\}/g, i = [];
|
|
163
|
-
let
|
|
164
|
-
for (; (
|
|
165
|
-
i.push(
|
|
164
|
+
let u;
|
|
165
|
+
for (; (u = e.exec(n)) !== null; )
|
|
166
|
+
i.push(u[1]);
|
|
166
167
|
return [...new Set(i)];
|
|
167
|
-
},
|
|
168
|
-
switch (
|
|
168
|
+
}, he = (n, e) => n.replace(/\$\{([^}]*)\}/g, (i, u) => e[u] !== void 0 ? e[u] : i), se = async (n) => {
|
|
169
|
+
switch (n) {
|
|
169
170
|
case "submit": {
|
|
170
171
|
let e = m.value.getValue();
|
|
171
172
|
if (!e)
|
|
172
|
-
return
|
|
173
|
+
return V.error("函数内容不可为空");
|
|
173
174
|
if (/\$\{[^}]*\}/.test(e)) {
|
|
174
|
-
const i = ke(e),
|
|
175
|
-
if (!
|
|
175
|
+
const i = ke(e), u = await Ee(i);
|
|
176
|
+
if (!u)
|
|
176
177
|
return;
|
|
177
|
-
e =
|
|
178
|
+
e = he(e, u);
|
|
178
179
|
}
|
|
179
180
|
try {
|
|
180
|
-
|
|
181
|
-
const { body: i } = await R.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result:
|
|
182
|
-
Object.assign(
|
|
181
|
+
N.test = !0;
|
|
182
|
+
const { body: i } = await R.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: u, detail: d } = i;
|
|
183
|
+
Object.assign(c, { result: u, detail: d, code: e }), u === 1 ? V.success("测试通过") : (V.error("测试未能通过"), $.value = !0);
|
|
183
184
|
} finally {
|
|
184
|
-
|
|
185
|
+
N.test = !1;
|
|
185
186
|
}
|
|
186
187
|
break;
|
|
187
188
|
}
|
|
188
189
|
case "log": {
|
|
189
|
-
if (
|
|
190
|
-
return
|
|
191
|
-
|
|
190
|
+
if (c.result === null)
|
|
191
|
+
return V.warning("请先进行测试, 等待测试完成后可查看日志");
|
|
192
|
+
$.value = !0;
|
|
192
193
|
break;
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
}, U = p(!1), oe = p(""), z = p(!1), B = p(""),
|
|
196
|
+
}, U = p(!1), oe = p(""), z = p(!1), B = p(""), le = p(""), ae = p(null), j = p([]), C = Q({
|
|
196
197
|
parsedConditions: [],
|
|
197
198
|
factorSelectExpr: ""
|
|
198
|
-
}),
|
|
199
|
+
}), Ce = () => {
|
|
199
200
|
U.value = !0, B.value = "";
|
|
200
|
-
},
|
|
201
|
-
|
|
201
|
+
}, be = () => {
|
|
202
|
+
le.value = "", B.value = "", j.value = [], Object.assign(C, {
|
|
202
203
|
parsedConditions: [],
|
|
203
204
|
factorSelectExpr: ""
|
|
204
205
|
});
|
|
205
|
-
},
|
|
206
|
+
}, ie = async () => {
|
|
206
207
|
var e, i;
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
209
|
-
return
|
|
210
|
-
z.value || (
|
|
211
|
-
baseUrl: (i =
|
|
208
|
+
const n = (e = oe.value) == null ? void 0 : e.trim();
|
|
209
|
+
if (!n)
|
|
210
|
+
return V.error("请输入脚本描述");
|
|
211
|
+
z.value || (be(), z.value = !0, await Ke({
|
|
212
|
+
baseUrl: (i = S == null ? void 0 : S.env) == null ? void 0 : i.VITE_BASE_URL,
|
|
212
213
|
token: Je(),
|
|
213
|
-
value:
|
|
214
|
-
sessionId:
|
|
215
|
-
callback: (
|
|
214
|
+
value: n,
|
|
215
|
+
sessionId: ae.value,
|
|
216
|
+
callback: (u, d) => {
|
|
216
217
|
var P;
|
|
217
|
-
switch (
|
|
218
|
+
switch (u) {
|
|
218
219
|
case "session": {
|
|
219
|
-
|
|
220
|
+
ae.value = d;
|
|
220
221
|
break;
|
|
221
222
|
}
|
|
222
223
|
case "node": {
|
|
223
|
-
const
|
|
224
|
-
|
|
224
|
+
const r = j.value.findIndex((v) => v.name === d.name);
|
|
225
|
+
r === -1 ? j.value.push(d) : j.value[r] = d;
|
|
225
226
|
break;
|
|
226
227
|
}
|
|
227
228
|
case "message": {
|
|
228
|
-
|
|
229
|
+
le.value = d;
|
|
229
230
|
break;
|
|
230
231
|
}
|
|
231
232
|
case "finish": {
|
|
232
233
|
z.value = !1;
|
|
233
234
|
try {
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
parsedConditions:
|
|
237
|
-
factorSelectExpr:
|
|
235
|
+
const r = JSON.parse(le.value), v = (P = r == null ? void 0 : r.factorScreen) == null ? void 0 : P.factorSelectExpr;
|
|
236
|
+
v ? Object.assign(C, {
|
|
237
|
+
parsedConditions: r.parsedConditions ?? [],
|
|
238
|
+
factorSelectExpr: v
|
|
238
239
|
}) : B.value = "AI 未能生成有效的因子脚本, 请调整描述后重试";
|
|
239
240
|
} catch {
|
|
240
241
|
B.value = "AI 返回结果解析失败, 请重试";
|
|
@@ -248,13 +249,13 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
251
|
}));
|
|
251
|
-
},
|
|
252
|
+
}, Ve = async () => {
|
|
252
253
|
var e, i;
|
|
253
|
-
if (!
|
|
254
|
+
if (!C.factorSelectExpr)
|
|
254
255
|
return;
|
|
255
256
|
if ((e = m.value) == null ? void 0 : e.getValue())
|
|
256
257
|
try {
|
|
257
|
-
await
|
|
258
|
+
await fe.confirm("当前编辑器已有内容, 将被 AI 生成结果覆盖, 是否继续?", "提示", {
|
|
258
259
|
confirmButtonText: "覆盖",
|
|
259
260
|
cancelButtonText: "取消",
|
|
260
261
|
type: "warning"
|
|
@@ -262,36 +263,36 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
262
263
|
} catch {
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
|
-
(i = m.value) == null || i.setValue(
|
|
266
|
-
},
|
|
266
|
+
(i = m.value) == null || i.setValue(C.factorSelectExpr), t.funcExpression = C.factorSelectExpr, U.value = !1, V.success("已插入到编辑器");
|
|
267
|
+
}, Se = () => {
|
|
267
268
|
k.value.open(m.value);
|
|
268
269
|
};
|
|
269
|
-
return
|
|
270
|
+
return Re(
|
|
270
271
|
() => A.value,
|
|
271
|
-
(
|
|
272
|
-
|
|
272
|
+
(n) => {
|
|
273
|
+
n || (k.value.close(), $.value = !1, U.value = !1);
|
|
273
274
|
}
|
|
274
275
|
), te({
|
|
275
|
-
open: (
|
|
276
|
+
open: (n) => {
|
|
276
277
|
A.value = !0, ue(() => {
|
|
277
278
|
var e;
|
|
278
|
-
if ((e = m.value) == null || e.resize(),
|
|
279
|
+
if ((e = m.value) == null || e.resize(), h.value = null, Object.assign(c, {
|
|
279
280
|
result: null,
|
|
280
281
|
detail: "",
|
|
281
282
|
code: ""
|
|
282
|
-
}),
|
|
283
|
+
}), n) {
|
|
283
284
|
const i = {
|
|
284
|
-
id:
|
|
285
|
-
funcName:
|
|
286
|
-
funcExpression:
|
|
285
|
+
id: n.id,
|
|
286
|
+
funcName: n.funcName,
|
|
287
|
+
funcExpression: n.funcExpression
|
|
287
288
|
};
|
|
288
289
|
L(i);
|
|
289
290
|
} else
|
|
290
|
-
|
|
291
|
+
_.value.length ? L(_.value[0]) : q();
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
|
-
}), (
|
|
294
|
-
const i =
|
|
294
|
+
}), (n, e) => {
|
|
295
|
+
const i = ve, u = de, d = _e, P = ge, r = We, v = qe, I = ce("st-monacoEditor"), T = Le, we = ce("st-varSelectDialog"), Ne = Pe;
|
|
295
296
|
return f(), F(T, {
|
|
296
297
|
"modal-class": "manage-dialog",
|
|
297
298
|
modelValue: A.value,
|
|
@@ -304,86 +305,86 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
304
305
|
"modal-penetrable": !0,
|
|
305
306
|
"show-close": !1
|
|
306
307
|
}, {
|
|
307
|
-
header:
|
|
308
|
-
s("div",
|
|
309
|
-
s("div",
|
|
308
|
+
header: l(({ titleId: a, titleClass: b }) => [
|
|
309
|
+
s("div", Ge, [
|
|
310
|
+
s("div", Qe, [
|
|
310
311
|
s("span", {
|
|
311
312
|
id: a,
|
|
312
|
-
class: W(
|
|
313
|
-
}, " 自定义函数管理面板 ", 10,
|
|
313
|
+
class: W(b)
|
|
314
|
+
}, " 自定义函数管理面板 ", 10, Xe)
|
|
314
315
|
]),
|
|
315
|
-
s("div",
|
|
316
|
-
|
|
316
|
+
s("div", Ye, [
|
|
317
|
+
o(i, {
|
|
317
318
|
onClick: e[0] || (e[0] = (re) => A.value = !1)
|
|
318
319
|
}, {
|
|
319
|
-
default:
|
|
320
|
-
|
|
320
|
+
default: l(() => [
|
|
321
|
+
o(g(ne))
|
|
321
322
|
]),
|
|
322
323
|
_: 1
|
|
323
324
|
})
|
|
324
325
|
])
|
|
325
326
|
])
|
|
326
327
|
]),
|
|
327
|
-
default:
|
|
328
|
-
s("div",
|
|
329
|
-
s("div",
|
|
330
|
-
s("div",
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
modelValue:
|
|
334
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) =>
|
|
328
|
+
default: l(() => [
|
|
329
|
+
s("div", Ze, [
|
|
330
|
+
s("div", et, [
|
|
331
|
+
s("div", tt, [
|
|
332
|
+
e[13] || (e[13] = s("span", null, "输入函数关键字", -1)),
|
|
333
|
+
o(u, {
|
|
334
|
+
modelValue: h.value,
|
|
335
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => h.value = a),
|
|
335
336
|
clearable: ""
|
|
336
337
|
}, null, 8, ["modelValue"]),
|
|
337
|
-
|
|
338
|
+
o(d, {
|
|
338
339
|
type: "primary",
|
|
339
340
|
onClick: q
|
|
340
341
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
x("新建")
|
|
343
|
-
]),
|
|
342
|
+
default: l(() => [...e[12] || (e[12] = [
|
|
343
|
+
x("新建", -1)
|
|
344
|
+
])]),
|
|
344
345
|
_: 1
|
|
345
346
|
})
|
|
346
347
|
]),
|
|
347
|
-
|
|
348
|
-
default:
|
|
349
|
-
|
|
348
|
+
o(v, { class: "list" }, {
|
|
349
|
+
default: l(() => [
|
|
350
|
+
_.value.length ? (f(!0), E(Y, { key: 0 }, Z(_.value, (a) => (f(), E("div", {
|
|
350
351
|
key: a.id,
|
|
351
|
-
class: W([{ "active-list-item":
|
|
352
|
+
class: W([{ "active-list-item": t.id === a.id }, "list-item"])
|
|
352
353
|
}, [
|
|
353
354
|
s("span", {
|
|
354
355
|
class: "func-name",
|
|
355
|
-
onClick: (
|
|
356
|
-
}, O(a.funcName), 9,
|
|
357
|
-
s("div",
|
|
358
|
-
|
|
359
|
-
default:
|
|
360
|
-
|
|
361
|
-
onClick: (
|
|
356
|
+
onClick: (b) => L(a)
|
|
357
|
+
}, O(a.funcName), 9, ot),
|
|
358
|
+
s("div", lt, [
|
|
359
|
+
o(i, null, {
|
|
360
|
+
default: l(() => [
|
|
361
|
+
o(g(pe), {
|
|
362
|
+
onClick: (b) => K(a)
|
|
362
363
|
}, null, 8, ["onClick"])
|
|
363
364
|
]),
|
|
364
365
|
_: 2
|
|
365
366
|
}, 1024),
|
|
366
|
-
|
|
367
|
+
o(P, {
|
|
367
368
|
title: "确认是否删除?",
|
|
368
369
|
"confirm-button-text": "确认",
|
|
369
370
|
"cancel-button-text": "取消",
|
|
370
|
-
onConfirm: (
|
|
371
|
+
onConfirm: (b) => y(a)
|
|
371
372
|
}, {
|
|
372
|
-
reference:
|
|
373
|
-
|
|
373
|
+
reference: l(() => [
|
|
374
|
+
o(i, {
|
|
374
375
|
onClick: ee(() => {
|
|
375
376
|
}, ["stop"])
|
|
376
377
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
|
|
378
|
+
default: l(() => [
|
|
379
|
+
o(g(me))
|
|
379
380
|
]),
|
|
380
381
|
_: 1
|
|
381
382
|
})
|
|
382
383
|
]),
|
|
383
|
-
_:
|
|
384
|
-
},
|
|
384
|
+
_: 1
|
|
385
|
+
}, 8, ["onConfirm"])
|
|
385
386
|
])
|
|
386
|
-
], 2))), 128)) : (f(), F(
|
|
387
|
+
], 2))), 128)) : (f(), F(r, {
|
|
387
388
|
key: 1,
|
|
388
389
|
description: "暂无数据"
|
|
389
390
|
}))
|
|
@@ -391,65 +392,65 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
391
392
|
_: 1
|
|
392
393
|
})
|
|
393
394
|
]),
|
|
394
|
-
s("div",
|
|
395
|
-
s("div",
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
modelValue:
|
|
399
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) =>
|
|
395
|
+
s("div", nt, [
|
|
396
|
+
s("div", st, [
|
|
397
|
+
e[19] || (e[19] = s("span", null, "函数名称:", -1)),
|
|
398
|
+
o(u, {
|
|
399
|
+
modelValue: t.funcName,
|
|
400
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => t.funcName = a)
|
|
400
401
|
}, null, 8, ["modelValue"]),
|
|
401
|
-
s("div",
|
|
402
|
-
|
|
402
|
+
s("div", at, [
|
|
403
|
+
o(d, {
|
|
403
404
|
type: "primary",
|
|
404
405
|
onClick: g(G),
|
|
405
|
-
loading:
|
|
406
|
+
loading: N.save
|
|
406
407
|
}, {
|
|
407
|
-
default:
|
|
408
|
-
x(" 保存 ")
|
|
409
|
-
]),
|
|
408
|
+
default: l(() => [...e[14] || (e[14] = [
|
|
409
|
+
x(" 保存 ", -1)
|
|
410
|
+
])]),
|
|
410
411
|
_: 1
|
|
411
412
|
}, 8, ["onClick", "loading"]),
|
|
412
|
-
|
|
413
|
-
loading:
|
|
414
|
-
onClick: e[3] || (e[3] = (a) =>
|
|
413
|
+
o(d, {
|
|
414
|
+
loading: N.test,
|
|
415
|
+
onClick: e[3] || (e[3] = (a) => se("submit"))
|
|
415
416
|
}, {
|
|
416
|
-
default:
|
|
417
|
-
x(" 测试 ")
|
|
418
|
-
]),
|
|
417
|
+
default: l(() => [...e[15] || (e[15] = [
|
|
418
|
+
x(" 测试 ", -1)
|
|
419
|
+
])]),
|
|
419
420
|
_: 1
|
|
420
421
|
}, 8, ["loading"]),
|
|
421
|
-
|
|
422
|
-
icon: g(
|
|
423
|
-
onClick: e[4] || (e[4] = (a) =>
|
|
422
|
+
o(d, {
|
|
423
|
+
icon: g($e),
|
|
424
|
+
onClick: e[4] || (e[4] = (a) => se("log"))
|
|
424
425
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
x(" 日志明细 ")
|
|
427
|
-
]),
|
|
426
|
+
default: l(() => [...e[16] || (e[16] = [
|
|
427
|
+
x(" 日志明细 ", -1)
|
|
428
|
+
])]),
|
|
428
429
|
_: 1
|
|
429
430
|
}, 8, ["icon"]),
|
|
430
|
-
|
|
431
|
+
o(d, {
|
|
431
432
|
type: "primary",
|
|
432
|
-
icon: g(
|
|
433
|
-
onClick:
|
|
433
|
+
icon: g(De),
|
|
434
|
+
onClick: Ce
|
|
434
435
|
}, {
|
|
435
|
-
default:
|
|
436
|
-
x(" AI 生成 ")
|
|
437
|
-
]),
|
|
436
|
+
default: l(() => [...e[17] || (e[17] = [
|
|
437
|
+
x(" AI 生成 ", -1)
|
|
438
|
+
])]),
|
|
438
439
|
_: 1
|
|
439
440
|
}, 8, ["icon"]),
|
|
440
|
-
|
|
441
|
+
o(d, {
|
|
441
442
|
type: "primary",
|
|
442
|
-
onClick:
|
|
443
|
+
onClick: Se
|
|
443
444
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
x(" 变量选择器 ")
|
|
446
|
-
]),
|
|
445
|
+
default: l(() => [...e[18] || (e[18] = [
|
|
446
|
+
x(" 变量选择器 ", -1)
|
|
447
|
+
])]),
|
|
447
448
|
_: 1
|
|
448
449
|
})
|
|
449
450
|
])
|
|
450
451
|
]),
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
e[20] || (e[20] = s("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)),
|
|
453
|
+
o(I, {
|
|
453
454
|
ref_key: "stMonacoEditorRef",
|
|
454
455
|
ref: m,
|
|
455
456
|
language: "lua",
|
|
@@ -457,7 +458,7 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
457
458
|
}, null, 512)
|
|
458
459
|
])
|
|
459
460
|
]),
|
|
460
|
-
|
|
461
|
+
o(T, {
|
|
461
462
|
"modal-class": "ai-dialog",
|
|
462
463
|
modelValue: U.value,
|
|
463
464
|
"onUpdate:modelValue": e[7] || (e[7] = (a) => U.value = a),
|
|
@@ -471,63 +472,63 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
471
472
|
"show-close": !1,
|
|
472
473
|
"close-on-click-modal": !1
|
|
473
474
|
}, {
|
|
474
|
-
header:
|
|
475
|
-
s("div",
|
|
476
|
-
s("div",
|
|
475
|
+
header: l(({ titleId: a, titleClass: b }) => [
|
|
476
|
+
s("div", it, [
|
|
477
|
+
s("div", rt, [
|
|
477
478
|
s("span", {
|
|
478
479
|
id: a,
|
|
479
|
-
class: W(
|
|
480
|
-
}, " AI 生成脚本 ", 10,
|
|
480
|
+
class: W(b)
|
|
481
|
+
}, " AI 生成脚本 ", 10, ut)
|
|
481
482
|
]),
|
|
482
|
-
s("div",
|
|
483
|
-
|
|
483
|
+
s("div", ct, [
|
|
484
|
+
o(i, {
|
|
484
485
|
onClick: e[5] || (e[5] = (re) => U.value = !1)
|
|
485
486
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
|
|
487
|
+
default: l(() => [
|
|
488
|
+
o(g(ne))
|
|
488
489
|
]),
|
|
489
490
|
_: 1
|
|
490
491
|
})
|
|
491
492
|
])
|
|
492
493
|
])
|
|
493
494
|
]),
|
|
494
|
-
footer:
|
|
495
|
-
s("div",
|
|
496
|
-
|
|
495
|
+
footer: l(() => [
|
|
496
|
+
s("div", _t, [
|
|
497
|
+
C.factorSelectExpr ? (f(), F(d, {
|
|
497
498
|
key: 0,
|
|
498
|
-
onClick:
|
|
499
|
+
onClick: ie,
|
|
499
500
|
disabled: z.value
|
|
500
501
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
x(" 重新生成 ")
|
|
503
|
-
]),
|
|
502
|
+
default: l(() => [...e[21] || (e[21] = [
|
|
503
|
+
x(" 重新生成 ", -1)
|
|
504
|
+
])]),
|
|
504
505
|
_: 1
|
|
505
506
|
}, 8, ["disabled"])) : X("", !0),
|
|
506
|
-
|
|
507
|
+
C.factorSelectExpr ? (f(), F(d, {
|
|
507
508
|
key: 1,
|
|
508
509
|
type: "primary",
|
|
509
|
-
onClick:
|
|
510
|
+
onClick: Ve
|
|
510
511
|
}, {
|
|
511
|
-
default:
|
|
512
|
-
x(" 插入到编辑器 ")
|
|
513
|
-
]),
|
|
512
|
+
default: l(() => [...e[22] || (e[22] = [
|
|
513
|
+
x(" 插入到编辑器 ", -1)
|
|
514
|
+
])]),
|
|
514
515
|
_: 1
|
|
515
516
|
})) : (f(), F(d, {
|
|
516
517
|
key: 2,
|
|
517
518
|
type: "primary",
|
|
518
519
|
loading: z.value,
|
|
519
|
-
onClick:
|
|
520
|
+
onClick: ie
|
|
520
521
|
}, {
|
|
521
|
-
default:
|
|
522
|
-
x(" 生成 ")
|
|
523
|
-
]),
|
|
522
|
+
default: l(() => [...e[23] || (e[23] = [
|
|
523
|
+
x(" 生成 ", -1)
|
|
524
|
+
])]),
|
|
524
525
|
_: 1
|
|
525
526
|
}, 8, ["loading"]))
|
|
526
527
|
])
|
|
527
528
|
]),
|
|
528
|
-
default:
|
|
529
|
-
s("div",
|
|
530
|
-
|
|
529
|
+
default: l(() => [
|
|
530
|
+
s("div", dt, [
|
|
531
|
+
o(u, {
|
|
531
532
|
modelValue: oe.value,
|
|
532
533
|
"onUpdate:modelValue": e[6] || (e[6] = (a) => oe.value = a),
|
|
533
534
|
type: "textarea",
|
|
@@ -535,7 +536,7 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
535
536
|
placeholder: "用自然语言描述脚本逻辑, 例: 收盘价大于10",
|
|
536
537
|
disabled: z.value
|
|
537
538
|
}, null, 8, ["modelValue", "disabled"]),
|
|
538
|
-
j.value.length ? (f(), E("div",
|
|
539
|
+
j.value.length ? (f(), E("div", ft, [
|
|
539
540
|
(f(!0), E(Y, null, Z(j.value, (a) => (f(), E("div", {
|
|
540
541
|
key: a.name,
|
|
541
542
|
class: "node-item"
|
|
@@ -544,42 +545,42 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
544
545
|
key: 0,
|
|
545
546
|
class: "success"
|
|
546
547
|
}, {
|
|
547
|
-
default:
|
|
548
|
-
|
|
548
|
+
default: l(() => [
|
|
549
|
+
o(g(Ie))
|
|
549
550
|
]),
|
|
550
551
|
_: 1
|
|
551
552
|
})) : (f(), F(i, {
|
|
552
553
|
key: 1,
|
|
553
554
|
class: "is-loading executing"
|
|
554
555
|
}, {
|
|
555
|
-
default:
|
|
556
|
-
|
|
556
|
+
default: l(() => [
|
|
557
|
+
o(g(Fe))
|
|
557
558
|
]),
|
|
558
559
|
_: 1
|
|
559
560
|
})),
|
|
560
561
|
s("span", null, O(a.name), 1)
|
|
561
562
|
]))), 128))
|
|
562
563
|
])) : X("", !0),
|
|
563
|
-
B.value ? (f(), E("div",
|
|
564
|
-
|
|
565
|
-
(f(!0), E(Y, null, Z(
|
|
566
|
-
key:
|
|
564
|
+
B.value ? (f(), E("div", pt, " ❌ " + O(B.value), 1)) : X("", !0),
|
|
565
|
+
C.factorSelectExpr ? (f(), E("div", mt, [
|
|
566
|
+
(f(!0), E(Y, null, Z(C.parsedConditions, (a, b) => (f(), E("div", {
|
|
567
|
+
key: b,
|
|
567
568
|
class: "parsed-condition"
|
|
568
569
|
}, O(a), 1))), 128)),
|
|
569
|
-
s("pre",
|
|
570
|
+
s("pre", vt, O(C.factorSelectExpr), 1)
|
|
570
571
|
])) : X("", !0)
|
|
571
572
|
])
|
|
572
573
|
]),
|
|
573
574
|
_: 1
|
|
574
575
|
}, 8, ["modelValue"]),
|
|
575
|
-
|
|
576
|
+
o(we, {
|
|
576
577
|
ref_key: "stVarSelectDialogRef",
|
|
577
578
|
ref: k
|
|
578
579
|
}, null, 512),
|
|
579
|
-
|
|
580
|
+
o(T, {
|
|
580
581
|
"modal-class": "log-dialog",
|
|
581
|
-
modelValue:
|
|
582
|
-
"onUpdate:modelValue": e[10] || (e[10] = (a) =>
|
|
582
|
+
modelValue: $.value,
|
|
583
|
+
"onUpdate:modelValue": e[10] || (e[10] = (a) => $.value = a),
|
|
583
584
|
width: "830",
|
|
584
585
|
"align-center": "",
|
|
585
586
|
"append-to-body": "",
|
|
@@ -589,56 +590,56 @@ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "cust
|
|
|
589
590
|
"modal-penetrable": !0,
|
|
590
591
|
"show-close": !1
|
|
591
592
|
}, {
|
|
592
|
-
header:
|
|
593
|
-
s("div",
|
|
594
|
-
s("div",
|
|
593
|
+
header: l(({ titleId: a, titleClass: b }) => [
|
|
594
|
+
s("div", gt, [
|
|
595
|
+
s("div", yt, [
|
|
595
596
|
s("span", {
|
|
596
597
|
id: a,
|
|
597
|
-
class: W(
|
|
598
|
-
}, " 日志明细 ", 10,
|
|
598
|
+
class: W(b)
|
|
599
|
+
}, " 日志明细 ", 10, xt)
|
|
599
600
|
]),
|
|
600
|
-
s("div",
|
|
601
|
-
|
|
602
|
-
onClick: e[8] || (e[8] = (re) =>
|
|
601
|
+
s("div", Et, [
|
|
602
|
+
o(i, {
|
|
603
|
+
onClick: e[8] || (e[8] = (re) => $.value = !1)
|
|
603
604
|
}, {
|
|
604
|
-
default:
|
|
605
|
-
|
|
605
|
+
default: l(() => [
|
|
606
|
+
o(g(ne))
|
|
606
607
|
]),
|
|
607
608
|
_: 1
|
|
608
609
|
})
|
|
609
610
|
])
|
|
610
611
|
])
|
|
611
612
|
]),
|
|
612
|
-
footer:
|
|
613
|
-
s("div",
|
|
614
|
-
|
|
615
|
-
onClick: e[9] || (e[9] = (a) =>
|
|
613
|
+
footer: l(() => [
|
|
614
|
+
s("div", ht, [
|
|
615
|
+
o(d, {
|
|
616
|
+
onClick: e[9] || (e[9] = (a) => $.value = !1)
|
|
616
617
|
}, {
|
|
617
|
-
default:
|
|
618
|
-
x(" 关闭 ")
|
|
619
|
-
]),
|
|
618
|
+
default: l(() => [...e[24] || (e[24] = [
|
|
619
|
+
x(" 关闭 ", -1)
|
|
620
|
+
])]),
|
|
620
621
|
_: 1
|
|
621
622
|
})
|
|
622
623
|
])
|
|
623
624
|
]),
|
|
624
|
-
default:
|
|
625
|
-
s("div",
|
|
626
|
-
|
|
625
|
+
default: l(() => [
|
|
626
|
+
s("div", kt, [
|
|
627
|
+
o(v, {
|
|
627
628
|
class: "code",
|
|
628
629
|
height: "600px"
|
|
629
630
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
s("pre", null, O(
|
|
631
|
+
default: l(() => [
|
|
632
|
+
s("pre", null, O(c.code), 1)
|
|
632
633
|
]),
|
|
633
634
|
_: 1
|
|
634
635
|
}),
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
default:
|
|
636
|
+
o(Ne, { direction: "vertical" }),
|
|
637
|
+
o(v, { height: "600px" }, {
|
|
638
|
+
default: l(() => [
|
|
638
639
|
s("pre", {
|
|
639
|
-
class: W(
|
|
640
|
-
}, O(
|
|
641
|
-
${
|
|
640
|
+
class: W(c.result === 1 ? "success-log" : "error-log")
|
|
641
|
+
}, O(c.result === 1 ? `✅️ 测试通过
|
|
642
|
+
${c.detail}` : c.detail), 3)
|
|
642
643
|
]),
|
|
643
644
|
_: 1
|
|
644
645
|
})
|
|
@@ -651,124 +652,124 @@ ${u.detail}` : u.detail), 3)
|
|
|
651
652
|
}, 8, ["modelValue"]);
|
|
652
653
|
};
|
|
653
654
|
}
|
|
654
|
-
},
|
|
655
|
-
const
|
|
655
|
+
}, bt = /* @__PURE__ */ xe(Ct, [["__scopeId", "data-v-5797123f"]]);
|
|
656
|
+
const Vt = { class: "custom-function" }, St = { class: "func-option" }, wt = { class: "icons" }, Nt = {
|
|
656
657
|
__name: "index",
|
|
657
658
|
props: {
|
|
658
659
|
size: { type: String, default: "small" },
|
|
659
660
|
selectWidth: { type: String, default: "200px" }
|
|
660
661
|
},
|
|
661
662
|
emits: ["insert", "actionState"],
|
|
662
|
-
setup(
|
|
663
|
-
const { request: J } =
|
|
664
|
-
const { body:
|
|
665
|
-
if (
|
|
663
|
+
setup(D, { emit: te }) {
|
|
664
|
+
const { request: J } = ye("stConfig"), S = p(null), R = te, m = p(null), k = p(""), w = p([]), M = async () => {
|
|
665
|
+
const { body: _ } = await J.post("/common/qt/querySearchFunctions");
|
|
666
|
+
if (w.value = _ ?? [], m.value === null)
|
|
666
667
|
k.value = "";
|
|
667
668
|
else {
|
|
668
|
-
const
|
|
669
|
-
k.value =
|
|
669
|
+
const t = w.value.find(({ id: c }) => c === m.value);
|
|
670
|
+
k.value = t ? t.funcName : "";
|
|
670
671
|
}
|
|
671
|
-
}, A = (
|
|
672
|
-
var
|
|
673
|
-
|
|
674
|
-
},
|
|
672
|
+
}, A = (_) => {
|
|
673
|
+
var t;
|
|
674
|
+
_ ? m.value = (t = w.value.find((c) => c.funcName === _)) == null ? void 0 : t.id : m.value = null;
|
|
675
|
+
}, N = () => {
|
|
675
676
|
if (!k.value)
|
|
676
|
-
return
|
|
677
|
-
const { funcName:
|
|
678
|
-
R("insert",
|
|
679
|
-
},
|
|
680
|
-
switch (
|
|
677
|
+
return V.error("请先选择自定义函数后, 再执行插入");
|
|
678
|
+
const { funcName: _, funcExpression: t } = w.value.find((c) => c.funcName === k.value);
|
|
679
|
+
R("insert", _, t);
|
|
680
|
+
}, h = async (_, t) => {
|
|
681
|
+
switch (_) {
|
|
681
682
|
case "open": {
|
|
682
|
-
|
|
683
|
+
S.value.open(), R("actionState", "因子筛选", "函数管理");
|
|
683
684
|
break;
|
|
684
685
|
}
|
|
685
686
|
case "copy": {
|
|
686
|
-
const
|
|
687
|
+
const c = {
|
|
687
688
|
id: null,
|
|
688
|
-
funcName: `${
|
|
689
|
-
funcExpression:
|
|
689
|
+
funcName: `${t.funcName}-复制`,
|
|
690
|
+
funcExpression: t.funcExpression
|
|
690
691
|
};
|
|
691
|
-
|
|
692
|
+
S.value.open(c);
|
|
692
693
|
break;
|
|
693
694
|
}
|
|
694
695
|
case "edit": {
|
|
695
|
-
const
|
|
696
|
-
id:
|
|
697
|
-
funcName:
|
|
698
|
-
funcExpression:
|
|
696
|
+
const c = {
|
|
697
|
+
id: t.id,
|
|
698
|
+
funcName: t.funcName,
|
|
699
|
+
funcExpression: t.funcExpression
|
|
699
700
|
};
|
|
700
|
-
|
|
701
|
+
S.value.open(c);
|
|
701
702
|
break;
|
|
702
703
|
}
|
|
703
704
|
case "delete": {
|
|
704
|
-
await J.post("/common/qt/deleteSearchFunctionById", { id:
|
|
705
|
+
await J.post("/common/qt/deleteSearchFunctionById", { id: t.id }), M();
|
|
705
706
|
break;
|
|
706
707
|
}
|
|
707
708
|
}
|
|
708
709
|
};
|
|
709
|
-
return
|
|
710
|
+
return Me(() => {
|
|
710
711
|
M();
|
|
711
|
-
}), (
|
|
712
|
-
const
|
|
713
|
-
return f(), E("div",
|
|
714
|
-
|
|
712
|
+
}), (_, t) => {
|
|
713
|
+
const c = ve, $ = ge, q = Ae, L = ze, K = _e;
|
|
714
|
+
return f(), E("div", Vt, [
|
|
715
|
+
o(L, {
|
|
715
716
|
modelValue: k.value,
|
|
716
|
-
"onUpdate:modelValue":
|
|
717
|
-
size:
|
|
717
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => k.value = y),
|
|
718
|
+
size: D.size,
|
|
718
719
|
placeholder: "自定义函数",
|
|
719
720
|
"no-match-text": "无匹配选项",
|
|
720
721
|
"no-data-text": "无选项数据",
|
|
721
722
|
clearable: "",
|
|
722
723
|
filterable: "",
|
|
723
724
|
onChange: A,
|
|
724
|
-
style:
|
|
725
|
+
style: Ue({ width: D.selectWidth })
|
|
725
726
|
}, {
|
|
726
|
-
default:
|
|
727
|
-
(f(!0), E(Y, null, Z(
|
|
727
|
+
default: l(() => [
|
|
728
|
+
(f(!0), E(Y, null, Z(w.value, (y) => (f(), F(q, {
|
|
728
729
|
key: y.id,
|
|
729
730
|
label: y.funcName,
|
|
730
731
|
value: y.funcName,
|
|
731
|
-
onClick:
|
|
732
|
+
onClick: N
|
|
732
733
|
}, {
|
|
733
|
-
default:
|
|
734
|
-
s("div",
|
|
734
|
+
default: l(() => [
|
|
735
|
+
s("div", St, [
|
|
735
736
|
s("span", null, O(y.funcName), 1),
|
|
736
|
-
s("div",
|
|
737
|
-
|
|
738
|
-
onClick: ee((G) =>
|
|
737
|
+
s("div", wt, [
|
|
738
|
+
o(c, {
|
|
739
|
+
onClick: ee((G) => h("copy", y), ["stop"])
|
|
739
740
|
}, {
|
|
740
|
-
default:
|
|
741
|
-
|
|
741
|
+
default: l(() => [
|
|
742
|
+
o(g(pe))
|
|
742
743
|
]),
|
|
743
|
-
_:
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
onClick: ee((G) =>
|
|
744
|
+
_: 1
|
|
745
|
+
}, 8, ["onClick"]),
|
|
746
|
+
o(c, {
|
|
747
|
+
onClick: ee((G) => h("edit", y), ["stop"])
|
|
747
748
|
}, {
|
|
748
|
-
default:
|
|
749
|
-
|
|
749
|
+
default: l(() => [
|
|
750
|
+
o(g(Oe))
|
|
750
751
|
]),
|
|
751
|
-
_:
|
|
752
|
-
},
|
|
753
|
-
|
|
752
|
+
_: 1
|
|
753
|
+
}, 8, ["onClick"]),
|
|
754
|
+
o($, {
|
|
754
755
|
title: "确认是否删除?",
|
|
755
756
|
"confirm-button-text": "确认",
|
|
756
757
|
"cancel-button-text": "取消",
|
|
757
|
-
onConfirm: (G) =>
|
|
758
|
+
onConfirm: (G) => h("delete", y)
|
|
758
759
|
}, {
|
|
759
|
-
reference:
|
|
760
|
-
|
|
760
|
+
reference: l(() => [
|
|
761
|
+
o(c, {
|
|
761
762
|
onClick: ee(() => {
|
|
762
763
|
}, ["stop"])
|
|
763
764
|
}, {
|
|
764
|
-
default:
|
|
765
|
-
|
|
765
|
+
default: l(() => [
|
|
766
|
+
o(g(me))
|
|
766
767
|
]),
|
|
767
768
|
_: 1
|
|
768
769
|
})
|
|
769
770
|
]),
|
|
770
|
-
_:
|
|
771
|
-
},
|
|
771
|
+
_: 1
|
|
772
|
+
}, 8, ["onConfirm"])
|
|
772
773
|
])
|
|
773
774
|
])
|
|
774
775
|
]),
|
|
@@ -777,40 +778,40 @@ const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { c
|
|
|
777
778
|
]),
|
|
778
779
|
_: 1
|
|
779
780
|
}, 8, ["modelValue", "size", "style"]),
|
|
780
|
-
|
|
781
|
+
o(K, {
|
|
781
782
|
type: "primary",
|
|
782
|
-
size:
|
|
783
|
-
onClick:
|
|
783
|
+
size: D.size,
|
|
784
|
+
onClick: N
|
|
784
785
|
}, {
|
|
785
|
-
default:
|
|
786
|
-
x(" 插入 ")
|
|
787
|
-
]),
|
|
786
|
+
default: l(() => [...t[2] || (t[2] = [
|
|
787
|
+
x(" 插入 ", -1)
|
|
788
|
+
])]),
|
|
788
789
|
_: 1
|
|
789
790
|
}, 8, ["size"]),
|
|
790
|
-
|
|
791
|
+
o(K, {
|
|
791
792
|
type: "primary",
|
|
792
|
-
size:
|
|
793
|
-
onClick:
|
|
793
|
+
size: D.size,
|
|
794
|
+
onClick: t[1] || (t[1] = (y) => h("open"))
|
|
794
795
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
x(" 函数管理 ")
|
|
797
|
-
]),
|
|
796
|
+
default: l(() => [...t[3] || (t[3] = [
|
|
797
|
+
x(" 函数管理 ", -1)
|
|
798
|
+
])]),
|
|
798
799
|
_: 1
|
|
799
800
|
}, 8, ["size"]),
|
|
800
|
-
|
|
801
|
+
o(bt, {
|
|
801
802
|
ref_key: "ManageDialogRef",
|
|
802
|
-
ref:
|
|
803
|
-
data:
|
|
803
|
+
ref: S,
|
|
804
|
+
data: w.value,
|
|
804
805
|
onRefreshData: M
|
|
805
806
|
}, null, 8, ["data"])
|
|
806
807
|
]);
|
|
807
808
|
};
|
|
808
809
|
}
|
|
809
|
-
},
|
|
810
|
-
install(
|
|
811
|
-
|
|
810
|
+
}, $t = /* @__PURE__ */ xe(Nt, [["__scopeId", "data-v-d01721a6"]]), yo = {
|
|
811
|
+
install(D) {
|
|
812
|
+
D.component("st-customFunction", $t);
|
|
812
813
|
}
|
|
813
814
|
};
|
|
814
815
|
export {
|
|
815
|
-
|
|
816
|
+
yo as default
|
|
816
817
|
};
|