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