@bsgoal/common 1.7.7 → 1.8.0
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 +604 -547
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-form/demo.vue +6 -2
- package/src/components/bsgoal-base-layout/demo.vue +49 -0
- package/src/components/bsgoal-base-layout/index.vue +59 -0
- package/src/components/bsgoal-base-table/demo.vue +7 -5
- package/src/components/bsgoal-base-table/index.vue +4 -1
- package/src/components/bsgoal-base-tabs/index.vue +9 -3
- package/src/entry.js +3 -1
- package/src/router/index.js +6 -1
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ke = Object.defineProperty;
|
|
2
2
|
var Te = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var xe = (e,
|
|
5
|
-
for (var a in
|
|
6
|
-
|
|
3
|
+
var Se = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var xe = (e, s, a) => s in e ? ke(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a, pe = (e, s) => {
|
|
5
|
+
for (var a in s || (s = {}))
|
|
6
|
+
Se.call(s, a) && xe(e, a, s[a]);
|
|
7
7
|
if (Te)
|
|
8
|
-
for (var a of Te(
|
|
9
|
-
|
|
8
|
+
for (var a of Te(s))
|
|
9
|
+
De.call(s, a) && xe(e, a, s[a]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as
|
|
13
|
-
import { ElMessage as
|
|
12
|
+
import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as i, createElementVNode as S, withDirectives as X, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as $e, inject as Ce, watch as _e, resolveDirective as Oe, normalizeClass as me, vShow as le, isProxy as Ie, toRaw as Fe, provide as Re, useSlots as Ve, createSlots as Ue, normalizeStyle as Le } from "vue";
|
|
13
|
+
import { ElMessage as Pe } from "element-plus";
|
|
14
14
|
const l = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
@@ -35,27 +35,27 @@ const l = {
|
|
|
35
35
|
};
|
|
36
36
|
let he = null;
|
|
37
37
|
const Ee = (e) => {
|
|
38
|
-
const
|
|
39
|
-
const t =
|
|
40
|
-
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
38
|
+
const s = [], a = [], c = (u = []) => {
|
|
39
|
+
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
40
|
+
u.forEach((_) => {
|
|
41
|
+
const { labelEl: C } = _;
|
|
42
|
+
C.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
44
|
}, r = () => {
|
|
45
45
|
if (e) {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
46
|
+
const u = e.querySelectorAll(".el-form-item__label");
|
|
47
|
+
if (u && u.length) {
|
|
48
48
|
let t = 0;
|
|
49
|
-
|
|
49
|
+
u.forEach((d, _) => {
|
|
50
50
|
d.style.width = "initial", d.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x:
|
|
52
|
-
_ === 0 && (t =
|
|
51
|
+
const { x: C = 0, width: N = 0 } = d.getBoundingClientRect(), D = { x: C, width: N, labelEl: d };
|
|
52
|
+
_ === 0 && (t = C), C === t ? s.push(D) : a.push(D);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
he && clearTimeout(he), he = setTimeout(() => {
|
|
58
|
-
r(),
|
|
58
|
+
r(), c(s), c(a);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, be = {
|
|
61
61
|
/**
|
|
@@ -77,16 +77,16 @@ const Ee = (e) => {
|
|
|
77
77
|
/**
|
|
78
78
|
* 表格自动高度
|
|
79
79
|
*/
|
|
80
|
-
height: (e, { value:
|
|
80
|
+
height: (e, { value: s = 65, arg: a = "" }) => {
|
|
81
81
|
if (e) {
|
|
82
|
-
const { y:
|
|
83
|
-
e.style.height = `calc(100vh - ${
|
|
82
|
+
const { y: c = 0 } = e.getBoundingClientRect();
|
|
83
|
+
e.style.height = `calc(100vh - ${c + s}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const je = { class: "bsgoal-base-tooltip" }, ze = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
|
-
},
|
|
89
|
+
}, Me = /* @__PURE__ */ Object.assign(ze, {
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* 文字提示内容
|
|
@@ -126,29 +126,29 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
setup(e) {
|
|
129
|
-
const
|
|
130
|
-
const { content: r = "", limit:
|
|
129
|
+
const s = e, a = K(() => {
|
|
130
|
+
const { content: r = "", limit: u = 0, none: t = "" } = s;
|
|
131
131
|
let d = r;
|
|
132
132
|
const _ = r.length;
|
|
133
|
-
return
|
|
134
|
-
}),
|
|
135
|
-
const { content: r = "", limit:
|
|
136
|
-
return r.length <
|
|
133
|
+
return u && _ > u && (d = `${r.substring(0, u)}...`), d || t;
|
|
134
|
+
}), c = K(() => {
|
|
135
|
+
const { content: r = "", limit: u = 0 } = s;
|
|
136
|
+
return r.length < u || !u;
|
|
137
137
|
});
|
|
138
|
-
return (r,
|
|
138
|
+
return (r, u) => {
|
|
139
139
|
const t = g("el-tooltip");
|
|
140
|
-
return o(),
|
|
140
|
+
return o(), p("div", je, [
|
|
141
141
|
B(t, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
145
145
|
placement: "top-start",
|
|
146
146
|
content: e.content,
|
|
147
|
-
disabled:
|
|
147
|
+
disabled: c.value
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
149
|
+
default: A(() => [
|
|
150
150
|
J(r.$slots, "default", {}, () => [
|
|
151
|
-
H(
|
|
151
|
+
H(z(a.value), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
@@ -221,25 +221,25 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
224
|
-
setup(e, { expose:
|
|
225
|
-
const
|
|
224
|
+
setup(e, { expose: s, emit: a }) {
|
|
225
|
+
const c = e, r = w(null), u = be.align, t = w({});
|
|
226
226
|
fe(() => {
|
|
227
|
-
const { configOptions:
|
|
228
|
-
|
|
229
|
-
const { value:
|
|
230
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] =
|
|
227
|
+
const { configOptions: h, values: b } = c, x = i(h), $ = i(b);
|
|
228
|
+
x.forEach((V) => {
|
|
229
|
+
const { value: E = "", prop: O = "", type: I = "" } = V;
|
|
230
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = $[O] || E;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
const d = K(() => {
|
|
234
|
-
const { configOptions:
|
|
235
|
-
return
|
|
236
|
-
let { rules:
|
|
237
|
-
const O = { required: !0, message: `${
|
|
238
|
-
return
|
|
234
|
+
const { configOptions: h } = c;
|
|
235
|
+
return i(h).map(($) => {
|
|
236
|
+
let { rules: V = !1, label: E = "" } = $;
|
|
237
|
+
const O = { required: !0, message: `${E}不能为空`, trigger: "blur" };
|
|
238
|
+
return V && (typeof V == "boolean" ? V = [O] : Array.isArray(V) ? V = [O, ...V] : V = [O, V]), $.rules = V, $;
|
|
239
239
|
});
|
|
240
|
-
}), _ = (
|
|
241
|
-
if (!
|
|
242
|
-
switch (
|
|
240
|
+
}), _ = (h = "", b = "", x = "") => {
|
|
241
|
+
if (!x)
|
|
242
|
+
switch (h) {
|
|
243
243
|
case l.INPUT:
|
|
244
244
|
case l.INPUT_TEXT_AREA:
|
|
245
245
|
return `请输入${b}`;
|
|
@@ -259,10 +259,10 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
259
259
|
case l.MONTH_RANGE:
|
|
260
260
|
return ["开始月份", "结束月份"];
|
|
261
261
|
}
|
|
262
|
-
return
|
|
263
|
-
},
|
|
262
|
+
return x;
|
|
263
|
+
}, C = (h = "", b = "") => {
|
|
264
264
|
if (!b)
|
|
265
|
-
switch (
|
|
265
|
+
switch (h) {
|
|
266
266
|
case l.WEEK:
|
|
267
267
|
return "ww";
|
|
268
268
|
case l.DATE:
|
|
@@ -282,62 +282,62 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
282
282
|
return "YYYY-MM-DD HH:mm:ss";
|
|
283
283
|
}
|
|
284
284
|
return b;
|
|
285
|
-
},
|
|
286
|
-
const
|
|
287
|
-
for (const
|
|
288
|
-
const { type:
|
|
289
|
-
if (
|
|
290
|
-
const { 0: I = "", 1:
|
|
291
|
-
|
|
285
|
+
}, N = () => {
|
|
286
|
+
const h = i(t), { configOptions: b } = c, x = i(b);
|
|
287
|
+
for (const $ of x) {
|
|
288
|
+
const { type: V = "", range: E = [], prop: O = "" } = $;
|
|
289
|
+
if (V.endsWith("range") && E && E.length === 2) {
|
|
290
|
+
const { 0: I = "", 1: L = "" } = h[O], { 0: U = "", 1: Y = "" } = E;
|
|
291
|
+
h[U] = I, h[Y] = L;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
return a("on-form",
|
|
294
|
+
return a("on-form", h), h;
|
|
295
295
|
}, D = () => {
|
|
296
296
|
r.value.resetFields(), a("on-clear", t.value);
|
|
297
|
-
}, k = (
|
|
298
|
-
const
|
|
299
|
-
type:
|
|
297
|
+
}, k = (h, b) => {
|
|
298
|
+
const x = {
|
|
299
|
+
type: h,
|
|
300
300
|
prop: b,
|
|
301
301
|
value: t.value[b] || ""
|
|
302
302
|
};
|
|
303
|
-
a("on-change",
|
|
303
|
+
a("on-change", x);
|
|
304
304
|
};
|
|
305
|
-
return
|
|
305
|
+
return s({
|
|
306
306
|
triggerOperationClear: D,
|
|
307
|
-
triggerOperationForm:
|
|
308
|
-
validateForm: (
|
|
307
|
+
triggerOperationForm: N,
|
|
308
|
+
validateForm: (h = () => {
|
|
309
309
|
}) => {
|
|
310
|
-
r.value.validate((b = !1,
|
|
310
|
+
r.value.validate((b = !1, x = {}) => {
|
|
311
311
|
if (b) {
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const $ = N();
|
|
313
|
+
h($);
|
|
314
314
|
} else {
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
[
|
|
318
|
-
0: { message:
|
|
315
|
+
h(!1);
|
|
316
|
+
const $ = Object.keys(x)[0], {
|
|
317
|
+
[$]: {
|
|
318
|
+
0: { message: V = "" }
|
|
319
319
|
}
|
|
320
|
-
} =
|
|
321
|
-
|
|
320
|
+
} = x;
|
|
321
|
+
Pe.error(V);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
}), (
|
|
326
|
-
const
|
|
327
|
-
return o(),
|
|
325
|
+
}), (h, b) => {
|
|
326
|
+
const x = g("el-input"), $ = g("el-input-number"), V = g("el-radio"), E = g("el-radio-group"), O = g("el-option"), I = g("el-select"), L = g("el-slider"), U = g("el-switch"), Y = g("el-date-picker"), F = g("el-time-picker"), Q = g("el-checkbox"), q = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
|
|
327
|
+
return o(), p("div", Ye, [
|
|
328
328
|
S("div", Ge, [
|
|
329
|
-
|
|
329
|
+
X((o(), y(ie, {
|
|
330
330
|
ref_key: "EL_FORM_REF",
|
|
331
331
|
ref: r,
|
|
332
332
|
"label-suffix": ":",
|
|
333
333
|
model: t.value
|
|
334
334
|
}, {
|
|
335
|
-
default:
|
|
335
|
+
default: A(() => [
|
|
336
336
|
B(re, null, {
|
|
337
|
-
default:
|
|
338
|
-
(o(!0),
|
|
339
|
-
label:
|
|
340
|
-
prop:
|
|
337
|
+
default: A(() => [
|
|
338
|
+
(o(!0), p(j, null, W(d.value, ({
|
|
339
|
+
label: P = "",
|
|
340
|
+
prop: T = "",
|
|
341
341
|
type: m = "text",
|
|
342
342
|
placeholder: f = "",
|
|
343
343
|
readonly: v = e.readonlys,
|
|
@@ -348,172 +348,172 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
348
348
|
range: ee = [],
|
|
349
349
|
format: te = "",
|
|
350
350
|
rules: ae = [],
|
|
351
|
-
limit:
|
|
351
|
+
limit: se = e.limits
|
|
352
352
|
} = {}, ce) => (o(), y(oe, {
|
|
353
353
|
key: ce,
|
|
354
354
|
xs: 24,
|
|
355
355
|
sm: 24,
|
|
356
356
|
md: e.medium
|
|
357
357
|
}, {
|
|
358
|
-
default:
|
|
358
|
+
default: A(() => [
|
|
359
359
|
B(ne, {
|
|
360
|
-
label:
|
|
361
|
-
prop:
|
|
360
|
+
label: P,
|
|
361
|
+
prop: T,
|
|
362
362
|
rules: ae
|
|
363
363
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
J(
|
|
366
|
-
option: { readonly: v, value: t.value[
|
|
364
|
+
default: A(() => [
|
|
365
|
+
J(h.$slots, [T], {
|
|
366
|
+
option: { readonly: v, value: t.value[T], values: t.value }
|
|
367
367
|
}, () => [
|
|
368
|
-
v ? (o(),
|
|
369
|
-
B(
|
|
370
|
-
content: t.value[
|
|
371
|
-
limit:
|
|
368
|
+
v ? (o(), p("div", He, [
|
|
369
|
+
B(Me, {
|
|
370
|
+
content: t.value[T],
|
|
371
|
+
limit: se,
|
|
372
372
|
none: e.none
|
|
373
373
|
}, null, 8, ["content", "limit", "none"])
|
|
374
|
-
])) : (o(),
|
|
375
|
-
m ===
|
|
374
|
+
])) : (o(), p(j, { key: 0 }, [
|
|
375
|
+
m === i(l).INPUT ? (o(), y(x, {
|
|
376
376
|
key: 0,
|
|
377
|
-
modelValue: t.value[
|
|
378
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
379
|
-
placeholder: _(m,
|
|
377
|
+
modelValue: t.value[T],
|
|
378
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
379
|
+
placeholder: _(m, P, f),
|
|
380
380
|
clearable: G,
|
|
381
|
-
onChange: (n) => k(m,
|
|
381
|
+
onChange: (n) => k(m, T)
|
|
382
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
383
|
-
m ===
|
|
383
|
+
m === i(l).INPUT_TEXT_AREA ? (o(), y(x, {
|
|
384
384
|
key: 1,
|
|
385
|
-
modelValue: t.value[
|
|
386
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
385
|
+
modelValue: t.value[T],
|
|
386
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
387
387
|
type: "textarea",
|
|
388
388
|
rows: ve,
|
|
389
389
|
clearable: G,
|
|
390
|
-
placeholder: _(m,
|
|
391
|
-
onChange: (n) => k(m,
|
|
390
|
+
placeholder: _(m, P, f),
|
|
391
|
+
onChange: (n) => k(m, T)
|
|
392
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
393
|
-
m ===
|
|
393
|
+
m === i(l).INPUT_NUMBER ? (o(), y($, {
|
|
394
394
|
key: 2,
|
|
395
|
-
modelValue:
|
|
396
|
-
"onUpdate:modelValue": b[0] || (b[0] = (n) =>
|
|
395
|
+
modelValue: h.num,
|
|
396
|
+
"onUpdate:modelValue": b[0] || (b[0] = (n) => h.num = n),
|
|
397
397
|
min: de,
|
|
398
398
|
max: ge,
|
|
399
399
|
onChange: k
|
|
400
400
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
401
|
-
m ===
|
|
401
|
+
m === i(l).RADIO ? (o(), y(E, {
|
|
402
402
|
key: 3,
|
|
403
|
-
modelValue: t.value[
|
|
404
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
405
|
-
onChange: (n) => k(m,
|
|
403
|
+
modelValue: t.value[T],
|
|
404
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
405
|
+
onChange: (n) => k(m, T)
|
|
406
406
|
}, {
|
|
407
|
-
default:
|
|
408
|
-
(o(!0),
|
|
409
|
-
key:
|
|
407
|
+
default: A(() => [
|
|
408
|
+
(o(!0), p(j, null, W(ee, (n, Z) => (o(), y(V, {
|
|
409
|
+
key: Z,
|
|
410
410
|
label: n.value
|
|
411
411
|
}, {
|
|
412
|
-
default:
|
|
413
|
-
H(
|
|
412
|
+
default: A(() => [
|
|
413
|
+
H(z(n.label), 1)
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
416
416
|
}, 1032, ["label"]))), 128))
|
|
417
417
|
]),
|
|
418
418
|
_: 2
|
|
419
419
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
420
|
-
m ===
|
|
420
|
+
m === i(l).SELECT ? (o(), y(I, {
|
|
421
421
|
key: 4,
|
|
422
|
-
modelValue: t.value[
|
|
423
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
424
|
-
placeholder: _(m,
|
|
425
|
-
onChange: (n) => k(m,
|
|
422
|
+
modelValue: t.value[T],
|
|
423
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
424
|
+
placeholder: _(m, P, f),
|
|
425
|
+
onChange: (n) => k(m, T)
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
(o(!0),
|
|
429
|
-
key:
|
|
427
|
+
default: A(() => [
|
|
428
|
+
(o(!0), p(j, null, W(ee, (n, Z) => (o(), y(O, {
|
|
429
|
+
key: Z,
|
|
430
430
|
label: n.label,
|
|
431
431
|
value: n.value
|
|
432
432
|
}, null, 8, ["label", "value"]))), 128))
|
|
433
433
|
]),
|
|
434
434
|
_: 2
|
|
435
435
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
436
|
-
m ===
|
|
436
|
+
m === i(l).SLIDER ? (o(), y(L, {
|
|
437
437
|
key: 5,
|
|
438
|
-
modelValue: t.value[
|
|
439
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
438
|
+
modelValue: t.value[T],
|
|
439
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
440
440
|
min: de,
|
|
441
441
|
max: ge,
|
|
442
|
-
onChange: (n) => k(m,
|
|
442
|
+
onChange: (n) => k(m, T)
|
|
443
443
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
444
|
-
m ===
|
|
444
|
+
m === i(l).SWITCH ? (o(), y(U, {
|
|
445
445
|
key: 6,
|
|
446
|
-
modelValue: t.value[
|
|
447
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
446
|
+
modelValue: t.value[T],
|
|
447
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
448
448
|
"active-value": ee[0] || !0,
|
|
449
449
|
"inactive-value": ee[1] || !1,
|
|
450
|
-
onChange: (n) => k(m,
|
|
450
|
+
onChange: (n) => k(m, T)
|
|
451
451
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
452
|
-
[
|
|
452
|
+
[i(l).DATE, i(l).MONTH, i(l).YEAR, i(l).DATE_TIME].includes(
|
|
453
453
|
m
|
|
454
454
|
) ? (o(), y(Y, {
|
|
455
455
|
key: 7,
|
|
456
|
-
modelValue: t.value[
|
|
457
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
458
|
-
format:
|
|
459
|
-
"value-format":
|
|
456
|
+
modelValue: t.value[T],
|
|
457
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
458
|
+
format: C(m, te),
|
|
459
|
+
"value-format": C(m, te),
|
|
460
460
|
type: m,
|
|
461
|
-
placeholder: _(m,
|
|
462
|
-
onChange: (n) => k(m,
|
|
461
|
+
placeholder: _(m, P, f),
|
|
462
|
+
onChange: (n) => k(m, T)
|
|
463
463
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
464
464
|
[
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
i(l).DATE_RANGE,
|
|
466
|
+
i(l).MONTH_RANGE,
|
|
467
|
+
i(l).DATE_TIME_RANGE
|
|
468
468
|
].includes(m) ? (o(), y(Y, {
|
|
469
469
|
key: 8,
|
|
470
|
-
modelValue: t.value[
|
|
471
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
470
|
+
modelValue: t.value[T],
|
|
471
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
472
472
|
type: m,
|
|
473
|
-
"value-format":
|
|
474
|
-
"start-placeholder": _(m,
|
|
475
|
-
"end-placeholder": _(m,
|
|
476
|
-
onChange: (n) => k(m,
|
|
473
|
+
"value-format": C(m, te),
|
|
474
|
+
"start-placeholder": _(m, P, f)[0],
|
|
475
|
+
"end-placeholder": _(m, P, f)[1],
|
|
476
|
+
onChange: (n) => k(m, T)
|
|
477
477
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
478
|
-
[
|
|
478
|
+
[i(l).TIME].includes(m) ? (o(), y(F, {
|
|
479
479
|
key: 9,
|
|
480
|
-
modelValue: t.value[
|
|
481
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
480
|
+
modelValue: t.value[T],
|
|
481
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
482
482
|
"arrow-control": "",
|
|
483
|
-
"value-format":
|
|
484
|
-
placeholder: _(m,
|
|
485
|
-
onChange: (n) => k(m,
|
|
483
|
+
"value-format": C(m, te),
|
|
484
|
+
placeholder: _(m, P, f),
|
|
485
|
+
onChange: (n) => k(m, T)
|
|
486
486
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
487
|
-
[
|
|
487
|
+
[i(l).TIME_RANGE].includes(m) ? (o(), y(F, {
|
|
488
488
|
key: 10,
|
|
489
|
-
modelValue: t.value[
|
|
490
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
489
|
+
modelValue: t.value[T],
|
|
490
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
491
491
|
"is-range": "",
|
|
492
|
-
"value-format":
|
|
493
|
-
"start-placeholder": _(m,
|
|
494
|
-
"end-placeholder": _(m,
|
|
495
|
-
onChange: (n) => k(m,
|
|
492
|
+
"value-format": C(m, te),
|
|
493
|
+
"start-placeholder": _(m, P, f)[0],
|
|
494
|
+
"end-placeholder": _(m, P, f)[1],
|
|
495
|
+
onChange: (n) => k(m, T)
|
|
496
496
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
497
|
-
[
|
|
497
|
+
[i(l).CHECKBOX].includes(m) ? (o(), y(q, {
|
|
498
498
|
key: 11,
|
|
499
|
-
modelValue: t.value[
|
|
500
|
-
"onUpdate:modelValue": (n) => t.value[
|
|
501
|
-
onChange: (n) => k(m,
|
|
499
|
+
modelValue: t.value[T],
|
|
500
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
501
|
+
onChange: (n) => k(m, T)
|
|
502
502
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
(o(!0),
|
|
505
|
-
key:
|
|
503
|
+
default: A(() => [
|
|
504
|
+
(o(!0), p(j, null, W(ee, (n, Z) => (o(), y(Q, {
|
|
505
|
+
key: Z,
|
|
506
506
|
label: n.value
|
|
507
507
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
H(
|
|
508
|
+
default: A(() => [
|
|
509
|
+
H(z(n.label), 1)
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, 1032, ["label"]))), 128))
|
|
513
513
|
]),
|
|
514
514
|
_: 2
|
|
515
515
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
516
|
-
[].includes(m) ? (o(),
|
|
516
|
+
[].includes(m) ? (o(), p(j, { key: 12 }, [], 64)) : M("", !0)
|
|
517
517
|
], 64))
|
|
518
518
|
])
|
|
519
519
|
]),
|
|
@@ -528,7 +528,7 @@ const Ye = { class: "bsgoal-base-form" }, Ge = { class: "base_form" }, He = { ke
|
|
|
528
528
|
]),
|
|
529
529
|
_: 3
|
|
530
530
|
}, 8, ["model"])), [
|
|
531
|
-
[
|
|
531
|
+
[i(u)]
|
|
532
532
|
])
|
|
533
533
|
])
|
|
534
534
|
]);
|
|
@@ -565,13 +565,13 @@ const Qe = { class: "bsgoal-base-table-content" }, Ze = { class: "base_table_con
|
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
567
|
setup(e) {
|
|
568
|
-
return (
|
|
568
|
+
return (s, a) => (o(), p("div", Qe, [
|
|
569
569
|
S("div", Ze, [
|
|
570
|
-
e.tooltip ? (o(), y(
|
|
570
|
+
e.tooltip ? (o(), y(Me, {
|
|
571
571
|
key: 0,
|
|
572
572
|
content: e.data,
|
|
573
573
|
limit: e.limit
|
|
574
|
-
}, null, 8, ["content", "limit"])) : (o(),
|
|
574
|
+
}, null, 8, ["content", "limit"])) : (o(), p("div", Ke, z(e.data), 1))
|
|
575
575
|
])
|
|
576
576
|
]));
|
|
577
577
|
}
|
|
@@ -738,30 +738,30 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
|
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
740
|
emits: ["on-size-change", "on-current-change"],
|
|
741
|
-
setup(e, { emit:
|
|
742
|
-
const a = (
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
}, r =
|
|
747
|
-
return (
|
|
741
|
+
setup(e, { emit: s }) {
|
|
742
|
+
const a = (u = 0) => {
|
|
743
|
+
s("on-size-change", u);
|
|
744
|
+
}, c = (u = 1) => {
|
|
745
|
+
s("on-current-change", u);
|
|
746
|
+
}, r = w(1);
|
|
747
|
+
return (u, t) => {
|
|
748
748
|
const d = g("el-pagination"), _ = g("el-config-provider");
|
|
749
|
-
return o(),
|
|
749
|
+
return o(), p("div", tt, [
|
|
750
750
|
S("div", at, [
|
|
751
|
-
B(_, { locale:
|
|
752
|
-
default:
|
|
751
|
+
B(_, { locale: i(et) }, {
|
|
752
|
+
default: A(() => [
|
|
753
753
|
B(d, {
|
|
754
754
|
background: "",
|
|
755
755
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
756
756
|
"current-page": r.value,
|
|
757
|
-
"onUpdate:currentPage": t[0] || (t[0] = (
|
|
757
|
+
"onUpdate:currentPage": t[0] || (t[0] = (C) => r.value = C),
|
|
758
758
|
"page-sizes": e.pageSizes,
|
|
759
759
|
"page-size": e.pageSize,
|
|
760
760
|
total: e.total,
|
|
761
761
|
onSizeChange: a,
|
|
762
|
-
onCurrentChange:
|
|
762
|
+
onCurrentChange: c
|
|
763
763
|
}, {
|
|
764
|
-
next:
|
|
764
|
+
next: A(() => [
|
|
765
765
|
lt
|
|
766
766
|
]),
|
|
767
767
|
_: 1
|
|
@@ -774,14 +774,14 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
|
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
|
-
const
|
|
777
|
+
const Be = (e, s) => {
|
|
778
778
|
const a = e.__vccOpts || e;
|
|
779
|
-
for (const [
|
|
780
|
-
a[
|
|
779
|
+
for (const [c, r] of s)
|
|
780
|
+
a[c] = r;
|
|
781
781
|
return a;
|
|
782
|
-
},
|
|
782
|
+
}, st = {
|
|
783
783
|
name: "BsgoalBaseTableEmpty"
|
|
784
|
-
},
|
|
784
|
+
}, ut = { class: "bsgoal-base-table-empty" }, ct = /* @__PURE__ */ S("div", { class: "base_table_empty" }, [
|
|
785
785
|
/* @__PURE__ */ S("div", { class: "base_table_empty_img" }, [
|
|
786
786
|
/* @__PURE__ */ S("img", {
|
|
787
787
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
@@ -792,35 +792,35 @@ const Me = (e, u) => {
|
|
|
792
792
|
], -1), rt = [
|
|
793
793
|
ct
|
|
794
794
|
];
|
|
795
|
-
function it(e,
|
|
796
|
-
return o(),
|
|
795
|
+
function it(e, s, a, c, r, u) {
|
|
796
|
+
return o(), p("div", ut, rt);
|
|
797
797
|
}
|
|
798
|
-
const dt = /* @__PURE__ */
|
|
799
|
-
const r =
|
|
798
|
+
const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expression: s = 75, arg: a = {}, height: c = "" } = {}) => {
|
|
799
|
+
const r = i(e);
|
|
800
800
|
if (r) {
|
|
801
|
-
const
|
|
802
|
-
|
|
803
|
-
const { y: t = 0 } =
|
|
804
|
-
let d = `calc(100vh - ${t +
|
|
805
|
-
const _ = Number.parseInt(
|
|
806
|
-
|
|
801
|
+
const u = r.querySelector(".el-table");
|
|
802
|
+
u && $e(() => {
|
|
803
|
+
const { y: t = 0 } = u.getBoundingClientRect();
|
|
804
|
+
let d = `calc(100vh - ${t + s}px)`;
|
|
805
|
+
const _ = Number.parseInt(c);
|
|
806
|
+
c && (_ ? d = `${c}px` : d = c), u.style.height = d;
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
|
-
}, ye = (e = Promise.resolve(),
|
|
810
|
-
const r =
|
|
811
|
-
return a.value = !0, e.then((
|
|
812
|
-
const { data: t = {}, message: d = "" } =
|
|
813
|
-
|
|
814
|
-
}).catch((
|
|
815
|
-
if (typeof
|
|
816
|
-
const { message: t = "" } =
|
|
809
|
+
}, ye = (e = Promise.resolve(), s = null, a = w(!1), c = w(null)) => {
|
|
810
|
+
const r = w("");
|
|
811
|
+
return a.value = !0, e.then((u = {}) => {
|
|
812
|
+
const { data: t = {}, message: d = "" } = u;
|
|
813
|
+
c.value = t, r.value = d, s && s(!0, t), a.value = !1;
|
|
814
|
+
}).catch((u = {}) => {
|
|
815
|
+
if (typeof u == "object") {
|
|
816
|
+
const { message: t = "" } = u;
|
|
817
817
|
r.value = t;
|
|
818
818
|
} else
|
|
819
|
-
r.value =
|
|
820
|
-
|
|
819
|
+
r.value = u;
|
|
820
|
+
s && s(!1, u), a.value = !1;
|
|
821
821
|
}).finally(() => {
|
|
822
822
|
a.value = !1;
|
|
823
|
-
}), { data:
|
|
823
|
+
}), { data: c, message: r, loading: a };
|
|
824
824
|
}, mt = (e = null) => {
|
|
825
825
|
switch (toString.apply(e)) {
|
|
826
826
|
case "[object Object]":
|
|
@@ -844,7 +844,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
844
844
|
class: "base_table_menu"
|
|
845
845
|
}, ht = {
|
|
846
846
|
name: "BsgoalBaseTable"
|
|
847
|
-
},
|
|
847
|
+
}, we = /* @__PURE__ */ Object.assign(ht, {
|
|
848
848
|
props: {
|
|
849
849
|
/**
|
|
850
850
|
* >----------props----------<
|
|
@@ -950,57 +950,57 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
950
950
|
default: !0
|
|
951
951
|
}
|
|
952
952
|
},
|
|
953
|
-
setup(e, { expose:
|
|
954
|
-
const a = e,
|
|
955
|
-
const { configOptions:
|
|
953
|
+
setup(e, { expose: s }) {
|
|
954
|
+
const a = e, c = K(() => {
|
|
955
|
+
const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, L = i(E), U = [];
|
|
956
956
|
return O && U.push({
|
|
957
957
|
label: "操作",
|
|
958
958
|
fixed: "right",
|
|
959
959
|
prop: "operation",
|
|
960
960
|
width: I
|
|
961
|
-
}), [...
|
|
962
|
-
}), r =
|
|
961
|
+
}), [...L, ...U];
|
|
962
|
+
}), r = w(null), u = Ce("transferFoldStatus");
|
|
963
963
|
fe(() => {
|
|
964
|
-
const { height:
|
|
965
|
-
gt(
|
|
964
|
+
const { height: E } = a, O = u ? u.value : !1, I = i(a.expression);
|
|
965
|
+
gt(E) || _t(r, { arg: O, expression: I, height: E });
|
|
966
966
|
});
|
|
967
|
-
const t =
|
|
967
|
+
const t = i(a.mapProps), d = pe({
|
|
968
968
|
currentPage: "currentPage",
|
|
969
969
|
pageSize: "pageSize",
|
|
970
970
|
rows: "rows",
|
|
971
971
|
total: "total"
|
|
972
|
-
}, t), _ =
|
|
973
|
-
const { fetch:
|
|
974
|
-
I && (F[d.currentPage] = U, F[d.pageSize] = Y), ye(
|
|
972
|
+
}, t), _ = w(1), C = w(10), N = w(0), D = w({}), k = w(a.loading), R = w(), h = w({}), b = () => {
|
|
973
|
+
const { fetch: E, call: O, hasPage: I } = a, L = D.value, U = _.value, Y = C.value, F = pe({}, L);
|
|
974
|
+
I && (F[d.currentPage] = U, F[d.pageSize] = Y), ye(E(F), O, k, h);
|
|
975
975
|
};
|
|
976
976
|
fe(() => {
|
|
977
977
|
R.value = a.data;
|
|
978
|
-
}), _e(
|
|
979
|
-
a.hasPage ? (R.value =
|
|
978
|
+
}), _e(h, (E) => {
|
|
979
|
+
a.hasPage ? (R.value = E[d.rows], N.value = E[d.total]) : R.value = E;
|
|
980
980
|
});
|
|
981
|
-
const
|
|
982
|
-
D.value =
|
|
983
|
-
},
|
|
984
|
-
_.value =
|
|
985
|
-
},
|
|
986
|
-
|
|
981
|
+
const x = (E = {}) => {
|
|
982
|
+
D.value = E, _.value = 1, b();
|
|
983
|
+
}, $ = (E = 1) => {
|
|
984
|
+
_.value = E;
|
|
985
|
+
}, V = (E = 10) => {
|
|
986
|
+
C.value = E;
|
|
987
987
|
};
|
|
988
|
-
return _e([_,
|
|
988
|
+
return _e([_, C], () => {
|
|
989
989
|
b();
|
|
990
|
-
}),
|
|
991
|
-
refreshList:
|
|
992
|
-
}), (
|
|
993
|
-
const I = g("el-table-column"),
|
|
994
|
-
return o(),
|
|
990
|
+
}), s({
|
|
991
|
+
refreshList: x
|
|
992
|
+
}), (E, O) => {
|
|
993
|
+
const I = g("el-table-column"), L = g("el-table"), U = Oe("loading");
|
|
994
|
+
return o(), p("div", ft, [
|
|
995
995
|
S("div", vt, [
|
|
996
|
-
|
|
997
|
-
J(
|
|
996
|
+
E.$slots.menu ? (o(), p("div", pt, [
|
|
997
|
+
J(E.$slots, "menu")
|
|
998
998
|
])) : M("", !0),
|
|
999
999
|
S("div", {
|
|
1000
1000
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1001
1001
|
ref: r
|
|
1002
1002
|
}, [
|
|
1003
|
-
|
|
1003
|
+
X((o(), y(L, {
|
|
1004
1004
|
stripe: "",
|
|
1005
1005
|
border: "",
|
|
1006
1006
|
"highlight-current-row": "",
|
|
@@ -1013,20 +1013,20 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1013
1013
|
fontSize: "14px"
|
|
1014
1014
|
}
|
|
1015
1015
|
}, {
|
|
1016
|
-
empty:
|
|
1016
|
+
empty: A(() => [
|
|
1017
1017
|
B(dt)
|
|
1018
1018
|
]),
|
|
1019
|
-
default:
|
|
1019
|
+
default: A(() => [
|
|
1020
1020
|
e.selection ? (o(), y(I, {
|
|
1021
1021
|
key: 0,
|
|
1022
1022
|
fixed: "left",
|
|
1023
1023
|
type: "selection",
|
|
1024
1024
|
width: "40"
|
|
1025
1025
|
})) : M("", !0),
|
|
1026
|
-
(o(!0),
|
|
1026
|
+
(o(!0), p(j, null, W(c.value, ({
|
|
1027
1027
|
prop: Y = "",
|
|
1028
1028
|
label: F = "",
|
|
1029
|
-
align:
|
|
1029
|
+
align: Q = "center",
|
|
1030
1030
|
width: q = "",
|
|
1031
1031
|
fixed: ne = !1,
|
|
1032
1032
|
tooltip: oe = !1,
|
|
@@ -1034,17 +1034,17 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1034
1034
|
} = {}, ie) => (o(), y(I, {
|
|
1035
1035
|
key: ie,
|
|
1036
1036
|
label: F,
|
|
1037
|
-
align:
|
|
1037
|
+
align: Q,
|
|
1038
1038
|
width: q,
|
|
1039
1039
|
fixed: ne,
|
|
1040
1040
|
"min-width": `${F.length * 14 + 24}px`
|
|
1041
1041
|
}, {
|
|
1042
|
-
default:
|
|
1043
|
-
J(
|
|
1042
|
+
default: A(({ row: P }) => [
|
|
1043
|
+
J(E.$slots, Y, { row: P }, () => [
|
|
1044
1044
|
B(qe, {
|
|
1045
1045
|
limit: re,
|
|
1046
1046
|
tooltip: oe,
|
|
1047
|
-
data:
|
|
1047
|
+
data: P[Y]
|
|
1048
1048
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1049
1049
|
])
|
|
1050
1050
|
]),
|
|
@@ -1058,9 +1058,9 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1058
1058
|
], 512),
|
|
1059
1059
|
e.hasPage ? (o(), y(ot, {
|
|
1060
1060
|
key: 1,
|
|
1061
|
-
total:
|
|
1062
|
-
onOnCurrentChange:
|
|
1063
|
-
onOnSizeChange:
|
|
1061
|
+
total: N.value,
|
|
1062
|
+
onOnCurrentChange: $,
|
|
1063
|
+
onOnSizeChange: V
|
|
1064
1064
|
}, null, 8, ["total"])) : M("", !0)
|
|
1065
1065
|
])
|
|
1066
1066
|
]);
|
|
@@ -1080,7 +1080,7 @@ const Et = {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
},
|
|
1082
1082
|
setup(e) {
|
|
1083
|
-
return (
|
|
1083
|
+
return (s, a) => (o(), p("div", {
|
|
1084
1084
|
class: me(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1085
1085
|
}, [
|
|
1086
1086
|
S("div", {
|
|
@@ -1090,10 +1090,10 @@ const Et = {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1093
|
-
var
|
|
1093
|
+
var ue = (e, s) => {
|
|
1094
1094
|
let a = e.__vccOpts || e;
|
|
1095
|
-
for (let [
|
|
1096
|
-
a[
|
|
1095
|
+
for (let [c, r] of s)
|
|
1096
|
+
a[c] = r;
|
|
1097
1097
|
return a;
|
|
1098
1098
|
}, bt = {
|
|
1099
1099
|
name: "ArrowDown"
|
|
@@ -1112,12 +1112,12 @@ var se = (e, u) => {
|
|
|
1112
1112
|
), Tt = [
|
|
1113
1113
|
At
|
|
1114
1114
|
];
|
|
1115
|
-
function xt(e,
|
|
1116
|
-
return o(),
|
|
1115
|
+
function xt(e, s, a, c, r, u) {
|
|
1116
|
+
return o(), p("svg", yt, Tt);
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]), Ct = {
|
|
1119
1119
|
name: "ArrowLeft"
|
|
1120
|
-
},
|
|
1120
|
+
}, Vt = {
|
|
1121
1121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1122
1122
|
viewBox: "0 0 1024 1024"
|
|
1123
1123
|
}, Mt = /* @__PURE__ */ S(
|
|
@@ -1132,10 +1132,10 @@ var Ct = /* @__PURE__ */ se(bt, [["render", xt], ["__file", "arrow-down.vue"]]),
|
|
|
1132
1132
|
), Bt = [
|
|
1133
1133
|
Mt
|
|
1134
1134
|
];
|
|
1135
|
-
function wt(e,
|
|
1136
|
-
return o(),
|
|
1135
|
+
function wt(e, s, a, c, r, u) {
|
|
1136
|
+
return o(), p("svg", Vt, Bt);
|
|
1137
1137
|
}
|
|
1138
|
-
var Nt = /* @__PURE__ */
|
|
1138
|
+
var Nt = /* @__PURE__ */ ue(Ct, [["render", wt], ["__file", "arrow-left.vue"]]), kt = {
|
|
1139
1139
|
name: "ArrowRight"
|
|
1140
1140
|
}, St = {
|
|
1141
1141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1152,15 +1152,15 @@ var Nt = /* @__PURE__ */ se(Vt, [["render", wt], ["__file", "arrow-left.vue"]]),
|
|
|
1152
1152
|
), Ot = [
|
|
1153
1153
|
Dt
|
|
1154
1154
|
];
|
|
1155
|
-
function It(e,
|
|
1156
|
-
return o(),
|
|
1155
|
+
function It(e, s, a, c, r, u) {
|
|
1156
|
+
return o(), p("svg", St, Ot);
|
|
1157
1157
|
}
|
|
1158
|
-
var Ft = /* @__PURE__ */
|
|
1158
|
+
var Ft = /* @__PURE__ */ ue(kt, [["render", It], ["__file", "arrow-right.vue"]]), Rt = {
|
|
1159
1159
|
name: "ArrowUp"
|
|
1160
1160
|
}, Ut = {
|
|
1161
1161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1162
1162
|
viewBox: "0 0 1024 1024"
|
|
1163
|
-
},
|
|
1163
|
+
}, Lt = /* @__PURE__ */ S(
|
|
1164
1164
|
"path",
|
|
1165
1165
|
{
|
|
1166
1166
|
fill: "currentColor",
|
|
@@ -1169,13 +1169,13 @@ var Ft = /* @__PURE__ */ se(kt, [["render", It], ["__file", "arrow-right.vue"]])
|
|
|
1169
1169
|
null,
|
|
1170
1170
|
-1
|
|
1171
1171
|
/* HOISTED */
|
|
1172
|
-
),
|
|
1173
|
-
|
|
1172
|
+
), Pt = [
|
|
1173
|
+
Lt
|
|
1174
1174
|
];
|
|
1175
|
-
function
|
|
1176
|
-
return o(),
|
|
1175
|
+
function jt(e, s, a, c, r, u) {
|
|
1176
|
+
return o(), p("svg", Ut, Pt);
|
|
1177
1177
|
}
|
|
1178
|
-
var
|
|
1178
|
+
var zt = /* @__PURE__ */ ue(Rt, [["render", jt], ["__file", "arrow-up.vue"]]), Yt = {
|
|
1179
1179
|
name: "Delete"
|
|
1180
1180
|
}, Gt = {
|
|
1181
1181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1192,10 +1192,10 @@ var jt = /* @__PURE__ */ se(Rt, [["render", zt], ["__file", "arrow-up.vue"]]), Y
|
|
|
1192
1192
|
), Wt = [
|
|
1193
1193
|
Ht
|
|
1194
1194
|
];
|
|
1195
|
-
function Xt(e,
|
|
1196
|
-
return o(),
|
|
1195
|
+
function Xt(e, s, a, c, r, u) {
|
|
1196
|
+
return o(), p("svg", Gt, Wt);
|
|
1197
1197
|
}
|
|
1198
|
-
var
|
|
1198
|
+
var Ne = /* @__PURE__ */ ue(Yt, [["render", Xt], ["__file", "delete.vue"]]), Qt = {
|
|
1199
1199
|
name: "Plus"
|
|
1200
1200
|
}, Zt = {
|
|
1201
1201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1212,10 +1212,10 @@ var we = /* @__PURE__ */ se(Yt, [["render", Xt], ["__file", "delete.vue"]]), Qt
|
|
|
1212
1212
|
), Jt = [
|
|
1213
1213
|
Kt
|
|
1214
1214
|
];
|
|
1215
|
-
function qt(e,
|
|
1216
|
-
return o(),
|
|
1215
|
+
function qt(e, s, a, c, r, u) {
|
|
1216
|
+
return o(), p("svg", Zt, Jt);
|
|
1217
1217
|
}
|
|
1218
|
-
var ea = /* @__PURE__ */
|
|
1218
|
+
var ea = /* @__PURE__ */ ue(Qt, [["render", qt], ["__file", "plus.vue"]]), ta = {
|
|
1219
1219
|
name: "Search"
|
|
1220
1220
|
}, aa = {
|
|
1221
1221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1232,11 +1232,11 @@ var ea = /* @__PURE__ */ se(Qt, [["render", qt], ["__file", "plus.vue"]]), ta =
|
|
|
1232
1232
|
), na = [
|
|
1233
1233
|
la
|
|
1234
1234
|
];
|
|
1235
|
-
function oa(e,
|
|
1236
|
-
return o(),
|
|
1235
|
+
function oa(e, s, a, c, r, u) {
|
|
1236
|
+
return o(), p("svg", aa, na);
|
|
1237
1237
|
}
|
|
1238
|
-
var
|
|
1239
|
-
const
|
|
1238
|
+
var sa = /* @__PURE__ */ ue(ta, [["render", oa], ["__file", "search.vue"]]);
|
|
1239
|
+
const ua = { class: "bsgoal-base-search-operation" }, ca = {
|
|
1240
1240
|
name: "BsgoalBaseSearchOperation"
|
|
1241
1241
|
}, ra = /* @__PURE__ */ Object.assign(ca, {
|
|
1242
1242
|
props: {
|
|
@@ -1249,45 +1249,45 @@ const sa = { class: "bsgoal-base-search-operation" }, ca = {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
},
|
|
1251
1251
|
emits: ["on-fold"],
|
|
1252
|
-
setup(e, { emit:
|
|
1253
|
-
const a =
|
|
1254
|
-
a.value = !
|
|
1252
|
+
setup(e, { emit: s }) {
|
|
1253
|
+
const a = w(!1), c = () => {
|
|
1254
|
+
a.value = !i(a), s("on-fold", a.value);
|
|
1255
1255
|
};
|
|
1256
|
-
return (r,
|
|
1256
|
+
return (r, u) => {
|
|
1257
1257
|
const t = g("el-button"), d = g("el-icon");
|
|
1258
|
-
return o(),
|
|
1258
|
+
return o(), p("div", ua, [
|
|
1259
1259
|
B(t, {
|
|
1260
1260
|
type: "primary",
|
|
1261
|
-
icon:
|
|
1262
|
-
onClick:
|
|
1261
|
+
icon: i(sa),
|
|
1262
|
+
onClick: u[0] || (u[0] = (_) => r.$emit("on-search"))
|
|
1263
1263
|
}, {
|
|
1264
|
-
default:
|
|
1264
|
+
default: A(() => [
|
|
1265
1265
|
H("搜索")
|
|
1266
1266
|
]),
|
|
1267
1267
|
_: 1
|
|
1268
1268
|
}, 8, ["icon"]),
|
|
1269
1269
|
B(t, {
|
|
1270
|
-
icon:
|
|
1271
|
-
onClick:
|
|
1270
|
+
icon: i(Ne),
|
|
1271
|
+
onClick: u[1] || (u[1] = (_) => r.$emit("on-clear"))
|
|
1272
1272
|
}, {
|
|
1273
|
-
default:
|
|
1273
|
+
default: A(() => [
|
|
1274
1274
|
H("清空")
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 1
|
|
1277
1277
|
}, 8, ["icon"]),
|
|
1278
|
-
e.fold ? (o(),
|
|
1278
|
+
e.fold ? (o(), p("div", {
|
|
1279
1279
|
key: 0,
|
|
1280
1280
|
class: "operation_fold",
|
|
1281
1281
|
style: { color: "var(--el-color-primary)" },
|
|
1282
|
-
onClick:
|
|
1282
|
+
onClick: c
|
|
1283
1283
|
}, [
|
|
1284
|
-
H(
|
|
1284
|
+
H(z(a.value ? "收起" : "展开"), 1),
|
|
1285
1285
|
B(d, { color: "#409EFC" }, {
|
|
1286
|
-
default:
|
|
1287
|
-
|
|
1286
|
+
default: A(() => [
|
|
1287
|
+
X(B(i(zt), null, null, 512), [
|
|
1288
1288
|
[le, a.value]
|
|
1289
1289
|
]),
|
|
1290
|
-
|
|
1290
|
+
X(B(i($t), null, null, 512), [
|
|
1291
1291
|
[le, !a.value]
|
|
1292
1292
|
])
|
|
1293
1293
|
]),
|
|
@@ -1332,16 +1332,16 @@ const ia = { class: "bsgoal-base-cascader" }, da = {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
},
|
|
1334
1334
|
emits: ["update:model-value", "on-change"],
|
|
1335
|
-
setup(e, { emit:
|
|
1336
|
-
const a =
|
|
1335
|
+
setup(e, { emit: s }) {
|
|
1336
|
+
const a = w({
|
|
1337
1337
|
checkStrictly: !0,
|
|
1338
1338
|
multiple: !1
|
|
1339
|
-
}),
|
|
1340
|
-
|
|
1339
|
+
}), c = (r) => {
|
|
1340
|
+
s("update:model-value", r), s("on-change", r);
|
|
1341
1341
|
};
|
|
1342
|
-
return (r,
|
|
1342
|
+
return (r, u) => {
|
|
1343
1343
|
const t = g("el-cascader");
|
|
1344
|
-
return o(),
|
|
1344
|
+
return o(), p("div", ia, [
|
|
1345
1345
|
B(t, {
|
|
1346
1346
|
clearable: "",
|
|
1347
1347
|
class: "base_cascader",
|
|
@@ -1350,7 +1350,7 @@ const ia = { class: "bsgoal-base-cascader" }, da = {
|
|
|
1350
1350
|
options: e.dataOptions,
|
|
1351
1351
|
props: a.value,
|
|
1352
1352
|
placeholder: e.placeholder,
|
|
1353
|
-
onChange:
|
|
1353
|
+
onChange: c
|
|
1354
1354
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1355
1355
|
]);
|
|
1356
1356
|
};
|
|
@@ -1399,26 +1399,26 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1399
1399
|
}
|
|
1400
1400
|
},
|
|
1401
1401
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1402
|
-
setup(e, { expose:
|
|
1403
|
-
const
|
|
1402
|
+
setup(e, { expose: s, emit: a }) {
|
|
1403
|
+
const c = e, r = w(null), u = be.align, t = w({});
|
|
1404
1404
|
fe(() => {
|
|
1405
|
-
const { configOptions:
|
|
1406
|
-
|
|
1407
|
-
const { value:
|
|
1408
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(
|
|
1405
|
+
const { configOptions: x } = c;
|
|
1406
|
+
i(x).forEach((V) => {
|
|
1407
|
+
const { value: E, prop: O = "", type: I = "" } = V;
|
|
1408
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(E) ? E : "";
|
|
1409
1409
|
});
|
|
1410
1410
|
});
|
|
1411
1411
|
const d = K(() => {
|
|
1412
|
-
const { configOptions:
|
|
1412
|
+
const { configOptions: x } = c, $ = i(x), V = {
|
|
1413
1413
|
type: l.OPERATION
|
|
1414
1414
|
};
|
|
1415
|
-
return [
|
|
1416
|
-
}), _ = (
|
|
1417
|
-
if (
|
|
1418
|
-
switch (
|
|
1415
|
+
return [...$, V];
|
|
1416
|
+
}), _ = (x = "", $ = "", V = "") => {
|
|
1417
|
+
if (!V)
|
|
1418
|
+
switch (x) {
|
|
1419
1419
|
case l.INPUT:
|
|
1420
1420
|
case l.INPUT_TEXT_AREA:
|
|
1421
|
-
return `请输入${
|
|
1421
|
+
return `请输入${$}`;
|
|
1422
1422
|
case l.SELECT:
|
|
1423
1423
|
case l.DATE:
|
|
1424
1424
|
case l.WEEK:
|
|
@@ -1427,7 +1427,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1427
1427
|
case l.DATE_TIME:
|
|
1428
1428
|
case l.TIME:
|
|
1429
1429
|
case l.CASCADER:
|
|
1430
|
-
return `请选择${
|
|
1430
|
+
return `请选择${$}`;
|
|
1431
1431
|
case l.DATE_RANGE:
|
|
1432
1432
|
case l.DATE_TIME_RANGE:
|
|
1433
1433
|
return ["开始日期", "结束日期"];
|
|
@@ -1436,10 +1436,10 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1436
1436
|
case l.MONTH_RANGE:
|
|
1437
1437
|
return ["开始月份", "结束月份"];
|
|
1438
1438
|
}
|
|
1439
|
-
return
|
|
1440
|
-
},
|
|
1441
|
-
if (
|
|
1442
|
-
switch (
|
|
1439
|
+
return V;
|
|
1440
|
+
}, C = (x = "", $ = "") => {
|
|
1441
|
+
if (!$)
|
|
1442
|
+
switch (x) {
|
|
1443
1443
|
case l.WEEK:
|
|
1444
1444
|
return "ww";
|
|
1445
1445
|
case l.DATE:
|
|
@@ -1458,56 +1458,56 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1458
1458
|
case l.DATE_TIME_RANGE:
|
|
1459
1459
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1460
1460
|
}
|
|
1461
|
-
return
|
|
1462
|
-
},
|
|
1463
|
-
const { configOptions:
|
|
1464
|
-
for (const O of
|
|
1465
|
-
const { type: I = "", range:
|
|
1461
|
+
return $;
|
|
1462
|
+
}, N = () => {
|
|
1463
|
+
const { configOptions: x } = c, $ = i(t), V = i(x), E = {};
|
|
1464
|
+
for (const O of V) {
|
|
1465
|
+
const { type: I = "", range: L = [], prop: U = "", single: Y = !1 } = O, F = $[U];
|
|
1466
1466
|
if ([l.CASCADER].includes(I) && Array.isArray(F) && Y) {
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1467
|
+
const Q = F.length;
|
|
1468
|
+
Q ? E[U] = F[Q - 1] : E[U] = F;
|
|
1469
1469
|
} else
|
|
1470
|
-
|
|
1471
|
-
if (I.endsWith("range") &&
|
|
1472
|
-
const { 0:
|
|
1473
|
-
|
|
1470
|
+
Ie(F) ? E[U] = Fe(F) : E[U] = F;
|
|
1471
|
+
if (I.endsWith("range") && L && L.length === 2) {
|
|
1472
|
+
const { 0: Q = "", 1: q = "" } = F, { 0: ne = "", 1: oe = "" } = L;
|
|
1473
|
+
E[ne] = Q, E[oe] = q;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
a("on-search",
|
|
1476
|
+
a("on-search", E), a("update:modelValue", E);
|
|
1477
1477
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1478
|
+
$e(() => {
|
|
1479
|
+
N();
|
|
1480
1480
|
});
|
|
1481
1481
|
const D = () => {
|
|
1482
1482
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1483
|
-
}, k =
|
|
1484
|
-
R.value =
|
|
1485
|
-
}, b = (
|
|
1486
|
-
|
|
1487
|
-
const
|
|
1488
|
-
type:
|
|
1489
|
-
prop:
|
|
1490
|
-
value: t.value[
|
|
1483
|
+
}, k = Ce("transferFoldStatus"), R = w(!1), h = (x = !1) => {
|
|
1484
|
+
R.value = x, k && (k.value = x), a("on-fold", R);
|
|
1485
|
+
}, b = (x, $) => {
|
|
1486
|
+
N();
|
|
1487
|
+
const V = {
|
|
1488
|
+
type: x,
|
|
1489
|
+
prop: $,
|
|
1490
|
+
value: t.value[$] || ""
|
|
1491
1491
|
};
|
|
1492
|
-
a("on-change",
|
|
1492
|
+
a("on-change", V);
|
|
1493
1493
|
};
|
|
1494
|
-
return
|
|
1495
|
-
triggerOperationSearch:
|
|
1496
|
-
}), (
|
|
1497
|
-
const
|
|
1498
|
-
return o(),
|
|
1494
|
+
return s({
|
|
1495
|
+
triggerOperationSearch: N
|
|
1496
|
+
}), (x, $) => {
|
|
1497
|
+
const V = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), L = g("el-option"), U = g("el-select"), Y = g("el-slider"), F = g("el-switch"), Q = g("el-date-picker"), q = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
|
|
1498
|
+
return o(), p("div", ma, [
|
|
1499
1499
|
S("div", ga, [
|
|
1500
|
-
|
|
1500
|
+
X((o(), y(T, {
|
|
1501
1501
|
ref_key: "EL_FORM_REF",
|
|
1502
1502
|
ref: r,
|
|
1503
1503
|
"label-suffix": ":",
|
|
1504
1504
|
"show-message": !1,
|
|
1505
1505
|
model: t.value
|
|
1506
1506
|
}, {
|
|
1507
|
-
default:
|
|
1508
|
-
B(
|
|
1509
|
-
default:
|
|
1510
|
-
(o(!0),
|
|
1507
|
+
default: A(() => [
|
|
1508
|
+
B(P, null, {
|
|
1509
|
+
default: A(() => [
|
|
1510
|
+
(o(!0), p(j, null, W(d.value, ({
|
|
1511
1511
|
label: m = "",
|
|
1512
1512
|
prop: f = "",
|
|
1513
1513
|
type: v = "text",
|
|
@@ -1518,28 +1518,28 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1518
1518
|
min: ee = 1,
|
|
1519
1519
|
max: te = 10,
|
|
1520
1520
|
range: ae = [],
|
|
1521
|
-
format:
|
|
1522
|
-
} = {}, ce) =>
|
|
1521
|
+
format: se = ""
|
|
1522
|
+
} = {}, ce) => X((o(), y(ie, {
|
|
1523
1523
|
key: ce,
|
|
1524
1524
|
xs: 24,
|
|
1525
1525
|
sm: 12,
|
|
1526
1526
|
md: e.medium
|
|
1527
1527
|
}, {
|
|
1528
|
-
default:
|
|
1528
|
+
default: A(() => [
|
|
1529
1529
|
B(re, {
|
|
1530
1530
|
label: m,
|
|
1531
1531
|
prop: f
|
|
1532
1532
|
}, {
|
|
1533
|
-
default:
|
|
1534
|
-
ve ? (o(),
|
|
1535
|
-
v ===
|
|
1533
|
+
default: A(() => [
|
|
1534
|
+
ve ? (o(), p("div", fa, z(t.value[f]), 1)) : (o(), p(j, { key: 0 }, [
|
|
1535
|
+
v === i(l).INPUT ? (o(), y(V, {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
modelValue: t.value[f],
|
|
1538
1538
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1539
1539
|
placeholder: _(v, m, G),
|
|
1540
1540
|
clearable: de
|
|
1541
1541
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : M("", !0),
|
|
1542
|
-
v ===
|
|
1542
|
+
v === i(l).INPUT_TEXT_AREA ? (o(), y(V, {
|
|
1543
1543
|
key: 1,
|
|
1544
1544
|
modelValue: t.value[f],
|
|
1545
1545
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1549,50 +1549,50 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1549
1549
|
placeholder: _(v, m, G),
|
|
1550
1550
|
onChange: (n) => b(v, f)
|
|
1551
1551
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
1552
|
-
v ===
|
|
1552
|
+
v === i(l).INPUT_NUMBER ? (o(), y(E, {
|
|
1553
1553
|
key: 2,
|
|
1554
|
-
modelValue:
|
|
1555
|
-
"onUpdate:modelValue":
|
|
1554
|
+
modelValue: x.num,
|
|
1555
|
+
"onUpdate:modelValue": $[0] || ($[0] = (n) => x.num = n),
|
|
1556
1556
|
min: ee,
|
|
1557
1557
|
max: te,
|
|
1558
1558
|
onChange: b
|
|
1559
1559
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
1560
|
-
v ===
|
|
1560
|
+
v === i(l).RADIO ? (o(), y(I, {
|
|
1561
1561
|
key: 3,
|
|
1562
1562
|
modelValue: t.value[f],
|
|
1563
1563
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1564
1564
|
onChange: (n) => b(v, f)
|
|
1565
1565
|
}, {
|
|
1566
|
-
default:
|
|
1567
|
-
(o(!0),
|
|
1568
|
-
key:
|
|
1566
|
+
default: A(() => [
|
|
1567
|
+
(o(!0), p(j, null, W(ae, (n, Z) => (o(), y(O, {
|
|
1568
|
+
key: Z,
|
|
1569
1569
|
label: n.value
|
|
1570
1570
|
}, {
|
|
1571
|
-
default:
|
|
1572
|
-
H(
|
|
1571
|
+
default: A(() => [
|
|
1572
|
+
H(z(n.label), 1)
|
|
1573
1573
|
]),
|
|
1574
1574
|
_: 2
|
|
1575
1575
|
}, 1032, ["label"]))), 128))
|
|
1576
1576
|
]),
|
|
1577
1577
|
_: 2
|
|
1578
1578
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1579
|
-
v ===
|
|
1579
|
+
v === i(l).SELECT ? (o(), y(U, {
|
|
1580
1580
|
key: 4,
|
|
1581
1581
|
modelValue: t.value[f],
|
|
1582
1582
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1583
1583
|
placeholder: _(v, m, G),
|
|
1584
1584
|
onChange: (n) => b(v, f)
|
|
1585
1585
|
}, {
|
|
1586
|
-
default:
|
|
1587
|
-
(o(!0),
|
|
1588
|
-
key:
|
|
1586
|
+
default: A(() => [
|
|
1587
|
+
(o(!0), p(j, null, W(ae, (n, Z) => (o(), y(L, {
|
|
1588
|
+
key: Z,
|
|
1589
1589
|
label: n.label,
|
|
1590
1590
|
value: n.value
|
|
1591
1591
|
}, null, 8, ["label", "value"]))), 128))
|
|
1592
1592
|
]),
|
|
1593
1593
|
_: 2
|
|
1594
1594
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
1595
|
-
v ===
|
|
1595
|
+
v === i(l).SLIDER ? (o(), y(Y, {
|
|
1596
1596
|
key: 5,
|
|
1597
1597
|
modelValue: t.value[f],
|
|
1598
1598
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1600,7 +1600,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1600
1600
|
max: te,
|
|
1601
1601
|
onChange: (n) => b(v, f)
|
|
1602
1602
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
1603
|
-
v ===
|
|
1603
|
+
v === i(l).SWITCH ? (o(), y(F, {
|
|
1604
1604
|
key: 6,
|
|
1605
1605
|
modelValue: t.value[f],
|
|
1606
1606
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1608,71 +1608,71 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1608
1608
|
"inactive-value": ae[1] || !1,
|
|
1609
1609
|
onChange: (n) => b(v, f)
|
|
1610
1610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
1611
|
-
[
|
|
1611
|
+
[i(l).DATE, i(l).MONTH, i(l).YEAR, i(l).DATE_TIME].includes(
|
|
1612
1612
|
v
|
|
1613
|
-
) ? (o(), y(
|
|
1613
|
+
) ? (o(), y(Q, {
|
|
1614
1614
|
key: 7,
|
|
1615
1615
|
modelValue: t.value[f],
|
|
1616
1616
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1617
|
-
format:
|
|
1618
|
-
"value-format":
|
|
1617
|
+
format: C(v, se),
|
|
1618
|
+
"value-format": C(v, se),
|
|
1619
1619
|
type: v,
|
|
1620
1620
|
placeholder: _(v, m, G),
|
|
1621
1621
|
onChange: (n) => b(v, f)
|
|
1622
1622
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
1623
1623
|
[
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
].includes(v) ? (o(), y(
|
|
1624
|
+
i(l).DATE_RANGE,
|
|
1625
|
+
i(l).MONTH_RANGE,
|
|
1626
|
+
i(l).DATE_TIME_RANGE
|
|
1627
|
+
].includes(v) ? (o(), y(Q, {
|
|
1628
1628
|
key: 8,
|
|
1629
1629
|
modelValue: t.value[f],
|
|
1630
1630
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1631
1631
|
type: v,
|
|
1632
|
-
"value-format":
|
|
1632
|
+
"value-format": C(v, se),
|
|
1633
1633
|
"start-placeholder": _(v, m, G)[0],
|
|
1634
1634
|
"end-placeholder": _(v, m, G)[1],
|
|
1635
1635
|
onChange: (n) => b(v, f)
|
|
1636
1636
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1637
|
-
[
|
|
1637
|
+
[i(l).TIME].includes(v) ? (o(), y(q, {
|
|
1638
1638
|
key: 9,
|
|
1639
1639
|
modelValue: t.value[f],
|
|
1640
1640
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1641
1641
|
"arrow-control": "",
|
|
1642
|
-
"value-format":
|
|
1642
|
+
"value-format": C(v, se),
|
|
1643
1643
|
placeholder: _(v, m, G),
|
|
1644
1644
|
onChange: (n) => b(v, f)
|
|
1645
1645
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
1646
|
-
[
|
|
1646
|
+
[i(l).TIME_RANGE].includes(v) ? (o(), y(q, {
|
|
1647
1647
|
key: 10,
|
|
1648
1648
|
modelValue: t.value[f],
|
|
1649
1649
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1650
1650
|
"is-range": "",
|
|
1651
|
-
"value-format":
|
|
1651
|
+
"value-format": C(v, se),
|
|
1652
1652
|
"start-placeholder": _(v, m, G)[0],
|
|
1653
1653
|
"end-placeholder": _(v, m, G)[1],
|
|
1654
1654
|
onChange: (n) => b(v, f)
|
|
1655
1655
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1656
|
-
[
|
|
1656
|
+
[i(l).CHECKBOX].includes(v) ? (o(), y(oe, {
|
|
1657
1657
|
key: 11,
|
|
1658
1658
|
modelValue: t.value[f],
|
|
1659
1659
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1660
1660
|
onChange: (n) => b(v, f)
|
|
1661
1661
|
}, {
|
|
1662
|
-
default:
|
|
1663
|
-
(o(!0),
|
|
1664
|
-
key:
|
|
1662
|
+
default: A(() => [
|
|
1663
|
+
(o(!0), p(j, null, W(ae, (n, Z) => (o(), y(ne, {
|
|
1664
|
+
key: Z,
|
|
1665
1665
|
label: n.value
|
|
1666
1666
|
}, {
|
|
1667
|
-
default:
|
|
1668
|
-
H(
|
|
1667
|
+
default: A(() => [
|
|
1668
|
+
H(z(n.label), 1)
|
|
1669
1669
|
]),
|
|
1670
1670
|
_: 2
|
|
1671
1671
|
}, 1032, ["label"]))), 128))
|
|
1672
1672
|
]),
|
|
1673
1673
|
_: 2
|
|
1674
1674
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1675
|
-
[
|
|
1675
|
+
[i(l).CASCADER].includes(v) ? (o(), y(_a, {
|
|
1676
1676
|
key: 12,
|
|
1677
1677
|
modelValue: t.value[f],
|
|
1678
1678
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1680,13 +1680,13 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1680
1680
|
placeholder: _(v, m, G),
|
|
1681
1681
|
onOnChange: (n) => b(v, f)
|
|
1682
1682
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
|
|
1683
|
-
[].includes(v) ? (o(),
|
|
1684
|
-
[
|
|
1683
|
+
[].includes(v) ? (o(), p(j, { key: 13 }, [], 64)) : M("", !0),
|
|
1684
|
+
[i(l).OPERATION].includes(v) ? (o(), y(ra, {
|
|
1685
1685
|
key: 14,
|
|
1686
1686
|
fold: ce >= 7,
|
|
1687
|
-
onOnSearch:
|
|
1687
|
+
onOnSearch: N,
|
|
1688
1688
|
onOnClear: D,
|
|
1689
|
-
onOnFold:
|
|
1689
|
+
onOnFold: h
|
|
1690
1690
|
}, null, 8, ["fold"])) : M("", !0)
|
|
1691
1691
|
], 64))
|
|
1692
1692
|
]),
|
|
@@ -1695,7 +1695,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1695
1695
|
]),
|
|
1696
1696
|
_: 2
|
|
1697
1697
|
}, 1032, ["md"])), [
|
|
1698
|
-
[le, ce < 7 || v ===
|
|
1698
|
+
[le, ce < 7 || v === i(l).OPERATION || ce >= 7 && R.value]
|
|
1699
1699
|
])), 128))
|
|
1700
1700
|
]),
|
|
1701
1701
|
_: 1
|
|
@@ -1703,7 +1703,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1703
1703
|
]),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}, 8, ["model"])), [
|
|
1706
|
-
[
|
|
1706
|
+
[i(u)]
|
|
1707
1707
|
])
|
|
1708
1708
|
]),
|
|
1709
1709
|
B(Ae)
|
|
@@ -1819,40 +1819,40 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1819
1819
|
default: !0
|
|
1820
1820
|
}
|
|
1821
1821
|
},
|
|
1822
|
-
setup(e, { expose:
|
|
1823
|
-
const a = e,
|
|
1824
|
-
|
|
1825
|
-
const r =
|
|
1826
|
-
const { type: b = "" } =
|
|
1822
|
+
setup(e, { expose: s }) {
|
|
1823
|
+
const a = e, c = w(!1);
|
|
1824
|
+
Re("transferFoldStatus", c);
|
|
1825
|
+
const r = i(a.configOptions), u = K(() => r.filter((h) => {
|
|
1826
|
+
const { type: b = "" } = h;
|
|
1827
1827
|
return !!b;
|
|
1828
|
-
})), t = K(() => r.filter((
|
|
1829
|
-
const { item: b = !1 } =
|
|
1828
|
+
})), t = K(() => r.filter((h) => {
|
|
1829
|
+
const { item: b = !1 } = h;
|
|
1830
1830
|
return !b;
|
|
1831
|
-
})), d =
|
|
1832
|
-
|
|
1831
|
+
})), d = Ve(), _ = w(Object.keys(d)), C = w(null), N = (h) => {
|
|
1832
|
+
C.value.refreshList(h);
|
|
1833
1833
|
}, D = K(() => {
|
|
1834
|
-
const { expression:
|
|
1835
|
-
return b === !1 ? 25 :
|
|
1836
|
-
}), k =
|
|
1837
|
-
return
|
|
1834
|
+
const { expression: h, hasPage: b } = a;
|
|
1835
|
+
return b === !1 ? 25 : h;
|
|
1836
|
+
}), k = w(null);
|
|
1837
|
+
return s({
|
|
1838
1838
|
refresh: () => {
|
|
1839
|
-
const { hasSearch:
|
|
1840
|
-
|
|
1839
|
+
const { hasSearch: h } = a;
|
|
1840
|
+
i(h) && k.value.triggerOperationSearch();
|
|
1841
1841
|
}
|
|
1842
|
-
}), (
|
|
1842
|
+
}), (h, b) => (o(), p("div", ha, [
|
|
1843
1843
|
S("div", Ea, [
|
|
1844
|
-
|
|
1844
|
+
X(B(pa, {
|
|
1845
1845
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1846
1846
|
ref: k,
|
|
1847
|
-
"config-options":
|
|
1848
|
-
onOnSearch:
|
|
1849
|
-
onOnClear:
|
|
1847
|
+
"config-options": u.value,
|
|
1848
|
+
onOnSearch: N,
|
|
1849
|
+
onOnClear: N
|
|
1850
1850
|
}, null, 8, ["config-options"]), [
|
|
1851
1851
|
[le, e.hasSearch]
|
|
1852
1852
|
]),
|
|
1853
|
-
B(
|
|
1853
|
+
B(we, {
|
|
1854
1854
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1855
|
-
ref:
|
|
1855
|
+
ref: C,
|
|
1856
1856
|
"map-props": e.mapProps,
|
|
1857
1857
|
operationWidth: e.operationWidth,
|
|
1858
1858
|
"config-options": t.value,
|
|
@@ -1864,10 +1864,10 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1864
1864
|
call: e.call,
|
|
1865
1865
|
"has-page": e.hasPage
|
|
1866
1866
|
}, Ue({ _: 2 }, [
|
|
1867
|
-
|
|
1868
|
-
name:
|
|
1869
|
-
fn:
|
|
1870
|
-
J(
|
|
1867
|
+
W(_.value, (x) => ({
|
|
1868
|
+
name: x,
|
|
1869
|
+
fn: A(({ row: $ = {} }) => [
|
|
1870
|
+
J(h.$slots, x, { row: $ })
|
|
1871
1871
|
])
|
|
1872
1872
|
}))
|
|
1873
1873
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1880,25 +1880,25 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1880
1880
|
}, xa = /* @__PURE__ */ Object.assign(Ta, {
|
|
1881
1881
|
props: ["modelValue"],
|
|
1882
1882
|
emits: ["update:modelValue"],
|
|
1883
|
-
setup(e, { emit:
|
|
1884
|
-
let a =
|
|
1885
|
-
const
|
|
1886
|
-
a.value = !a.value,
|
|
1883
|
+
setup(e, { emit: s }) {
|
|
1884
|
+
let a = w(!0);
|
|
1885
|
+
const c = () => {
|
|
1886
|
+
a.value = !a.value, s("update:modelValue", a.value);
|
|
1887
1887
|
};
|
|
1888
|
-
return (r,
|
|
1888
|
+
return (r, u) => {
|
|
1889
1889
|
const t = g("el-icon");
|
|
1890
|
-
return o(),
|
|
1890
|
+
return o(), p("div", Aa, [
|
|
1891
1891
|
S("div", {
|
|
1892
|
-
class: me(["base_tree_fold", { "base_tree_fold--hide": !
|
|
1893
|
-
onClick:
|
|
1892
|
+
class: me(["base_tree_fold", { "base_tree_fold--hide": !i(a) }]),
|
|
1893
|
+
onClick: c
|
|
1894
1894
|
}, [
|
|
1895
1895
|
B(t, { color: "#fff" }, {
|
|
1896
|
-
default:
|
|
1897
|
-
|
|
1898
|
-
[le,
|
|
1896
|
+
default: A(() => [
|
|
1897
|
+
X(B(i(Nt), null, null, 512), [
|
|
1898
|
+
[le, i(a)]
|
|
1899
1899
|
]),
|
|
1900
|
-
|
|
1901
|
-
[le, !
|
|
1900
|
+
X(B(i(Ft), null, null, 512), [
|
|
1901
|
+
[le, !i(a)]
|
|
1902
1902
|
])
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 1
|
|
@@ -1908,7 +1908,7 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
1910
|
});
|
|
1911
|
-
const
|
|
1911
|
+
const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Va = { class: "base_tree_main" }, Ma = {
|
|
1912
1912
|
name: "BsgoalBaseTree"
|
|
1913
1913
|
}, Ba = /* @__PURE__ */ Object.assign(Ma, {
|
|
1914
1914
|
props: {
|
|
@@ -1963,40 +1963,40 @@ const Ca = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, $a = { cl
|
|
|
1963
1963
|
}
|
|
1964
1964
|
},
|
|
1965
1965
|
emits: ["on-click"],
|
|
1966
|
-
setup(e, { emit:
|
|
1967
|
-
const a = e,
|
|
1968
|
-
_e(r, (
|
|
1969
|
-
|
|
1966
|
+
setup(e, { emit: s }) {
|
|
1967
|
+
const a = e, c = be.height, r = w(""), u = w(null);
|
|
1968
|
+
_e(r, (N) => {
|
|
1969
|
+
u.value.filter(N);
|
|
1970
1970
|
});
|
|
1971
|
-
const t = (
|
|
1972
|
-
|
|
1973
|
-
},
|
|
1974
|
-
if (
|
|
1975
|
-
const R = await k.initNode(
|
|
1971
|
+
const t = (N, D) => N ? D.label.includes(N) : !0, d = w(!0), _ = (N, D, k, R) => {
|
|
1972
|
+
s("on-click", N, D, k, R);
|
|
1973
|
+
}, C = async (N, D, k) => {
|
|
1974
|
+
if (N.level === 0) {
|
|
1975
|
+
const R = await k.initNode(N);
|
|
1976
1976
|
return D(R || []);
|
|
1977
1977
|
} else {
|
|
1978
|
-
const R = await k.lazyLoad(
|
|
1978
|
+
const R = await k.lazyLoad(N);
|
|
1979
1979
|
D(R || []);
|
|
1980
1980
|
}
|
|
1981
1981
|
};
|
|
1982
|
-
return (
|
|
1982
|
+
return (N, D) => {
|
|
1983
1983
|
const k = g("el-input"), R = g("el-tree");
|
|
1984
|
-
return o(),
|
|
1985
|
-
|
|
1986
|
-
|
|
1984
|
+
return o(), p("div", $a, [
|
|
1985
|
+
X((o(), p("div", Ca, [
|
|
1986
|
+
X(S("div", Va, [
|
|
1987
1987
|
B(k, {
|
|
1988
1988
|
modelValue: r.value,
|
|
1989
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
1989
|
+
"onUpdate:modelValue": D[0] || (D[0] = (h) => r.value = h),
|
|
1990
1990
|
class: "base_tree_main_input",
|
|
1991
1991
|
placeholder: "输入关键字过滤"
|
|
1992
1992
|
}, null, 8, ["modelValue"]),
|
|
1993
1993
|
B(R, {
|
|
1994
1994
|
ref_key: "EL_TREE_REF",
|
|
1995
|
-
ref:
|
|
1995
|
+
ref: u,
|
|
1996
1996
|
lazy: "",
|
|
1997
1997
|
"highlight-current": "",
|
|
1998
1998
|
"empty-text": "暂无数据",
|
|
1999
|
-
load: (
|
|
1999
|
+
load: (h, b) => C(h, b, a),
|
|
2000
2000
|
"expand-on-click-node": !1,
|
|
2001
2001
|
props: e.treeProps,
|
|
2002
2002
|
"filter-node-method": t,
|
|
@@ -2005,15 +2005,15 @@ const Ca = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, $a = { cl
|
|
|
2005
2005
|
], 512), [
|
|
2006
2006
|
[le, d.value]
|
|
2007
2007
|
]),
|
|
2008
|
-
|
|
2008
|
+
X(B(Ae, { vertical: "" }, null, 512), [
|
|
2009
2009
|
[le, d.value]
|
|
2010
2010
|
]),
|
|
2011
2011
|
B(xa, {
|
|
2012
2012
|
modelValue: d.value,
|
|
2013
|
-
"onUpdate:modelValue": D[1] || (D[1] = (
|
|
2013
|
+
"onUpdate:modelValue": D[1] || (D[1] = (h) => d.value = h)
|
|
2014
2014
|
}, null, 8, ["modelValue"])
|
|
2015
2015
|
])), [
|
|
2016
|
-
[c
|
|
2016
|
+
[i(c), e.gasket]
|
|
2017
2017
|
])
|
|
2018
2018
|
]);
|
|
2019
2019
|
};
|
|
@@ -2082,21 +2082,21 @@ const wa = { class: "bsgoal-base-dialog" }, Na = { class: "base_dialog" }, ka =
|
|
|
2082
2082
|
}
|
|
2083
2083
|
},
|
|
2084
2084
|
emits: ["update:modelValue", "on-confirm"],
|
|
2085
|
-
setup(e, { emit:
|
|
2086
|
-
const a = e,
|
|
2087
|
-
|
|
2088
|
-
},
|
|
2089
|
-
|
|
2090
|
-
|
|
2085
|
+
setup(e, { emit: s }) {
|
|
2086
|
+
const a = e, c = w(a.modelValue.value), r = () => {
|
|
2087
|
+
c.value = !1;
|
|
2088
|
+
}, u = () => {
|
|
2089
|
+
s("on-confirm", () => {
|
|
2090
|
+
c.value = !1;
|
|
2091
2091
|
});
|
|
2092
2092
|
};
|
|
2093
2093
|
_e(
|
|
2094
2094
|
() => a.modelValue,
|
|
2095
2095
|
(d) => {
|
|
2096
|
-
|
|
2096
|
+
c.value = d;
|
|
2097
2097
|
}
|
|
2098
|
-
), _e(
|
|
2099
|
-
|
|
2098
|
+
), _e(c, (d) => {
|
|
2099
|
+
s("update:modelValue", d);
|
|
2100
2100
|
});
|
|
2101
2101
|
const t = K(() => {
|
|
2102
2102
|
const { width: d, size: _ } = a;
|
|
@@ -2118,41 +2118,41 @@ const wa = { class: "bsgoal-base-dialog" }, Na = { class: "base_dialog" }, ka =
|
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
2120
|
return (d, _) => {
|
|
2121
|
-
const
|
|
2122
|
-
return o(),
|
|
2121
|
+
const C = g("el-button"), N = g("el-dialog");
|
|
2122
|
+
return o(), p("div", wa, [
|
|
2123
2123
|
S("div", Na, [
|
|
2124
|
-
B(
|
|
2125
|
-
modelValue:
|
|
2126
|
-
"onUpdate:modelValue": _[0] || (_[0] = (D) =>
|
|
2124
|
+
B(N, {
|
|
2125
|
+
modelValue: c.value,
|
|
2126
|
+
"onUpdate:modelValue": _[0] || (_[0] = (D) => c.value = D),
|
|
2127
2127
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2128
2128
|
class: me({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2129
2129
|
width: t.value
|
|
2130
2130
|
}, {
|
|
2131
|
-
header:
|
|
2132
|
-
S("div", ka,
|
|
2131
|
+
header: A(() => [
|
|
2132
|
+
S("div", ka, z(e.title), 1)
|
|
2133
2133
|
]),
|
|
2134
|
-
footer:
|
|
2134
|
+
footer: A(() => [
|
|
2135
2135
|
e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
|
|
2136
2136
|
S("span", Sa, [
|
|
2137
|
-
B(
|
|
2138
|
-
default:
|
|
2139
|
-
H(
|
|
2137
|
+
B(C, { onClick: r }, {
|
|
2138
|
+
default: A(() => [
|
|
2139
|
+
H(z(e.cancelTxt), 1)
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
}),
|
|
2143
|
-
B(
|
|
2143
|
+
B(C, {
|
|
2144
2144
|
type: "primary",
|
|
2145
|
-
onClick:
|
|
2145
|
+
onClick: u
|
|
2146
2146
|
}, {
|
|
2147
|
-
default:
|
|
2148
|
-
H(
|
|
2147
|
+
default: A(() => [
|
|
2148
|
+
H(z(e.confirmTxt), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
})
|
|
2152
2152
|
])
|
|
2153
2153
|
]) : M("", !0)
|
|
2154
2154
|
]),
|
|
2155
|
-
default:
|
|
2155
|
+
default: A(() => [
|
|
2156
2156
|
S("div", {
|
|
2157
2157
|
class: me(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2158
2158
|
}, [
|
|
@@ -2199,46 +2199,53 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2199
2199
|
modelValue: {
|
|
2200
2200
|
type: [String],
|
|
2201
2201
|
default: ""
|
|
2202
|
+
},
|
|
2203
|
+
/**
|
|
2204
|
+
* 是否自动撑开
|
|
2205
|
+
*/
|
|
2206
|
+
stretch: {
|
|
2207
|
+
type: [Boolean],
|
|
2208
|
+
default: !1
|
|
2202
2209
|
}
|
|
2203
2210
|
},
|
|
2204
2211
|
emits: ["update:modelValue"],
|
|
2205
|
-
setup(e, { emit:
|
|
2206
|
-
const a = (
|
|
2207
|
-
|
|
2212
|
+
setup(e, { emit: s }) {
|
|
2213
|
+
const a = (c = "") => {
|
|
2214
|
+
s("update:modelValue", c);
|
|
2208
2215
|
};
|
|
2209
|
-
return (
|
|
2210
|
-
const
|
|
2211
|
-
return o(),
|
|
2216
|
+
return (c, r) => {
|
|
2217
|
+
const u = g("el-tab-pane"), t = g("el-tabs");
|
|
2218
|
+
return o(), p("div", Ia, [
|
|
2212
2219
|
B(t, {
|
|
2213
|
-
stretch:
|
|
2220
|
+
stretch: e.stretch,
|
|
2214
2221
|
class: "bsgoal_base_tabs",
|
|
2215
2222
|
type: e.type,
|
|
2216
2223
|
"model-value": e.modelValue,
|
|
2217
2224
|
onTabChange: a
|
|
2218
2225
|
}, {
|
|
2219
|
-
default:
|
|
2220
|
-
(o(!0),
|
|
2221
|
-
key:
|
|
2226
|
+
default: A(() => [
|
|
2227
|
+
(o(!0), p(j, null, W(e.configOptions, ({ label: d, value: _ }, C) => (o(), y(u, {
|
|
2228
|
+
key: C,
|
|
2222
2229
|
label: d,
|
|
2223
2230
|
name: _
|
|
2224
2231
|
}, {
|
|
2225
|
-
default:
|
|
2226
|
-
J(
|
|
2227
|
-
H(
|
|
2232
|
+
default: A(() => [
|
|
2233
|
+
J(c.$slots, _, {}, () => [
|
|
2234
|
+
H(z(d), 1)
|
|
2228
2235
|
])
|
|
2229
2236
|
]),
|
|
2230
2237
|
_: 2
|
|
2231
2238
|
}, 1032, ["label", "name"]))), 128))
|
|
2232
2239
|
]),
|
|
2233
2240
|
_: 3
|
|
2234
|
-
}, 8, ["type", "model-value"])
|
|
2241
|
+
}, 8, ["stretch", "type", "model-value"])
|
|
2235
2242
|
]);
|
|
2236
2243
|
};
|
|
2237
2244
|
}
|
|
2238
2245
|
});
|
|
2239
|
-
const Ua = { class: "bsgoal-base-link" },
|
|
2246
|
+
const Ua = { class: "bsgoal-base-link" }, La = {
|
|
2240
2247
|
name: "BsgoalBaseLink"
|
|
2241
|
-
},
|
|
2248
|
+
}, Pa = /* @__PURE__ */ Object.assign(La, {
|
|
2242
2249
|
props: {
|
|
2243
2250
|
/**
|
|
2244
2251
|
* 内容
|
|
@@ -2263,23 +2270,23 @@ const Ua = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2263
2270
|
}
|
|
2264
2271
|
},
|
|
2265
2272
|
emits: ["on-click"],
|
|
2266
|
-
setup(e, { emit:
|
|
2273
|
+
setup(e, { emit: s }) {
|
|
2267
2274
|
const a = () => {
|
|
2268
|
-
|
|
2275
|
+
s("on-click");
|
|
2269
2276
|
};
|
|
2270
|
-
return (
|
|
2271
|
-
const
|
|
2272
|
-
return o(),
|
|
2273
|
-
B(
|
|
2277
|
+
return (c, r) => {
|
|
2278
|
+
const u = g("el-link");
|
|
2279
|
+
return o(), p("div", Ua, [
|
|
2280
|
+
B(u, {
|
|
2274
2281
|
class: "bsgoal_base_link",
|
|
2275
2282
|
type: "primary",
|
|
2276
2283
|
underline: e.underline,
|
|
2277
|
-
style:
|
|
2284
|
+
style: Le(e.styler),
|
|
2278
2285
|
onClick: a
|
|
2279
2286
|
}, {
|
|
2280
|
-
default:
|
|
2281
|
-
J(
|
|
2282
|
-
H(
|
|
2287
|
+
default: A(() => [
|
|
2288
|
+
J(c.$slots, "default", {}, () => [
|
|
2289
|
+
H(z(e.content), 1)
|
|
2283
2290
|
], !0)
|
|
2284
2291
|
]),
|
|
2285
2292
|
_: 3
|
|
@@ -2287,8 +2294,8 @@ const Ua = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2287
2294
|
]);
|
|
2288
2295
|
};
|
|
2289
2296
|
}
|
|
2290
|
-
}),
|
|
2291
|
-
const
|
|
2297
|
+
}), ja = /* @__PURE__ */ Be(Pa, [["__scopeId", "data-v-3b0290b0"]]);
|
|
2298
|
+
const za = { class: "bsgoal-base-button" }, Ya = {
|
|
2292
2299
|
name: "BsgoalBaseButton"
|
|
2293
2300
|
}, Ga = /* @__PURE__ */ Object.assign(Ya, {
|
|
2294
2301
|
props: {
|
|
@@ -2326,24 +2333,24 @@ const ja = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2326
2333
|
}
|
|
2327
2334
|
},
|
|
2328
2335
|
setup(e) {
|
|
2329
|
-
const
|
|
2336
|
+
const s = e, a = w(!1), c = () => {
|
|
2330
2337
|
a.value = !0;
|
|
2331
|
-
const { task: t } =
|
|
2332
|
-
|
|
2338
|
+
const { task: t } = s;
|
|
2339
|
+
i(t)(() => {
|
|
2333
2340
|
a.value = !1;
|
|
2334
|
-
},
|
|
2341
|
+
}, s.values);
|
|
2335
2342
|
}, r = K(() => {
|
|
2336
|
-
const { mode: t = "", type: d = "" } =
|
|
2343
|
+
const { mode: t = "", type: d = "" } = s;
|
|
2337
2344
|
switch (t) {
|
|
2338
2345
|
case "delete":
|
|
2339
2346
|
return "danger";
|
|
2340
2347
|
}
|
|
2341
2348
|
return d;
|
|
2342
|
-
}),
|
|
2343
|
-
const { mode: t = "", icon: d = "" } =
|
|
2349
|
+
}), u = K(() => {
|
|
2350
|
+
const { mode: t = "", icon: d = "" } = s;
|
|
2344
2351
|
switch (t) {
|
|
2345
2352
|
case "delete":
|
|
2346
|
-
return
|
|
2353
|
+
return Ne;
|
|
2347
2354
|
case "add":
|
|
2348
2355
|
return ea;
|
|
2349
2356
|
}
|
|
@@ -2351,20 +2358,20 @@ const ja = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2351
2358
|
});
|
|
2352
2359
|
return (t, d) => {
|
|
2353
2360
|
const _ = g("el-button");
|
|
2354
|
-
return o(),
|
|
2361
|
+
return o(), p("div", za, [
|
|
2355
2362
|
S("div", {
|
|
2356
2363
|
class: "base_button",
|
|
2357
|
-
onClick:
|
|
2364
|
+
onClick: c
|
|
2358
2365
|
}, [
|
|
2359
2366
|
J(t.$slots, "default", { loading: a.value }, () => [
|
|
2360
2367
|
B(_, {
|
|
2361
2368
|
type: r.value,
|
|
2362
|
-
icon:
|
|
2369
|
+
icon: u.value,
|
|
2363
2370
|
loading: a.value,
|
|
2364
2371
|
plain: e.plain
|
|
2365
2372
|
}, {
|
|
2366
|
-
default:
|
|
2367
|
-
H(
|
|
2373
|
+
default: A(() => [
|
|
2374
|
+
H(z(e.content), 1)
|
|
2368
2375
|
]),
|
|
2369
2376
|
_: 1
|
|
2370
2377
|
}, 8, ["type", "icon", "loading", "plain"])
|
|
@@ -2373,28 +2380,78 @@ const ja = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2373
2380
|
]);
|
|
2374
2381
|
};
|
|
2375
2382
|
}
|
|
2376
|
-
})
|
|
2377
|
-
|
|
2378
|
-
|
|
2383
|
+
});
|
|
2384
|
+
const Ha = { class: "bsgoal-base-layout" }, Wa = {
|
|
2385
|
+
name: "BsgoalBaseLayout"
|
|
2386
|
+
}, Xa = /* @__PURE__ */ Object.assign(Wa, {
|
|
2387
|
+
props: {
|
|
2388
|
+
/**
|
|
2389
|
+
* 间隔
|
|
2390
|
+
*/
|
|
2391
|
+
gutter: {
|
|
2392
|
+
type: [Number],
|
|
2393
|
+
default: 0
|
|
2394
|
+
},
|
|
2395
|
+
/**
|
|
2396
|
+
* 划分的比例
|
|
2397
|
+
*/
|
|
2398
|
+
ratio: {
|
|
2399
|
+
type: [Number],
|
|
2400
|
+
default: 12
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
setup(e) {
|
|
2404
|
+
const s = Ve(), a = w(Object.keys(s));
|
|
2405
|
+
return (c, r) => {
|
|
2406
|
+
const u = g("el-col"), t = g("el-row");
|
|
2407
|
+
return o(), p("div", Ha, [
|
|
2408
|
+
B(t, {
|
|
2409
|
+
class: "base_layout",
|
|
2410
|
+
gutter: e.gutter
|
|
2411
|
+
}, {
|
|
2412
|
+
default: A(() => [
|
|
2413
|
+
(o(!0), p(j, null, W(a.value, (d, _) => (o(), y(u, {
|
|
2414
|
+
key: _,
|
|
2415
|
+
xs: 24,
|
|
2416
|
+
sm: 24,
|
|
2417
|
+
md: e.ratio,
|
|
2418
|
+
lg: e.ratio,
|
|
2419
|
+
xl: e.ratio
|
|
2420
|
+
}, {
|
|
2421
|
+
default: A(() => [
|
|
2422
|
+
J(c.$slots, d)
|
|
2423
|
+
]),
|
|
2424
|
+
_: 2
|
|
2425
|
+
}, 1032, ["md", "lg", "xl"]))), 128))
|
|
2426
|
+
]),
|
|
2427
|
+
_: 3
|
|
2428
|
+
}, 8, ["gutter"])
|
|
2429
|
+
]);
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
}), Ja = l, qa = ye, el = {
|
|
2433
|
+
install(e, s = {}) {
|
|
2434
|
+
const { exclude: a = [] } = s, c = {
|
|
2379
2435
|
BsgoalBaseForm: Xe,
|
|
2380
|
-
BsgoalBaseTable:
|
|
2436
|
+
BsgoalBaseTable: we,
|
|
2381
2437
|
BsgoalBaseLine: Ae,
|
|
2382
2438
|
BsgoalBaseSearchTable: ya,
|
|
2383
2439
|
BsgoalBaseTree: Ba,
|
|
2384
2440
|
BsgoalBaseDialog: Oa,
|
|
2385
2441
|
BsgoalBaseTabs: Ra,
|
|
2386
|
-
BsgoalBaseLink:
|
|
2387
|
-
BsgoalBaseButton: Ga
|
|
2442
|
+
BsgoalBaseLink: ja,
|
|
2443
|
+
BsgoalBaseButton: Ga,
|
|
2444
|
+
BsgoalBaseLayout: Xa
|
|
2388
2445
|
};
|
|
2389
|
-
for (const [r,
|
|
2390
|
-
a.includes(r) || e.component(r,
|
|
2446
|
+
for (const [r, u] of Object.entries(c))
|
|
2447
|
+
a.includes(r) || e.component(r, u);
|
|
2391
2448
|
},
|
|
2392
2449
|
enumType: l,
|
|
2393
2450
|
useFetch: ye
|
|
2394
2451
|
};
|
|
2395
2452
|
export {
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2453
|
+
Ja as EnumType,
|
|
2454
|
+
el as default,
|
|
2455
|
+
qa as useFetchApi
|
|
2399
2456
|
};
|
|
2400
2457
|
//# sourceMappingURL=index.mjs.map
|