st-comp 0.0.244 → 0.0.246

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