st-comp 0.0.104 → 0.0.106
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 +180 -150
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +46 -46
- package/lib/{index-8bd6c97d.js → index-792ad133.js} +1524 -1494
- package/lib/{python-519e9b4b.js → python-9e280945.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +68 -34
- package/src/pages/FactorWarning/index.vue +5 -749
package/es/FactorWarning.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./base-a3fcf99a.js";
|
|
2
|
-
import { z as
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
2
|
+
import { z as H, E as J } from "./zh-cn-0ab4aa73.js";
|
|
3
|
+
import { E as K } from "./el-overlay-851ea246.js";
|
|
4
|
+
import { E as Q, a as X, b as Y, c as Z } from "./el-table-column-661deade.js";
|
|
5
5
|
import "./el-tooltip-4ed993c7.js";
|
|
6
6
|
import "./el-popper-e052fb84.js";
|
|
7
7
|
import "./el-scrollbar-c23060d5.js";
|
|
8
|
-
import { E as
|
|
9
|
-
import { E as
|
|
8
|
+
import { E as ee } from "./el-popover-246eb710.js";
|
|
9
|
+
import { E as te } from "./el-button-fe99fee6.js";
|
|
10
10
|
import "./el-tag-7601f7e6.js";
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as
|
|
13
|
-
import { mergeModels as O, useModel as
|
|
14
|
-
import { _ as
|
|
11
|
+
import { E as le, a as oe, b as ae, c as re, d as ne } from "./el-radio-group-12b07ac2.js";
|
|
12
|
+
import { E as ue } from "./el-input-35c8ebc3.js";
|
|
13
|
+
import { mergeModels as O, useModel as ie, ref as V, watch as se, openBlock as r, createElementBlock as p, createVNode as a, unref as v, withCtx as l, createElementVNode as y, normalizeClass as de, toDisplayString as C, createTextVNode as s, createBlock as d, createCommentVNode as m, Fragment as $, renderList as M, pushScopeId as me, popScopeId as ce } from "vue";
|
|
14
|
+
import { _ as pe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
15
|
import "./config-provider-e4ebacca.js";
|
|
16
16
|
import "./index-28cd5fde.js";
|
|
17
17
|
import "./use-form-common-props-d0739feb.js";
|
|
@@ -26,33 +26,35 @@ import "./index-657047bb.js";
|
|
|
26
26
|
import "./castArray-0e8e51f9.js";
|
|
27
27
|
import "./typescript-7ae59c4c.js";
|
|
28
28
|
import "./index-b4bbc58d.js";
|
|
29
|
-
const
|
|
29
|
+
const N = (n) => (me("data-v-26b3057d"), n = n(), ce(), n), fe = { class: "st-factorWarning" }, be = { class: "custom-header" }, _e = /* @__PURE__ */ N(() => /* @__PURE__ */ y("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), ve = /* @__PURE__ */ N(() => /* @__PURE__ */ y("span", { style: { margin: "0 5px" } }, "~", -1)), ye = {
|
|
30
30
|
key: 0,
|
|
31
31
|
style: { color: "#f56c6c" }
|
|
32
|
-
},
|
|
32
|
+
}, ke = {
|
|
33
33
|
key: 1,
|
|
34
34
|
style: { color: "#67c23a" }
|
|
35
|
-
},
|
|
35
|
+
}, we = { key: 0 }, ge = { key: 1 }, Ce = { key: 2 }, xe = { class: "custom-footer" }, Ee = {
|
|
36
36
|
__name: "index",
|
|
37
37
|
props: /* @__PURE__ */ O({
|
|
38
38
|
// 弹窗标题
|
|
39
39
|
title: { type: [String, null], default: null },
|
|
40
|
-
//
|
|
40
|
+
// 表单因子
|
|
41
41
|
moreFactorOptions: { type: Array, default: () => [] },
|
|
42
42
|
emptyFactorOptions: { type: Array, default: () => [] },
|
|
43
|
-
//
|
|
43
|
+
// 表单点击确认提交后是否关闭弹窗
|
|
44
|
+
closeAfterSubmit: { type: Boolean, default: !0 },
|
|
45
|
+
// 表格数据
|
|
44
46
|
tableData: { type: Array, default: () => [] },
|
|
45
|
-
//
|
|
47
|
+
// 是否可操作
|
|
46
48
|
allowOperation: { type: Boolean, default: !0 },
|
|
47
|
-
//
|
|
49
|
+
// 功能点展示配置
|
|
48
50
|
showConfig: { type: Object, default: () => ({}) }
|
|
49
51
|
}, {
|
|
50
52
|
visible: { default: !1 },
|
|
51
53
|
visibleModifiers: {}
|
|
52
54
|
}),
|
|
53
55
|
emits: /* @__PURE__ */ O(["add", "delete", "enabled", "closed"], ["update:visible"]),
|
|
54
|
-
setup(n, { emit:
|
|
55
|
-
const
|
|
56
|
+
setup(n, { emit: B }) {
|
|
57
|
+
const h = B, x = n, k = Object.assign(
|
|
56
58
|
{
|
|
57
59
|
ruleFormPrice: !0,
|
|
58
60
|
// 表单-价格范围
|
|
@@ -67,54 +69,82 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
67
69
|
tableEnable: !0
|
|
68
70
|
// 表格-操作-启用
|
|
69
71
|
},
|
|
70
|
-
|
|
71
|
-
),
|
|
72
|
+
x.showConfig
|
|
73
|
+
), E = ie(n, "visible"), w = V(x.allowOperation ? "ruleForm" : "table"), S = V(null), o = V({
|
|
72
74
|
factorType: 1,
|
|
73
75
|
factorSelectedList: [],
|
|
74
76
|
totalCount: 1,
|
|
75
77
|
minPrice: null,
|
|
76
78
|
maxPrice: null,
|
|
77
79
|
mark: null
|
|
78
|
-
}), I =
|
|
80
|
+
}), I = V({
|
|
79
81
|
factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
|
|
80
82
|
factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
|
|
81
83
|
totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
|
|
82
|
-
}), F = async (
|
|
83
|
-
switch (
|
|
84
|
+
}), F = async (f) => {
|
|
85
|
+
switch (f) {
|
|
84
86
|
case "threeMore":
|
|
85
|
-
Object.assign(
|
|
87
|
+
Object.assign(o.value, {
|
|
86
88
|
factorType: 1,
|
|
87
|
-
factorSelectedList: ["dkx金叉", "dkx黄白线上+双箱单次", "dkx金叉后+单箱突破", "30均线上+向上+单箱"]
|
|
88
|
-
totalCount: 3
|
|
89
|
+
factorSelectedList: ["dkx金叉", "dkx黄白线上+双箱单次", "dkx金叉后+单箱突破", "30均线上+向上+单箱"]
|
|
89
90
|
});
|
|
90
91
|
break;
|
|
91
92
|
case "threeEmpty":
|
|
92
|
-
Object.assign(
|
|
93
|
+
Object.assign(o.value, {
|
|
93
94
|
factorType: -1,
|
|
94
|
-
factorSelectedList: ["dkx死叉", "dkx黄白线下+双箱单次", "dkx死叉后+单箱突破", "30均线下+向下+单箱"]
|
|
95
|
-
totalCount: 3
|
|
95
|
+
factorSelectedList: ["dkx死叉", "dkx黄白线下+双箱单次", "dkx死叉后+单箱突破", "30均线下+向下+单箱"]
|
|
96
96
|
});
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
const t = {
|
|
100
|
+
factorSelectedList: o.value.factorSelectedList.map((b) => {
|
|
101
|
+
let _ = 3;
|
|
102
|
+
const u = x.tableData.find(({ factorExtendName: i }) => i === b);
|
|
103
|
+
if (u) {
|
|
104
|
+
const i = u.totalCount - u.currentCount;
|
|
105
|
+
i === 0 ? _ = 3 : _ = Math.min(3, 10 - i >= 0 ? 10 - i : 0);
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
factorName: b,
|
|
109
|
+
...o.value,
|
|
110
|
+
totalCount: _
|
|
111
|
+
};
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
P(S.value, !1, t);
|
|
115
|
+
}, P = async (f, t = x.closeAfterSubmit, b) => {
|
|
116
|
+
f && await f.validate((_) => {
|
|
117
|
+
if (!_)
|
|
103
118
|
return !1;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
maxPrice: null,
|
|
110
|
-
mark: null
|
|
119
|
+
const u = b ?? {
|
|
120
|
+
factorSelectedList: o.value.factorSelectedList.map((i) => ({
|
|
121
|
+
factorName: i,
|
|
122
|
+
...o.value
|
|
123
|
+
}))
|
|
111
124
|
};
|
|
125
|
+
switch (h("add", u), t) {
|
|
126
|
+
case !0: {
|
|
127
|
+
E.value = !1;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
case !1: {
|
|
131
|
+
o.value = {
|
|
132
|
+
factorType: 1,
|
|
133
|
+
factorSelectedList: [],
|
|
134
|
+
totalCount: 1,
|
|
135
|
+
minPrice: null,
|
|
136
|
+
maxPrice: null,
|
|
137
|
+
mark: null
|
|
138
|
+
};
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
112
142
|
});
|
|
113
|
-
}
|
|
114
|
-
return
|
|
115
|
-
() =>
|
|
116
|
-
(
|
|
117
|
-
|
|
143
|
+
};
|
|
144
|
+
return se(
|
|
145
|
+
() => E.value,
|
|
146
|
+
(f) => {
|
|
147
|
+
f && (w.value = x.allowOperation ? "ruleForm" : "table", o.value = {
|
|
118
148
|
factorType: 1,
|
|
119
149
|
factorSelectedList: [],
|
|
120
150
|
totalCount: 1,
|
|
@@ -123,38 +153,38 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
123
153
|
mark: null
|
|
124
154
|
});
|
|
125
155
|
}
|
|
126
|
-
), (
|
|
127
|
-
const
|
|
128
|
-
return r(),
|
|
129
|
-
|
|
156
|
+
), (f, t) => {
|
|
157
|
+
const b = le, _ = oe, u = te, i = ae, L = Q, U = X, T = re, z = ue, D = ne, c = Y, A = ee, R = Z, j = K, q = J;
|
|
158
|
+
return r(), p("div", fe, [
|
|
159
|
+
a(q, { locale: v(H) }, {
|
|
130
160
|
default: l(() => [
|
|
131
|
-
|
|
132
|
-
modelValue:
|
|
133
|
-
"onUpdate:modelValue": t[12] || (t[12] = (e) =>
|
|
161
|
+
a(j, {
|
|
162
|
+
modelValue: E.value,
|
|
163
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => E.value = e),
|
|
134
164
|
width: "860",
|
|
135
165
|
"align-center": "",
|
|
136
166
|
"destroy-on-close": "",
|
|
137
|
-
onClosed: t[13] || (t[13] = (e) =>
|
|
167
|
+
onClosed: t[13] || (t[13] = (e) => h("closed"))
|
|
138
168
|
}, {
|
|
139
|
-
header: l(({ close: e, titleId:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
class:
|
|
169
|
+
header: l(({ close: e, titleId: g, titleClass: W }) => [
|
|
170
|
+
y("div", be, [
|
|
171
|
+
y("div", {
|
|
172
|
+
class: de(W)
|
|
143
173
|
}, [
|
|
144
|
-
|
|
145
|
-
|
|
174
|
+
_e,
|
|
175
|
+
y("span", null, C(n.title), 1)
|
|
146
176
|
], 2),
|
|
147
|
-
|
|
148
|
-
modelValue:
|
|
149
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
177
|
+
a(_, {
|
|
178
|
+
modelValue: w.value,
|
|
179
|
+
"onUpdate:modelValue": t[0] || (t[0] = (G) => w.value = G)
|
|
150
180
|
}, {
|
|
151
181
|
default: l(() => [
|
|
152
|
-
|
|
182
|
+
a(b, {
|
|
153
183
|
label: "添加",
|
|
154
184
|
value: "ruleForm",
|
|
155
185
|
disabled: !n.allowOperation
|
|
156
186
|
}, null, 8, ["disabled"]),
|
|
157
|
-
|
|
187
|
+
a(b, {
|
|
158
188
|
label: "管理",
|
|
159
189
|
value: "table"
|
|
160
190
|
})
|
|
@@ -164,141 +194,141 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
164
194
|
])
|
|
165
195
|
]),
|
|
166
196
|
footer: l(() => [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
onClick: t[10] || (t[10] = (e) =>
|
|
197
|
+
y("div", xe, [
|
|
198
|
+
a(u, {
|
|
199
|
+
onClick: t[10] || (t[10] = (e) => E.value = !1)
|
|
170
200
|
}, {
|
|
171
201
|
default: l(() => [
|
|
172
|
-
|
|
202
|
+
s("关闭")
|
|
173
203
|
]),
|
|
174
204
|
_: 1
|
|
175
205
|
}),
|
|
176
|
-
|
|
206
|
+
w.value === "ruleForm" ? (r(), d(u, {
|
|
177
207
|
key: 0,
|
|
178
208
|
type: "primary",
|
|
179
|
-
onClick: t[11] || (t[11] = (e) => S
|
|
209
|
+
onClick: t[11] || (t[11] = (e) => P(S.value))
|
|
180
210
|
}, {
|
|
181
211
|
default: l(() => [
|
|
182
|
-
|
|
212
|
+
s(" 确认 ")
|
|
183
213
|
]),
|
|
184
214
|
_: 1
|
|
185
|
-
})) :
|
|
215
|
+
})) : m("", !0)
|
|
186
216
|
])
|
|
187
217
|
]),
|
|
188
218
|
default: l(() => [
|
|
189
|
-
|
|
219
|
+
w.value === "ruleForm" ? (r(), d(D, {
|
|
190
220
|
key: 0,
|
|
191
221
|
ref_key: "ruleFormRef",
|
|
192
|
-
ref:
|
|
193
|
-
model:
|
|
222
|
+
ref: S,
|
|
223
|
+
model: o.value,
|
|
194
224
|
rules: I.value,
|
|
195
225
|
"label-width": "90px"
|
|
196
226
|
}, {
|
|
197
227
|
default: l(() => [
|
|
198
|
-
|
|
228
|
+
a(i, {
|
|
199
229
|
label: "交易类型:",
|
|
200
230
|
prop: "factorType"
|
|
201
231
|
}, {
|
|
202
232
|
default: l(() => [
|
|
203
|
-
|
|
233
|
+
a(u, {
|
|
204
234
|
type: "danger",
|
|
205
|
-
plain:
|
|
206
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
235
|
+
plain: o.value.factorType !== 1,
|
|
236
|
+
onClick: t[1] || (t[1] = (e) => o.value.factorType = 1)
|
|
207
237
|
}, {
|
|
208
238
|
default: l(() => [
|
|
209
|
-
|
|
239
|
+
s(" 多 ")
|
|
210
240
|
]),
|
|
211
241
|
_: 1
|
|
212
242
|
}, 8, ["plain"]),
|
|
213
|
-
|
|
243
|
+
a(u, {
|
|
214
244
|
type: "success",
|
|
215
|
-
plain:
|
|
216
|
-
onClick: t[2] || (t[2] = (e) =>
|
|
245
|
+
plain: o.value.factorType !== -1,
|
|
246
|
+
onClick: t[2] || (t[2] = (e) => o.value.factorType = -1)
|
|
217
247
|
}, {
|
|
218
248
|
default: l(() => [
|
|
219
|
-
|
|
249
|
+
s(" 空 ")
|
|
220
250
|
]),
|
|
221
251
|
_: 1
|
|
222
252
|
}, 8, ["plain"])
|
|
223
253
|
]),
|
|
224
254
|
_: 1
|
|
225
255
|
}),
|
|
226
|
-
|
|
256
|
+
a(i, {
|
|
227
257
|
label: "预警因子:",
|
|
228
258
|
prop: "factorSelectedList"
|
|
229
259
|
}, {
|
|
230
260
|
default: l(() => [
|
|
231
|
-
|
|
232
|
-
modelValue:
|
|
233
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) =>
|
|
261
|
+
a(U, {
|
|
262
|
+
modelValue: o.value.factorSelectedList,
|
|
263
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => o.value.factorSelectedList = e)
|
|
234
264
|
}, {
|
|
235
265
|
default: l(() => [
|
|
236
|
-
|
|
237
|
-
key:
|
|
266
|
+
o.value.factorType === 1 ? (r(!0), p($, { key: 0 }, M(n.moreFactorOptions, (e, g) => (r(), d(L, {
|
|
267
|
+
key: g,
|
|
238
268
|
label: e.factorTypeName,
|
|
239
269
|
value: e.factorTypeName,
|
|
240
270
|
style: { width: "200px" }
|
|
241
|
-
}, null, 8, ["label", "value"]))), 128)) :
|
|
242
|
-
|
|
243
|
-
key:
|
|
271
|
+
}, null, 8, ["label", "value"]))), 128)) : m("", !0),
|
|
272
|
+
o.value.factorType === -1 ? (r(!0), p($, { key: 1 }, M(n.emptyFactorOptions, (e, g) => (r(), d(L, {
|
|
273
|
+
key: g,
|
|
244
274
|
label: e.factorTypeName,
|
|
245
275
|
value: e.factorTypeName,
|
|
246
276
|
style: { width: "200px" }
|
|
247
|
-
}, null, 8, ["label", "value"]))), 128)) :
|
|
277
|
+
}, null, 8, ["label", "value"]))), 128)) : m("", !0)
|
|
248
278
|
]),
|
|
249
279
|
_: 1
|
|
250
280
|
}, 8, ["modelValue"])
|
|
251
281
|
]),
|
|
252
282
|
_: 1
|
|
253
283
|
}),
|
|
254
|
-
|
|
284
|
+
a(i, {
|
|
255
285
|
label: "预警次数:",
|
|
256
286
|
prop: "totalCount"
|
|
257
287
|
}, {
|
|
258
288
|
default: l(() => [
|
|
259
|
-
|
|
260
|
-
modelValue:
|
|
261
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) =>
|
|
289
|
+
a(T, {
|
|
290
|
+
modelValue: o.value.totalCount,
|
|
291
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => o.value.totalCount = e),
|
|
262
292
|
min: 1,
|
|
263
293
|
"controls-position": "right",
|
|
264
294
|
style: { "margin-right": "20px" }
|
|
265
295
|
}, null, 8, ["modelValue"]),
|
|
266
|
-
|
|
296
|
+
a(u, {
|
|
267
297
|
onClick: t[5] || (t[5] = (e) => F("threeMore"))
|
|
268
298
|
}, {
|
|
269
299
|
default: l(() => [
|
|
270
|
-
|
|
300
|
+
s("3次多")
|
|
271
301
|
]),
|
|
272
302
|
_: 1
|
|
273
303
|
}),
|
|
274
|
-
|
|
304
|
+
a(u, {
|
|
275
305
|
onClick: t[6] || (t[6] = (e) => F("threeEmpty"))
|
|
276
306
|
}, {
|
|
277
307
|
default: l(() => [
|
|
278
|
-
|
|
308
|
+
s("3次空")
|
|
279
309
|
]),
|
|
280
310
|
_: 1
|
|
281
311
|
})
|
|
282
312
|
]),
|
|
283
313
|
_: 1
|
|
284
314
|
}),
|
|
285
|
-
|
|
315
|
+
v(k).ruleFormPrice ? (r(), d(i, {
|
|
286
316
|
key: 0,
|
|
287
317
|
label: "价格范围:"
|
|
288
318
|
}, {
|
|
289
319
|
default: l(() => [
|
|
290
|
-
|
|
291
|
-
modelValue:
|
|
292
|
-
"onUpdate:modelValue": t[7] || (t[7] = (e) =>
|
|
320
|
+
a(T, {
|
|
321
|
+
modelValue: o.value.minPrice,
|
|
322
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => o.value.minPrice = e),
|
|
293
323
|
min: -999,
|
|
294
324
|
placeholder: "请输入",
|
|
295
325
|
max: 999,
|
|
296
326
|
"controls-position": "right"
|
|
297
327
|
}, null, 8, ["modelValue"]),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue": t[8] || (t[8] = (e) =>
|
|
328
|
+
ve,
|
|
329
|
+
a(T, {
|
|
330
|
+
modelValue: o.value.maxPrice,
|
|
331
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => o.value.maxPrice = e),
|
|
302
332
|
placeholder: "请输入",
|
|
303
333
|
min: -999,
|
|
304
334
|
max: 999,
|
|
@@ -306,15 +336,15 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
306
336
|
}, null, 8, ["modelValue"])
|
|
307
337
|
]),
|
|
308
338
|
_: 1
|
|
309
|
-
})) :
|
|
310
|
-
|
|
339
|
+
})) : m("", !0),
|
|
340
|
+
v(k).ruleFormMark ? (r(), d(i, {
|
|
311
341
|
key: 1,
|
|
312
342
|
label: "备注:"
|
|
313
343
|
}, {
|
|
314
344
|
default: l(() => [
|
|
315
|
-
|
|
316
|
-
modelValue:
|
|
317
|
-
"onUpdate:modelValue": t[9] || (t[9] = (e) =>
|
|
345
|
+
a(z, {
|
|
346
|
+
modelValue: o.value.mark,
|
|
347
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => o.value.mark = e),
|
|
318
348
|
type: "textarea",
|
|
319
349
|
placeholder: "请输入关键字",
|
|
320
350
|
rows: 2,
|
|
@@ -322,106 +352,106 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
322
352
|
}, null, 8, ["modelValue"])
|
|
323
353
|
]),
|
|
324
354
|
_: 1
|
|
325
|
-
})) :
|
|
355
|
+
})) : m("", !0)
|
|
326
356
|
]),
|
|
327
357
|
_: 1
|
|
328
|
-
}, 8, ["model", "rules"])) :
|
|
329
|
-
|
|
358
|
+
}, 8, ["model", "rules"])) : m("", !0),
|
|
359
|
+
w.value === "table" ? (r(), d(R, {
|
|
330
360
|
key: 1,
|
|
331
361
|
data: n.tableData,
|
|
332
362
|
size: "small"
|
|
333
363
|
}, {
|
|
334
364
|
default: l(() => [
|
|
335
|
-
|
|
365
|
+
a(c, {
|
|
336
366
|
label: "预警周期",
|
|
337
367
|
width: "70"
|
|
338
368
|
}, {
|
|
339
369
|
default: l((e) => [
|
|
340
|
-
|
|
370
|
+
s(C(e.row.freqName || "-"), 1)
|
|
341
371
|
]),
|
|
342
372
|
_: 1
|
|
343
373
|
}),
|
|
344
|
-
|
|
374
|
+
a(c, {
|
|
345
375
|
label: "交易类型",
|
|
346
376
|
width: "70"
|
|
347
377
|
}, {
|
|
348
378
|
default: l((e) => [
|
|
349
|
-
e.row.factorExtendValue == 1 ? (r(),
|
|
379
|
+
e.row.factorExtendValue == 1 ? (r(), p("span", ye, "多")) : (r(), p("span", ke, "空"))
|
|
350
380
|
]),
|
|
351
381
|
_: 1
|
|
352
382
|
}),
|
|
353
|
-
|
|
383
|
+
a(c, { label: "预警因子" }, {
|
|
354
384
|
default: l((e) => [
|
|
355
|
-
|
|
385
|
+
s(C(e.row.factorExtendName || "-"), 1)
|
|
356
386
|
]),
|
|
357
387
|
_: 1
|
|
358
388
|
}),
|
|
359
|
-
|
|
389
|
+
a(c, {
|
|
360
390
|
label: "预警次数",
|
|
361
391
|
width: "70"
|
|
362
392
|
}, {
|
|
363
393
|
default: l((e) => [
|
|
364
|
-
|
|
394
|
+
s(C(`${e.row.currentCount} / ${e.row.totalCount}`), 1)
|
|
365
395
|
]),
|
|
366
396
|
_: 1
|
|
367
397
|
}),
|
|
368
|
-
|
|
398
|
+
v(k).tableStatus ? (r(), d(c, {
|
|
369
399
|
key: 0,
|
|
370
400
|
label: "状态",
|
|
371
401
|
width: "70"
|
|
372
402
|
}, {
|
|
373
403
|
default: l((e) => [
|
|
374
|
-
|
|
375
|
-
e.row.enable === 1 ? (r(),
|
|
404
|
+
y("div", null, [
|
|
405
|
+
e.row.enable === 1 ? (r(), p("span", we, "未触发")) : e.row.enable === 2 ? (r(), p("span", ge, "已触发")) : (r(), p("span", Ce, "-"))
|
|
376
406
|
])
|
|
377
407
|
]),
|
|
378
408
|
_: 1
|
|
379
|
-
})) :
|
|
380
|
-
|
|
409
|
+
})) : m("", !0),
|
|
410
|
+
v(k).tableCreateTime ? (r(), d(c, {
|
|
381
411
|
key: 1,
|
|
382
412
|
label: "设置时间",
|
|
383
413
|
width: "136"
|
|
384
414
|
}, {
|
|
385
415
|
default: l((e) => [
|
|
386
|
-
|
|
416
|
+
s(C(e.row.createdTime || "-"), 1)
|
|
387
417
|
]),
|
|
388
418
|
_: 1
|
|
389
|
-
})) :
|
|
390
|
-
|
|
419
|
+
})) : m("", !0),
|
|
420
|
+
v(k).tableMark ? (r(), d(c, {
|
|
391
421
|
key: 2,
|
|
392
422
|
label: "备注",
|
|
393
423
|
width: "70"
|
|
394
424
|
}, {
|
|
395
425
|
default: l((e) => [
|
|
396
|
-
|
|
426
|
+
s(C(e.row.mark || "-"), 1)
|
|
397
427
|
]),
|
|
398
428
|
_: 1
|
|
399
|
-
})) :
|
|
400
|
-
n.allowOperation ? (r(),
|
|
429
|
+
})) : m("", !0),
|
|
430
|
+
n.allowOperation ? (r(), d(c, {
|
|
401
431
|
key: 3,
|
|
402
432
|
label: "操作",
|
|
403
433
|
width: "140"
|
|
404
434
|
}, {
|
|
405
435
|
default: l((e) => [
|
|
406
|
-
|
|
436
|
+
v(k).tableEnable ? (r(), d(u, {
|
|
407
437
|
key: 0,
|
|
408
438
|
disabled: e.row.currentCount !== e.row.totalCount,
|
|
409
439
|
size: "small",
|
|
410
|
-
onClick: (
|
|
440
|
+
onClick: (g) => h("enabled", e.row)
|
|
411
441
|
}, {
|
|
412
442
|
default: l(() => [
|
|
413
|
-
|
|
443
|
+
s(" 启用 ")
|
|
414
444
|
]),
|
|
415
445
|
_: 2
|
|
416
|
-
}, 1032, ["disabled", "onClick"])) :
|
|
417
|
-
|
|
446
|
+
}, 1032, ["disabled", "onClick"])) : m("", !0),
|
|
447
|
+
a(A, {
|
|
418
448
|
title: "确定删除?",
|
|
419
|
-
onConfirm: (
|
|
449
|
+
onConfirm: (g) => h("delete", e.row)
|
|
420
450
|
}, {
|
|
421
451
|
reference: l(() => [
|
|
422
|
-
|
|
452
|
+
a(u, { size: "small" }, {
|
|
423
453
|
default: l(() => [
|
|
424
|
-
|
|
454
|
+
s("删除")
|
|
425
455
|
]),
|
|
426
456
|
_: 1
|
|
427
457
|
})
|
|
@@ -430,10 +460,10 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
430
460
|
}, 1032, ["onConfirm"])
|
|
431
461
|
]),
|
|
432
462
|
_: 1
|
|
433
|
-
})) :
|
|
463
|
+
})) : m("", !0)
|
|
434
464
|
]),
|
|
435
465
|
_: 1
|
|
436
|
-
}, 8, ["data"])) :
|
|
466
|
+
}, 8, ["data"])) : m("", !0)
|
|
437
467
|
]),
|
|
438
468
|
_: 1
|
|
439
469
|
}, 8, ["modelValue"])
|
|
@@ -443,11 +473,11 @@ const L = (n) => (ce("data-v-942b031e"), n = n(), fe(), n), _e = { class: "st-fa
|
|
|
443
473
|
]);
|
|
444
474
|
};
|
|
445
475
|
}
|
|
446
|
-
},
|
|
476
|
+
}, he = /* @__PURE__ */ pe(Ee, [["__scopeId", "data-v-26b3057d"]]), et = {
|
|
447
477
|
install(n) {
|
|
448
|
-
n.component("st-factorWarning",
|
|
478
|
+
n.component("st-factorWarning", he);
|
|
449
479
|
}
|
|
450
480
|
};
|
|
451
481
|
export {
|
|
452
|
-
|
|
482
|
+
et as default
|
|
453
483
|
};
|