st-comp 0.0.103 → 0.0.105

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