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