st-comp 0.0.219 → 0.0.221
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/CustomFunction.cjs +5 -5
- package/es/CustomFunction.js +362 -299
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +25 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +10 -10
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +425 -394
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +15 -15
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +9 -9
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +11 -11
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +13 -13
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +29 -29
- package/es/User.cjs +1 -1
- package/es/User.js +18 -18
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +17 -17
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +26 -26
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +9 -9
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +5 -5
- package/es/{_initCloneObject-6429d105.cjs → _initCloneObject-52b6a510.cjs} +1 -1
- package/es/{_initCloneObject-4f4401b6.js → _initCloneObject-eaef9418.js} +2 -2
- package/es/{config-provider-285ead82.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-e1736401.js → config-provider-b16efd62.js} +3 -3
- package/es/{dropdown-6ba4a93d.cjs → dropdown-071c5d7e.cjs} +1 -1
- package/es/{dropdown-73ca08ef.js → dropdown-a59bba73.js} +2 -2
- package/es/{el-autocomplete-aeb7da33.cjs → el-autocomplete-a07e9439.cjs} +1 -1
- package/es/{el-autocomplete-2180fc5c.js → el-autocomplete-ba808eb6.js} +5 -5
- package/es/{el-button-e8b725f0.js → el-button-c95adb85.js} +3 -3
- package/es/{el-button-0dbb2d4a.cjs → el-button-eec58cff.cjs} +1 -1
- package/es/{el-checkbox-df0def51.js → el-checkbox-7421ccd3.js} +3 -3
- package/es/{el-checkbox-b8c558ca.cjs → el-checkbox-c25236a6.cjs} +1 -1
- package/es/{el-dialog-4330c5bd.js → el-dialog-41ab8417.js} +4 -4
- package/es/{el-dialog-5028c704.cjs → el-dialog-ae86edb8.cjs} +1 -1
- package/es/{el-form-item-f7e8255e.cjs → el-form-item-c3fe189b.cjs} +1 -1
- package/es/{el-form-item-b816e9f3.js → el-form-item-c53c374d.js} +5 -5
- package/es/{el-input-bd1ce1e9.js → el-input-2f75c4ba.js} +4 -4
- package/es/{el-input-2e9268ac.cjs → el-input-7fd293af.cjs} +1 -1
- package/es/{el-input-number-153a3742.cjs → el-input-number-22e21d16.cjs} +1 -1
- package/es/{el-input-number-088d2c66.js → el-input-number-5193fe6d.js} +4 -4
- package/es/{el-loading-03240202.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-d0dac75f.js → el-loading-f6022062.js} +1 -1
- package/es/{el-menu-item-b843f5ee.cjs → el-menu-item-17dc717e.cjs} +1 -1
- package/es/{el-menu-item-c7202455.js → el-menu-item-7e881203.js} +4 -4
- package/es/{el-message-3d8d9810.cjs → el-message-5e6a6be9.cjs} +1 -1
- package/es/{el-message-box-7a952ec7.js → el-message-box-a93d2f6a.js} +9 -9
- package/es/{el-message-box-aafae7ee.cjs → el-message-box-c10adb52.cjs} +1 -1
- package/es/{el-message-290a93ff.js → el-message-e544a8f5.js} +5 -5
- package/es/{el-overlay-f72f3f3d.js → el-overlay-09ad71cd.js} +3 -3
- package/es/{el-overlay-ab0b3c66.cjs → el-overlay-9e34965f.cjs} +1 -1
- package/es/{el-popconfirm-a4a50f14.cjs → el-popconfirm-70a976bf.cjs} +1 -1
- package/es/{el-popconfirm-bdcb65fe.js → el-popconfirm-81dcd202.js} +4 -4
- package/es/{el-popper-b0ef8ed3.js → el-popper-b4f97157.js} +1 -1
- package/es/{el-popper-b37ec1ef.cjs → el-popper-b6c99b28.cjs} +1 -1
- package/es/{el-segmented-d0a61f41.js → el-segmented-b868d074.js} +2 -2
- package/es/{el-segmented-f505fd25.cjs → el-segmented-f8fce9ac.cjs} +1 -1
- package/es/{el-select-d63dc0f6.js → el-select-95627997.js} +8 -8
- package/es/{el-select-91145989.cjs → el-select-d8d91db1.cjs} +1 -1
- package/es/{el-table-column-5ad33084.js → el-table-column-376cd907.js} +9 -9
- package/es/{el-table-column-4dae58f0.cjs → el-table-column-c974cb96.cjs} +1 -1
- package/es/{el-tag-2da70fa3.js → el-tag-66cab138.js} +2 -2
- package/es/{el-tag-891b703d.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/{el-text-d42a3be4.js → el-text-ac60d0f2.js} +1 -1
- package/es/{el-text-cfd2f326.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-eb3ca89a.cjs → index-11547a0c.cjs} +1 -1
- package/es/{index-23d35abc.js → index-1f7d4f70.js} +1 -1
- package/es/{index-f50a50b3.cjs → index-298075cf.cjs} +1 -1
- package/es/{index-af3c738f.js → index-57672682.js} +2 -2
- package/es/{index-5108cae0.js → index-844bdd85.js} +2 -2
- package/es/{index-d6a848ac.js → index-88546436.js} +2 -2
- package/es/{index-25bc46bb.cjs → index-9b9ef5dd.cjs} +1 -1
- package/es/{index-598d418b.js → index-a871c3eb.js} +111 -92
- package/es/{index-6c252a43.cjs → index-c108567d.cjs} +1 -1
- package/es/{index-0902dd2e.js → index-d91dc23f.js} +2 -2
- package/es/{index-b99c0c42.js → index-e5566b94.js} +1 -1
- package/es/{index-d7928b14.cjs → index-f3562b52.cjs} +1 -1
- package/es/{index-7a26fd8b.cjs → index-f967d6c1.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-b995a440.js → use-form-common-props-815d48a6.js} +12 -12
- package/es/{use-form-common-props-3b387353.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
- package/es/{use-global-config-2a4156cd.cjs → use-global-config-30d7d8ce.cjs} +1 -1
- package/es/{use-global-config-e20aee8c.js → use-global-config-b5e9d3d5.js} +2 -2
- package/es/{validator-7dacff4f.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-6d23708b.js → validator-764a9db0.js} +1 -1
- package/es/{zh-cn-a3c3833a.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-7530f035.js → zh-cn-e963c628.js} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +164 -164
- package/lib/{index-f90c4e75.js → index-d3e408b3.js} +16052 -15940
- package/lib/{python-8759beff.js → python-34cb78d0.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/components/ManageDialog.vue +31 -30
- package/packages/CustomFunction/index.vue +59 -4
- package/packages/KlineBasic/components/AverageTips/index.vue +33 -0
- package/packages/KlineBasic/components/KlineSub/index.vue +2 -2
- package/packages/KlineBasic/components/Tips/index.vue +21 -3
- package/es/index-7a85500c.cjs +0 -1
package/es/CustomFunction.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import "./base-a5af3db3.js";
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-tag-
|
|
4
|
-
import { E as
|
|
2
|
+
import { E as oe } from "./el-button-c95adb85.js";
|
|
3
|
+
import "./el-tag-66cab138.js";
|
|
4
|
+
import { E as ye, a as Ee } from "./el-select-95627997.js";
|
|
5
5
|
import "./el-scrollbar-323542e7.js";
|
|
6
|
-
import "./el-popper-
|
|
7
|
-
import {
|
|
8
|
-
import { E as Ce } from "./el-divider-4e059794.js";
|
|
9
|
-
import { E as ke } from "./el-dialog-4330c5bd.js";
|
|
10
|
-
import "./el-overlay-f72f3f3d.js";
|
|
11
|
-
import { E as we } from "./el-empty-33cb66f1.js";
|
|
12
|
-
import { E as Se } from "./el-popconfirm-bdcb65fe.js";
|
|
6
|
+
import "./el-popper-b4f97157.js";
|
|
7
|
+
import { E as ne } from "./el-popconfirm-81dcd202.js";
|
|
13
8
|
import "./el-popover-4ed993c7.js";
|
|
14
|
-
import {
|
|
15
|
-
import { c as
|
|
16
|
-
import {
|
|
17
|
-
import { E } from "./el-
|
|
18
|
-
import
|
|
19
|
-
import { E as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
9
|
+
import { inject as le, ref as f, reactive as J, computed as be, watch as Ce, nextTick as ee, resolveComponent as Q, openBlock as I, createBlock as Y, withCtx as n, createElementVNode as l, normalizeClass as B, createVNode as t, unref as h, createTextVNode as k, createElementBlock as P, Fragment as se, renderList as ae, toDisplayString as L, withModifiers as W, pushScopeId as Ve, popScopeId as ke, h as U, onMounted as we, normalizeStyle as $e } from "vue";
|
|
10
|
+
import { c as X, d as ie, a as ce, b as Ne, E as re, e as Se } from "./index-a871c3eb.js";
|
|
11
|
+
import { E as De } from "./el-divider-4e059794.js";
|
|
12
|
+
import { E as Fe } from "./el-dialog-41ab8417.js";
|
|
13
|
+
import "./el-overlay-09ad71cd.js";
|
|
14
|
+
import { E as ze } from "./el-empty-33cb66f1.js";
|
|
15
|
+
import { E as te } from "./el-input-2f75c4ba.js";
|
|
16
|
+
import { G as Ie } from "./index-7ed0999e.js";
|
|
17
|
+
import { E as V } from "./el-message-e544a8f5.js";
|
|
18
|
+
import { E as Me } from "./el-message-box-a93d2f6a.js";
|
|
19
|
+
import { E as Oe, a as Be } from "./el-form-item-c53c374d.js";
|
|
20
|
+
import { _ as ue } from "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import { E as Ue } from "./index-844bdd85.js";
|
|
22
22
|
import "./index-2e331d74.js";
|
|
23
|
-
import "./use-global-config-
|
|
24
|
-
import "./use-form-common-props-
|
|
23
|
+
import "./use-global-config-b5e9d3d5.js";
|
|
24
|
+
import "./use-form-common-props-815d48a6.js";
|
|
25
25
|
import "./index-960806da.js";
|
|
26
26
|
import "./index-d77a7336.js";
|
|
27
|
-
import "./index-
|
|
27
|
+
import "./index-e5566b94.js";
|
|
28
28
|
import "./index-657047bb.js";
|
|
29
|
-
import "./index-
|
|
29
|
+
import "./index-57672682.js";
|
|
30
30
|
import "./castArray-7741a212.js";
|
|
31
|
-
import "./index-
|
|
31
|
+
import "./index-d91dc23f.js";
|
|
32
32
|
import "./scroll-679bd6bf.js";
|
|
33
33
|
import "./debounce-8d53f4dd.js";
|
|
34
34
|
import "./vnode-5ddb7ed1.js";
|
|
35
35
|
import "./typescript-7ae59c4c.js";
|
|
36
|
-
import "./config-provider-
|
|
37
|
-
import "./validator-
|
|
38
|
-
import "./_initCloneObject-
|
|
39
|
-
const
|
|
36
|
+
import "./config-provider-b16efd62.js";
|
|
37
|
+
import "./validator-764a9db0.js";
|
|
38
|
+
import "./_initCloneObject-eaef9418.js";
|
|
39
|
+
const Z = (p) => (Ve("data-v-cbbcbba3"), p = p(), ke(), p), qe = { class: "custom-header" }, Re = { class: "left" }, je = ["id"], Te = { class: "right" }, Ae = { class: "manage-dialog-body" }, Le = { class: "func-list" }, We = { class: "search" }, Pe = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", null, "输入函数关键字", -1)), Ge = ["onClick"], Ke = { class: "icon-box" }, He = { class: "rule-form" }, Je = { class: "header" }, Qe = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("span", null, "函数名称:", -1)), Xe = { class: "right" }, Ye = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)), Ze = { class: "custom-header" }, et = { class: "left" }, tt = ["id"], ot = { class: "right" }, nt = { class: "dialog-footer" }, lt = { class: "custom-header" }, st = { class: "left" }, at = ["id"], it = { class: "right" }, ct = { class: "content" }, rt = { class: "dialog-footer" }, ut = {
|
|
40
40
|
__name: "ManageDialog",
|
|
41
41
|
props: {
|
|
42
42
|
data: {
|
|
@@ -45,93 +45,93 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
emits: ["refreshData"],
|
|
48
|
-
setup(
|
|
49
|
-
const { request:
|
|
48
|
+
setup(p, { expose: G, emit: q }) {
|
|
49
|
+
const { request: w } = le("stConfig"), m = f(null), $ = f(null), x = q, y = p, E = f(!1), N = J({
|
|
50
50
|
save: !1,
|
|
51
51
|
test: !1
|
|
52
|
-
}),
|
|
52
|
+
}), S = f(null), b = be(() => S.value ? y.data.filter((o) => o.funcName.includes(S.value)) : y.data), a = J({
|
|
53
53
|
id: null,
|
|
54
54
|
funcName: "",
|
|
55
55
|
funcExpression: ""
|
|
56
|
-
}),
|
|
56
|
+
}), i = f(""), u = J({
|
|
57
57
|
result: null,
|
|
58
58
|
detail: "",
|
|
59
59
|
code: ""
|
|
60
|
-
}),
|
|
60
|
+
}), D = f(!1), C = f(!1), O = () => {
|
|
61
61
|
var o;
|
|
62
62
|
Object.assign(a, {
|
|
63
63
|
id: null,
|
|
64
64
|
funcName: "",
|
|
65
65
|
funcExpression: ""
|
|
66
|
-
}),
|
|
67
|
-
},
|
|
66
|
+
}), i.value = "", (o = m.value) == null || o.setValue(a.funcExpression);
|
|
67
|
+
}, M = (o) => {
|
|
68
68
|
var e;
|
|
69
69
|
Object.assign(a, {
|
|
70
70
|
id: o.id,
|
|
71
71
|
funcName: o.funcName,
|
|
72
72
|
funcExpression: o.funcExpression
|
|
73
|
-
}),
|
|
74
|
-
},
|
|
73
|
+
}), i.value = "", (e = m.value) == null || e.setValue(a.funcExpression);
|
|
74
|
+
}, _ = (o) => {
|
|
75
75
|
var e;
|
|
76
76
|
Object.assign(a, {
|
|
77
77
|
id: null,
|
|
78
78
|
funcName: `${o.funcName}-复制`,
|
|
79
79
|
funcExpression: o.funcExpression
|
|
80
|
-
}),
|
|
81
|
-
},
|
|
80
|
+
}), i.value = "", (e = m.value) == null || e.setValue(a.funcExpression);
|
|
81
|
+
}, R = async (o) => {
|
|
82
82
|
var e;
|
|
83
83
|
o.id === a.id && (Object.assign(a, {
|
|
84
84
|
id: null,
|
|
85
85
|
funcName: "",
|
|
86
86
|
funcExpression: ""
|
|
87
|
-
}), (e =
|
|
88
|
-
},
|
|
87
|
+
}), (e = m.value) == null || e.setValue(a.funcExpression)), await w.post("/common/qt/deleteSearchFunctionById", { id: o.id }), x("refreshData");
|
|
88
|
+
}, de = Ie(async () => {
|
|
89
89
|
try {
|
|
90
|
-
if (
|
|
91
|
-
return
|
|
90
|
+
if (N.save = !0, a.funcExpression = m.value.getValue(), !a.funcName)
|
|
91
|
+
return V.error("函数名称不可为空");
|
|
92
92
|
if (!a.funcExpression)
|
|
93
|
-
return
|
|
94
|
-
await
|
|
93
|
+
return V.error("函数内容不可为空");
|
|
94
|
+
await w.post("/common/qt/saveOrUpdateSearchFunction", a), V.success("操作成功"), x("refreshData"), a.id || O();
|
|
95
95
|
} finally {
|
|
96
|
-
|
|
96
|
+
N.save = !1;
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
99
|
-
const
|
|
100
|
-
o.reduce((
|
|
101
|
-
), r =
|
|
102
|
-
let
|
|
98
|
+
}), fe = (o) => new Promise((e) => {
|
|
99
|
+
const c = f(
|
|
100
|
+
o.reduce((d, g) => (d[g] = "", d), {})
|
|
101
|
+
), r = f({}), v = () => {
|
|
102
|
+
let d = !0;
|
|
103
103
|
const g = {};
|
|
104
|
-
return o.forEach((
|
|
105
|
-
var
|
|
106
|
-
(
|
|
107
|
-
}), r.value = g,
|
|
104
|
+
return o.forEach((F) => {
|
|
105
|
+
var T;
|
|
106
|
+
(T = c.value[F]) != null && T.trim() || (g[F] = `请输入${F}的值`, d = !1);
|
|
107
|
+
}), r.value = g, d;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
Me({
|
|
110
110
|
title: "填写变量值用于接口测试",
|
|
111
|
-
message:
|
|
111
|
+
message: U({
|
|
112
112
|
setup() {
|
|
113
|
-
return () =>
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
return () => U("div", [
|
|
114
|
+
U(
|
|
115
|
+
Oe,
|
|
116
116
|
{
|
|
117
|
-
model:
|
|
117
|
+
model: c.value
|
|
118
118
|
},
|
|
119
119
|
() => o.map(
|
|
120
|
-
(
|
|
121
|
-
|
|
120
|
+
(d) => U(
|
|
121
|
+
Be,
|
|
122
122
|
{
|
|
123
|
-
label: `${
|
|
124
|
-
prop:
|
|
125
|
-
error: r.value[
|
|
123
|
+
label: `${d}: `,
|
|
124
|
+
prop: d,
|
|
125
|
+
error: r.value[d],
|
|
126
126
|
"label-width": "90px"
|
|
127
127
|
},
|
|
128
|
-
() =>
|
|
129
|
-
modelValue:
|
|
128
|
+
() => U(te, {
|
|
129
|
+
modelValue: c.value[d],
|
|
130
130
|
"onUpdate:modelValue": (g) => {
|
|
131
|
-
|
|
131
|
+
c.value[d] = g, r.value[d] && delete r.value[d];
|
|
132
132
|
},
|
|
133
|
-
placeholder: `请输入 ${
|
|
134
|
-
status: r.value[
|
|
133
|
+
placeholder: `请输入 ${d} 的值`,
|
|
134
|
+
status: r.value[d] ? "error" : ""
|
|
135
135
|
})
|
|
136
136
|
)
|
|
137
137
|
)
|
|
@@ -143,92 +143,91 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
143
143
|
confirmButtonText: "确定",
|
|
144
144
|
cancelButtonText: "取消",
|
|
145
145
|
customClass: "variable-input-dialog",
|
|
146
|
-
beforeClose: async (
|
|
147
|
-
|
|
146
|
+
beforeClose: async (d, g, F) => {
|
|
147
|
+
d !== "confirm" && (e(!1), F()), await ee(), v() && (e({ ...c.value }), F());
|
|
148
148
|
}
|
|
149
149
|
}).catch(() => e(!1));
|
|
150
|
-
}),
|
|
151
|
-
const e = /\$\{([^}]*)\}/g,
|
|
150
|
+
}), pe = (o) => {
|
|
151
|
+
const e = /\$\{([^}]*)\}/g, c = [];
|
|
152
152
|
let r;
|
|
153
153
|
for (; (r = e.exec(o)) !== null; )
|
|
154
|
-
|
|
155
|
-
return [...new Set(
|
|
156
|
-
},
|
|
157
|
-
`).reduce((e,
|
|
158
|
-
const r =
|
|
154
|
+
c.push(r[1]);
|
|
155
|
+
return [...new Set(c)];
|
|
156
|
+
}, me = (o, e) => o.replace(/\$\{([^}]*)\}/g, (c, r) => e[r] !== void 0 ? e[r] : c), _e = (o) => o ? o.split(`
|
|
157
|
+
`).reduce((e, c) => {
|
|
158
|
+
const r = c.trim().replace(/\s+/gi, " ").split(" ")[0];
|
|
159
159
|
return r && e.push(r), e;
|
|
160
|
-
}, []) : [],
|
|
160
|
+
}, []) : [], K = async (o) => {
|
|
161
161
|
switch (o) {
|
|
162
162
|
case "open": {
|
|
163
|
-
if (!
|
|
164
|
-
return
|
|
165
|
-
|
|
163
|
+
if (!m.value.getValue())
|
|
164
|
+
return V.error("函数内容不可为空");
|
|
165
|
+
D.value = !0;
|
|
166
166
|
break;
|
|
167
167
|
}
|
|
168
168
|
case "submit": {
|
|
169
|
-
let e =
|
|
169
|
+
let e = m.value.getValue();
|
|
170
170
|
if (!e)
|
|
171
|
-
return
|
|
171
|
+
return V.error("函数内容不可为空");
|
|
172
172
|
if (/\$\{[^}]*\}/.test(e)) {
|
|
173
|
-
const
|
|
173
|
+
const c = pe(e), r = await fe(c);
|
|
174
174
|
if (!r)
|
|
175
175
|
return;
|
|
176
|
-
e =
|
|
176
|
+
e = me(e, r);
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
D.value = !1;
|
|
179
179
|
try {
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
codes:
|
|
180
|
+
N.test = !0;
|
|
181
|
+
const c = {
|
|
182
|
+
codes: _e(i.value),
|
|
183
183
|
factorSelectExpr: e
|
|
184
|
-
}, { body: r } = await
|
|
185
|
-
Object.assign(
|
|
184
|
+
}, { body: r } = await w.post("/common/qt/testFactorSelect", c), { result: v, detail: j } = r;
|
|
185
|
+
Object.assign(u, { result: v, detail: j, code: c.factorSelectExpr }), v === 1 ? V.success("测试通过") : (V.error("测试未能通过"), C.value = !0);
|
|
186
186
|
} finally {
|
|
187
|
-
|
|
187
|
+
N.test = !1;
|
|
188
188
|
}
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
case "log": {
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
194
|
-
|
|
192
|
+
if (u.result === null)
|
|
193
|
+
return V.warning("请先进行测试, 等待测试完成后可查看日志");
|
|
194
|
+
C.value = !0;
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
},
|
|
199
|
-
|
|
198
|
+
}, ve = () => {
|
|
199
|
+
$.value.open(m.value);
|
|
200
200
|
};
|
|
201
|
-
return
|
|
202
|
-
() =>
|
|
201
|
+
return Ce(
|
|
202
|
+
() => E.value,
|
|
203
203
|
(o) => {
|
|
204
|
-
|
|
205
|
-
case !0: {
|
|
206
|
-
X(() => {
|
|
207
|
-
var e;
|
|
208
|
-
(e = p.value) == null || e.resize(), w.value = null, I.value.length ? Q(I.value[0]) : v(), Object.assign(d, {
|
|
209
|
-
result: null,
|
|
210
|
-
detail: "",
|
|
211
|
-
code: ""
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
case !1: {
|
|
217
|
-
V.value.close(), S.value = !1, h.value = !1;
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
204
|
+
o || ($.value.close(), D.value = !1, C.value = !1);
|
|
221
205
|
}
|
|
222
|
-
),
|
|
223
|
-
open: () => {
|
|
224
|
-
|
|
206
|
+
), G({
|
|
207
|
+
open: (o) => {
|
|
208
|
+
E.value = !0, ee(() => {
|
|
209
|
+
var e;
|
|
210
|
+
if ((e = m.value) == null || e.resize(), S.value = null, Object.assign(u, {
|
|
211
|
+
result: null,
|
|
212
|
+
detail: "",
|
|
213
|
+
code: ""
|
|
214
|
+
}), o) {
|
|
215
|
+
const c = {
|
|
216
|
+
id: o.id,
|
|
217
|
+
funcName: o.funcName,
|
|
218
|
+
funcExpression: o.funcExpression
|
|
219
|
+
};
|
|
220
|
+
M(c);
|
|
221
|
+
} else
|
|
222
|
+
b.value.length ? M(b.value[0]) : O();
|
|
223
|
+
});
|
|
225
224
|
}
|
|
226
225
|
}), (o, e) => {
|
|
227
|
-
const
|
|
228
|
-
return
|
|
226
|
+
const c = re, r = te, v = oe, j = ne, d = ze, g = Ue, F = Q("st-monacoEditor"), T = Q("st-varSelectDialog"), ge = Q("st-varietyAutoComplete"), H = Fe, he = De;
|
|
227
|
+
return I(), Y(H, {
|
|
229
228
|
"modal-class": "manage-dialog",
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": e[13] || (e[13] = (
|
|
229
|
+
modelValue: E.value,
|
|
230
|
+
"onUpdate:modelValue": e[13] || (e[13] = (s) => E.value = s),
|
|
232
231
|
width: "1600",
|
|
233
232
|
"align-center": "",
|
|
234
233
|
"append-to-body": "",
|
|
@@ -237,78 +236,78 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
237
236
|
"modal-penetrable": !0,
|
|
238
237
|
"show-close": !1
|
|
239
238
|
}, {
|
|
240
|
-
header:
|
|
241
|
-
l("div",
|
|
239
|
+
header: n(({ titleId: s, titleClass: z }) => [
|
|
240
|
+
l("div", qe, [
|
|
242
241
|
l("div", Re, [
|
|
243
242
|
l("span", {
|
|
244
|
-
id:
|
|
245
|
-
class:
|
|
246
|
-
}, " 自定义函数管理面板 ", 10,
|
|
243
|
+
id: s,
|
|
244
|
+
class: B(z)
|
|
245
|
+
}, " 自定义函数管理面板 ", 10, je)
|
|
247
246
|
]),
|
|
248
|
-
l("div",
|
|
249
|
-
t(
|
|
250
|
-
onClick: e[0] || (e[0] = (
|
|
247
|
+
l("div", Te, [
|
|
248
|
+
t(c, {
|
|
249
|
+
onClick: e[0] || (e[0] = (A) => E.value = !1)
|
|
251
250
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
t(
|
|
251
|
+
default: n(() => [
|
|
252
|
+
t(h(X))
|
|
254
253
|
]),
|
|
255
254
|
_: 1
|
|
256
255
|
})
|
|
257
256
|
])
|
|
258
257
|
])
|
|
259
258
|
]),
|
|
260
|
-
default:
|
|
261
|
-
l("div",
|
|
262
|
-
l("div",
|
|
263
|
-
l("div",
|
|
264
|
-
|
|
259
|
+
default: n(() => [
|
|
260
|
+
l("div", Ae, [
|
|
261
|
+
l("div", Le, [
|
|
262
|
+
l("div", We, [
|
|
263
|
+
Pe,
|
|
265
264
|
t(r, {
|
|
266
|
-
modelValue:
|
|
267
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
265
|
+
modelValue: S.value,
|
|
266
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => S.value = s),
|
|
268
267
|
clearable: ""
|
|
269
268
|
}, null, 8, ["modelValue"]),
|
|
270
|
-
t(
|
|
269
|
+
t(v, {
|
|
271
270
|
type: "primary",
|
|
272
|
-
onClick:
|
|
271
|
+
onClick: O
|
|
273
272
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
|
|
273
|
+
default: n(() => [
|
|
274
|
+
k("新建")
|
|
276
275
|
]),
|
|
277
276
|
_: 1
|
|
278
277
|
})
|
|
279
278
|
]),
|
|
280
279
|
t(g, { class: "list" }, {
|
|
281
|
-
default:
|
|
282
|
-
|
|
283
|
-
key:
|
|
284
|
-
class:
|
|
280
|
+
default: n(() => [
|
|
281
|
+
b.value.length ? (I(!0), P(se, { key: 0 }, ae(b.value, (s) => (I(), P("div", {
|
|
282
|
+
key: s.id,
|
|
283
|
+
class: B([{ "active-list-item": a.id === s.id }, "list-item"])
|
|
285
284
|
}, [
|
|
286
285
|
l("span", {
|
|
287
286
|
class: "func-name",
|
|
288
|
-
onClick: (
|
|
289
|
-
},
|
|
290
|
-
l("div",
|
|
291
|
-
t(
|
|
292
|
-
default:
|
|
293
|
-
t(
|
|
294
|
-
onClick: (
|
|
287
|
+
onClick: (z) => M(s)
|
|
288
|
+
}, L(s.funcName), 9, Ge),
|
|
289
|
+
l("div", Ke, [
|
|
290
|
+
t(c, null, {
|
|
291
|
+
default: n(() => [
|
|
292
|
+
t(h(ie), {
|
|
293
|
+
onClick: (z) => _(s)
|
|
295
294
|
}, null, 8, ["onClick"])
|
|
296
295
|
]),
|
|
297
296
|
_: 2
|
|
298
297
|
}, 1024),
|
|
299
|
-
t(
|
|
298
|
+
t(j, {
|
|
300
299
|
title: "确认是否删除?",
|
|
301
300
|
"confirm-button-text": "确认",
|
|
302
301
|
"cancel-button-text": "取消",
|
|
303
|
-
onConfirm: (
|
|
302
|
+
onConfirm: (z) => R(s)
|
|
304
303
|
}, {
|
|
305
|
-
reference:
|
|
306
|
-
t(
|
|
307
|
-
onClick:
|
|
304
|
+
reference: n(() => [
|
|
305
|
+
t(c, {
|
|
306
|
+
onClick: W(() => {
|
|
308
307
|
}, ["stop"])
|
|
309
308
|
}, {
|
|
310
|
-
default:
|
|
311
|
-
t(
|
|
309
|
+
default: n(() => [
|
|
310
|
+
t(h(ce))
|
|
312
311
|
]),
|
|
313
312
|
_: 1
|
|
314
313
|
})
|
|
@@ -316,7 +315,7 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
316
315
|
_: 2
|
|
317
316
|
}, 1032, ["onConfirm"])
|
|
318
317
|
])
|
|
319
|
-
], 2))), 128)) : (
|
|
318
|
+
], 2))), 128)) : (I(), Y(d, {
|
|
320
319
|
key: 1,
|
|
321
320
|
description: "暂无数据"
|
|
322
321
|
}))
|
|
@@ -324,70 +323,70 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
324
323
|
_: 1
|
|
325
324
|
})
|
|
326
325
|
]),
|
|
327
|
-
l("div",
|
|
328
|
-
l("div",
|
|
329
|
-
|
|
326
|
+
l("div", He, [
|
|
327
|
+
l("div", Je, [
|
|
328
|
+
Qe,
|
|
330
329
|
t(r, {
|
|
331
330
|
modelValue: a.funcName,
|
|
332
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
331
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => a.funcName = s)
|
|
333
332
|
}, null, 8, ["modelValue"]),
|
|
334
|
-
l("div",
|
|
335
|
-
t(
|
|
333
|
+
l("div", Xe, [
|
|
334
|
+
t(v, {
|
|
336
335
|
type: "primary",
|
|
337
|
-
onClick:
|
|
338
|
-
loading:
|
|
336
|
+
onClick: h(de),
|
|
337
|
+
loading: N.save
|
|
339
338
|
}, {
|
|
340
|
-
default:
|
|
341
|
-
|
|
339
|
+
default: n(() => [
|
|
340
|
+
k(" 保存 ")
|
|
342
341
|
]),
|
|
343
342
|
_: 1
|
|
344
343
|
}, 8, ["onClick", "loading"]),
|
|
345
|
-
t(
|
|
346
|
-
loading:
|
|
347
|
-
onClick: e[3] || (e[3] = (
|
|
344
|
+
t(v, {
|
|
345
|
+
loading: N.test,
|
|
346
|
+
onClick: e[3] || (e[3] = (s) => K("open"))
|
|
348
347
|
}, {
|
|
349
|
-
default:
|
|
350
|
-
|
|
348
|
+
default: n(() => [
|
|
349
|
+
k(" 测试 ")
|
|
351
350
|
]),
|
|
352
351
|
_: 1
|
|
353
352
|
}, 8, ["loading"]),
|
|
354
|
-
t(
|
|
355
|
-
icon:
|
|
356
|
-
onClick: e[4] || (e[4] = (
|
|
353
|
+
t(v, {
|
|
354
|
+
icon: h(Ne),
|
|
355
|
+
onClick: e[4] || (e[4] = (s) => K("log"))
|
|
357
356
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
|
|
357
|
+
default: n(() => [
|
|
358
|
+
k(" 日志明细 ")
|
|
360
359
|
]),
|
|
361
360
|
_: 1
|
|
362
361
|
}, 8, ["icon"]),
|
|
363
|
-
t(
|
|
362
|
+
t(v, {
|
|
364
363
|
type: "primary",
|
|
365
|
-
onClick:
|
|
364
|
+
onClick: ve
|
|
366
365
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
|
|
366
|
+
default: n(() => [
|
|
367
|
+
k(" 变量选择器 ")
|
|
369
368
|
]),
|
|
370
369
|
_: 1
|
|
371
370
|
})
|
|
372
371
|
])
|
|
373
372
|
]),
|
|
374
|
-
|
|
375
|
-
t(
|
|
373
|
+
Ye,
|
|
374
|
+
t(F, {
|
|
376
375
|
ref_key: "stMonacoEditorRef",
|
|
377
|
-
ref:
|
|
376
|
+
ref: m,
|
|
378
377
|
language: "lua",
|
|
379
378
|
style: { width: "100%", height: "calc(80vh - 75px)" }
|
|
380
379
|
}, null, 512)
|
|
381
380
|
])
|
|
382
381
|
]),
|
|
383
|
-
t(
|
|
382
|
+
t(T, {
|
|
384
383
|
ref_key: "stVarSelectDialogRef",
|
|
385
|
-
ref:
|
|
384
|
+
ref: $
|
|
386
385
|
}, null, 512),
|
|
387
|
-
t(
|
|
386
|
+
t(H, {
|
|
388
387
|
"modal-class": "test-variety-dialog",
|
|
389
|
-
modelValue:
|
|
390
|
-
"onUpdate:modelValue": e[9] || (e[9] = (
|
|
388
|
+
modelValue: D.value,
|
|
389
|
+
"onUpdate:modelValue": e[9] || (e[9] = (s) => D.value = s),
|
|
391
390
|
width: "500",
|
|
392
391
|
"align-center": "",
|
|
393
392
|
"append-to-body": "",
|
|
@@ -396,49 +395,49 @@ const J = (f) => (ye("data-v-8af089bb"), f = f(), Ee(), f), Ue = { class: "custo
|
|
|
396
395
|
"modal-penetrable": !0,
|
|
397
396
|
"show-close": !1
|
|
398
397
|
}, {
|
|
399
|
-
header:
|
|
400
|
-
l("div",
|
|
401
|
-
l("div",
|
|
398
|
+
header: n(({ titleId: s, titleClass: z }) => [
|
|
399
|
+
l("div", Ze, [
|
|
400
|
+
l("div", et, [
|
|
402
401
|
l("span", {
|
|
403
|
-
id:
|
|
404
|
-
class:
|
|
405
|
-
}, " 测试品种 ", 10,
|
|
402
|
+
id: s,
|
|
403
|
+
class: B(z)
|
|
404
|
+
}, " 测试品种 ", 10, tt)
|
|
406
405
|
]),
|
|
407
|
-
l("div",
|
|
408
|
-
t(
|
|
406
|
+
l("div", ot, [
|
|
407
|
+
t(ge, {
|
|
409
408
|
label: "",
|
|
410
|
-
onSelect: e[5] || (e[5] = ({ name:
|
|
409
|
+
onSelect: e[5] || (e[5] = ({ name: A, code: xe }) => i.value += `${xe} ${A}
|
|
411
410
|
`)
|
|
412
411
|
}),
|
|
413
|
-
t(
|
|
414
|
-
onClick: e[6] || (e[6] = (
|
|
412
|
+
t(c, {
|
|
413
|
+
onClick: e[6] || (e[6] = (A) => D.value = !1)
|
|
415
414
|
}, {
|
|
416
|
-
default:
|
|
417
|
-
t(
|
|
415
|
+
default: n(() => [
|
|
416
|
+
t(h(X))
|
|
418
417
|
]),
|
|
419
418
|
_: 1
|
|
420
419
|
})
|
|
421
420
|
])
|
|
422
421
|
])
|
|
423
422
|
]),
|
|
424
|
-
footer:
|
|
425
|
-
l("div",
|
|
426
|
-
t(
|
|
423
|
+
footer: n(() => [
|
|
424
|
+
l("div", nt, [
|
|
425
|
+
t(v, {
|
|
427
426
|
type: "primary",
|
|
428
|
-
onClick: e[8] || (e[8] = (
|
|
427
|
+
onClick: e[8] || (e[8] = (s) => K("submit"))
|
|
429
428
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
429
|
+
default: n(() => [
|
|
430
|
+
k(" 确认 ")
|
|
432
431
|
]),
|
|
433
432
|
_: 1
|
|
434
433
|
})
|
|
435
434
|
])
|
|
436
435
|
]),
|
|
437
|
-
default:
|
|
436
|
+
default: n(() => [
|
|
438
437
|
t(r, {
|
|
439
438
|
class: "full-height-textarea",
|
|
440
|
-
modelValue:
|
|
441
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
439
|
+
modelValue: i.value,
|
|
440
|
+
"onUpdate:modelValue": e[7] || (e[7] = (s) => i.value = s),
|
|
442
441
|
resize: "none",
|
|
443
442
|
type: "textarea",
|
|
444
443
|
placeholder: `不填写时, 默认为000001 平安银行
|
|
@@ -450,10 +449,10 @@ bu8888 石油沥青期货指数`
|
|
|
450
449
|
]),
|
|
451
450
|
_: 1
|
|
452
451
|
}, 8, ["modelValue"]),
|
|
453
|
-
t(
|
|
452
|
+
t(H, {
|
|
454
453
|
"modal-class": "log-dialog",
|
|
455
|
-
modelValue:
|
|
456
|
-
"onUpdate:modelValue": e[12] || (e[12] = (
|
|
454
|
+
modelValue: C.value,
|
|
455
|
+
"onUpdate:modelValue": e[12] || (e[12] = (s) => C.value = s),
|
|
457
456
|
width: "830",
|
|
458
457
|
"align-center": "",
|
|
459
458
|
"append-to-body": "",
|
|
@@ -463,56 +462,56 @@ bu8888 石油沥青期货指数`
|
|
|
463
462
|
"modal-penetrable": !0,
|
|
464
463
|
"show-close": !1
|
|
465
464
|
}, {
|
|
466
|
-
header:
|
|
465
|
+
header: n(({ titleId: s, titleClass: z }) => [
|
|
467
466
|
l("div", lt, [
|
|
468
|
-
l("div",
|
|
467
|
+
l("div", st, [
|
|
469
468
|
l("span", {
|
|
470
|
-
id:
|
|
471
|
-
class:
|
|
472
|
-
}, " 日志明细 ", 10,
|
|
469
|
+
id: s,
|
|
470
|
+
class: B(z)
|
|
471
|
+
}, " 日志明细 ", 10, at)
|
|
473
472
|
]),
|
|
474
|
-
l("div",
|
|
475
|
-
t(
|
|
476
|
-
onClick: e[10] || (e[10] = (
|
|
473
|
+
l("div", it, [
|
|
474
|
+
t(c, {
|
|
475
|
+
onClick: e[10] || (e[10] = (A) => C.value = !1)
|
|
477
476
|
}, {
|
|
478
|
-
default:
|
|
479
|
-
t(
|
|
477
|
+
default: n(() => [
|
|
478
|
+
t(h(X))
|
|
480
479
|
]),
|
|
481
480
|
_: 1
|
|
482
481
|
})
|
|
483
482
|
])
|
|
484
483
|
])
|
|
485
484
|
]),
|
|
486
|
-
footer:
|
|
485
|
+
footer: n(() => [
|
|
487
486
|
l("div", rt, [
|
|
488
|
-
t(
|
|
489
|
-
onClick: e[11] || (e[11] = (
|
|
487
|
+
t(v, {
|
|
488
|
+
onClick: e[11] || (e[11] = (s) => C.value = !1)
|
|
490
489
|
}, {
|
|
491
|
-
default:
|
|
492
|
-
|
|
490
|
+
default: n(() => [
|
|
491
|
+
k(" 关闭 ")
|
|
493
492
|
]),
|
|
494
493
|
_: 1
|
|
495
494
|
})
|
|
496
495
|
])
|
|
497
496
|
]),
|
|
498
|
-
default:
|
|
499
|
-
l("div",
|
|
497
|
+
default: n(() => [
|
|
498
|
+
l("div", ct, [
|
|
500
499
|
t(g, {
|
|
501
500
|
class: "code",
|
|
502
501
|
height: "600px"
|
|
503
502
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
l("pre", null,
|
|
503
|
+
default: n(() => [
|
|
504
|
+
l("pre", null, L(u.code), 1)
|
|
506
505
|
]),
|
|
507
506
|
_: 1
|
|
508
507
|
}),
|
|
509
|
-
t(
|
|
508
|
+
t(he, { direction: "vertical" }),
|
|
510
509
|
t(g, { height: "600px" }, {
|
|
511
|
-
default:
|
|
510
|
+
default: n(() => [
|
|
512
511
|
l("pre", {
|
|
513
|
-
class:
|
|
514
|
-
},
|
|
515
|
-
${
|
|
512
|
+
class: B(u.result === 1 ? "success-log" : "error-log")
|
|
513
|
+
}, L(u.result === 1 ? `✅️ 测试通过
|
|
514
|
+
${u.detail}` : u.detail), 3)
|
|
516
515
|
]),
|
|
517
516
|
_: 1
|
|
518
517
|
})
|
|
@@ -525,61 +524,125 @@ ${d.detail}` : d.detail), 3)
|
|
|
525
524
|
}, 8, ["modelValue"]);
|
|
526
525
|
};
|
|
527
526
|
}
|
|
528
|
-
},
|
|
529
|
-
const
|
|
527
|
+
}, dt = /* @__PURE__ */ ue(ut, [["__scopeId", "data-v-cbbcbba3"]]);
|
|
528
|
+
const ft = { class: "custom-function" }, pt = { class: "func-option" }, mt = { class: "icons" }, _t = {
|
|
530
529
|
__name: "index",
|
|
531
530
|
props: {
|
|
532
531
|
size: { type: String, default: "small" },
|
|
533
532
|
selectWidth: { type: String, default: "200px" }
|
|
534
533
|
},
|
|
535
534
|
emits: ["insert"],
|
|
536
|
-
setup(
|
|
537
|
-
const { request:
|
|
538
|
-
const { body: a } = await
|
|
539
|
-
if (y.value = a ?? [],
|
|
535
|
+
setup(p, { emit: G }) {
|
|
536
|
+
const { request: q } = le("stConfig"), w = f(null), m = G, $ = f(null), x = f(""), y = f([]), E = async () => {
|
|
537
|
+
const { body: a } = await q.post("/common/qt/querySearchFunctions");
|
|
538
|
+
if (y.value = a ?? [], $.value === null)
|
|
540
539
|
x.value = "";
|
|
541
540
|
else {
|
|
542
|
-
const
|
|
543
|
-
x.value =
|
|
541
|
+
const i = y.value.find(({ id: u }) => u === $.value);
|
|
542
|
+
x.value = i ? i.funcName : "";
|
|
544
543
|
}
|
|
545
|
-
},
|
|
546
|
-
var
|
|
547
|
-
a ?
|
|
548
|
-
},
|
|
544
|
+
}, N = (a) => {
|
|
545
|
+
var i;
|
|
546
|
+
a ? $.value = (i = y.value.find((u) => u.funcName === a)) == null ? void 0 : i.id : $.value = null;
|
|
547
|
+
}, S = () => {
|
|
549
548
|
if (!x.value)
|
|
550
|
-
return
|
|
551
|
-
const { funcName: a, funcExpression:
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
|
|
549
|
+
return V.error("请先选择自定义函数后, 再执行插入");
|
|
550
|
+
const { funcName: a, funcExpression: i } = y.value.find((u) => u.funcName === x.value);
|
|
551
|
+
m("insert", a, i);
|
|
552
|
+
}, b = async (a, i) => {
|
|
553
|
+
switch (a) {
|
|
554
|
+
case "open": {
|
|
555
|
+
w.value.open();
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
case "copy": {
|
|
559
|
+
const u = {
|
|
560
|
+
id: null,
|
|
561
|
+
funcName: `${i.funcName}-复制`,
|
|
562
|
+
funcExpression: i.funcExpression
|
|
563
|
+
};
|
|
564
|
+
w.value.open(u);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
case "edit": {
|
|
568
|
+
const u = {
|
|
569
|
+
id: i.id,
|
|
570
|
+
funcName: i.funcName,
|
|
571
|
+
funcExpression: i.funcExpression
|
|
572
|
+
};
|
|
573
|
+
w.value.open(u);
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
case "delete": {
|
|
577
|
+
await q.post("/common/qt/deleteSearchFunctionById", { id: i.id }), E();
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
555
581
|
};
|
|
556
|
-
return
|
|
557
|
-
|
|
558
|
-
}), (a,
|
|
559
|
-
const
|
|
560
|
-
return
|
|
561
|
-
t(
|
|
582
|
+
return we(() => {
|
|
583
|
+
E();
|
|
584
|
+
}), (a, i) => {
|
|
585
|
+
const u = re, D = ne, C = ye, O = Ee, M = oe;
|
|
586
|
+
return I(), P("div", ft, [
|
|
587
|
+
t(O, {
|
|
562
588
|
modelValue: x.value,
|
|
563
|
-
"onUpdate:modelValue":
|
|
564
|
-
size:
|
|
589
|
+
"onUpdate:modelValue": i[0] || (i[0] = (_) => x.value = _),
|
|
590
|
+
size: p.size,
|
|
565
591
|
placeholder: "自定义函数",
|
|
566
592
|
"no-match-text": "无匹配选项",
|
|
567
593
|
"no-data-text": "无选项数据",
|
|
568
594
|
clearable: "",
|
|
569
595
|
filterable: "",
|
|
570
|
-
onChange:
|
|
571
|
-
style:
|
|
596
|
+
onChange: N,
|
|
597
|
+
style: $e({ width: p.selectWidth })
|
|
572
598
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
(
|
|
575
|
-
key:
|
|
576
|
-
label:
|
|
577
|
-
value:
|
|
578
|
-
onClick:
|
|
599
|
+
default: n(() => [
|
|
600
|
+
(I(!0), P(se, null, ae(y.value, (_) => (I(), Y(C, {
|
|
601
|
+
key: _.id,
|
|
602
|
+
label: _.funcName,
|
|
603
|
+
value: _.funcName,
|
|
604
|
+
onClick: S
|
|
579
605
|
}, {
|
|
580
|
-
default:
|
|
581
|
-
l("div",
|
|
582
|
-
l("span", null,
|
|
606
|
+
default: n(() => [
|
|
607
|
+
l("div", pt, [
|
|
608
|
+
l("span", null, L(_.funcName), 1),
|
|
609
|
+
l("div", mt, [
|
|
610
|
+
t(u, {
|
|
611
|
+
onClick: W((R) => b("copy", _), ["stop"])
|
|
612
|
+
}, {
|
|
613
|
+
default: n(() => [
|
|
614
|
+
t(h(ie))
|
|
615
|
+
]),
|
|
616
|
+
_: 2
|
|
617
|
+
}, 1032, ["onClick"]),
|
|
618
|
+
t(u, {
|
|
619
|
+
onClick: W((R) => b("edit", _), ["stop"])
|
|
620
|
+
}, {
|
|
621
|
+
default: n(() => [
|
|
622
|
+
t(h(Se))
|
|
623
|
+
]),
|
|
624
|
+
_: 2
|
|
625
|
+
}, 1032, ["onClick"]),
|
|
626
|
+
t(D, {
|
|
627
|
+
title: "确认是否删除?",
|
|
628
|
+
"confirm-button-text": "确认",
|
|
629
|
+
"cancel-button-text": "取消",
|
|
630
|
+
onConfirm: (R) => b("delete", _)
|
|
631
|
+
}, {
|
|
632
|
+
reference: n(() => [
|
|
633
|
+
t(u, {
|
|
634
|
+
onClick: W(() => {
|
|
635
|
+
}, ["stop"])
|
|
636
|
+
}, {
|
|
637
|
+
default: n(() => [
|
|
638
|
+
t(h(ce))
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
})
|
|
642
|
+
]),
|
|
643
|
+
_: 2
|
|
644
|
+
}, 1032, ["onConfirm"])
|
|
645
|
+
])
|
|
583
646
|
])
|
|
584
647
|
]),
|
|
585
648
|
_: 2
|
|
@@ -587,40 +650,40 @@ const dt = { class: "custom-function" }, mt = { class: "func-option" }, ft = {
|
|
|
587
650
|
]),
|
|
588
651
|
_: 1
|
|
589
652
|
}, 8, ["modelValue", "size", "style"]),
|
|
590
|
-
t(
|
|
653
|
+
t(M, {
|
|
591
654
|
type: "primary",
|
|
592
|
-
size:
|
|
593
|
-
onClick:
|
|
655
|
+
size: p.size,
|
|
656
|
+
onClick: S
|
|
594
657
|
}, {
|
|
595
|
-
default:
|
|
596
|
-
|
|
658
|
+
default: n(() => [
|
|
659
|
+
k(" 插入 ")
|
|
597
660
|
]),
|
|
598
661
|
_: 1
|
|
599
662
|
}, 8, ["size"]),
|
|
600
|
-
t(
|
|
663
|
+
t(M, {
|
|
601
664
|
type: "primary",
|
|
602
|
-
size:
|
|
603
|
-
onClick:
|
|
665
|
+
size: p.size,
|
|
666
|
+
onClick: i[1] || (i[1] = (_) => b("open"))
|
|
604
667
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
|
|
668
|
+
default: n(() => [
|
|
669
|
+
k(" 函数管理 ")
|
|
607
670
|
]),
|
|
608
671
|
_: 1
|
|
609
672
|
}, 8, ["size"]),
|
|
610
|
-
t(
|
|
673
|
+
t(dt, {
|
|
611
674
|
ref_key: "ManageDialogRef",
|
|
612
|
-
ref:
|
|
675
|
+
ref: w,
|
|
613
676
|
data: y.value,
|
|
614
|
-
onRefreshData:
|
|
677
|
+
onRefreshData: E
|
|
615
678
|
}, null, 8, ["data"])
|
|
616
679
|
]);
|
|
617
680
|
};
|
|
618
681
|
}
|
|
619
|
-
},
|
|
620
|
-
install(
|
|
621
|
-
|
|
682
|
+
}, vt = /* @__PURE__ */ ue(_t, [["__scopeId", "data-v-d2f2ff3e"]]), to = {
|
|
683
|
+
install(p) {
|
|
684
|
+
p.component("st-customFunction", vt);
|
|
622
685
|
}
|
|
623
686
|
};
|
|
624
687
|
export {
|
|
625
|
-
|
|
688
|
+
to as default
|
|
626
689
|
};
|