@bsgoal/common 0.0.5 → 0.0.7

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,16 +1,16 @@
1
- var Be = Object.defineProperty;
2
- var Ve = Object.getOwnPropertySymbols;
3
- var we = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
- var Ae = (a, r, o) => r in a ? Be(a, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[r] = o, ye = (a, r) => {
5
- for (var o in r || (r = {}))
6
- we.call(r, o) && Ae(a, o, r[o]);
7
- if (Ve)
8
- for (var o of Ve(r))
9
- De.call(r, o) && Ae(a, o, r[o]);
1
+ var ye = Object.defineProperty;
2
+ var Te = Object.getOwnPropertySymbols;
3
+ var xe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
4
+ var Ve = (a, c, o) => c in a ? ye(a, c, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[c] = o, Ae = (a, c) => {
5
+ for (var o in c || (c = {}))
6
+ xe.call(c, o) && Ve(a, o, c[o]);
7
+ if (Te)
8
+ for (var o of Te(c))
9
+ Be.call(c, o) && Ve(a, o, c[o]);
10
10
  return a;
11
11
  };
12
- import { ref as w, watchEffect as pe, unref as s, computed as ue, resolveComponent as g, openBlock as u, createElementBlock as V, createElementVNode as F, withDirectives as G, createBlock as E, withCtx as A, createVNode as D, Fragment as U, renderList as X, createCommentVNode as x, createTextVNode as q, toDisplayString as j, pushScopeId as ke, popScopeId as Oe, nextTick as xe, inject as Ce, watch as se, resolveDirective as Ne, renderSlot as de, normalizeClass as he, vShow as Z, provide as Fe, useSlots as Me, createSlots as Re } from "vue";
13
- import { ElMessage as Ie } from "element-plus";
12
+ import { ref as B, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as u, createElementBlock as V, createElementVNode as F, withDirectives as G, createBlock as p, withCtx as A, createVNode as D, Fragment as I, renderList as W, createCommentVNode as $, createTextVNode as K, toDisplayString as j, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ge, vShow as Q, provide as ke, useSlots as Oe, createSlots as Ne } from "vue";
13
+ import { ElMessage as Fe } from "element-plus";
14
14
  const e = {
15
15
  INPUT: "text",
16
16
  INPUT_NUMBER: "number",
@@ -33,28 +33,28 @@ const e = {
33
33
  OPERATION: "operation"
34
34
  };
35
35
  let fe = null;
36
- const ge = (a) => {
37
- const r = [], o = [], d = (l = []) => {
38
- const c = l.map((b) => b.width), p = Math.max(...c);
39
- l.forEach((b) => {
40
- const { labelEl: $ } = b;
41
- $.style.width = `${p}px`;
36
+ const ve = (a) => {
37
+ const c = [], o = [], d = (n = []) => {
38
+ const r = n.map((b) => b.width), E = Math.max(...r);
39
+ n.forEach((b) => {
40
+ const { labelEl: y } = b;
41
+ y.style.width = `${E}px`;
42
42
  });
43
- }, i = () => {
43
+ }, _ = () => {
44
44
  if (a) {
45
- const l = a.querySelectorAll(".el-form-item__label");
46
- if (l && l.length) {
47
- let c = 0;
48
- l.forEach((p, b) => {
49
- p.style.width = "initial", p.style.whiteSpace = "nowrap";
50
- const { x: $ = 0, width: B = 0 } = p.getBoundingClientRect(), N = { x: $, width: B, labelEl: p };
51
- b === 0 && (c = $), $ === c ? r.push(N) : o.push(N);
45
+ const n = a.querySelectorAll(".el-form-item__label");
46
+ if (n && n.length) {
47
+ let r = 0;
48
+ n.forEach((E, b) => {
49
+ E.style.width = "initial", E.style.whiteSpace = "nowrap";
50
+ const { x: y = 0, width: x = 0 } = E.getBoundingClientRect(), N = { x: y, width: x, labelEl: E };
51
+ b === 0 && (r = y), y === r ? c.push(N) : o.push(N);
52
52
  });
53
53
  }
54
54
  }
55
55
  };
56
56
  fe && clearTimeout(fe), fe = setTimeout(() => {
57
- i(), d(r), d(o);
57
+ _(), d(c), d(o);
58
58
  }, 50);
59
59
  }, Ee = {
60
60
  /**
@@ -63,34 +63,29 @@ const ge = (a) => {
63
63
  align: {
64
64
  created(a) {
65
65
  window.addEventListener("resize", () => {
66
- ge(a);
66
+ ve(a);
67
67
  });
68
68
  },
69
69
  mounted(a) {
70
- ge(a);
70
+ ve(a);
71
71
  },
72
72
  unmounted(a) {
73
- window.removeEventListener("resize", ge(a));
73
+ window.removeEventListener("resize", ve(a));
74
74
  }
75
75
  },
76
76
  /**
77
77
  * 表格自动高度
78
78
  */
79
- height: (a, { value: r = 65, arg: o = "" }) => {
79
+ height: (a, { value: c = 65, arg: o = "" }) => {
80
80
  if (a) {
81
81
  const { y: d = 0 } = a.getBoundingClientRect();
82
- a.style.height = `calc(100vh - ${d + r}px)`;
82
+ a.style.height = `calc(100vh - ${d + c}px)`;
83
83
  }
84
84
  }
85
85
  };
86
- const W = (a, r) => {
87
- const o = a.__vccOpts || a;
88
- for (const [d, i] of r)
89
- o[d] = i;
90
- return o;
91
- }, Se = { class: "bsgoal-base-form" }, Ue = { class: "base_form" }, Pe = { key: 1 }, Le = {
86
+ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { key: 1 }, Se = {
92
87
  name: "BsgoalBaseForm"
93
- }, ze = /* @__PURE__ */ Object.assign(Le, {
88
+ }, Ie = /* @__PURE__ */ Object.assign(Se, {
94
89
  props: {
95
90
  /**
96
91
  * >----------props----------<
@@ -131,28 +126,28 @@ const W = (a, r) => {
131
126
  }
132
127
  },
133
128
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
134
- setup(a, { expose: r, emit: o }) {
135
- const d = a, i = w(null), l = Ee.align, c = w({});
136
- pe(() => {
137
- const { configOptions: h, values: f } = d, T = s(h), m = s(f);
138
- T.forEach((y) => {
139
- const { value: k = "", prop: O = "", type: M = "" } = y;
140
- [e.INPUT, e.INPUT_TEXT_AREA].includes(M), c.value[O] = m[O] || k;
129
+ setup(a, { expose: c, emit: o }) {
130
+ const d = a, _ = B(null), n = Ee.align, r = B({});
131
+ he(() => {
132
+ const { configOptions: h, values: v } = d, T = s(h), m = s(v);
133
+ T.forEach((C) => {
134
+ const { value: k = "", prop: O = "", type: M = "" } = C;
135
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[O] = m[O] || k;
141
136
  });
142
137
  });
143
- const p = ue(() => {
138
+ const E = oe(() => {
144
139
  const { configOptions: h } = d;
145
140
  return s(h).map((m) => {
146
- let { rules: y = !1, label: k = "" } = m;
141
+ let { rules: C = !1, label: k = "" } = m;
147
142
  const O = { required: !0, message: `${k}不能为空`, trigger: "blur" };
148
- return y && (typeof y == "boolean" ? y = [O] : Array.isArray(y) ? y = [O, ...y] : y = [O, y]), m.rules = y, m;
143
+ return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), m.rules = C, m;
149
144
  });
150
- }), b = (h = "", f = "", T = "") => {
145
+ }), b = (h = "", v = "", T = "") => {
151
146
  if (!T)
152
147
  switch (h) {
153
148
  case e.INPUT:
154
149
  case e.INPUT_TEXT_AREA:
155
- return `请输入${f}`;
150
+ return `请输入${v}`;
156
151
  case e.SELECT:
157
152
  case e.DATE:
158
153
  case e.WEEK:
@@ -160,7 +155,7 @@ const W = (a, r) => {
160
155
  case e.YEAR:
161
156
  case e.DATE_TIME:
162
157
  case e.TIME:
163
- return `请选择${f}`;
158
+ return `请选择${v}`;
164
159
  case e.DATE_RANGE:
165
160
  case e.DATE_TIME_RANGE:
166
161
  return ["开始日期", "结束日期"];
@@ -170,8 +165,8 @@ const W = (a, r) => {
170
165
  return ["开始月份", "结束月份"];
171
166
  }
172
167
  return T;
173
- }, $ = (h = "", f = "") => {
174
- if (!f)
168
+ }, y = (h = "", v = "") => {
169
+ if (!v)
175
170
  switch (h) {
176
171
  case e.WEEK:
177
172
  return "ww";
@@ -191,229 +186,229 @@ const W = (a, r) => {
191
186
  case e.DATE_TIME_RANGE:
192
187
  return "YYYY-MM-DD HH:mm:ss";
193
188
  }
194
- return f;
195
- }, B = () => {
196
- const h = s(c), { configOptions: f } = d, T = s(f);
189
+ return v;
190
+ }, x = () => {
191
+ const h = s(r), { configOptions: v } = d, T = s(v);
197
192
  for (const m of T) {
198
- const { type: y = "", range: k = [], prop: O = "" } = m;
199
- if (y.endsWith("range") && k && k.length === 2) {
200
- const { 0: M = "", 1: P = "" } = h[O], { 0: I = "", 1: S = "" } = k;
201
- h[I] = M, h[S] = P;
193
+ const { type: C = "", range: k = [], prop: O = "" } = m;
194
+ if (C.endsWith("range") && k && k.length === 2) {
195
+ const { 0: M = "", 1: P = "" } = h[O], { 0: U = "", 1: S = "" } = k;
196
+ h[U] = M, h[S] = P;
202
197
  }
203
198
  }
204
199
  return o("on-form", h), h;
205
200
  }, N = () => {
206
- i.value.resetFields(), o("on-clear", c.value);
207
- }, C = (h, f) => {
201
+ _.value.resetFields(), o("on-clear", r.value);
202
+ }, w = (h, v) => {
208
203
  const T = {
209
204
  type: h,
210
- prop: f,
211
- value: c.value[f] || ""
205
+ prop: v,
206
+ value: r.value[v] || ""
212
207
  };
213
208
  o("on-change", T);
214
209
  };
215
- return r({
210
+ return c({
216
211
  triggerOperationClear: N,
217
- triggerOperationForm: B,
212
+ triggerOperationForm: x,
218
213
  validateForm: (h = () => {
219
214
  }) => {
220
- i.value.validate((f = !1, T = {}) => {
221
- if (f) {
222
- const m = B();
215
+ _.value.validate((v = !1, T = {}) => {
216
+ if (v) {
217
+ const m = x();
223
218
  h(m);
224
219
  } else {
225
220
  h(!1), console.log("field", T);
226
221
  const m = Object.keys(T)[0], {
227
222
  [m]: {
228
- 0: { message: y = "" }
223
+ 0: { message: C = "" }
229
224
  }
230
225
  } = T;
231
- Ie.error(y);
226
+ Fe.error(C);
232
227
  }
233
228
  });
234
229
  }
235
- }), (h, f) => {
236
- const T = g("el-input"), m = g("el-input-number"), y = g("el-radio"), k = g("el-radio-group"), O = g("el-option"), M = g("el-select"), P = g("el-slider"), I = g("el-switch"), S = g("el-date-picker"), K = g("el-time-picker"), ee = g("el-checkbox"), le = g("el-checkbox-group"), te = g("el-form-item"), ie = g("el-col"), me = g("el-row"), ve = g("el-form");
237
- return u(), V("div", Se, [
238
- F("div", Ue, [
239
- G((u(), E(ve, {
230
+ }), (h, v) => {
231
+ const T = g("el-input"), m = g("el-input-number"), C = g("el-radio"), k = g("el-radio-group"), O = g("el-option"), M = g("el-select"), P = g("el-slider"), U = g("el-switch"), S = g("el-date-picker"), X = g("el-time-picker"), Z = g("el-checkbox"), le = g("el-checkbox-group"), ee = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
232
+ return u(), V("div", Me, [
233
+ F("div", Re, [
234
+ G((u(), p(me, {
240
235
  ref_key: "EL_FORM_REF",
241
- ref: i,
236
+ ref: _,
242
237
  "label-suffix": ":",
243
- model: c.value
238
+ model: r.value
244
239
  }, {
245
240
  default: A(() => [
246
- D(me, null, {
241
+ D(_e, null, {
247
242
  default: A(() => [
248
- (u(!0), V(U, null, X(s(p), ({
243
+ (u(!0), V(I, null, W(s(E), ({
249
244
  label: L = "",
250
- prop: v = "",
251
- type: n = "text",
252
- placeholder: _ = "",
245
+ prop: f = "",
246
+ type: l = "text",
247
+ placeholder: i = "",
253
248
  readonly: z = !1,
254
- clearable: ce = !0,
249
+ clearable: se = !0,
255
250
  rows: re = 2,
256
- min: _e = 1,
257
- max: oe = 10,
258
- range: J = [],
251
+ min: ce = 1,
252
+ max: ne = 10,
253
+ range: q = [],
259
254
  format: Y = "",
260
- rules: Q = []
261
- } = {}, ae) => (u(), E(ie, {
262
- key: ae,
255
+ rules: J = []
256
+ } = {}, te) => (u(), p(de, {
257
+ key: te,
263
258
  xs: 24,
264
259
  sm: 24,
265
260
  md: a.medium
266
261
  }, {
267
262
  default: A(() => [
268
- D(te, {
263
+ D(ee, {
269
264
  label: L,
270
- prop: v,
271
- rules: Q
265
+ prop: f,
266
+ rules: J
272
267
  }, {
273
268
  default: A(() => [
274
- z ? (u(), V("div", Pe, j(c.value[v]), 1)) : (u(), V(U, { key: 0 }, [
275
- n === s(e).INPUT ? (u(), E(T, {
269
+ z ? (u(), V("div", Ue, j(r.value[f]), 1)) : (u(), V(I, { key: 0 }, [
270
+ l === s(e).INPUT ? (u(), p(T, {
276
271
  key: 0,
277
- modelValue: c.value[v],
278
- "onUpdate:modelValue": (t) => c.value[v] = t,
279
- placeholder: b(n, L, _),
280
- clearable: ce,
281
- onChange: (t) => C(n, v)
282
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
283
- n === s(e).INPUT_TEXT_AREA ? (u(), E(T, {
272
+ modelValue: r.value[f],
273
+ "onUpdate:modelValue": (t) => r.value[f] = t,
274
+ placeholder: b(l, L, i),
275
+ clearable: se,
276
+ onChange: (t) => w(l, f)
277
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
278
+ l === s(e).INPUT_TEXT_AREA ? (u(), p(T, {
284
279
  key: 1,
285
- modelValue: c.value[v],
286
- "onUpdate:modelValue": (t) => c.value[v] = t,
280
+ modelValue: r.value[f],
281
+ "onUpdate:modelValue": (t) => r.value[f] = t,
287
282
  type: "textarea",
288
283
  rows: re,
289
- clearable: ce,
290
- placeholder: b(n, L, _),
291
- onChange: (t) => C(n, v)
292
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
293
- n === s(e).INPUT_NUMBER ? (u(), E(m, {
284
+ clearable: se,
285
+ placeholder: b(l, L, i),
286
+ onChange: (t) => w(l, f)
287
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
288
+ l === s(e).INPUT_NUMBER ? (u(), p(m, {
294
289
  key: 2,
295
290
  modelValue: h.num,
296
- "onUpdate:modelValue": f[0] || (f[0] = (t) => h.num = t),
297
- min: _e,
298
- max: oe,
299
- onChange: C
300
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
301
- n === s(e).RADIO ? (u(), E(k, {
291
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
292
+ min: ce,
293
+ max: ne,
294
+ onChange: w
295
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
296
+ l === s(e).RADIO ? (u(), p(k, {
302
297
  key: 3,
303
- modelValue: c.value[v],
304
- "onUpdate:modelValue": (t) => c.value[v] = t,
305
- onChange: (t) => C(n, v)
298
+ modelValue: r.value[f],
299
+ "onUpdate:modelValue": (t) => r.value[f] = t,
300
+ onChange: (t) => w(l, f)
306
301
  }, {
307
302
  default: A(() => [
308
- (u(!0), V(U, null, X(J, (t, H) => (u(), E(y, {
303
+ (u(!0), V(I, null, W(q, (t, H) => (u(), p(C, {
309
304
  key: H,
310
305
  label: t.value
311
306
  }, {
312
307
  default: A(() => [
313
- q(j(t.label), 1)
308
+ K(j(t.label), 1)
314
309
  ]),
315
310
  _: 2
316
311
  }, 1032, ["label"]))), 128))
317
312
  ]),
318
313
  _: 2
319
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
320
- n === s(e).SELECT ? (u(), E(M, {
314
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
315
+ l === s(e).SELECT ? (u(), p(M, {
321
316
  key: 4,
322
- modelValue: c.value[v],
323
- "onUpdate:modelValue": (t) => c.value[v] = t,
324
- placeholder: b(n, L, _),
325
- onChange: (t) => C(n, v)
317
+ modelValue: r.value[f],
318
+ "onUpdate:modelValue": (t) => r.value[f] = t,
319
+ placeholder: b(l, L, i),
320
+ onChange: (t) => w(l, f)
326
321
  }, {
327
322
  default: A(() => [
328
- (u(!0), V(U, null, X(J, (t, H) => (u(), E(O, {
323
+ (u(!0), V(I, null, W(q, (t, H) => (u(), p(O, {
329
324
  key: H,
330
325
  label: t.label,
331
326
  value: t.value
332
327
  }, null, 8, ["label", "value"]))), 128))
333
328
  ]),
334
329
  _: 2
335
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
336
- n === s(e).SLIDER ? (u(), E(P, {
330
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
331
+ l === s(e).SLIDER ? (u(), p(P, {
337
332
  key: 5,
338
- modelValue: c.value[v],
339
- "onUpdate:modelValue": (t) => c.value[v] = t,
340
- min: _e,
341
- max: oe,
342
- onChange: (t) => C(n, v)
343
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
344
- n === s(e).SWITCH ? (u(), E(I, {
333
+ modelValue: r.value[f],
334
+ "onUpdate:modelValue": (t) => r.value[f] = t,
335
+ min: ce,
336
+ max: ne,
337
+ onChange: (t) => w(l, f)
338
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
339
+ l === s(e).SWITCH ? (u(), p(U, {
345
340
  key: 6,
346
- modelValue: c.value[v],
347
- "onUpdate:modelValue": (t) => c.value[v] = t,
348
- "active-value": J[0] || !0,
349
- "inactive-value": J[1] || !1,
350
- onChange: (t) => C(n, v)
351
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
341
+ modelValue: r.value[f],
342
+ "onUpdate:modelValue": (t) => r.value[f] = t,
343
+ "active-value": q[0] || !0,
344
+ "inactive-value": q[1] || !1,
345
+ onChange: (t) => w(l, f)
346
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
352
347
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
353
- n
354
- ) ? (u(), E(S, {
348
+ l
349
+ ) ? (u(), p(S, {
355
350
  key: 7,
356
- modelValue: c.value[v],
357
- "onUpdate:modelValue": (t) => c.value[v] = t,
358
- format: $(n, Y),
359
- "value-format": $(n, Y),
360
- type: n,
361
- placeholder: b(n, L, _),
362
- onChange: (t) => C(n, v)
363
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
351
+ modelValue: r.value[f],
352
+ "onUpdate:modelValue": (t) => r.value[f] = t,
353
+ format: y(l, Y),
354
+ "value-format": y(l, Y),
355
+ type: l,
356
+ placeholder: b(l, L, i),
357
+ onChange: (t) => w(l, f)
358
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
364
359
  [
365
360
  s(e).DATE_RANGE,
366
361
  s(e).MONTH_RANGE,
367
362
  s(e).DATE_TIME_RANGE
368
- ].includes(n) ? (u(), E(S, {
363
+ ].includes(l) ? (u(), p(S, {
369
364
  key: 8,
370
- modelValue: c.value[v],
371
- "onUpdate:modelValue": (t) => c.value[v] = t,
372
- type: n,
373
- "value-format": $(n, Y),
374
- "start-placeholder": b(n, L, _)[0],
375
- "end-placeholder": b(n, L, _)[1],
376
- onChange: (t) => C(n, v)
377
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
378
- [s(e).TIME].includes(n) ? (u(), E(K, {
365
+ modelValue: r.value[f],
366
+ "onUpdate:modelValue": (t) => r.value[f] = t,
367
+ type: l,
368
+ "value-format": y(l, Y),
369
+ "start-placeholder": b(l, L, i)[0],
370
+ "end-placeholder": b(l, L, i)[1],
371
+ onChange: (t) => w(l, f)
372
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
373
+ [s(e).TIME].includes(l) ? (u(), p(X, {
379
374
  key: 9,
380
- modelValue: c.value[v],
381
- "onUpdate:modelValue": (t) => c.value[v] = t,
375
+ modelValue: r.value[f],
376
+ "onUpdate:modelValue": (t) => r.value[f] = t,
382
377
  "arrow-control": "",
383
- "value-format": $(n, Y),
384
- placeholder: b(n, L, _),
385
- onChange: (t) => C(n, v)
386
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
387
- [s(e).TIME_RANGE].includes(n) ? (u(), E(K, {
378
+ "value-format": y(l, Y),
379
+ placeholder: b(l, L, i),
380
+ onChange: (t) => w(l, f)
381
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
382
+ [s(e).TIME_RANGE].includes(l) ? (u(), p(X, {
388
383
  key: 10,
389
- modelValue: c.value[v],
390
- "onUpdate:modelValue": (t) => c.value[v] = t,
384
+ modelValue: r.value[f],
385
+ "onUpdate:modelValue": (t) => r.value[f] = t,
391
386
  "is-range": "",
392
- "value-format": $(n, Y),
393
- "start-placeholder": b(n, L, _)[0],
394
- "end-placeholder": b(n, L, _)[1],
395
- onChange: (t) => C(n, v)
396
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
397
- [s(e).CHECKBOX].includes(n) ? (u(), E(le, {
387
+ "value-format": y(l, Y),
388
+ "start-placeholder": b(l, L, i)[0],
389
+ "end-placeholder": b(l, L, i)[1],
390
+ onChange: (t) => w(l, f)
391
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
392
+ [s(e).CHECKBOX].includes(l) ? (u(), p(le, {
398
393
  key: 11,
399
- modelValue: c.value[v],
400
- "onUpdate:modelValue": (t) => c.value[v] = t,
401
- onChange: (t) => C(n, v)
394
+ modelValue: r.value[f],
395
+ "onUpdate:modelValue": (t) => r.value[f] = t,
396
+ onChange: (t) => w(l, f)
402
397
  }, {
403
398
  default: A(() => [
404
- (u(!0), V(U, null, X(J, (t, H) => (u(), E(ee, {
399
+ (u(!0), V(I, null, W(q, (t, H) => (u(), p(Z, {
405
400
  key: H,
406
401
  label: t.value
407
402
  }, {
408
403
  default: A(() => [
409
- q(j(t.label), 1)
404
+ K(j(t.label), 1)
410
405
  ]),
411
406
  _: 2
412
407
  }, 1032, ["label"]))), 128))
413
408
  ]),
414
409
  _: 2
415
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
416
- [].includes(n) ? (u(), V(U, { key: 12 }, [], 64)) : x("", !0)
410
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
411
+ [].includes(l) ? (u(), V(I, { key: 12 }, [], 64)) : $("", !0)
417
412
  ], 64))
418
413
  ]),
419
414
  _: 2
@@ -427,16 +422,16 @@ const W = (a, r) => {
427
422
  ]),
428
423
  _: 1
429
424
  }, 8, ["model"])), [
430
- [s(l)]
425
+ [s(n)]
431
426
  ])
432
427
  ])
433
428
  ]);
434
429
  };
435
430
  }
436
- }), Ye = /* @__PURE__ */ W(ze, [["__scopeId", "data-v-8c079baa"]]);
437
- const He = { class: "bsgoal-base-table-content" }, Ge = { class: "bas_tabl_content" }, je = {
431
+ });
432
+ const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_content" }, ze = {
438
433
  name: "BsgoalBaseTableContent"
439
- }, We = /* @__PURE__ */ Object.assign(je, {
434
+ }, Ye = /* @__PURE__ */ Object.assign(ze, {
440
435
  props: {
441
436
  data: {
442
437
  type: [String, Number, Object, Number, Boolean],
@@ -444,13 +439,13 @@ const He = { class: "bsgoal-base-table-content" }, Ge = { class: "bas_tabl_conte
444
439
  }
445
440
  },
446
441
  setup(a) {
447
- return (r, o) => (u(), V("div", He, [
448
- F("div", Ge, j(a.data), 1)
442
+ return (c, o) => (u(), V("div", Pe, [
443
+ F("div", Le, j(a.data), 1)
449
444
  ]));
450
445
  }
451
- }), Xe = /* @__PURE__ */ W(We, [["__scopeId", "data-v-a66a56ec"]]);
446
+ });
452
447
  /*! Element Plus v2.3.3 */
453
- var Ke = {
448
+ var He = {
454
449
  name: "zh-cn",
455
450
  el: {
456
451
  colorpicker: {
@@ -577,9 +572,9 @@ var Ke = {
577
572
  }
578
573
  }
579
574
  };
580
- const qe = (a) => (ke("data-v-05353ff7"), a = a(), Oe(), a), Je = { class: "bsgoal-base-table-pagination" }, Qe = { class: "base_table_pagination" }, Ze = /* @__PURE__ */ qe(() => /* @__PURE__ */ F("span", null, "总数", -1)), et = {
575
+ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_pagination" }, We = /* @__PURE__ */ F("span", null, "总数", -1), Xe = {
581
576
  name: "BsgoalBaseTablePagination"
582
- }, tt = /* @__PURE__ */ Object.assign(et, {
577
+ }, Ke = /* @__PURE__ */ Object.assign(Xe, {
583
578
  props: {
584
579
  /**
585
580
  * 当前页数
@@ -611,23 +606,23 @@ const qe = (a) => (ke("data-v-05353ff7"), a = a(), Oe(), a), Je = { class: "bsgo
611
606
  }
612
607
  },
613
608
  emits: ["on-size-change", "on-current-change"],
614
- setup(a, { emit: r }) {
615
- const o = (l = 0) => {
616
- r("on-size-change", l);
617
- }, d = (l = 1) => {
618
- r("on-current-change", l);
619
- }, i = w(1);
620
- return (l, c) => {
621
- const p = g("el-pagination"), b = g("el-config-provider");
622
- return u(), V("div", Je, [
623
- F("div", Qe, [
624
- D(b, { locale: s(Ke) }, {
609
+ setup(a, { emit: c }) {
610
+ const o = (n = 0) => {
611
+ c("on-size-change", n);
612
+ }, d = (n = 1) => {
613
+ c("on-current-change", n);
614
+ }, _ = B(1);
615
+ return (n, r) => {
616
+ const E = g("el-pagination"), b = g("el-config-provider");
617
+ return u(), V("div", Ge, [
618
+ F("div", je, [
619
+ D(b, { locale: s(He) }, {
625
620
  default: A(() => [
626
- D(p, {
621
+ D(E, {
627
622
  background: "",
628
623
  layout: "total, sizes, prev, pager, next, jumper",
629
- "current-page": i.value,
630
- "onUpdate:currentPage": c[0] || (c[0] = ($) => i.value = $),
624
+ "current-page": _.value,
625
+ "onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
631
626
  "page-sizes": a.pageSizes,
632
627
  "page-size": a.pageSize,
633
628
  total: a.total,
@@ -635,7 +630,7 @@ const qe = (a) => (ke("data-v-05353ff7"), a = a(), Oe(), a), Je = { class: "bsgo
635
630
  onCurrentChange: d
636
631
  }, {
637
632
  next: A(() => [
638
- Ze
633
+ We
639
634
  ]),
640
635
  _: 1
641
636
  }, 8, ["current-page", "page-sizes", "page-size", "total"])
@@ -646,37 +641,37 @@ const qe = (a) => (ke("data-v-05353ff7"), a = a(), Oe(), a), Je = { class: "bsgo
646
641
  ]);
647
642
  };
648
643
  }
649
- }), at = /* @__PURE__ */ W(tt, [["__scopeId", "data-v-05353ff7"]]), nt = (a = null, { expression: r = 65, arg: o = {} } = {}) => {
644
+ }), qe = (a = null, { expression: c = 65, arg: o = {} } = {}) => {
650
645
  const d = s(a);
651
646
  if (d) {
652
- const i = d.querySelector(".el-table");
653
- i && xe(() => {
654
- const { y: l = 0 } = i.getBoundingClientRect();
655
- i.style.height = `calc(100vh - ${l + r}px)`;
647
+ const _ = d.querySelector(".el-table");
648
+ _ && Ce(() => {
649
+ const { y: n = 0 } = _.getBoundingClientRect();
650
+ _.style.height = `calc(100vh - ${n + c}px)`;
656
651
  });
657
652
  }
658
- }, be = (a = Promise.resolve(), r = null, o = w(!1), d = w(null)) => {
659
- const i = w("");
660
- return o.value = !0, a.then((l = {}) => {
661
- const { data: c = {}, message: p = "" } = l;
662
- d.value = c, i.value = p, r && r(!0, c), o.value = !1;
663
- }).catch((l = {}) => {
664
- if (typeof l == "object") {
665
- const { message: c = "" } = l;
666
- i.value = c;
653
+ }, pe = (a = Promise.resolve(), c = null, o = B(!1), d = B(null)) => {
654
+ const _ = B("");
655
+ return o.value = !0, a.then((n = {}) => {
656
+ const { data: r = {}, message: E = "" } = n;
657
+ d.value = r, _.value = E, c && c(!0, r), o.value = !1;
658
+ }).catch((n = {}) => {
659
+ if (typeof n == "object") {
660
+ const { message: r = "" } = n;
661
+ _.value = r;
667
662
  } else
668
- i.value = l;
669
- r(!1, l), o.value = !1;
663
+ _.value = n;
664
+ c(!1, n), o.value = !1;
670
665
  }).finally(() => {
671
666
  o.value = !1;
672
- }), { data: d, message: i, loading: o };
667
+ }), { data: d, message: _, loading: o };
673
668
  };
674
- const lt = { class: "bsgoal-base-table" }, ot = { class: "base_table" }, ut = {
669
+ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
675
670
  key: 0,
676
671
  class: "base_table_menu"
677
- }, st = {
672
+ }, et = {
678
673
  name: "BsgoalBaseTable"
679
- }, ct = /* @__PURE__ */ Object.assign(st, {
674
+ }, we = /* @__PURE__ */ Object.assign(et, {
680
675
  props: {
681
676
  /**
682
677
  * >----------props----------<
@@ -756,51 +751,51 @@ const lt = { class: "bsgoal-base-table" }, ot = { class: "base_table" }, ut = {
756
751
  })
757
752
  }
758
753
  },
759
- setup(a, { expose: r }) {
760
- const o = a, d = ue(() => {
761
- const { configOptions: m = [], operation: y = !1, operationWidth: k = 0 } = o, O = s(m), M = [];
762
- return y && M.push({
754
+ setup(a, { expose: c }) {
755
+ const o = a, d = oe(() => {
756
+ const { configOptions: m = [], operation: C = !1, operationWidth: k = 0 } = o, O = s(m), M = [];
757
+ return C && M.push({
763
758
  label: "操作",
764
759
  fixed: "right",
765
760
  prop: "operation",
766
761
  width: k
767
762
  }), [...O, ...M];
768
- }), i = w(null), l = Ce("transferFoldStatus");
769
- pe(() => {
770
- const m = l ? l.value : !1;
771
- nt(i, { arg: m });
763
+ }), _ = B(null), n = $e("transferFoldStatus");
764
+ he(() => {
765
+ const m = n ? n.value : !1;
766
+ qe(_, { arg: m });
772
767
  });
773
- const c = w(1), p = w(10), b = w(0), $ = w({}), B = w(o.loading), N = w(o.data), C = w({}), R = () => {
774
- const { fetch: m, call: y, mapProps: k } = o, O = $.value, M = c.value, P = p.value, I = ye({}, O), S = s(k);
775
- I[S.currentPage] = M, I[S.pageSize] = P, be(m(I), y, B, C);
768
+ const r = B(1), E = B(10), b = B(0), y = B({}), x = B(o.loading), N = B(o.data), w = B({}), R = () => {
769
+ const { fetch: m, call: C, mapProps: k } = o, O = y.value, M = r.value, P = E.value, U = Ae({}, O), S = s(k);
770
+ U[S.currentPage] = M, U[S.pageSize] = P, pe(m(U), C, x, w);
776
771
  };
777
- se(C, (m) => {
778
- const { mapProps: y } = o, k = s(y);
772
+ ue(w, (m) => {
773
+ const { mapProps: C } = o, k = s(C);
779
774
  N.value = m[k.rows], b.value = m[k.total];
780
775
  });
781
776
  const h = (m = {}) => {
782
- $.value = m, c.value = 1, R();
783
- }, f = (m = 1) => {
784
- c.value = m;
777
+ y.value = m, r.value = 1, R();
778
+ }, v = (m = 1) => {
779
+ r.value = m;
785
780
  }, T = (m = 10) => {
786
- p.value = m;
781
+ E.value = m;
787
782
  };
788
- return se([c, p], () => {
783
+ return ue([r, E], () => {
789
784
  R();
790
- }), r({
785
+ }), c({
791
786
  refreshList: h
792
- }), (m, y) => {
793
- const k = g("el-table-column"), O = g("el-table"), M = Ne("loading");
794
- return u(), V("div", lt, [
795
- F("div", ot, [
796
- m.$slots.menu ? (u(), V("div", ut, [
797
- de(m.$slots, "menu", {}, void 0, !0)
798
- ])) : x("", !0),
787
+ }), (m, C) => {
788
+ const k = g("el-table-column"), O = g("el-table"), M = De("loading");
789
+ return u(), V("div", Je, [
790
+ F("div", Qe, [
791
+ m.$slots.menu ? (u(), V("div", Ze, [
792
+ ie(m.$slots, "menu")
793
+ ])) : $("", !0),
799
794
  F("div", {
800
795
  ref_key: "EL_TABLE_WRAP_REF",
801
- ref: i
796
+ ref: _
802
797
  }, [
803
- G((u(), E(O, {
798
+ G((u(), p(O, {
804
799
  stripe: "",
805
800
  border: "",
806
801
  "highlight-current-row": "",
@@ -815,48 +810,48 @@ const lt = { class: "bsgoal-base-table" }, ot = { class: "base_table" }, ut = {
815
810
  }, {
816
811
  empty: A(() => []),
817
812
  default: A(() => [
818
- a.selection ? (u(), E(k, {
813
+ a.selection ? (u(), p(k, {
819
814
  key: 0,
820
815
  fixed: "left",
821
816
  type: "selection",
822
817
  width: "40"
823
- })) : x("", !0),
824
- (u(!0), V(U, null, X(s(d), ({ prop: P = "", label: I = "", align: S = "center", width: K = "", fixed: ee = !1 } = {}, le) => (u(), E(k, {
818
+ })) : $("", !0),
819
+ (u(!0), V(I, null, W(s(d), ({ prop: P = "", label: U = "", align: S = "center", width: X = "", fixed: Z = !1 } = {}, le) => (u(), p(k, {
825
820
  key: le,
826
- label: I,
821
+ label: U,
827
822
  align: S,
828
- width: K,
829
- fixed: ee,
830
- "min-width": `${I.length * 14 + 24}px`
823
+ width: X,
824
+ fixed: Z,
825
+ "min-width": `${U.length * 14 + 24}px`
831
826
  }, {
832
- default: A(({ row: te }) => [
833
- de(m.$slots, P, { row: te }, () => [
834
- D(Xe, {
835
- data: te[P]
827
+ default: A(({ row: ee }) => [
828
+ ie(m.$slots, P, { row: ee }, () => [
829
+ D(Ye, {
830
+ data: ee[P]
836
831
  }, null, 8, ["data"])
837
- ], !0)
832
+ ])
838
833
  ]),
839
834
  _: 2
840
835
  }, 1032, ["label", "align", "width", "fixed", "min-width"]))), 128))
841
836
  ]),
842
837
  _: 3
843
838
  }, 8, ["data", "header-cell-style"])), [
844
- [M, B.value]
839
+ [M, x.value]
845
840
  ])
846
841
  ], 512),
847
- D(at, {
842
+ D(Ke, {
848
843
  total: b.value,
849
- onOnCurrentChange: f,
844
+ onOnCurrentChange: v,
850
845
  onOnSizeChange: T
851
846
  }, null, 8, ["total"])
852
847
  ])
853
848
  ]);
854
849
  };
855
850
  }
856
- }), $e = /* @__PURE__ */ W(ct, [["__scopeId", "data-v-05083aef"]]);
857
- const rt = {
851
+ });
852
+ const tt = {
858
853
  name: "BsgoalBaseLine"
859
- }, _t = /* @__PURE__ */ Object.assign(rt, {
854
+ }, be = /* @__PURE__ */ Object.assign(tt, {
860
855
  props: {
861
856
  /**
862
857
  * 是否为垂直
@@ -867,27 +862,27 @@ const rt = {
867
862
  }
868
863
  },
869
864
  setup(a) {
870
- return (r, o) => (u(), V("div", {
871
- class: he(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
865
+ return (c, o) => (u(), V("div", {
866
+ class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
872
867
  }, [
873
868
  F("div", {
874
- class: he(["base_line", { base_line__vertical: a.vertical }])
869
+ class: ge(["base_line", { base_line__vertical: a.vertical }])
875
870
  }, null, 2)
876
871
  ], 2));
877
872
  }
878
- }), Te = /* @__PURE__ */ W(_t, [["__scopeId", "data-v-b52ba9cb"]]);
873
+ });
879
874
  /*! Element Plus Icons Vue v2.1.0 */
880
- var ne = (a, r) => {
875
+ var ae = (a, c) => {
881
876
  let o = a.__vccOpts || a;
882
- for (let [d, i] of r)
883
- o[d] = i;
877
+ for (let [d, _] of c)
878
+ o[d] = _;
884
879
  return o;
885
- }, dt = {
880
+ }, at = {
886
881
  name: "ArrowDown"
887
- }, it = {
882
+ }, lt = {
888
883
  xmlns: "http://www.w3.org/2000/svg",
889
884
  viewBox: "0 0 1024 1024"
890
- }, mt = /* @__PURE__ */ F(
885
+ }, nt = /* @__PURE__ */ F(
891
886
  "path",
892
887
  {
893
888
  fill: "currentColor",
@@ -896,18 +891,18 @@ var ne = (a, r) => {
896
891
  null,
897
892
  -1
898
893
  /* HOISTED */
899
- ), vt = [
900
- mt
894
+ ), ot = [
895
+ nt
901
896
  ];
902
- function ft(a, r, o, d, i, l) {
903
- return u(), V("svg", it, vt);
897
+ function ut(a, c, o, d, _, n) {
898
+ return u(), V("svg", lt, ot);
904
899
  }
905
- var gt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
900
+ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
906
901
  name: "ArrowLeft"
907
- }, pt = {
902
+ }, ct = {
908
903
  xmlns: "http://www.w3.org/2000/svg",
909
904
  viewBox: "0 0 1024 1024"
910
- }, Et = /* @__PURE__ */ F(
905
+ }, it = /* @__PURE__ */ F(
911
906
  "path",
912
907
  {
913
908
  fill: "currentColor",
@@ -916,18 +911,18 @@ var gt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]),
916
911
  null,
917
912
  -1
918
913
  /* HOISTED */
919
- ), bt = [
920
- Et
914
+ ), dt = [
915
+ it
921
916
  ];
922
- function Tt(a, r, o, d, i, l) {
923
- return u(), V("svg", pt, bt);
917
+ function _t(a, c, o, d, _, n) {
918
+ return u(), V("svg", ct, dt);
924
919
  }
925
- var Vt = /* @__PURE__ */ ne(ht, [["render", Tt], ["__file", "arrow-left.vue"]]), At = {
920
+ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
926
921
  name: "ArrowRight"
927
- }, yt = {
922
+ }, vt = {
928
923
  xmlns: "http://www.w3.org/2000/svg",
929
924
  viewBox: "0 0 1024 1024"
930
- }, xt = /* @__PURE__ */ F(
925
+ }, gt = /* @__PURE__ */ F(
931
926
  "path",
932
927
  {
933
928
  fill: "currentColor",
@@ -936,18 +931,18 @@ var Vt = /* @__PURE__ */ ne(ht, [["render", Tt], ["__file", "arrow-left.vue"]]),
936
931
  null,
937
932
  -1
938
933
  /* HOISTED */
939
- ), Ct = [
940
- xt
934
+ ), ht = [
935
+ gt
941
936
  ];
942
- function $t(a, r, o, d, i, l) {
943
- return u(), V("svg", yt, Ct);
937
+ function Et(a, c, o, d, _, n) {
938
+ return u(), V("svg", vt, ht);
944
939
  }
945
- var Bt = /* @__PURE__ */ ne(At, [["render", $t], ["__file", "arrow-right.vue"]]), wt = {
940
+ var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]]), bt = {
946
941
  name: "ArrowUp"
947
- }, Dt = {
942
+ }, Tt = {
948
943
  xmlns: "http://www.w3.org/2000/svg",
949
944
  viewBox: "0 0 1024 1024"
950
- }, kt = /* @__PURE__ */ F(
945
+ }, Vt = /* @__PURE__ */ F(
951
946
  "path",
952
947
  {
953
948
  fill: "currentColor",
@@ -956,18 +951,18 @@ var Bt = /* @__PURE__ */ ne(At, [["render", $t], ["__file", "arrow-right.vue"]])
956
951
  null,
957
952
  -1
958
953
  /* HOISTED */
959
- ), Ot = [
960
- kt
954
+ ), At = [
955
+ Vt
961
956
  ];
962
- function Nt(a, r, o, d, i, l) {
963
- return u(), V("svg", Dt, Ot);
957
+ function Ct(a, c, o, d, _, n) {
958
+ return u(), V("svg", Tt, At);
964
959
  }
965
- var Ft = /* @__PURE__ */ ne(wt, [["render", Nt], ["__file", "arrow-up.vue"]]), Mt = {
960
+ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), wt = {
966
961
  name: "Delete"
967
- }, Rt = {
962
+ }, yt = {
968
963
  xmlns: "http://www.w3.org/2000/svg",
969
964
  viewBox: "0 0 1024 1024"
970
- }, It = /* @__PURE__ */ F(
965
+ }, xt = /* @__PURE__ */ F(
971
966
  "path",
972
967
  {
973
968
  fill: "currentColor",
@@ -976,18 +971,18 @@ var Ft = /* @__PURE__ */ ne(wt, [["render", Nt], ["__file", "arrow-up.vue"]]), M
976
971
  null,
977
972
  -1
978
973
  /* HOISTED */
979
- ), St = [
980
- It
974
+ ), Bt = [
975
+ xt
981
976
  ];
982
- function Ut(a, r, o, d, i, l) {
983
- return u(), V("svg", Rt, St);
977
+ function Dt(a, c, o, d, _, n) {
978
+ return u(), V("svg", yt, Bt);
984
979
  }
985
- var Pt = /* @__PURE__ */ ne(Mt, [["render", Ut], ["__file", "delete.vue"]]), Lt = {
980
+ var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot = {
986
981
  name: "Search"
987
- }, zt = {
982
+ }, Nt = {
988
983
  xmlns: "http://www.w3.org/2000/svg",
989
984
  viewBox: "0 0 1024 1024"
990
- }, Yt = /* @__PURE__ */ F(
985
+ }, Ft = /* @__PURE__ */ F(
991
986
  "path",
992
987
  {
993
988
  fill: "currentColor",
@@ -996,16 +991,21 @@ var Pt = /* @__PURE__ */ ne(Mt, [["render", Ut], ["__file", "delete.vue"]]), Lt
996
991
  null,
997
992
  -1
998
993
  /* HOISTED */
999
- ), Ht = [
1000
- Yt
994
+ ), Mt = [
995
+ Ft
1001
996
  ];
1002
- function Gt(a, r, o, d, i, l) {
1003
- return u(), V("svg", zt, Ht);
997
+ function Rt(a, c, o, d, _, n) {
998
+ return u(), V("svg", Nt, Mt);
1004
999
  }
1005
- var jt = /* @__PURE__ */ ne(Lt, [["render", Gt], ["__file", "search.vue"]]);
1006
- const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1000
+ var Ut = /* @__PURE__ */ ae(Ot, [["render", Rt], ["__file", "search.vue"]]);
1001
+ const St = (a, c) => {
1002
+ const o = a.__vccOpts || a;
1003
+ for (const [d, _] of c)
1004
+ o[d] = _;
1005
+ return o;
1006
+ }, It = { class: "bsgoal-base-search-operation" }, Pt = {
1007
1007
  name: "BsgoalBaseSearchOperation"
1008
- }, Kt = /* @__PURE__ */ Object.assign(Xt, {
1008
+ }, Lt = /* @__PURE__ */ Object.assign(Pt, {
1009
1009
  props: {
1010
1010
  /**
1011
1011
  * 是否显示折叠按钮
@@ -1016,29 +1016,29 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1016
1016
  }
1017
1017
  },
1018
1018
  emits: ["on-fold"],
1019
- setup(a, { emit: r }) {
1020
- const o = w(!1), d = () => {
1021
- o.value = !s(o), r("on-fold", o.value);
1019
+ setup(a, { emit: c }) {
1020
+ const o = B(!1), d = () => {
1021
+ o.value = !s(o), c("on-fold", o.value);
1022
1022
  };
1023
- return (i, l) => {
1024
- const c = g("el-button"), p = g("el-icon");
1025
- return u(), V("div", Wt, [
1026
- D(c, {
1023
+ return (_, n) => {
1024
+ const r = g("el-button"), E = g("el-icon");
1025
+ return u(), V("div", It, [
1026
+ D(r, {
1027
1027
  type: "primary",
1028
- icon: s(jt),
1029
- onClick: l[0] || (l[0] = (b) => i.$emit("on-search"))
1028
+ icon: s(Ut),
1029
+ onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
1030
1030
  }, {
1031
1031
  default: A(() => [
1032
- q("搜索")
1032
+ K("搜索")
1033
1033
  ]),
1034
1034
  _: 1
1035
1035
  }, 8, ["icon"]),
1036
- D(c, {
1037
- icon: s(Pt),
1038
- onClick: l[1] || (l[1] = (b) => i.$emit("on-clear"))
1036
+ D(r, {
1037
+ icon: s(kt),
1038
+ onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
1039
1039
  }, {
1040
1040
  default: A(() => [
1041
- q("清空")
1041
+ K("清空")
1042
1042
  ]),
1043
1043
  _: 1
1044
1044
  }, 8, ["icon"]),
@@ -1048,26 +1048,26 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1048
1048
  style: { color: "var(--el-color-primary)" },
1049
1049
  onClick: d
1050
1050
  }, [
1051
- q(j(o.value ? "收起" : "展开"), 1),
1052
- D(p, { color: "#409EFC" }, {
1051
+ K(j(o.value ? "收起" : "展开"), 1),
1052
+ D(E, { color: "#409EFC" }, {
1053
1053
  default: A(() => [
1054
- G(D(s(Ft), null, null, 512), [
1055
- [Z, o.value]
1054
+ G(D(s($t), null, null, 512), [
1055
+ [Q, o.value]
1056
1056
  ]),
1057
- G(D(s(gt), null, null, 512), [
1058
- [Z, !o.value]
1057
+ G(D(s(st), null, null, 512), [
1058
+ [Q, !o.value]
1059
1059
  ])
1060
1060
  ]),
1061
1061
  _: 1
1062
1062
  })
1063
- ])) : x("", !0)
1063
+ ])) : $("", !0)
1064
1064
  ]);
1065
1065
  };
1066
1066
  }
1067
- }), qt = /* @__PURE__ */ W(Kt, [["__scopeId", "data-v-b5796be8"]]);
1068
- const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt = { key: 1 }, ea = {
1067
+ }), zt = /* @__PURE__ */ St(Lt, [["__scopeId", "data-v-b5796be8"]]);
1068
+ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt = { key: 1 }, jt = {
1069
1069
  name: "BsgoalBaseSearch"
1070
- }, ta = /* @__PURE__ */ Object.assign(ea, {
1070
+ }, Wt = /* @__PURE__ */ Object.assign(jt, {
1071
1071
  props: {
1072
1072
  /**
1073
1073
  * >----------props----------<
@@ -1101,23 +1101,23 @@ const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt =
1101
1101
  }
1102
1102
  },
1103
1103
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1104
- setup(a, { emit: r }) {
1105
- const o = a, d = w(null), i = Ee.align, l = w({});
1106
- pe(() => {
1107
- const { configOptions: f } = o;
1108
- s(f).forEach((m) => {
1109
- const { value: y = "", prop: k = "", type: O = "" } = m;
1110
- [e.INPUT, e.INPUT_TEXT_AREA].includes(O), l.value[k] = y;
1104
+ setup(a, { emit: c }) {
1105
+ const o = a, d = B(null), _ = Ee.align, n = B({});
1106
+ he(() => {
1107
+ const { configOptions: v } = o;
1108
+ s(v).forEach((m) => {
1109
+ const { value: C = "", prop: k = "", type: O = "" } = m;
1110
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(O), n.value[k] = C;
1111
1111
  });
1112
1112
  });
1113
- const c = ue(() => {
1114
- const { configOptions: f } = o, T = s(f), m = {
1113
+ const r = oe(() => {
1114
+ const { configOptions: v } = o, T = s(v), m = {
1115
1115
  type: e.OPERATION
1116
1116
  };
1117
1117
  return [...T, m];
1118
- }), p = (f = "", T = "", m = "") => {
1118
+ }), E = (v = "", T = "", m = "") => {
1119
1119
  if (!m)
1120
- switch (f) {
1120
+ switch (v) {
1121
1121
  case e.INPUT:
1122
1122
  case e.INPUT_TEXT_AREA:
1123
1123
  return `请输入${T}`;
@@ -1138,9 +1138,9 @@ const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt =
1138
1138
  return ["开始月份", "结束月份"];
1139
1139
  }
1140
1140
  return m;
1141
- }, b = (f = "", T = "") => {
1141
+ }, b = (v = "", T = "") => {
1142
1142
  if (!T)
1143
- switch (f) {
1143
+ switch (v) {
1144
1144
  case e.WEEK:
1145
1145
  return "ww";
1146
1146
  case e.DATE:
@@ -1160,221 +1160,221 @@ const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt =
1160
1160
  return "YYYY-MM-DD HH:mm:ss";
1161
1161
  }
1162
1162
  return T;
1163
- }, $ = () => {
1164
- const f = s(l), { configOptions: T } = o, m = s(T);
1165
- for (const y of m) {
1166
- const { type: k = "", range: O = [], prop: M = "" } = y;
1163
+ }, y = () => {
1164
+ const v = s(n), { configOptions: T } = o, m = s(T);
1165
+ for (const C of m) {
1166
+ const { type: k = "", range: O = [], prop: M = "" } = C;
1167
1167
  if (k.endsWith("range") && O && O.length === 2) {
1168
- const { 0: P = "", 1: I = "" } = f[M], { 0: S = "", 1: K = "" } = O;
1169
- f[S] = P, f[K] = I;
1168
+ const { 0: P = "", 1: U = "" } = v[M], { 0: S = "", 1: X = "" } = O;
1169
+ v[S] = P, v[X] = U;
1170
1170
  }
1171
1171
  }
1172
- r("on-search", f);
1172
+ c("on-search", v);
1173
1173
  };
1174
- xe(() => {
1175
- $();
1174
+ Ce(() => {
1175
+ y();
1176
1176
  });
1177
- const B = () => {
1178
- d.value.resetFields(), r("on-clear", l.value);
1179
- }, N = Ce("transferFoldStatus"), C = w(!1), R = (f = !1) => {
1180
- C.value = f, N && (N.value = f), r("on-fold", C);
1181
- }, h = (f, T) => {
1182
- $();
1177
+ const x = () => {
1178
+ d.value.resetFields(), c("on-clear", n.value);
1179
+ }, N = $e("transferFoldStatus"), w = B(!1), R = (v = !1) => {
1180
+ w.value = v, N && (N.value = v), c("on-fold", w);
1181
+ }, h = (v, T) => {
1182
+ y();
1183
1183
  const m = {
1184
- type: f,
1184
+ type: v,
1185
1185
  prop: T,
1186
- value: l.value[T] || ""
1186
+ value: n.value[T] || ""
1187
1187
  };
1188
- r("on-change", m);
1188
+ c("on-change", m);
1189
1189
  };
1190
- return (f, T) => {
1191
- const m = g("el-input"), y = g("el-input-number"), k = g("el-radio"), O = g("el-radio-group"), M = g("el-option"), P = g("el-select"), I = g("el-slider"), S = g("el-switch"), K = g("el-date-picker"), ee = g("el-time-picker"), le = g("el-checkbox"), te = g("el-checkbox-group"), ie = g("el-form-item"), me = g("el-col"), ve = g("el-row"), L = g("el-form");
1192
- return u(), V("div", Jt, [
1193
- F("div", Qt, [
1194
- G((u(), E(L, {
1190
+ return (v, T) => {
1191
+ const m = g("el-input"), C = g("el-input-number"), k = g("el-radio"), O = g("el-radio-group"), M = g("el-option"), P = g("el-select"), U = g("el-slider"), S = g("el-switch"), X = g("el-date-picker"), Z = g("el-time-picker"), le = g("el-checkbox"), ee = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), L = g("el-form");
1192
+ return u(), V("div", Yt, [
1193
+ F("div", Ht, [
1194
+ G((u(), p(L, {
1195
1195
  ref_key: "EL_FORM_REF",
1196
1196
  ref: d,
1197
1197
  "label-suffix": ":",
1198
1198
  "show-message": !1,
1199
- model: l.value
1199
+ model: n.value
1200
1200
  }, {
1201
1201
  default: A(() => [
1202
- D(ve, null, {
1202
+ D(me, null, {
1203
1203
  default: A(() => [
1204
- (u(!0), V(U, null, X(s(c), ({
1205
- label: v = "",
1206
- prop: n = "",
1207
- type: _ = "text",
1204
+ (u(!0), V(I, null, W(s(r), ({
1205
+ label: f = "",
1206
+ prop: l = "",
1207
+ type: i = "text",
1208
1208
  placeholder: z = "",
1209
- readonly: ce = !1,
1209
+ readonly: se = !1,
1210
1210
  clearable: re = !0,
1211
- rows: _e = 2,
1212
- min: oe = 1,
1213
- max: J = 10,
1211
+ rows: ce = 2,
1212
+ min: ne = 1,
1213
+ max: q = 10,
1214
1214
  range: Y = [],
1215
- format: Q = ""
1216
- } = {}, ae) => G((u(), E(me, {
1217
- key: ae,
1215
+ format: J = ""
1216
+ } = {}, te) => G((u(), p(_e, {
1217
+ key: te,
1218
1218
  xs: 24,
1219
1219
  sm: 12,
1220
1220
  md: a.medium
1221
1221
  }, {
1222
1222
  default: A(() => [
1223
- D(ie, {
1224
- label: v,
1225
- prop: n
1223
+ D(de, {
1224
+ label: f,
1225
+ prop: l
1226
1226
  }, {
1227
1227
  default: A(() => [
1228
- ce ? (u(), V("div", Zt, j(l.value[n]), 1)) : (u(), V(U, { key: 0 }, [
1229
- _ === s(e).INPUT ? (u(), E(m, {
1228
+ se ? (u(), V("div", Gt, j(n.value[l]), 1)) : (u(), V(I, { key: 0 }, [
1229
+ i === s(e).INPUT ? (u(), p(m, {
1230
1230
  key: 0,
1231
- modelValue: l.value[n],
1232
- "onUpdate:modelValue": (t) => l.value[n] = t,
1233
- placeholder: p(_, v, z),
1231
+ modelValue: n.value[l],
1232
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1233
+ placeholder: E(i, f, z),
1234
1234
  clearable: re,
1235
- onChange: (t) => h(_, n)
1236
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
1237
- _ === s(e).INPUT_TEXT_AREA ? (u(), E(m, {
1235
+ onChange: (t) => h(i, l)
1236
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
1237
+ i === s(e).INPUT_TEXT_AREA ? (u(), p(m, {
1238
1238
  key: 1,
1239
- modelValue: l.value[n],
1240
- "onUpdate:modelValue": (t) => l.value[n] = t,
1239
+ modelValue: n.value[l],
1240
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1241
1241
  type: "textarea",
1242
- rows: _e,
1242
+ rows: ce,
1243
1243
  clearable: re,
1244
- placeholder: p(_, v, z),
1245
- onChange: (t) => h(_, n)
1246
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
1247
- _ === s(e).INPUT_NUMBER ? (u(), E(y, {
1244
+ placeholder: E(i, f, z),
1245
+ onChange: (t) => h(i, l)
1246
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1247
+ i === s(e).INPUT_NUMBER ? (u(), p(C, {
1248
1248
  key: 2,
1249
- modelValue: f.num,
1250
- "onUpdate:modelValue": T[0] || (T[0] = (t) => f.num = t),
1251
- min: oe,
1252
- max: J,
1249
+ modelValue: v.num,
1250
+ "onUpdate:modelValue": T[0] || (T[0] = (t) => v.num = t),
1251
+ min: ne,
1252
+ max: q,
1253
1253
  onChange: h
1254
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
1255
- _ === s(e).RADIO ? (u(), E(O, {
1254
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1255
+ i === s(e).RADIO ? (u(), p(O, {
1256
1256
  key: 3,
1257
- modelValue: l.value[n],
1258
- "onUpdate:modelValue": (t) => l.value[n] = t,
1259
- onChange: (t) => h(_, n)
1257
+ modelValue: n.value[l],
1258
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1259
+ onChange: (t) => h(i, l)
1260
1260
  }, {
1261
1261
  default: A(() => [
1262
- (u(!0), V(U, null, X(Y, (t, H) => (u(), E(k, {
1262
+ (u(!0), V(I, null, W(Y, (t, H) => (u(), p(k, {
1263
1263
  key: H,
1264
1264
  label: t.value
1265
1265
  }, {
1266
1266
  default: A(() => [
1267
- q(j(t.label), 1)
1267
+ K(j(t.label), 1)
1268
1268
  ]),
1269
1269
  _: 2
1270
1270
  }, 1032, ["label"]))), 128))
1271
1271
  ]),
1272
1272
  _: 2
1273
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1274
- _ === s(e).SELECT ? (u(), E(P, {
1273
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1274
+ i === s(e).SELECT ? (u(), p(P, {
1275
1275
  key: 4,
1276
- modelValue: l.value[n],
1277
- "onUpdate:modelValue": (t) => l.value[n] = t,
1278
- placeholder: p(_, v, z),
1279
- onChange: (t) => h(_, n)
1276
+ modelValue: n.value[l],
1277
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1278
+ placeholder: E(i, f, z),
1279
+ onChange: (t) => h(i, l)
1280
1280
  }, {
1281
1281
  default: A(() => [
1282
- (u(!0), V(U, null, X(Y, (t, H) => (u(), E(M, {
1282
+ (u(!0), V(I, null, W(Y, (t, H) => (u(), p(M, {
1283
1283
  key: H,
1284
1284
  label: t.label,
1285
1285
  value: t.value
1286
1286
  }, null, 8, ["label", "value"]))), 128))
1287
1287
  ]),
1288
1288
  _: 2
1289
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
1290
- _ === s(e).SLIDER ? (u(), E(I, {
1289
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1290
+ i === s(e).SLIDER ? (u(), p(U, {
1291
1291
  key: 5,
1292
- modelValue: l.value[n],
1293
- "onUpdate:modelValue": (t) => l.value[n] = t,
1294
- min: oe,
1295
- max: J,
1296
- onChange: (t) => h(_, n)
1297
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
1298
- _ === s(e).SWITCH ? (u(), E(S, {
1292
+ modelValue: n.value[l],
1293
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1294
+ min: ne,
1295
+ max: q,
1296
+ onChange: (t) => h(i, l)
1297
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1298
+ i === s(e).SWITCH ? (u(), p(S, {
1299
1299
  key: 6,
1300
- modelValue: l.value[n],
1301
- "onUpdate:modelValue": (t) => l.value[n] = t,
1300
+ modelValue: n.value[l],
1301
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1302
1302
  "active-value": Y[0] || !0,
1303
1303
  "inactive-value": Y[1] || !1,
1304
- onChange: (t) => h(_, n)
1305
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
1304
+ onChange: (t) => h(i, l)
1305
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1306
1306
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
1307
- _
1308
- ) ? (u(), E(K, {
1307
+ i
1308
+ ) ? (u(), p(X, {
1309
1309
  key: 7,
1310
- modelValue: l.value[n],
1311
- "onUpdate:modelValue": (t) => l.value[n] = t,
1312
- format: b(_, Q),
1313
- "value-format": b(_, Q),
1314
- type: _,
1315
- placeholder: p(_, v, z),
1316
- onChange: (t) => h(_, n)
1317
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
1310
+ modelValue: n.value[l],
1311
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1312
+ format: b(i, J),
1313
+ "value-format": b(i, J),
1314
+ type: i,
1315
+ placeholder: E(i, f, z),
1316
+ onChange: (t) => h(i, l)
1317
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1318
1318
  [
1319
1319
  s(e).DATE_RANGE,
1320
1320
  s(e).MONTH_RANGE,
1321
1321
  s(e).DATE_TIME_RANGE
1322
- ].includes(_) ? (u(), E(K, {
1322
+ ].includes(i) ? (u(), p(X, {
1323
1323
  key: 8,
1324
- modelValue: l.value[n],
1325
- "onUpdate:modelValue": (t) => l.value[n] = t,
1326
- type: _,
1327
- "value-format": b(_, Q),
1328
- "start-placeholder": p(_, v, z)[0],
1329
- "end-placeholder": p(_, v, z)[1],
1330
- onChange: (t) => h(_, n)
1331
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1332
- [s(e).TIME].includes(_) ? (u(), E(ee, {
1324
+ modelValue: n.value[l],
1325
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1326
+ type: i,
1327
+ "value-format": b(i, J),
1328
+ "start-placeholder": E(i, f, z)[0],
1329
+ "end-placeholder": E(i, f, z)[1],
1330
+ onChange: (t) => h(i, l)
1331
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1332
+ [s(e).TIME].includes(i) ? (u(), p(Z, {
1333
1333
  key: 9,
1334
- modelValue: l.value[n],
1335
- "onUpdate:modelValue": (t) => l.value[n] = t,
1334
+ modelValue: n.value[l],
1335
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1336
1336
  "arrow-control": "",
1337
- "value-format": b(_, Q),
1338
- placeholder: p(_, v, z),
1339
- onChange: (t) => h(_, n)
1340
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
1341
- [s(e).TIME_RANGE].includes(_) ? (u(), E(ee, {
1337
+ "value-format": b(i, J),
1338
+ placeholder: E(i, f, z),
1339
+ onChange: (t) => h(i, l)
1340
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1341
+ [s(e).TIME_RANGE].includes(i) ? (u(), p(Z, {
1342
1342
  key: 10,
1343
- modelValue: l.value[n],
1344
- "onUpdate:modelValue": (t) => l.value[n] = t,
1343
+ modelValue: n.value[l],
1344
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1345
1345
  "is-range": "",
1346
- "value-format": b(_, Q),
1347
- "start-placeholder": p(_, v, z)[0],
1348
- "end-placeholder": p(_, v, z)[1],
1349
- onChange: (t) => h(_, n)
1350
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1351
- [s(e).CHECKBOX].includes(_) ? (u(), E(te, {
1346
+ "value-format": b(i, J),
1347
+ "start-placeholder": E(i, f, z)[0],
1348
+ "end-placeholder": E(i, f, z)[1],
1349
+ onChange: (t) => h(i, l)
1350
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1351
+ [s(e).CHECKBOX].includes(i) ? (u(), p(ee, {
1352
1352
  key: 11,
1353
- modelValue: l.value[n],
1354
- "onUpdate:modelValue": (t) => l.value[n] = t,
1355
- onChange: (t) => h(_, n)
1353
+ modelValue: n.value[l],
1354
+ "onUpdate:modelValue": (t) => n.value[l] = t,
1355
+ onChange: (t) => h(i, l)
1356
1356
  }, {
1357
1357
  default: A(() => [
1358
- (u(!0), V(U, null, X(Y, (t, H) => (u(), E(le, {
1358
+ (u(!0), V(I, null, W(Y, (t, H) => (u(), p(le, {
1359
1359
  key: H,
1360
1360
  label: t.value
1361
1361
  }, {
1362
1362
  default: A(() => [
1363
- q(j(t.label), 1)
1363
+ K(j(t.label), 1)
1364
1364
  ]),
1365
1365
  _: 2
1366
1366
  }, 1032, ["label"]))), 128))
1367
1367
  ]),
1368
1368
  _: 2
1369
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1370
- [].includes(_) ? (u(), V(U, { key: 12 }, [], 64)) : x("", !0),
1371
- [s(e).OPERATION].includes(_) ? (u(), E(qt, {
1369
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1370
+ [].includes(i) ? (u(), V(I, { key: 12 }, [], 64)) : $("", !0),
1371
+ [s(e).OPERATION].includes(i) ? (u(), p(zt, {
1372
1372
  key: 13,
1373
- fold: ae >= 7,
1374
- onOnSearch: $,
1375
- onOnClear: B,
1373
+ fold: te >= 7,
1374
+ onOnSearch: y,
1375
+ onOnClear: x,
1376
1376
  onOnFold: R
1377
- }, null, 8, ["fold"])) : x("", !0)
1377
+ }, null, 8, ["fold"])) : $("", !0)
1378
1378
  ], 64))
1379
1379
  ]),
1380
1380
  _: 2
@@ -1382,7 +1382,7 @@ const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt =
1382
1382
  ]),
1383
1383
  _: 2
1384
1384
  }, 1032, ["md"])), [
1385
- [Z, ae < 7 || _ === s(e).OPERATION || ae >= 7 && C.value]
1385
+ [Q, te < 7 || i === s(e).OPERATION || te >= 7 && w.value]
1386
1386
  ])), 128))
1387
1387
  ]),
1388
1388
  _: 1
@@ -1390,17 +1390,17 @@ const Jt = { class: "bsgoal-base-search" }, Qt = { class: "base_search" }, Zt =
1390
1390
  ]),
1391
1391
  _: 1
1392
1392
  }, 8, ["model"])), [
1393
- [s(i)]
1393
+ [s(_)]
1394
1394
  ])
1395
1395
  ]),
1396
- D(Te)
1396
+ D(be)
1397
1397
  ]);
1398
1398
  };
1399
1399
  }
1400
- }), aa = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-c4e64d40"]]);
1401
- const na = { class: "bsgoal-base-search-table" }, la = { class: "base_search_table" }, oa = {
1400
+ });
1401
+ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_table" }, qt = {
1402
1402
  name: "BsgoalBaseSearchTable"
1403
- }, ua = /* @__PURE__ */ Object.assign(oa, {
1403
+ }, Jt = /* @__PURE__ */ Object.assign(qt, {
1404
1404
  props: {
1405
1405
  /**
1406
1406
  * >----------props----------<
@@ -1472,64 +1472,64 @@ const na = { class: "bsgoal-base-search-table" }, la = { class: "base_search_tab
1472
1472
  }
1473
1473
  },
1474
1474
  setup(a) {
1475
- const r = a, o = w(!1);
1476
- Fe("transferFoldStatus", o);
1477
- const d = s(r.configOptions), i = ue(() => d), l = ue(() => d), c = Me(), p = w(Object.keys(c)), b = w(null), $ = (B) => {
1478
- b.value.refreshList(B);
1475
+ const c = a, o = B(!1);
1476
+ ke("transferFoldStatus", o);
1477
+ const d = s(c.configOptions), _ = oe(() => d), n = oe(() => d), r = Oe(), E = B(Object.keys(r)), b = B(null), y = (x) => {
1478
+ b.value.refreshList(x);
1479
1479
  };
1480
- return (B, N) => (u(), V("div", na, [
1481
- F("div", la, [
1482
- D(aa, {
1483
- "config-options": s(i),
1484
- onOnSearch: $,
1485
- onOnClear: $
1480
+ return (x, N) => (u(), V("div", Xt, [
1481
+ F("div", Kt, [
1482
+ D(Wt, {
1483
+ "config-options": s(_),
1484
+ onOnSearch: y,
1485
+ onOnClear: y
1486
1486
  }, null, 8, ["config-options"]),
1487
- D($e, {
1487
+ D(we, {
1488
1488
  ref_key: "BSGOAL_BASE_TABLE_REF",
1489
1489
  ref: b,
1490
1490
  operationWidth: a.operationWidth,
1491
- "config-options": s(l),
1491
+ "config-options": s(n),
1492
1492
  data: a.tableData,
1493
1493
  selection: a.selection,
1494
1494
  operation: a.operation,
1495
1495
  fetch: a.fetch,
1496
1496
  call: a.call
1497
- }, Re({ _: 2 }, [
1498
- X(p.value, (C) => ({
1499
- name: C,
1497
+ }, Ne({ _: 2 }, [
1498
+ W(E.value, (w) => ({
1499
+ name: w,
1500
1500
  fn: A(({ row: R = {} }) => [
1501
- de(B.$slots, C, { row: R }, void 0, !0)
1501
+ ie(x.$slots, w, { row: R })
1502
1502
  ])
1503
1503
  }))
1504
1504
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "fetch", "call"])
1505
1505
  ])
1506
1506
  ]));
1507
1507
  }
1508
- }), sa = /* @__PURE__ */ W(ua, [["__scopeId", "data-v-9ec9045a"]]);
1509
- const ca = { class: "bsgoal-base-tree-fold" }, ra = {
1508
+ });
1509
+ const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1510
1510
  name: "BsgoalBaseTreeFold"
1511
- }, _a = /* @__PURE__ */ Object.assign(ra, {
1511
+ }, ea = /* @__PURE__ */ Object.assign(Zt, {
1512
1512
  props: ["modelValue"],
1513
1513
  emits: ["update:modelValue"],
1514
- setup(a, { emit: r }) {
1515
- let o = w(!0);
1514
+ setup(a, { emit: c }) {
1515
+ let o = B(!0);
1516
1516
  const d = () => {
1517
- o.value = !o.value, r("update:modelValue", o.value);
1517
+ o.value = !o.value, c("update:modelValue", o.value);
1518
1518
  };
1519
- return (i, l) => {
1520
- const c = g("el-icon");
1521
- return u(), V("div", ca, [
1519
+ return (_, n) => {
1520
+ const r = g("el-icon");
1521
+ return u(), V("div", Qt, [
1522
1522
  F("div", {
1523
- class: he(["base_tree_fold", { "base_tree_fold--hide": !s(o) }]),
1523
+ class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(o) }]),
1524
1524
  onClick: d
1525
1525
  }, [
1526
- D(c, { color: "#fff" }, {
1526
+ D(r, { color: "#fff" }, {
1527
1527
  default: A(() => [
1528
- G(D(s(Vt), null, null, 512), [
1529
- [Z, s(o)]
1528
+ G(D(s(mt), null, null, 512), [
1529
+ [Q, s(o)]
1530
1530
  ]),
1531
- G(D(s(Bt), null, null, 512), [
1532
- [Z, !s(o)]
1531
+ G(D(s(pt), null, null, 512), [
1532
+ [Q, !s(o)]
1533
1533
  ])
1534
1534
  ]),
1535
1535
  _: 1
@@ -1538,10 +1538,10 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
1538
1538
  ]);
1539
1539
  };
1540
1540
  }
1541
- }), da = /* @__PURE__ */ W(_a, [["__scopeId", "data-v-b5171812"]]);
1542
- const ia = { class: "bsgoal-base-tree" }, ma = { class: "base_tree" }, va = { class: "base_tree_main" }, fa = {
1541
+ });
1542
+ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { class: "base_tree_main" }, na = {
1543
1543
  name: "BsgoalBaseTree"
1544
- }, ga = /* @__PURE__ */ Object.assign(fa, {
1544
+ }, oa = /* @__PURE__ */ Object.assign(na, {
1545
1545
  props: {
1546
1546
  /**
1547
1547
  * 树结构 的下边距
@@ -1594,54 +1594,54 @@ const ia = { class: "bsgoal-base-tree" }, ma = { class: "base_tree" }, va = { cl
1594
1594
  }
1595
1595
  },
1596
1596
  emits: ["on-click"],
1597
- setup(a, { emit: r }) {
1598
- const o = a, d = Ee.height, i = w(""), l = w(null);
1599
- se(i, (B) => {
1600
- l.value.filter(B);
1597
+ setup(a, { emit: c }) {
1598
+ const o = a, d = Ee.height, _ = B(""), n = B(null);
1599
+ ue(_, (x) => {
1600
+ n.value.filter(x);
1601
1601
  });
1602
- const c = (B, N) => B ? N.label.includes(B) : !0, p = w(!0), b = (B, N, C, R) => {
1603
- r("on-click", B, N, C, R);
1604
- }, $ = async (B, N, C) => {
1605
- if (B.level === 0) {
1606
- const R = await C.initNode(B);
1602
+ const r = (x, N) => x ? N.label.includes(x) : !0, E = B(!0), b = (x, N, w, R) => {
1603
+ c("on-click", x, N, w, R);
1604
+ }, y = async (x, N, w) => {
1605
+ if (x.level === 0) {
1606
+ const R = await w.initNode(x);
1607
1607
  return N(R || []);
1608
1608
  } else {
1609
- const R = await C.lazyLoad(B);
1609
+ const R = await w.lazyLoad(x);
1610
1610
  N(R || []);
1611
1611
  }
1612
1612
  };
1613
- return (B, N) => {
1614
- const C = g("el-input"), R = g("el-tree");
1615
- return u(), V("div", ia, [
1616
- G((u(), V("div", ma, [
1617
- G(F("div", va, [
1618
- D(C, {
1619
- modelValue: i.value,
1620
- "onUpdate:modelValue": N[0] || (N[0] = (h) => i.value = h),
1613
+ return (x, N) => {
1614
+ const w = g("el-input"), R = g("el-tree");
1615
+ return u(), V("div", ta, [
1616
+ G((u(), V("div", aa, [
1617
+ G(F("div", la, [
1618
+ D(w, {
1619
+ modelValue: _.value,
1620
+ "onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
1621
1621
  class: "base_tree_main_input",
1622
1622
  placeholder: "输入关键字过滤"
1623
1623
  }, null, 8, ["modelValue"]),
1624
1624
  D(R, {
1625
1625
  ref_key: "EL_TREE_REF",
1626
- ref: l,
1626
+ ref: n,
1627
1627
  lazy: "",
1628
1628
  "highlight-current": "",
1629
1629
  "empty-text": "暂无数据",
1630
- load: (h, f) => $(h, f, o),
1630
+ load: (h, v) => y(h, v, o),
1631
1631
  "expand-on-click-node": !1,
1632
1632
  props: a.treeProps,
1633
- "filter-node-method": c,
1633
+ "filter-node-method": r,
1634
1634
  onNodeClick: b
1635
1635
  }, null, 8, ["load", "props"])
1636
1636
  ], 512), [
1637
- [Z, p.value]
1637
+ [Q, E.value]
1638
1638
  ]),
1639
- G(D(Te, { vertical: "" }, null, 512), [
1640
- [Z, p.value]
1639
+ G(D(be, { vertical: "" }, null, 512), [
1640
+ [Q, E.value]
1641
1641
  ]),
1642
- D(da, {
1643
- modelValue: p.value,
1644
- "onUpdate:modelValue": N[1] || (N[1] = (h) => p.value = h)
1642
+ D(ea, {
1643
+ modelValue: E.value,
1644
+ "onUpdate:modelValue": N[1] || (N[1] = (h) => E.value = h)
1645
1645
  }, null, 8, ["modelValue"])
1646
1646
  ])), [
1647
1647
  [s(d), a.gasket]
@@ -1649,10 +1649,10 @@ const ia = { class: "bsgoal-base-tree" }, ma = { class: "base_tree" }, va = { cl
1649
1649
  ]);
1650
1650
  };
1651
1651
  }
1652
- }), ha = /* @__PURE__ */ W(ga, [["__scopeId", "data-v-35fba25c"]]);
1653
- const pa = { class: "bsgoal-base-dialog" }, Ea = { class: "base_dialog" }, ba = { class: "base_dialog_header" }, Ta = { class: "base_dialog_content" }, Va = { class: "base_dialog_footer" }, Aa = {
1652
+ });
1653
+ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra = { class: "base_dialog_header" }, ca = { class: "base_dialog_content" }, ia = { class: "base_dialog_footer" }, da = {
1654
1654
  name: "BsgoalBaseDialog"
1655
- }, ya = /* @__PURE__ */ Object.assign(Aa, {
1655
+ }, _a = /* @__PURE__ */ Object.assign(da, {
1656
1656
  props: {
1657
1657
  /**
1658
1658
  * 弹窗状态
@@ -1684,53 +1684,53 @@ const pa = { class: "bsgoal-base-dialog" }, Ea = { class: "base_dialog" }, ba =
1684
1684
  }
1685
1685
  },
1686
1686
  emits: ["update:modelValue", "on-confirm"],
1687
- setup(a, { emit: r }) {
1688
- const o = a, d = w(o.modelValue.value), i = () => {
1687
+ setup(a, { emit: c }) {
1688
+ const o = a, d = B(o.modelValue.value), _ = () => {
1689
1689
  d.value = !1;
1690
- }, l = () => {
1691
- d.value = !1, r("on-confirm");
1690
+ }, n = () => {
1691
+ d.value = !1, c("on-confirm");
1692
1692
  };
1693
- return se(
1693
+ return ue(
1694
1694
  () => o.modelValue,
1695
- (c) => {
1696
- d.value = c;
1695
+ (r) => {
1696
+ d.value = r;
1697
1697
  }
1698
- ), se(d, (c) => {
1699
- r("update:modelValue", c);
1700
- }), (c, p) => {
1701
- const b = g("el-button"), $ = g("el-dialog");
1702
- return u(), V("div", pa, [
1703
- F("div", Ea, [
1704
- D($, {
1698
+ ), ue(d, (r) => {
1699
+ c("update:modelValue", r);
1700
+ }), (r, E) => {
1701
+ const b = g("el-button"), y = g("el-dialog");
1702
+ return u(), V("div", ua, [
1703
+ F("div", sa, [
1704
+ D(y, {
1705
1705
  modelValue: d.value,
1706
- "onUpdate:modelValue": p[0] || (p[0] = (B) => d.value = B),
1706
+ "onUpdate:modelValue": E[0] || (E[0] = (x) => d.value = x),
1707
1707
  "custom-class": "bsgoal_base_dialog_main"
1708
1708
  }, {
1709
1709
  header: A(() => [
1710
- F("div", ba, j(a.title), 1)
1710
+ F("div", ra, j(a.title), 1)
1711
1711
  ]),
1712
1712
  footer: A(() => [
1713
- F("span", Va, [
1714
- D(b, { onClick: i }, {
1713
+ F("span", ia, [
1714
+ D(b, { onClick: _ }, {
1715
1715
  default: A(() => [
1716
- q(j(a.cancelTxt), 1)
1716
+ K(j(a.cancelTxt), 1)
1717
1717
  ]),
1718
1718
  _: 1
1719
1719
  }),
1720
1720
  D(b, {
1721
1721
  type: "primary",
1722
- onClick: l
1722
+ onClick: n
1723
1723
  }, {
1724
1724
  default: A(() => [
1725
- q(j(a.confirmTxt), 1)
1725
+ K(j(a.confirmTxt), 1)
1726
1726
  ]),
1727
1727
  _: 1
1728
1728
  })
1729
1729
  ])
1730
1730
  ]),
1731
1731
  default: A(() => [
1732
- F("div", Ta, [
1733
- de(c.$slots, "default", {}, void 0, !0)
1732
+ F("div", ca, [
1733
+ ie(r.$slots, "default")
1734
1734
  ])
1735
1735
  ]),
1736
1736
  _: 3
@@ -1739,25 +1739,25 @@ const pa = { class: "bsgoal-base-dialog" }, Ea = { class: "base_dialog" }, ba =
1739
1739
  ]);
1740
1740
  };
1741
1741
  }
1742
- }), xa = /* @__PURE__ */ W(ya, [["__scopeId", "data-v-435caf75"]]), wa = e, Da = be, ka = {
1743
- install(a, r = {}) {
1744
- const { exclude: o = [] } = r, d = {
1745
- BsgoalBaseForm: Ye,
1746
- BsgoalBaseTable: $e,
1747
- BsgoalBaseLine: Te,
1748
- BsgoalBaseSearchTable: sa,
1749
- BsgoalBaseTree: ha,
1750
- BsgoalBaseDialog: xa
1742
+ }), ga = e, ha = pe, Ea = {
1743
+ install(a, c = {}) {
1744
+ const { exclude: o = [] } = c, d = {
1745
+ BsgoalBaseForm: Ie,
1746
+ BsgoalBaseTable: we,
1747
+ BsgoalBaseLine: be,
1748
+ BsgoalBaseSearchTable: Jt,
1749
+ BsgoalBaseTree: oa,
1750
+ BsgoalBaseDialog: _a
1751
1751
  };
1752
- for (const [i, l] of Object.entries(d))
1753
- o.includes(i) || a.component(i, l);
1752
+ for (const [_, n] of Object.entries(d))
1753
+ o.includes(_) || a.component(_, n);
1754
1754
  },
1755
1755
  enumType: e,
1756
- useFetch: be
1756
+ useFetch: pe
1757
1757
  };
1758
1758
  export {
1759
- wa as EnumType,
1760
- ka as default,
1761
- Da as useFetchApi
1759
+ ga as EnumType,
1760
+ Ea as default,
1761
+ ha as useFetchApi
1762
1762
  };
1763
1763
  //# sourceMappingURL=index.mjs.map