@bsgoal/common 1.8.4 → 1.8.6
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/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var Ve = Object.getOwnPropertySymbols;
|
|
3
|
+
var Oe = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var $e = (e, s, a) => s in e ? De(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a, Ee = (e, s) => {
|
|
5
5
|
for (var a in s || (s = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var a of
|
|
9
|
-
|
|
6
|
+
Oe.call(s, a) && $e(e, a, s[a]);
|
|
7
|
+
if (Ve)
|
|
8
|
+
for (var a of Ve(s))
|
|
9
|
+
Ie.call(s, a) && $e(e, a, s[a]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as Z, resolveComponent as
|
|
12
|
+
import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as E, createVNode as C, withCtx as A, renderSlot as J, createTextVNode as G, toDisplayString as z, ref as w, watchEffect as he, unref as c, createElementVNode as O, withDirectives as K, createBlock as y, Fragment as P, renderList as Q, createCommentVNode as $, nextTick as Ce, inject as Me, watch as me, resolveDirective as Re, normalizeClass as ge, vShow as te, isProxy as Fe, toRaw as Ue, provide as Le, useSlots as Be, createSlots as Pe, normalizeStyle as ze } from "vue";
|
|
13
13
|
import { ElMessage as je } from "element-plus";
|
|
14
14
|
const l = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -33,8 +33,8 @@ const l = {
|
|
|
33
33
|
OPERATION: "operation",
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
|
-
let
|
|
37
|
-
const
|
|
36
|
+
let be = null;
|
|
37
|
+
const ye = (e) => {
|
|
38
38
|
const s = [], a = [], i = (u = []) => {
|
|
39
39
|
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
40
40
|
u.forEach((_) => {
|
|
@@ -54,24 +54,24 @@ const be = (e) => {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
be && clearTimeout(be), be = setTimeout(() => {
|
|
58
58
|
r(), i(s), i(a);
|
|
59
59
|
}, 50);
|
|
60
|
-
},
|
|
60
|
+
}, xe = {
|
|
61
61
|
/**
|
|
62
62
|
* 表单自动左对齐
|
|
63
63
|
*/
|
|
64
64
|
align: {
|
|
65
65
|
created(e) {
|
|
66
66
|
window.addEventListener("resize", () => {
|
|
67
|
-
|
|
67
|
+
ye(e);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
mounted(e) {
|
|
71
|
-
|
|
71
|
+
ye(e);
|
|
72
72
|
},
|
|
73
73
|
unmounted(e) {
|
|
74
|
-
window.removeEventListener("resize",
|
|
74
|
+
window.removeEventListener("resize", ye(e));
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
@@ -84,9 +84,9 @@ const be = (e) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
|
-
},
|
|
89
|
+
}, we = /* @__PURE__ */ Object.assign(Ye, {
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* 文字提示内容
|
|
@@ -136,8 +136,8 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
136
136
|
return r.length < u || !u;
|
|
137
137
|
});
|
|
138
138
|
return (r, u) => {
|
|
139
|
-
const t =
|
|
140
|
-
return n(),
|
|
139
|
+
const t = v("el-tooltip");
|
|
140
|
+
return n(), E("div", Ge, [
|
|
141
141
|
C(t, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
@@ -146,9 +146,9 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
146
146
|
content: e.content,
|
|
147
147
|
disabled: i.value
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
149
|
+
default: A(() => [
|
|
150
150
|
J(r.$slots, "default", {}, () => [
|
|
151
|
-
G(
|
|
151
|
+
G(z(a.value), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
@@ -157,9 +157,9 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
const
|
|
160
|
+
const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { key: 1 }, Qe = {
|
|
161
161
|
name: "BsgoalBaseForm"
|
|
162
|
-
},
|
|
162
|
+
}, Ze = /* @__PURE__ */ Object.assign(Qe, {
|
|
163
163
|
props: {
|
|
164
164
|
/**
|
|
165
165
|
* >----------props----------<
|
|
@@ -229,29 +229,29 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
229
229
|
},
|
|
230
230
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
231
231
|
setup(e, { expose: s, emit: a }) {
|
|
232
|
-
const i = e, r =
|
|
233
|
-
|
|
234
|
-
const { configOptions:
|
|
232
|
+
const i = e, r = w(null), u = xe.align, t = w(i.bindModel);
|
|
233
|
+
he(() => {
|
|
234
|
+
const { configOptions: p, values: x } = i, T = c(p), B = c(x);
|
|
235
235
|
T.forEach((m) => {
|
|
236
|
-
const { value: I = "", prop:
|
|
236
|
+
const { value: I = "", prop: N = "", type: L = "" } = m;
|
|
237
237
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(L);
|
|
238
|
-
const F = c(t)[
|
|
239
|
-
|
|
238
|
+
const F = c(t)[N];
|
|
239
|
+
t.value[N] = F || B[N] || I;
|
|
240
240
|
});
|
|
241
241
|
});
|
|
242
242
|
const d = Z(() => {
|
|
243
|
-
const { configOptions:
|
|
244
|
-
return c(
|
|
243
|
+
const { configOptions: p } = i;
|
|
244
|
+
return c(p).map((B) => {
|
|
245
245
|
let { rules: m = !1, label: I = "" } = B;
|
|
246
|
-
const
|
|
247
|
-
return m && (typeof m == "boolean" ? m = [
|
|
246
|
+
const N = { required: !0, message: `${I}不能为空`, trigger: "blur" };
|
|
247
|
+
return m && (typeof m == "boolean" ? m = [N] : Array.isArray(m) ? m = [N, ...m] : m = [N, m]), B.rules = m, B;
|
|
248
248
|
});
|
|
249
|
-
}), _ = (
|
|
249
|
+
}), _ = (p = "", x = "", T = "") => {
|
|
250
250
|
if (!T)
|
|
251
|
-
switch (
|
|
251
|
+
switch (p) {
|
|
252
252
|
case l.INPUT:
|
|
253
253
|
case l.INPUT_TEXT_AREA:
|
|
254
|
-
return `请输入${
|
|
254
|
+
return `请输入${x}`;
|
|
255
255
|
case l.SELECT:
|
|
256
256
|
case l.DATE:
|
|
257
257
|
case l.WEEK:
|
|
@@ -259,7 +259,7 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
259
259
|
case l.YEAR:
|
|
260
260
|
case l.DATE_TIME:
|
|
261
261
|
case l.TIME:
|
|
262
|
-
return `请选择${
|
|
262
|
+
return `请选择${x}`;
|
|
263
263
|
case l.DATE_RANGE:
|
|
264
264
|
case l.DATE_TIME_RANGE:
|
|
265
265
|
return ["开始日期", "结束日期"];
|
|
@@ -269,9 +269,9 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
269
269
|
return ["开始月份", "结束月份"];
|
|
270
270
|
}
|
|
271
271
|
return T;
|
|
272
|
-
}, V = (
|
|
273
|
-
if (!
|
|
274
|
-
switch (
|
|
272
|
+
}, V = (p = "", x = "") => {
|
|
273
|
+
if (!x)
|
|
274
|
+
switch (p) {
|
|
275
275
|
case l.WEEK:
|
|
276
276
|
return "ww";
|
|
277
277
|
case l.DATE:
|
|
@@ -290,34 +290,34 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
290
290
|
case l.DATE_TIME_RANGE:
|
|
291
291
|
return "YYYY-MM-DD HH:mm:ss";
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return x;
|
|
294
294
|
}, M = () => {
|
|
295
|
-
const
|
|
295
|
+
const p = c(t), { configOptions: x } = i, T = c(x);
|
|
296
296
|
for (const B of T) {
|
|
297
|
-
const { type: m = "", range: I = [], prop:
|
|
297
|
+
const { type: m = "", range: I = [], prop: N = "" } = B;
|
|
298
298
|
if (m.endsWith("range") && I && I.length === 2) {
|
|
299
|
-
const { 0: L = "", 1: F = "" } =
|
|
300
|
-
|
|
299
|
+
const { 0: L = "", 1: F = "" } = p[N], { 0: Y = "", 1: R = "" } = I;
|
|
300
|
+
p[Y] = L, p[R] = F;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
return a("on-form",
|
|
303
|
+
return a("on-form", p), p;
|
|
304
304
|
}, S = () => {
|
|
305
305
|
r.value.resetFields(), a("on-clear", t.value);
|
|
306
|
-
}, k = (
|
|
306
|
+
}, k = (p, x) => {
|
|
307
307
|
const T = {
|
|
308
|
-
type:
|
|
309
|
-
prop:
|
|
310
|
-
value: t.value[
|
|
308
|
+
type: p,
|
|
309
|
+
prop: x,
|
|
310
|
+
value: t.value[x] || ""
|
|
311
311
|
};
|
|
312
312
|
a("on-change", T);
|
|
313
|
-
}, U = (
|
|
313
|
+
}, U = (p = () => {
|
|
314
314
|
}) => {
|
|
315
|
-
r.value.validate((
|
|
316
|
-
if (
|
|
315
|
+
r.value.validate((x = !1, T = {}) => {
|
|
316
|
+
if (x) {
|
|
317
317
|
const B = M();
|
|
318
|
-
|
|
318
|
+
p(B);
|
|
319
319
|
} else {
|
|
320
|
-
|
|
320
|
+
p(!1);
|
|
321
321
|
const B = Object.keys(T)[0], {
|
|
322
322
|
[B]: {
|
|
323
323
|
0: { message: m = "" }
|
|
@@ -326,13 +326,13 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
326
326
|
je.error(m);
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
|
-
}, D = (
|
|
330
|
-
const { 0: T = {}, 1: B = {} } =
|
|
331
|
-
switch (
|
|
329
|
+
}, D = (p = [], x = "") => {
|
|
330
|
+
const { 0: T = {}, 1: B = {} } = p, { value: m = !1, label: I = "" } = T, { value: N = !1, label: L = "" } = B;
|
|
331
|
+
switch (x) {
|
|
332
332
|
case "active-value":
|
|
333
333
|
return m;
|
|
334
334
|
case "inactive-value":
|
|
335
|
-
return
|
|
335
|
+
return N;
|
|
336
336
|
case "active-text":
|
|
337
337
|
return I;
|
|
338
338
|
case "inactive-text":
|
|
@@ -343,200 +343,204 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
343
343
|
triggerOperationClear: S,
|
|
344
344
|
triggerOperationForm: M,
|
|
345
345
|
validateForm: U
|
|
346
|
-
}), (
|
|
347
|
-
const T =
|
|
348
|
-
return n(),
|
|
349
|
-
O("div",
|
|
350
|
-
K((n(),
|
|
346
|
+
}), (p, x) => {
|
|
347
|
+
const T = v("el-input"), B = v("el-input-number"), m = v("el-radio"), I = v("el-radio-group"), N = v("el-option"), L = v("el-select"), F = v("el-slider"), Y = v("el-switch"), R = v("el-date-picker"), H = v("el-time-picker"), ee = v("el-checkbox"), ae = v("el-checkbox-group"), le = v("el-form-item"), re = v("el-col"), ie = v("el-row"), ue = v("el-form");
|
|
348
|
+
return n(), E("div", He, [
|
|
349
|
+
O("div", We, [
|
|
350
|
+
K((n(), y(ue, {
|
|
351
351
|
ref_key: "EL_FORM_REF",
|
|
352
352
|
ref: r,
|
|
353
353
|
"label-suffix": ":",
|
|
354
354
|
model: t.value
|
|
355
355
|
}, {
|
|
356
|
-
default:
|
|
357
|
-
C(
|
|
358
|
-
default:
|
|
359
|
-
(n(!0),
|
|
356
|
+
default: A(() => [
|
|
357
|
+
C(ie, null, {
|
|
358
|
+
default: A(() => [
|
|
359
|
+
(n(!0), E(P, null, Q(d.value, ({
|
|
360
360
|
label: W = "",
|
|
361
|
-
prop:
|
|
361
|
+
prop: f = "",
|
|
362
362
|
type: o = "text",
|
|
363
363
|
placeholder: g = "",
|
|
364
|
-
readonly:
|
|
365
|
-
clearable:
|
|
366
|
-
rows:
|
|
367
|
-
min:
|
|
368
|
-
max:
|
|
364
|
+
readonly: j = e.readonlys,
|
|
365
|
+
clearable: fe = !0,
|
|
366
|
+
rows: ve = 2,
|
|
367
|
+
min: pe = 1,
|
|
368
|
+
max: de = 10,
|
|
369
369
|
range: q = [],
|
|
370
370
|
format: X = "",
|
|
371
371
|
rules: ne = [],
|
|
372
|
-
limit:
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
limit: ce = e.limits,
|
|
373
|
+
length: h = 255
|
|
374
|
+
} = {}, oe) => (n(), y(re, {
|
|
375
|
+
key: oe,
|
|
375
376
|
xs: 24,
|
|
376
377
|
sm: 24,
|
|
377
378
|
md: e.medium
|
|
378
379
|
}, {
|
|
379
|
-
default:
|
|
380
|
+
default: A(() => [
|
|
380
381
|
C(le, {
|
|
381
382
|
label: W,
|
|
382
|
-
prop:
|
|
383
|
+
prop: f,
|
|
383
384
|
rules: ne
|
|
384
385
|
}, {
|
|
385
|
-
default:
|
|
386
|
-
J(
|
|
387
|
-
option: { readonly:
|
|
386
|
+
default: A(() => [
|
|
387
|
+
J(p.$slots, [f], {
|
|
388
|
+
option: { readonly: j, value: t.value[f], values: t.value }
|
|
388
389
|
}, () => [
|
|
389
|
-
|
|
390
|
-
C(
|
|
391
|
-
content: t.value[
|
|
392
|
-
limit:
|
|
390
|
+
j ? (n(), E("div", Xe, [
|
|
391
|
+
C(we, {
|
|
392
|
+
content: t.value[f],
|
|
393
|
+
limit: ce,
|
|
393
394
|
none: e.none
|
|
394
395
|
}, null, 8, ["content", "limit", "none"])
|
|
395
|
-
])) : (n(),
|
|
396
|
-
o === c(l).INPUT ? (n(),
|
|
396
|
+
])) : (n(), E(P, { key: 0 }, [
|
|
397
|
+
o === c(l).INPUT ? (n(), y(T, {
|
|
397
398
|
key: 0,
|
|
398
|
-
modelValue: t.value[
|
|
399
|
-
"onUpdate:modelValue": (
|
|
399
|
+
modelValue: t.value[f],
|
|
400
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
400
401
|
placeholder: _(o, W, g),
|
|
401
|
-
clearable:
|
|
402
|
-
onChange: (
|
|
402
|
+
clearable: fe,
|
|
403
|
+
onChange: (b) => k(o, f)
|
|
403
404
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
404
|
-
o === c(l).INPUT_TEXT_AREA ? (n(),
|
|
405
|
+
o === c(l).INPUT_TEXT_AREA ? (n(), y(T, {
|
|
405
406
|
key: 1,
|
|
406
|
-
modelValue: t.value[
|
|
407
|
-
"onUpdate:modelValue": (
|
|
407
|
+
modelValue: t.value[f],
|
|
408
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
409
|
+
"show-word-limit": "",
|
|
408
410
|
type: "textarea",
|
|
409
|
-
|
|
410
|
-
|
|
411
|
+
autosize: { minRows: ve },
|
|
412
|
+
maxlength: h,
|
|
413
|
+
clearable: fe,
|
|
411
414
|
placeholder: _(o, W, g),
|
|
412
|
-
onChange: (
|
|
413
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "
|
|
414
|
-
o === c(l).INPUT_NUMBER ? (n(),
|
|
415
|
+
onChange: (b) => k(o, f)
|
|
416
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
417
|
+
o === c(l).INPUT_NUMBER ? (n(), y(B, {
|
|
415
418
|
key: 2,
|
|
416
|
-
modelValue:
|
|
417
|
-
"onUpdate:modelValue":
|
|
418
|
-
|
|
419
|
-
|
|
419
|
+
modelValue: t.value[f],
|
|
420
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
421
|
+
"controls-position": "right",
|
|
422
|
+
min: pe,
|
|
423
|
+
max: de,
|
|
420
424
|
onChange: k
|
|
421
|
-
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
422
|
-
o === c(l).RADIO ? (n(),
|
|
425
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : $("", !0),
|
|
426
|
+
o === c(l).RADIO ? (n(), y(I, {
|
|
423
427
|
key: 3,
|
|
424
|
-
modelValue: t.value[
|
|
425
|
-
"onUpdate:modelValue": (
|
|
426
|
-
onChange: (
|
|
428
|
+
modelValue: t.value[f],
|
|
429
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
430
|
+
onChange: (b) => k(o, f)
|
|
427
431
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
(n(!0),
|
|
430
|
-
key:
|
|
431
|
-
label:
|
|
432
|
+
default: A(() => [
|
|
433
|
+
(n(!0), E(P, null, Q(q, (b, _e) => (n(), y(m, {
|
|
434
|
+
key: _e,
|
|
435
|
+
label: b.value
|
|
432
436
|
}, {
|
|
433
|
-
default:
|
|
434
|
-
G(
|
|
437
|
+
default: A(() => [
|
|
438
|
+
G(z(b.label), 1)
|
|
435
439
|
]),
|
|
436
440
|
_: 2
|
|
437
441
|
}, 1032, ["label"]))), 128))
|
|
438
442
|
]),
|
|
439
443
|
_: 2
|
|
440
444
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
441
|
-
o === c(l).SELECT ? (n(),
|
|
445
|
+
o === c(l).SELECT ? (n(), y(L, {
|
|
442
446
|
key: 4,
|
|
443
|
-
modelValue: t.value[
|
|
444
|
-
"onUpdate:modelValue": (
|
|
447
|
+
modelValue: t.value[f],
|
|
448
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
445
449
|
placeholder: _(o, W, g),
|
|
446
|
-
onChange: (
|
|
450
|
+
onChange: (b) => k(o, f)
|
|
447
451
|
}, {
|
|
448
|
-
default:
|
|
449
|
-
(n(!0),
|
|
450
|
-
key:
|
|
451
|
-
label:
|
|
452
|
-
value:
|
|
452
|
+
default: A(() => [
|
|
453
|
+
(n(!0), E(P, null, Q(q, (b, _e) => (n(), y(N, {
|
|
454
|
+
key: _e,
|
|
455
|
+
label: b.label,
|
|
456
|
+
value: b.value
|
|
453
457
|
}, null, 8, ["label", "value"]))), 128))
|
|
454
458
|
]),
|
|
455
459
|
_: 2
|
|
456
460
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
457
|
-
o === c(l).SLIDER ? (n(),
|
|
461
|
+
o === c(l).SLIDER ? (n(), y(F, {
|
|
458
462
|
key: 5,
|
|
459
|
-
modelValue: t.value[
|
|
460
|
-
"onUpdate:modelValue": (
|
|
461
|
-
min:
|
|
462
|
-
max:
|
|
463
|
-
onChange: (
|
|
463
|
+
modelValue: t.value[f],
|
|
464
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
465
|
+
min: pe,
|
|
466
|
+
max: de,
|
|
467
|
+
onChange: (b) => k(o, f)
|
|
464
468
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
465
|
-
o === c(l).SWITCH ? (n(),
|
|
469
|
+
o === c(l).SWITCH ? (n(), y(Y, {
|
|
466
470
|
key: 6,
|
|
467
|
-
modelValue: t.value[
|
|
468
|
-
"onUpdate:modelValue": (
|
|
471
|
+
modelValue: t.value[f],
|
|
472
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
469
473
|
"active-value": D(q, "active-value"),
|
|
470
474
|
"inactive-value": D(q, "inactive-value"),
|
|
471
475
|
"active-text": D(q, "active-text"),
|
|
472
476
|
"inactive-text": D(q, "inactive-text"),
|
|
473
|
-
onChange: (
|
|
477
|
+
onChange: (b) => k(o, f)
|
|
474
478
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "onChange"])) : $("", !0),
|
|
475
479
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
476
480
|
o
|
|
477
|
-
) ? (n(),
|
|
481
|
+
) ? (n(), y(R, {
|
|
478
482
|
key: 7,
|
|
479
|
-
modelValue: t.value[
|
|
480
|
-
"onUpdate:modelValue": (
|
|
483
|
+
modelValue: t.value[f],
|
|
484
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
481
485
|
format: V(o, X),
|
|
482
486
|
"value-format": V(o, X),
|
|
483
487
|
type: o,
|
|
484
488
|
placeholder: _(o, W, g),
|
|
485
|
-
onChange: (
|
|
489
|
+
onChange: (b) => k(o, f)
|
|
486
490
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
487
491
|
[
|
|
488
492
|
c(l).DATE_RANGE,
|
|
489
493
|
c(l).MONTH_RANGE,
|
|
490
494
|
c(l).DATE_TIME_RANGE
|
|
491
|
-
].includes(o) ? (n(),
|
|
495
|
+
].includes(o) ? (n(), y(R, {
|
|
492
496
|
key: 8,
|
|
493
|
-
modelValue: t.value[
|
|
494
|
-
"onUpdate:modelValue": (
|
|
497
|
+
modelValue: t.value[f],
|
|
498
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
495
499
|
type: o,
|
|
496
500
|
"value-format": V(o, X),
|
|
497
501
|
"start-placeholder": _(o, W, g)[0],
|
|
498
502
|
"end-placeholder": _(o, W, g)[1],
|
|
499
|
-
onChange: (
|
|
503
|
+
onChange: (b) => k(o, f)
|
|
500
504
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
501
|
-
[c(l).TIME].includes(o) ? (n(),
|
|
505
|
+
[c(l).TIME].includes(o) ? (n(), y(H, {
|
|
502
506
|
key: 9,
|
|
503
|
-
modelValue: t.value[
|
|
504
|
-
"onUpdate:modelValue": (
|
|
507
|
+
modelValue: t.value[f],
|
|
508
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
505
509
|
"arrow-control": "",
|
|
506
510
|
"value-format": V(o, X),
|
|
507
511
|
placeholder: _(o, W, g),
|
|
508
|
-
onChange: (
|
|
512
|
+
onChange: (b) => k(o, f)
|
|
509
513
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
510
|
-
[c(l).TIME_RANGE].includes(o) ? (n(),
|
|
514
|
+
[c(l).TIME_RANGE].includes(o) ? (n(), y(H, {
|
|
511
515
|
key: 10,
|
|
512
|
-
modelValue: t.value[
|
|
513
|
-
"onUpdate:modelValue": (
|
|
516
|
+
modelValue: t.value[f],
|
|
517
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
514
518
|
"is-range": "",
|
|
515
519
|
"value-format": V(o, X),
|
|
516
520
|
"start-placeholder": _(o, W, g)[0],
|
|
517
521
|
"end-placeholder": _(o, W, g)[1],
|
|
518
|
-
onChange: (
|
|
522
|
+
onChange: (b) => k(o, f)
|
|
519
523
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
520
|
-
[c(l).CHECKBOX].includes(o) ? (n(),
|
|
524
|
+
[c(l).CHECKBOX].includes(o) ? (n(), y(ae, {
|
|
521
525
|
key: 11,
|
|
522
|
-
modelValue: t.value[
|
|
523
|
-
"onUpdate:modelValue": (
|
|
524
|
-
onChange: (
|
|
526
|
+
modelValue: t.value[f],
|
|
527
|
+
"onUpdate:modelValue": (b) => t.value[f] = b,
|
|
528
|
+
onChange: (b) => k(o, f)
|
|
525
529
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
(n(!0),
|
|
528
|
-
key:
|
|
529
|
-
label:
|
|
530
|
+
default: A(() => [
|
|
531
|
+
(n(!0), E(P, null, Q(q, (b, _e) => (n(), y(ee, {
|
|
532
|
+
key: _e,
|
|
533
|
+
label: b.value
|
|
530
534
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
G(
|
|
535
|
+
default: A(() => [
|
|
536
|
+
G(z(b.label), 1)
|
|
533
537
|
]),
|
|
534
538
|
_: 2
|
|
535
539
|
}, 1032, ["label"]))), 128))
|
|
536
540
|
]),
|
|
537
541
|
_: 2
|
|
538
542
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
539
|
-
[].includes(o) ? (n(),
|
|
543
|
+
[].includes(o) ? (n(), E(P, { key: 12 }, [], 64)) : $("", !0)
|
|
540
544
|
], 64))
|
|
541
545
|
])
|
|
542
546
|
]),
|
|
@@ -558,12 +562,12 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
558
562
|
};
|
|
559
563
|
}
|
|
560
564
|
});
|
|
561
|
-
const
|
|
565
|
+
const Ke = { class: "bsgoal-base-table-content" }, Je = { class: "base_table_content" }, qe = {
|
|
562
566
|
key: 1,
|
|
563
567
|
class: "base_table_table_txt"
|
|
564
|
-
},
|
|
568
|
+
}, et = {
|
|
565
569
|
name: "BsgoalBaseTableContent"
|
|
566
|
-
},
|
|
570
|
+
}, tt = /* @__PURE__ */ Object.assign(et, {
|
|
567
571
|
props: {
|
|
568
572
|
/**
|
|
569
573
|
* 数据
|
|
@@ -588,19 +592,19 @@ const Ze = { class: "bsgoal-base-table-content" }, Ke = { class: "base_table_con
|
|
|
588
592
|
}
|
|
589
593
|
},
|
|
590
594
|
setup(e) {
|
|
591
|
-
return (s, a) => (n(),
|
|
592
|
-
O("div",
|
|
593
|
-
e.tooltip ? (n(),
|
|
595
|
+
return (s, a) => (n(), E("div", Ke, [
|
|
596
|
+
O("div", Je, [
|
|
597
|
+
e.tooltip ? (n(), y(we, {
|
|
594
598
|
key: 0,
|
|
595
599
|
content: e.data,
|
|
596
600
|
limit: e.limit
|
|
597
|
-
}, null, 8, ["content", "limit"])) : (n(),
|
|
601
|
+
}, null, 8, ["content", "limit"])) : (n(), E("div", qe, z(e.data), 1))
|
|
598
602
|
])
|
|
599
603
|
]));
|
|
600
604
|
}
|
|
601
605
|
});
|
|
602
606
|
/*! Element Plus v2.3.4 */
|
|
603
|
-
var
|
|
607
|
+
var at = {
|
|
604
608
|
name: "zh-cn",
|
|
605
609
|
el: {
|
|
606
610
|
colorpicker: {
|
|
@@ -727,9 +731,9 @@ var tt = {
|
|
|
727
731
|
}
|
|
728
732
|
}
|
|
729
733
|
};
|
|
730
|
-
const
|
|
734
|
+
const lt = { class: "bsgoal-base-table-pagination" }, nt = { class: "base_table_pagination" }, ot = /* @__PURE__ */ O("span", null, "总数", -1), st = {
|
|
731
735
|
name: "BsgoalBaseTablePagination"
|
|
732
|
-
},
|
|
736
|
+
}, ut = /* @__PURE__ */ Object.assign(st, {
|
|
733
737
|
props: {
|
|
734
738
|
/**
|
|
735
739
|
* 当前页数
|
|
@@ -766,13 +770,13 @@ const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_
|
|
|
766
770
|
s("on-size-change", u);
|
|
767
771
|
}, i = (u = 1) => {
|
|
768
772
|
s("on-current-change", u);
|
|
769
|
-
}, r =
|
|
773
|
+
}, r = w(1);
|
|
770
774
|
return (u, t) => {
|
|
771
|
-
const d =
|
|
772
|
-
return n(),
|
|
773
|
-
O("div",
|
|
774
|
-
C(_, { locale: c(
|
|
775
|
-
default:
|
|
775
|
+
const d = v("el-pagination"), _ = v("el-config-provider");
|
|
776
|
+
return n(), E("div", lt, [
|
|
777
|
+
O("div", nt, [
|
|
778
|
+
C(_, { locale: c(at) }, {
|
|
779
|
+
default: A(() => [
|
|
776
780
|
C(d, {
|
|
777
781
|
background: "",
|
|
778
782
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -784,8 +788,8 @@ const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_
|
|
|
784
788
|
onSizeChange: a,
|
|
785
789
|
onCurrentChange: i
|
|
786
790
|
}, {
|
|
787
|
-
next:
|
|
788
|
-
|
|
791
|
+
next: A(() => [
|
|
792
|
+
ot
|
|
789
793
|
]),
|
|
790
794
|
_: 1
|
|
791
795
|
}, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
@@ -797,14 +801,14 @@ const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_
|
|
|
797
801
|
};
|
|
798
802
|
}
|
|
799
803
|
});
|
|
800
|
-
const
|
|
804
|
+
const Ne = (e, s) => {
|
|
801
805
|
const a = e.__vccOpts || e;
|
|
802
806
|
for (const [i, r] of s)
|
|
803
807
|
a[i] = r;
|
|
804
808
|
return a;
|
|
805
|
-
},
|
|
809
|
+
}, ct = {
|
|
806
810
|
name: "BsgoalBaseTableEmpty"
|
|
807
|
-
},
|
|
811
|
+
}, rt = { class: "bsgoal-base-table-empty" }, it = /* @__PURE__ */ O("div", { class: "base_table_empty" }, [
|
|
808
812
|
/* @__PURE__ */ O("div", { class: "base_table_empty_img" }, [
|
|
809
813
|
/* @__PURE__ */ O("img", {
|
|
810
814
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
@@ -812,25 +816,25 @@ const we = (e, s) => {
|
|
|
812
816
|
})
|
|
813
817
|
]),
|
|
814
818
|
/* @__PURE__ */ O("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
815
|
-
], -1),
|
|
816
|
-
|
|
819
|
+
], -1), dt = [
|
|
820
|
+
it
|
|
817
821
|
];
|
|
818
|
-
function
|
|
819
|
-
return n(),
|
|
822
|
+
function _t(e, s, a, i, r, u) {
|
|
823
|
+
return n(), E("div", rt, dt);
|
|
820
824
|
}
|
|
821
|
-
const
|
|
825
|
+
const mt = /* @__PURE__ */ Ne(ct, [["render", _t]]), gt = (e = null, { expression: s = 75, arg: a = {}, height: i = "" } = {}) => {
|
|
822
826
|
const r = c(e);
|
|
823
827
|
if (r) {
|
|
824
828
|
const u = r.querySelector(".el-table");
|
|
825
|
-
u &&
|
|
829
|
+
u && Ce(() => {
|
|
826
830
|
const { y: t = 0 } = u.getBoundingClientRect();
|
|
827
831
|
let d = `calc(100vh - ${t + s}px)`;
|
|
828
832
|
const _ = Number.parseInt(i);
|
|
829
833
|
i && (_ ? d = `${i}px` : d = i), u.style.height = d;
|
|
830
834
|
});
|
|
831
835
|
}
|
|
832
|
-
}, Ae = (e = Promise.resolve(), s = null, a =
|
|
833
|
-
const r =
|
|
836
|
+
}, Ae = (e = Promise.resolve(), s = null, a = w(!1), i = w(null)) => {
|
|
837
|
+
const r = w("");
|
|
834
838
|
return a.value = !0, e.then((u = {}) => {
|
|
835
839
|
const { data: t = {}, message: d = "" } = u;
|
|
836
840
|
i.value = t, r.value = d, s && s(!0, t), a.value = !1;
|
|
@@ -844,7 +848,7 @@ const _t = /* @__PURE__ */ we(ut, [["render", dt]]), mt = (e = null, { expressio
|
|
|
844
848
|
}).finally(() => {
|
|
845
849
|
a.value = !1;
|
|
846
850
|
}), { data: i, message: r, loading: a };
|
|
847
|
-
},
|
|
851
|
+
}, ft = (e = null) => {
|
|
848
852
|
switch (toString.apply(e)) {
|
|
849
853
|
case "[object Object]":
|
|
850
854
|
return "object";
|
|
@@ -861,13 +865,13 @@ const _t = /* @__PURE__ */ we(ut, [["render", dt]]), mt = (e = null, { expressio
|
|
|
861
865
|
case "[object Undefind]":
|
|
862
866
|
return "undefind";
|
|
863
867
|
}
|
|
864
|
-
},
|
|
865
|
-
const
|
|
868
|
+
}, vt = (e) => ft(e) === "boolean";
|
|
869
|
+
const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
866
870
|
key: 0,
|
|
867
871
|
class: "base_table_menu"
|
|
868
|
-
},
|
|
872
|
+
}, bt = {
|
|
869
873
|
name: "BsgoalBaseTable"
|
|
870
|
-
},
|
|
874
|
+
}, ke = /* @__PURE__ */ Object.assign(bt, {
|
|
871
875
|
props: {
|
|
872
876
|
/**
|
|
873
877
|
* >----------props----------<
|
|
@@ -975,55 +979,55 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
975
979
|
},
|
|
976
980
|
setup(e, { expose: s }) {
|
|
977
981
|
const a = e, i = Z(() => {
|
|
978
|
-
const { configOptions: m = [], operation: I = !1, operationWidth:
|
|
982
|
+
const { configOptions: m = [], operation: I = !1, operationWidth: N = 0 } = a, L = c(m), F = [];
|
|
979
983
|
return I && F.push({
|
|
980
984
|
label: "操作",
|
|
981
985
|
fixed: "right",
|
|
982
986
|
prop: "operation",
|
|
983
|
-
width:
|
|
987
|
+
width: N
|
|
984
988
|
}), [...L, ...F];
|
|
985
|
-
}), r =
|
|
986
|
-
|
|
987
|
-
const { height: m } = a, I = u ? u.value : !1,
|
|
988
|
-
|
|
989
|
+
}), r = w(null), u = Me("transferFoldStatus");
|
|
990
|
+
he(() => {
|
|
991
|
+
const { height: m } = a, I = u ? u.value : !1, N = c(a.expression);
|
|
992
|
+
vt(m) || gt(r, { arg: I, expression: N, height: m });
|
|
989
993
|
});
|
|
990
|
-
const t = c(a.mapProps), d =
|
|
994
|
+
const t = c(a.mapProps), d = Ee({
|
|
991
995
|
currentPage: "currentPage",
|
|
992
996
|
pageSize: "pageSize",
|
|
993
997
|
rows: "rows",
|
|
994
998
|
total: "total"
|
|
995
|
-
}, t), _ =
|
|
996
|
-
const { fetch: m, call: I, hasPage:
|
|
997
|
-
|
|
999
|
+
}, t), _ = w(1), V = w(10), M = w(0), S = w({}), k = w(a.loading), U = w(), D = w({}), p = () => {
|
|
1000
|
+
const { fetch: m, call: I, hasPage: N } = a, L = S.value, F = _.value, Y = V.value, R = Ee({}, L);
|
|
1001
|
+
N && (R[d.currentPage] = F, R[d.pageSize] = Y), Ae(m(R), I, k, D);
|
|
998
1002
|
};
|
|
999
|
-
|
|
1003
|
+
he(() => {
|
|
1000
1004
|
U.value = a.data;
|
|
1001
|
-
}),
|
|
1005
|
+
}), me(D, (m) => {
|
|
1002
1006
|
a.hasPage ? (U.value = m[d.rows], M.value = m[d.total]) : U.value = m;
|
|
1003
1007
|
});
|
|
1004
|
-
const
|
|
1005
|
-
S.value = m, _.value = 1,
|
|
1008
|
+
const x = (m = {}) => {
|
|
1009
|
+
S.value = m, _.value = 1, p();
|
|
1006
1010
|
}, T = (m = 1) => {
|
|
1007
1011
|
_.value = m;
|
|
1008
1012
|
}, B = (m = 10) => {
|
|
1009
1013
|
V.value = m;
|
|
1010
1014
|
};
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1015
|
+
return me([_, V], () => {
|
|
1016
|
+
p();
|
|
1013
1017
|
}), s({
|
|
1014
|
-
refreshList:
|
|
1018
|
+
refreshList: x
|
|
1015
1019
|
}), (m, I) => {
|
|
1016
|
-
const
|
|
1017
|
-
return n(),
|
|
1018
|
-
O("div",
|
|
1019
|
-
m.$slots.menu ? (n(),
|
|
1020
|
+
const N = v("el-table-column"), L = v("el-table"), F = Re("loading");
|
|
1021
|
+
return n(), E("div", pt, [
|
|
1022
|
+
O("div", ht, [
|
|
1023
|
+
m.$slots.menu ? (n(), E("div", Et, [
|
|
1020
1024
|
J(m.$slots, "menu")
|
|
1021
1025
|
])) : $("", !0),
|
|
1022
1026
|
O("div", {
|
|
1023
1027
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1024
1028
|
ref: r
|
|
1025
1029
|
}, [
|
|
1026
|
-
K((n(),
|
|
1030
|
+
K((n(), y(L, {
|
|
1027
1031
|
stripe: "",
|
|
1028
1032
|
border: "",
|
|
1029
1033
|
"highlight-current-row": "",
|
|
@@ -1036,38 +1040,38 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1036
1040
|
fontSize: "14px"
|
|
1037
1041
|
}
|
|
1038
1042
|
}, {
|
|
1039
|
-
empty:
|
|
1040
|
-
C(
|
|
1043
|
+
empty: A(() => [
|
|
1044
|
+
C(mt)
|
|
1041
1045
|
]),
|
|
1042
|
-
default:
|
|
1043
|
-
e.selection ? (n(),
|
|
1046
|
+
default: A(() => [
|
|
1047
|
+
e.selection ? (n(), y(N, {
|
|
1044
1048
|
key: 0,
|
|
1045
1049
|
fixed: "left",
|
|
1046
1050
|
type: "selection",
|
|
1047
1051
|
width: "40"
|
|
1048
1052
|
})) : $("", !0),
|
|
1049
|
-
(n(!0),
|
|
1053
|
+
(n(!0), E(P, null, Q(i.value, ({
|
|
1050
1054
|
prop: Y = "",
|
|
1051
1055
|
label: R = "",
|
|
1052
1056
|
align: H = "center",
|
|
1053
1057
|
width: ee = "",
|
|
1054
1058
|
fixed: ae = !1,
|
|
1055
1059
|
tooltip: le = !1,
|
|
1056
|
-
limit:
|
|
1057
|
-
} = {},
|
|
1058
|
-
key:
|
|
1060
|
+
limit: re = 0
|
|
1061
|
+
} = {}, ie) => (n(), y(N, {
|
|
1062
|
+
key: ie,
|
|
1059
1063
|
label: R,
|
|
1060
1064
|
align: H,
|
|
1061
1065
|
width: ee,
|
|
1062
1066
|
fixed: ae,
|
|
1063
1067
|
"min-width": `${R.length * 14 + 24}px`
|
|
1064
1068
|
}, {
|
|
1065
|
-
default:
|
|
1066
|
-
J(m.$slots, Y, { row:
|
|
1067
|
-
C(
|
|
1068
|
-
limit:
|
|
1069
|
+
default: A(({ row: ue }) => [
|
|
1070
|
+
J(m.$slots, Y, { row: ue }, () => [
|
|
1071
|
+
C(tt, {
|
|
1072
|
+
limit: re,
|
|
1069
1073
|
tooltip: le,
|
|
1070
|
-
data:
|
|
1074
|
+
data: ue[Y]
|
|
1071
1075
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1072
1076
|
])
|
|
1073
1077
|
]),
|
|
@@ -1079,7 +1083,7 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1079
1083
|
[F, k.value]
|
|
1080
1084
|
])
|
|
1081
1085
|
], 512),
|
|
1082
|
-
e.hasPage ? (n(),
|
|
1086
|
+
e.hasPage ? (n(), y(ut, {
|
|
1083
1087
|
key: 1,
|
|
1084
1088
|
total: M.value,
|
|
1085
1089
|
onOnCurrentChange: T,
|
|
@@ -1090,9 +1094,9 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1090
1094
|
};
|
|
1091
1095
|
}
|
|
1092
1096
|
});
|
|
1093
|
-
const
|
|
1097
|
+
const yt = {
|
|
1094
1098
|
name: "BsgoalBaseLine"
|
|
1095
|
-
},
|
|
1099
|
+
}, Te = /* @__PURE__ */ Object.assign(yt, {
|
|
1096
1100
|
props: {
|
|
1097
1101
|
/**
|
|
1098
1102
|
* 是否为垂直
|
|
@@ -1103,27 +1107,27 @@ const bt = {
|
|
|
1103
1107
|
}
|
|
1104
1108
|
},
|
|
1105
1109
|
setup(e) {
|
|
1106
|
-
return (s, a) => (n(),
|
|
1107
|
-
class:
|
|
1110
|
+
return (s, a) => (n(), E("div", {
|
|
1111
|
+
class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1108
1112
|
}, [
|
|
1109
1113
|
O("div", {
|
|
1110
|
-
class:
|
|
1114
|
+
class: ge(["base_line", { base_line__vertical: e.vertical }])
|
|
1111
1115
|
}, null, 2)
|
|
1112
1116
|
], 2));
|
|
1113
1117
|
}
|
|
1114
1118
|
});
|
|
1115
1119
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1116
|
-
var
|
|
1120
|
+
var se = (e, s) => {
|
|
1117
1121
|
let a = e.__vccOpts || e;
|
|
1118
1122
|
for (let [i, r] of s)
|
|
1119
1123
|
a[i] = r;
|
|
1120
1124
|
return a;
|
|
1121
|
-
},
|
|
1125
|
+
}, xt = {
|
|
1122
1126
|
name: "ArrowDown"
|
|
1123
1127
|
}, At = {
|
|
1124
1128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1125
1129
|
viewBox: "0 0 1024 1024"
|
|
1126
|
-
},
|
|
1130
|
+
}, Tt = /* @__PURE__ */ O(
|
|
1127
1131
|
"path",
|
|
1128
1132
|
{
|
|
1129
1133
|
fill: "currentColor",
|
|
@@ -1132,18 +1136,18 @@ var oe = (e, s) => {
|
|
|
1132
1136
|
null,
|
|
1133
1137
|
-1
|
|
1134
1138
|
/* HOISTED */
|
|
1135
|
-
),
|
|
1136
|
-
|
|
1139
|
+
), Vt = [
|
|
1140
|
+
Tt
|
|
1137
1141
|
];
|
|
1138
|
-
function
|
|
1139
|
-
return n(),
|
|
1142
|
+
function $t(e, s, a, i, r, u) {
|
|
1143
|
+
return n(), E("svg", At, Vt);
|
|
1140
1144
|
}
|
|
1141
|
-
var
|
|
1145
|
+
var Ct = /* @__PURE__ */ se(xt, [["render", $t], ["__file", "arrow-down.vue"]]), Mt = {
|
|
1142
1146
|
name: "ArrowLeft"
|
|
1143
|
-
},
|
|
1147
|
+
}, Bt = {
|
|
1144
1148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1145
1149
|
viewBox: "0 0 1024 1024"
|
|
1146
|
-
},
|
|
1150
|
+
}, wt = /* @__PURE__ */ O(
|
|
1147
1151
|
"path",
|
|
1148
1152
|
{
|
|
1149
1153
|
fill: "currentColor",
|
|
@@ -1152,18 +1156,18 @@ var $t = /* @__PURE__ */ oe(yt, [["render", Vt], ["__file", "arrow-down.vue"]]),
|
|
|
1152
1156
|
null,
|
|
1153
1157
|
-1
|
|
1154
1158
|
/* HOISTED */
|
|
1155
|
-
),
|
|
1156
|
-
|
|
1159
|
+
), Nt = [
|
|
1160
|
+
wt
|
|
1157
1161
|
];
|
|
1158
|
-
function
|
|
1159
|
-
return n(),
|
|
1162
|
+
function kt(e, s, a, i, r, u) {
|
|
1163
|
+
return n(), E("svg", Bt, Nt);
|
|
1160
1164
|
}
|
|
1161
|
-
var
|
|
1165
|
+
var St = /* @__PURE__ */ se(Mt, [["render", kt], ["__file", "arrow-left.vue"]]), Dt = {
|
|
1162
1166
|
name: "ArrowRight"
|
|
1163
|
-
},
|
|
1167
|
+
}, Ot = {
|
|
1164
1168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1165
1169
|
viewBox: "0 0 1024 1024"
|
|
1166
|
-
},
|
|
1170
|
+
}, It = /* @__PURE__ */ O(
|
|
1167
1171
|
"path",
|
|
1168
1172
|
{
|
|
1169
1173
|
fill: "currentColor",
|
|
@@ -1172,18 +1176,18 @@ var kt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]),
|
|
|
1172
1176
|
null,
|
|
1173
1177
|
-1
|
|
1174
1178
|
/* HOISTED */
|
|
1175
|
-
),
|
|
1176
|
-
|
|
1179
|
+
), Rt = [
|
|
1180
|
+
It
|
|
1177
1181
|
];
|
|
1178
|
-
function
|
|
1179
|
-
return n(),
|
|
1182
|
+
function Ft(e, s, a, i, r, u) {
|
|
1183
|
+
return n(), E("svg", Ot, Rt);
|
|
1180
1184
|
}
|
|
1181
|
-
var
|
|
1185
|
+
var Ut = /* @__PURE__ */ se(Dt, [["render", Ft], ["__file", "arrow-right.vue"]]), Lt = {
|
|
1182
1186
|
name: "ArrowUp"
|
|
1183
|
-
},
|
|
1187
|
+
}, Pt = {
|
|
1184
1188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1185
1189
|
viewBox: "0 0 1024 1024"
|
|
1186
|
-
},
|
|
1190
|
+
}, zt = /* @__PURE__ */ O(
|
|
1187
1191
|
"path",
|
|
1188
1192
|
{
|
|
1189
1193
|
fill: "currentColor",
|
|
@@ -1193,17 +1197,17 @@ var Ft = /* @__PURE__ */ oe(St, [["render", Rt], ["__file", "arrow-right.vue"]])
|
|
|
1193
1197
|
-1
|
|
1194
1198
|
/* HOISTED */
|
|
1195
1199
|
), jt = [
|
|
1196
|
-
|
|
1200
|
+
zt
|
|
1197
1201
|
];
|
|
1198
|
-
function
|
|
1199
|
-
return n(),
|
|
1202
|
+
function Gt(e, s, a, i, r, u) {
|
|
1203
|
+
return n(), E("svg", Pt, jt);
|
|
1200
1204
|
}
|
|
1201
|
-
var
|
|
1205
|
+
var Yt = /* @__PURE__ */ se(Lt, [["render", Gt], ["__file", "arrow-up.vue"]]), Ht = {
|
|
1202
1206
|
name: "Delete"
|
|
1203
|
-
},
|
|
1207
|
+
}, Wt = {
|
|
1204
1208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1205
1209
|
viewBox: "0 0 1024 1024"
|
|
1206
|
-
},
|
|
1210
|
+
}, Xt = /* @__PURE__ */ O(
|
|
1207
1211
|
"path",
|
|
1208
1212
|
{
|
|
1209
1213
|
fill: "currentColor",
|
|
@@ -1212,18 +1216,18 @@ var Gt = /* @__PURE__ */ oe(Ut, [["render", zt], ["__file", "arrow-up.vue"]]), Y
|
|
|
1212
1216
|
null,
|
|
1213
1217
|
-1
|
|
1214
1218
|
/* HOISTED */
|
|
1215
|
-
),
|
|
1216
|
-
|
|
1219
|
+
), Qt = [
|
|
1220
|
+
Xt
|
|
1217
1221
|
];
|
|
1218
|
-
function
|
|
1219
|
-
return n(),
|
|
1222
|
+
function Zt(e, s, a, i, r, u) {
|
|
1223
|
+
return n(), E("svg", Wt, Qt);
|
|
1220
1224
|
}
|
|
1221
|
-
var
|
|
1225
|
+
var Se = /* @__PURE__ */ se(Ht, [["render", Zt], ["__file", "delete.vue"]]), Kt = {
|
|
1222
1226
|
name: "Plus"
|
|
1223
|
-
},
|
|
1227
|
+
}, Jt = {
|
|
1224
1228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1225
1229
|
viewBox: "0 0 1024 1024"
|
|
1226
|
-
},
|
|
1230
|
+
}, qt = /* @__PURE__ */ O(
|
|
1227
1231
|
"path",
|
|
1228
1232
|
{
|
|
1229
1233
|
fill: "currentColor",
|
|
@@ -1232,18 +1236,18 @@ var ke = /* @__PURE__ */ oe(Yt, [["render", Qt], ["__file", "delete.vue"]]), Zt
|
|
|
1232
1236
|
null,
|
|
1233
1237
|
-1
|
|
1234
1238
|
/* HOISTED */
|
|
1235
|
-
),
|
|
1236
|
-
|
|
1239
|
+
), ea = [
|
|
1240
|
+
qt
|
|
1237
1241
|
];
|
|
1238
|
-
function
|
|
1239
|
-
return n(),
|
|
1242
|
+
function ta(e, s, a, i, r, u) {
|
|
1243
|
+
return n(), E("svg", Jt, ea);
|
|
1240
1244
|
}
|
|
1241
|
-
var
|
|
1245
|
+
var aa = /* @__PURE__ */ se(Kt, [["render", ta], ["__file", "plus.vue"]]), la = {
|
|
1242
1246
|
name: "Search"
|
|
1243
|
-
},
|
|
1247
|
+
}, na = {
|
|
1244
1248
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1245
1249
|
viewBox: "0 0 1024 1024"
|
|
1246
|
-
},
|
|
1250
|
+
}, oa = /* @__PURE__ */ O(
|
|
1247
1251
|
"path",
|
|
1248
1252
|
{
|
|
1249
1253
|
fill: "currentColor",
|
|
@@ -1252,16 +1256,16 @@ var ta = /* @__PURE__ */ oe(Zt, [["render", ea], ["__file", "plus.vue"]]), aa =
|
|
|
1252
1256
|
null,
|
|
1253
1257
|
-1
|
|
1254
1258
|
/* HOISTED */
|
|
1255
|
-
),
|
|
1256
|
-
|
|
1259
|
+
), sa = [
|
|
1260
|
+
oa
|
|
1257
1261
|
];
|
|
1258
|
-
function
|
|
1259
|
-
return n(),
|
|
1262
|
+
function ua(e, s, a, i, r, u) {
|
|
1263
|
+
return n(), E("svg", na, sa);
|
|
1260
1264
|
}
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1265
|
+
var ca = /* @__PURE__ */ se(la, [["render", ua], ["__file", "search.vue"]]);
|
|
1266
|
+
const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
1263
1267
|
name: "BsgoalBaseSearchOperation"
|
|
1264
|
-
},
|
|
1268
|
+
}, da = /* @__PURE__ */ Object.assign(ia, {
|
|
1265
1269
|
props: {
|
|
1266
1270
|
/**
|
|
1267
1271
|
* 是否显示折叠按钮
|
|
@@ -1273,44 +1277,44 @@ const ca = { class: "bsgoal-base-search-operation" }, ra = {
|
|
|
1273
1277
|
},
|
|
1274
1278
|
emits: ["on-fold"],
|
|
1275
1279
|
setup(e, { emit: s }) {
|
|
1276
|
-
const a =
|
|
1280
|
+
const a = w(!1), i = () => {
|
|
1277
1281
|
a.value = !c(a), s("on-fold", a.value);
|
|
1278
1282
|
};
|
|
1279
1283
|
return (r, u) => {
|
|
1280
|
-
const t =
|
|
1281
|
-
return n(),
|
|
1284
|
+
const t = v("el-button"), d = v("el-icon");
|
|
1285
|
+
return n(), E("div", ra, [
|
|
1282
1286
|
C(t, {
|
|
1283
1287
|
type: "primary",
|
|
1284
|
-
icon: c(
|
|
1288
|
+
icon: c(ca),
|
|
1285
1289
|
onClick: u[0] || (u[0] = (_) => r.$emit("on-search"))
|
|
1286
1290
|
}, {
|
|
1287
|
-
default:
|
|
1291
|
+
default: A(() => [
|
|
1288
1292
|
G("搜索")
|
|
1289
1293
|
]),
|
|
1290
1294
|
_: 1
|
|
1291
1295
|
}, 8, ["icon"]),
|
|
1292
1296
|
C(t, {
|
|
1293
|
-
icon: c(
|
|
1297
|
+
icon: c(Se),
|
|
1294
1298
|
onClick: u[1] || (u[1] = (_) => r.$emit("on-clear"))
|
|
1295
1299
|
}, {
|
|
1296
|
-
default:
|
|
1300
|
+
default: A(() => [
|
|
1297
1301
|
G("清空")
|
|
1298
1302
|
]),
|
|
1299
1303
|
_: 1
|
|
1300
1304
|
}, 8, ["icon"]),
|
|
1301
|
-
e.fold ? (n(),
|
|
1305
|
+
e.fold ? (n(), E("div", {
|
|
1302
1306
|
key: 0,
|
|
1303
1307
|
class: "operation_fold",
|
|
1304
1308
|
style: { color: "var(--el-color-primary)" },
|
|
1305
1309
|
onClick: i
|
|
1306
1310
|
}, [
|
|
1307
|
-
G(
|
|
1311
|
+
G(z(a.value ? "收起" : "展开"), 1),
|
|
1308
1312
|
C(d, { color: "#409EFC" }, {
|
|
1309
|
-
default:
|
|
1310
|
-
K(C(c(
|
|
1313
|
+
default: A(() => [
|
|
1314
|
+
K(C(c(Yt), null, null, 512), [
|
|
1311
1315
|
[te, a.value]
|
|
1312
1316
|
]),
|
|
1313
|
-
K(C(c(
|
|
1317
|
+
K(C(c(Ct), null, null, 512), [
|
|
1314
1318
|
[te, !a.value]
|
|
1315
1319
|
])
|
|
1316
1320
|
]),
|
|
@@ -1321,9 +1325,9 @@ const ca = { class: "bsgoal-base-search-operation" }, ra = {
|
|
|
1321
1325
|
};
|
|
1322
1326
|
}
|
|
1323
1327
|
});
|
|
1324
|
-
const
|
|
1328
|
+
const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
1325
1329
|
name: "BsgoalBaseCascader"
|
|
1326
|
-
},
|
|
1330
|
+
}, ga = /* @__PURE__ */ Object.assign(ma, {
|
|
1327
1331
|
props: {
|
|
1328
1332
|
/**
|
|
1329
1333
|
* 绑定的值
|
|
@@ -1356,15 +1360,15 @@ const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
|
1356
1360
|
},
|
|
1357
1361
|
emits: ["update:model-value", "on-change"],
|
|
1358
1362
|
setup(e, { emit: s }) {
|
|
1359
|
-
const a =
|
|
1363
|
+
const a = w({
|
|
1360
1364
|
checkStrictly: !0,
|
|
1361
1365
|
multiple: !1
|
|
1362
1366
|
}), i = (r) => {
|
|
1363
1367
|
s("update:model-value", r), s("on-change", r);
|
|
1364
1368
|
};
|
|
1365
1369
|
return (r, u) => {
|
|
1366
|
-
const t =
|
|
1367
|
-
return n(),
|
|
1370
|
+
const t = v("el-cascader");
|
|
1371
|
+
return n(), E("div", _a, [
|
|
1368
1372
|
C(t, {
|
|
1369
1373
|
clearable: "",
|
|
1370
1374
|
class: "base_cascader",
|
|
@@ -1379,9 +1383,9 @@ const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
|
1379
1383
|
};
|
|
1380
1384
|
}
|
|
1381
1385
|
});
|
|
1382
|
-
const
|
|
1386
|
+
const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa = { key: 1 }, ha = {
|
|
1383
1387
|
name: "BsgoalBaseSearch"
|
|
1384
|
-
},
|
|
1388
|
+
}, Ea = /* @__PURE__ */ Object.assign(ha, {
|
|
1385
1389
|
props: {
|
|
1386
1390
|
/**
|
|
1387
1391
|
* >----------props----------<
|
|
@@ -1423,22 +1427,22 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1423
1427
|
},
|
|
1424
1428
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1425
1429
|
setup(e, { expose: s, emit: a }) {
|
|
1426
|
-
const i = e, r =
|
|
1427
|
-
|
|
1428
|
-
const { configOptions:
|
|
1429
|
-
c(
|
|
1430
|
-
const { value: m, prop: I = "", type:
|
|
1431
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(
|
|
1430
|
+
const i = e, r = w(null), u = xe.align, t = w({});
|
|
1431
|
+
he(() => {
|
|
1432
|
+
const { configOptions: x } = i;
|
|
1433
|
+
c(x).forEach((B) => {
|
|
1434
|
+
const { value: m, prop: I = "", type: N = "" } = B;
|
|
1435
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(N), t.value[I] = [0, !1].includes(m) ? m : "";
|
|
1432
1436
|
});
|
|
1433
1437
|
});
|
|
1434
1438
|
const d = Z(() => {
|
|
1435
|
-
const { configOptions:
|
|
1439
|
+
const { configOptions: x } = i, T = c(x), B = {
|
|
1436
1440
|
type: l.OPERATION
|
|
1437
1441
|
};
|
|
1438
1442
|
return [...T, B];
|
|
1439
|
-
}), _ = (
|
|
1443
|
+
}), _ = (x = "", T = "", B = "") => {
|
|
1440
1444
|
if (!B)
|
|
1441
|
-
switch (
|
|
1445
|
+
switch (x) {
|
|
1442
1446
|
case l.INPUT:
|
|
1443
1447
|
case l.INPUT_TEXT_AREA:
|
|
1444
1448
|
return `请输入${T}`;
|
|
@@ -1460,9 +1464,9 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1460
1464
|
return ["开始月份", "结束月份"];
|
|
1461
1465
|
}
|
|
1462
1466
|
return B;
|
|
1463
|
-
}, V = (
|
|
1467
|
+
}, V = (x = "", T = "") => {
|
|
1464
1468
|
if (!T)
|
|
1465
|
-
switch (
|
|
1469
|
+
switch (x) {
|
|
1466
1470
|
case l.WEEK:
|
|
1467
1471
|
return "ww";
|
|
1468
1472
|
case l.DATE:
|
|
@@ -1483,32 +1487,32 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1483
1487
|
}
|
|
1484
1488
|
return T;
|
|
1485
1489
|
}, M = () => {
|
|
1486
|
-
const { configOptions:
|
|
1490
|
+
const { configOptions: x } = i, T = c(t), B = c(x), m = {};
|
|
1487
1491
|
for (const I of B) {
|
|
1488
|
-
const { type:
|
|
1489
|
-
if ([l.CASCADER].includes(
|
|
1492
|
+
const { type: N = "", range: L = [], prop: F = "", single: Y = !1 } = I, R = T[F];
|
|
1493
|
+
if ([l.CASCADER].includes(N) && Array.isArray(R) && Y) {
|
|
1490
1494
|
const H = R.length;
|
|
1491
1495
|
H ? m[F] = R[H - 1] : m[F] = R;
|
|
1492
1496
|
} else
|
|
1493
|
-
|
|
1494
|
-
if (
|
|
1497
|
+
Fe(R) ? m[F] = Ue(R) : m[F] = R;
|
|
1498
|
+
if (N.endsWith("range") && L && L.length === 2) {
|
|
1495
1499
|
const { 0: H = "", 1: ee = "" } = R, { 0: ae = "", 1: le = "" } = L;
|
|
1496
1500
|
m[ae] = H, m[le] = ee;
|
|
1497
1501
|
}
|
|
1498
1502
|
}
|
|
1499
1503
|
a("on-search", m), a("update:modelValue", m);
|
|
1500
1504
|
};
|
|
1501
|
-
|
|
1505
|
+
Ce(() => {
|
|
1502
1506
|
M();
|
|
1503
1507
|
});
|
|
1504
1508
|
const S = () => {
|
|
1505
1509
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1506
|
-
}, k =
|
|
1507
|
-
U.value =
|
|
1508
|
-
},
|
|
1510
|
+
}, k = Me("transferFoldStatus"), U = w(!1), D = (x = !1) => {
|
|
1511
|
+
U.value = x, k && (k.value = x), a("on-fold", U);
|
|
1512
|
+
}, p = (x, T) => {
|
|
1509
1513
|
M();
|
|
1510
1514
|
const B = {
|
|
1511
|
-
type:
|
|
1515
|
+
type: x,
|
|
1512
1516
|
prop: T,
|
|
1513
1517
|
value: t.value[T] || ""
|
|
1514
1518
|
};
|
|
@@ -1516,197 +1520,197 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1516
1520
|
};
|
|
1517
1521
|
return s({
|
|
1518
1522
|
triggerOperationSearch: M
|
|
1519
|
-
}), (
|
|
1520
|
-
const B =
|
|
1521
|
-
return n(),
|
|
1522
|
-
O("div",
|
|
1523
|
-
K((n(),
|
|
1523
|
+
}), (x, T) => {
|
|
1524
|
+
const B = v("el-input"), m = v("el-input-number"), I = v("el-radio"), N = v("el-radio-group"), L = v("el-option"), F = v("el-select"), Y = v("el-slider"), R = v("el-switch"), H = v("el-date-picker"), ee = v("el-time-picker"), ae = v("el-checkbox"), le = v("el-checkbox-group"), re = v("el-form-item"), ie = v("el-col"), ue = v("el-row"), W = v("el-form");
|
|
1525
|
+
return n(), E("div", fa, [
|
|
1526
|
+
O("div", va, [
|
|
1527
|
+
K((n(), y(W, {
|
|
1524
1528
|
ref_key: "EL_FORM_REF",
|
|
1525
1529
|
ref: r,
|
|
1526
1530
|
"label-suffix": ":",
|
|
1527
1531
|
"show-message": !1,
|
|
1528
1532
|
model: t.value
|
|
1529
1533
|
}, {
|
|
1530
|
-
default:
|
|
1531
|
-
C(
|
|
1532
|
-
default:
|
|
1533
|
-
(n(!0),
|
|
1534
|
-
label:
|
|
1534
|
+
default: A(() => [
|
|
1535
|
+
C(ue, null, {
|
|
1536
|
+
default: A(() => [
|
|
1537
|
+
(n(!0), E(P, null, Q(d.value, ({
|
|
1538
|
+
label: f = "",
|
|
1535
1539
|
prop: o = "",
|
|
1536
1540
|
type: g = "text",
|
|
1537
|
-
placeholder:
|
|
1538
|
-
readonly:
|
|
1539
|
-
clearable:
|
|
1540
|
-
rows:
|
|
1541
|
-
min:
|
|
1541
|
+
placeholder: j = "",
|
|
1542
|
+
readonly: fe = !1,
|
|
1543
|
+
clearable: ve = !0,
|
|
1544
|
+
rows: pe = 2,
|
|
1545
|
+
min: de = 1,
|
|
1542
1546
|
max: q = 10,
|
|
1543
1547
|
range: X = [],
|
|
1544
1548
|
format: ne = ""
|
|
1545
|
-
} = {},
|
|
1546
|
-
key:
|
|
1549
|
+
} = {}, ce) => K((n(), y(ie, {
|
|
1550
|
+
key: ce,
|
|
1547
1551
|
xs: 24,
|
|
1548
1552
|
sm: 12,
|
|
1549
1553
|
md: e.medium
|
|
1550
1554
|
}, {
|
|
1551
|
-
default:
|
|
1552
|
-
C(
|
|
1553
|
-
label:
|
|
1555
|
+
default: A(() => [
|
|
1556
|
+
C(re, {
|
|
1557
|
+
label: f,
|
|
1554
1558
|
prop: o
|
|
1555
1559
|
}, {
|
|
1556
|
-
default:
|
|
1557
|
-
|
|
1558
|
-
g === c(l).INPUT ? (n(),
|
|
1560
|
+
default: A(() => [
|
|
1561
|
+
fe ? (n(), E("div", pa, z(t.value[o]), 1)) : (n(), E(P, { key: 0 }, [
|
|
1562
|
+
g === c(l).INPUT ? (n(), y(B, {
|
|
1559
1563
|
key: 0,
|
|
1560
1564
|
modelValue: t.value[o],
|
|
1561
|
-
"onUpdate:modelValue": (
|
|
1562
|
-
placeholder: _(g,
|
|
1563
|
-
clearable:
|
|
1565
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1566
|
+
placeholder: _(g, f, j),
|
|
1567
|
+
clearable: ve
|
|
1564
1568
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : $("", !0),
|
|
1565
|
-
g === c(l).INPUT_TEXT_AREA ? (n(),
|
|
1569
|
+
g === c(l).INPUT_TEXT_AREA ? (n(), y(B, {
|
|
1566
1570
|
key: 1,
|
|
1567
1571
|
modelValue: t.value[o],
|
|
1568
|
-
"onUpdate:modelValue": (
|
|
1572
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1569
1573
|
type: "textarea",
|
|
1570
|
-
rows:
|
|
1571
|
-
clearable:
|
|
1572
|
-
placeholder: _(g,
|
|
1573
|
-
onChange: (
|
|
1574
|
+
rows: pe,
|
|
1575
|
+
clearable: ve,
|
|
1576
|
+
placeholder: _(g, f, j),
|
|
1577
|
+
onChange: (h) => p(g, o)
|
|
1574
1578
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1575
|
-
g === c(l).INPUT_NUMBER ? (n(),
|
|
1579
|
+
g === c(l).INPUT_NUMBER ? (n(), y(m, {
|
|
1576
1580
|
key: 2,
|
|
1577
|
-
modelValue:
|
|
1578
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1579
|
-
min:
|
|
1581
|
+
modelValue: x.num,
|
|
1582
|
+
"onUpdate:modelValue": T[0] || (T[0] = (h) => x.num = h),
|
|
1583
|
+
min: de,
|
|
1580
1584
|
max: q,
|
|
1581
|
-
onChange:
|
|
1585
|
+
onChange: p
|
|
1582
1586
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1583
|
-
g === c(l).RADIO ? (n(),
|
|
1587
|
+
g === c(l).RADIO ? (n(), y(N, {
|
|
1584
1588
|
key: 3,
|
|
1585
1589
|
modelValue: t.value[o],
|
|
1586
|
-
"onUpdate:modelValue": (
|
|
1587
|
-
onChange: (
|
|
1590
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1591
|
+
onChange: (h) => p(g, o)
|
|
1588
1592
|
}, {
|
|
1589
|
-
default:
|
|
1590
|
-
(n(!0),
|
|
1591
|
-
key:
|
|
1592
|
-
label:
|
|
1593
|
+
default: A(() => [
|
|
1594
|
+
(n(!0), E(P, null, Q(X, (h, oe) => (n(), y(I, {
|
|
1595
|
+
key: oe,
|
|
1596
|
+
label: h.value
|
|
1593
1597
|
}, {
|
|
1594
|
-
default:
|
|
1595
|
-
G(
|
|
1598
|
+
default: A(() => [
|
|
1599
|
+
G(z(h.label), 1)
|
|
1596
1600
|
]),
|
|
1597
1601
|
_: 2
|
|
1598
1602
|
}, 1032, ["label"]))), 128))
|
|
1599
1603
|
]),
|
|
1600
1604
|
_: 2
|
|
1601
1605
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1602
|
-
g === c(l).SELECT ? (n(),
|
|
1606
|
+
g === c(l).SELECT ? (n(), y(F, {
|
|
1603
1607
|
key: 4,
|
|
1604
1608
|
modelValue: t.value[o],
|
|
1605
|
-
"onUpdate:modelValue": (
|
|
1606
|
-
placeholder: _(g,
|
|
1607
|
-
onChange: (
|
|
1609
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1610
|
+
placeholder: _(g, f, j),
|
|
1611
|
+
onChange: (h) => p(g, o)
|
|
1608
1612
|
}, {
|
|
1609
|
-
default:
|
|
1610
|
-
(n(!0),
|
|
1611
|
-
key:
|
|
1612
|
-
label:
|
|
1613
|
-
value:
|
|
1613
|
+
default: A(() => [
|
|
1614
|
+
(n(!0), E(P, null, Q(X, (h, oe) => (n(), y(L, {
|
|
1615
|
+
key: oe,
|
|
1616
|
+
label: h.label,
|
|
1617
|
+
value: h.value
|
|
1614
1618
|
}, null, 8, ["label", "value"]))), 128))
|
|
1615
1619
|
]),
|
|
1616
1620
|
_: 2
|
|
1617
1621
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1618
|
-
g === c(l).SLIDER ? (n(),
|
|
1622
|
+
g === c(l).SLIDER ? (n(), y(Y, {
|
|
1619
1623
|
key: 5,
|
|
1620
1624
|
modelValue: t.value[o],
|
|
1621
|
-
"onUpdate:modelValue": (
|
|
1622
|
-
min:
|
|
1625
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1626
|
+
min: de,
|
|
1623
1627
|
max: q,
|
|
1624
|
-
onChange: (
|
|
1628
|
+
onChange: (h) => p(g, o)
|
|
1625
1629
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1626
|
-
g === c(l).SWITCH ? (n(),
|
|
1630
|
+
g === c(l).SWITCH ? (n(), y(R, {
|
|
1627
1631
|
key: 6,
|
|
1628
1632
|
modelValue: t.value[o],
|
|
1629
|
-
"onUpdate:modelValue": (
|
|
1633
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1630
1634
|
"active-value": X[0] || !0,
|
|
1631
1635
|
"inactive-value": X[1] || !1,
|
|
1632
|
-
onChange: (
|
|
1636
|
+
onChange: (h) => p(g, o)
|
|
1633
1637
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1634
1638
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
1635
1639
|
g
|
|
1636
|
-
) ? (n(),
|
|
1640
|
+
) ? (n(), y(H, {
|
|
1637
1641
|
key: 7,
|
|
1638
1642
|
modelValue: t.value[o],
|
|
1639
|
-
"onUpdate:modelValue": (
|
|
1643
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1640
1644
|
format: V(g, ne),
|
|
1641
1645
|
"value-format": V(g, ne),
|
|
1642
1646
|
type: g,
|
|
1643
|
-
placeholder: _(g,
|
|
1644
|
-
onChange: (
|
|
1647
|
+
placeholder: _(g, f, j),
|
|
1648
|
+
onChange: (h) => p(g, o)
|
|
1645
1649
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1646
1650
|
[
|
|
1647
1651
|
c(l).DATE_RANGE,
|
|
1648
1652
|
c(l).MONTH_RANGE,
|
|
1649
1653
|
c(l).DATE_TIME_RANGE
|
|
1650
|
-
].includes(g) ? (n(),
|
|
1654
|
+
].includes(g) ? (n(), y(H, {
|
|
1651
1655
|
key: 8,
|
|
1652
1656
|
modelValue: t.value[o],
|
|
1653
|
-
"onUpdate:modelValue": (
|
|
1657
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1654
1658
|
type: g,
|
|
1655
1659
|
"value-format": V(g, ne),
|
|
1656
|
-
"start-placeholder": _(g,
|
|
1657
|
-
"end-placeholder": _(g,
|
|
1658
|
-
onChange: (
|
|
1660
|
+
"start-placeholder": _(g, f, j)[0],
|
|
1661
|
+
"end-placeholder": _(g, f, j)[1],
|
|
1662
|
+
onChange: (h) => p(g, o)
|
|
1659
1663
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1660
|
-
[c(l).TIME].includes(g) ? (n(),
|
|
1664
|
+
[c(l).TIME].includes(g) ? (n(), y(ee, {
|
|
1661
1665
|
key: 9,
|
|
1662
1666
|
modelValue: t.value[o],
|
|
1663
|
-
"onUpdate:modelValue": (
|
|
1667
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1664
1668
|
"arrow-control": "",
|
|
1665
1669
|
"value-format": V(g, ne),
|
|
1666
|
-
placeholder: _(g,
|
|
1667
|
-
onChange: (
|
|
1670
|
+
placeholder: _(g, f, j),
|
|
1671
|
+
onChange: (h) => p(g, o)
|
|
1668
1672
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1669
|
-
[c(l).TIME_RANGE].includes(g) ? (n(),
|
|
1673
|
+
[c(l).TIME_RANGE].includes(g) ? (n(), y(ee, {
|
|
1670
1674
|
key: 10,
|
|
1671
1675
|
modelValue: t.value[o],
|
|
1672
|
-
"onUpdate:modelValue": (
|
|
1676
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1673
1677
|
"is-range": "",
|
|
1674
1678
|
"value-format": V(g, ne),
|
|
1675
|
-
"start-placeholder": _(g,
|
|
1676
|
-
"end-placeholder": _(g,
|
|
1677
|
-
onChange: (
|
|
1679
|
+
"start-placeholder": _(g, f, j)[0],
|
|
1680
|
+
"end-placeholder": _(g, f, j)[1],
|
|
1681
|
+
onChange: (h) => p(g, o)
|
|
1678
1682
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1679
|
-
[c(l).CHECKBOX].includes(g) ? (n(),
|
|
1683
|
+
[c(l).CHECKBOX].includes(g) ? (n(), y(le, {
|
|
1680
1684
|
key: 11,
|
|
1681
1685
|
modelValue: t.value[o],
|
|
1682
|
-
"onUpdate:modelValue": (
|
|
1683
|
-
onChange: (
|
|
1686
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1687
|
+
onChange: (h) => p(g, o)
|
|
1684
1688
|
}, {
|
|
1685
|
-
default:
|
|
1686
|
-
(n(!0),
|
|
1687
|
-
key:
|
|
1688
|
-
label:
|
|
1689
|
+
default: A(() => [
|
|
1690
|
+
(n(!0), E(P, null, Q(X, (h, oe) => (n(), y(ae, {
|
|
1691
|
+
key: oe,
|
|
1692
|
+
label: h.value
|
|
1689
1693
|
}, {
|
|
1690
|
-
default:
|
|
1691
|
-
G(
|
|
1694
|
+
default: A(() => [
|
|
1695
|
+
G(z(h.label), 1)
|
|
1692
1696
|
]),
|
|
1693
1697
|
_: 2
|
|
1694
1698
|
}, 1032, ["label"]))), 128))
|
|
1695
1699
|
]),
|
|
1696
1700
|
_: 2
|
|
1697
1701
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1698
|
-
[c(l).CASCADER].includes(g) ? (n(),
|
|
1702
|
+
[c(l).CASCADER].includes(g) ? (n(), y(ga, {
|
|
1699
1703
|
key: 12,
|
|
1700
1704
|
modelValue: t.value[o],
|
|
1701
|
-
"onUpdate:modelValue": (
|
|
1705
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1702
1706
|
"data-options": X,
|
|
1703
|
-
placeholder: _(g,
|
|
1704
|
-
onOnChange: (
|
|
1707
|
+
placeholder: _(g, f, j),
|
|
1708
|
+
onOnChange: (h) => p(g, o)
|
|
1705
1709
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
|
|
1706
|
-
[].includes(g) ? (n(),
|
|
1707
|
-
[c(l).OPERATION].includes(g) ? (n(),
|
|
1710
|
+
[].includes(g) ? (n(), E(P, { key: 13 }, [], 64)) : $("", !0),
|
|
1711
|
+
[c(l).OPERATION].includes(g) ? (n(), y(da, {
|
|
1708
1712
|
key: 14,
|
|
1709
|
-
fold:
|
|
1713
|
+
fold: ce >= 7,
|
|
1710
1714
|
onOnSearch: M,
|
|
1711
1715
|
onOnClear: S,
|
|
1712
1716
|
onOnFold: D
|
|
@@ -1718,7 +1722,7 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1718
1722
|
]),
|
|
1719
1723
|
_: 2
|
|
1720
1724
|
}, 1032, ["md"])), [
|
|
1721
|
-
[te,
|
|
1725
|
+
[te, ce < 7 || g === c(l).OPERATION || ce >= 7 && U.value]
|
|
1722
1726
|
])), 128))
|
|
1723
1727
|
]),
|
|
1724
1728
|
_: 1
|
|
@@ -1729,14 +1733,14 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1729
1733
|
[c(u)]
|
|
1730
1734
|
])
|
|
1731
1735
|
]),
|
|
1732
|
-
C(
|
|
1736
|
+
C(Te)
|
|
1733
1737
|
]);
|
|
1734
1738
|
};
|
|
1735
1739
|
}
|
|
1736
1740
|
});
|
|
1737
|
-
const
|
|
1741
|
+
const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_table" }, xa = {
|
|
1738
1742
|
name: "BsgoalBaseSearchTable"
|
|
1739
|
-
}, Aa = /* @__PURE__ */ Object.assign(
|
|
1743
|
+
}, Aa = /* @__PURE__ */ Object.assign(xa, {
|
|
1740
1744
|
props: {
|
|
1741
1745
|
/**
|
|
1742
1746
|
* >----------props----------<
|
|
@@ -1843,28 +1847,28 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1843
1847
|
}
|
|
1844
1848
|
},
|
|
1845
1849
|
setup(e, { expose: s }) {
|
|
1846
|
-
const a = e, i =
|
|
1847
|
-
|
|
1850
|
+
const a = e, i = w(!1);
|
|
1851
|
+
Le("transferFoldStatus", i);
|
|
1848
1852
|
const r = c(a.configOptions), u = Z(() => r.filter((D) => {
|
|
1849
|
-
const { type:
|
|
1850
|
-
return !!
|
|
1853
|
+
const { type: p = "" } = D;
|
|
1854
|
+
return !!p;
|
|
1851
1855
|
})), t = Z(() => r.filter((D) => {
|
|
1852
|
-
const { item:
|
|
1853
|
-
return !
|
|
1854
|
-
})), d =
|
|
1856
|
+
const { item: p = !1 } = D;
|
|
1857
|
+
return !p;
|
|
1858
|
+
})), d = Be(), _ = w(Object.keys(d)), V = w(null), M = (D) => {
|
|
1855
1859
|
V.value.refreshList(D);
|
|
1856
1860
|
}, S = Z(() => {
|
|
1857
|
-
const { expression: D, hasPage:
|
|
1858
|
-
return
|
|
1859
|
-
}), k =
|
|
1861
|
+
const { expression: D, hasPage: p } = a;
|
|
1862
|
+
return p === !1 ? 25 : D;
|
|
1863
|
+
}), k = w(null);
|
|
1860
1864
|
return s({
|
|
1861
1865
|
refresh: () => {
|
|
1862
1866
|
const { hasSearch: D } = a;
|
|
1863
1867
|
c(D) && k.value.triggerOperationSearch();
|
|
1864
1868
|
}
|
|
1865
|
-
}), (D,
|
|
1866
|
-
O("div",
|
|
1867
|
-
K(C(
|
|
1869
|
+
}), (D, p) => (n(), E("div", ba, [
|
|
1870
|
+
O("div", ya, [
|
|
1871
|
+
K(C(Ea, {
|
|
1868
1872
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1869
1873
|
ref: k,
|
|
1870
1874
|
"config-options": u.value,
|
|
@@ -1873,7 +1877,7 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1873
1877
|
}, null, 8, ["config-options"]), [
|
|
1874
1878
|
[te, e.hasSearch]
|
|
1875
1879
|
]),
|
|
1876
|
-
C(
|
|
1880
|
+
C(ke, {
|
|
1877
1881
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1878
1882
|
ref: V,
|
|
1879
1883
|
"map-props": e.mapProps,
|
|
@@ -1886,11 +1890,11 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1886
1890
|
fetch: e.fetch,
|
|
1887
1891
|
call: e.call,
|
|
1888
1892
|
"has-page": e.hasPage
|
|
1889
|
-
},
|
|
1890
|
-
Q(_.value, (
|
|
1891
|
-
name:
|
|
1892
|
-
fn:
|
|
1893
|
-
J(D.$slots,
|
|
1893
|
+
}, Pe({ _: 2 }, [
|
|
1894
|
+
Q(_.value, (x) => ({
|
|
1895
|
+
name: x,
|
|
1896
|
+
fn: A(({ row: T = {} }) => [
|
|
1897
|
+
J(D.$slots, x, { row: T })
|
|
1894
1898
|
])
|
|
1895
1899
|
}))
|
|
1896
1900
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1898,29 +1902,29 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1898
1902
|
]));
|
|
1899
1903
|
}
|
|
1900
1904
|
});
|
|
1901
|
-
const
|
|
1905
|
+
const Ta = { class: "bsgoal-base-tree-fold" }, Va = {
|
|
1902
1906
|
name: "BsgoalBaseTreeFold"
|
|
1903
|
-
},
|
|
1907
|
+
}, $a = /* @__PURE__ */ Object.assign(Va, {
|
|
1904
1908
|
props: ["modelValue"],
|
|
1905
1909
|
emits: ["update:modelValue"],
|
|
1906
1910
|
setup(e, { emit: s }) {
|
|
1907
|
-
let a =
|
|
1911
|
+
let a = w(!0);
|
|
1908
1912
|
const i = () => {
|
|
1909
1913
|
a.value = !a.value, s("update:modelValue", a.value);
|
|
1910
1914
|
};
|
|
1911
1915
|
return (r, u) => {
|
|
1912
|
-
const t =
|
|
1913
|
-
return n(),
|
|
1916
|
+
const t = v("el-icon");
|
|
1917
|
+
return n(), E("div", Ta, [
|
|
1914
1918
|
O("div", {
|
|
1915
|
-
class:
|
|
1919
|
+
class: ge(["base_tree_fold", { "base_tree_fold--hide": !c(a) }]),
|
|
1916
1920
|
onClick: i
|
|
1917
1921
|
}, [
|
|
1918
1922
|
C(t, { color: "#fff" }, {
|
|
1919
|
-
default:
|
|
1920
|
-
K(C(c(
|
|
1923
|
+
default: A(() => [
|
|
1924
|
+
K(C(c(St), null, null, 512), [
|
|
1921
1925
|
[te, c(a)]
|
|
1922
1926
|
]),
|
|
1923
|
-
K(C(c(
|
|
1927
|
+
K(C(c(Ut), null, null, 512), [
|
|
1924
1928
|
[te, !c(a)]
|
|
1925
1929
|
])
|
|
1926
1930
|
]),
|
|
@@ -1931,9 +1935,9 @@ const xa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1931
1935
|
};
|
|
1932
1936
|
}
|
|
1933
1937
|
});
|
|
1934
|
-
const
|
|
1938
|
+
const Ca = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { class: "base_tree_main" }, wa = {
|
|
1935
1939
|
name: "BsgoalBaseTree"
|
|
1936
|
-
},
|
|
1940
|
+
}, Na = /* @__PURE__ */ Object.assign(wa, {
|
|
1937
1941
|
props: {
|
|
1938
1942
|
/**
|
|
1939
1943
|
* 树结构 的下边距
|
|
@@ -1987,11 +1991,11 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
1987
1991
|
},
|
|
1988
1992
|
emits: ["on-click"],
|
|
1989
1993
|
setup(e, { emit: s }) {
|
|
1990
|
-
const a = e, i =
|
|
1991
|
-
|
|
1994
|
+
const a = e, i = xe.height, r = w(""), u = w(null);
|
|
1995
|
+
me(r, (M) => {
|
|
1992
1996
|
u.value.filter(M);
|
|
1993
1997
|
});
|
|
1994
|
-
const t = (M, S) => M ? S.label.includes(M) : !0, d =
|
|
1998
|
+
const t = (M, S) => M ? S.label.includes(M) : !0, d = w(!0), _ = (M, S, k, U) => {
|
|
1995
1999
|
s("on-click", M, S, k, U);
|
|
1996
2000
|
}, V = async (M, S, k) => {
|
|
1997
2001
|
if (M.level === 0) {
|
|
@@ -2003,10 +2007,10 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2003
2007
|
}
|
|
2004
2008
|
};
|
|
2005
2009
|
return (M, S) => {
|
|
2006
|
-
const k =
|
|
2007
|
-
return n(),
|
|
2008
|
-
K((n(),
|
|
2009
|
-
K(O("div",
|
|
2010
|
+
const k = v("el-input"), U = v("el-tree");
|
|
2011
|
+
return n(), E("div", Ca, [
|
|
2012
|
+
K((n(), E("div", Ma, [
|
|
2013
|
+
K(O("div", Ba, [
|
|
2010
2014
|
C(k, {
|
|
2011
2015
|
modelValue: r.value,
|
|
2012
2016
|
"onUpdate:modelValue": S[0] || (S[0] = (D) => r.value = D),
|
|
@@ -2019,7 +2023,7 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2019
2023
|
lazy: "",
|
|
2020
2024
|
"highlight-current": "",
|
|
2021
2025
|
"empty-text": "暂无数据",
|
|
2022
|
-
load: (D,
|
|
2026
|
+
load: (D, p) => V(D, p, a),
|
|
2023
2027
|
"expand-on-click-node": !1,
|
|
2024
2028
|
props: e.treeProps,
|
|
2025
2029
|
"filter-node-method": t,
|
|
@@ -2028,10 +2032,10 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2028
2032
|
], 512), [
|
|
2029
2033
|
[te, d.value]
|
|
2030
2034
|
]),
|
|
2031
|
-
K(C(
|
|
2035
|
+
K(C(Te, { vertical: "" }, null, 512), [
|
|
2032
2036
|
[te, d.value]
|
|
2033
2037
|
]),
|
|
2034
|
-
C(
|
|
2038
|
+
C($a, {
|
|
2035
2039
|
modelValue: d.value,
|
|
2036
2040
|
"onUpdate:modelValue": S[1] || (S[1] = (D) => d.value = D)
|
|
2037
2041
|
}, null, 8, ["modelValue"])
|
|
@@ -2042,9 +2046,9 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2042
2046
|
};
|
|
2043
2047
|
}
|
|
2044
2048
|
});
|
|
2045
|
-
const
|
|
2049
|
+
const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Da = { class: "base_dialog_header" }, Oa = { class: "base_dialog_footer" }, Ia = {
|
|
2046
2050
|
name: "BsgoalBaseDialog"
|
|
2047
|
-
},
|
|
2051
|
+
}, Ra = /* @__PURE__ */ Object.assign(Ia, {
|
|
2048
2052
|
props: {
|
|
2049
2053
|
/**
|
|
2050
2054
|
* 弹窗状态
|
|
@@ -2106,19 +2110,19 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2106
2110
|
},
|
|
2107
2111
|
emits: ["update:modelValue", "on-confirm"],
|
|
2108
2112
|
setup(e, { emit: s }) {
|
|
2109
|
-
const a = e, i =
|
|
2113
|
+
const a = e, i = w(a.modelValue.value), r = () => {
|
|
2110
2114
|
i.value = !1;
|
|
2111
2115
|
}, u = () => {
|
|
2112
2116
|
s("on-confirm", () => {
|
|
2113
2117
|
i.value = !1;
|
|
2114
2118
|
});
|
|
2115
2119
|
};
|
|
2116
|
-
|
|
2120
|
+
me(
|
|
2117
2121
|
() => a.modelValue,
|
|
2118
2122
|
(d) => {
|
|
2119
2123
|
i.value = d;
|
|
2120
2124
|
}
|
|
2121
|
-
),
|
|
2125
|
+
), me(i, (d) => {
|
|
2122
2126
|
s("update:modelValue", d);
|
|
2123
2127
|
});
|
|
2124
2128
|
const t = Z(() => {
|
|
@@ -2141,25 +2145,25 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2141
2145
|
}
|
|
2142
2146
|
});
|
|
2143
2147
|
return (d, _) => {
|
|
2144
|
-
const V =
|
|
2145
|
-
return n(),
|
|
2146
|
-
O("div",
|
|
2148
|
+
const V = v("el-button"), M = v("el-dialog");
|
|
2149
|
+
return n(), E("div", ka, [
|
|
2150
|
+
O("div", Sa, [
|
|
2147
2151
|
C(M, {
|
|
2148
2152
|
modelValue: i.value,
|
|
2149
2153
|
"onUpdate:modelValue": _[0] || (_[0] = (S) => i.value = S),
|
|
2150
2154
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2151
|
-
class:
|
|
2155
|
+
class: ge({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2152
2156
|
width: t.value
|
|
2153
2157
|
}, {
|
|
2154
|
-
header:
|
|
2155
|
-
O("div",
|
|
2158
|
+
header: A(() => [
|
|
2159
|
+
O("div", Da, z(e.title), 1)
|
|
2156
2160
|
]),
|
|
2157
|
-
footer:
|
|
2161
|
+
footer: A(() => [
|
|
2158
2162
|
e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
|
|
2159
|
-
O("span",
|
|
2163
|
+
O("span", Oa, [
|
|
2160
2164
|
C(V, { onClick: r }, {
|
|
2161
|
-
default:
|
|
2162
|
-
G(
|
|
2165
|
+
default: A(() => [
|
|
2166
|
+
G(z(e.cancelTxt), 1)
|
|
2163
2167
|
]),
|
|
2164
2168
|
_: 1
|
|
2165
2169
|
}),
|
|
@@ -2167,17 +2171,17 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2167
2171
|
type: "primary",
|
|
2168
2172
|
onClick: u
|
|
2169
2173
|
}, {
|
|
2170
|
-
default:
|
|
2171
|
-
G(
|
|
2174
|
+
default: A(() => [
|
|
2175
|
+
G(z(e.confirmTxt), 1)
|
|
2172
2176
|
]),
|
|
2173
2177
|
_: 1
|
|
2174
2178
|
})
|
|
2175
2179
|
])
|
|
2176
2180
|
]) : $("", !0)
|
|
2177
2181
|
]),
|
|
2178
|
-
default:
|
|
2182
|
+
default: A(() => [
|
|
2179
2183
|
O("div", {
|
|
2180
|
-
class:
|
|
2184
|
+
class: ge(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2181
2185
|
}, [
|
|
2182
2186
|
J(d.$slots, "default")
|
|
2183
2187
|
], 2)
|
|
@@ -2189,9 +2193,9 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2189
2193
|
};
|
|
2190
2194
|
}
|
|
2191
2195
|
});
|
|
2192
|
-
const
|
|
2196
|
+
const Fa = { class: "bsgoal-base-tabs" }, Ua = {
|
|
2193
2197
|
name: "BsgoalBaseTabs"
|
|
2194
|
-
},
|
|
2198
|
+
}, La = /* @__PURE__ */ Object.assign(Ua, {
|
|
2195
2199
|
props: {
|
|
2196
2200
|
/**
|
|
2197
2201
|
* 配置项
|
|
@@ -2240,8 +2244,8 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2240
2244
|
s("update:modelValue", u);
|
|
2241
2245
|
};
|
|
2242
2246
|
return (u, t) => {
|
|
2243
|
-
const d =
|
|
2244
|
-
return n(),
|
|
2247
|
+
const d = v("el-tab-pane"), _ = v("el-tabs");
|
|
2248
|
+
return n(), E("div", Fa, [
|
|
2245
2249
|
C(_, {
|
|
2246
2250
|
class: "bsgoal_base_tabs",
|
|
2247
2251
|
stretch: e.stretch,
|
|
@@ -2249,15 +2253,15 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2249
2253
|
"model-value": i.value,
|
|
2250
2254
|
onTabChange: r
|
|
2251
2255
|
}, {
|
|
2252
|
-
default:
|
|
2253
|
-
(n(!0),
|
|
2256
|
+
default: A(() => [
|
|
2257
|
+
(n(!0), E(P, null, Q(e.configOptions, ({ label: V, value: M }, S) => (n(), y(d, {
|
|
2254
2258
|
key: S,
|
|
2255
2259
|
label: V,
|
|
2256
2260
|
name: M
|
|
2257
2261
|
}, {
|
|
2258
|
-
default:
|
|
2262
|
+
default: A(() => [
|
|
2259
2263
|
J(u.$slots, M, {}, () => [
|
|
2260
|
-
G(
|
|
2264
|
+
G(z(V), 1)
|
|
2261
2265
|
])
|
|
2262
2266
|
]),
|
|
2263
2267
|
_: 2
|
|
@@ -2269,9 +2273,9 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2269
2273
|
};
|
|
2270
2274
|
}
|
|
2271
2275
|
});
|
|
2272
|
-
const
|
|
2276
|
+
const Pa = { class: "bsgoal-base-link" }, za = {
|
|
2273
2277
|
name: "BsgoalBaseLink"
|
|
2274
|
-
}, ja = /* @__PURE__ */ Object.assign(
|
|
2278
|
+
}, ja = /* @__PURE__ */ Object.assign(za, {
|
|
2275
2279
|
props: {
|
|
2276
2280
|
/**
|
|
2277
2281
|
* 内容
|
|
@@ -2301,18 +2305,18 @@ const La = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2301
2305
|
s("on-click");
|
|
2302
2306
|
};
|
|
2303
2307
|
return (i, r) => {
|
|
2304
|
-
const u =
|
|
2305
|
-
return n(),
|
|
2308
|
+
const u = v("el-link");
|
|
2309
|
+
return n(), E("div", Pa, [
|
|
2306
2310
|
C(u, {
|
|
2307
2311
|
class: "bsgoal_base_link",
|
|
2308
2312
|
type: "primary",
|
|
2309
2313
|
underline: e.underline,
|
|
2310
|
-
style:
|
|
2314
|
+
style: ze(e.styler),
|
|
2311
2315
|
onClick: a
|
|
2312
2316
|
}, {
|
|
2313
|
-
default:
|
|
2317
|
+
default: A(() => [
|
|
2314
2318
|
J(i.$slots, "default", {}, () => [
|
|
2315
|
-
G(
|
|
2319
|
+
G(z(e.content), 1)
|
|
2316
2320
|
], !0)
|
|
2317
2321
|
]),
|
|
2318
2322
|
_: 3
|
|
@@ -2320,10 +2324,10 @@ const La = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2320
2324
|
]);
|
|
2321
2325
|
};
|
|
2322
2326
|
}
|
|
2323
|
-
}),
|
|
2324
|
-
const
|
|
2327
|
+
}), Ga = /* @__PURE__ */ Ne(ja, [["__scopeId", "data-v-3b0290b0"]]);
|
|
2328
|
+
const Ya = { class: "bsgoal-base-button" }, Ha = {
|
|
2325
2329
|
name: "BsgoalBaseButton"
|
|
2326
|
-
},
|
|
2330
|
+
}, Wa = /* @__PURE__ */ Object.assign(Ha, {
|
|
2327
2331
|
props: {
|
|
2328
2332
|
task: {
|
|
2329
2333
|
type: [Object, Function],
|
|
@@ -2359,7 +2363,7 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2359
2363
|
}
|
|
2360
2364
|
},
|
|
2361
2365
|
setup(e) {
|
|
2362
|
-
const s = e, a =
|
|
2366
|
+
const s = e, a = w(!1), i = () => {
|
|
2363
2367
|
a.value = !0;
|
|
2364
2368
|
const { task: t } = s;
|
|
2365
2369
|
c(t)(() => {
|
|
@@ -2376,15 +2380,15 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2376
2380
|
const { mode: t = "", icon: d = "" } = s;
|
|
2377
2381
|
switch (t) {
|
|
2378
2382
|
case "delete":
|
|
2379
|
-
return
|
|
2383
|
+
return Se;
|
|
2380
2384
|
case "add":
|
|
2381
|
-
return
|
|
2385
|
+
return aa;
|
|
2382
2386
|
}
|
|
2383
2387
|
return d;
|
|
2384
2388
|
});
|
|
2385
2389
|
return (t, d) => {
|
|
2386
|
-
const _ =
|
|
2387
|
-
return n(),
|
|
2390
|
+
const _ = v("el-button");
|
|
2391
|
+
return n(), E("div", Ya, [
|
|
2388
2392
|
O("div", {
|
|
2389
2393
|
class: "base_button",
|
|
2390
2394
|
onClick: i
|
|
@@ -2396,8 +2400,8 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2396
2400
|
loading: a.value,
|
|
2397
2401
|
plain: e.plain
|
|
2398
2402
|
}, {
|
|
2399
|
-
default:
|
|
2400
|
-
G(
|
|
2403
|
+
default: A(() => [
|
|
2404
|
+
G(z(e.content), 1)
|
|
2401
2405
|
]),
|
|
2402
2406
|
_: 1
|
|
2403
2407
|
}, 8, ["type", "icon", "loading", "plain"])
|
|
@@ -2407,9 +2411,9 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2407
2411
|
};
|
|
2408
2412
|
}
|
|
2409
2413
|
});
|
|
2410
|
-
const
|
|
2414
|
+
const Xa = { class: "bsgoal-base-layout" }, Qa = {
|
|
2411
2415
|
name: "BsgoalBaseLayout"
|
|
2412
|
-
},
|
|
2416
|
+
}, Za = /* @__PURE__ */ Object.assign(Qa, {
|
|
2413
2417
|
props: {
|
|
2414
2418
|
/**
|
|
2415
2419
|
* 间隔
|
|
@@ -2427,16 +2431,16 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2427
2431
|
}
|
|
2428
2432
|
},
|
|
2429
2433
|
setup(e) {
|
|
2430
|
-
const s =
|
|
2434
|
+
const s = Be(), a = w(Object.keys(s));
|
|
2431
2435
|
return (i, r) => {
|
|
2432
|
-
const u =
|
|
2433
|
-
return n(),
|
|
2436
|
+
const u = v("el-col"), t = v("el-row");
|
|
2437
|
+
return n(), E("div", Xa, [
|
|
2434
2438
|
C(t, {
|
|
2435
2439
|
class: "base_layout",
|
|
2436
2440
|
gutter: e.gutter
|
|
2437
2441
|
}, {
|
|
2438
|
-
default:
|
|
2439
|
-
(n(!0),
|
|
2442
|
+
default: A(() => [
|
|
2443
|
+
(n(!0), E(P, null, Q(a.value, (d, _) => (n(), y(u, {
|
|
2440
2444
|
key: _,
|
|
2441
2445
|
xs: 24,
|
|
2442
2446
|
sm: 24,
|
|
@@ -2444,7 +2448,7 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2444
2448
|
lg: e.ratio,
|
|
2445
2449
|
xl: e.ratio
|
|
2446
2450
|
}, {
|
|
2447
|
-
default:
|
|
2451
|
+
default: A(() => [
|
|
2448
2452
|
J(i.$slots, d)
|
|
2449
2453
|
]),
|
|
2450
2454
|
_: 2
|
|
@@ -2455,19 +2459,19 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2455
2459
|
]);
|
|
2456
2460
|
};
|
|
2457
2461
|
}
|
|
2458
|
-
}),
|
|
2462
|
+
}), el = l, tl = Ae, al = {
|
|
2459
2463
|
install(e, s = {}) {
|
|
2460
2464
|
const { exclude: a = [] } = s, i = {
|
|
2461
|
-
BsgoalBaseForm:
|
|
2462
|
-
BsgoalBaseTable:
|
|
2463
|
-
BsgoalBaseLine:
|
|
2465
|
+
BsgoalBaseForm: Ze,
|
|
2466
|
+
BsgoalBaseTable: ke,
|
|
2467
|
+
BsgoalBaseLine: Te,
|
|
2464
2468
|
BsgoalBaseSearchTable: Aa,
|
|
2465
|
-
BsgoalBaseTree:
|
|
2466
|
-
BsgoalBaseDialog:
|
|
2467
|
-
BsgoalBaseTabs:
|
|
2468
|
-
BsgoalBaseLink:
|
|
2469
|
-
BsgoalBaseButton:
|
|
2470
|
-
BsgoalBaseLayout:
|
|
2469
|
+
BsgoalBaseTree: Na,
|
|
2470
|
+
BsgoalBaseDialog: Ra,
|
|
2471
|
+
BsgoalBaseTabs: La,
|
|
2472
|
+
BsgoalBaseLink: Ga,
|
|
2473
|
+
BsgoalBaseButton: Wa,
|
|
2474
|
+
BsgoalBaseLayout: Za
|
|
2471
2475
|
};
|
|
2472
2476
|
for (const [r, u] of Object.entries(i))
|
|
2473
2477
|
a.includes(r) || e.component(r, u);
|
|
@@ -2476,8 +2480,8 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2476
2480
|
useFetch: Ae
|
|
2477
2481
|
};
|
|
2478
2482
|
export {
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2483
|
+
el as EnumType,
|
|
2484
|
+
al as default,
|
|
2485
|
+
tl as useFetchApi
|
|
2482
2486
|
};
|
|
2483
2487
|
//# sourceMappingURL=index.mjs.map
|