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.
Files changed (48) 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 -261
  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 +1 -1
  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 +19 -19
  26. package/es/VarietySearch.js +1355 -1348
  27. package/es/{VarietySelect-2fd501da.cjs → VarietySelect-031bf077.cjs} +1 -1
  28. package/es/{VarietySelect-5a9dd50b.js → VarietySelect-ae0c48b2.js} +1 -1
  29. package/es/VarietyTextCopy.cjs +3 -3
  30. package/es/VarietyTextCopy.js +4 -4
  31. package/es/{index-2375023e.cjs → index-1f939868.cjs} +2 -2
  32. package/es/{index-8901a38c.cjs → index-2c456130.cjs} +40 -40
  33. package/es/{index-ac98a4d8.js → index-4b01552e.js} +3 -3
  34. package/es/{index-7ed0999e.js → index-edabe380.js} +5574 -5487
  35. package/es/{python-a914569a.js → python-7ce6f0b1.js} +3 -3
  36. package/es/{python-c67c8901.cjs → python-c8abd4f5.cjs} +1 -1
  37. package/es/style.css +1 -1
  38. package/lib/bundle.js +1 -1
  39. package/lib/bundle.umd.cjs +174 -174
  40. package/lib/{index-f513d22c.js → index-200db55b.js} +19730 -19636
  41. package/lib/{python-8c7ede72.js → python-9540022d.js} +1 -1
  42. package/lib/style.css +1 -1
  43. package/package.json +1 -1
  44. package/packages/CustomFunction/index.vue +5 -2
  45. package/packages/VarietySearch/components/CompositeOrder/index.vue +4 -0
  46. package/packages/VarietySearch/components/FactorScreen/index.vue +7 -0
  47. package/packages/VarietySearch/config.js +4 -5
  48. package/packages/VarietySearch/index.vue +10 -11
@@ -1,24 +1,24 @@
1
1
  import "./base-a5af3db3.js";
2
- import { E as te } from "./el-button-d09ff85f.js";
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 oe } from "./el-popconfirm-a6f66a0e.js";
7
+ import { E as ne } from "./el-popconfirm-a6f66a0e.js";
8
8
  import "./el-popover-4ed993c7.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";
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 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";
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 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 = {
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(f, { expose: W, emit: O }) {
49
- const { request: C } = ne("stConfig"), p = v(null), k = v(null), h = O, y = f, E = v(!1), V = P({
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
- }), w = v(null), x = ge(() => w.value ? y.data.filter((o) => o.funcName.includes(w.value)) : y.data), l = P({
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
- }), n = P({
56
+ }), d = G({
57
57
  result: null,
58
58
  detail: "",
59
59
  code: ""
60
- }), i = v(!1), z = () => {
60
+ }), n = h(!1), f = () => {
61
61
  var o;
62
- Object.assign(l, {
62
+ Object.assign(a, {
63
63
  id: null,
64
64
  funcName: "",
65
65
  funcExpression: ""
66
- }), (o = p.value) == null || o.setValue(l.funcExpression);
66
+ }), (o = v.value) == null || o.setValue(a.funcExpression);
67
67
  }, I = (o) => {
68
68
  var e;
69
- Object.assign(l, {
69
+ Object.assign(a, {
70
70
  id: o.id,
71
71
  funcName: o.funcName,
72
72
  funcExpression: o.funcExpression
73
- }), (e = p.value) == null || e.setValue(l.funcExpression);
73
+ }), (e = v.value) == null || e.setValue(a.funcExpression);
74
74
  }, A = (o) => {
75
75
  var e;
76
- Object.assign(l, {
76
+ Object.assign(a, {
77
77
  id: null,
78
78
  funcName: `${o.funcName}-复制`,
79
79
  funcExpression: o.funcExpression
80
- }), (e = p.value) == null || e.setValue(l.funcExpression);
81
- }, B = async (o) => {
80
+ }), (e = v.value) == null || e.setValue(a.funcExpression);
81
+ }, P = async (o) => {
82
82
  var e;
83
- o.id === l.id && (Object.assign(l, {
83
+ o.id === a.id && (Object.assign(a, {
84
84
  id: null,
85
85
  funcName: "",
86
86
  funcExpression: ""
87
- }), (e = p.value) == null || e.setValue(l.funcExpression)), await C.post("/common/qt/deleteSearchFunctionById", { id: o.id }), h("refreshData");
88
- }, m = $e(async () => {
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 (V.save = !0, l.funcExpression = p.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();
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
- V.save = !1;
96
+ y.save = !1;
97
97
  }
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) => {
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[N]) != null && R.trim() || (_[N] = `请输入${N}的值`, d = !1);
107
- }), r.value = _, d;
106
+ (R = c.value[k]) != null && R.trim() || (g[k] = `请输入${k}的值`, r = !1);
107
+ }), u.value = g, r;
108
108
  };
109
- Se({
109
+ De({
110
110
  title: "填写变量值用于接口测试",
111
111
  message: M({
112
112
  setup() {
113
113
  return () => M("div", [
114
114
  M(
115
- De,
115
+ Fe,
116
116
  {
117
117
  model: c.value
118
118
  },
119
119
  () => o.map(
120
- (d) => M(
121
- Fe,
120
+ (r) => M(
121
+ ze,
122
122
  {
123
- label: `${d}: `,
124
- prop: d,
125
- error: r.value[d],
123
+ label: `${r}: `,
124
+ prop: r,
125
+ error: u.value[r],
126
126
  "label-width": "90px"
127
127
  },
128
- () => M(ee, {
129
- modelValue: c.value[d],
130
- "onUpdate:modelValue": (_) => {
131
- c.value[d] = _, r.value[d] && delete r.value[d];
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: `请输入 ${d} 的值`,
134
- status: r.value[d] ? "error" : ""
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 (d, _, N) => {
147
- d !== "confirm" && (e(!1), N()), await X(), g() && (e({ ...c.value }), N());
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
- }), re = (o) => {
150
+ }), q = (o) => {
151
151
  const e = /\$\{([^}]*)\}/g, c = [];
152
- let r;
153
- for (; (r = e.exec(o)) !== null; )
154
- c.push(r[1]);
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, r) => e[r] !== void 0 ? e[r] : c), H = async (o) => {
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 = p.value.getValue();
159
+ let e = v.value.getValue();
160
160
  if (!e)
161
- return $.error("函数内容不可为空");
161
+ return V.error("函数内容不可为空");
162
162
  if (/\$\{[^}]*\}/.test(e)) {
163
- const c = re(e), r = await q(c);
164
- if (!r)
163
+ const c = q(e), u = await _(c);
164
+ if (!u)
165
165
  return;
166
- e = de(e, r);
166
+ e = de(e, u);
167
167
  }
168
168
  try {
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);
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
- V.test = !1;
173
+ y.test = !1;
174
174
  }
175
175
  break;
176
176
  }
177
177
  case "log": {
178
- if (n.result === null)
179
- return $.warning("请先进行测试, 等待测试完成后可查看日志");
180
- i.value = !0;
178
+ if (d.result === null)
179
+ return V.warning("请先进行测试, 等待测试完成后可查看日志");
180
+ n.value = !0;
181
181
  break;
182
182
  }
183
183
  }
184
184
  }, fe = () => {
185
- k.value.open(p.value);
185
+ F.value.open(v.value);
186
186
  };
187
187
  return he(
188
- () => E.value,
188
+ () => m.value,
189
189
  (o) => {
190
- o || (k.value.close(), i.value = !1);
190
+ o || (F.value.close(), n.value = !1);
191
191
  }
192
192
  ), W({
193
193
  open: (o) => {
194
- E.value = !0, X(() => {
194
+ m.value = !0, Y(() => {
195
195
  var e;
196
- if ((e = p.value) == null || e.resize(), w.value = null, Object.assign(n, {
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
- x.value.length ? I(x.value[0]) : z();
208
+ S.value.length ? I(S.value[0]) : f();
209
209
  });
210
210
  }
211
211
  }), (o, e) => {
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, {
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: E.value,
216
- "onUpdate:modelValue": e[8] || (e[8] = (u) => E.value = u),
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: 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)
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
- a("div", Be, [
233
+ s("div", qe, [
234
234
  t(c, {
235
- onClick: e[0] || (e[0] = (pe) => E.value = !1)
235
+ onClick: e[0] || (e[0] = (me) => m.value = !1)
236
236
  }, {
237
- default: s(() => [
238
- t(b(Z))
237
+ default: l(() => [
238
+ t(b(ee))
239
239
  ]),
240
240
  _: 1
241
241
  })
242
242
  ])
243
243
  ])
244
244
  ]),
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),
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(g, {
255
+ t(E, {
256
256
  type: "primary",
257
- onClick: z
257
+ onClick: f
258
258
  }, {
259
- default: s(() => [
260
- S("新建")
259
+ default: l(() => [
260
+ N("新建")
261
261
  ]),
262
262
  _: 1
263
263
  })
264
264
  ]),
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"])
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
- a("span", {
271
+ s("span", {
272
272
  class: "func-name",
273
- onClick: (F) => I(u)
274
- }, j(u.funcName), 9, Te),
275
- a("div", Le, [
273
+ onClick: (z) => I(i)
274
+ }, j(i.funcName), 9, Le),
275
+ s("div", We, [
276
276
  t(c, null, {
277
- default: s(() => [
278
- t(b(ae), {
279
- onClick: (F) => A(u)
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(J, {
284
+ t(Q, {
285
285
  title: "确认是否删除?",
286
286
  "confirm-button-text": "确认",
287
287
  "cancel-button-text": "取消",
288
- onConfirm: (F) => B(u)
288
+ onConfirm: (z) => P(i)
289
289
  }, {
290
- reference: s(() => [
290
+ reference: l(() => [
291
291
  t(c, {
292
292
  onClick: T(() => {
293
293
  }, ["stop"])
294
294
  }, {
295
- default: s(() => [
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(), G(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
- 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)
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
- a("div", Ge, [
320
- t(g, {
319
+ s("div", Ke, [
320
+ t(E, {
321
321
  type: "primary",
322
- onClick: b(m),
323
- loading: V.save
322
+ onClick: b(B),
323
+ loading: y.save
324
324
  }, {
325
- default: s(() => [
326
- S(" 保存 ")
325
+ default: l(() => [
326
+ N(" 保存 ")
327
327
  ]),
328
328
  _: 1
329
329
  }, 8, ["onClick", "loading"]),
330
- t(g, {
331
- loading: V.test,
332
- onClick: e[3] || (e[3] = (u) => H("submit"))
330
+ t(E, {
331
+ loading: y.test,
332
+ onClick: e[3] || (e[3] = (i) => J("submit"))
333
333
  }, {
334
- default: s(() => [
335
- S(" 测试 ")
334
+ default: l(() => [
335
+ N(" 测试 ")
336
336
  ]),
337
337
  _: 1
338
338
  }, 8, ["loading"]),
339
- t(g, {
340
- icon: b(Ce),
341
- onClick: e[4] || (e[4] = (u) => H("log"))
339
+ t(E, {
340
+ icon: b(Ve),
341
+ onClick: e[4] || (e[4] = (i) => J("log"))
342
342
  }, {
343
- default: s(() => [
344
- S(" 日志明细 ")
343
+ default: l(() => [
344
+ N(" 日志明细 ")
345
345
  ]),
346
346
  _: 1
347
347
  }, 8, ["icon"]),
348
- t(g, {
348
+ t(E, {
349
349
  type: "primary",
350
350
  onClick: fe
351
351
  }, {
352
- default: s(() => [
353
- S(" 变量选择器 ")
352
+ default: l(() => [
353
+ N(" 变量选择器 ")
354
354
  ]),
355
355
  _: 1
356
356
  })
357
357
  ])
358
358
  ]),
359
- Ke,
360
- t(N, {
359
+ He,
360
+ t(k, {
361
361
  ref_key: "stMonacoEditorRef",
362
- ref: p,
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: k
370
+ ref: F
371
371
  }, null, 512),
372
- t(Q, {
372
+ t(X, {
373
373
  "modal-class": "log-dialog",
374
- modelValue: i.value,
375
- "onUpdate:modelValue": e[7] || (e[7] = (u) => i.value = u),
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: 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)
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
- a("div", Xe, [
393
+ s("div", Ye, [
394
394
  t(c, {
395
- onClick: e[5] || (e[5] = (pe) => i.value = !1)
395
+ onClick: e[5] || (e[5] = (me) => n.value = !1)
396
396
  }, {
397
- default: s(() => [
398
- t(b(Z))
397
+ default: l(() => [
398
+ t(b(ee))
399
399
  ]),
400
400
  _: 1
401
401
  })
402
402
  ])
403
403
  ])
404
404
  ]),
405
- footer: s(() => [
406
- a("div", Ze, [
407
- t(g, {
408
- onClick: e[6] || (e[6] = (u) => i.value = !1)
405
+ footer: l(() => [
406
+ s("div", et, [
407
+ t(E, {
408
+ onClick: e[6] || (e[6] = (i) => n.value = !1)
409
409
  }, {
410
- default: s(() => [
411
- S(" 关闭 ")
410
+ default: l(() => [
411
+ N(" 关闭 ")
412
412
  ]),
413
413
  _: 1
414
414
  })
415
415
  ])
416
416
  ]),
417
- default: s(() => [
418
- a("div", Ye, [
419
- t(_, {
417
+ default: l(() => [
418
+ s("div", Ze, [
419
+ t(g, {
420
420
  class: "code",
421
421
  height: "600px"
422
422
  }, {
423
- default: s(() => [
424
- a("pre", null, j(n.code), 1)
423
+ default: l(() => [
424
+ s("pre", null, j(d.code), 1)
425
425
  ]),
426
426
  _: 1
427
427
  }),
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)
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
- }, tt = /* @__PURE__ */ ue(et, [["__scopeId", "data-v-b5dcb4b8"]]);
448
- const ot = { class: "custom-function" }, nt = { class: "func-option" }, lt = { class: "icons" }, st = {
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(f, { emit: W }) {
456
- const { request: O } = ne("stConfig"), C = v(null), p = 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 = "";
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 = y.value.find(({ id: i }) => i === k.value);
462
- h.value = n ? n.funcName : "";
462
+ const n = m.value.find(({ id: f }) => f === w.value);
463
+ x.value = n ? n.funcName : "";
463
464
  }
464
- }, V = (l) => {
465
+ }, $ = (d) => {
465
466
  var n;
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
- p("insert", l, n);
472
- }, x = async (l, n) => {
473
- switch (l) {
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 i = {
480
+ const f = {
480
481
  id: null,
481
482
  funcName: `${n.funcName}-复制`,
482
483
  funcExpression: n.funcExpression
483
484
  };
484
- C.value.open(i);
485
+ C.value.open(f);
485
486
  break;
486
487
  }
487
488
  case "edit": {
488
- const i = {
489
+ const f = {
489
490
  id: n.id,
490
491
  funcName: n.funcName,
491
492
  funcExpression: n.funcExpression
492
493
  };
493
- C.value.open(i);
494
+ C.value.open(f);
494
495
  break;
495
496
  }
496
497
  case "delete": {
497
- await O.post("/common/qt/deleteSearchFunctionById", { id: n.id }), E();
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
- 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] = (m) => h.value = m),
510
- size: f.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: V,
517
- style: be({ width: f.selectWidth })
517
+ onChange: $,
518
+ style: be({ width: p.selectWidth })
518
519
  }, {
519
- default: s(() => [
520
- (D(!0), L(le, null, se(y.value, (m) => (D(), G(I, {
521
- key: m.id,
522
- label: m.funcName,
523
- value: m.funcName,
524
- onClick: w
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: s(() => [
527
- a("div", nt, [
528
- a("span", null, j(m.funcName), 1),
529
- a("div", lt, [
530
- t(i, {
531
- onClick: T((q) => x("copy", m), ["stop"])
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: s(() => [
534
- t(b(ae))
534
+ default: l(() => [
535
+ t(b(ce))
535
536
  ]),
536
537
  _: 2
537
538
  }, 1032, ["onClick"]),
538
- t(i, {
539
- onClick: T((q) => x("edit", m), ["stop"])
539
+ t(f, {
540
+ onClick: T((q) => a("edit", _), ["stop"])
540
541
  }, {
541
- default: s(() => [
542
- t(b(ke))
542
+ default: l(() => [
543
+ t(b(Ne))
543
544
  ]),
544
545
  _: 2
545
546
  }, 1032, ["onClick"]),
546
- t(z, {
547
+ t(I, {
547
548
  title: "确认是否删除?",
548
549
  "confirm-button-text": "确认",
549
550
  "cancel-button-text": "取消",
550
- onConfirm: (q) => x("delete", m)
551
+ onConfirm: (q) => a("delete", _)
551
552
  }, {
552
- reference: s(() => [
553
- t(i, {
553
+ reference: l(() => [
554
+ t(f, {
554
555
  onClick: T(() => {
555
556
  }, ["stop"])
556
557
  }, {
557
- default: s(() => [
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: f.size,
576
- onClick: w
576
+ size: p.size,
577
+ onClick: S
577
578
  }, {
578
- default: s(() => [
579
- S(" 插入 ")
579
+ default: l(() => [
580
+ N(" 插入 ")
580
581
  ]),
581
582
  _: 1
582
583
  }, 8, ["size"]),
583
584
  t(B, {
584
585
  type: "primary",
585
- size: f.size,
586
- onClick: n[1] || (n[1] = (m) => x("open"))
586
+ size: p.size,
587
+ onClick: n[1] || (n[1] = (_) => a("open"))
587
588
  }, {
588
- default: s(() => [
589
- S(" 函数管理 ")
589
+ default: l(() => [
590
+ N(" 函数管理 ")
590
591
  ]),
591
592
  _: 1
592
593
  }, 8, ["size"]),
593
- t(tt, {
594
+ t(ot, {
594
595
  ref_key: "ManageDialogRef",
595
596
  ref: C,
596
- data: y.value,
597
- onRefreshData: E
597
+ data: m.value,
598
+ onRefreshData: y
598
599
  }, null, 8, ["data"])
599
600
  ]);
600
601
  };
601
602
  }
602
- }, at = /* @__PURE__ */ ue(st, [["__scopeId", "data-v-d2f2ff3e"]]), Pt = {
603
- install(f) {
604
- f.component("st-customFunction", at);
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
- Pt as default
609
+ Gt as default
609
610
  };