st-comp 0.0.119 → 0.0.121
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/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +448 -454
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +115 -115
- package/lib/{index-824e4fa8.js → index-dbad59c9.js} +4883 -4889
- package/lib/{python-d78b6dc4.js → python-ab788b86.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +31 -29
package/es/FactorWarning.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { b as Xe, d as
|
|
1
|
+
import { b as Xe, d as he, i as le, a as Ce, c as ke, u as Ge, e as pe, f as Me, _ as Fe, g as ue, w as We, h as ve, j as Ye, k as we, l as Je, m as Ee } from "./base-f7877059.js";
|
|
2
2
|
import { z as Ze, E as Qe } from "./zh-cn-74781bbd.js";
|
|
3
3
|
import { a as xe, u as et, b as tt, c as lt, E as ot } from "./el-overlay-69e9ae49.js";
|
|
4
4
|
import "./el-tag-5becabc9.js";
|
|
5
|
-
import { E as at, a as nt, b as st, c as rt } from "./el-table-column-3c920bdd.js";
|
|
6
5
|
import "./el-tooltip-4ed993c7.js";
|
|
7
|
-
import { u as
|
|
6
|
+
import { u as at, E as nt } from "./el-popper-6126b1f6.js";
|
|
7
|
+
import { E as st, a as rt, b as it, c as ut } from "./el-table-column-3c920bdd.js";
|
|
8
8
|
import { u as dt, a as ct } from "./el-scrollbar-e0493906.js";
|
|
9
9
|
import { E as ft } from "./el-popover-694ded47.js";
|
|
10
|
-
import { E as
|
|
10
|
+
import { E as Oe } from "./el-button-802f579a.js";
|
|
11
11
|
import { E as mt, a as pt, b as vt, c as gt } from "./el-form-item-84099d46.js";
|
|
12
|
-
import { E as
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import { c as St, u as Tt, a as _t, b as Bt, d as Vt, e as It, E as De, T as Lt, l as
|
|
12
|
+
import { E as $e } from "./el-input-fac5b401.js";
|
|
13
|
+
import { defineComponent as be, ref as $, reactive as Ne, computed as U, watch as oe, openBlock as n, createElementBlock as T, unref as E, normalizeClass as C, createElementVNode as y, normalizeStyle as ge, Fragment as X, renderList as J, renderSlot as Ae, createTextVNode as S, toDisplayString as O, createCommentVNode as w, nextTick as te, markRaw as Se, onMounted as yt, onBeforeUnmount as bt, toRefs as ht, resolveComponent as Q, createBlock as g, Transition as Ct, withCtx as a, withDirectives as fe, createVNode as i, withModifiers as se, resolveDynamicComponent as re, withKeys as ie, vShow as me, isVNode as Pe, render as Re, mergeModels as Te, useModel as kt, pushScopeId as wt, popScopeId as Et } from "vue";
|
|
14
|
+
import { c as St, u as Tt, a as _t, b as Bt, d as Vt, e as It, E as De, T as Lt, l as _e, f as Be, i as Ve } from "./use-form-common-props-f3a520d0.js";
|
|
15
15
|
import { G as Mt } from "./index-57f8f7b9.js";
|
|
16
|
-
import { _ as
|
|
17
|
-
import { o as Ie, E as
|
|
16
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
import { o as Ie, E as Ot, a as $t } from "./index-048dca7e.js";
|
|
18
18
|
import { u as Nt } from "./index-35117549.js";
|
|
19
19
|
import { U as ze, C as Ue } from "./event-09e37cc8.js";
|
|
20
20
|
import { E as At } from "./index-7e40be25.js";
|
|
@@ -29,11 +29,11 @@ import "./castArray-18f43497.js";
|
|
|
29
29
|
import "./typescript-7ae59c4c.js";
|
|
30
30
|
const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
31
31
|
direction: {
|
|
32
|
-
type:
|
|
32
|
+
type: he(String),
|
|
33
33
|
default: "horizontal"
|
|
34
34
|
},
|
|
35
35
|
options: {
|
|
36
|
-
type:
|
|
36
|
+
type: he(Array),
|
|
37
37
|
default: () => []
|
|
38
38
|
},
|
|
39
39
|
modelValue: {
|
|
@@ -49,100 +49,100 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
49
49
|
},
|
|
50
50
|
id: String,
|
|
51
51
|
name: String,
|
|
52
|
-
...
|
|
52
|
+
...at(["ariaLabel"])
|
|
53
53
|
}), Dt = {
|
|
54
|
-
[ze]: (e) =>
|
|
55
|
-
[Ue]: (e) =>
|
|
56
|
-
}, zt =
|
|
54
|
+
[ze]: (e) => le(e) || Ce(e) || ke(e),
|
|
55
|
+
[Ue]: (e) => le(e) || Ce(e) || ke(e)
|
|
56
|
+
}, zt = be({
|
|
57
57
|
name: "ElSegmented"
|
|
58
|
-
}), Ut = /* @__PURE__ */
|
|
58
|
+
}), Ut = /* @__PURE__ */ be({
|
|
59
59
|
...zt,
|
|
60
60
|
props: Rt,
|
|
61
61
|
emits: Dt,
|
|
62
|
-
setup(e, { emit:
|
|
63
|
-
const
|
|
62
|
+
setup(e, { emit: f }) {
|
|
63
|
+
const o = e, u = Ge("segmented"), v = pe(), m = _t(), h = Bt(), { formItem: B } = Vt(), { inputId: d, isLabeledByFormItem: s } = It(o, {
|
|
64
64
|
formItemContext: B
|
|
65
|
-
}), P =
|
|
65
|
+
}), P = $(null), p = dt(), c = Ne({
|
|
66
66
|
isInit: !1,
|
|
67
67
|
width: 0,
|
|
68
68
|
height: 0,
|
|
69
69
|
translateX: 0,
|
|
70
70
|
translateY: 0,
|
|
71
71
|
focusVisible: !1
|
|
72
|
-
}),
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
},
|
|
72
|
+
}), W = (r) => {
|
|
73
|
+
const I = Y(r);
|
|
74
|
+
f(ze, I), f(Ue, I);
|
|
75
|
+
}, Y = (r) => ue(r) ? r.value : r, R = (r) => ue(r) ? r.label : r, H = (r) => !!(h.value || ue(r) && r.disabled), q = (r) => o.modelValue === Y(r), K = (r) => o.options.find((I) => Y(I) === r), _ = (r) => [
|
|
76
76
|
u.e("item"),
|
|
77
|
-
u.is("selected",
|
|
78
|
-
u.is("disabled",
|
|
77
|
+
u.is("selected", q(r)),
|
|
78
|
+
u.is("disabled", H(r))
|
|
79
79
|
], l = () => {
|
|
80
80
|
if (!P.value)
|
|
81
81
|
return;
|
|
82
|
-
const
|
|
83
|
-
if (!
|
|
84
|
-
|
|
82
|
+
const r = P.value.querySelector(".is-selected"), I = P.value.querySelector(".is-selected input");
|
|
83
|
+
if (!r || !I) {
|
|
84
|
+
c.width = 0, c.height = 0, c.translateX = 0, c.translateY = 0, c.focusVisible = !1;
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const L = r.getBoundingClientRect();
|
|
88
|
+
c.isInit = !0, o.direction === "vertical" ? (c.height = L.height, c.translateY = r.offsetTop) : (c.width = L.width, c.translateX = r.offsetLeft);
|
|
89
89
|
try {
|
|
90
|
-
|
|
90
|
+
c.focusVisible = I.matches(":focus-visible");
|
|
91
91
|
} catch {
|
|
92
92
|
}
|
|
93
|
-
}, D =
|
|
93
|
+
}, D = U(() => [
|
|
94
94
|
u.b(),
|
|
95
|
-
u.m(
|
|
96
|
-
u.is("block",
|
|
97
|
-
]), V =
|
|
98
|
-
width:
|
|
99
|
-
height:
|
|
100
|
-
transform:
|
|
101
|
-
display:
|
|
102
|
-
})), k =
|
|
95
|
+
u.m(m.value),
|
|
96
|
+
u.is("block", o.block)
|
|
97
|
+
]), V = U(() => ({
|
|
98
|
+
width: o.direction === "vertical" ? "100%" : `${c.width}px`,
|
|
99
|
+
height: o.direction === "vertical" ? `${c.height}px` : "100%",
|
|
100
|
+
transform: o.direction === "vertical" ? `translateY(${c.translateY}px)` : `translateX(${c.translateX}px)`,
|
|
101
|
+
display: c.isInit ? "block" : "none"
|
|
102
|
+
})), k = U(() => [
|
|
103
103
|
u.e("item-selected"),
|
|
104
|
-
u.is("disabled", K(
|
|
105
|
-
u.is("focus-visible",
|
|
106
|
-
]),
|
|
107
|
-
return ct(P, l),
|
|
108
|
-
var
|
|
109
|
-
l(),
|
|
104
|
+
u.is("disabled", H(K(o.modelValue))),
|
|
105
|
+
u.is("focus-visible", c.focusVisible)
|
|
106
|
+
]), N = U(() => o.name || v.value);
|
|
107
|
+
return ct(P, l), oe(p, l), oe(() => o.modelValue, () => {
|
|
108
|
+
var r;
|
|
109
|
+
l(), o.validateEvent && ((r = B == null ? void 0 : B.validate) == null || r.call(B, "change").catch((I) => Me(I)));
|
|
110
110
|
}, {
|
|
111
111
|
flush: "post"
|
|
112
|
-
}), (
|
|
112
|
+
}), (r, I) => r.options.length ? (n(), T("div", {
|
|
113
113
|
key: 0,
|
|
114
114
|
id: E(d),
|
|
115
115
|
ref_key: "segmentedRef",
|
|
116
116
|
ref: P,
|
|
117
117
|
class: C(E(D)),
|
|
118
118
|
role: "radiogroup",
|
|
119
|
-
"aria-label": E(
|
|
120
|
-
"aria-labelledby": E(
|
|
119
|
+
"aria-label": E(s) ? void 0 : r.ariaLabel || "segmented",
|
|
120
|
+
"aria-labelledby": E(s) ? E(B).labelId : void 0
|
|
121
121
|
}, [
|
|
122
|
-
|
|
123
|
-
class: C([E(u).e("group"), E(u).m(
|
|
122
|
+
y("div", {
|
|
123
|
+
class: C([E(u).e("group"), E(u).m(o.direction)])
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
style:
|
|
125
|
+
y("div", {
|
|
126
|
+
style: ge(E(V)),
|
|
127
127
|
class: C(E(k))
|
|
128
128
|
}, null, 6),
|
|
129
|
-
(n(!0), T(
|
|
130
|
-
key:
|
|
131
|
-
class: C(_(
|
|
129
|
+
(n(!0), T(X, null, J(r.options, (L, j) => (n(), T("label", {
|
|
130
|
+
key: j,
|
|
131
|
+
class: C(_(L))
|
|
132
132
|
}, [
|
|
133
|
-
|
|
133
|
+
y("input", {
|
|
134
134
|
class: C(E(u).e("item-input")),
|
|
135
135
|
type: "radio",
|
|
136
|
-
name: E(
|
|
137
|
-
disabled:
|
|
138
|
-
checked:
|
|
139
|
-
onChange: (
|
|
136
|
+
name: E(N),
|
|
137
|
+
disabled: H(L),
|
|
138
|
+
checked: q(L),
|
|
139
|
+
onChange: (ee) => W(L)
|
|
140
140
|
}, null, 42, ["name", "disabled", "checked", "onChange"]),
|
|
141
|
-
|
|
141
|
+
y("div", {
|
|
142
142
|
class: C(E(u).e("item-label"))
|
|
143
143
|
}, [
|
|
144
|
-
Ae(
|
|
145
|
-
S(
|
|
144
|
+
Ae(r.$slots, "default", { item: L }, () => [
|
|
145
|
+
S(O(R(L)), 1)
|
|
146
146
|
])
|
|
147
147
|
], 2)
|
|
148
148
|
], 2))), 128))
|
|
@@ -150,44 +150,44 @@ const Pt = (e) => ["", ...St].includes(e), Rt = Xe({
|
|
|
150
150
|
], 10, ["id", "aria-label", "aria-labelledby"])) : w("v-if", !0);
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
var qt = /* @__PURE__ */
|
|
154
|
-
const Ht = We(qt),
|
|
155
|
-
var
|
|
156
|
-
if (
|
|
153
|
+
var qt = /* @__PURE__ */ Fe(Ut, [["__file", "segmented.vue"]]);
|
|
154
|
+
const Ht = We(qt), ye = "_trap-focus-children", Z = [], Le = (e) => {
|
|
155
|
+
var f;
|
|
156
|
+
if (Z.length === 0)
|
|
157
157
|
return;
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
if (
|
|
161
|
-
e.preventDefault(), document.activeElement !==
|
|
158
|
+
const o = Z[Z.length - 1][ye];
|
|
159
|
+
if (o.length > 0 && e.code === Ot.tab) {
|
|
160
|
+
if (o.length === 1) {
|
|
161
|
+
e.preventDefault(), document.activeElement !== o[0] && o[0].focus();
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
const u = e.shiftKey,
|
|
165
|
-
if (
|
|
166
|
-
const h =
|
|
167
|
-
h !== -1 && ((
|
|
164
|
+
const u = e.shiftKey, v = e.target === o[0], m = e.target === o[o.length - 1];
|
|
165
|
+
if (v && u && (e.preventDefault(), o[o.length - 1].focus()), m && !u && (e.preventDefault(), o[0].focus()), process.env.NODE_ENV === "test") {
|
|
166
|
+
const h = o.indexOf(e.target);
|
|
167
|
+
h !== -1 && ((f = o[u ? h - 1 : h + 1]) == null || f.focus());
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}, Kt = {
|
|
171
171
|
beforeMount(e) {
|
|
172
|
-
e[
|
|
172
|
+
e[ye] = Ie(e), Z.push(e), Z.length <= 1 && document.addEventListener("keydown", Le);
|
|
173
173
|
},
|
|
174
174
|
updated(e) {
|
|
175
|
-
|
|
176
|
-
e[
|
|
175
|
+
te(() => {
|
|
176
|
+
e[ye] = Ie(e);
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
179
|
unmounted() {
|
|
180
|
-
|
|
180
|
+
Z.shift(), Z.length === 0 && document.removeEventListener("keydown", Le);
|
|
181
181
|
}
|
|
182
|
-
}, jt =
|
|
182
|
+
}, jt = be({
|
|
183
183
|
name: "ElMessageBox",
|
|
184
184
|
directives: {
|
|
185
185
|
TrapFocus: Kt
|
|
186
186
|
},
|
|
187
187
|
components: {
|
|
188
|
-
ElButton:
|
|
189
|
-
ElFocusTrap:
|
|
190
|
-
ElInput:
|
|
188
|
+
ElButton: Oe,
|
|
189
|
+
ElFocusTrap: $t,
|
|
190
|
+
ElInput: $e,
|
|
191
191
|
ElOverlay: xe,
|
|
192
192
|
ElIcon: De,
|
|
193
193
|
...Lt
|
|
@@ -239,13 +239,13 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
emits: ["vanish", "action"],
|
|
242
|
-
setup(e, { emit:
|
|
242
|
+
setup(e, { emit: f }) {
|
|
243
243
|
const {
|
|
244
|
-
locale:
|
|
244
|
+
locale: o,
|
|
245
245
|
zIndex: u,
|
|
246
|
-
ns:
|
|
247
|
-
size:
|
|
248
|
-
} = Nt("message-box",
|
|
246
|
+
ns: v,
|
|
247
|
+
size: m
|
|
248
|
+
} = Nt("message-box", U(() => e.buttonSize)), { t: h } = o, { nextZIndex: B } = u, d = $(!1), s = Ne({
|
|
249
249
|
autofocus: !0,
|
|
250
250
|
beforeClose: null,
|
|
251
251
|
callback: null,
|
|
@@ -275,113 +275,113 @@ const Ht = We(qt), be = "_trap-focus-children", J = [], Le = (e) => {
|
|
|
275
275
|
action: "",
|
|
276
276
|
confirmButtonLoading: !1,
|
|
277
277
|
cancelButtonLoading: !1,
|
|
278
|
-
confirmButtonLoadingIcon:
|
|
279
|
-
cancelButtonLoadingIcon:
|
|
278
|
+
confirmButtonLoadingIcon: Se(_e),
|
|
279
|
+
cancelButtonLoadingIcon: Se(_e),
|
|
280
280
|
confirmButtonDisabled: !1,
|
|
281
281
|
editorErrorMessage: "",
|
|
282
282
|
validateError: !1,
|
|
283
283
|
zIndex: B()
|
|
284
|
-
}), P =
|
|
285
|
-
const
|
|
286
|
-
return { [
|
|
287
|
-
}),
|
|
288
|
-
const
|
|
289
|
-
return
|
|
290
|
-
}),
|
|
291
|
-
|
|
292
|
-
await
|
|
293
|
-
}, { immediate: !0 }),
|
|
294
|
-
var
|
|
295
|
-
|
|
296
|
-
var
|
|
297
|
-
|
|
298
|
-
}) : (
|
|
284
|
+
}), P = U(() => {
|
|
285
|
+
const b = s.type;
|
|
286
|
+
return { [v.bm("icon", b)]: b && Be[b] };
|
|
287
|
+
}), p = pe(), c = pe(), W = U(() => {
|
|
288
|
+
const b = s.type;
|
|
289
|
+
return s.icon || b && Be[b] || "";
|
|
290
|
+
}), Y = U(() => !!s.message), R = $(), H = $(), q = $(), K = $(), _ = $(), l = U(() => s.confirmButtonClass);
|
|
291
|
+
oe(() => s.inputValue, async (b) => {
|
|
292
|
+
await te(), e.boxType === "prompt" && b !== null && j();
|
|
293
|
+
}, { immediate: !0 }), oe(() => d.value, (b) => {
|
|
294
|
+
var M, F;
|
|
295
|
+
b && (e.boxType !== "prompt" && (s.autofocus ? q.value = (F = (M = _.value) == null ? void 0 : M.$el) != null ? F : R.value : q.value = R.value), s.zIndex = B()), e.boxType === "prompt" && (b ? te().then(() => {
|
|
296
|
+
var ne;
|
|
297
|
+
K.value && K.value.$el && (s.autofocus ? q.value = (ne = ee()) != null ? ne : R.value : q.value = R.value);
|
|
298
|
+
}) : (s.editorErrorMessage = "", s.validateError = !1));
|
|
299
299
|
});
|
|
300
|
-
const D =
|
|
301
|
-
et(R,
|
|
302
|
-
await
|
|
300
|
+
const D = U(() => e.draggable), V = U(() => e.overflow);
|
|
301
|
+
et(R, H, D, V), yt(async () => {
|
|
302
|
+
await te(), e.closeOnHashChange && window.addEventListener("hashchange", k);
|
|
303
303
|
}), bt(() => {
|
|
304
304
|
e.closeOnHashChange && window.removeEventListener("hashchange", k);
|
|
305
305
|
});
|
|
306
306
|
function k() {
|
|
307
|
-
d.value && (d.value = !1,
|
|
308
|
-
|
|
307
|
+
d.value && (d.value = !1, te(() => {
|
|
308
|
+
s.action && f("action", s.action);
|
|
309
309
|
}));
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
e.closeOnClickModal &&
|
|
313
|
-
},
|
|
314
|
-
if (
|
|
315
|
-
return
|
|
316
|
-
},
|
|
317
|
-
var
|
|
318
|
-
e.boxType === "prompt" &&
|
|
319
|
-
},
|
|
311
|
+
const N = () => {
|
|
312
|
+
e.closeOnClickModal && L(s.distinguishCancelAndClose ? "close" : "cancel");
|
|
313
|
+
}, r = lt(N), I = (b) => {
|
|
314
|
+
if (s.inputType !== "textarea")
|
|
315
|
+
return b.preventDefault(), L("confirm");
|
|
316
|
+
}, L = (b) => {
|
|
317
|
+
var M;
|
|
318
|
+
e.boxType === "prompt" && b === "confirm" && !j() || (s.action = b, s.beforeClose ? (M = s.beforeClose) == null || M.call(s, b, s, k) : k());
|
|
319
|
+
}, j = () => {
|
|
320
320
|
if (e.boxType === "prompt") {
|
|
321
|
-
const
|
|
322
|
-
if (
|
|
323
|
-
return
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
return
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
321
|
+
const b = s.inputPattern;
|
|
322
|
+
if (b && !b.test(s.inputValue || ""))
|
|
323
|
+
return s.editorErrorMessage = s.inputErrorMessage || h("el.messagebox.error"), s.validateError = !0, !1;
|
|
324
|
+
const M = s.inputValidator;
|
|
325
|
+
if (ve(M)) {
|
|
326
|
+
const F = M(s.inputValue);
|
|
327
|
+
if (F === !1)
|
|
328
|
+
return s.editorErrorMessage = s.inputErrorMessage || h("el.messagebox.error"), s.validateError = !0, !1;
|
|
329
|
+
if (le(F))
|
|
330
|
+
return s.editorErrorMessage = F, s.validateError = !0, !1;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
return
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
const
|
|
337
|
-
return (
|
|
338
|
-
},
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
e.closeOnPressEscape &&
|
|
333
|
+
return s.editorErrorMessage = "", s.validateError = !1, !0;
|
|
334
|
+
}, ee = () => {
|
|
335
|
+
var b, M;
|
|
336
|
+
const F = (b = K.value) == null ? void 0 : b.$refs;
|
|
337
|
+
return (M = F == null ? void 0 : F.input) != null ? M : F == null ? void 0 : F.textarea;
|
|
338
|
+
}, z = () => {
|
|
339
|
+
L("close");
|
|
340
|
+
}, ce = () => {
|
|
341
|
+
e.closeOnPressEscape && z();
|
|
342
342
|
};
|
|
343
343
|
return e.lockScroll && tt(d), {
|
|
344
|
-
...ht(
|
|
345
|
-
ns:
|
|
346
|
-
overlayEvent:
|
|
344
|
+
...ht(s),
|
|
345
|
+
ns: v,
|
|
346
|
+
overlayEvent: r,
|
|
347
347
|
visible: d,
|
|
348
|
-
hasMessage:
|
|
348
|
+
hasMessage: Y,
|
|
349
349
|
typeClass: P,
|
|
350
|
-
contentId:
|
|
351
|
-
inputId:
|
|
352
|
-
btnSize:
|
|
353
|
-
iconComponent:
|
|
350
|
+
contentId: p,
|
|
351
|
+
inputId: c,
|
|
352
|
+
btnSize: m,
|
|
353
|
+
iconComponent: W,
|
|
354
354
|
confirmButtonClasses: l,
|
|
355
355
|
rootRef: R,
|
|
356
|
-
focusStartRef:
|
|
357
|
-
headerRef:
|
|
358
|
-
inputRef:
|
|
356
|
+
focusStartRef: q,
|
|
357
|
+
headerRef: H,
|
|
358
|
+
inputRef: K,
|
|
359
359
|
confirmRef: _,
|
|
360
360
|
doClose: k,
|
|
361
|
-
handleClose:
|
|
362
|
-
onCloseRequested:
|
|
363
|
-
handleWrapperClick:
|
|
364
|
-
handleInputEnter:
|
|
365
|
-
handleAction:
|
|
361
|
+
handleClose: z,
|
|
362
|
+
onCloseRequested: ce,
|
|
363
|
+
handleWrapperClick: N,
|
|
364
|
+
handleInputEnter: I,
|
|
365
|
+
handleAction: L,
|
|
366
366
|
t: h
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function Xt(e,
|
|
371
|
-
const h =
|
|
372
|
-
return n(),
|
|
370
|
+
function Xt(e, f, o, u, v, m) {
|
|
371
|
+
const h = Q("el-icon"), B = Q("close"), d = Q("el-input"), s = Q("el-button"), P = Q("el-focus-trap"), p = Q("el-overlay");
|
|
372
|
+
return n(), g(Ct, {
|
|
373
373
|
name: "fade-in-linear",
|
|
374
|
-
onAfterLeave: (
|
|
374
|
+
onAfterLeave: (c) => e.$emit("vanish"),
|
|
375
375
|
persisted: ""
|
|
376
376
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
fe(
|
|
377
|
+
default: a(() => [
|
|
378
|
+
fe(i(p, {
|
|
379
379
|
"z-index": e.zIndex,
|
|
380
380
|
"overlay-class": [e.ns.is("message-box"), e.modalClass],
|
|
381
381
|
mask: e.modal
|
|
382
382
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
383
|
+
default: a(() => [
|
|
384
|
+
y("div", {
|
|
385
385
|
role: "dialog",
|
|
386
386
|
"aria-label": e.title,
|
|
387
387
|
"aria-modal": "true",
|
|
@@ -391,15 +391,15 @@ function Xt(e, m, a, u, g, p) {
|
|
|
391
391
|
onMousedown: e.overlayEvent.onMousedown,
|
|
392
392
|
onMouseup: e.overlayEvent.onMouseup
|
|
393
393
|
}, [
|
|
394
|
-
|
|
394
|
+
i(P, {
|
|
395
395
|
loop: "",
|
|
396
396
|
trapped: e.visible,
|
|
397
397
|
"focus-trap-el": e.rootRef,
|
|
398
398
|
"focus-start-el": e.focusStartRef,
|
|
399
399
|
onReleaseRequested: e.onCloseRequested
|
|
400
400
|
}, {
|
|
401
|
-
default:
|
|
402
|
-
|
|
401
|
+
default: a(() => [
|
|
402
|
+
y("div", {
|
|
403
403
|
ref: "rootRef",
|
|
404
404
|
class: C([
|
|
405
405
|
e.ns.b(),
|
|
@@ -407,9 +407,9 @@ function Xt(e, m, a, u, g, p) {
|
|
|
407
407
|
e.ns.is("draggable", e.draggable),
|
|
408
408
|
{ [e.ns.m("center")]: e.center }
|
|
409
409
|
]),
|
|
410
|
-
style:
|
|
410
|
+
style: ge(e.customStyle),
|
|
411
411
|
tabindex: "-1",
|
|
412
|
-
onClick:
|
|
412
|
+
onClick: se(() => {
|
|
413
413
|
}, ["stop"])
|
|
414
414
|
}, [
|
|
415
415
|
e.title !== null && e.title !== void 0 ? (n(), T("div", {
|
|
@@ -417,51 +417,51 @@ function Xt(e, m, a, u, g, p) {
|
|
|
417
417
|
ref: "headerRef",
|
|
418
418
|
class: C([e.ns.e("header"), { "show-close": e.showClose }])
|
|
419
419
|
}, [
|
|
420
|
-
|
|
420
|
+
y("div", {
|
|
421
421
|
class: C(e.ns.e("title"))
|
|
422
422
|
}, [
|
|
423
|
-
e.iconComponent && e.center ? (n(),
|
|
423
|
+
e.iconComponent && e.center ? (n(), g(h, {
|
|
424
424
|
key: 0,
|
|
425
425
|
class: C([e.ns.e("status"), e.typeClass])
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
(n(),
|
|
427
|
+
default: a(() => [
|
|
428
|
+
(n(), g(re(e.iconComponent)))
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["class"])) : w("v-if", !0),
|
|
432
|
-
|
|
432
|
+
y("span", null, O(e.title), 1)
|
|
433
433
|
], 2),
|
|
434
434
|
e.showClose ? (n(), T("button", {
|
|
435
435
|
key: 0,
|
|
436
436
|
type: "button",
|
|
437
437
|
class: C(e.ns.e("headerbtn")),
|
|
438
438
|
"aria-label": e.t("el.messagebox.close"),
|
|
439
|
-
onClick: (
|
|
440
|
-
onKeydown:
|
|
439
|
+
onClick: (c) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
|
|
440
|
+
onKeydown: ie(se((c) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
|
|
441
441
|
}, [
|
|
442
|
-
|
|
442
|
+
i(h, {
|
|
443
443
|
class: C(e.ns.e("close"))
|
|
444
444
|
}, {
|
|
445
|
-
default:
|
|
446
|
-
|
|
445
|
+
default: a(() => [
|
|
446
|
+
i(B)
|
|
447
447
|
]),
|
|
448
448
|
_: 1
|
|
449
449
|
}, 8, ["class"])
|
|
450
450
|
], 42, ["aria-label", "onClick", "onKeydown"])) : w("v-if", !0)
|
|
451
451
|
], 2)) : w("v-if", !0),
|
|
452
|
-
|
|
452
|
+
y("div", {
|
|
453
453
|
id: e.contentId,
|
|
454
454
|
class: C(e.ns.e("content"))
|
|
455
455
|
}, [
|
|
456
|
-
|
|
456
|
+
y("div", {
|
|
457
457
|
class: C(e.ns.e("container"))
|
|
458
458
|
}, [
|
|
459
|
-
e.iconComponent && !e.center && e.hasMessage ? (n(),
|
|
459
|
+
e.iconComponent && !e.center && e.hasMessage ? (n(), g(h, {
|
|
460
460
|
key: 0,
|
|
461
461
|
class: C([e.ns.e("status"), e.typeClass])
|
|
462
462
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
(n(),
|
|
463
|
+
default: a(() => [
|
|
464
|
+
(n(), g(re(e.iconComponent)))
|
|
465
465
|
]),
|
|
466
466
|
_: 1
|
|
467
467
|
}, 8, ["class"])) : w("v-if", !0),
|
|
@@ -470,65 +470,65 @@ function Xt(e, m, a, u, g, p) {
|
|
|
470
470
|
class: C(e.ns.e("message"))
|
|
471
471
|
}, [
|
|
472
472
|
Ae(e.$slots, "default", {}, () => [
|
|
473
|
-
e.dangerouslyUseHTMLString ? (n(),
|
|
473
|
+
e.dangerouslyUseHTMLString ? (n(), g(re(e.showInput ? "label" : "p"), {
|
|
474
474
|
key: 1,
|
|
475
475
|
for: e.showInput ? e.inputId : void 0,
|
|
476
476
|
innerHTML: e.message
|
|
477
|
-
}, null, 8, ["for", "innerHTML"])) : (n(),
|
|
477
|
+
}, null, 8, ["for", "innerHTML"])) : (n(), g(re(e.showInput ? "label" : "p"), {
|
|
478
478
|
key: 0,
|
|
479
479
|
for: e.showInput ? e.inputId : void 0
|
|
480
480
|
}, {
|
|
481
|
-
default:
|
|
482
|
-
S(
|
|
481
|
+
default: a(() => [
|
|
482
|
+
S(O(e.dangerouslyUseHTMLString ? "" : e.message), 1)
|
|
483
483
|
]),
|
|
484
484
|
_: 1
|
|
485
485
|
}, 8, ["for"]))
|
|
486
486
|
])
|
|
487
487
|
], 2)) : w("v-if", !0)
|
|
488
488
|
], 2),
|
|
489
|
-
fe(
|
|
489
|
+
fe(y("div", {
|
|
490
490
|
class: C(e.ns.e("input"))
|
|
491
491
|
}, [
|
|
492
|
-
|
|
492
|
+
i(d, {
|
|
493
493
|
id: e.inputId,
|
|
494
494
|
ref: "inputRef",
|
|
495
495
|
modelValue: e.inputValue,
|
|
496
|
-
"onUpdate:modelValue": (
|
|
496
|
+
"onUpdate:modelValue": (c) => e.inputValue = c,
|
|
497
497
|
type: e.inputType,
|
|
498
498
|
placeholder: e.inputPlaceholder,
|
|
499
499
|
"aria-invalid": e.validateError,
|
|
500
500
|
class: C({ invalid: e.validateError }),
|
|
501
|
-
onKeydown:
|
|
501
|
+
onKeydown: ie(e.handleInputEnter, ["enter"])
|
|
502
502
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
503
|
-
|
|
503
|
+
y("div", {
|
|
504
504
|
class: C(e.ns.e("errormsg")),
|
|
505
|
-
style:
|
|
505
|
+
style: ge({
|
|
506
506
|
visibility: e.editorErrorMessage ? "visible" : "hidden"
|
|
507
507
|
})
|
|
508
|
-
},
|
|
508
|
+
}, O(e.editorErrorMessage), 7)
|
|
509
509
|
], 2), [
|
|
510
510
|
[me, e.showInput]
|
|
511
511
|
])
|
|
512
512
|
], 10, ["id"]),
|
|
513
|
-
|
|
513
|
+
y("div", {
|
|
514
514
|
class: C(e.ns.e("btns"))
|
|
515
515
|
}, [
|
|
516
|
-
e.showCancelButton ? (n(),
|
|
516
|
+
e.showCancelButton ? (n(), g(s, {
|
|
517
517
|
key: 0,
|
|
518
518
|
loading: e.cancelButtonLoading,
|
|
519
519
|
"loading-icon": e.cancelButtonLoadingIcon,
|
|
520
520
|
class: C([e.cancelButtonClass]),
|
|
521
521
|
round: e.roundButton,
|
|
522
522
|
size: e.btnSize,
|
|
523
|
-
onClick: (
|
|
524
|
-
onKeydown:
|
|
523
|
+
onClick: (c) => e.handleAction("cancel"),
|
|
524
|
+
onKeydown: ie(se((c) => e.handleAction("cancel"), ["prevent"]), ["enter"])
|
|
525
525
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
S(
|
|
526
|
+
default: a(() => [
|
|
527
|
+
S(O(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
}, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : w("v-if", !0),
|
|
531
|
-
fe(s
|
|
531
|
+
fe(i(s, {
|
|
532
532
|
ref: "confirmRef",
|
|
533
533
|
type: "primary",
|
|
534
534
|
loading: e.confirmButtonLoading,
|
|
@@ -537,11 +537,11 @@ function Xt(e, m, a, u, g, p) {
|
|
|
537
537
|
round: e.roundButton,
|
|
538
538
|
disabled: e.confirmButtonDisabled,
|
|
539
539
|
size: e.btnSize,
|
|
540
|
-
onClick: (
|
|
541
|
-
onKeydown:
|
|
540
|
+
onClick: (c) => e.handleAction("confirm"),
|
|
541
|
+
onKeydown: ie(se((c) => e.handleAction("confirm"), ["prevent"]), ["enter"])
|
|
542
542
|
}, {
|
|
543
|
-
default:
|
|
544
|
-
S(
|
|
543
|
+
default: a(() => [
|
|
544
|
+
S(O(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
|
|
@@ -562,42 +562,42 @@ function Xt(e, m, a, u, g, p) {
|
|
|
562
562
|
_: 3
|
|
563
563
|
}, 8, ["onAfterLeave"]);
|
|
564
564
|
}
|
|
565
|
-
var Gt = /* @__PURE__ */
|
|
566
|
-
const
|
|
567
|
-
let
|
|
568
|
-
return e.appendTo && (
|
|
569
|
-
}, Yt = (e,
|
|
570
|
-
const u =
|
|
571
|
-
default:
|
|
565
|
+
var Gt = /* @__PURE__ */ Fe(jt, [["render", Xt], ["__file", "index.vue"]]);
|
|
566
|
+
const ae = /* @__PURE__ */ new Map(), Wt = (e) => {
|
|
567
|
+
let f = document.body;
|
|
568
|
+
return e.appendTo && (le(e.appendTo) && (f = document.querySelector(e.appendTo)), Ee(e.appendTo) && (f = e.appendTo), Ee(f) || (Me("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), f = document.body)), f;
|
|
569
|
+
}, Yt = (e, f, o = null) => {
|
|
570
|
+
const u = i(Gt, e, ve(e.message) || Pe(e.message) ? {
|
|
571
|
+
default: ve(e.message) ? e.message : () => e.message
|
|
572
572
|
} : null);
|
|
573
|
-
return u.appContext =
|
|
574
|
-
}, Jt = () => document.createElement("div"), Zt = (e,
|
|
575
|
-
const
|
|
573
|
+
return u.appContext = o, Re(u, f), Wt(e).appendChild(f.firstElementChild), u.component;
|
|
574
|
+
}, Jt = () => document.createElement("div"), Zt = (e, f) => {
|
|
575
|
+
const o = Jt();
|
|
576
576
|
e.onVanish = () => {
|
|
577
|
-
Re(null,
|
|
578
|
-
}, e.onAction = (
|
|
579
|
-
const h =
|
|
577
|
+
Re(null, o), ae.delete(v);
|
|
578
|
+
}, e.onAction = (m) => {
|
|
579
|
+
const h = ae.get(v);
|
|
580
580
|
let B;
|
|
581
|
-
e.showInput ? B = { value:
|
|
581
|
+
e.showInput ? B = { value: v.inputValue, action: m } : B = m, e.callback ? e.callback(B, u.proxy) : m === "cancel" || m === "close" ? e.distinguishCancelAndClose && m !== "cancel" ? h.reject("close") : h.reject("cancel") : h.resolve(B);
|
|
582
582
|
};
|
|
583
|
-
const u = Yt(e,
|
|
584
|
-
for (const
|
|
585
|
-
|
|
586
|
-
return
|
|
583
|
+
const u = Yt(e, o, f), v = u.proxy;
|
|
584
|
+
for (const m in e)
|
|
585
|
+
we(e, m) && !we(v.$props, m) && (v[m] = e[m]);
|
|
586
|
+
return v.visible = !0, v;
|
|
587
587
|
};
|
|
588
|
-
function
|
|
588
|
+
function x(e, f = null) {
|
|
589
589
|
if (!Ye)
|
|
590
590
|
return Promise.reject();
|
|
591
|
-
let
|
|
592
|
-
return
|
|
591
|
+
let o;
|
|
592
|
+
return le(e) || Pe(e) ? e = {
|
|
593
593
|
message: e
|
|
594
|
-
} :
|
|
595
|
-
const
|
|
596
|
-
|
|
594
|
+
} : o = e.callback, new Promise((u, v) => {
|
|
595
|
+
const m = Zt(e, f ?? x._context);
|
|
596
|
+
ae.set(m, {
|
|
597
597
|
options: e,
|
|
598
|
-
callback:
|
|
598
|
+
callback: o,
|
|
599
599
|
resolve: u,
|
|
600
|
-
reject:
|
|
600
|
+
reject: v
|
|
601
601
|
});
|
|
602
602
|
});
|
|
603
603
|
}
|
|
@@ -607,32 +607,32 @@ const Qt = ["alert", "confirm", "prompt"], xt = {
|
|
|
607
607
|
prompt: { showCancelButton: !0, showInput: !0 }
|
|
608
608
|
};
|
|
609
609
|
Qt.forEach((e) => {
|
|
610
|
-
|
|
610
|
+
x[e] = el(e);
|
|
611
611
|
});
|
|
612
612
|
function el(e) {
|
|
613
|
-
return (
|
|
614
|
-
let
|
|
615
|
-
return
|
|
616
|
-
title:
|
|
617
|
-
message:
|
|
613
|
+
return (f, o, u, v) => {
|
|
614
|
+
let m = "";
|
|
615
|
+
return ue(o) ? (u = o, m = "") : Je(o) ? m = "" : m = o, x(Object.assign({
|
|
616
|
+
title: m,
|
|
617
|
+
message: f,
|
|
618
618
|
type: "",
|
|
619
619
|
...xt[e]
|
|
620
620
|
}, u, {
|
|
621
621
|
boxType: e
|
|
622
|
-
}),
|
|
622
|
+
}), v);
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}),
|
|
625
|
+
x.close = () => {
|
|
626
|
+
ae.forEach((e, f) => {
|
|
627
|
+
f.doClose();
|
|
628
|
+
}), ae.clear();
|
|
629
629
|
};
|
|
630
|
-
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
630
|
+
x._context = null;
|
|
631
|
+
const G = x;
|
|
632
|
+
G.install = (e) => {
|
|
633
|
+
G._context = e._context, e.config.globalProperties.$msgbox = G, e.config.globalProperties.$messageBox = G, e.config.globalProperties.$alert = G.alert, e.config.globalProperties.$confirm = G.confirm, e.config.globalProperties.$prompt = G.prompt;
|
|
634
634
|
};
|
|
635
|
-
const tl =
|
|
635
|
+
const tl = G;
|
|
636
636
|
const ll = {
|
|
637
637
|
// 表单字段
|
|
638
638
|
ruleFormPrice: !0,
|
|
@@ -649,18 +649,21 @@ const ll = {
|
|
|
649
649
|
tableEnable: !0
|
|
650
650
|
// 启用按钮
|
|
651
651
|
};
|
|
652
|
-
const
|
|
652
|
+
const de = (e) => (wt("data-v-45015af9"), e = e(), Et(), e), ol = { class: "st-factorWarning" }, al = { class: "custom-header" }, nl = /* @__PURE__ */ de(() => /* @__PURE__ */ y("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), sl = { style: { display: "flex", "align-items": "start" } }, rl = {
|
|
653
|
+
key: 0,
|
|
654
|
+
style: { flex: "1" }
|
|
655
|
+
}, il = /* @__PURE__ */ de(() => /* @__PURE__ */ y("span", { style: { margin: "0 5px" } }, "~", -1)), ul = {
|
|
653
656
|
key: 0,
|
|
654
657
|
style: { color: "#f56c6c" }
|
|
655
|
-
},
|
|
658
|
+
}, dl = {
|
|
656
659
|
key: 1,
|
|
657
660
|
style: { color: "#67c23a" }
|
|
658
|
-
},
|
|
661
|
+
}, cl = { key: 0 }, fl = { key: 1 }, ml = { key: 2 }, pl = { class: "shortcut-title" }, vl = /* @__PURE__ */ de(() => /* @__PURE__ */ y("span", null, "我的配置", -1)), gl = { class: "shortcut-config" }, yl = {
|
|
659
662
|
key: 1,
|
|
660
663
|
class: "empty"
|
|
661
|
-
},
|
|
664
|
+
}, bl = { class: "shortcut-title" }, hl = /* @__PURE__ */ de(() => /* @__PURE__ */ y("span", null, "新增配置", -1)), Cl = { class: "custom-footer" }, kl = {
|
|
662
665
|
__name: "index",
|
|
663
|
-
props: /* @__PURE__ */
|
|
666
|
+
props: /* @__PURE__ */ Te({
|
|
664
667
|
// 弹窗名称
|
|
665
668
|
title: { type: [String, null], default: null },
|
|
666
669
|
// 因子数据
|
|
@@ -678,30 +681,30 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
678
681
|
visible: { default: !1 },
|
|
679
682
|
visibleModifiers: {}
|
|
680
683
|
}),
|
|
681
|
-
emits: /* @__PURE__ */
|
|
682
|
-
setup(e, { emit:
|
|
683
|
-
const
|
|
684
|
+
emits: /* @__PURE__ */ Te(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
|
|
685
|
+
setup(e, { emit: f }) {
|
|
686
|
+
const o = $("ruleForm"), u = kt(e, "visible"), v = f, m = e, h = Object.assign(ll, m.showConfig), B = $(null), d = $({
|
|
684
687
|
factorType: 1,
|
|
685
688
|
factorSelectedList: [],
|
|
686
689
|
totalCount: 1,
|
|
687
690
|
minPrice: null,
|
|
688
691
|
maxPrice: null,
|
|
689
692
|
mark: null
|
|
690
|
-
}),
|
|
693
|
+
}), s = $({
|
|
691
694
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
692
695
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
693
696
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
694
|
-
}), P =
|
|
697
|
+
}), P = $(null), p = $({
|
|
695
698
|
shortcutName: null,
|
|
696
699
|
factorType: 1,
|
|
697
700
|
factorSelectedList: [],
|
|
698
701
|
totalCount: 1
|
|
699
|
-
}),
|
|
702
|
+
}), c = $({
|
|
700
703
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
701
704
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
702
705
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
|
|
703
706
|
shortcutName: [{ required: !0, message: "请填写配置名称", trigger: "blur" }]
|
|
704
|
-
}),
|
|
707
|
+
}), W = () => {
|
|
705
708
|
d.value = {
|
|
706
709
|
factorType: 1,
|
|
707
710
|
factorSelectedList: [],
|
|
@@ -709,13 +712,13 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
709
712
|
minPrice: null,
|
|
710
713
|
maxPrice: null,
|
|
711
714
|
mark: null
|
|
712
|
-
},
|
|
715
|
+
}, p.value = {
|
|
713
716
|
shortcutName: null,
|
|
714
717
|
factorType: 1,
|
|
715
718
|
factorSelectedList: [],
|
|
716
719
|
totalCount: 1
|
|
717
720
|
};
|
|
718
|
-
},
|
|
721
|
+
}, Y = async (_) => {
|
|
719
722
|
const l = JSON.parse(_.data);
|
|
720
723
|
Object.assign(d.value, {
|
|
721
724
|
factorType: l.factorType,
|
|
@@ -725,10 +728,10 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
725
728
|
const D = {
|
|
726
729
|
factorSelectedList: d.value.factorSelectedList.map((V) => {
|
|
727
730
|
let k = l.totalCount;
|
|
728
|
-
const
|
|
729
|
-
if (
|
|
730
|
-
const
|
|
731
|
-
|
|
731
|
+
const N = m.tableData.find(({ factorExtendName: r }) => r === V);
|
|
732
|
+
if (N) {
|
|
733
|
+
const r = N.totalCount - N.currentCount;
|
|
734
|
+
r === 0 ? k = l.totalCount : k = Math.min(l.totalCount, 10 - r >= 0 ? 10 - r : 0);
|
|
732
735
|
}
|
|
733
736
|
return {
|
|
734
737
|
factorName: V,
|
|
@@ -748,56 +751,59 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
748
751
|
...d.value
|
|
749
752
|
}))
|
|
750
753
|
};
|
|
751
|
-
|
|
754
|
+
v("add", V), l ? W() : u.value = !1;
|
|
752
755
|
});
|
|
753
|
-
}, 200),
|
|
756
|
+
}, 200), H = async (_) => {
|
|
754
757
|
_ && await _.validate((l) => {
|
|
755
758
|
if (!l)
|
|
756
759
|
return !1;
|
|
757
760
|
const D = {
|
|
758
|
-
shortcutName:
|
|
759
|
-
data: JSON.stringify(
|
|
761
|
+
shortcutName: p.value.shortcutName,
|
|
762
|
+
data: JSON.stringify(p.value)
|
|
760
763
|
};
|
|
761
|
-
|
|
764
|
+
v("shortcutAdd", D), W();
|
|
762
765
|
});
|
|
763
|
-
},
|
|
764
|
-
|
|
765
|
-
},
|
|
766
|
+
}, q = (_) => {
|
|
767
|
+
p.value = JSON.parse(_.data);
|
|
768
|
+
}, K = (_) => {
|
|
766
769
|
tl.confirm(`是否确认删除配置: ${_.shortcutName} ?`, "删除提示", {
|
|
767
770
|
confirmButtonText: "确认",
|
|
768
771
|
cancelButtonText: "取消",
|
|
769
772
|
type: "warning"
|
|
770
|
-
}).then(() =>
|
|
773
|
+
}).then(() => v("shortcutDelete", _));
|
|
771
774
|
};
|
|
772
|
-
return
|
|
775
|
+
return oe(
|
|
773
776
|
() => u.value,
|
|
774
777
|
(_) => {
|
|
775
|
-
_ && (
|
|
778
|
+
_ && (o.value = m.allowOperation ? "ruleForm" : "table", W());
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
immediate: !0
|
|
776
782
|
}
|
|
777
783
|
), (_, l) => {
|
|
778
|
-
const D = Ht, V =
|
|
784
|
+
const D = Ht, V = Oe, k = mt, N = st, r = rt, I = pt, L = vt, j = $e, ee = gt, z = it, ce = ft, b = ut, M = De, F = nt, ne = At, qe = ot, He = Qe;
|
|
779
785
|
return n(), T("div", ol, [
|
|
780
|
-
|
|
781
|
-
default:
|
|
782
|
-
|
|
786
|
+
i(He, { locale: E(Ze) }, {
|
|
787
|
+
default: a(() => [
|
|
788
|
+
i(qe, {
|
|
783
789
|
modelValue: u.value,
|
|
784
790
|
"onUpdate:modelValue": l[17] || (l[17] = (t) => u.value = t),
|
|
785
791
|
width: "860",
|
|
786
792
|
"align-center": "",
|
|
787
793
|
"destroy-on-close": "",
|
|
788
|
-
onClosed: l[18] || (l[18] = (t) =>
|
|
794
|
+
onClosed: l[18] || (l[18] = (t) => v("closed"))
|
|
789
795
|
}, {
|
|
790
|
-
header:
|
|
791
|
-
|
|
792
|
-
|
|
796
|
+
header: a(({ close: t, titleId: A, titleClass: Ke }) => [
|
|
797
|
+
y("div", al, [
|
|
798
|
+
y("div", {
|
|
793
799
|
class: C(Ke)
|
|
794
800
|
}, [
|
|
795
801
|
nl,
|
|
796
|
-
|
|
802
|
+
y("span", null, O(e.title), 1)
|
|
797
803
|
], 2),
|
|
798
|
-
|
|
799
|
-
modelValue:
|
|
800
|
-
"onUpdate:modelValue": l[0] || (l[0] = (je) =>
|
|
804
|
+
i(D, {
|
|
805
|
+
modelValue: o.value,
|
|
806
|
+
"onUpdate:modelValue": l[0] || (l[0] = (je) => o.value = je),
|
|
801
807
|
options: [
|
|
802
808
|
{ label: "添加", value: "ruleForm", disabled: !e.allowOperation },
|
|
803
809
|
{ label: "管理", value: "table", disabled: !1 },
|
|
@@ -806,73 +812,73 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
806
812
|
}, null, 8, ["modelValue", "options"])
|
|
807
813
|
])
|
|
808
814
|
]),
|
|
809
|
-
footer:
|
|
810
|
-
|
|
811
|
-
|
|
815
|
+
footer: a(() => [
|
|
816
|
+
y("div", Cl, [
|
|
817
|
+
i(V, {
|
|
812
818
|
onClick: l[14] || (l[14] = (t) => u.value = !1)
|
|
813
819
|
}, {
|
|
814
|
-
default:
|
|
820
|
+
default: a(() => [
|
|
815
821
|
S("关闭")
|
|
816
822
|
]),
|
|
817
823
|
_: 1
|
|
818
824
|
}),
|
|
819
|
-
|
|
825
|
+
o.value === "ruleForm" ? (n(), g(V, {
|
|
820
826
|
key: 0,
|
|
821
827
|
type: "primary",
|
|
822
828
|
onClick: l[15] || (l[15] = (t) => E(R)(B.value))
|
|
823
829
|
}, {
|
|
824
|
-
default:
|
|
830
|
+
default: a(() => [
|
|
825
831
|
S(" 确认 ")
|
|
826
832
|
]),
|
|
827
833
|
_: 1
|
|
828
834
|
})) : w("", !0),
|
|
829
|
-
|
|
835
|
+
o.value === "shortcut" ? (n(), g(V, {
|
|
830
836
|
key: 1,
|
|
831
837
|
type: "primary",
|
|
832
|
-
onClick: l[16] || (l[16] = (t) =>
|
|
838
|
+
onClick: l[16] || (l[16] = (t) => H(P.value))
|
|
833
839
|
}, {
|
|
834
|
-
default:
|
|
840
|
+
default: a(() => [
|
|
835
841
|
S(" 保存配置 ")
|
|
836
842
|
]),
|
|
837
843
|
_: 1
|
|
838
844
|
})) : w("", !0)
|
|
839
845
|
])
|
|
840
846
|
]),
|
|
841
|
-
default:
|
|
842
|
-
|
|
847
|
+
default: a(() => [
|
|
848
|
+
o.value === "ruleForm" ? (n(), g(ee, {
|
|
843
849
|
key: 0,
|
|
844
850
|
ref_key: "ruleFormRef",
|
|
845
851
|
ref: B,
|
|
846
852
|
model: d.value,
|
|
847
|
-
rules:
|
|
853
|
+
rules: s.value,
|
|
848
854
|
"label-width": "90px"
|
|
849
855
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
|
|
856
|
+
default: a(() => [
|
|
857
|
+
i(k, {
|
|
852
858
|
label: "交易类型:",
|
|
853
859
|
prop: "factorType"
|
|
854
860
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
|
|
861
|
+
default: a(() => [
|
|
862
|
+
i(V, {
|
|
857
863
|
type: "danger",
|
|
858
864
|
plain: d.value.factorType !== 1,
|
|
859
865
|
onClick: l[1] || (l[1] = () => {
|
|
860
866
|
d.value.factorType === -1 && (d.value.factorSelectedList = []), d.value.factorType = 1;
|
|
861
867
|
})
|
|
862
868
|
}, {
|
|
863
|
-
default:
|
|
869
|
+
default: a(() => [
|
|
864
870
|
S(" 多 ")
|
|
865
871
|
]),
|
|
866
872
|
_: 1
|
|
867
873
|
}, 8, ["plain"]),
|
|
868
|
-
|
|
874
|
+
i(V, {
|
|
869
875
|
type: "success",
|
|
870
876
|
plain: d.value.factorType !== -1,
|
|
871
877
|
onClick: l[2] || (l[2] = () => {
|
|
872
878
|
d.value.factorType === 1 && (d.value.factorSelectedList = []), d.value.factorType = -1;
|
|
873
879
|
})
|
|
874
880
|
}, {
|
|
875
|
-
default:
|
|
881
|
+
default: a(() => [
|
|
876
882
|
S(" 空 ")
|
|
877
883
|
]),
|
|
878
884
|
_: 1
|
|
@@ -880,23 +886,23 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
880
886
|
]),
|
|
881
887
|
_: 1
|
|
882
888
|
}),
|
|
883
|
-
|
|
889
|
+
i(k, {
|
|
884
890
|
label: "预警因子:",
|
|
885
891
|
prop: "factorSelectedList"
|
|
886
892
|
}, {
|
|
887
|
-
default:
|
|
888
|
-
|
|
893
|
+
default: a(() => [
|
|
894
|
+
i(r, {
|
|
889
895
|
modelValue: d.value.factorSelectedList,
|
|
890
896
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => d.value.factorSelectedList = t)
|
|
891
897
|
}, {
|
|
892
|
-
default:
|
|
893
|
-
d.value.factorType === 1 ? (n(!0), T(
|
|
898
|
+
default: a(() => [
|
|
899
|
+
d.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, J(e.moreFactorOptions, (t, A) => (n(), g(N, {
|
|
894
900
|
key: A,
|
|
895
901
|
label: t.factorTypeName,
|
|
896
902
|
value: t.factorTypeName,
|
|
897
903
|
style: { width: "200px" }
|
|
898
904
|
}, null, 8, ["label", "value"]))), 128)) : w("", !0),
|
|
899
|
-
d.value.factorType === -1 ? (n(!0), T(
|
|
905
|
+
d.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, J(e.emptyFactorOptions, (t, A) => (n(), g(N, {
|
|
900
906
|
key: A,
|
|
901
907
|
label: t.factorTypeName,
|
|
902
908
|
value: t.factorTypeName,
|
|
@@ -908,63 +914,51 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
908
914
|
]),
|
|
909
915
|
_: 1
|
|
910
916
|
}),
|
|
911
|
-
|
|
917
|
+
i(k, {
|
|
912
918
|
label: "预警次数:",
|
|
913
919
|
prop: "totalCount"
|
|
914
920
|
}, {
|
|
915
|
-
default:
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
921
|
+
default: a(() => [
|
|
922
|
+
y("div", sl, [
|
|
923
|
+
i(I, {
|
|
924
|
+
modelValue: d.value.totalCount,
|
|
925
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => d.value.totalCount = t),
|
|
926
|
+
min: 1,
|
|
927
|
+
"controls-position": "right",
|
|
928
|
+
style: { "margin-right": "20px" }
|
|
929
|
+
}, null, 8, ["modelValue"]),
|
|
930
|
+
e.shortcutData.length ? (n(), T("div", rl, [
|
|
931
|
+
(n(!0), T(X, null, J(e.shortcutData, (t) => (n(), g(V, {
|
|
932
|
+
key: t.id,
|
|
933
|
+
onClick: (A) => Y(t),
|
|
934
|
+
style: { margin: "0 12px 4px 0" }
|
|
935
|
+
}, {
|
|
936
|
+
default: a(() => [
|
|
937
|
+
S(O(t.shortcutName), 1)
|
|
938
|
+
]),
|
|
939
|
+
_: 2
|
|
940
|
+
}, 1032, ["onClick"]))), 128))
|
|
941
|
+
])) : (n(), g(L, {
|
|
942
|
+
key: 1,
|
|
943
|
+
type: "primary",
|
|
944
|
+
style: { cursor: "pointer" },
|
|
945
|
+
onClick: l[5] || (l[5] = () => o.value = "shortcut")
|
|
937
946
|
}, {
|
|
938
|
-
default:
|
|
939
|
-
|
|
940
|
-
default: o(() => [
|
|
941
|
-
s(E(pe))
|
|
942
|
-
]),
|
|
943
|
-
_: 1
|
|
944
|
-
})
|
|
947
|
+
default: a(() => [
|
|
948
|
+
S(" 暂无快捷配置, 是否点击前往自定义配置? ")
|
|
945
949
|
]),
|
|
946
950
|
_: 1
|
|
947
|
-
})
|
|
948
|
-
]
|
|
949
|
-
key: 1,
|
|
950
|
-
type: "primary",
|
|
951
|
-
style: { cursor: "pointer" },
|
|
952
|
-
onClick: l[5] || (l[5] = () => a.value = "shortcut")
|
|
953
|
-
}, {
|
|
954
|
-
default: o(() => [
|
|
955
|
-
S(" 暂无快捷配置, 是否点击前往自定义配置? ")
|
|
956
|
-
]),
|
|
957
|
-
_: 1
|
|
958
|
-
}))
|
|
951
|
+
}))
|
|
952
|
+
])
|
|
959
953
|
]),
|
|
960
954
|
_: 1
|
|
961
955
|
}),
|
|
962
|
-
E(h).ruleFormPrice ? (n(),
|
|
956
|
+
E(h).ruleFormPrice ? (n(), g(k, {
|
|
963
957
|
key: 0,
|
|
964
958
|
label: "价格范围:"
|
|
965
959
|
}, {
|
|
966
|
-
default:
|
|
967
|
-
|
|
960
|
+
default: a(() => [
|
|
961
|
+
i(I, {
|
|
968
962
|
modelValue: d.value.minPrice,
|
|
969
963
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => d.value.minPrice = t),
|
|
970
964
|
min: -999,
|
|
@@ -972,8 +966,8 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
972
966
|
max: 999,
|
|
973
967
|
"controls-position": "right"
|
|
974
968
|
}, null, 8, ["modelValue"]),
|
|
975
|
-
|
|
976
|
-
|
|
969
|
+
il,
|
|
970
|
+
i(I, {
|
|
977
971
|
modelValue: d.value.maxPrice,
|
|
978
972
|
"onUpdate:modelValue": l[7] || (l[7] = (t) => d.value.maxPrice = t),
|
|
979
973
|
placeholder: "请输入",
|
|
@@ -984,12 +978,12 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
984
978
|
]),
|
|
985
979
|
_: 1
|
|
986
980
|
})) : w("", !0),
|
|
987
|
-
E(h).ruleFormMark ? (n(),
|
|
981
|
+
E(h).ruleFormMark ? (n(), g(k, {
|
|
988
982
|
key: 1,
|
|
989
983
|
label: "备注:"
|
|
990
984
|
}, {
|
|
991
|
-
default:
|
|
992
|
-
|
|
985
|
+
default: a(() => [
|
|
986
|
+
i(j, {
|
|
993
987
|
modelValue: d.value.mark,
|
|
994
988
|
"onUpdate:modelValue": l[8] || (l[8] = (t) => d.value.mark = t),
|
|
995
989
|
type: "textarea",
|
|
@@ -1003,101 +997,101 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1003
997
|
]),
|
|
1004
998
|
_: 1
|
|
1005
999
|
}, 8, ["model", "rules"])) : w("", !0),
|
|
1006
|
-
|
|
1000
|
+
o.value === "table" ? (n(), g(b, {
|
|
1007
1001
|
key: 1,
|
|
1008
1002
|
data: e.tableData,
|
|
1009
1003
|
size: "small"
|
|
1010
1004
|
}, {
|
|
1011
|
-
default:
|
|
1012
|
-
|
|
1005
|
+
default: a(() => [
|
|
1006
|
+
i(z, {
|
|
1013
1007
|
label: "预警周期",
|
|
1014
1008
|
width: "70"
|
|
1015
1009
|
}, {
|
|
1016
|
-
default:
|
|
1017
|
-
S(
|
|
1010
|
+
default: a((t) => [
|
|
1011
|
+
S(O(t.row.freqName || "-"), 1)
|
|
1018
1012
|
]),
|
|
1019
1013
|
_: 1
|
|
1020
1014
|
}),
|
|
1021
|
-
|
|
1015
|
+
i(z, {
|
|
1022
1016
|
label: "交易类型",
|
|
1023
1017
|
width: "70"
|
|
1024
1018
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
t.row.factorExtendValue == 1 ? (n(), T("span",
|
|
1019
|
+
default: a((t) => [
|
|
1020
|
+
t.row.factorExtendValue == 1 ? (n(), T("span", ul, "多")) : (n(), T("span", dl, "空"))
|
|
1027
1021
|
]),
|
|
1028
1022
|
_: 1
|
|
1029
1023
|
}),
|
|
1030
|
-
|
|
1031
|
-
default:
|
|
1032
|
-
S(
|
|
1024
|
+
i(z, { label: "预警因子" }, {
|
|
1025
|
+
default: a((t) => [
|
|
1026
|
+
S(O(t.row.factorExtendName || "-"), 1)
|
|
1033
1027
|
]),
|
|
1034
1028
|
_: 1
|
|
1035
1029
|
}),
|
|
1036
|
-
|
|
1030
|
+
i(z, {
|
|
1037
1031
|
label: "预警次数",
|
|
1038
1032
|
width: "70"
|
|
1039
1033
|
}, {
|
|
1040
|
-
default:
|
|
1041
|
-
S(
|
|
1034
|
+
default: a((t) => [
|
|
1035
|
+
S(O(`${t.row.currentCount} / ${t.row.totalCount}`), 1)
|
|
1042
1036
|
]),
|
|
1043
1037
|
_: 1
|
|
1044
1038
|
}),
|
|
1045
|
-
E(h).tableStatus ? (n(),
|
|
1039
|
+
E(h).tableStatus ? (n(), g(z, {
|
|
1046
1040
|
key: 0,
|
|
1047
1041
|
label: "状态",
|
|
1048
1042
|
width: "70"
|
|
1049
1043
|
}, {
|
|
1050
|
-
default:
|
|
1051
|
-
|
|
1052
|
-
t.row.enable === 1 ? (n(), T("span",
|
|
1044
|
+
default: a((t) => [
|
|
1045
|
+
y("div", null, [
|
|
1046
|
+
t.row.enable === 1 ? (n(), T("span", cl, "未触发")) : t.row.enable === 2 ? (n(), T("span", fl, "已触发")) : (n(), T("span", ml, "-"))
|
|
1053
1047
|
])
|
|
1054
1048
|
]),
|
|
1055
1049
|
_: 1
|
|
1056
1050
|
})) : w("", !0),
|
|
1057
|
-
E(h).tableCreateTime ? (n(),
|
|
1051
|
+
E(h).tableCreateTime ? (n(), g(z, {
|
|
1058
1052
|
key: 1,
|
|
1059
1053
|
label: "设置时间",
|
|
1060
1054
|
width: "136"
|
|
1061
1055
|
}, {
|
|
1062
|
-
default:
|
|
1063
|
-
S(
|
|
1056
|
+
default: a((t) => [
|
|
1057
|
+
S(O(t.row.createdTime || "-"), 1)
|
|
1064
1058
|
]),
|
|
1065
1059
|
_: 1
|
|
1066
1060
|
})) : w("", !0),
|
|
1067
|
-
E(h).tableMark ? (n(),
|
|
1061
|
+
E(h).tableMark ? (n(), g(z, {
|
|
1068
1062
|
key: 2,
|
|
1069
1063
|
label: "备注",
|
|
1070
1064
|
width: "70"
|
|
1071
1065
|
}, {
|
|
1072
|
-
default:
|
|
1073
|
-
S(
|
|
1066
|
+
default: a((t) => [
|
|
1067
|
+
S(O(t.row.mark || "-"), 1)
|
|
1074
1068
|
]),
|
|
1075
1069
|
_: 1
|
|
1076
1070
|
})) : w("", !0),
|
|
1077
|
-
e.allowOperation ? (n(),
|
|
1071
|
+
e.allowOperation ? (n(), g(z, {
|
|
1078
1072
|
key: 3,
|
|
1079
1073
|
label: "操作",
|
|
1080
1074
|
width: "140"
|
|
1081
1075
|
}, {
|
|
1082
|
-
default:
|
|
1083
|
-
E(h).tableEnable ? (n(),
|
|
1076
|
+
default: a((t) => [
|
|
1077
|
+
E(h).tableEnable ? (n(), g(V, {
|
|
1084
1078
|
key: 0,
|
|
1085
1079
|
disabled: t.row.currentCount !== t.row.totalCount,
|
|
1086
1080
|
size: "small",
|
|
1087
|
-
onClick: (A) =>
|
|
1081
|
+
onClick: (A) => v("enabled", t.row)
|
|
1088
1082
|
}, {
|
|
1089
|
-
default:
|
|
1083
|
+
default: a(() => [
|
|
1090
1084
|
S(" 启用 ")
|
|
1091
1085
|
]),
|
|
1092
1086
|
_: 2
|
|
1093
1087
|
}, 1032, ["disabled", "onClick"])) : w("", !0),
|
|
1094
|
-
|
|
1088
|
+
i(ce, {
|
|
1095
1089
|
title: "确定删除?",
|
|
1096
|
-
onConfirm: (A) =>
|
|
1090
|
+
onConfirm: (A) => v("delete", t.row)
|
|
1097
1091
|
}, {
|
|
1098
|
-
reference:
|
|
1099
|
-
|
|
1100
|
-
default:
|
|
1092
|
+
reference: a(() => [
|
|
1093
|
+
i(V, { size: "small" }, {
|
|
1094
|
+
default: a(() => [
|
|
1101
1095
|
S("删除")
|
|
1102
1096
|
]),
|
|
1103
1097
|
_: 1
|
|
@@ -1111,18 +1105,18 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1111
1105
|
]),
|
|
1112
1106
|
_: 1
|
|
1113
1107
|
}, 8, ["data"])) : w("", !0),
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1108
|
+
o.value === "shortcut" ? (n(), T(X, { key: 2 }, [
|
|
1109
|
+
y("div", pl, [
|
|
1110
|
+
vl,
|
|
1111
|
+
i(F, {
|
|
1118
1112
|
effect: "dark",
|
|
1119
1113
|
content: "如有配置数据, 可点击查看该配置的具体信息",
|
|
1120
1114
|
placement: "right-start"
|
|
1121
1115
|
}, {
|
|
1122
|
-
default:
|
|
1123
|
-
|
|
1124
|
-
default:
|
|
1125
|
-
|
|
1116
|
+
default: a(() => [
|
|
1117
|
+
i(M, null, {
|
|
1118
|
+
default: a(() => [
|
|
1119
|
+
i(E(Ve))
|
|
1126
1120
|
]),
|
|
1127
1121
|
_: 1
|
|
1128
1122
|
})
|
|
@@ -1130,31 +1124,31 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1130
1124
|
_: 1
|
|
1131
1125
|
})
|
|
1132
1126
|
]),
|
|
1133
|
-
|
|
1134
|
-
e.shortcutData.length ? (n(!0), T(
|
|
1127
|
+
y("div", gl, [
|
|
1128
|
+
e.shortcutData.length ? (n(!0), T(X, { key: 0 }, J(e.shortcutData, (t) => (n(), g(ne, {
|
|
1135
1129
|
key: t.id,
|
|
1136
1130
|
type: "primary",
|
|
1137
1131
|
closable: "",
|
|
1138
|
-
onClick: (A) =>
|
|
1139
|
-
onClose: (A) =>
|
|
1132
|
+
onClick: (A) => q(t),
|
|
1133
|
+
onClose: (A) => K(t)
|
|
1140
1134
|
}, {
|
|
1141
|
-
default:
|
|
1142
|
-
S(
|
|
1135
|
+
default: a(() => [
|
|
1136
|
+
S(O(t.shortcutName), 1)
|
|
1143
1137
|
]),
|
|
1144
1138
|
_: 2
|
|
1145
|
-
}, 1032, ["onClick", "onClose"]))), 128)) : (n(), T("span",
|
|
1139
|
+
}, 1032, ["onClick", "onClose"]))), 128)) : (n(), T("span", yl, "暂无数据"))
|
|
1146
1140
|
]),
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1141
|
+
y("div", bl, [
|
|
1142
|
+
hl,
|
|
1143
|
+
i(F, {
|
|
1150
1144
|
effect: "dark",
|
|
1151
1145
|
content: "同名配置将会进行覆盖",
|
|
1152
1146
|
placement: "right-start"
|
|
1153
1147
|
}, {
|
|
1154
|
-
default:
|
|
1155
|
-
|
|
1156
|
-
default:
|
|
1157
|
-
|
|
1148
|
+
default: a(() => [
|
|
1149
|
+
i(M, null, {
|
|
1150
|
+
default: a(() => [
|
|
1151
|
+
i(E(Ve))
|
|
1158
1152
|
]),
|
|
1159
1153
|
_: 1
|
|
1160
1154
|
})
|
|
@@ -1162,22 +1156,22 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1162
1156
|
_: 1
|
|
1163
1157
|
})
|
|
1164
1158
|
]),
|
|
1165
|
-
|
|
1159
|
+
i(ee, {
|
|
1166
1160
|
ref_key: "shortcut_ruleFormRef",
|
|
1167
1161
|
ref: P,
|
|
1168
|
-
model:
|
|
1169
|
-
rules:
|
|
1162
|
+
model: p.value,
|
|
1163
|
+
rules: c.value,
|
|
1170
1164
|
"label-width": "90px"
|
|
1171
1165
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1166
|
+
default: a(() => [
|
|
1167
|
+
i(k, {
|
|
1174
1168
|
label: "配置名称:",
|
|
1175
1169
|
prop: "shortcutName"
|
|
1176
1170
|
}, {
|
|
1177
|
-
default:
|
|
1178
|
-
|
|
1179
|
-
modelValue:
|
|
1180
|
-
"onUpdate:modelValue": l[9] || (l[9] = (t) =>
|
|
1171
|
+
default: a(() => [
|
|
1172
|
+
i(j, {
|
|
1173
|
+
modelValue: p.value.shortcutName,
|
|
1174
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => p.value.shortcutName = t),
|
|
1181
1175
|
maxlength: "6",
|
|
1182
1176
|
"show-word-limit": "",
|
|
1183
1177
|
style: { width: "160px" }
|
|
@@ -1185,31 +1179,31 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1185
1179
|
]),
|
|
1186
1180
|
_: 1
|
|
1187
1181
|
}),
|
|
1188
|
-
|
|
1182
|
+
i(k, {
|
|
1189
1183
|
label: "交易类型:",
|
|
1190
1184
|
prop: "factorType"
|
|
1191
1185
|
}, {
|
|
1192
|
-
default:
|
|
1193
|
-
|
|
1186
|
+
default: a(() => [
|
|
1187
|
+
i(V, {
|
|
1194
1188
|
type: "danger",
|
|
1195
|
-
plain:
|
|
1189
|
+
plain: p.value.factorType !== 1,
|
|
1196
1190
|
onClick: l[10] || (l[10] = () => {
|
|
1197
|
-
|
|
1191
|
+
p.value.factorType === -1 && (p.value.factorSelectedList = []), p.value.factorType = 1;
|
|
1198
1192
|
})
|
|
1199
1193
|
}, {
|
|
1200
|
-
default:
|
|
1194
|
+
default: a(() => [
|
|
1201
1195
|
S(" 多 ")
|
|
1202
1196
|
]),
|
|
1203
1197
|
_: 1
|
|
1204
1198
|
}, 8, ["plain"]),
|
|
1205
|
-
|
|
1199
|
+
i(V, {
|
|
1206
1200
|
type: "success",
|
|
1207
|
-
plain:
|
|
1201
|
+
plain: p.value.factorType !== -1,
|
|
1208
1202
|
onClick: l[11] || (l[11] = () => {
|
|
1209
|
-
|
|
1203
|
+
p.value.factorType === 1 && (p.value.factorSelectedList = []), p.value.factorType = -1;
|
|
1210
1204
|
})
|
|
1211
1205
|
}, {
|
|
1212
|
-
default:
|
|
1206
|
+
default: a(() => [
|
|
1213
1207
|
S(" 空 ")
|
|
1214
1208
|
]),
|
|
1215
1209
|
_: 1
|
|
@@ -1217,23 +1211,23 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1217
1211
|
]),
|
|
1218
1212
|
_: 1
|
|
1219
1213
|
}),
|
|
1220
|
-
|
|
1214
|
+
i(k, {
|
|
1221
1215
|
label: "预警因子:",
|
|
1222
1216
|
prop: "factorSelectedList"
|
|
1223
1217
|
}, {
|
|
1224
|
-
default:
|
|
1225
|
-
|
|
1226
|
-
modelValue:
|
|
1227
|
-
"onUpdate:modelValue": l[12] || (l[12] = (t) =>
|
|
1218
|
+
default: a(() => [
|
|
1219
|
+
i(r, {
|
|
1220
|
+
modelValue: p.value.factorSelectedList,
|
|
1221
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => p.value.factorSelectedList = t)
|
|
1228
1222
|
}, {
|
|
1229
|
-
default:
|
|
1230
|
-
|
|
1223
|
+
default: a(() => [
|
|
1224
|
+
p.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, J(e.moreFactorOptions, (t, A) => (n(), g(N, {
|
|
1231
1225
|
key: A,
|
|
1232
1226
|
label: t.factorTypeName,
|
|
1233
1227
|
value: t.factorTypeName,
|
|
1234
1228
|
style: { width: "200px" }
|
|
1235
1229
|
}, null, 8, ["label", "value"]))), 128)) : w("", !0),
|
|
1236
|
-
|
|
1230
|
+
p.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, J(e.emptyFactorOptions, (t, A) => (n(), g(N, {
|
|
1237
1231
|
key: A,
|
|
1238
1232
|
label: t.factorTypeName,
|
|
1239
1233
|
value: t.factorTypeName,
|
|
@@ -1245,14 +1239,14 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1245
1239
|
]),
|
|
1246
1240
|
_: 1
|
|
1247
1241
|
}),
|
|
1248
|
-
|
|
1242
|
+
i(k, {
|
|
1249
1243
|
label: "预警次数:",
|
|
1250
1244
|
prop: "totalCount"
|
|
1251
1245
|
}, {
|
|
1252
|
-
default:
|
|
1253
|
-
|
|
1254
|
-
modelValue:
|
|
1255
|
-
"onUpdate:modelValue": l[13] || (l[13] = (t) =>
|
|
1246
|
+
default: a(() => [
|
|
1247
|
+
i(I, {
|
|
1248
|
+
modelValue: p.value.totalCount,
|
|
1249
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => p.value.totalCount = t),
|
|
1256
1250
|
min: 1,
|
|
1257
1251
|
max: 10,
|
|
1258
1252
|
"controls-position": "right",
|
|
@@ -1274,11 +1268,11 @@ const ce = (e) => (wt("data-v-bb3461b4"), e = e(), Et(), e), ol = { class: "st-f
|
|
|
1274
1268
|
]);
|
|
1275
1269
|
};
|
|
1276
1270
|
}
|
|
1277
|
-
},
|
|
1271
|
+
}, wl = /* @__PURE__ */ Ft(kl, [["__scopeId", "data-v-45015af9"]]), Ql = {
|
|
1278
1272
|
install(e) {
|
|
1279
|
-
e.component("st-factorWarning",
|
|
1273
|
+
e.component("st-factorWarning", wl);
|
|
1280
1274
|
}
|
|
1281
1275
|
};
|
|
1282
1276
|
export {
|
|
1283
|
-
|
|
1277
|
+
Ql as default
|
|
1284
1278
|
};
|