st-comp 0.0.243 → 0.0.244
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/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +1 -1
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +262 -261
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +1 -1
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +1 -1
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +1 -1
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +1 -1
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +1 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +3 -3
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/User.cjs +1 -1
- package/es/User.js +1 -1
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +2 -2
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +1 -1
- package/es/VarietySearch.cjs +19 -19
- package/es/VarietySearch.js +1355 -1348
- package/es/{VarietySelect-2fd501da.cjs → VarietySelect-031bf077.cjs} +1 -1
- package/es/{VarietySelect-5a9dd50b.js → VarietySelect-ae0c48b2.js} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +4 -4
- package/es/{index-2375023e.cjs → index-1f939868.cjs} +2 -2
- package/es/{index-8901a38c.cjs → index-2c456130.cjs} +40 -40
- package/es/{index-ac98a4d8.js → index-4b01552e.js} +3 -3
- package/es/{index-7ed0999e.js → index-edabe380.js} +5574 -5487
- package/es/{python-a914569a.js → python-7ce6f0b1.js} +3 -3
- package/es/{python-c67c8901.cjs → python-c8abd4f5.cjs} +1 -1
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +174 -174
- package/lib/{index-f513d22c.js → index-200db55b.js} +19730 -19636
- package/lib/{python-8c7ede72.js → python-9540022d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/index.vue +5 -2
- package/packages/VarietySearch/components/CompositeOrder/index.vue +4 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +7 -0
- package/packages/VarietySearch/config.js +4 -5
- package/packages/VarietySearch/index.vue +10 -11
package/es/CustomFunction.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "./base-a5af3db3.js";
|
|
2
|
-
import { E as
|
|
2
|
+
import { E as oe } from "./el-button-d09ff85f.js";
|
|
3
3
|
import "./el-tag-0a25efdf.js";
|
|
4
4
|
import { E as _e, a as ve } from "./el-select-1b149fab.js";
|
|
5
5
|
import "./el-scrollbar-323542e7.js";
|
|
6
6
|
import "./el-popper-a38874f4.js";
|
|
7
|
-
import { E as
|
|
7
|
+
import { E as ne } from "./el-popconfirm-a6f66a0e.js";
|
|
8
8
|
import "./el-popover-4ed993c7.js";
|
|
9
|
-
import { inject as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { inject as le, ref as h, reactive as G, computed as ge, watch as he, nextTick as Y, resolveComponent as Z, openBlock as D, createBlock as K, withCtx as l, createElementVNode as s, normalizeClass as U, createVNode as t, unref as b, createTextVNode as N, createElementBlock as L, Fragment as se, renderList as ae, toDisplayString as j, withModifiers as T, pushScopeId as ye, popScopeId as Ee, h as M, onMounted as xe, normalizeStyle as be } from "vue";
|
|
10
|
+
import { G as Ce, $ as ke } from "./index-edabe380.js";
|
|
11
|
+
import { c as ee, d as ce, a as ie, b as Ve, E as ue, e as Ne } from "./index-87b4bf61.js";
|
|
12
|
+
import { E as we } from "./el-dialog-6a80e3d8.js";
|
|
12
13
|
import "./el-overlay-cc9bc792.js";
|
|
13
|
-
import { E as
|
|
14
|
-
import { E as
|
|
15
|
-
import { E as
|
|
16
|
-
import {
|
|
17
|
-
import { E as
|
|
18
|
-
import { E as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { E as ze } from "./index-6806997d.js";
|
|
14
|
+
import { E as $e } from "./el-divider-4e059794.js";
|
|
15
|
+
import { E as Se } from "./el-empty-33cb66f1.js";
|
|
16
|
+
import { E as te } from "./el-input-cae60510.js";
|
|
17
|
+
import { E as V } from "./el-message-0df23ae7.js";
|
|
18
|
+
import { E as De } from "./el-message-box-05d8cf39.js";
|
|
19
|
+
import { E as Fe, a as ze } from "./el-form-item-4eca95be.js";
|
|
20
|
+
import { _ as re } from "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import { E as Ie } from "./index-6806997d.js";
|
|
22
22
|
import "./index-2e331d74.js";
|
|
23
23
|
import "./use-global-config-f52caea0.js";
|
|
24
24
|
import "./use-form-common-props-47e50c10.js";
|
|
@@ -36,7 +36,7 @@ import "./typescript-7ae59c4c.js";
|
|
|
36
36
|
import "./config-provider-06a63185.js";
|
|
37
37
|
import "./validator-94c04152.js";
|
|
38
38
|
import "./_initCloneObject-c34c65bc.js";
|
|
39
|
-
const
|
|
39
|
+
const H = (p) => (ye("data-v-b5dcb4b8"), p = p(), Ee(), p), Me = { class: "custom-header" }, Oe = { class: "left" }, Be = ["id"], qe = { class: "right" }, Re = { class: "manage-dialog-body" }, Ue = { class: "func-list" }, je = { class: "search" }, Te = /* @__PURE__ */ H(() => /* @__PURE__ */ s("span", null, "输入函数关键字", -1)), Le = ["onClick"], We = { class: "icon-box" }, Ae = { class: "rule-form" }, Pe = { class: "header" }, Ge = /* @__PURE__ */ H(() => /* @__PURE__ */ s("span", null, "函数名称:", -1)), Ke = { class: "right" }, He = /* @__PURE__ */ H(() => /* @__PURE__ */ s("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)), Je = { class: "custom-header" }, Qe = { class: "left" }, Xe = ["id"], Ye = { class: "right" }, Ze = { class: "content" }, et = { class: "dialog-footer" }, tt = {
|
|
40
40
|
__name: "ManageDialog",
|
|
41
41
|
props: {
|
|
42
42
|
data: {
|
|
@@ -45,93 +45,93 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
emits: ["refreshData"],
|
|
48
|
-
setup(
|
|
49
|
-
const { request: C } =
|
|
48
|
+
setup(p, { expose: W, emit: O }) {
|
|
49
|
+
const { request: C } = le("stConfig"), v = h(null), F = h(null), w = O, x = p, m = h(!1), y = G({
|
|
50
50
|
save: !1,
|
|
51
51
|
test: !1
|
|
52
|
-
}),
|
|
52
|
+
}), $ = h(null), S = ge(() => $.value ? x.data.filter((o) => o.funcName.includes($.value)) : x.data), a = G({
|
|
53
53
|
id: null,
|
|
54
54
|
funcName: "",
|
|
55
55
|
funcExpression: ""
|
|
56
|
-
}),
|
|
56
|
+
}), d = G({
|
|
57
57
|
result: null,
|
|
58
58
|
detail: "",
|
|
59
59
|
code: ""
|
|
60
|
-
}),
|
|
60
|
+
}), n = h(!1), f = () => {
|
|
61
61
|
var o;
|
|
62
|
-
Object.assign(
|
|
62
|
+
Object.assign(a, {
|
|
63
63
|
id: null,
|
|
64
64
|
funcName: "",
|
|
65
65
|
funcExpression: ""
|
|
66
|
-
}), (o =
|
|
66
|
+
}), (o = v.value) == null || o.setValue(a.funcExpression);
|
|
67
67
|
}, I = (o) => {
|
|
68
68
|
var e;
|
|
69
|
-
Object.assign(
|
|
69
|
+
Object.assign(a, {
|
|
70
70
|
id: o.id,
|
|
71
71
|
funcName: o.funcName,
|
|
72
72
|
funcExpression: o.funcExpression
|
|
73
|
-
}), (e =
|
|
73
|
+
}), (e = v.value) == null || e.setValue(a.funcExpression);
|
|
74
74
|
}, A = (o) => {
|
|
75
75
|
var e;
|
|
76
|
-
Object.assign(
|
|
76
|
+
Object.assign(a, {
|
|
77
77
|
id: null,
|
|
78
78
|
funcName: `${o.funcName}-复制`,
|
|
79
79
|
funcExpression: o.funcExpression
|
|
80
|
-
}), (e =
|
|
81
|
-
},
|
|
80
|
+
}), (e = v.value) == null || e.setValue(a.funcExpression);
|
|
81
|
+
}, P = async (o) => {
|
|
82
82
|
var e;
|
|
83
|
-
o.id ===
|
|
83
|
+
o.id === a.id && (Object.assign(a, {
|
|
84
84
|
id: null,
|
|
85
85
|
funcName: "",
|
|
86
86
|
funcExpression: ""
|
|
87
|
-
}), (e =
|
|
88
|
-
},
|
|
87
|
+
}), (e = v.value) == null || e.setValue(a.funcExpression)), await C.post("/common/qt/deleteSearchFunctionById", { id: o.id }), w("refreshData");
|
|
88
|
+
}, B = Ce(async () => {
|
|
89
89
|
try {
|
|
90
|
-
if (
|
|
91
|
-
return
|
|
92
|
-
if (!
|
|
93
|
-
return
|
|
94
|
-
await C.post("/common/qt/saveOrUpdateSearchFunction",
|
|
90
|
+
if (y.save = !0, a.funcExpression = v.value.getValue(), !a.funcName)
|
|
91
|
+
return V.error("函数名称不可为空");
|
|
92
|
+
if (!a.funcExpression)
|
|
93
|
+
return V.error("函数内容不可为空");
|
|
94
|
+
await C.post("/common/qt/saveOrUpdateSearchFunction", a), V.success("操作成功"), w("refreshData"), a.id || f();
|
|
95
95
|
} finally {
|
|
96
|
-
|
|
96
|
+
y.save = !1;
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
99
|
-
const c =
|
|
100
|
-
o.reduce((
|
|
101
|
-
),
|
|
102
|
-
let
|
|
103
|
-
const
|
|
104
|
-
return o.forEach((
|
|
98
|
+
}), _ = (o) => new Promise((e) => {
|
|
99
|
+
const c = h(
|
|
100
|
+
o.reduce((r, g) => (r[g] = "", r), {})
|
|
101
|
+
), u = h({}), E = () => {
|
|
102
|
+
let r = !0;
|
|
103
|
+
const g = {};
|
|
104
|
+
return o.forEach((k) => {
|
|
105
105
|
var R;
|
|
106
|
-
(R = c.value[
|
|
107
|
-
}),
|
|
106
|
+
(R = c.value[k]) != null && R.trim() || (g[k] = `请输入${k}的值`, r = !1);
|
|
107
|
+
}), u.value = g, r;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
De({
|
|
110
110
|
title: "填写变量值用于接口测试",
|
|
111
111
|
message: M({
|
|
112
112
|
setup() {
|
|
113
113
|
return () => M("div", [
|
|
114
114
|
M(
|
|
115
|
-
|
|
115
|
+
Fe,
|
|
116
116
|
{
|
|
117
117
|
model: c.value
|
|
118
118
|
},
|
|
119
119
|
() => o.map(
|
|
120
|
-
(
|
|
121
|
-
|
|
120
|
+
(r) => M(
|
|
121
|
+
ze,
|
|
122
122
|
{
|
|
123
|
-
label: `${
|
|
124
|
-
prop:
|
|
125
|
-
error:
|
|
123
|
+
label: `${r}: `,
|
|
124
|
+
prop: r,
|
|
125
|
+
error: u.value[r],
|
|
126
126
|
"label-width": "90px"
|
|
127
127
|
},
|
|
128
|
-
() => M(
|
|
129
|
-
modelValue: c.value[
|
|
130
|
-
"onUpdate:modelValue": (
|
|
131
|
-
c.value[
|
|
128
|
+
() => M(te, {
|
|
129
|
+
modelValue: c.value[r],
|
|
130
|
+
"onUpdate:modelValue": (g) => {
|
|
131
|
+
c.value[r] = g, u.value[r] && delete u.value[r];
|
|
132
132
|
},
|
|
133
|
-
placeholder: `请输入 ${
|
|
134
|
-
status:
|
|
133
|
+
placeholder: `请输入 ${r} 的值`,
|
|
134
|
+
status: u.value[r] ? "error" : ""
|
|
135
135
|
})
|
|
136
136
|
)
|
|
137
137
|
)
|
|
@@ -143,57 +143,57 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
143
143
|
confirmButtonText: "确定",
|
|
144
144
|
cancelButtonText: "取消",
|
|
145
145
|
customClass: "variable-input-dialog",
|
|
146
|
-
beforeClose: async (
|
|
147
|
-
|
|
146
|
+
beforeClose: async (r, g, k) => {
|
|
147
|
+
r !== "confirm" && (e(!1), k()), await Y(), E() && (e({ ...c.value }), k());
|
|
148
148
|
}
|
|
149
149
|
}).catch(() => e(!1));
|
|
150
|
-
}),
|
|
150
|
+
}), q = (o) => {
|
|
151
151
|
const e = /\$\{([^}]*)\}/g, c = [];
|
|
152
|
-
let
|
|
153
|
-
for (; (
|
|
154
|
-
c.push(
|
|
152
|
+
let u;
|
|
153
|
+
for (; (u = e.exec(o)) !== null; )
|
|
154
|
+
c.push(u[1]);
|
|
155
155
|
return [...new Set(c)];
|
|
156
|
-
}, de = (o, e) => o.replace(/\$\{([^}]*)\}/g, (c,
|
|
156
|
+
}, de = (o, e) => o.replace(/\$\{([^}]*)\}/g, (c, u) => e[u] !== void 0 ? e[u] : c), J = async (o) => {
|
|
157
157
|
switch (o) {
|
|
158
158
|
case "submit": {
|
|
159
|
-
let e =
|
|
159
|
+
let e = v.value.getValue();
|
|
160
160
|
if (!e)
|
|
161
|
-
return
|
|
161
|
+
return V.error("函数内容不可为空");
|
|
162
162
|
if (/\$\{[^}]*\}/.test(e)) {
|
|
163
|
-
const c =
|
|
164
|
-
if (!
|
|
163
|
+
const c = q(e), u = await _(c);
|
|
164
|
+
if (!u)
|
|
165
165
|
return;
|
|
166
|
-
e = de(e,
|
|
166
|
+
e = de(e, u);
|
|
167
167
|
}
|
|
168
168
|
try {
|
|
169
|
-
|
|
170
|
-
const { body: c } = await C.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result:
|
|
171
|
-
Object.assign(
|
|
169
|
+
y.test = !0;
|
|
170
|
+
const { body: c } = await C.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: u, detail: E } = c;
|
|
171
|
+
Object.assign(d, { result: u, detail: E, code: e }), u === 1 ? V.success("测试通过") : (V.error("测试未能通过"), n.value = !0);
|
|
172
172
|
} finally {
|
|
173
|
-
|
|
173
|
+
y.test = !1;
|
|
174
174
|
}
|
|
175
175
|
break;
|
|
176
176
|
}
|
|
177
177
|
case "log": {
|
|
178
|
-
if (
|
|
179
|
-
return
|
|
180
|
-
|
|
178
|
+
if (d.result === null)
|
|
179
|
+
return V.warning("请先进行测试, 等待测试完成后可查看日志");
|
|
180
|
+
n.value = !0;
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}, fe = () => {
|
|
185
|
-
|
|
185
|
+
F.value.open(v.value);
|
|
186
186
|
};
|
|
187
187
|
return he(
|
|
188
|
-
() =>
|
|
188
|
+
() => m.value,
|
|
189
189
|
(o) => {
|
|
190
|
-
o || (
|
|
190
|
+
o || (F.value.close(), n.value = !1);
|
|
191
191
|
}
|
|
192
192
|
), W({
|
|
193
193
|
open: (o) => {
|
|
194
|
-
|
|
194
|
+
m.value = !0, Y(() => {
|
|
195
195
|
var e;
|
|
196
|
-
if ((e =
|
|
196
|
+
if ((e = v.value) == null || e.resize(), $.value = null, Object.assign(d, {
|
|
197
197
|
result: null,
|
|
198
198
|
detail: "",
|
|
199
199
|
code: ""
|
|
@@ -205,15 +205,15 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
205
205
|
};
|
|
206
206
|
I(c);
|
|
207
207
|
} else
|
|
208
|
-
|
|
208
|
+
S.value.length ? I(S.value[0]) : f();
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
}), (o, e) => {
|
|
212
|
-
const c =
|
|
213
|
-
return D(),
|
|
212
|
+
const c = ue, u = te, E = oe, Q = ne, r = Se, g = Ie, k = Z("st-monacoEditor"), R = Z("st-varSelectDialog"), pe = $e, X = we;
|
|
213
|
+
return D(), K(X, {
|
|
214
214
|
"modal-class": "manage-dialog",
|
|
215
|
-
modelValue:
|
|
216
|
-
"onUpdate:modelValue": e[8] || (e[8] = (
|
|
215
|
+
modelValue: m.value,
|
|
216
|
+
"onUpdate:modelValue": e[8] || (e[8] = (i) => m.value = i),
|
|
217
217
|
width: "1600",
|
|
218
218
|
"align-center": "",
|
|
219
219
|
"append-to-body": "",
|
|
@@ -222,77 +222,77 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
222
222
|
"modal-penetrable": !0,
|
|
223
223
|
"show-close": !1
|
|
224
224
|
}, {
|
|
225
|
-
header:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
id:
|
|
230
|
-
class: U(
|
|
231
|
-
}, " 自定义函数管理面板 ", 10,
|
|
225
|
+
header: l(({ titleId: i, titleClass: z }) => [
|
|
226
|
+
s("div", Me, [
|
|
227
|
+
s("div", Oe, [
|
|
228
|
+
s("span", {
|
|
229
|
+
id: i,
|
|
230
|
+
class: U(z)
|
|
231
|
+
}, " 自定义函数管理面板 ", 10, Be)
|
|
232
232
|
]),
|
|
233
|
-
|
|
233
|
+
s("div", qe, [
|
|
234
234
|
t(c, {
|
|
235
|
-
onClick: e[0] || (e[0] = (
|
|
235
|
+
onClick: e[0] || (e[0] = (me) => m.value = !1)
|
|
236
236
|
}, {
|
|
237
|
-
default:
|
|
238
|
-
t(b(
|
|
237
|
+
default: l(() => [
|
|
238
|
+
t(b(ee))
|
|
239
239
|
]),
|
|
240
240
|
_: 1
|
|
241
241
|
})
|
|
242
242
|
])
|
|
243
243
|
])
|
|
244
244
|
]),
|
|
245
|
-
default:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
t(
|
|
251
|
-
modelValue:
|
|
252
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
245
|
+
default: l(() => [
|
|
246
|
+
s("div", Re, [
|
|
247
|
+
s("div", Ue, [
|
|
248
|
+
s("div", je, [
|
|
249
|
+
Te,
|
|
250
|
+
t(u, {
|
|
251
|
+
modelValue: $.value,
|
|
252
|
+
"onUpdate:modelValue": e[1] || (e[1] = (i) => $.value = i),
|
|
253
253
|
clearable: ""
|
|
254
254
|
}, null, 8, ["modelValue"]),
|
|
255
|
-
t(
|
|
255
|
+
t(E, {
|
|
256
256
|
type: "primary",
|
|
257
|
-
onClick:
|
|
257
|
+
onClick: f
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
259
|
+
default: l(() => [
|
|
260
|
+
N("新建")
|
|
261
261
|
]),
|
|
262
262
|
_: 1
|
|
263
263
|
})
|
|
264
264
|
]),
|
|
265
|
-
t(
|
|
266
|
-
default:
|
|
267
|
-
|
|
268
|
-
key:
|
|
269
|
-
class: U([{ "active-list-item":
|
|
265
|
+
t(g, { class: "list" }, {
|
|
266
|
+
default: l(() => [
|
|
267
|
+
S.value.length ? (D(!0), L(se, { key: 0 }, ae(S.value, (i) => (D(), L("div", {
|
|
268
|
+
key: i.id,
|
|
269
|
+
class: U([{ "active-list-item": a.id === i.id }, "list-item"])
|
|
270
270
|
}, [
|
|
271
|
-
|
|
271
|
+
s("span", {
|
|
272
272
|
class: "func-name",
|
|
273
|
-
onClick: (
|
|
274
|
-
}, j(
|
|
275
|
-
|
|
273
|
+
onClick: (z) => I(i)
|
|
274
|
+
}, j(i.funcName), 9, Le),
|
|
275
|
+
s("div", We, [
|
|
276
276
|
t(c, null, {
|
|
277
|
-
default:
|
|
278
|
-
t(b(
|
|
279
|
-
onClick: (
|
|
277
|
+
default: l(() => [
|
|
278
|
+
t(b(ce), {
|
|
279
|
+
onClick: (z) => A(i)
|
|
280
280
|
}, null, 8, ["onClick"])
|
|
281
281
|
]),
|
|
282
282
|
_: 2
|
|
283
283
|
}, 1024),
|
|
284
|
-
t(
|
|
284
|
+
t(Q, {
|
|
285
285
|
title: "确认是否删除?",
|
|
286
286
|
"confirm-button-text": "确认",
|
|
287
287
|
"cancel-button-text": "取消",
|
|
288
|
-
onConfirm: (
|
|
288
|
+
onConfirm: (z) => P(i)
|
|
289
289
|
}, {
|
|
290
|
-
reference:
|
|
290
|
+
reference: l(() => [
|
|
291
291
|
t(c, {
|
|
292
292
|
onClick: T(() => {
|
|
293
293
|
}, ["stop"])
|
|
294
294
|
}, {
|
|
295
|
-
default:
|
|
295
|
+
default: l(() => [
|
|
296
296
|
t(b(ie))
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
@@ -301,7 +301,7 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
301
301
|
_: 2
|
|
302
302
|
}, 1032, ["onConfirm"])
|
|
303
303
|
])
|
|
304
|
-
], 2))), 128)) : (D(),
|
|
304
|
+
], 2))), 128)) : (D(), K(r, {
|
|
305
305
|
key: 1,
|
|
306
306
|
description: "暂无数据"
|
|
307
307
|
}))
|
|
@@ -309,57 +309,57 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
309
309
|
_: 1
|
|
310
310
|
})
|
|
311
311
|
]),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
t(
|
|
316
|
-
modelValue:
|
|
317
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
312
|
+
s("div", Ae, [
|
|
313
|
+
s("div", Pe, [
|
|
314
|
+
Ge,
|
|
315
|
+
t(u, {
|
|
316
|
+
modelValue: a.funcName,
|
|
317
|
+
"onUpdate:modelValue": e[2] || (e[2] = (i) => a.funcName = i)
|
|
318
318
|
}, null, 8, ["modelValue"]),
|
|
319
|
-
|
|
320
|
-
t(
|
|
319
|
+
s("div", Ke, [
|
|
320
|
+
t(E, {
|
|
321
321
|
type: "primary",
|
|
322
|
-
onClick: b(
|
|
323
|
-
loading:
|
|
322
|
+
onClick: b(B),
|
|
323
|
+
loading: y.save
|
|
324
324
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
|
|
325
|
+
default: l(() => [
|
|
326
|
+
N(" 保存 ")
|
|
327
327
|
]),
|
|
328
328
|
_: 1
|
|
329
329
|
}, 8, ["onClick", "loading"]),
|
|
330
|
-
t(
|
|
331
|
-
loading:
|
|
332
|
-
onClick: e[3] || (e[3] = (
|
|
330
|
+
t(E, {
|
|
331
|
+
loading: y.test,
|
|
332
|
+
onClick: e[3] || (e[3] = (i) => J("submit"))
|
|
333
333
|
}, {
|
|
334
|
-
default:
|
|
335
|
-
|
|
334
|
+
default: l(() => [
|
|
335
|
+
N(" 测试 ")
|
|
336
336
|
]),
|
|
337
337
|
_: 1
|
|
338
338
|
}, 8, ["loading"]),
|
|
339
|
-
t(
|
|
340
|
-
icon: b(
|
|
341
|
-
onClick: e[4] || (e[4] = (
|
|
339
|
+
t(E, {
|
|
340
|
+
icon: b(Ve),
|
|
341
|
+
onClick: e[4] || (e[4] = (i) => J("log"))
|
|
342
342
|
}, {
|
|
343
|
-
default:
|
|
344
|
-
|
|
343
|
+
default: l(() => [
|
|
344
|
+
N(" 日志明细 ")
|
|
345
345
|
]),
|
|
346
346
|
_: 1
|
|
347
347
|
}, 8, ["icon"]),
|
|
348
|
-
t(
|
|
348
|
+
t(E, {
|
|
349
349
|
type: "primary",
|
|
350
350
|
onClick: fe
|
|
351
351
|
}, {
|
|
352
|
-
default:
|
|
353
|
-
|
|
352
|
+
default: l(() => [
|
|
353
|
+
N(" 变量选择器 ")
|
|
354
354
|
]),
|
|
355
355
|
_: 1
|
|
356
356
|
})
|
|
357
357
|
])
|
|
358
358
|
]),
|
|
359
|
-
|
|
360
|
-
t(
|
|
359
|
+
He,
|
|
360
|
+
t(k, {
|
|
361
361
|
ref_key: "stMonacoEditorRef",
|
|
362
|
-
ref:
|
|
362
|
+
ref: v,
|
|
363
363
|
language: "lua",
|
|
364
364
|
style: { width: "100%", height: "calc(80vh - 75px)" }
|
|
365
365
|
}, null, 512)
|
|
@@ -367,12 +367,12 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
367
367
|
]),
|
|
368
368
|
t(R, {
|
|
369
369
|
ref_key: "stVarSelectDialogRef",
|
|
370
|
-
ref:
|
|
370
|
+
ref: F
|
|
371
371
|
}, null, 512),
|
|
372
|
-
t(
|
|
372
|
+
t(X, {
|
|
373
373
|
"modal-class": "log-dialog",
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
374
|
+
modelValue: n.value,
|
|
375
|
+
"onUpdate:modelValue": e[7] || (e[7] = (i) => n.value = i),
|
|
376
376
|
width: "830",
|
|
377
377
|
"align-center": "",
|
|
378
378
|
"append-to-body": "",
|
|
@@ -382,56 +382,56 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
|
|
|
382
382
|
"modal-penetrable": !0,
|
|
383
383
|
"show-close": !1
|
|
384
384
|
}, {
|
|
385
|
-
header:
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
id:
|
|
390
|
-
class: U(
|
|
391
|
-
}, " 日志明细 ", 10,
|
|
385
|
+
header: l(({ titleId: i, titleClass: z }) => [
|
|
386
|
+
s("div", Je, [
|
|
387
|
+
s("div", Qe, [
|
|
388
|
+
s("span", {
|
|
389
|
+
id: i,
|
|
390
|
+
class: U(z)
|
|
391
|
+
}, " 日志明细 ", 10, Xe)
|
|
392
392
|
]),
|
|
393
|
-
|
|
393
|
+
s("div", Ye, [
|
|
394
394
|
t(c, {
|
|
395
|
-
onClick: e[5] || (e[5] = (
|
|
395
|
+
onClick: e[5] || (e[5] = (me) => n.value = !1)
|
|
396
396
|
}, {
|
|
397
|
-
default:
|
|
398
|
-
t(b(
|
|
397
|
+
default: l(() => [
|
|
398
|
+
t(b(ee))
|
|
399
399
|
]),
|
|
400
400
|
_: 1
|
|
401
401
|
})
|
|
402
402
|
])
|
|
403
403
|
])
|
|
404
404
|
]),
|
|
405
|
-
footer:
|
|
406
|
-
|
|
407
|
-
t(
|
|
408
|
-
onClick: e[6] || (e[6] = (
|
|
405
|
+
footer: l(() => [
|
|
406
|
+
s("div", et, [
|
|
407
|
+
t(E, {
|
|
408
|
+
onClick: e[6] || (e[6] = (i) => n.value = !1)
|
|
409
409
|
}, {
|
|
410
|
-
default:
|
|
411
|
-
|
|
410
|
+
default: l(() => [
|
|
411
|
+
N(" 关闭 ")
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
414
|
})
|
|
415
415
|
])
|
|
416
416
|
]),
|
|
417
|
-
default:
|
|
418
|
-
|
|
419
|
-
t(
|
|
417
|
+
default: l(() => [
|
|
418
|
+
s("div", Ze, [
|
|
419
|
+
t(g, {
|
|
420
420
|
class: "code",
|
|
421
421
|
height: "600px"
|
|
422
422
|
}, {
|
|
423
|
-
default:
|
|
424
|
-
|
|
423
|
+
default: l(() => [
|
|
424
|
+
s("pre", null, j(d.code), 1)
|
|
425
425
|
]),
|
|
426
426
|
_: 1
|
|
427
427
|
}),
|
|
428
|
-
t(
|
|
429
|
-
t(
|
|
430
|
-
default:
|
|
431
|
-
|
|
432
|
-
class: U(
|
|
433
|
-
}, j(
|
|
434
|
-
${
|
|
428
|
+
t(pe, { direction: "vertical" }),
|
|
429
|
+
t(g, { height: "600px" }, {
|
|
430
|
+
default: l(() => [
|
|
431
|
+
s("pre", {
|
|
432
|
+
class: U(d.result === 1 ? "success-log" : "error-log")
|
|
433
|
+
}, j(d.result === 1 ? `✅️ 测试通过
|
|
434
|
+
${d.detail}` : d.detail), 3)
|
|
435
435
|
]),
|
|
436
436
|
_: 1
|
|
437
437
|
})
|
|
@@ -444,117 +444,118 @@ ${n.detail}` : n.detail), 3)
|
|
|
444
444
|
}, 8, ["modelValue"]);
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
},
|
|
448
|
-
const
|
|
447
|
+
}, ot = /* @__PURE__ */ re(tt, [["__scopeId", "data-v-b5dcb4b8"]]);
|
|
448
|
+
const nt = { class: "custom-function" }, lt = { class: "func-option" }, st = { class: "icons" }, at = {
|
|
449
449
|
__name: "index",
|
|
450
450
|
props: {
|
|
451
451
|
size: { type: String, default: "small" },
|
|
452
|
-
selectWidth: { type: String, default: "200px" }
|
|
452
|
+
selectWidth: { type: String, default: "200px" },
|
|
453
|
+
pageName: { type: String, default: "" }
|
|
453
454
|
},
|
|
454
455
|
emits: ["insert"],
|
|
455
|
-
setup(
|
|
456
|
-
const { request: O } =
|
|
457
|
-
const { body:
|
|
458
|
-
if (
|
|
459
|
-
|
|
456
|
+
setup(p, { emit: W }) {
|
|
457
|
+
const { request: O } = le("stConfig"), C = h(null), v = W, F = p, w = h(null), x = h(""), m = h([]), y = async () => {
|
|
458
|
+
const { body: d } = await O.post("/common/qt/querySearchFunctions");
|
|
459
|
+
if (m.value = d ?? [], w.value === null)
|
|
460
|
+
x.value = "";
|
|
460
461
|
else {
|
|
461
|
-
const n =
|
|
462
|
-
|
|
462
|
+
const n = m.value.find(({ id: f }) => f === w.value);
|
|
463
|
+
x.value = n ? n.funcName : "";
|
|
463
464
|
}
|
|
464
|
-
},
|
|
465
|
+
}, $ = (d) => {
|
|
465
466
|
var n;
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
if (!
|
|
469
|
-
return
|
|
470
|
-
const { funcName:
|
|
471
|
-
|
|
472
|
-
},
|
|
473
|
-
switch (
|
|
467
|
+
d ? w.value = (n = m.value.find((f) => f.funcName === d)) == null ? void 0 : n.id : w.value = null;
|
|
468
|
+
}, S = () => {
|
|
469
|
+
if (!x.value)
|
|
470
|
+
return V.error("请先选择自定义函数后, 再执行插入");
|
|
471
|
+
const { funcName: d, funcExpression: n } = m.value.find((f) => f.funcName === x.value);
|
|
472
|
+
v("insert", d, n);
|
|
473
|
+
}, a = async (d, n) => {
|
|
474
|
+
switch (d) {
|
|
474
475
|
case "open": {
|
|
475
|
-
C.value.open();
|
|
476
|
+
C.value.open(), F.pageName && ke(F.pageName, "因子筛选", "函数管理");
|
|
476
477
|
break;
|
|
477
478
|
}
|
|
478
479
|
case "copy": {
|
|
479
|
-
const
|
|
480
|
+
const f = {
|
|
480
481
|
id: null,
|
|
481
482
|
funcName: `${n.funcName}-复制`,
|
|
482
483
|
funcExpression: n.funcExpression
|
|
483
484
|
};
|
|
484
|
-
C.value.open(
|
|
485
|
+
C.value.open(f);
|
|
485
486
|
break;
|
|
486
487
|
}
|
|
487
488
|
case "edit": {
|
|
488
|
-
const
|
|
489
|
+
const f = {
|
|
489
490
|
id: n.id,
|
|
490
491
|
funcName: n.funcName,
|
|
491
492
|
funcExpression: n.funcExpression
|
|
492
493
|
};
|
|
493
|
-
C.value.open(
|
|
494
|
+
C.value.open(f);
|
|
494
495
|
break;
|
|
495
496
|
}
|
|
496
497
|
case "delete": {
|
|
497
|
-
await O.post("/common/qt/deleteSearchFunctionById", { id: n.id }),
|
|
498
|
+
await O.post("/common/qt/deleteSearchFunctionById", { id: n.id }), y();
|
|
498
499
|
break;
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
};
|
|
502
503
|
return xe(() => {
|
|
503
|
-
|
|
504
|
-
}), (
|
|
505
|
-
const
|
|
506
|
-
return D(), L("div",
|
|
507
|
-
t(
|
|
508
|
-
modelValue:
|
|
509
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
510
|
-
size:
|
|
504
|
+
y();
|
|
505
|
+
}), (d, n) => {
|
|
506
|
+
const f = ue, I = ne, A = _e, P = ve, B = oe;
|
|
507
|
+
return D(), L("div", nt, [
|
|
508
|
+
t(P, {
|
|
509
|
+
modelValue: x.value,
|
|
510
|
+
"onUpdate:modelValue": n[0] || (n[0] = (_) => x.value = _),
|
|
511
|
+
size: p.size,
|
|
511
512
|
placeholder: "自定义函数",
|
|
512
513
|
"no-match-text": "无匹配选项",
|
|
513
514
|
"no-data-text": "无选项数据",
|
|
514
515
|
clearable: "",
|
|
515
516
|
filterable: "",
|
|
516
|
-
onChange:
|
|
517
|
-
style: be({ width:
|
|
517
|
+
onChange: $,
|
|
518
|
+
style: be({ width: p.selectWidth })
|
|
518
519
|
}, {
|
|
519
|
-
default:
|
|
520
|
-
(D(!0), L(
|
|
521
|
-
key:
|
|
522
|
-
label:
|
|
523
|
-
value:
|
|
524
|
-
onClick:
|
|
520
|
+
default: l(() => [
|
|
521
|
+
(D(!0), L(se, null, ae(m.value, (_) => (D(), K(A, {
|
|
522
|
+
key: _.id,
|
|
523
|
+
label: _.funcName,
|
|
524
|
+
value: _.funcName,
|
|
525
|
+
onClick: S
|
|
525
526
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
t(
|
|
531
|
-
onClick: T((q) =>
|
|
527
|
+
default: l(() => [
|
|
528
|
+
s("div", lt, [
|
|
529
|
+
s("span", null, j(_.funcName), 1),
|
|
530
|
+
s("div", st, [
|
|
531
|
+
t(f, {
|
|
532
|
+
onClick: T((q) => a("copy", _), ["stop"])
|
|
532
533
|
}, {
|
|
533
|
-
default:
|
|
534
|
-
t(b(
|
|
534
|
+
default: l(() => [
|
|
535
|
+
t(b(ce))
|
|
535
536
|
]),
|
|
536
537
|
_: 2
|
|
537
538
|
}, 1032, ["onClick"]),
|
|
538
|
-
t(
|
|
539
|
-
onClick: T((q) =>
|
|
539
|
+
t(f, {
|
|
540
|
+
onClick: T((q) => a("edit", _), ["stop"])
|
|
540
541
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
t(b(
|
|
542
|
+
default: l(() => [
|
|
543
|
+
t(b(Ne))
|
|
543
544
|
]),
|
|
544
545
|
_: 2
|
|
545
546
|
}, 1032, ["onClick"]),
|
|
546
|
-
t(
|
|
547
|
+
t(I, {
|
|
547
548
|
title: "确认是否删除?",
|
|
548
549
|
"confirm-button-text": "确认",
|
|
549
550
|
"cancel-button-text": "取消",
|
|
550
|
-
onConfirm: (q) =>
|
|
551
|
+
onConfirm: (q) => a("delete", _)
|
|
551
552
|
}, {
|
|
552
|
-
reference:
|
|
553
|
-
t(
|
|
553
|
+
reference: l(() => [
|
|
554
|
+
t(f, {
|
|
554
555
|
onClick: T(() => {
|
|
555
556
|
}, ["stop"])
|
|
556
557
|
}, {
|
|
557
|
-
default:
|
|
558
|
+
default: l(() => [
|
|
558
559
|
t(b(ie))
|
|
559
560
|
]),
|
|
560
561
|
_: 1
|
|
@@ -572,38 +573,38 @@ const ot = { class: "custom-function" }, nt = { class: "func-option" }, lt = { c
|
|
|
572
573
|
}, 8, ["modelValue", "size", "style"]),
|
|
573
574
|
t(B, {
|
|
574
575
|
type: "primary",
|
|
575
|
-
size:
|
|
576
|
-
onClick:
|
|
576
|
+
size: p.size,
|
|
577
|
+
onClick: S
|
|
577
578
|
}, {
|
|
578
|
-
default:
|
|
579
|
-
|
|
579
|
+
default: l(() => [
|
|
580
|
+
N(" 插入 ")
|
|
580
581
|
]),
|
|
581
582
|
_: 1
|
|
582
583
|
}, 8, ["size"]),
|
|
583
584
|
t(B, {
|
|
584
585
|
type: "primary",
|
|
585
|
-
size:
|
|
586
|
-
onClick: n[1] || (n[1] = (
|
|
586
|
+
size: p.size,
|
|
587
|
+
onClick: n[1] || (n[1] = (_) => a("open"))
|
|
587
588
|
}, {
|
|
588
|
-
default:
|
|
589
|
-
|
|
589
|
+
default: l(() => [
|
|
590
|
+
N(" 函数管理 ")
|
|
590
591
|
]),
|
|
591
592
|
_: 1
|
|
592
593
|
}, 8, ["size"]),
|
|
593
|
-
t(
|
|
594
|
+
t(ot, {
|
|
594
595
|
ref_key: "ManageDialogRef",
|
|
595
596
|
ref: C,
|
|
596
|
-
data:
|
|
597
|
-
onRefreshData:
|
|
597
|
+
data: m.value,
|
|
598
|
+
onRefreshData: y
|
|
598
599
|
}, null, 8, ["data"])
|
|
599
600
|
]);
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
},
|
|
603
|
-
install(
|
|
604
|
-
|
|
603
|
+
}, ct = /* @__PURE__ */ re(at, [["__scopeId", "data-v-b4ac1908"]]), Gt = {
|
|
604
|
+
install(p) {
|
|
605
|
+
p.component("st-customFunction", ct);
|
|
605
606
|
}
|
|
606
607
|
};
|
|
607
608
|
export {
|
|
608
|
-
|
|
609
|
+
Gt as default
|
|
609
610
|
};
|