@bsgoal/common 1.6.0 → 1.6.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 +612 -559
- 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-search-table/demo.vue +4 -1
- package/src/components/bsgoal-base-search-table/index.vue +26 -22
- package/src/components/bsgoal-base-table/demo.vue +6 -11
- package/src/components/bsgoal-base-table/index.vue +34 -38
- package/src/components/bsgoal-base-table-content/index.vue +31 -8
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var we = Object.defineProperty;
|
|
2
|
+
var Ae = Object.getOwnPropertySymbols;
|
|
3
|
+
var Be = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var xe = (e, s, l) => s in e ? we(e, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[s] = l, ve = (e, s) => {
|
|
5
5
|
for (var l in s || (s = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var l of
|
|
9
|
-
|
|
6
|
+
Be.call(s, l) && xe(e, l, s[l]);
|
|
7
|
+
if (Ae)
|
|
8
|
+
for (var l of Ae(s))
|
|
9
|
+
De.call(s, l) && xe(e, l, s[l]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as
|
|
13
|
-
import { ElMessage as
|
|
12
|
+
import { computed as J, resolveComponent as f, openBlock as n, createElementBlock as b, createVNode as N, unref as u, withCtx as T, renderSlot as q, createTextVNode as W, toDisplayString as Y, ref as k, watchEffect as Ee, createElementVNode as S, withDirectives as Q, createBlock as E, Fragment as P, renderList as X, createCommentVNode as V, nextTick as Ce, inject as Ve, watch as de, resolveDirective as ke, normalizeClass as _e, vShow as le, isProxy as Se, toRaw as Oe, provide as Ie, useSlots as Fe, createSlots as Re, normalizeStyle as Ue } from "vue";
|
|
13
|
+
import { ElMessage as Le } from "element-plus";
|
|
14
14
|
const a = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
@@ -33,31 +33,31 @@ const a = {
|
|
|
33
33
|
OPERATION: "operation",
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
|
-
let
|
|
36
|
+
let pe = null;
|
|
37
37
|
const he = (e) => {
|
|
38
38
|
const s = [], l = [], r = (t = []) => {
|
|
39
|
-
const c = t.map((
|
|
40
|
-
t.forEach((
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
39
|
+
const c = t.map((v) => v.width), d = Math.max(...c);
|
|
40
|
+
t.forEach((v) => {
|
|
41
|
+
const { labelEl: M } = v;
|
|
42
|
+
M.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
44
|
}, i = () => {
|
|
45
45
|
if (e) {
|
|
46
46
|
const t = e.querySelectorAll(".el-form-item__label");
|
|
47
47
|
if (t && t.length) {
|
|
48
48
|
let c = 0;
|
|
49
|
-
t.forEach((d,
|
|
49
|
+
t.forEach((d, v) => {
|
|
50
50
|
d.style.width = "initial", d.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x:
|
|
52
|
-
|
|
51
|
+
const { x: M = 0, width: $ = 0 } = d.getBoundingClientRect(), w = { x: M, width: $, labelEl: d };
|
|
52
|
+
v === 0 && (c = M), M === c ? s.push(w) : l.push(w);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
pe && clearTimeout(pe), pe = setTimeout(() => {
|
|
58
58
|
i(), r(s), r(l);
|
|
59
59
|
}, 50);
|
|
60
|
-
},
|
|
60
|
+
}, be = {
|
|
61
61
|
/**
|
|
62
62
|
* 表单自动左对齐
|
|
63
63
|
*/
|
|
@@ -84,9 +84,9 @@ const he = (e) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const ze = { class: "bsgoal-base-tooltip" }, Pe = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
|
-
},
|
|
89
|
+
}, Me = /* @__PURE__ */ Object.assign(Pe, {
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* 文字提示内容
|
|
@@ -126,19 +126,19 @@ const Le = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
setup(e) {
|
|
129
|
-
const s = e, l =
|
|
129
|
+
const s = e, l = J(() => {
|
|
130
130
|
const { content: i = "", limit: t = 0, none: c = "" } = s;
|
|
131
131
|
let d = i;
|
|
132
|
-
const
|
|
133
|
-
return t &&
|
|
134
|
-
}), r =
|
|
132
|
+
const v = i.length;
|
|
133
|
+
return t && v > t && (d = `${i.substring(0, t)}...`), d || c;
|
|
134
|
+
}), r = J(() => {
|
|
135
135
|
const { content: i = "", limit: t = 0 } = s;
|
|
136
136
|
return i.length < t || !t;
|
|
137
137
|
});
|
|
138
138
|
return (i, t) => {
|
|
139
139
|
const c = f("el-tooltip");
|
|
140
|
-
return n(), b("div",
|
|
141
|
-
|
|
140
|
+
return n(), b("div", ze, [
|
|
141
|
+
N(c, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
@@ -146,9 +146,9 @@ const Le = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
146
146
|
content: e.content,
|
|
147
147
|
disabled: u(r)
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
W(
|
|
149
|
+
default: T(() => [
|
|
150
|
+
q(i.$slots, "default", {}, () => [
|
|
151
|
+
W(Y(u(l)), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
@@ -157,7 +157,7 @@ const Le = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
const
|
|
160
|
+
const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { key: 1 }, He = {
|
|
161
161
|
name: "BsgoalBaseForm"
|
|
162
162
|
}, We = /* @__PURE__ */ Object.assign(He, {
|
|
163
163
|
props: {
|
|
@@ -222,24 +222,24 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
222
222
|
},
|
|
223
223
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
224
224
|
setup(e, { expose: s, emit: l }) {
|
|
225
|
-
const r = e, i = k(null), t =
|
|
226
|
-
|
|
227
|
-
const { configOptions:
|
|
228
|
-
|
|
229
|
-
const { value:
|
|
230
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(F), c.value[
|
|
225
|
+
const r = e, i = k(null), t = be.align, c = k({});
|
|
226
|
+
Ee(() => {
|
|
227
|
+
const { configOptions: h, values: y } = r, x = u(h), D = u(y);
|
|
228
|
+
x.forEach((C) => {
|
|
229
|
+
const { value: A = "", prop: O = "", type: F = "" } = C;
|
|
230
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(F), c.value[O] = D[O] || A;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
const d =
|
|
234
|
-
const { configOptions:
|
|
235
|
-
return u(
|
|
236
|
-
let { rules:
|
|
237
|
-
const
|
|
238
|
-
return
|
|
233
|
+
const d = J(() => {
|
|
234
|
+
const { configOptions: h } = r;
|
|
235
|
+
return u(h).map((D) => {
|
|
236
|
+
let { rules: C = !1, label: A = "" } = D;
|
|
237
|
+
const O = { required: !0, message: `${A}不能为空`, trigger: "blur" };
|
|
238
|
+
return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), D.rules = C, D;
|
|
239
239
|
});
|
|
240
|
-
}),
|
|
241
|
-
if (!
|
|
242
|
-
switch (
|
|
240
|
+
}), v = (h = "", y = "", x = "") => {
|
|
241
|
+
if (!x)
|
|
242
|
+
switch (h) {
|
|
243
243
|
case a.INPUT:
|
|
244
244
|
case a.INPUT_TEXT_AREA:
|
|
245
245
|
return `请输入${y}`;
|
|
@@ -259,10 +259,10 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
259
259
|
case a.MONTH_RANGE:
|
|
260
260
|
return ["开始月份", "结束月份"];
|
|
261
261
|
}
|
|
262
|
-
return
|
|
263
|
-
},
|
|
262
|
+
return x;
|
|
263
|
+
}, M = (h = "", y = "") => {
|
|
264
264
|
if (!y)
|
|
265
|
-
switch (
|
|
265
|
+
switch (h) {
|
|
266
266
|
case a.WEEK:
|
|
267
267
|
return "ww";
|
|
268
268
|
case a.DATE:
|
|
@@ -283,234 +283,234 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
283
283
|
}
|
|
284
284
|
return y;
|
|
285
285
|
}, $ = () => {
|
|
286
|
-
const
|
|
287
|
-
for (const
|
|
288
|
-
const { type:
|
|
289
|
-
if (
|
|
290
|
-
const { 0: F = "", 1: R = "" } =
|
|
291
|
-
|
|
286
|
+
const h = u(c), { configOptions: y } = r, x = u(y);
|
|
287
|
+
for (const D of x) {
|
|
288
|
+
const { type: C = "", range: A = [], prop: O = "" } = D;
|
|
289
|
+
if (C.endsWith("range") && A && A.length === 2) {
|
|
290
|
+
const { 0: F = "", 1: R = "" } = h[O], { 0: z = "", 1: I = "" } = A;
|
|
291
|
+
h[z] = F, h[I] = R;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
return l("on-form",
|
|
294
|
+
return l("on-form", h), h;
|
|
295
295
|
}, w = () => {
|
|
296
296
|
i.value.resetFields(), l("on-clear", c.value);
|
|
297
|
-
}, B = (
|
|
298
|
-
const
|
|
299
|
-
type:
|
|
297
|
+
}, B = (h, y) => {
|
|
298
|
+
const x = {
|
|
299
|
+
type: h,
|
|
300
300
|
prop: y,
|
|
301
301
|
value: c.value[y] || ""
|
|
302
302
|
};
|
|
303
|
-
l("on-change",
|
|
303
|
+
l("on-change", x);
|
|
304
304
|
};
|
|
305
305
|
return s({
|
|
306
306
|
triggerOperationClear: w,
|
|
307
307
|
triggerOperationForm: $,
|
|
308
|
-
validateForm: (
|
|
308
|
+
validateForm: (h = () => {
|
|
309
309
|
}) => {
|
|
310
|
-
i.value.validate((y = !1,
|
|
310
|
+
i.value.validate((y = !1, x = {}) => {
|
|
311
311
|
if (y) {
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const D = $();
|
|
313
|
+
h(D);
|
|
314
314
|
} else {
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
[
|
|
318
|
-
0: { message:
|
|
315
|
+
h(!1);
|
|
316
|
+
const D = Object.keys(x)[0], {
|
|
317
|
+
[D]: {
|
|
318
|
+
0: { message: C = "" }
|
|
319
319
|
}
|
|
320
|
-
} =
|
|
321
|
-
|
|
320
|
+
} = x;
|
|
321
|
+
Le.error(C);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
}), (
|
|
326
|
-
const
|
|
327
|
-
return n(), b("div",
|
|
328
|
-
|
|
329
|
-
Q((n(),
|
|
325
|
+
}), (h, y) => {
|
|
326
|
+
const x = f("el-input"), D = f("el-input-number"), C = f("el-radio"), A = f("el-radio-group"), O = f("el-option"), F = f("el-select"), R = f("el-slider"), z = f("el-switch"), I = f("el-date-picker"), j = f("el-time-picker"), Z = f("el-checkbox"), ee = f("el-checkbox-group"), te = f("el-form-item"), ue = f("el-col"), se = f("el-row"), ce = f("el-form");
|
|
327
|
+
return n(), b("div", je, [
|
|
328
|
+
S("div", Ye, [
|
|
329
|
+
Q((n(), E(ce, {
|
|
330
330
|
ref_key: "EL_FORM_REF",
|
|
331
331
|
ref: i,
|
|
332
332
|
"label-suffix": ":",
|
|
333
333
|
model: c.value
|
|
334
334
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
default:
|
|
338
|
-
(n(!0), b(
|
|
339
|
-
label:
|
|
340
|
-
prop:
|
|
335
|
+
default: T(() => [
|
|
336
|
+
N(se, null, {
|
|
337
|
+
default: T(() => [
|
|
338
|
+
(n(!0), b(P, null, X(u(d), ({
|
|
339
|
+
label: L = "",
|
|
340
|
+
prop: p = "",
|
|
341
341
|
type: o = "text",
|
|
342
342
|
placeholder: _ = "",
|
|
343
343
|
readonly: G = e.readonlys,
|
|
344
|
-
clearable:
|
|
345
|
-
rows:
|
|
346
|
-
min:
|
|
347
|
-
max:
|
|
348
|
-
range:
|
|
344
|
+
clearable: me = !0,
|
|
345
|
+
rows: ge = 2,
|
|
346
|
+
min: fe = 1,
|
|
347
|
+
max: re = 10,
|
|
348
|
+
range: K = [],
|
|
349
349
|
format: H = "",
|
|
350
350
|
rules: ae = [],
|
|
351
351
|
limit: ne = e.limits
|
|
352
|
-
} = {}, g) => (n(),
|
|
352
|
+
} = {}, g) => (n(), E(ue, {
|
|
353
353
|
key: g,
|
|
354
354
|
xs: 24,
|
|
355
355
|
sm: 24,
|
|
356
356
|
md: e.medium
|
|
357
357
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
|
|
360
|
-
label:
|
|
361
|
-
prop:
|
|
358
|
+
default: T(() => [
|
|
359
|
+
N(te, {
|
|
360
|
+
label: L,
|
|
361
|
+
prop: p,
|
|
362
362
|
rules: ae
|
|
363
363
|
}, {
|
|
364
|
-
default:
|
|
364
|
+
default: T(() => [
|
|
365
365
|
G ? (n(), b("div", Ge, [
|
|
366
|
-
|
|
367
|
-
content: c.value[
|
|
366
|
+
N(Me, {
|
|
367
|
+
content: c.value[p],
|
|
368
368
|
limit: ne,
|
|
369
369
|
none: e.none
|
|
370
370
|
}, null, 8, ["content", "limit", "none"])
|
|
371
|
-
])) : (n(), b(
|
|
372
|
-
o === u(a).INPUT ? (n(),
|
|
371
|
+
])) : (n(), b(P, { key: 0 }, [
|
|
372
|
+
o === u(a).INPUT ? (n(), E(x, {
|
|
373
373
|
key: 0,
|
|
374
|
-
modelValue: c.value[
|
|
375
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
376
|
-
placeholder:
|
|
377
|
-
clearable:
|
|
378
|
-
onChange: (m) => B(o,
|
|
374
|
+
modelValue: c.value[p],
|
|
375
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
376
|
+
placeholder: v(o, L, _),
|
|
377
|
+
clearable: me,
|
|
378
|
+
onChange: (m) => B(o, p)
|
|
379
379
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
|
|
380
|
-
o === u(a).INPUT_TEXT_AREA ? (n(),
|
|
380
|
+
o === u(a).INPUT_TEXT_AREA ? (n(), E(x, {
|
|
381
381
|
key: 1,
|
|
382
|
-
modelValue: c.value[
|
|
383
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
382
|
+
modelValue: c.value[p],
|
|
383
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
384
384
|
type: "textarea",
|
|
385
|
-
rows:
|
|
386
|
-
clearable:
|
|
387
|
-
placeholder:
|
|
388
|
-
onChange: (m) => B(o,
|
|
385
|
+
rows: ge,
|
|
386
|
+
clearable: me,
|
|
387
|
+
placeholder: v(o, L, _),
|
|
388
|
+
onChange: (m) => B(o, p)
|
|
389
389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
|
|
390
|
-
o === u(a).INPUT_NUMBER ? (n(),
|
|
390
|
+
o === u(a).INPUT_NUMBER ? (n(), E(D, {
|
|
391
391
|
key: 2,
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue": y[0] || (y[0] = (m) =>
|
|
394
|
-
min:
|
|
395
|
-
max:
|
|
392
|
+
modelValue: h.num,
|
|
393
|
+
"onUpdate:modelValue": y[0] || (y[0] = (m) => h.num = m),
|
|
394
|
+
min: fe,
|
|
395
|
+
max: re,
|
|
396
396
|
onChange: B
|
|
397
397
|
}, null, 8, ["modelValue", "min", "max"])) : V("", !0),
|
|
398
|
-
o === u(a).RADIO ? (n(), A
|
|
398
|
+
o === u(a).RADIO ? (n(), E(A, {
|
|
399
399
|
key: 3,
|
|
400
|
-
modelValue: c.value[
|
|
401
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
402
|
-
onChange: (m) => B(o,
|
|
400
|
+
modelValue: c.value[p],
|
|
401
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
402
|
+
onChange: (m) => B(o, p)
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
(n(!0), b(
|
|
406
|
-
key:
|
|
404
|
+
default: T(() => [
|
|
405
|
+
(n(!0), b(P, null, X(K, (m, ie) => (n(), E(C, {
|
|
406
|
+
key: ie,
|
|
407
407
|
label: m.value
|
|
408
408
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
W(
|
|
409
|
+
default: T(() => [
|
|
410
|
+
W(Y(m.label), 1)
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, 1032, ["label"]))), 128))
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
416
416
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
|
|
417
|
-
o === u(a).SELECT ? (n(),
|
|
417
|
+
o === u(a).SELECT ? (n(), E(F, {
|
|
418
418
|
key: 4,
|
|
419
|
-
modelValue: c.value[
|
|
420
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
421
|
-
placeholder:
|
|
422
|
-
onChange: (m) => B(o,
|
|
419
|
+
modelValue: c.value[p],
|
|
420
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
421
|
+
placeholder: v(o, L, _),
|
|
422
|
+
onChange: (m) => B(o, p)
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
(n(!0), b(
|
|
426
|
-
key:
|
|
424
|
+
default: T(() => [
|
|
425
|
+
(n(!0), b(P, null, X(K, (m, ie) => (n(), E(O, {
|
|
426
|
+
key: ie,
|
|
427
427
|
label: m.label,
|
|
428
428
|
value: m.value
|
|
429
429
|
}, null, 8, ["label", "value"]))), 128))
|
|
430
430
|
]),
|
|
431
431
|
_: 2
|
|
432
432
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
|
|
433
|
-
o === u(a).SLIDER ? (n(),
|
|
433
|
+
o === u(a).SLIDER ? (n(), E(R, {
|
|
434
434
|
key: 5,
|
|
435
|
-
modelValue: c.value[
|
|
436
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
437
|
-
min:
|
|
438
|
-
max:
|
|
439
|
-
onChange: (m) => B(o,
|
|
435
|
+
modelValue: c.value[p],
|
|
436
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
437
|
+
min: fe,
|
|
438
|
+
max: re,
|
|
439
|
+
onChange: (m) => B(o, p)
|
|
440
440
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
|
|
441
|
-
o === u(a).SWITCH ? (n(),
|
|
441
|
+
o === u(a).SWITCH ? (n(), E(z, {
|
|
442
442
|
key: 6,
|
|
443
|
-
modelValue: c.value[
|
|
444
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
445
|
-
"active-value":
|
|
446
|
-
"inactive-value":
|
|
447
|
-
onChange: (m) => B(o,
|
|
443
|
+
modelValue: c.value[p],
|
|
444
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
445
|
+
"active-value": K[0] || !0,
|
|
446
|
+
"inactive-value": K[1] || !1,
|
|
447
|
+
onChange: (m) => B(o, p)
|
|
448
448
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
|
|
449
449
|
[u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
|
|
450
450
|
o
|
|
451
|
-
) ? (n(),
|
|
451
|
+
) ? (n(), E(I, {
|
|
452
452
|
key: 7,
|
|
453
|
-
modelValue: c.value[
|
|
454
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
455
|
-
format:
|
|
456
|
-
"value-format":
|
|
453
|
+
modelValue: c.value[p],
|
|
454
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
455
|
+
format: M(o, H),
|
|
456
|
+
"value-format": M(o, H),
|
|
457
457
|
type: o,
|
|
458
|
-
placeholder:
|
|
459
|
-
onChange: (m) => B(o,
|
|
458
|
+
placeholder: v(o, L, _),
|
|
459
|
+
onChange: (m) => B(o, p)
|
|
460
460
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
|
|
461
461
|
[
|
|
462
462
|
u(a).DATE_RANGE,
|
|
463
463
|
u(a).MONTH_RANGE,
|
|
464
464
|
u(a).DATE_TIME_RANGE
|
|
465
|
-
].includes(o) ? (n(),
|
|
465
|
+
].includes(o) ? (n(), E(I, {
|
|
466
466
|
key: 8,
|
|
467
|
-
modelValue: c.value[
|
|
468
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
467
|
+
modelValue: c.value[p],
|
|
468
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
469
469
|
type: o,
|
|
470
|
-
"value-format":
|
|
471
|
-
"start-placeholder":
|
|
472
|
-
"end-placeholder":
|
|
473
|
-
onChange: (m) => B(o,
|
|
470
|
+
"value-format": M(o, H),
|
|
471
|
+
"start-placeholder": v(o, L, _)[0],
|
|
472
|
+
"end-placeholder": v(o, L, _)[1],
|
|
473
|
+
onChange: (m) => B(o, p)
|
|
474
474
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
|
|
475
|
-
[u(a).TIME].includes(o) ? (n(),
|
|
475
|
+
[u(a).TIME].includes(o) ? (n(), E(j, {
|
|
476
476
|
key: 9,
|
|
477
|
-
modelValue: c.value[
|
|
478
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
477
|
+
modelValue: c.value[p],
|
|
478
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
479
479
|
"arrow-control": "",
|
|
480
|
-
"value-format":
|
|
481
|
-
placeholder:
|
|
482
|
-
onChange: (m) => B(o,
|
|
480
|
+
"value-format": M(o, H),
|
|
481
|
+
placeholder: v(o, L, _),
|
|
482
|
+
onChange: (m) => B(o, p)
|
|
483
483
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
|
|
484
|
-
[u(a).TIME_RANGE].includes(o) ? (n(),
|
|
484
|
+
[u(a).TIME_RANGE].includes(o) ? (n(), E(j, {
|
|
485
485
|
key: 10,
|
|
486
|
-
modelValue: c.value[
|
|
487
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
486
|
+
modelValue: c.value[p],
|
|
487
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
488
488
|
"is-range": "",
|
|
489
|
-
"value-format":
|
|
490
|
-
"start-placeholder":
|
|
491
|
-
"end-placeholder":
|
|
492
|
-
onChange: (m) => B(o,
|
|
489
|
+
"value-format": M(o, H),
|
|
490
|
+
"start-placeholder": v(o, L, _)[0],
|
|
491
|
+
"end-placeholder": v(o, L, _)[1],
|
|
492
|
+
onChange: (m) => B(o, p)
|
|
493
493
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
|
|
494
|
-
[u(a).CHECKBOX].includes(o) ? (n(),
|
|
494
|
+
[u(a).CHECKBOX].includes(o) ? (n(), E(ee, {
|
|
495
495
|
key: 11,
|
|
496
|
-
modelValue: c.value[
|
|
497
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
498
|
-
onChange: (m) => B(o,
|
|
496
|
+
modelValue: c.value[p],
|
|
497
|
+
"onUpdate:modelValue": (m) => c.value[p] = m,
|
|
498
|
+
onChange: (m) => B(o, p)
|
|
499
499
|
}, {
|
|
500
|
-
default:
|
|
501
|
-
(n(!0), b(
|
|
502
|
-
key:
|
|
500
|
+
default: T(() => [
|
|
501
|
+
(n(!0), b(P, null, X(K, (m, ie) => (n(), E(Z, {
|
|
502
|
+
key: ie,
|
|
503
503
|
label: m.value
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
W(
|
|
505
|
+
default: T(() => [
|
|
506
|
+
W(Y(m.label), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 2
|
|
509
509
|
}, 1032, ["label"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
|
|
513
|
-
[].includes(o) ? (n(), b(
|
|
513
|
+
[].includes(o) ? (n(), b(P, { key: 12 }, [], 64)) : V("", !0)
|
|
514
514
|
], 64))
|
|
515
515
|
]),
|
|
516
516
|
_: 2
|
|
@@ -531,23 +531,49 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
|
-
const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "
|
|
534
|
+
const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "base_table_content" }, Ze = {
|
|
535
|
+
key: 1,
|
|
536
|
+
class: "base_table_table_txt"
|
|
537
|
+
}, Ke = {
|
|
535
538
|
name: "BsgoalBaseTableContent"
|
|
536
|
-
},
|
|
539
|
+
}, Je = /* @__PURE__ */ Object.assign(Ke, {
|
|
537
540
|
props: {
|
|
541
|
+
/**
|
|
542
|
+
* 数据
|
|
543
|
+
*/
|
|
538
544
|
data: {
|
|
539
|
-
type: [String, Number, Object,
|
|
545
|
+
type: [String, Number, Object, Boolean],
|
|
540
546
|
default: ""
|
|
547
|
+
},
|
|
548
|
+
/**
|
|
549
|
+
* 内容提示
|
|
550
|
+
*/
|
|
551
|
+
tooltip: {
|
|
552
|
+
type: [Boolean, Number],
|
|
553
|
+
default: !1
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* 内容限定数
|
|
557
|
+
*/
|
|
558
|
+
limit: {
|
|
559
|
+
type: [Number],
|
|
560
|
+
default: 10
|
|
541
561
|
}
|
|
542
562
|
},
|
|
543
563
|
setup(e) {
|
|
544
564
|
return (s, l) => (n(), b("div", Xe, [
|
|
545
|
-
|
|
565
|
+
S("div", Qe, [
|
|
566
|
+
e.tooltip ? (n(), E(Me, {
|
|
567
|
+
key: 0,
|
|
568
|
+
content: e.data,
|
|
569
|
+
limit: e.limit
|
|
570
|
+
}, null, 8, ["content", "limit"])) : (n(), b("div", Ze, Y(e.data), 1))
|
|
571
|
+
])
|
|
546
572
|
]));
|
|
547
573
|
}
|
|
548
574
|
});
|
|
549
575
|
/*! Element Plus v2.3.3 */
|
|
550
|
-
var
|
|
576
|
+
var qe = {
|
|
551
577
|
name: "zh-cn",
|
|
552
578
|
el: {
|
|
553
579
|
colorpicker: {
|
|
@@ -674,9 +700,9 @@ var Je = {
|
|
|
674
700
|
}
|
|
675
701
|
}
|
|
676
702
|
};
|
|
677
|
-
const
|
|
703
|
+
const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */ S("span", null, "总数", -1), lt = {
|
|
678
704
|
name: "BsgoalBaseTablePagination"
|
|
679
|
-
},
|
|
705
|
+
}, nt = /* @__PURE__ */ Object.assign(lt, {
|
|
680
706
|
props: {
|
|
681
707
|
/**
|
|
682
708
|
* 当前页数
|
|
@@ -715,24 +741,24 @@ const qe = { class: "bsgoal-base-table-pagination" }, et = { class: "base_table_
|
|
|
715
741
|
s("on-current-change", t);
|
|
716
742
|
}, i = k(1);
|
|
717
743
|
return (t, c) => {
|
|
718
|
-
const d = f("el-pagination"),
|
|
719
|
-
return n(), b("div",
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
default:
|
|
723
|
-
|
|
744
|
+
const d = f("el-pagination"), v = f("el-config-provider");
|
|
745
|
+
return n(), b("div", et, [
|
|
746
|
+
S("div", tt, [
|
|
747
|
+
N(v, { locale: u(qe) }, {
|
|
748
|
+
default: T(() => [
|
|
749
|
+
N(d, {
|
|
724
750
|
background: "",
|
|
725
751
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
726
752
|
"current-page": i.value,
|
|
727
|
-
"onUpdate:currentPage": c[0] || (c[0] = (
|
|
753
|
+
"onUpdate:currentPage": c[0] || (c[0] = (M) => i.value = M),
|
|
728
754
|
"page-sizes": e.pageSizes,
|
|
729
755
|
"page-size": e.pageSize,
|
|
730
756
|
total: e.total,
|
|
731
757
|
onSizeChange: l,
|
|
732
758
|
onCurrentChange: r
|
|
733
759
|
}, {
|
|
734
|
-
next:
|
|
735
|
-
|
|
760
|
+
next: T(() => [
|
|
761
|
+
at
|
|
736
762
|
]),
|
|
737
763
|
_: 1
|
|
738
764
|
}, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
@@ -744,39 +770,39 @@ const qe = { class: "bsgoal-base-table-pagination" }, et = { class: "base_table_
|
|
|
744
770
|
};
|
|
745
771
|
}
|
|
746
772
|
});
|
|
747
|
-
const
|
|
773
|
+
const $e = (e, s) => {
|
|
748
774
|
const l = e.__vccOpts || e;
|
|
749
775
|
for (const [r, i] of s)
|
|
750
776
|
l[r] = i;
|
|
751
777
|
return l;
|
|
752
|
-
},
|
|
778
|
+
}, ot = {
|
|
753
779
|
name: "BsgoalBaseTableEmpty"
|
|
754
|
-
},
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
780
|
+
}, ut = { class: "bsgoal-base-table-empty" }, st = /* @__PURE__ */ S("div", { class: "base_table_empty" }, [
|
|
781
|
+
/* @__PURE__ */ S("div", { class: "base_table_empty_img" }, [
|
|
782
|
+
/* @__PURE__ */ S("img", {
|
|
757
783
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
758
784
|
alt: ""
|
|
759
785
|
})
|
|
760
786
|
]),
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
], -1),
|
|
763
|
-
|
|
787
|
+
/* @__PURE__ */ S("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
788
|
+
], -1), ct = [
|
|
789
|
+
st
|
|
764
790
|
];
|
|
765
|
-
function
|
|
766
|
-
return n(), b("div",
|
|
791
|
+
function rt(e, s, l, r, i, t) {
|
|
792
|
+
return n(), b("div", ut, ct);
|
|
767
793
|
}
|
|
768
|
-
const
|
|
794
|
+
const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height: r = "" } = {}) => {
|
|
769
795
|
const i = u(e);
|
|
770
796
|
if (i) {
|
|
771
797
|
const t = i.querySelector(".el-table");
|
|
772
798
|
t && Ce(() => {
|
|
773
799
|
const { y: c = 0 } = t.getBoundingClientRect();
|
|
774
800
|
let d = `calc(100vh - ${c + s}px)`;
|
|
775
|
-
const
|
|
776
|
-
r && (
|
|
801
|
+
const v = Number.parseInt(r);
|
|
802
|
+
r && (v ? d = `${r}px` : d = r), t.style.height = d;
|
|
777
803
|
});
|
|
778
804
|
}
|
|
779
|
-
},
|
|
805
|
+
}, ye = (e = Promise.resolve(), s = null, l = k(!1), r = k(null)) => {
|
|
780
806
|
const i = k("");
|
|
781
807
|
return l.value = !0, e.then((t = {}) => {
|
|
782
808
|
const { data: c = {}, message: d = "" } = t;
|
|
@@ -791,7 +817,7 @@ const rt = /* @__PURE__ */ Me(nt, [["render", ct]]), it = (e = null, { expressio
|
|
|
791
817
|
}).finally(() => {
|
|
792
818
|
l.value = !1;
|
|
793
819
|
}), { data: r, message: i, loading: l };
|
|
794
|
-
},
|
|
820
|
+
}, _t = (e = null) => {
|
|
795
821
|
switch (toString.apply(e)) {
|
|
796
822
|
case "[object Object]":
|
|
797
823
|
return "object";
|
|
@@ -808,13 +834,13 @@ const rt = /* @__PURE__ */ Me(nt, [["render", ct]]), it = (e = null, { expressio
|
|
|
808
834
|
case "[object Undefind]":
|
|
809
835
|
return "undefind";
|
|
810
836
|
}
|
|
811
|
-
},
|
|
812
|
-
const
|
|
837
|
+
}, mt = (e) => _t(e) === "boolean";
|
|
838
|
+
const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
813
839
|
key: 0,
|
|
814
840
|
class: "base_table_menu"
|
|
815
|
-
},
|
|
841
|
+
}, pt = {
|
|
816
842
|
name: "BsgoalBaseTable"
|
|
817
|
-
},
|
|
843
|
+
}, Ne = /* @__PURE__ */ Object.assign(pt, {
|
|
818
844
|
props: {
|
|
819
845
|
/**
|
|
820
846
|
* >----------props----------<
|
|
@@ -911,58 +937,69 @@ const mt = { class: "bsgoal-base-table" }, gt = { class: "base_table" }, ft = {
|
|
|
911
937
|
height: {
|
|
912
938
|
type: [Number, String, Boolean],
|
|
913
939
|
default: ""
|
|
940
|
+
},
|
|
941
|
+
/**
|
|
942
|
+
* 是否显示分页
|
|
943
|
+
*/
|
|
944
|
+
page: {
|
|
945
|
+
type: Boolean,
|
|
946
|
+
default: !0
|
|
914
947
|
}
|
|
915
948
|
},
|
|
916
949
|
setup(e, { expose: s }) {
|
|
917
|
-
const l = e, r =
|
|
918
|
-
const { configOptions:
|
|
919
|
-
return
|
|
950
|
+
const l = e, r = J(() => {
|
|
951
|
+
const { configOptions: A = [], operation: O = !1, operationWidth: F = 0 } = l, R = u(A), z = [];
|
|
952
|
+
return O && z.push({
|
|
920
953
|
label: "操作",
|
|
921
954
|
fixed: "right",
|
|
922
955
|
prop: "operation",
|
|
923
|
-
width:
|
|
924
|
-
}), [...
|
|
956
|
+
width: F
|
|
957
|
+
}), [...R, ...z];
|
|
925
958
|
}), i = k(null), t = Ve("transferFoldStatus");
|
|
926
|
-
|
|
927
|
-
const { height:
|
|
928
|
-
|
|
959
|
+
Ee(() => {
|
|
960
|
+
const { height: A } = l, O = t ? t.value : !1, F = u(l.expression);
|
|
961
|
+
mt(A) || dt(i, { arg: O, expression: F, height: A });
|
|
929
962
|
});
|
|
930
|
-
const c =
|
|
931
|
-
|
|
932
|
-
|
|
963
|
+
const c = u(l.mapProps), d = ve({
|
|
964
|
+
currentPage: "currentPage",
|
|
965
|
+
pageSize: "pageSize",
|
|
966
|
+
rows: "rows",
|
|
967
|
+
total: "total"
|
|
968
|
+
}, c), v = k(1), M = k(10), $ = k(0), w = k({}), B = k(l.loading), U = k(l.data), h = k({}), y = () => {
|
|
969
|
+
const { fetch: A, call: O } = l, F = w.value, R = v.value, z = M.value, I = ve({}, F);
|
|
970
|
+
I[d.currentPage] = R, I[d.pageSize] = z, ye(A(I), O, B, h);
|
|
933
971
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
w.value = v[D.rows], p.value = v[D.total];
|
|
972
|
+
de(h, (A) => {
|
|
973
|
+
U.value = A[d.rows], $.value = A[d.total];
|
|
937
974
|
});
|
|
938
|
-
const
|
|
939
|
-
|
|
940
|
-
},
|
|
941
|
-
|
|
942
|
-
}, C = (
|
|
943
|
-
|
|
975
|
+
const x = (A = {}) => {
|
|
976
|
+
w.value = A, v.value = 1, y();
|
|
977
|
+
}, D = (A = 1) => {
|
|
978
|
+
v.value = A;
|
|
979
|
+
}, C = (A = 10) => {
|
|
980
|
+
M.value = A;
|
|
944
981
|
};
|
|
945
|
-
return
|
|
946
|
-
|
|
982
|
+
return de([v, M], () => {
|
|
983
|
+
y();
|
|
947
984
|
}), s({
|
|
948
|
-
refreshList:
|
|
949
|
-
}), (
|
|
950
|
-
const
|
|
951
|
-
return n(), b("div",
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
985
|
+
refreshList: x
|
|
986
|
+
}), (A, O) => {
|
|
987
|
+
const F = f("el-table-column"), R = f("el-table"), z = ke("loading");
|
|
988
|
+
return n(), b("div", gt, [
|
|
989
|
+
S("div", ft, [
|
|
990
|
+
A.$slots.menu ? (n(), b("div", vt, [
|
|
991
|
+
q(A.$slots, "menu")
|
|
955
992
|
])) : V("", !0),
|
|
956
|
-
|
|
993
|
+
S("div", {
|
|
957
994
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
958
995
|
ref: i
|
|
959
996
|
}, [
|
|
960
|
-
Q((n(),
|
|
997
|
+
Q((n(), E(R, {
|
|
961
998
|
stripe: "",
|
|
962
999
|
border: "",
|
|
963
1000
|
"highlight-current-row": "",
|
|
964
1001
|
style: { width: "100%" },
|
|
965
|
-
data:
|
|
1002
|
+
data: U.value,
|
|
966
1003
|
"header-cell-style": {
|
|
967
1004
|
fontWeight: "bold",
|
|
968
1005
|
backgroundColor: "#EBEEF5",
|
|
@@ -970,29 +1007,31 @@ const mt = { class: "bsgoal-base-table" }, gt = { class: "base_table" }, ft = {
|
|
|
970
1007
|
fontSize: "14px"
|
|
971
1008
|
}
|
|
972
1009
|
}, {
|
|
973
|
-
empty:
|
|
974
|
-
|
|
1010
|
+
empty: T(() => [
|
|
1011
|
+
N(it)
|
|
975
1012
|
]),
|
|
976
|
-
default:
|
|
977
|
-
e.selection ? (n(),
|
|
1013
|
+
default: T(() => [
|
|
1014
|
+
e.selection ? (n(), E(F, {
|
|
978
1015
|
key: 0,
|
|
979
1016
|
fixed: "left",
|
|
980
1017
|
type: "selection",
|
|
981
1018
|
width: "40"
|
|
982
1019
|
})) : V("", !0),
|
|
983
|
-
(n(!0), b(
|
|
984
|
-
key:
|
|
985
|
-
label:
|
|
986
|
-
align:
|
|
987
|
-
width:
|
|
988
|
-
fixed:
|
|
989
|
-
"min-width": `${
|
|
1020
|
+
(n(!0), b(P, null, X(u(r), ({ prop: I = "", label: j = "", align: Z = "center", width: ee = "", fixed: te = !1, tooltip: ue = !1, limit: se = 0 } = {}, ce) => (n(), E(F, {
|
|
1021
|
+
key: ce,
|
|
1022
|
+
label: j,
|
|
1023
|
+
align: Z,
|
|
1024
|
+
width: ee,
|
|
1025
|
+
fixed: te,
|
|
1026
|
+
"min-width": `${j.length * 14 + 24}px`
|
|
990
1027
|
}, {
|
|
991
|
-
default:
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1028
|
+
default: T(({ row: L }) => [
|
|
1029
|
+
q(A.$slots, I, { row: L }, () => [
|
|
1030
|
+
N(Je, {
|
|
1031
|
+
limit: se,
|
|
1032
|
+
tooltip: ue,
|
|
1033
|
+
data: L[I]
|
|
1034
|
+
}, null, 8, ["limit", "tooltip", "data"])
|
|
996
1035
|
])
|
|
997
1036
|
]),
|
|
998
1037
|
_: 2
|
|
@@ -1000,14 +1039,15 @@ const mt = { class: "bsgoal-base-table" }, gt = { class: "base_table" }, ft = {
|
|
|
1000
1039
|
]),
|
|
1001
1040
|
_: 3
|
|
1002
1041
|
}, 8, ["data", "header-cell-style"])), [
|
|
1003
|
-
[
|
|
1042
|
+
[z, B.value]
|
|
1004
1043
|
])
|
|
1005
1044
|
], 512),
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1045
|
+
e.page ? (n(), E(nt, {
|
|
1046
|
+
key: 1,
|
|
1047
|
+
total: $.value,
|
|
1048
|
+
onOnCurrentChange: D,
|
|
1009
1049
|
onOnSizeChange: C
|
|
1010
|
-
}, null, 8, ["total"])
|
|
1050
|
+
}, null, 8, ["total"])) : V("", !0)
|
|
1011
1051
|
])
|
|
1012
1052
|
]);
|
|
1013
1053
|
};
|
|
@@ -1015,7 +1055,7 @@ const mt = { class: "bsgoal-base-table" }, gt = { class: "base_table" }, ft = {
|
|
|
1015
1055
|
});
|
|
1016
1056
|
const ht = {
|
|
1017
1057
|
name: "BsgoalBaseLine"
|
|
1018
|
-
},
|
|
1058
|
+
}, Te = /* @__PURE__ */ Object.assign(ht, {
|
|
1019
1059
|
props: {
|
|
1020
1060
|
/**
|
|
1021
1061
|
* 是否为垂直
|
|
@@ -1027,10 +1067,10 @@ const ht = {
|
|
|
1027
1067
|
},
|
|
1028
1068
|
setup(e) {
|
|
1029
1069
|
return (s, l) => (n(), b("div", {
|
|
1030
|
-
class:
|
|
1070
|
+
class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1031
1071
|
}, [
|
|
1032
|
-
|
|
1033
|
-
class:
|
|
1072
|
+
S("div", {
|
|
1073
|
+
class: _e(["base_line", { base_line__vertical: e.vertical }])
|
|
1034
1074
|
}, null, 2)
|
|
1035
1075
|
], 2));
|
|
1036
1076
|
}
|
|
@@ -1041,12 +1081,12 @@ var oe = (e, s) => {
|
|
|
1041
1081
|
for (let [r, i] of s)
|
|
1042
1082
|
l[r] = i;
|
|
1043
1083
|
return l;
|
|
1044
|
-
}, pt = {
|
|
1045
|
-
name: "ArrowDown"
|
|
1046
1084
|
}, Et = {
|
|
1085
|
+
name: "ArrowDown"
|
|
1086
|
+
}, bt = {
|
|
1047
1087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1048
1088
|
viewBox: "0 0 1024 1024"
|
|
1049
|
-
},
|
|
1089
|
+
}, yt = /* @__PURE__ */ S(
|
|
1050
1090
|
"path",
|
|
1051
1091
|
{
|
|
1052
1092
|
fill: "currentColor",
|
|
@@ -1055,18 +1095,18 @@ var oe = (e, s) => {
|
|
|
1055
1095
|
null,
|
|
1056
1096
|
-1
|
|
1057
1097
|
/* HOISTED */
|
|
1058
|
-
),
|
|
1059
|
-
|
|
1098
|
+
), Tt = [
|
|
1099
|
+
yt
|
|
1060
1100
|
];
|
|
1061
|
-
function
|
|
1062
|
-
return n(), b("svg",
|
|
1101
|
+
function At(e, s, l, r, i, t) {
|
|
1102
|
+
return n(), b("svg", bt, Tt);
|
|
1063
1103
|
}
|
|
1064
|
-
var
|
|
1104
|
+
var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]), Ct = {
|
|
1065
1105
|
name: "ArrowLeft"
|
|
1066
|
-
},
|
|
1106
|
+
}, Vt = {
|
|
1067
1107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1068
1108
|
viewBox: "0 0 1024 1024"
|
|
1069
|
-
},
|
|
1109
|
+
}, Mt = /* @__PURE__ */ S(
|
|
1070
1110
|
"path",
|
|
1071
1111
|
{
|
|
1072
1112
|
fill: "currentColor",
|
|
@@ -1075,18 +1115,18 @@ var At = /* @__PURE__ */ oe(pt, [["render", Tt], ["__file", "arrow-down.vue"]]),
|
|
|
1075
1115
|
null,
|
|
1076
1116
|
-1
|
|
1077
1117
|
/* HOISTED */
|
|
1078
|
-
),
|
|
1079
|
-
|
|
1118
|
+
), $t = [
|
|
1119
|
+
Mt
|
|
1080
1120
|
];
|
|
1081
|
-
function
|
|
1082
|
-
return n(), b("svg",
|
|
1121
|
+
function Nt(e, s, l, r, i, t) {
|
|
1122
|
+
return n(), b("svg", Vt, $t);
|
|
1083
1123
|
}
|
|
1084
|
-
var
|
|
1124
|
+
var wt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), Bt = {
|
|
1085
1125
|
name: "ArrowRight"
|
|
1086
|
-
},
|
|
1126
|
+
}, Dt = {
|
|
1087
1127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1088
1128
|
viewBox: "0 0 1024 1024"
|
|
1089
|
-
},
|
|
1129
|
+
}, kt = /* @__PURE__ */ S(
|
|
1090
1130
|
"path",
|
|
1091
1131
|
{
|
|
1092
1132
|
fill: "currentColor",
|
|
@@ -1095,18 +1135,18 @@ var Nt = /* @__PURE__ */ oe(xt, [["render", $t], ["__file", "arrow-left.vue"]]),
|
|
|
1095
1135
|
null,
|
|
1096
1136
|
-1
|
|
1097
1137
|
/* HOISTED */
|
|
1098
|
-
),
|
|
1099
|
-
|
|
1138
|
+
), St = [
|
|
1139
|
+
kt
|
|
1100
1140
|
];
|
|
1101
1141
|
function Ot(e, s, l, r, i, t) {
|
|
1102
|
-
return n(), b("svg",
|
|
1142
|
+
return n(), b("svg", Dt, St);
|
|
1103
1143
|
}
|
|
1104
|
-
var
|
|
1144
|
+
var It = /* @__PURE__ */ oe(Bt, [["render", Ot], ["__file", "arrow-right.vue"]]), Ft = {
|
|
1105
1145
|
name: "ArrowUp"
|
|
1106
|
-
},
|
|
1146
|
+
}, Rt = {
|
|
1107
1147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1108
1148
|
viewBox: "0 0 1024 1024"
|
|
1109
|
-
},
|
|
1149
|
+
}, Ut = /* @__PURE__ */ S(
|
|
1110
1150
|
"path",
|
|
1111
1151
|
{
|
|
1112
1152
|
fill: "currentColor",
|
|
@@ -1115,18 +1155,18 @@ var St = /* @__PURE__ */ oe(wt, [["render", Ot], ["__file", "arrow-right.vue"]])
|
|
|
1115
1155
|
null,
|
|
1116
1156
|
-1
|
|
1117
1157
|
/* HOISTED */
|
|
1118
|
-
),
|
|
1119
|
-
|
|
1158
|
+
), Lt = [
|
|
1159
|
+
Ut
|
|
1120
1160
|
];
|
|
1121
|
-
function
|
|
1122
|
-
return n(), b("svg",
|
|
1161
|
+
function zt(e, s, l, r, i, t) {
|
|
1162
|
+
return n(), b("svg", Rt, Lt);
|
|
1123
1163
|
}
|
|
1124
|
-
var
|
|
1164
|
+
var Pt = /* @__PURE__ */ oe(Ft, [["render", zt], ["__file", "arrow-up.vue"]]), jt = {
|
|
1125
1165
|
name: "Delete"
|
|
1126
|
-
},
|
|
1166
|
+
}, Yt = {
|
|
1127
1167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1128
1168
|
viewBox: "0 0 1024 1024"
|
|
1129
|
-
},
|
|
1169
|
+
}, Gt = /* @__PURE__ */ S(
|
|
1130
1170
|
"path",
|
|
1131
1171
|
{
|
|
1132
1172
|
fill: "currentColor",
|
|
@@ -1135,18 +1175,18 @@ var zt = /* @__PURE__ */ oe(It, [["render", Lt], ["__file", "arrow-up.vue"]]), j
|
|
|
1135
1175
|
null,
|
|
1136
1176
|
-1
|
|
1137
1177
|
/* HOISTED */
|
|
1138
|
-
),
|
|
1139
|
-
|
|
1178
|
+
), Ht = [
|
|
1179
|
+
Gt
|
|
1140
1180
|
];
|
|
1141
|
-
function
|
|
1142
|
-
return n(), b("svg",
|
|
1181
|
+
function Wt(e, s, l, r, i, t) {
|
|
1182
|
+
return n(), b("svg", Yt, Ht);
|
|
1143
1183
|
}
|
|
1144
|
-
var
|
|
1184
|
+
var Xt = /* @__PURE__ */ oe(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
|
|
1145
1185
|
name: "Search"
|
|
1146
|
-
},
|
|
1186
|
+
}, Zt = {
|
|
1147
1187
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1148
1188
|
viewBox: "0 0 1024 1024"
|
|
1149
|
-
},
|
|
1189
|
+
}, Kt = /* @__PURE__ */ S(
|
|
1150
1190
|
"path",
|
|
1151
1191
|
{
|
|
1152
1192
|
fill: "currentColor",
|
|
@@ -1155,16 +1195,16 @@ var Wt = /* @__PURE__ */ oe(jt, [["render", Ht], ["__file", "delete.vue"]]), Xt
|
|
|
1155
1195
|
null,
|
|
1156
1196
|
-1
|
|
1157
1197
|
/* HOISTED */
|
|
1158
|
-
),
|
|
1159
|
-
|
|
1198
|
+
), Jt = [
|
|
1199
|
+
Kt
|
|
1160
1200
|
];
|
|
1161
|
-
function
|
|
1162
|
-
return n(), b("svg",
|
|
1201
|
+
function qt(e, s, l, r, i, t) {
|
|
1202
|
+
return n(), b("svg", Zt, Jt);
|
|
1163
1203
|
}
|
|
1164
|
-
var
|
|
1165
|
-
const
|
|
1204
|
+
var ea = /* @__PURE__ */ oe(Qt, [["render", qt], ["__file", "search.vue"]]);
|
|
1205
|
+
const ta = { class: "bsgoal-base-search-operation" }, aa = {
|
|
1166
1206
|
name: "BsgoalBaseSearchOperation"
|
|
1167
|
-
},
|
|
1207
|
+
}, la = /* @__PURE__ */ Object.assign(aa, {
|
|
1168
1208
|
props: {
|
|
1169
1209
|
/**
|
|
1170
1210
|
* 是否显示折叠按钮
|
|
@@ -1181,22 +1221,22 @@ const ea = { class: "bsgoal-base-search-operation" }, ta = {
|
|
|
1181
1221
|
};
|
|
1182
1222
|
return (i, t) => {
|
|
1183
1223
|
const c = f("el-button"), d = f("el-icon");
|
|
1184
|
-
return n(), b("div",
|
|
1185
|
-
|
|
1224
|
+
return n(), b("div", ta, [
|
|
1225
|
+
N(c, {
|
|
1186
1226
|
type: "primary",
|
|
1187
|
-
icon: u(
|
|
1188
|
-
onClick: t[0] || (t[0] = (
|
|
1227
|
+
icon: u(ea),
|
|
1228
|
+
onClick: t[0] || (t[0] = (v) => i.$emit("on-search"))
|
|
1189
1229
|
}, {
|
|
1190
|
-
default:
|
|
1230
|
+
default: T(() => [
|
|
1191
1231
|
W("搜索")
|
|
1192
1232
|
]),
|
|
1193
1233
|
_: 1
|
|
1194
1234
|
}, 8, ["icon"]),
|
|
1195
|
-
|
|
1196
|
-
icon: u(
|
|
1197
|
-
onClick: t[1] || (t[1] = (
|
|
1235
|
+
N(c, {
|
|
1236
|
+
icon: u(Xt),
|
|
1237
|
+
onClick: t[1] || (t[1] = (v) => i.$emit("on-clear"))
|
|
1198
1238
|
}, {
|
|
1199
|
-
default:
|
|
1239
|
+
default: T(() => [
|
|
1200
1240
|
W("清空")
|
|
1201
1241
|
]),
|
|
1202
1242
|
_: 1
|
|
@@ -1207,13 +1247,13 @@ const ea = { class: "bsgoal-base-search-operation" }, ta = {
|
|
|
1207
1247
|
style: { color: "var(--el-color-primary)" },
|
|
1208
1248
|
onClick: r
|
|
1209
1249
|
}, [
|
|
1210
|
-
W(
|
|
1211
|
-
|
|
1212
|
-
default:
|
|
1213
|
-
Q(
|
|
1250
|
+
W(Y(l.value ? "收起" : "展开"), 1),
|
|
1251
|
+
N(d, { color: "#409EFC" }, {
|
|
1252
|
+
default: T(() => [
|
|
1253
|
+
Q(N(u(Pt), null, null, 512), [
|
|
1214
1254
|
[le, l.value]
|
|
1215
1255
|
]),
|
|
1216
|
-
Q(
|
|
1256
|
+
Q(N(u(xt), null, null, 512), [
|
|
1217
1257
|
[le, !l.value]
|
|
1218
1258
|
])
|
|
1219
1259
|
]),
|
|
@@ -1224,9 +1264,9 @@ const ea = { class: "bsgoal-base-search-operation" }, ta = {
|
|
|
1224
1264
|
};
|
|
1225
1265
|
}
|
|
1226
1266
|
});
|
|
1227
|
-
const
|
|
1267
|
+
const na = { class: "bsgoal-base-cascader" }, oa = {
|
|
1228
1268
|
name: "BsgoalBaseCascader"
|
|
1229
|
-
},
|
|
1269
|
+
}, ua = /* @__PURE__ */ Object.assign(oa, {
|
|
1230
1270
|
props: {
|
|
1231
1271
|
/**
|
|
1232
1272
|
* 绑定的值
|
|
@@ -1267,8 +1307,8 @@ const la = { class: "bsgoal-base-cascader" }, na = {
|
|
|
1267
1307
|
};
|
|
1268
1308
|
return (i, t) => {
|
|
1269
1309
|
const c = f("el-cascader");
|
|
1270
|
-
return n(), b("div",
|
|
1271
|
-
|
|
1310
|
+
return n(), b("div", na, [
|
|
1311
|
+
N(c, {
|
|
1272
1312
|
clearable: "",
|
|
1273
1313
|
class: "base_cascader",
|
|
1274
1314
|
"show-all-levels": !1,
|
|
@@ -1282,9 +1322,9 @@ const la = { class: "bsgoal-base-cascader" }, na = {
|
|
|
1282
1322
|
};
|
|
1283
1323
|
}
|
|
1284
1324
|
});
|
|
1285
|
-
const
|
|
1325
|
+
const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra = { key: 1 }, ia = {
|
|
1286
1326
|
name: "BsgoalBaseSearch"
|
|
1287
|
-
},
|
|
1327
|
+
}, da = /* @__PURE__ */ Object.assign(ia, {
|
|
1288
1328
|
props: {
|
|
1289
1329
|
/**
|
|
1290
1330
|
* >----------props----------<
|
|
@@ -1326,25 +1366,25 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1326
1366
|
},
|
|
1327
1367
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1328
1368
|
setup(e, { emit: s }) {
|
|
1329
|
-
const l = e, r = k(null), i =
|
|
1330
|
-
|
|
1369
|
+
const l = e, r = k(null), i = be.align, t = k({});
|
|
1370
|
+
Ee(() => {
|
|
1331
1371
|
const { configOptions: y } = l;
|
|
1332
|
-
u(y).forEach((
|
|
1333
|
-
const { value:
|
|
1334
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(
|
|
1372
|
+
u(y).forEach((D) => {
|
|
1373
|
+
const { value: C, prop: A = "", type: O = "" } = D;
|
|
1374
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(O), t.value[A] = [0, !1].includes(C) ? C : "";
|
|
1335
1375
|
});
|
|
1336
1376
|
});
|
|
1337
|
-
const c =
|
|
1338
|
-
const { configOptions: y } = l,
|
|
1377
|
+
const c = J(() => {
|
|
1378
|
+
const { configOptions: y } = l, x = u(y), D = {
|
|
1339
1379
|
type: a.OPERATION
|
|
1340
1380
|
};
|
|
1341
|
-
return [...
|
|
1342
|
-
}), d = (y = "",
|
|
1343
|
-
if (!
|
|
1381
|
+
return [...x, D];
|
|
1382
|
+
}), d = (y = "", x = "", D = "") => {
|
|
1383
|
+
if (!D)
|
|
1344
1384
|
switch (y) {
|
|
1345
1385
|
case a.INPUT:
|
|
1346
1386
|
case a.INPUT_TEXT_AREA:
|
|
1347
|
-
return `请输入${
|
|
1387
|
+
return `请输入${x}`;
|
|
1348
1388
|
case a.SELECT:
|
|
1349
1389
|
case a.DATE:
|
|
1350
1390
|
case a.WEEK:
|
|
@@ -1353,7 +1393,7 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1353
1393
|
case a.DATE_TIME:
|
|
1354
1394
|
case a.TIME:
|
|
1355
1395
|
case a.CASCADER:
|
|
1356
|
-
return `请选择${
|
|
1396
|
+
return `请选择${x}`;
|
|
1357
1397
|
case a.DATE_RANGE:
|
|
1358
1398
|
case a.DATE_TIME_RANGE:
|
|
1359
1399
|
return ["开始日期", "结束日期"];
|
|
@@ -1362,9 +1402,9 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1362
1402
|
case a.MONTH_RANGE:
|
|
1363
1403
|
return ["开始月份", "结束月份"];
|
|
1364
1404
|
}
|
|
1365
|
-
return
|
|
1366
|
-
},
|
|
1367
|
-
if (!
|
|
1405
|
+
return D;
|
|
1406
|
+
}, v = (y = "", x = "") => {
|
|
1407
|
+
if (!x)
|
|
1368
1408
|
switch (y) {
|
|
1369
1409
|
case a.WEEK:
|
|
1370
1410
|
return "ww";
|
|
@@ -1384,132 +1424,132 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1384
1424
|
case a.DATE_TIME_RANGE:
|
|
1385
1425
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1386
1426
|
}
|
|
1387
|
-
return
|
|
1388
|
-
},
|
|
1389
|
-
const { configOptions: y } = l,
|
|
1390
|
-
for (const
|
|
1391
|
-
const { type:
|
|
1392
|
-
if ([a.CASCADER].includes(
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1427
|
+
return x;
|
|
1428
|
+
}, M = () => {
|
|
1429
|
+
const { configOptions: y } = l, x = u(t), D = u(y), C = {};
|
|
1430
|
+
for (const A of D) {
|
|
1431
|
+
const { type: O = "", range: F = [], prop: R = "", single: z = !1 } = A, I = x[R];
|
|
1432
|
+
if ([a.CASCADER].includes(O) && Array.isArray(I) && z) {
|
|
1433
|
+
const j = I.length;
|
|
1434
|
+
j ? C[R] = I[j - 1] : C[R] = I;
|
|
1395
1435
|
} else
|
|
1396
|
-
|
|
1397
|
-
if (
|
|
1398
|
-
const { 0:
|
|
1399
|
-
|
|
1436
|
+
Se(I) ? C[R] = Oe(I) : C[R] = I;
|
|
1437
|
+
if (O.endsWith("range") && F && F.length === 2) {
|
|
1438
|
+
const { 0: j = "", 1: Z = "" } = I, { 0: ee = "", 1: te = "" } = F;
|
|
1439
|
+
C[ee] = j, C[te] = Z;
|
|
1400
1440
|
}
|
|
1401
1441
|
}
|
|
1402
|
-
s("on-search",
|
|
1442
|
+
s("on-search", C), s("update:modelValue", C);
|
|
1403
1443
|
};
|
|
1404
1444
|
Ce(() => {
|
|
1405
|
-
|
|
1445
|
+
M();
|
|
1406
1446
|
});
|
|
1407
1447
|
const $ = () => {
|
|
1408
1448
|
r.value.resetFields(), s("on-clear", t.value);
|
|
1409
1449
|
}, w = Ve("transferFoldStatus"), B = k(!1), U = (y = !1) => {
|
|
1410
1450
|
B.value = y, w && (w.value = y), s("on-fold", B);
|
|
1411
|
-
},
|
|
1412
|
-
|
|
1413
|
-
const
|
|
1451
|
+
}, h = (y, x) => {
|
|
1452
|
+
M();
|
|
1453
|
+
const D = {
|
|
1414
1454
|
type: y,
|
|
1415
|
-
prop:
|
|
1416
|
-
value: t.value[
|
|
1455
|
+
prop: x,
|
|
1456
|
+
value: t.value[x] || ""
|
|
1417
1457
|
};
|
|
1418
|
-
s("on-change",
|
|
1458
|
+
s("on-change", D);
|
|
1419
1459
|
};
|
|
1420
|
-
return (y,
|
|
1421
|
-
const
|
|
1422
|
-
return n(), b("div",
|
|
1423
|
-
|
|
1424
|
-
Q((n(),
|
|
1460
|
+
return (y, x) => {
|
|
1461
|
+
const D = f("el-input"), C = f("el-input-number"), A = f("el-radio"), O = f("el-radio-group"), F = f("el-option"), R = f("el-select"), z = f("el-slider"), I = f("el-switch"), j = f("el-date-picker"), Z = f("el-time-picker"), ee = f("el-checkbox"), te = f("el-checkbox-group"), ue = f("el-form-item"), se = f("el-col"), ce = f("el-row"), L = f("el-form");
|
|
1462
|
+
return n(), b("div", sa, [
|
|
1463
|
+
S("div", ca, [
|
|
1464
|
+
Q((n(), E(L, {
|
|
1425
1465
|
ref_key: "EL_FORM_REF",
|
|
1426
1466
|
ref: r,
|
|
1427
1467
|
"label-suffix": ":",
|
|
1428
1468
|
"show-message": !1,
|
|
1429
1469
|
model: t.value
|
|
1430
1470
|
}, {
|
|
1431
|
-
default:
|
|
1432
|
-
|
|
1433
|
-
default:
|
|
1434
|
-
(n(!0), b(
|
|
1435
|
-
label:
|
|
1471
|
+
default: T(() => [
|
|
1472
|
+
N(ce, null, {
|
|
1473
|
+
default: T(() => [
|
|
1474
|
+
(n(!0), b(P, null, X(u(c), ({
|
|
1475
|
+
label: p = "",
|
|
1436
1476
|
prop: o = "",
|
|
1437
1477
|
type: _ = "text",
|
|
1438
1478
|
placeholder: G = "",
|
|
1439
|
-
readonly:
|
|
1440
|
-
clearable:
|
|
1441
|
-
rows:
|
|
1442
|
-
min:
|
|
1443
|
-
max:
|
|
1479
|
+
readonly: me = !1,
|
|
1480
|
+
clearable: ge = !0,
|
|
1481
|
+
rows: fe = 2,
|
|
1482
|
+
min: re = 1,
|
|
1483
|
+
max: K = 10,
|
|
1444
1484
|
range: H = [],
|
|
1445
1485
|
format: ae = ""
|
|
1446
|
-
} = {}, ne) => Q((n(),
|
|
1486
|
+
} = {}, ne) => Q((n(), E(se, {
|
|
1447
1487
|
key: ne,
|
|
1448
1488
|
xs: 24,
|
|
1449
1489
|
sm: 12,
|
|
1450
1490
|
md: e.medium
|
|
1451
1491
|
}, {
|
|
1452
|
-
default:
|
|
1453
|
-
|
|
1454
|
-
label:
|
|
1492
|
+
default: T(() => [
|
|
1493
|
+
N(ue, {
|
|
1494
|
+
label: p,
|
|
1455
1495
|
prop: o
|
|
1456
1496
|
}, {
|
|
1457
|
-
default:
|
|
1458
|
-
|
|
1459
|
-
_ === u(a).INPUT ? (n(),
|
|
1497
|
+
default: T(() => [
|
|
1498
|
+
me ? (n(), b("div", ra, Y(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
|
|
1499
|
+
_ === u(a).INPUT ? (n(), E(D, {
|
|
1460
1500
|
key: 0,
|
|
1461
1501
|
modelValue: t.value[o],
|
|
1462
1502
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1463
|
-
placeholder: d(_,
|
|
1464
|
-
clearable:
|
|
1465
|
-
onChange: (g) =>
|
|
1503
|
+
placeholder: d(_, p, G),
|
|
1504
|
+
clearable: ge,
|
|
1505
|
+
onChange: (g) => h(_, o)
|
|
1466
1506
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
|
|
1467
|
-
_ === u(a).INPUT_TEXT_AREA ? (n(),
|
|
1507
|
+
_ === u(a).INPUT_TEXT_AREA ? (n(), E(D, {
|
|
1468
1508
|
key: 1,
|
|
1469
1509
|
modelValue: t.value[o],
|
|
1470
1510
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1471
1511
|
type: "textarea",
|
|
1472
|
-
rows:
|
|
1473
|
-
clearable:
|
|
1474
|
-
placeholder: d(_,
|
|
1475
|
-
onChange: (g) =>
|
|
1512
|
+
rows: fe,
|
|
1513
|
+
clearable: ge,
|
|
1514
|
+
placeholder: d(_, p, G),
|
|
1515
|
+
onChange: (g) => h(_, o)
|
|
1476
1516
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
|
|
1477
|
-
_ === u(a).INPUT_NUMBER ? (n(),
|
|
1517
|
+
_ === u(a).INPUT_NUMBER ? (n(), E(C, {
|
|
1478
1518
|
key: 2,
|
|
1479
1519
|
modelValue: y.num,
|
|
1480
|
-
"onUpdate:modelValue":
|
|
1481
|
-
min:
|
|
1482
|
-
max:
|
|
1483
|
-
onChange:
|
|
1520
|
+
"onUpdate:modelValue": x[0] || (x[0] = (g) => y.num = g),
|
|
1521
|
+
min: re,
|
|
1522
|
+
max: K,
|
|
1523
|
+
onChange: h
|
|
1484
1524
|
}, null, 8, ["modelValue", "min", "max"])) : V("", !0),
|
|
1485
|
-
_ === u(a).RADIO ? (n(),
|
|
1525
|
+
_ === u(a).RADIO ? (n(), E(O, {
|
|
1486
1526
|
key: 3,
|
|
1487
1527
|
modelValue: t.value[o],
|
|
1488
1528
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1489
|
-
onChange: (g) =>
|
|
1529
|
+
onChange: (g) => h(_, o)
|
|
1490
1530
|
}, {
|
|
1491
|
-
default:
|
|
1492
|
-
(n(!0), b(
|
|
1531
|
+
default: T(() => [
|
|
1532
|
+
(n(!0), b(P, null, X(H, (g, m) => (n(), E(A, {
|
|
1493
1533
|
key: m,
|
|
1494
1534
|
label: g.value
|
|
1495
1535
|
}, {
|
|
1496
|
-
default:
|
|
1497
|
-
W(
|
|
1536
|
+
default: T(() => [
|
|
1537
|
+
W(Y(g.label), 1)
|
|
1498
1538
|
]),
|
|
1499
1539
|
_: 2
|
|
1500
1540
|
}, 1032, ["label"]))), 128))
|
|
1501
1541
|
]),
|
|
1502
1542
|
_: 2
|
|
1503
1543
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
|
|
1504
|
-
_ === u(a).SELECT ? (n(),
|
|
1544
|
+
_ === u(a).SELECT ? (n(), E(R, {
|
|
1505
1545
|
key: 4,
|
|
1506
1546
|
modelValue: t.value[o],
|
|
1507
1547
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1508
|
-
placeholder: d(_,
|
|
1509
|
-
onChange: (g) =>
|
|
1548
|
+
placeholder: d(_, p, G),
|
|
1549
|
+
onChange: (g) => h(_, o)
|
|
1510
1550
|
}, {
|
|
1511
|
-
default:
|
|
1512
|
-
(n(!0), b(
|
|
1551
|
+
default: T(() => [
|
|
1552
|
+
(n(!0), b(P, null, X(H, (g, m) => (n(), E(F, {
|
|
1513
1553
|
key: m,
|
|
1514
1554
|
label: g.label,
|
|
1515
1555
|
value: g.value
|
|
@@ -1517,99 +1557,99 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1517
1557
|
]),
|
|
1518
1558
|
_: 2
|
|
1519
1559
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
|
|
1520
|
-
_ === u(a).SLIDER ? (n(),
|
|
1560
|
+
_ === u(a).SLIDER ? (n(), E(z, {
|
|
1521
1561
|
key: 5,
|
|
1522
1562
|
modelValue: t.value[o],
|
|
1523
1563
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1524
|
-
min:
|
|
1525
|
-
max:
|
|
1526
|
-
onChange: (g) =>
|
|
1564
|
+
min: re,
|
|
1565
|
+
max: K,
|
|
1566
|
+
onChange: (g) => h(_, o)
|
|
1527
1567
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
|
|
1528
|
-
_ === u(a).SWITCH ? (n(),
|
|
1568
|
+
_ === u(a).SWITCH ? (n(), E(I, {
|
|
1529
1569
|
key: 6,
|
|
1530
1570
|
modelValue: t.value[o],
|
|
1531
1571
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1532
1572
|
"active-value": H[0] || !0,
|
|
1533
1573
|
"inactive-value": H[1] || !1,
|
|
1534
|
-
onChange: (g) =>
|
|
1574
|
+
onChange: (g) => h(_, o)
|
|
1535
1575
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
|
|
1536
1576
|
[u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
|
|
1537
1577
|
_
|
|
1538
|
-
) ? (n(),
|
|
1578
|
+
) ? (n(), E(j, {
|
|
1539
1579
|
key: 7,
|
|
1540
1580
|
modelValue: t.value[o],
|
|
1541
1581
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1542
|
-
format:
|
|
1543
|
-
"value-format":
|
|
1582
|
+
format: v(_, ae),
|
|
1583
|
+
"value-format": v(_, ae),
|
|
1544
1584
|
type: _,
|
|
1545
|
-
placeholder: d(_,
|
|
1546
|
-
onChange: (g) =>
|
|
1585
|
+
placeholder: d(_, p, G),
|
|
1586
|
+
onChange: (g) => h(_, o)
|
|
1547
1587
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
|
|
1548
1588
|
[
|
|
1549
1589
|
u(a).DATE_RANGE,
|
|
1550
1590
|
u(a).MONTH_RANGE,
|
|
1551
1591
|
u(a).DATE_TIME_RANGE
|
|
1552
|
-
].includes(_) ? (n(),
|
|
1592
|
+
].includes(_) ? (n(), E(j, {
|
|
1553
1593
|
key: 8,
|
|
1554
1594
|
modelValue: t.value[o],
|
|
1555
1595
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1556
1596
|
type: _,
|
|
1557
|
-
"value-format":
|
|
1558
|
-
"start-placeholder": d(_,
|
|
1559
|
-
"end-placeholder": d(_,
|
|
1560
|
-
onChange: (g) =>
|
|
1597
|
+
"value-format": v(_, ae),
|
|
1598
|
+
"start-placeholder": d(_, p, G)[0],
|
|
1599
|
+
"end-placeholder": d(_, p, G)[1],
|
|
1600
|
+
onChange: (g) => h(_, o)
|
|
1561
1601
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
|
|
1562
|
-
[u(a).TIME].includes(_) ? (n(),
|
|
1602
|
+
[u(a).TIME].includes(_) ? (n(), E(Z, {
|
|
1563
1603
|
key: 9,
|
|
1564
1604
|
modelValue: t.value[o],
|
|
1565
1605
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1566
1606
|
"arrow-control": "",
|
|
1567
|
-
"value-format":
|
|
1568
|
-
placeholder: d(_,
|
|
1569
|
-
onChange: (g) =>
|
|
1607
|
+
"value-format": v(_, ae),
|
|
1608
|
+
placeholder: d(_, p, G),
|
|
1609
|
+
onChange: (g) => h(_, o)
|
|
1570
1610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
|
|
1571
|
-
[u(a).TIME_RANGE].includes(_) ? (n(),
|
|
1611
|
+
[u(a).TIME_RANGE].includes(_) ? (n(), E(Z, {
|
|
1572
1612
|
key: 10,
|
|
1573
1613
|
modelValue: t.value[o],
|
|
1574
1614
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1575
1615
|
"is-range": "",
|
|
1576
|
-
"value-format":
|
|
1577
|
-
"start-placeholder": d(_,
|
|
1578
|
-
"end-placeholder": d(_,
|
|
1579
|
-
onChange: (g) =>
|
|
1616
|
+
"value-format": v(_, ae),
|
|
1617
|
+
"start-placeholder": d(_, p, G)[0],
|
|
1618
|
+
"end-placeholder": d(_, p, G)[1],
|
|
1619
|
+
onChange: (g) => h(_, o)
|
|
1580
1620
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
|
|
1581
|
-
[u(a).CHECKBOX].includes(_) ? (n(),
|
|
1621
|
+
[u(a).CHECKBOX].includes(_) ? (n(), E(te, {
|
|
1582
1622
|
key: 11,
|
|
1583
1623
|
modelValue: t.value[o],
|
|
1584
1624
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1585
|
-
onChange: (g) =>
|
|
1625
|
+
onChange: (g) => h(_, o)
|
|
1586
1626
|
}, {
|
|
1587
|
-
default:
|
|
1588
|
-
(n(!0), b(
|
|
1627
|
+
default: T(() => [
|
|
1628
|
+
(n(!0), b(P, null, X(H, (g, m) => (n(), E(ee, {
|
|
1589
1629
|
key: m,
|
|
1590
1630
|
label: g.value
|
|
1591
1631
|
}, {
|
|
1592
|
-
default:
|
|
1593
|
-
W(
|
|
1632
|
+
default: T(() => [
|
|
1633
|
+
W(Y(g.label), 1)
|
|
1594
1634
|
]),
|
|
1595
1635
|
_: 2
|
|
1596
1636
|
}, 1032, ["label"]))), 128))
|
|
1597
1637
|
]),
|
|
1598
1638
|
_: 2
|
|
1599
1639
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
|
|
1600
|
-
[u(a).CASCADER].includes(_) ? (n(),
|
|
1640
|
+
[u(a).CASCADER].includes(_) ? (n(), E(ua, {
|
|
1601
1641
|
key: 12,
|
|
1602
1642
|
modelValue: t.value[o],
|
|
1603
1643
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1604
1644
|
"data-options": H,
|
|
1605
|
-
placeholder: d(_,
|
|
1606
|
-
onOnChange: (g) =>
|
|
1645
|
+
placeholder: d(_, p, G),
|
|
1646
|
+
onOnChange: (g) => h(_, o)
|
|
1607
1647
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : V("", !0),
|
|
1608
|
-
[].includes(_) ? (n(), b(
|
|
1609
|
-
[u(a).OPERATION].includes(_) ? (n(),
|
|
1648
|
+
[].includes(_) ? (n(), b(P, { key: 13 }, [], 64)) : V("", !0),
|
|
1649
|
+
[u(a).OPERATION].includes(_) ? (n(), E(la, {
|
|
1610
1650
|
key: 14,
|
|
1611
1651
|
fold: ne >= 7,
|
|
1612
|
-
onOnSearch:
|
|
1652
|
+
onOnSearch: M,
|
|
1613
1653
|
onOnClear: $,
|
|
1614
1654
|
onOnFold: U
|
|
1615
1655
|
}, null, 8, ["fold"])) : V("", !0)
|
|
@@ -1631,14 +1671,14 @@ const ua = { class: "bsgoal-base-search" }, sa = { class: "base_search" }, ca =
|
|
|
1631
1671
|
[u(i)]
|
|
1632
1672
|
])
|
|
1633
1673
|
]),
|
|
1634
|
-
|
|
1674
|
+
N(Te)
|
|
1635
1675
|
]);
|
|
1636
1676
|
};
|
|
1637
1677
|
}
|
|
1638
1678
|
});
|
|
1639
|
-
const
|
|
1679
|
+
const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_table" }, ga = {
|
|
1640
1680
|
name: "BsgoalBaseSearchTable"
|
|
1641
|
-
},
|
|
1681
|
+
}, fa = /* @__PURE__ */ Object.assign(ga, {
|
|
1642
1682
|
props: {
|
|
1643
1683
|
/**
|
|
1644
1684
|
* >----------props----------<
|
|
@@ -1716,30 +1756,43 @@ const da = { class: "bsgoal-base-search-table" }, _a = { class: "base_search_tab
|
|
|
1716
1756
|
expression: {
|
|
1717
1757
|
type: [Number],
|
|
1718
1758
|
default: 75
|
|
1759
|
+
},
|
|
1760
|
+
/**
|
|
1761
|
+
* 映射字段
|
|
1762
|
+
*/
|
|
1763
|
+
mapProps: {
|
|
1764
|
+
type: [Object],
|
|
1765
|
+
default: () => ({
|
|
1766
|
+
currentPage: "currentPage",
|
|
1767
|
+
pageSize: "pageSize",
|
|
1768
|
+
rows: "rows",
|
|
1769
|
+
total: "total"
|
|
1770
|
+
})
|
|
1719
1771
|
}
|
|
1720
1772
|
},
|
|
1721
1773
|
setup(e) {
|
|
1722
1774
|
const s = e, l = k(!1);
|
|
1723
|
-
|
|
1724
|
-
const r = u(s.configOptions), i =
|
|
1775
|
+
Ie("transferFoldStatus", l);
|
|
1776
|
+
const r = u(s.configOptions), i = J(() => r.filter(($) => {
|
|
1725
1777
|
const { type: w = "" } = $;
|
|
1726
1778
|
return !!w;
|
|
1727
|
-
})), t =
|
|
1779
|
+
})), t = J(() => r.filter(($) => {
|
|
1728
1780
|
const { item: w = !1 } = $;
|
|
1729
1781
|
return !w;
|
|
1730
|
-
})), c =
|
|
1731
|
-
|
|
1782
|
+
})), c = Fe(), d = k(Object.keys(c)), v = k(null), M = ($) => {
|
|
1783
|
+
v.value.refreshList($);
|
|
1732
1784
|
};
|
|
1733
|
-
return ($, w) => (n(), b("div",
|
|
1734
|
-
|
|
1735
|
-
|
|
1785
|
+
return ($, w) => (n(), b("div", _a, [
|
|
1786
|
+
S("div", ma, [
|
|
1787
|
+
N(da, {
|
|
1736
1788
|
"config-options": u(i),
|
|
1737
|
-
onOnSearch:
|
|
1738
|
-
onOnClear:
|
|
1789
|
+
onOnSearch: M,
|
|
1790
|
+
onOnClear: M
|
|
1739
1791
|
}, null, 8, ["config-options"]),
|
|
1740
|
-
|
|
1792
|
+
N(Ne, {
|
|
1741
1793
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1742
|
-
ref:
|
|
1794
|
+
ref: v,
|
|
1795
|
+
"map-props": e.mapProps,
|
|
1743
1796
|
operationWidth: e.operationWidth,
|
|
1744
1797
|
"config-options": u(t),
|
|
1745
1798
|
data: e.tableData,
|
|
@@ -1748,21 +1801,21 @@ const da = { class: "bsgoal-base-search-table" }, _a = { class: "base_search_tab
|
|
|
1748
1801
|
expression: e.expression,
|
|
1749
1802
|
fetch: e.fetch,
|
|
1750
1803
|
call: e.call
|
|
1751
|
-
},
|
|
1804
|
+
}, Re({ _: 2 }, [
|
|
1752
1805
|
X(d.value, (B) => ({
|
|
1753
1806
|
name: B,
|
|
1754
|
-
fn:
|
|
1755
|
-
|
|
1807
|
+
fn: T(({ row: U = {} }) => [
|
|
1808
|
+
q($.$slots, B, { row: U })
|
|
1756
1809
|
])
|
|
1757
1810
|
}))
|
|
1758
|
-
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
1811
|
+
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
1759
1812
|
])
|
|
1760
1813
|
]));
|
|
1761
1814
|
}
|
|
1762
1815
|
});
|
|
1763
|
-
const
|
|
1816
|
+
const va = { class: "bsgoal-base-tree-fold" }, pa = {
|
|
1764
1817
|
name: "BsgoalBaseTreeFold"
|
|
1765
|
-
}, ha = /* @__PURE__ */ Object.assign(
|
|
1818
|
+
}, ha = /* @__PURE__ */ Object.assign(pa, {
|
|
1766
1819
|
props: ["modelValue"],
|
|
1767
1820
|
emits: ["update:modelValue"],
|
|
1768
1821
|
setup(e, { emit: s }) {
|
|
@@ -1772,17 +1825,17 @@ const fa = { class: "bsgoal-base-tree-fold" }, va = {
|
|
|
1772
1825
|
};
|
|
1773
1826
|
return (i, t) => {
|
|
1774
1827
|
const c = f("el-icon");
|
|
1775
|
-
return n(), b("div",
|
|
1776
|
-
|
|
1777
|
-
class:
|
|
1828
|
+
return n(), b("div", va, [
|
|
1829
|
+
S("div", {
|
|
1830
|
+
class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
|
|
1778
1831
|
onClick: r
|
|
1779
1832
|
}, [
|
|
1780
|
-
|
|
1781
|
-
default:
|
|
1782
|
-
Q(
|
|
1833
|
+
N(c, { color: "#fff" }, {
|
|
1834
|
+
default: T(() => [
|
|
1835
|
+
Q(N(u(wt), null, null, 512), [
|
|
1783
1836
|
[le, u(l)]
|
|
1784
1837
|
]),
|
|
1785
|
-
Q(
|
|
1838
|
+
Q(N(u(It), null, null, 512), [
|
|
1786
1839
|
[le, !u(l)]
|
|
1787
1840
|
])
|
|
1788
1841
|
]),
|
|
@@ -1793,9 +1846,9 @@ const fa = { class: "bsgoal-base-tree-fold" }, va = {
|
|
|
1793
1846
|
};
|
|
1794
1847
|
}
|
|
1795
1848
|
});
|
|
1796
|
-
const
|
|
1849
|
+
const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { class: "base_tree_main" }, Ta = {
|
|
1797
1850
|
name: "BsgoalBaseTree"
|
|
1798
|
-
},
|
|
1851
|
+
}, Aa = /* @__PURE__ */ Object.assign(Ta, {
|
|
1799
1852
|
props: {
|
|
1800
1853
|
/**
|
|
1801
1854
|
* 树结构 的下边距
|
|
@@ -1849,13 +1902,13 @@ const pa = { class: "bsgoal-base-tree" }, Ea = { class: "base_tree" }, ba = { cl
|
|
|
1849
1902
|
},
|
|
1850
1903
|
emits: ["on-click"],
|
|
1851
1904
|
setup(e, { emit: s }) {
|
|
1852
|
-
const l = e, r =
|
|
1853
|
-
|
|
1905
|
+
const l = e, r = be.height, i = k(""), t = k(null);
|
|
1906
|
+
de(i, ($) => {
|
|
1854
1907
|
t.value.filter($);
|
|
1855
1908
|
});
|
|
1856
|
-
const c = ($, w) => $ ? w.label.includes($) : !0, d = k(!0),
|
|
1909
|
+
const c = ($, w) => $ ? w.label.includes($) : !0, d = k(!0), v = ($, w, B, U) => {
|
|
1857
1910
|
s("on-click", $, w, B, U);
|
|
1858
|
-
},
|
|
1911
|
+
}, M = async ($, w, B) => {
|
|
1859
1912
|
if ($.level === 0) {
|
|
1860
1913
|
const U = await B.initNode($);
|
|
1861
1914
|
return w(U || []);
|
|
@@ -1866,36 +1919,36 @@ const pa = { class: "bsgoal-base-tree" }, Ea = { class: "base_tree" }, ba = { cl
|
|
|
1866
1919
|
};
|
|
1867
1920
|
return ($, w) => {
|
|
1868
1921
|
const B = f("el-input"), U = f("el-tree");
|
|
1869
|
-
return n(), b("div",
|
|
1870
|
-
Q((n(), b("div",
|
|
1871
|
-
Q(
|
|
1872
|
-
|
|
1922
|
+
return n(), b("div", Ea, [
|
|
1923
|
+
Q((n(), b("div", ba, [
|
|
1924
|
+
Q(S("div", ya, [
|
|
1925
|
+
N(B, {
|
|
1873
1926
|
modelValue: i.value,
|
|
1874
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1927
|
+
"onUpdate:modelValue": w[0] || (w[0] = (h) => i.value = h),
|
|
1875
1928
|
class: "base_tree_main_input",
|
|
1876
1929
|
placeholder: "输入关键字过滤"
|
|
1877
1930
|
}, null, 8, ["modelValue"]),
|
|
1878
|
-
|
|
1931
|
+
N(U, {
|
|
1879
1932
|
ref_key: "EL_TREE_REF",
|
|
1880
1933
|
ref: t,
|
|
1881
1934
|
lazy: "",
|
|
1882
1935
|
"highlight-current": "",
|
|
1883
1936
|
"empty-text": "暂无数据",
|
|
1884
|
-
load: (
|
|
1937
|
+
load: (h, y) => M(h, y, l),
|
|
1885
1938
|
"expand-on-click-node": !1,
|
|
1886
1939
|
props: e.treeProps,
|
|
1887
1940
|
"filter-node-method": c,
|
|
1888
|
-
onNodeClick:
|
|
1941
|
+
onNodeClick: v
|
|
1889
1942
|
}, null, 8, ["load", "props"])
|
|
1890
1943
|
], 512), [
|
|
1891
1944
|
[le, d.value]
|
|
1892
1945
|
]),
|
|
1893
|
-
Q(
|
|
1946
|
+
Q(N(Te, { vertical: "" }, null, 512), [
|
|
1894
1947
|
[le, d.value]
|
|
1895
1948
|
]),
|
|
1896
|
-
|
|
1949
|
+
N(ha, {
|
|
1897
1950
|
modelValue: d.value,
|
|
1898
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
1951
|
+
"onUpdate:modelValue": w[1] || (w[1] = (h) => d.value = h)
|
|
1899
1952
|
}, null, 8, ["modelValue"])
|
|
1900
1953
|
])), [
|
|
1901
1954
|
[u(r), e.gasket]
|
|
@@ -1904,9 +1957,9 @@ const pa = { class: "bsgoal-base-tree" }, Ea = { class: "base_tree" }, ba = { cl
|
|
|
1904
1957
|
};
|
|
1905
1958
|
}
|
|
1906
1959
|
});
|
|
1907
|
-
const
|
|
1960
|
+
const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ma = { class: "base_dialog_footer" }, $a = {
|
|
1908
1961
|
name: "BsgoalBaseDialog"
|
|
1909
|
-
},
|
|
1962
|
+
}, Na = /* @__PURE__ */ Object.assign($a, {
|
|
1910
1963
|
props: {
|
|
1911
1964
|
/**
|
|
1912
1965
|
* 弹窗状态
|
|
@@ -1973,19 +2026,19 @@ const Aa = { class: "bsgoal-base-dialog" }, xa = { class: "base_dialog" }, Ca =
|
|
|
1973
2026
|
}, t = () => {
|
|
1974
2027
|
r.value = !1, s("on-confirm");
|
|
1975
2028
|
};
|
|
1976
|
-
|
|
2029
|
+
de(
|
|
1977
2030
|
() => l.modelValue,
|
|
1978
2031
|
(d) => {
|
|
1979
2032
|
r.value = d;
|
|
1980
2033
|
}
|
|
1981
|
-
),
|
|
2034
|
+
), de(r, (d) => {
|
|
1982
2035
|
s("update:modelValue", d);
|
|
1983
2036
|
});
|
|
1984
|
-
const c =
|
|
1985
|
-
const { width: d, size:
|
|
2037
|
+
const c = J(() => {
|
|
2038
|
+
const { width: d, size: v } = l;
|
|
1986
2039
|
if (d)
|
|
1987
2040
|
return d;
|
|
1988
|
-
switch (
|
|
2041
|
+
switch (v) {
|
|
1989
2042
|
case "small":
|
|
1990
2043
|
return "480px";
|
|
1991
2044
|
case "medium":
|
|
@@ -2000,46 +2053,46 @@ const Aa = { class: "bsgoal-base-dialog" }, xa = { class: "base_dialog" }, Ca =
|
|
|
2000
2053
|
return d;
|
|
2001
2054
|
}
|
|
2002
2055
|
});
|
|
2003
|
-
return (d,
|
|
2004
|
-
const
|
|
2005
|
-
return n(), b("div",
|
|
2006
|
-
|
|
2007
|
-
|
|
2056
|
+
return (d, v) => {
|
|
2057
|
+
const M = f("el-button"), $ = f("el-dialog");
|
|
2058
|
+
return n(), b("div", xa, [
|
|
2059
|
+
S("div", Ca, [
|
|
2060
|
+
N($, {
|
|
2008
2061
|
modelValue: r.value,
|
|
2009
|
-
"onUpdate:modelValue":
|
|
2062
|
+
"onUpdate:modelValue": v[0] || (v[0] = (w) => r.value = w),
|
|
2010
2063
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2011
|
-
class:
|
|
2064
|
+
class: _e({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2012
2065
|
width: u(c)
|
|
2013
2066
|
}, {
|
|
2014
|
-
header:
|
|
2015
|
-
|
|
2067
|
+
header: T(() => [
|
|
2068
|
+
S("div", Va, Y(e.title), 1)
|
|
2016
2069
|
]),
|
|
2017
|
-
footer:
|
|
2018
|
-
e.footer ?
|
|
2019
|
-
|
|
2020
|
-
M
|
|
2021
|
-
default:
|
|
2022
|
-
W(
|
|
2070
|
+
footer: T(() => [
|
|
2071
|
+
e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
|
|
2072
|
+
S("span", Ma, [
|
|
2073
|
+
N(M, { onClick: i }, {
|
|
2074
|
+
default: T(() => [
|
|
2075
|
+
W(Y(e.cancelTxt), 1)
|
|
2023
2076
|
]),
|
|
2024
2077
|
_: 1
|
|
2025
2078
|
}),
|
|
2026
|
-
M
|
|
2079
|
+
N(M, {
|
|
2027
2080
|
type: "primary",
|
|
2028
2081
|
onClick: t
|
|
2029
2082
|
}, {
|
|
2030
|
-
default:
|
|
2031
|
-
W(
|
|
2083
|
+
default: T(() => [
|
|
2084
|
+
W(Y(e.confirmTxt), 1)
|
|
2032
2085
|
]),
|
|
2033
2086
|
_: 1
|
|
2034
2087
|
})
|
|
2035
2088
|
])
|
|
2036
2089
|
]) : V("", !0)
|
|
2037
2090
|
]),
|
|
2038
|
-
default:
|
|
2039
|
-
|
|
2040
|
-
class:
|
|
2091
|
+
default: T(() => [
|
|
2092
|
+
S("div", {
|
|
2093
|
+
class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2041
2094
|
}, [
|
|
2042
|
-
|
|
2095
|
+
q(d.$slots, "default")
|
|
2043
2096
|
], 2)
|
|
2044
2097
|
]),
|
|
2045
2098
|
_: 3
|
|
@@ -2049,9 +2102,9 @@ const Aa = { class: "bsgoal-base-dialog" }, xa = { class: "base_dialog" }, Ca =
|
|
|
2049
2102
|
};
|
|
2050
2103
|
}
|
|
2051
2104
|
});
|
|
2052
|
-
const
|
|
2105
|
+
const wa = { class: "bsgoal-base-tabs" }, Ba = {
|
|
2053
2106
|
name: "BsgoalBaseTabs"
|
|
2054
|
-
},
|
|
2107
|
+
}, Da = /* @__PURE__ */ Object.assign(Ba, {
|
|
2055
2108
|
props: {
|
|
2056
2109
|
/**
|
|
2057
2110
|
* 配置项
|
|
@@ -2091,23 +2144,23 @@ const Na = { class: "bsgoal-base-tabs" }, wa = {
|
|
|
2091
2144
|
};
|
|
2092
2145
|
return (r, i) => {
|
|
2093
2146
|
const t = f("el-tab-pane"), c = f("el-tabs");
|
|
2094
|
-
return n(), b("div",
|
|
2095
|
-
|
|
2147
|
+
return n(), b("div", wa, [
|
|
2148
|
+
N(c, {
|
|
2096
2149
|
stretch: "",
|
|
2097
2150
|
class: "bsgoal_base_tabs",
|
|
2098
2151
|
type: e.type,
|
|
2099
2152
|
"model-value": e.modelValue,
|
|
2100
2153
|
onTabChange: l
|
|
2101
2154
|
}, {
|
|
2102
|
-
default:
|
|
2103
|
-
(n(!0), b(
|
|
2104
|
-
key:
|
|
2155
|
+
default: T(() => [
|
|
2156
|
+
(n(!0), b(P, null, X(e.configOptions, ({ label: d, value: v }, M) => (n(), E(t, {
|
|
2157
|
+
key: M,
|
|
2105
2158
|
label: d,
|
|
2106
|
-
name:
|
|
2159
|
+
name: v
|
|
2107
2160
|
}, {
|
|
2108
|
-
default:
|
|
2109
|
-
|
|
2110
|
-
W(
|
|
2161
|
+
default: T(() => [
|
|
2162
|
+
q(r.$slots, v, {}, () => [
|
|
2163
|
+
W(Y(d), 1)
|
|
2111
2164
|
])
|
|
2112
2165
|
]),
|
|
2113
2166
|
_: 2
|
|
@@ -2119,9 +2172,9 @@ const Na = { class: "bsgoal-base-tabs" }, wa = {
|
|
|
2119
2172
|
};
|
|
2120
2173
|
}
|
|
2121
2174
|
});
|
|
2122
|
-
const
|
|
2175
|
+
const ka = { class: "bsgoal-base-link" }, Sa = {
|
|
2123
2176
|
name: "BsgoalBaseLink"
|
|
2124
|
-
}, Oa = /* @__PURE__ */ Object.assign(
|
|
2177
|
+
}, Oa = /* @__PURE__ */ Object.assign(Sa, {
|
|
2125
2178
|
props: {
|
|
2126
2179
|
/**
|
|
2127
2180
|
* 内容
|
|
@@ -2152,17 +2205,17 @@ const Da = { class: "bsgoal-base-link" }, ka = {
|
|
|
2152
2205
|
};
|
|
2153
2206
|
return (r, i) => {
|
|
2154
2207
|
const t = f("el-link");
|
|
2155
|
-
return n(), b("div",
|
|
2156
|
-
|
|
2208
|
+
return n(), b("div", ka, [
|
|
2209
|
+
N(t, {
|
|
2157
2210
|
class: "bsgoal_base_link",
|
|
2158
2211
|
type: "primary",
|
|
2159
2212
|
underline: e.underline,
|
|
2160
|
-
style:
|
|
2213
|
+
style: Ue(e.styler),
|
|
2161
2214
|
onClick: l
|
|
2162
2215
|
}, {
|
|
2163
|
-
default:
|
|
2164
|
-
|
|
2165
|
-
W(
|
|
2216
|
+
default: T(() => [
|
|
2217
|
+
q(r.$slots, "default", {}, () => [
|
|
2218
|
+
W(Y(e.content), 1)
|
|
2166
2219
|
], !0)
|
|
2167
2220
|
]),
|
|
2168
2221
|
_: 3
|
|
@@ -2170,27 +2223,27 @@ const Da = { class: "bsgoal-base-link" }, ka = {
|
|
|
2170
2223
|
]);
|
|
2171
2224
|
};
|
|
2172
2225
|
}
|
|
2173
|
-
}),
|
|
2226
|
+
}), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), La = a, za = ye, Pa = {
|
|
2174
2227
|
install(e, s = {}) {
|
|
2175
2228
|
const { exclude: l = [] } = s, r = {
|
|
2176
2229
|
BsgoalBaseForm: We,
|
|
2177
|
-
BsgoalBaseTable:
|
|
2178
|
-
BsgoalBaseLine:
|
|
2179
|
-
BsgoalBaseSearchTable:
|
|
2180
|
-
BsgoalBaseTree:
|
|
2181
|
-
BsgoalBaseDialog:
|
|
2182
|
-
BsgoalBaseTabs:
|
|
2183
|
-
BsgoalBaseLink:
|
|
2230
|
+
BsgoalBaseTable: Ne,
|
|
2231
|
+
BsgoalBaseLine: Te,
|
|
2232
|
+
BsgoalBaseSearchTable: fa,
|
|
2233
|
+
BsgoalBaseTree: Aa,
|
|
2234
|
+
BsgoalBaseDialog: Na,
|
|
2235
|
+
BsgoalBaseTabs: Da,
|
|
2236
|
+
BsgoalBaseLink: Ia
|
|
2184
2237
|
};
|
|
2185
2238
|
for (const [i, t] of Object.entries(r))
|
|
2186
2239
|
l.includes(i) || e.component(i, t);
|
|
2187
2240
|
},
|
|
2188
2241
|
enumType: a,
|
|
2189
|
-
useFetch:
|
|
2242
|
+
useFetch: ye
|
|
2190
2243
|
};
|
|
2191
2244
|
export {
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2245
|
+
La as EnumType,
|
|
2246
|
+
Pa as default,
|
|
2247
|
+
za as useFetchApi
|
|
2195
2248
|
};
|
|
2196
2249
|
//# sourceMappingURL=index.mjs.map
|