@bsgoal/common 1.6.3 → 1.6.5
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 +586 -541
- 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 +20 -2
- package/src/components/bsgoal-base-search-table/index.vue +55 -12
- package/src/components/bsgoal-base-table/index.vue +62 -22
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
|
-
De.call(s, l) &&
|
|
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 Z, resolveComponent as f, openBlock as n, createElementBlock as b, createVNode as w, unref as u, withCtx as T, renderSlot as q, createTextVNode as W, toDisplayString as Y, ref as D, watchEffect as Ee, createElementVNode as S, withDirectives as X, createBlock as E, Fragment as j, renderList as Q, createCommentVNode as $, nextTick as Ce, inject as Ve, watch as de, resolveDirective as ke, normalizeClass as _e, vShow as ee, isProxy as Se, toRaw as Oe, provide as Ie, useSlots as Fe, createSlots as Re, normalizeStyle as Ue } from "vue";
|
|
13
|
+
import { ElMessage as Pe } from "element-plus";
|
|
14
14
|
const a = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
@@ -33,12 +33,12 @@ const a = {
|
|
|
33
33
|
OPERATION: "operation",
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
|
-
let
|
|
37
|
-
const
|
|
36
|
+
let he = null;
|
|
37
|
+
const pe = (e) => {
|
|
38
38
|
const s = [], l = [], r = (t = []) => {
|
|
39
|
-
const c = t.map((
|
|
40
|
-
t.forEach((
|
|
41
|
-
const { labelEl: N } =
|
|
39
|
+
const c = t.map((v) => v.width), d = Math.max(...c);
|
|
40
|
+
t.forEach((v) => {
|
|
41
|
+
const { labelEl: N } = v;
|
|
42
42
|
N.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
44
|
}, i = () => {
|
|
@@ -46,32 +46,32 @@ const he = (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: N = 0, width:
|
|
52
|
-
|
|
51
|
+
const { x: N = 0, width: k = 0 } = d.getBoundingClientRect(), x = { x: N, width: k, labelEl: d };
|
|
52
|
+
v === 0 && (c = N), N === c ? s.push(x) : l.push(x);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
he && clearTimeout(he), he = setTimeout(() => {
|
|
58
58
|
i(), r(s), r(l);
|
|
59
59
|
}, 50);
|
|
60
|
-
},
|
|
60
|
+
}, be = {
|
|
61
61
|
/**
|
|
62
62
|
* 表单自动左对齐
|
|
63
63
|
*/
|
|
64
64
|
align: {
|
|
65
65
|
created(e) {
|
|
66
66
|
window.addEventListener("resize", () => {
|
|
67
|
-
|
|
67
|
+
pe(e);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
mounted(e) {
|
|
71
|
-
|
|
71
|
+
pe(e);
|
|
72
72
|
},
|
|
73
73
|
unmounted(e) {
|
|
74
|
-
window.removeEventListener("resize",
|
|
74
|
+
window.removeEventListener("resize", pe(e));
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
@@ -84,9 +84,9 @@ const he = (e) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const Le = { class: "bsgoal-base-tooltip" }, ze = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
|
-
}, Me = /* @__PURE__ */ Object.assign(
|
|
89
|
+
}, Me = /* @__PURE__ */ Object.assign(ze, {
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* 文字提示内容
|
|
@@ -126,19 +126,19 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
setup(e) {
|
|
129
|
-
const s = e, l =
|
|
129
|
+
const s = e, l = Z(() => {
|
|
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 = Z(() => {
|
|
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(),
|
|
141
|
-
|
|
140
|
+
return n(), b("div", Le, [
|
|
141
|
+
w(c, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
@@ -146,9 +146,9 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
|
|
|
146
146
|
content: e.content,
|
|
147
147
|
disabled: u(r)
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
149
|
+
default: T(() => [
|
|
150
150
|
q(i.$slots, "default", {}, () => [
|
|
151
|
-
W(
|
|
151
|
+
W(Y(u(l)), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
@@ -157,7 +157,7 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
|
|
|
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,27 +222,27 @@ 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 =
|
|
226
|
-
|
|
227
|
-
const { configOptions:
|
|
228
|
-
C.forEach((
|
|
229
|
-
const { value:
|
|
230
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(
|
|
225
|
+
const r = e, i = D(null), t = be.align, c = D({});
|
|
226
|
+
Ee(() => {
|
|
227
|
+
const { configOptions: p, values: y } = r, C = u(p), B = u(y);
|
|
228
|
+
C.forEach((M) => {
|
|
229
|
+
const { value: A = "", prop: O = "", type: I = "" } = M;
|
|
230
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(I), c.value[O] = B[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 = Z(() => {
|
|
234
|
+
const { configOptions: p } = r;
|
|
235
|
+
return u(p).map((B) => {
|
|
236
|
+
let { rules: M = !1, label: A = "" } = B;
|
|
237
|
+
const O = { required: !0, message: `${A}不能为空`, trigger: "blur" };
|
|
238
|
+
return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]), B.rules = M, B;
|
|
239
239
|
});
|
|
240
|
-
}),
|
|
240
|
+
}), v = (p = "", y = "", C = "") => {
|
|
241
241
|
if (!C)
|
|
242
|
-
switch (
|
|
242
|
+
switch (p) {
|
|
243
243
|
case a.INPUT:
|
|
244
244
|
case a.INPUT_TEXT_AREA:
|
|
245
|
-
return `请输入${
|
|
245
|
+
return `请输入${y}`;
|
|
246
246
|
case a.SELECT:
|
|
247
247
|
case a.DATE:
|
|
248
248
|
case a.WEEK:
|
|
@@ -250,7 +250,7 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
250
250
|
case a.YEAR:
|
|
251
251
|
case a.DATE_TIME:
|
|
252
252
|
case a.TIME:
|
|
253
|
-
return `请选择${
|
|
253
|
+
return `请选择${y}`;
|
|
254
254
|
case a.DATE_RANGE:
|
|
255
255
|
case a.DATE_TIME_RANGE:
|
|
256
256
|
return ["开始日期", "结束日期"];
|
|
@@ -260,9 +260,9 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
260
260
|
return ["开始月份", "结束月份"];
|
|
261
261
|
}
|
|
262
262
|
return C;
|
|
263
|
-
}, N = (
|
|
264
|
-
if (!
|
|
265
|
-
switch (
|
|
263
|
+
}, N = (p = "", y = "") => {
|
|
264
|
+
if (!y)
|
|
265
|
+
switch (p) {
|
|
266
266
|
case a.WEEK:
|
|
267
267
|
return "ww";
|
|
268
268
|
case a.DATE:
|
|
@@ -281,236 +281,236 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
281
281
|
case a.DATE_TIME_RANGE:
|
|
282
282
|
return "YYYY-MM-DD HH:mm:ss";
|
|
283
283
|
}
|
|
284
|
-
return
|
|
285
|
-
},
|
|
286
|
-
const
|
|
287
|
-
for (const
|
|
288
|
-
const { type:
|
|
289
|
-
if (
|
|
290
|
-
const { 0:
|
|
291
|
-
|
|
284
|
+
return y;
|
|
285
|
+
}, k = () => {
|
|
286
|
+
const p = u(c), { configOptions: y } = r, C = u(y);
|
|
287
|
+
for (const B of C) {
|
|
288
|
+
const { type: M = "", range: A = [], prop: O = "" } = B;
|
|
289
|
+
if (M.endsWith("range") && A && A.length === 2) {
|
|
290
|
+
const { 0: I = "", 1: U = "" } = p[O], { 0: z = "", 1: F = "" } = A;
|
|
291
|
+
p[z] = I, p[F] = U;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
return l("on-form",
|
|
295
|
-
},
|
|
294
|
+
return l("on-form", p), p;
|
|
295
|
+
}, x = () => {
|
|
296
296
|
i.value.resetFields(), l("on-clear", c.value);
|
|
297
|
-
},
|
|
297
|
+
}, V = (p, y) => {
|
|
298
298
|
const C = {
|
|
299
|
-
type:
|
|
300
|
-
prop:
|
|
301
|
-
value: c.value[
|
|
299
|
+
type: p,
|
|
300
|
+
prop: y,
|
|
301
|
+
value: c.value[y] || ""
|
|
302
302
|
};
|
|
303
303
|
l("on-change", C);
|
|
304
304
|
};
|
|
305
305
|
return s({
|
|
306
|
-
triggerOperationClear:
|
|
307
|
-
triggerOperationForm:
|
|
308
|
-
validateForm: (
|
|
306
|
+
triggerOperationClear: x,
|
|
307
|
+
triggerOperationForm: k,
|
|
308
|
+
validateForm: (p = () => {
|
|
309
309
|
}) => {
|
|
310
|
-
i.value.validate((
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
313
|
-
|
|
310
|
+
i.value.validate((y = !1, C = {}) => {
|
|
311
|
+
if (y) {
|
|
312
|
+
const B = k();
|
|
313
|
+
p(B);
|
|
314
314
|
} else {
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
[
|
|
318
|
-
0: { message:
|
|
315
|
+
p(!1);
|
|
316
|
+
const B = Object.keys(C)[0], {
|
|
317
|
+
[B]: {
|
|
318
|
+
0: { message: M = "" }
|
|
319
319
|
}
|
|
320
320
|
} = C;
|
|
321
|
-
|
|
321
|
+
Pe.error(M);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
}), (
|
|
326
|
-
const C = f("el-input"),
|
|
327
|
-
return n(),
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
}), (p, y) => {
|
|
326
|
+
const C = f("el-input"), B = f("el-input-number"), M = f("el-radio"), A = f("el-radio-group"), O = f("el-option"), I = f("el-select"), U = f("el-slider"), z = f("el-switch"), F = f("el-date-picker"), P = f("el-time-picker"), K = f("el-checkbox"), te = f("el-checkbox-group"), ae = 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
|
+
X((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),
|
|
339
|
-
label:
|
|
335
|
+
default: T(() => [
|
|
336
|
+
w(se, null, {
|
|
337
|
+
default: T(() => [
|
|
338
|
+
(n(!0), b(j, null, Q(u(d), ({
|
|
339
|
+
label: L = "",
|
|
340
340
|
prop: h = "",
|
|
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: J = [],
|
|
349
349
|
format: H = "",
|
|
350
|
-
rules:
|
|
351
|
-
limit:
|
|
352
|
-
} = {}, g) => (n(),
|
|
350
|
+
rules: le = [],
|
|
351
|
+
limit: ne = e.limits
|
|
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:
|
|
358
|
+
default: T(() => [
|
|
359
|
+
w(ae, {
|
|
360
|
+
label: L,
|
|
361
361
|
prop: h,
|
|
362
|
-
rules:
|
|
362
|
+
rules: le
|
|
363
363
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
G ? (n(),
|
|
366
|
-
|
|
364
|
+
default: T(() => [
|
|
365
|
+
G ? (n(), b("div", Ge, [
|
|
366
|
+
w(Me, {
|
|
367
367
|
content: c.value[h],
|
|
368
|
-
limit:
|
|
368
|
+
limit: ne,
|
|
369
369
|
none: e.none
|
|
370
370
|
}, null, 8, ["content", "limit", "none"])
|
|
371
|
-
])) : (n(),
|
|
372
|
-
o === u(a).INPUT ? (n(),
|
|
371
|
+
])) : (n(), b(j, { key: 0 }, [
|
|
372
|
+
o === u(a).INPUT ? (n(), E(C, {
|
|
373
373
|
key: 0,
|
|
374
374
|
modelValue: c.value[h],
|
|
375
375
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
376
|
-
placeholder:
|
|
377
|
-
clearable:
|
|
378
|
-
onChange: (m) =>
|
|
379
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
380
|
-
o === u(a).INPUT_TEXT_AREA ? (n(),
|
|
376
|
+
placeholder: v(o, L, _),
|
|
377
|
+
clearable: me,
|
|
378
|
+
onChange: (m) => V(o, h)
|
|
379
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
380
|
+
o === u(a).INPUT_TEXT_AREA ? (n(), E(C, {
|
|
381
381
|
key: 1,
|
|
382
382
|
modelValue: c.value[h],
|
|
383
383
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
384
384
|
type: "textarea",
|
|
385
|
-
rows:
|
|
386
|
-
clearable:
|
|
387
|
-
placeholder:
|
|
388
|
-
onChange: (m) =>
|
|
389
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
390
|
-
o === u(a).INPUT_NUMBER ? (n(),
|
|
385
|
+
rows: ge,
|
|
386
|
+
clearable: me,
|
|
387
|
+
placeholder: v(o, L, _),
|
|
388
|
+
onChange: (m) => V(o, h)
|
|
389
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
390
|
+
o === u(a).INPUT_NUMBER ? (n(), E(B, {
|
|
391
391
|
key: 2,
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue":
|
|
394
|
-
min:
|
|
395
|
-
max:
|
|
396
|
-
onChange:
|
|
397
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
398
|
-
o === u(a).RADIO ? (n(),
|
|
392
|
+
modelValue: p.num,
|
|
393
|
+
"onUpdate:modelValue": y[0] || (y[0] = (m) => p.num = m),
|
|
394
|
+
min: fe,
|
|
395
|
+
max: re,
|
|
396
|
+
onChange: V
|
|
397
|
+
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
398
|
+
o === u(a).RADIO ? (n(), E(A, {
|
|
399
399
|
key: 3,
|
|
400
400
|
modelValue: c.value[h],
|
|
401
401
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
402
|
-
onChange: (m) =>
|
|
402
|
+
onChange: (m) => V(o, h)
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
(n(!0),
|
|
406
|
-
key:
|
|
404
|
+
default: T(() => [
|
|
405
|
+
(n(!0), b(j, null, Q(J, (m, ie) => (n(), E(M, {
|
|
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
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
417
|
-
o === u(a).SELECT ? (n(),
|
|
416
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
417
|
+
o === u(a).SELECT ? (n(), E(I, {
|
|
418
418
|
key: 4,
|
|
419
419
|
modelValue: c.value[h],
|
|
420
420
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
421
|
-
placeholder:
|
|
422
|
-
onChange: (m) =>
|
|
421
|
+
placeholder: v(o, L, _),
|
|
422
|
+
onChange: (m) => V(o, h)
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
(n(!0),
|
|
426
|
-
key:
|
|
424
|
+
default: T(() => [
|
|
425
|
+
(n(!0), b(j, null, Q(J, (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
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
433
|
-
o === u(a).SLIDER ? (n(),
|
|
432
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
433
|
+
o === u(a).SLIDER ? (n(), E(U, {
|
|
434
434
|
key: 5,
|
|
435
435
|
modelValue: c.value[h],
|
|
436
436
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
437
|
-
min:
|
|
438
|
-
max:
|
|
439
|
-
onChange: (m) =>
|
|
440
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
441
|
-
o === u(a).SWITCH ? (n(),
|
|
437
|
+
min: fe,
|
|
438
|
+
max: re,
|
|
439
|
+
onChange: (m) => V(o, h)
|
|
440
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
441
|
+
o === u(a).SWITCH ? (n(), E(z, {
|
|
442
442
|
key: 6,
|
|
443
443
|
modelValue: c.value[h],
|
|
444
444
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
445
|
-
"active-value":
|
|
446
|
-
"inactive-value":
|
|
447
|
-
onChange: (m) =>
|
|
448
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
445
|
+
"active-value": J[0] || !0,
|
|
446
|
+
"inactive-value": J[1] || !1,
|
|
447
|
+
onChange: (m) => V(o, h)
|
|
448
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !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(F, {
|
|
452
452
|
key: 7,
|
|
453
453
|
modelValue: c.value[h],
|
|
454
454
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
455
455
|
format: N(o, H),
|
|
456
456
|
"value-format": N(o, H),
|
|
457
457
|
type: o,
|
|
458
|
-
placeholder:
|
|
459
|
-
onChange: (m) =>
|
|
460
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
458
|
+
placeholder: v(o, L, _),
|
|
459
|
+
onChange: (m) => V(o, h)
|
|
460
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !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(F, {
|
|
466
466
|
key: 8,
|
|
467
467
|
modelValue: c.value[h],
|
|
468
468
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
469
469
|
type: o,
|
|
470
470
|
"value-format": N(o, H),
|
|
471
|
-
"start-placeholder":
|
|
472
|
-
"end-placeholder":
|
|
473
|
-
onChange: (m) =>
|
|
474
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
475
|
-
[u(a).TIME].includes(o) ? (n(),
|
|
471
|
+
"start-placeholder": v(o, L, _)[0],
|
|
472
|
+
"end-placeholder": v(o, L, _)[1],
|
|
473
|
+
onChange: (m) => V(o, h)
|
|
474
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
475
|
+
[u(a).TIME].includes(o) ? (n(), E(P, {
|
|
476
476
|
key: 9,
|
|
477
477
|
modelValue: c.value[h],
|
|
478
478
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
479
479
|
"arrow-control": "",
|
|
480
480
|
"value-format": N(o, H),
|
|
481
|
-
placeholder:
|
|
482
|
-
onChange: (m) =>
|
|
483
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
484
|
-
[u(a).TIME_RANGE].includes(o) ? (n(),
|
|
481
|
+
placeholder: v(o, L, _),
|
|
482
|
+
onChange: (m) => V(o, h)
|
|
483
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
484
|
+
[u(a).TIME_RANGE].includes(o) ? (n(), E(P, {
|
|
485
485
|
key: 10,
|
|
486
486
|
modelValue: c.value[h],
|
|
487
487
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
488
488
|
"is-range": "",
|
|
489
489
|
"value-format": N(o, H),
|
|
490
|
-
"start-placeholder":
|
|
491
|
-
"end-placeholder":
|
|
492
|
-
onChange: (m) =>
|
|
493
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
494
|
-
[u(a).CHECKBOX].includes(o) ? (n(),
|
|
490
|
+
"start-placeholder": v(o, L, _)[0],
|
|
491
|
+
"end-placeholder": v(o, L, _)[1],
|
|
492
|
+
onChange: (m) => V(o, h)
|
|
493
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
494
|
+
[u(a).CHECKBOX].includes(o) ? (n(), E(te, {
|
|
495
495
|
key: 11,
|
|
496
496
|
modelValue: c.value[h],
|
|
497
497
|
"onUpdate:modelValue": (m) => c.value[h] = m,
|
|
498
|
-
onChange: (m) =>
|
|
498
|
+
onChange: (m) => V(o, h)
|
|
499
499
|
}, {
|
|
500
|
-
default:
|
|
501
|
-
(n(!0),
|
|
502
|
-
key:
|
|
500
|
+
default: T(() => [
|
|
501
|
+
(n(!0), b(j, null, Q(J, (m, ie) => (n(), E(K, {
|
|
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
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
513
|
-
[].includes(o) ? (n(),
|
|
512
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
513
|
+
[].includes(o) ? (n(), b(j, { key: 12 }, [], 64)) : $("", !0)
|
|
514
514
|
], 64))
|
|
515
515
|
]),
|
|
516
516
|
_: 2
|
|
@@ -561,13 +561,13 @@ const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "base_table_con
|
|
|
561
561
|
}
|
|
562
562
|
},
|
|
563
563
|
setup(e) {
|
|
564
|
-
return (s, l) => (n(),
|
|
565
|
-
|
|
566
|
-
e.tooltip ? (n(),
|
|
564
|
+
return (s, l) => (n(), b("div", Xe, [
|
|
565
|
+
S("div", Qe, [
|
|
566
|
+
e.tooltip ? (n(), E(Me, {
|
|
567
567
|
key: 0,
|
|
568
568
|
content: e.data,
|
|
569
569
|
limit: e.limit
|
|
570
|
-
}, null, 8, ["content", "limit"])) : (n(),
|
|
570
|
+
}, null, 8, ["content", "limit"])) : (n(), b("div", Ze, Y(e.data), 1))
|
|
571
571
|
])
|
|
572
572
|
]));
|
|
573
573
|
}
|
|
@@ -700,7 +700,7 @@ var qe = {
|
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
};
|
|
703
|
-
const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */
|
|
703
|
+
const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */ S("span", null, "总数", -1), lt = {
|
|
704
704
|
name: "BsgoalBaseTablePagination"
|
|
705
705
|
}, nt = /* @__PURE__ */ Object.assign(lt, {
|
|
706
706
|
props: {
|
|
@@ -739,14 +739,14 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
|
|
|
739
739
|
s("on-size-change", t);
|
|
740
740
|
}, r = (t = 1) => {
|
|
741
741
|
s("on-current-change", t);
|
|
742
|
-
}, i =
|
|
742
|
+
}, i = D(1);
|
|
743
743
|
return (t, c) => {
|
|
744
|
-
const d = f("el-pagination"),
|
|
745
|
-
return n(),
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
default:
|
|
749
|
-
|
|
744
|
+
const d = f("el-pagination"), v = f("el-config-provider");
|
|
745
|
+
return n(), b("div", et, [
|
|
746
|
+
S("div", tt, [
|
|
747
|
+
w(v, { locale: u(qe) }, {
|
|
748
|
+
default: T(() => [
|
|
749
|
+
w(d, {
|
|
750
750
|
background: "",
|
|
751
751
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
752
752
|
"current-page": i.value,
|
|
@@ -757,7 +757,7 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
|
|
|
757
757
|
onSizeChange: l,
|
|
758
758
|
onCurrentChange: r
|
|
759
759
|
}, {
|
|
760
|
-
next:
|
|
760
|
+
next: T(() => [
|
|
761
761
|
at
|
|
762
762
|
]),
|
|
763
763
|
_: 1
|
|
@@ -777,19 +777,19 @@ const $e = (e, s) => {
|
|
|
777
777
|
return l;
|
|
778
778
|
}, ot = {
|
|
779
779
|
name: "BsgoalBaseTableEmpty"
|
|
780
|
-
}, ut = { class: "bsgoal-base-table-empty" }, st = /* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__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", {
|
|
783
783
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
784
784
|
alt: ""
|
|
785
785
|
})
|
|
786
786
|
]),
|
|
787
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ S("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
788
788
|
], -1), ct = [
|
|
789
789
|
st
|
|
790
790
|
];
|
|
791
791
|
function rt(e, s, l, r, i, t) {
|
|
792
|
-
return n(),
|
|
792
|
+
return n(), b("div", ut, ct);
|
|
793
793
|
}
|
|
794
794
|
const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height: r = "" } = {}) => {
|
|
795
795
|
const i = u(e);
|
|
@@ -798,12 +798,12 @@ const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expressio
|
|
|
798
798
|
t && Ce(() => {
|
|
799
799
|
const { y: c = 0 } = t.getBoundingClientRect();
|
|
800
800
|
let d = `calc(100vh - ${c + s}px)`;
|
|
801
|
-
const
|
|
802
|
-
r && (
|
|
801
|
+
const v = Number.parseInt(r);
|
|
802
|
+
r && (v ? d = `${r}px` : d = r), t.style.height = d;
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
},
|
|
806
|
-
const i =
|
|
805
|
+
}, ye = (e = Promise.resolve(), s = null, l = D(!1), r = D(null)) => {
|
|
806
|
+
const i = D("");
|
|
807
807
|
return l.value = !0, e.then((t = {}) => {
|
|
808
808
|
const { data: c = {}, message: d = "" } = t;
|
|
809
809
|
r.value = c, i.value = d, s && s(!0, c), l.value = !1;
|
|
@@ -928,7 +928,7 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
928
928
|
},
|
|
929
929
|
/**
|
|
930
930
|
* 表格高度
|
|
931
|
-
*
|
|
931
|
+
*
|
|
932
932
|
* 默认 : 自动计算
|
|
933
933
|
* 布尔值 : 默认表格高度
|
|
934
934
|
* 字符串 : 直接赋值给 height
|
|
@@ -941,61 +941,65 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
941
941
|
/**
|
|
942
942
|
* 是否显示分页
|
|
943
943
|
*/
|
|
944
|
-
|
|
944
|
+
hasPage: {
|
|
945
945
|
type: Boolean,
|
|
946
946
|
default: !0
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
949
|
setup(e, { expose: s }) {
|
|
950
|
-
const l = e, r =
|
|
951
|
-
const { configOptions:
|
|
952
|
-
return
|
|
950
|
+
const l = e, r = Z(() => {
|
|
951
|
+
const { configOptions: A = [], operation: O = !1, operationWidth: I = 0 } = l, U = u(A), z = [];
|
|
952
|
+
return O && z.push({
|
|
953
953
|
label: "操作",
|
|
954
954
|
fixed: "right",
|
|
955
955
|
prop: "operation",
|
|
956
|
-
width:
|
|
957
|
-
}), [...
|
|
958
|
-
}), i =
|
|
959
|
-
|
|
960
|
-
const { height:
|
|
961
|
-
mt(
|
|
956
|
+
width: I
|
|
957
|
+
}), [...U, ...z];
|
|
958
|
+
}), i = D(null), t = Ve("transferFoldStatus");
|
|
959
|
+
Ee(() => {
|
|
960
|
+
const { height: A } = l, O = t ? t.value : !1, I = u(l.expression);
|
|
961
|
+
mt(A) || dt(i, { arg: O, expression: I, height: A });
|
|
962
962
|
});
|
|
963
|
-
const c =
|
|
964
|
-
|
|
965
|
-
|
|
963
|
+
const c = u(l.mapProps), d = ve({
|
|
964
|
+
currentPage: "currentPage",
|
|
965
|
+
pageSize: "pageSize",
|
|
966
|
+
rows: "rows",
|
|
967
|
+
total: "total"
|
|
968
|
+
}, c), v = D(1), N = D(10), k = D(0), x = D({}), V = D(l.loading), R = D(l.data), p = D({}), y = () => {
|
|
969
|
+
const { fetch: A, call: O, hasPage: I } = l, U = x.value, z = v.value, F = N.value, P = ve({}, U);
|
|
970
|
+
I && (P[d.currentPage] = z, P[d.pageSize] = F), ye(A(P), O, V, p);
|
|
966
971
|
};
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
B.value = v[D.rows], p.value = v[D.total];
|
|
972
|
+
de(p, (A) => {
|
|
973
|
+
l.hasPage ? (R.value = A[d.rows], k.value = A[d.total]) : R.value = A;
|
|
970
974
|
});
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
},
|
|
974
|
-
|
|
975
|
-
},
|
|
976
|
-
|
|
975
|
+
const C = (A = {}) => {
|
|
976
|
+
x.value = A, v.value = 1, y();
|
|
977
|
+
}, B = (A = 1) => {
|
|
978
|
+
v.value = A;
|
|
979
|
+
}, M = (A = 10) => {
|
|
980
|
+
N.value = A;
|
|
977
981
|
};
|
|
978
|
-
return
|
|
979
|
-
|
|
982
|
+
return de([v, N], () => {
|
|
983
|
+
y();
|
|
980
984
|
}), s({
|
|
981
|
-
refreshList:
|
|
982
|
-
}), (
|
|
983
|
-
const
|
|
984
|
-
return n(),
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
q(
|
|
988
|
-
])) :
|
|
989
|
-
|
|
985
|
+
refreshList: C
|
|
986
|
+
}), (A, O) => {
|
|
987
|
+
const I = f("el-table-column"), U = 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")
|
|
992
|
+
])) : $("", !0),
|
|
993
|
+
S("div", {
|
|
990
994
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
991
995
|
ref: i
|
|
992
996
|
}, [
|
|
993
|
-
|
|
997
|
+
X((n(), E(U, {
|
|
994
998
|
stripe: "",
|
|
995
999
|
border: "",
|
|
996
1000
|
"highlight-current-row": "",
|
|
997
1001
|
style: { width: "100%" },
|
|
998
|
-
data:
|
|
1002
|
+
data: R.value,
|
|
999
1003
|
"header-cell-style": {
|
|
1000
1004
|
fontWeight: "bold",
|
|
1001
1005
|
backgroundColor: "#EBEEF5",
|
|
@@ -1003,30 +1007,38 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1003
1007
|
fontSize: "14px"
|
|
1004
1008
|
}
|
|
1005
1009
|
}, {
|
|
1006
|
-
empty:
|
|
1007
|
-
|
|
1010
|
+
empty: T(() => [
|
|
1011
|
+
w(it)
|
|
1008
1012
|
]),
|
|
1009
|
-
default:
|
|
1010
|
-
e.selection ? (n(),
|
|
1013
|
+
default: T(() => [
|
|
1014
|
+
e.selection ? (n(), E(I, {
|
|
1011
1015
|
key: 0,
|
|
1012
1016
|
fixed: "left",
|
|
1013
1017
|
type: "selection",
|
|
1014
1018
|
width: "40"
|
|
1015
|
-
})) :
|
|
1016
|
-
(n(!0),
|
|
1017
|
-
|
|
1018
|
-
label:
|
|
1019
|
-
align:
|
|
1020
|
-
width:
|
|
1021
|
-
fixed:
|
|
1022
|
-
|
|
1019
|
+
})) : $("", !0),
|
|
1020
|
+
(n(!0), b(j, null, Q(u(r), ({
|
|
1021
|
+
prop: F = "",
|
|
1022
|
+
label: P = "",
|
|
1023
|
+
align: K = "center",
|
|
1024
|
+
width: te = "",
|
|
1025
|
+
fixed: ae = !1,
|
|
1026
|
+
tooltip: ue = !1,
|
|
1027
|
+
limit: se = 0
|
|
1028
|
+
} = {}, ce) => (n(), E(I, {
|
|
1029
|
+
key: ce,
|
|
1030
|
+
label: P,
|
|
1031
|
+
align: K,
|
|
1032
|
+
width: te,
|
|
1033
|
+
fixed: ae,
|
|
1034
|
+
"min-width": `${P.length * 14 + 24}px`
|
|
1023
1035
|
}, {
|
|
1024
|
-
default:
|
|
1025
|
-
q(
|
|
1026
|
-
|
|
1027
|
-
limit:
|
|
1028
|
-
tooltip:
|
|
1029
|
-
data:
|
|
1036
|
+
default: T(({ row: L }) => [
|
|
1037
|
+
q(A.$slots, F, { row: L }, () => [
|
|
1038
|
+
w(Je, {
|
|
1039
|
+
limit: se,
|
|
1040
|
+
tooltip: ue,
|
|
1041
|
+
data: L[F]
|
|
1030
1042
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1031
1043
|
])
|
|
1032
1044
|
]),
|
|
@@ -1035,15 +1047,15 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1035
1047
|
]),
|
|
1036
1048
|
_: 3
|
|
1037
1049
|
}, 8, ["data", "header-cell-style"])), [
|
|
1038
|
-
[
|
|
1050
|
+
[z, V.value]
|
|
1039
1051
|
])
|
|
1040
1052
|
], 512),
|
|
1041
|
-
e.
|
|
1053
|
+
e.hasPage ? (n(), E(nt, {
|
|
1042
1054
|
key: 1,
|
|
1043
|
-
total:
|
|
1044
|
-
onOnCurrentChange:
|
|
1045
|
-
onOnSizeChange:
|
|
1046
|
-
}, null, 8, ["total"])) :
|
|
1055
|
+
total: k.value,
|
|
1056
|
+
onOnCurrentChange: B,
|
|
1057
|
+
onOnSizeChange: M
|
|
1058
|
+
}, null, 8, ["total"])) : $("", !0)
|
|
1047
1059
|
])
|
|
1048
1060
|
]);
|
|
1049
1061
|
};
|
|
@@ -1051,7 +1063,7 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1051
1063
|
});
|
|
1052
1064
|
const pt = {
|
|
1053
1065
|
name: "BsgoalBaseLine"
|
|
1054
|
-
},
|
|
1066
|
+
}, Te = /* @__PURE__ */ Object.assign(pt, {
|
|
1055
1067
|
props: {
|
|
1056
1068
|
/**
|
|
1057
1069
|
* 是否为垂直
|
|
@@ -1062,17 +1074,17 @@ const pt = {
|
|
|
1062
1074
|
}
|
|
1063
1075
|
},
|
|
1064
1076
|
setup(e) {
|
|
1065
|
-
return (s, l) => (n(),
|
|
1066
|
-
class:
|
|
1077
|
+
return (s, l) => (n(), b("div", {
|
|
1078
|
+
class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1067
1079
|
}, [
|
|
1068
|
-
|
|
1069
|
-
class:
|
|
1080
|
+
S("div", {
|
|
1081
|
+
class: _e(["base_line", { base_line__vertical: e.vertical }])
|
|
1070
1082
|
}, null, 2)
|
|
1071
1083
|
], 2));
|
|
1072
1084
|
}
|
|
1073
1085
|
});
|
|
1074
1086
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1075
|
-
var
|
|
1087
|
+
var oe = (e, s) => {
|
|
1076
1088
|
let l = e.__vccOpts || e;
|
|
1077
1089
|
for (let [r, i] of s)
|
|
1078
1090
|
l[r] = i;
|
|
@@ -1082,7 +1094,7 @@ var ue = (e, s) => {
|
|
|
1082
1094
|
}, bt = {
|
|
1083
1095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1084
1096
|
viewBox: "0 0 1024 1024"
|
|
1085
|
-
}, yt = /* @__PURE__ */
|
|
1097
|
+
}, yt = /* @__PURE__ */ S(
|
|
1086
1098
|
"path",
|
|
1087
1099
|
{
|
|
1088
1100
|
fill: "currentColor",
|
|
@@ -1095,14 +1107,14 @@ var ue = (e, s) => {
|
|
|
1095
1107
|
yt
|
|
1096
1108
|
];
|
|
1097
1109
|
function At(e, s, l, r, i, t) {
|
|
1098
|
-
return n(),
|
|
1110
|
+
return n(), b("svg", bt, Tt);
|
|
1099
1111
|
}
|
|
1100
|
-
var xt = /* @__PURE__ */
|
|
1112
|
+
var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]), Ct = {
|
|
1101
1113
|
name: "ArrowLeft"
|
|
1102
1114
|
}, Vt = {
|
|
1103
1115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1104
1116
|
viewBox: "0 0 1024 1024"
|
|
1105
|
-
}, Mt = /* @__PURE__ */
|
|
1117
|
+
}, Mt = /* @__PURE__ */ S(
|
|
1106
1118
|
"path",
|
|
1107
1119
|
{
|
|
1108
1120
|
fill: "currentColor",
|
|
@@ -1115,14 +1127,14 @@ var xt = /* @__PURE__ */ ue(Et, [["render", At], ["__file", "arrow-down.vue"]]),
|
|
|
1115
1127
|
Mt
|
|
1116
1128
|
];
|
|
1117
1129
|
function Nt(e, s, l, r, i, t) {
|
|
1118
|
-
return n(),
|
|
1130
|
+
return n(), b("svg", Vt, $t);
|
|
1119
1131
|
}
|
|
1120
|
-
var
|
|
1132
|
+
var wt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), Bt = {
|
|
1121
1133
|
name: "ArrowRight"
|
|
1122
1134
|
}, Dt = {
|
|
1123
1135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1124
1136
|
viewBox: "0 0 1024 1024"
|
|
1125
|
-
}, kt = /* @__PURE__ */
|
|
1137
|
+
}, kt = /* @__PURE__ */ S(
|
|
1126
1138
|
"path",
|
|
1127
1139
|
{
|
|
1128
1140
|
fill: "currentColor",
|
|
@@ -1131,18 +1143,18 @@ var Bt = /* @__PURE__ */ ue(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]),
|
|
|
1131
1143
|
null,
|
|
1132
1144
|
-1
|
|
1133
1145
|
/* HOISTED */
|
|
1134
|
-
),
|
|
1146
|
+
), St = [
|
|
1135
1147
|
kt
|
|
1136
1148
|
];
|
|
1137
|
-
function
|
|
1138
|
-
return n(),
|
|
1149
|
+
function Ot(e, s, l, r, i, t) {
|
|
1150
|
+
return n(), b("svg", Dt, St);
|
|
1139
1151
|
}
|
|
1140
|
-
var It = /* @__PURE__ */
|
|
1152
|
+
var It = /* @__PURE__ */ oe(Bt, [["render", Ot], ["__file", "arrow-right.vue"]]), Ft = {
|
|
1141
1153
|
name: "ArrowUp"
|
|
1142
1154
|
}, Rt = {
|
|
1143
1155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1144
1156
|
viewBox: "0 0 1024 1024"
|
|
1145
|
-
}, Ut = /* @__PURE__ */
|
|
1157
|
+
}, Ut = /* @__PURE__ */ S(
|
|
1146
1158
|
"path",
|
|
1147
1159
|
{
|
|
1148
1160
|
fill: "currentColor",
|
|
@@ -1151,18 +1163,18 @@ var It = /* @__PURE__ */ ue(wt, [["render", St], ["__file", "arrow-right.vue"]])
|
|
|
1151
1163
|
null,
|
|
1152
1164
|
-1
|
|
1153
1165
|
/* HOISTED */
|
|
1154
|
-
),
|
|
1166
|
+
), Pt = [
|
|
1155
1167
|
Ut
|
|
1156
1168
|
];
|
|
1157
|
-
function
|
|
1158
|
-
return n(),
|
|
1169
|
+
function Lt(e, s, l, r, i, t) {
|
|
1170
|
+
return n(), b("svg", Rt, Pt);
|
|
1159
1171
|
}
|
|
1160
|
-
var
|
|
1172
|
+
var zt = /* @__PURE__ */ oe(Ft, [["render", Lt], ["__file", "arrow-up.vue"]]), jt = {
|
|
1161
1173
|
name: "Delete"
|
|
1162
1174
|
}, Yt = {
|
|
1163
1175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1164
1176
|
viewBox: "0 0 1024 1024"
|
|
1165
|
-
}, Gt = /* @__PURE__ */
|
|
1177
|
+
}, Gt = /* @__PURE__ */ S(
|
|
1166
1178
|
"path",
|
|
1167
1179
|
{
|
|
1168
1180
|
fill: "currentColor",
|
|
@@ -1175,14 +1187,14 @@ var jt = /* @__PURE__ */ ue(Ft, [["render", zt], ["__file", "arrow-up.vue"]]), P
|
|
|
1175
1187
|
Gt
|
|
1176
1188
|
];
|
|
1177
1189
|
function Wt(e, s, l, r, i, t) {
|
|
1178
|
-
return n(),
|
|
1190
|
+
return n(), b("svg", Yt, Ht);
|
|
1179
1191
|
}
|
|
1180
|
-
var Xt = /* @__PURE__ */
|
|
1192
|
+
var Xt = /* @__PURE__ */ oe(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
|
|
1181
1193
|
name: "Search"
|
|
1182
1194
|
}, Zt = {
|
|
1183
1195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1184
1196
|
viewBox: "0 0 1024 1024"
|
|
1185
|
-
}, Kt = /* @__PURE__ */
|
|
1197
|
+
}, Kt = /* @__PURE__ */ S(
|
|
1186
1198
|
"path",
|
|
1187
1199
|
{
|
|
1188
1200
|
fill: "currentColor",
|
|
@@ -1195,9 +1207,9 @@ var Xt = /* @__PURE__ */ ue(Pt, [["render", Wt], ["__file", "delete.vue"]]), Qt
|
|
|
1195
1207
|
Kt
|
|
1196
1208
|
];
|
|
1197
1209
|
function qt(e, s, l, r, i, t) {
|
|
1198
|
-
return n(),
|
|
1210
|
+
return n(), b("svg", Zt, Jt);
|
|
1199
1211
|
}
|
|
1200
|
-
var ea = /* @__PURE__ */
|
|
1212
|
+
var ea = /* @__PURE__ */ oe(Qt, [["render", qt], ["__file", "search.vue"]]);
|
|
1201
1213
|
const ta = { class: "bsgoal-base-search-operation" }, aa = {
|
|
1202
1214
|
name: "BsgoalBaseSearchOperation"
|
|
1203
1215
|
}, la = /* @__PURE__ */ Object.assign(aa, {
|
|
@@ -1212,50 +1224,50 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
|
|
|
1212
1224
|
},
|
|
1213
1225
|
emits: ["on-fold"],
|
|
1214
1226
|
setup(e, { emit: s }) {
|
|
1215
|
-
const l =
|
|
1227
|
+
const l = D(!1), r = () => {
|
|
1216
1228
|
l.value = !u(l), s("on-fold", l.value);
|
|
1217
1229
|
};
|
|
1218
1230
|
return (i, t) => {
|
|
1219
1231
|
const c = f("el-button"), d = f("el-icon");
|
|
1220
|
-
return n(),
|
|
1221
|
-
|
|
1232
|
+
return n(), b("div", ta, [
|
|
1233
|
+
w(c, {
|
|
1222
1234
|
type: "primary",
|
|
1223
1235
|
icon: u(ea),
|
|
1224
|
-
onClick: t[0] || (t[0] = (
|
|
1236
|
+
onClick: t[0] || (t[0] = (v) => i.$emit("on-search"))
|
|
1225
1237
|
}, {
|
|
1226
|
-
default:
|
|
1238
|
+
default: T(() => [
|
|
1227
1239
|
W("搜索")
|
|
1228
1240
|
]),
|
|
1229
1241
|
_: 1
|
|
1230
1242
|
}, 8, ["icon"]),
|
|
1231
|
-
|
|
1243
|
+
w(c, {
|
|
1232
1244
|
icon: u(Xt),
|
|
1233
|
-
onClick: t[1] || (t[1] = (
|
|
1245
|
+
onClick: t[1] || (t[1] = (v) => i.$emit("on-clear"))
|
|
1234
1246
|
}, {
|
|
1235
|
-
default:
|
|
1247
|
+
default: T(() => [
|
|
1236
1248
|
W("清空")
|
|
1237
1249
|
]),
|
|
1238
1250
|
_: 1
|
|
1239
1251
|
}, 8, ["icon"]),
|
|
1240
|
-
e.fold ? (n(),
|
|
1252
|
+
e.fold ? (n(), b("div", {
|
|
1241
1253
|
key: 0,
|
|
1242
1254
|
class: "operation_fold",
|
|
1243
1255
|
style: { color: "var(--el-color-primary)" },
|
|
1244
1256
|
onClick: r
|
|
1245
1257
|
}, [
|
|
1246
|
-
W(
|
|
1247
|
-
|
|
1248
|
-
default:
|
|
1249
|
-
|
|
1250
|
-
[
|
|
1258
|
+
W(Y(l.value ? "收起" : "展开"), 1),
|
|
1259
|
+
w(d, { color: "#409EFC" }, {
|
|
1260
|
+
default: T(() => [
|
|
1261
|
+
X(w(u(zt), null, null, 512), [
|
|
1262
|
+
[ee, l.value]
|
|
1251
1263
|
]),
|
|
1252
|
-
|
|
1253
|
-
[
|
|
1264
|
+
X(w(u(xt), null, null, 512), [
|
|
1265
|
+
[ee, !l.value]
|
|
1254
1266
|
])
|
|
1255
1267
|
]),
|
|
1256
1268
|
_: 1
|
|
1257
1269
|
})
|
|
1258
|
-
])) :
|
|
1270
|
+
])) : $("", !0)
|
|
1259
1271
|
]);
|
|
1260
1272
|
};
|
|
1261
1273
|
}
|
|
@@ -1295,7 +1307,7 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
|
|
|
1295
1307
|
},
|
|
1296
1308
|
emits: ["update:model-value", "on-change"],
|
|
1297
1309
|
setup(e, { emit: s }) {
|
|
1298
|
-
const l =
|
|
1310
|
+
const l = D({
|
|
1299
1311
|
checkStrictly: !0,
|
|
1300
1312
|
multiple: !1
|
|
1301
1313
|
}), r = (i) => {
|
|
@@ -1303,8 +1315,8 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
|
|
|
1303
1315
|
};
|
|
1304
1316
|
return (i, t) => {
|
|
1305
1317
|
const c = f("el-cascader");
|
|
1306
|
-
return n(),
|
|
1307
|
-
|
|
1318
|
+
return n(), b("div", na, [
|
|
1319
|
+
w(c, {
|
|
1308
1320
|
clearable: "",
|
|
1309
1321
|
class: "base_cascader",
|
|
1310
1322
|
"show-all-levels": !1,
|
|
@@ -1362,22 +1374,22 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1362
1374
|
},
|
|
1363
1375
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1364
1376
|
setup(e, { emit: s }) {
|
|
1365
|
-
const l = e, r =
|
|
1366
|
-
|
|
1367
|
-
const { configOptions:
|
|
1368
|
-
u(
|
|
1369
|
-
const { value:
|
|
1370
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(
|
|
1377
|
+
const l = e, r = D(null), i = be.align, t = D({});
|
|
1378
|
+
Ee(() => {
|
|
1379
|
+
const { configOptions: y } = l;
|
|
1380
|
+
u(y).forEach((B) => {
|
|
1381
|
+
const { value: M, prop: A = "", type: O = "" } = B;
|
|
1382
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(O), t.value[A] = [0, !1].includes(M) ? M : "";
|
|
1371
1383
|
});
|
|
1372
1384
|
});
|
|
1373
|
-
const c =
|
|
1374
|
-
const { configOptions:
|
|
1385
|
+
const c = Z(() => {
|
|
1386
|
+
const { configOptions: y } = l, C = u(y), B = {
|
|
1375
1387
|
type: a.OPERATION
|
|
1376
1388
|
};
|
|
1377
|
-
return [...C,
|
|
1378
|
-
}), d = (
|
|
1379
|
-
if (!
|
|
1380
|
-
switch (
|
|
1389
|
+
return [...C, B];
|
|
1390
|
+
}), d = (y = "", C = "", B = "") => {
|
|
1391
|
+
if (!B)
|
|
1392
|
+
switch (y) {
|
|
1381
1393
|
case a.INPUT:
|
|
1382
1394
|
case a.INPUT_TEXT_AREA:
|
|
1383
1395
|
return `请输入${C}`;
|
|
@@ -1398,10 +1410,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1398
1410
|
case a.MONTH_RANGE:
|
|
1399
1411
|
return ["开始月份", "结束月份"];
|
|
1400
1412
|
}
|
|
1401
|
-
return
|
|
1402
|
-
},
|
|
1413
|
+
return B;
|
|
1414
|
+
}, v = (y = "", C = "") => {
|
|
1403
1415
|
if (!C)
|
|
1404
|
-
switch (
|
|
1416
|
+
switch (y) {
|
|
1405
1417
|
case a.WEEK:
|
|
1406
1418
|
return "ww";
|
|
1407
1419
|
case a.DATE:
|
|
@@ -1422,233 +1434,233 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1422
1434
|
}
|
|
1423
1435
|
return C;
|
|
1424
1436
|
}, N = () => {
|
|
1425
|
-
const { configOptions:
|
|
1426
|
-
for (const
|
|
1427
|
-
const { type:
|
|
1428
|
-
if ([a.CASCADER].includes(
|
|
1429
|
-
const P =
|
|
1430
|
-
P ?
|
|
1437
|
+
const { configOptions: y } = l, C = u(t), B = u(y), M = {};
|
|
1438
|
+
for (const A of B) {
|
|
1439
|
+
const { type: O = "", range: I = [], prop: U = "", single: z = !1 } = A, F = C[U];
|
|
1440
|
+
if ([a.CASCADER].includes(O) && Array.isArray(F) && z) {
|
|
1441
|
+
const P = F.length;
|
|
1442
|
+
P ? M[U] = F[P - 1] : M[U] = F;
|
|
1431
1443
|
} else
|
|
1432
|
-
|
|
1433
|
-
if (
|
|
1434
|
-
const { 0: P = "", 1:
|
|
1435
|
-
|
|
1444
|
+
Se(F) ? M[U] = Oe(F) : M[U] = F;
|
|
1445
|
+
if (O.endsWith("range") && I && I.length === 2) {
|
|
1446
|
+
const { 0: P = "", 1: K = "" } = F, { 0: te = "", 1: ae = "" } = I;
|
|
1447
|
+
M[te] = P, M[ae] = K;
|
|
1436
1448
|
}
|
|
1437
1449
|
}
|
|
1438
|
-
s("on-search",
|
|
1450
|
+
s("on-search", M), s("update:modelValue", M);
|
|
1439
1451
|
};
|
|
1440
1452
|
Ce(() => {
|
|
1441
1453
|
N();
|
|
1442
1454
|
});
|
|
1443
|
-
const
|
|
1455
|
+
const k = () => {
|
|
1444
1456
|
r.value.resetFields(), s("on-clear", t.value);
|
|
1445
|
-
},
|
|
1446
|
-
|
|
1447
|
-
},
|
|
1457
|
+
}, x = Ve("transferFoldStatus"), V = D(!1), R = (y = !1) => {
|
|
1458
|
+
V.value = y, x && (x.value = y), s("on-fold", V);
|
|
1459
|
+
}, p = (y, C) => {
|
|
1448
1460
|
N();
|
|
1449
|
-
const
|
|
1450
|
-
type:
|
|
1461
|
+
const B = {
|
|
1462
|
+
type: y,
|
|
1451
1463
|
prop: C,
|
|
1452
1464
|
value: t.value[C] || ""
|
|
1453
1465
|
};
|
|
1454
|
-
s("on-change",
|
|
1466
|
+
s("on-change", B);
|
|
1455
1467
|
};
|
|
1456
|
-
return (
|
|
1457
|
-
const
|
|
1458
|
-
return n(),
|
|
1459
|
-
|
|
1460
|
-
|
|
1468
|
+
return (y, C) => {
|
|
1469
|
+
const B = f("el-input"), M = f("el-input-number"), A = f("el-radio"), O = f("el-radio-group"), I = f("el-option"), U = f("el-select"), z = f("el-slider"), F = f("el-switch"), P = f("el-date-picker"), K = f("el-time-picker"), te = f("el-checkbox"), ae = f("el-checkbox-group"), ue = f("el-form-item"), se = f("el-col"), ce = f("el-row"), L = f("el-form");
|
|
1470
|
+
return n(), b("div", sa, [
|
|
1471
|
+
S("div", ca, [
|
|
1472
|
+
X((n(), E(L, {
|
|
1461
1473
|
ref_key: "EL_FORM_REF",
|
|
1462
1474
|
ref: r,
|
|
1463
1475
|
"label-suffix": ":",
|
|
1464
1476
|
"show-message": !1,
|
|
1465
1477
|
model: t.value
|
|
1466
1478
|
}, {
|
|
1467
|
-
default:
|
|
1468
|
-
|
|
1469
|
-
default:
|
|
1470
|
-
(n(!0),
|
|
1479
|
+
default: T(() => [
|
|
1480
|
+
w(ce, null, {
|
|
1481
|
+
default: T(() => [
|
|
1482
|
+
(n(!0), b(j, null, Q(u(c), ({
|
|
1471
1483
|
label: h = "",
|
|
1472
1484
|
prop: o = "",
|
|
1473
1485
|
type: _ = "text",
|
|
1474
1486
|
placeholder: G = "",
|
|
1475
|
-
readonly:
|
|
1476
|
-
clearable:
|
|
1477
|
-
rows:
|
|
1478
|
-
min:
|
|
1479
|
-
max:
|
|
1487
|
+
readonly: me = !1,
|
|
1488
|
+
clearable: ge = !0,
|
|
1489
|
+
rows: fe = 2,
|
|
1490
|
+
min: re = 1,
|
|
1491
|
+
max: J = 10,
|
|
1480
1492
|
range: H = [],
|
|
1481
|
-
format:
|
|
1482
|
-
} = {},
|
|
1483
|
-
key:
|
|
1493
|
+
format: le = ""
|
|
1494
|
+
} = {}, ne) => X((n(), E(se, {
|
|
1495
|
+
key: ne,
|
|
1484
1496
|
xs: 24,
|
|
1485
1497
|
sm: 12,
|
|
1486
1498
|
md: e.medium
|
|
1487
1499
|
}, {
|
|
1488
|
-
default:
|
|
1489
|
-
|
|
1500
|
+
default: T(() => [
|
|
1501
|
+
w(ue, {
|
|
1490
1502
|
label: h,
|
|
1491
1503
|
prop: o
|
|
1492
1504
|
}, {
|
|
1493
|
-
default:
|
|
1494
|
-
|
|
1495
|
-
_ === u(a).INPUT ? (n(),
|
|
1505
|
+
default: T(() => [
|
|
1506
|
+
me ? (n(), b("div", ra, Y(t.value[o]), 1)) : (n(), b(j, { key: 0 }, [
|
|
1507
|
+
_ === u(a).INPUT ? (n(), E(B, {
|
|
1496
1508
|
key: 0,
|
|
1497
1509
|
modelValue: t.value[o],
|
|
1498
1510
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1499
1511
|
placeholder: d(_, h, G),
|
|
1500
|
-
clearable:
|
|
1501
|
-
onChange: (g) =>
|
|
1502
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
1503
|
-
_ === u(a).INPUT_TEXT_AREA ? (n(),
|
|
1512
|
+
clearable: ge,
|
|
1513
|
+
onChange: (g) => p(_, o)
|
|
1514
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
1515
|
+
_ === u(a).INPUT_TEXT_AREA ? (n(), E(B, {
|
|
1504
1516
|
key: 1,
|
|
1505
1517
|
modelValue: t.value[o],
|
|
1506
1518
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1507
1519
|
type: "textarea",
|
|
1508
|
-
rows:
|
|
1509
|
-
clearable:
|
|
1520
|
+
rows: fe,
|
|
1521
|
+
clearable: ge,
|
|
1510
1522
|
placeholder: d(_, h, G),
|
|
1511
|
-
onChange: (g) =>
|
|
1512
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1513
|
-
_ === u(a).INPUT_NUMBER ? (n(),
|
|
1523
|
+
onChange: (g) => p(_, o)
|
|
1524
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1525
|
+
_ === u(a).INPUT_NUMBER ? (n(), E(M, {
|
|
1514
1526
|
key: 2,
|
|
1515
|
-
modelValue:
|
|
1516
|
-
"onUpdate:modelValue": C[0] || (C[0] = (g) =>
|
|
1517
|
-
min:
|
|
1518
|
-
max:
|
|
1519
|
-
onChange:
|
|
1520
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1521
|
-
_ === u(a).RADIO ? (n(),
|
|
1527
|
+
modelValue: y.num,
|
|
1528
|
+
"onUpdate:modelValue": C[0] || (C[0] = (g) => y.num = g),
|
|
1529
|
+
min: re,
|
|
1530
|
+
max: J,
|
|
1531
|
+
onChange: p
|
|
1532
|
+
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1533
|
+
_ === u(a).RADIO ? (n(), E(O, {
|
|
1522
1534
|
key: 3,
|
|
1523
1535
|
modelValue: t.value[o],
|
|
1524
1536
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1525
|
-
onChange: (g) =>
|
|
1537
|
+
onChange: (g) => p(_, o)
|
|
1526
1538
|
}, {
|
|
1527
|
-
default:
|
|
1528
|
-
(n(!0),
|
|
1539
|
+
default: T(() => [
|
|
1540
|
+
(n(!0), b(j, null, Q(H, (g, m) => (n(), E(A, {
|
|
1529
1541
|
key: m,
|
|
1530
1542
|
label: g.value
|
|
1531
1543
|
}, {
|
|
1532
|
-
default:
|
|
1533
|
-
W(
|
|
1544
|
+
default: T(() => [
|
|
1545
|
+
W(Y(g.label), 1)
|
|
1534
1546
|
]),
|
|
1535
1547
|
_: 2
|
|
1536
1548
|
}, 1032, ["label"]))), 128))
|
|
1537
1549
|
]),
|
|
1538
1550
|
_: 2
|
|
1539
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1540
|
-
_ === u(a).SELECT ? (n(),
|
|
1551
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1552
|
+
_ === u(a).SELECT ? (n(), E(U, {
|
|
1541
1553
|
key: 4,
|
|
1542
1554
|
modelValue: t.value[o],
|
|
1543
1555
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1544
1556
|
placeholder: d(_, h, G),
|
|
1545
|
-
onChange: (g) =>
|
|
1557
|
+
onChange: (g) => p(_, o)
|
|
1546
1558
|
}, {
|
|
1547
|
-
default:
|
|
1548
|
-
(n(!0),
|
|
1559
|
+
default: T(() => [
|
|
1560
|
+
(n(!0), b(j, null, Q(H, (g, m) => (n(), E(I, {
|
|
1549
1561
|
key: m,
|
|
1550
1562
|
label: g.label,
|
|
1551
1563
|
value: g.value
|
|
1552
1564
|
}, null, 8, ["label", "value"]))), 128))
|
|
1553
1565
|
]),
|
|
1554
1566
|
_: 2
|
|
1555
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1556
|
-
_ === u(a).SLIDER ? (n(),
|
|
1567
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1568
|
+
_ === u(a).SLIDER ? (n(), E(z, {
|
|
1557
1569
|
key: 5,
|
|
1558
1570
|
modelValue: t.value[o],
|
|
1559
1571
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1560
|
-
min:
|
|
1561
|
-
max:
|
|
1562
|
-
onChange: (g) =>
|
|
1563
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1564
|
-
_ === u(a).SWITCH ? (n(),
|
|
1572
|
+
min: re,
|
|
1573
|
+
max: J,
|
|
1574
|
+
onChange: (g) => p(_, o)
|
|
1575
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1576
|
+
_ === u(a).SWITCH ? (n(), E(F, {
|
|
1565
1577
|
key: 6,
|
|
1566
1578
|
modelValue: t.value[o],
|
|
1567
1579
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1568
1580
|
"active-value": H[0] || !0,
|
|
1569
1581
|
"inactive-value": H[1] || !1,
|
|
1570
|
-
onChange: (g) =>
|
|
1571
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1582
|
+
onChange: (g) => p(_, o)
|
|
1583
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1572
1584
|
[u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
|
|
1573
1585
|
_
|
|
1574
|
-
) ? (n(),
|
|
1586
|
+
) ? (n(), E(P, {
|
|
1575
1587
|
key: 7,
|
|
1576
1588
|
modelValue: t.value[o],
|
|
1577
1589
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1578
|
-
format:
|
|
1579
|
-
"value-format":
|
|
1590
|
+
format: v(_, le),
|
|
1591
|
+
"value-format": v(_, le),
|
|
1580
1592
|
type: _,
|
|
1581
1593
|
placeholder: d(_, h, G),
|
|
1582
|
-
onChange: (g) =>
|
|
1583
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1594
|
+
onChange: (g) => p(_, o)
|
|
1595
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1584
1596
|
[
|
|
1585
1597
|
u(a).DATE_RANGE,
|
|
1586
1598
|
u(a).MONTH_RANGE,
|
|
1587
1599
|
u(a).DATE_TIME_RANGE
|
|
1588
|
-
].includes(_) ? (n(),
|
|
1600
|
+
].includes(_) ? (n(), E(P, {
|
|
1589
1601
|
key: 8,
|
|
1590
1602
|
modelValue: t.value[o],
|
|
1591
1603
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1592
1604
|
type: _,
|
|
1593
|
-
"value-format":
|
|
1605
|
+
"value-format": v(_, le),
|
|
1594
1606
|
"start-placeholder": d(_, h, G)[0],
|
|
1595
1607
|
"end-placeholder": d(_, h, G)[1],
|
|
1596
|
-
onChange: (g) =>
|
|
1597
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1598
|
-
[u(a).TIME].includes(_) ? (n(),
|
|
1608
|
+
onChange: (g) => p(_, o)
|
|
1609
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1610
|
+
[u(a).TIME].includes(_) ? (n(), E(K, {
|
|
1599
1611
|
key: 9,
|
|
1600
1612
|
modelValue: t.value[o],
|
|
1601
1613
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1602
1614
|
"arrow-control": "",
|
|
1603
|
-
"value-format":
|
|
1615
|
+
"value-format": v(_, le),
|
|
1604
1616
|
placeholder: d(_, h, G),
|
|
1605
|
-
onChange: (g) =>
|
|
1606
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1607
|
-
[u(a).TIME_RANGE].includes(_) ? (n(),
|
|
1617
|
+
onChange: (g) => p(_, o)
|
|
1618
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1619
|
+
[u(a).TIME_RANGE].includes(_) ? (n(), E(K, {
|
|
1608
1620
|
key: 10,
|
|
1609
1621
|
modelValue: t.value[o],
|
|
1610
1622
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1611
1623
|
"is-range": "",
|
|
1612
|
-
"value-format":
|
|
1624
|
+
"value-format": v(_, le),
|
|
1613
1625
|
"start-placeholder": d(_, h, G)[0],
|
|
1614
1626
|
"end-placeholder": d(_, h, G)[1],
|
|
1615
|
-
onChange: (g) =>
|
|
1616
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1617
|
-
[u(a).CHECKBOX].includes(_) ? (n(),
|
|
1627
|
+
onChange: (g) => p(_, o)
|
|
1628
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1629
|
+
[u(a).CHECKBOX].includes(_) ? (n(), E(ae, {
|
|
1618
1630
|
key: 11,
|
|
1619
1631
|
modelValue: t.value[o],
|
|
1620
1632
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1621
|
-
onChange: (g) =>
|
|
1633
|
+
onChange: (g) => p(_, o)
|
|
1622
1634
|
}, {
|
|
1623
|
-
default:
|
|
1624
|
-
(n(!0),
|
|
1635
|
+
default: T(() => [
|
|
1636
|
+
(n(!0), b(j, null, Q(H, (g, m) => (n(), E(te, {
|
|
1625
1637
|
key: m,
|
|
1626
1638
|
label: g.value
|
|
1627
1639
|
}, {
|
|
1628
|
-
default:
|
|
1629
|
-
W(
|
|
1640
|
+
default: T(() => [
|
|
1641
|
+
W(Y(g.label), 1)
|
|
1630
1642
|
]),
|
|
1631
1643
|
_: 2
|
|
1632
1644
|
}, 1032, ["label"]))), 128))
|
|
1633
1645
|
]),
|
|
1634
1646
|
_: 2
|
|
1635
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1636
|
-
[u(a).CASCADER].includes(_) ? (n(),
|
|
1647
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1648
|
+
[u(a).CASCADER].includes(_) ? (n(), E(ua, {
|
|
1637
1649
|
key: 12,
|
|
1638
1650
|
modelValue: t.value[o],
|
|
1639
1651
|
"onUpdate:modelValue": (g) => t.value[o] = g,
|
|
1640
1652
|
"data-options": H,
|
|
1641
1653
|
placeholder: d(_, h, G),
|
|
1642
|
-
onOnChange: (g) =>
|
|
1643
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1644
|
-
[].includes(_) ? (n(),
|
|
1645
|
-
[u(a).OPERATION].includes(_) ? (n(),
|
|
1654
|
+
onOnChange: (g) => p(_, o)
|
|
1655
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
|
|
1656
|
+
[].includes(_) ? (n(), b(j, { key: 13 }, [], 64)) : $("", !0),
|
|
1657
|
+
[u(a).OPERATION].includes(_) ? (n(), E(la, {
|
|
1646
1658
|
key: 14,
|
|
1647
|
-
fold:
|
|
1659
|
+
fold: ne >= 7,
|
|
1648
1660
|
onOnSearch: N,
|
|
1649
|
-
onOnClear:
|
|
1650
|
-
onOnFold:
|
|
1651
|
-
}, null, 8, ["fold"])) :
|
|
1661
|
+
onOnClear: k,
|
|
1662
|
+
onOnFold: R
|
|
1663
|
+
}, null, 8, ["fold"])) : $("", !0)
|
|
1652
1664
|
], 64))
|
|
1653
1665
|
]),
|
|
1654
1666
|
_: 2
|
|
@@ -1656,7 +1668,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1656
1668
|
]),
|
|
1657
1669
|
_: 2
|
|
1658
1670
|
}, 1032, ["md"])), [
|
|
1659
|
-
[
|
|
1671
|
+
[ee, ne < 7 || _ === u(a).OPERATION || ne >= 7 && V.value]
|
|
1660
1672
|
])), 128))
|
|
1661
1673
|
]),
|
|
1662
1674
|
_: 1
|
|
@@ -1667,7 +1679,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1667
1679
|
[u(i)]
|
|
1668
1680
|
])
|
|
1669
1681
|
]),
|
|
1670
|
-
|
|
1682
|
+
w(Te)
|
|
1671
1683
|
]);
|
|
1672
1684
|
};
|
|
1673
1685
|
}
|
|
@@ -1747,51 +1759,84 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
|
|
|
1747
1759
|
default: null
|
|
1748
1760
|
},
|
|
1749
1761
|
/**
|
|
1750
|
-
|
|
1751
|
-
|
|
1762
|
+
* 表格高度 下边距值
|
|
1763
|
+
*/
|
|
1752
1764
|
expression: {
|
|
1753
1765
|
type: [Number],
|
|
1754
1766
|
default: 75
|
|
1767
|
+
},
|
|
1768
|
+
/**
|
|
1769
|
+
* 映射字段
|
|
1770
|
+
*/
|
|
1771
|
+
mapProps: {
|
|
1772
|
+
type: [Object],
|
|
1773
|
+
default: () => ({
|
|
1774
|
+
currentPage: "currentPage",
|
|
1775
|
+
pageSize: "pageSize",
|
|
1776
|
+
rows: "rows",
|
|
1777
|
+
total: "total"
|
|
1778
|
+
})
|
|
1779
|
+
},
|
|
1780
|
+
/**
|
|
1781
|
+
* 是否显示分页
|
|
1782
|
+
*/
|
|
1783
|
+
hasPage: {
|
|
1784
|
+
type: Boolean,
|
|
1785
|
+
default: !0
|
|
1786
|
+
},
|
|
1787
|
+
/**
|
|
1788
|
+
* 是否显示查询
|
|
1789
|
+
*/
|
|
1790
|
+
hasSearch: {
|
|
1791
|
+
type: Boolean,
|
|
1792
|
+
default: !0
|
|
1755
1793
|
}
|
|
1756
1794
|
},
|
|
1757
1795
|
setup(e) {
|
|
1758
|
-
const s = e, l =
|
|
1796
|
+
const s = e, l = D(!1);
|
|
1759
1797
|
Ie("transferFoldStatus", l);
|
|
1760
|
-
const r = u(s.configOptions), i =
|
|
1761
|
-
const { type:
|
|
1762
|
-
return !!
|
|
1763
|
-
})), t =
|
|
1764
|
-
const { item:
|
|
1765
|
-
return !
|
|
1766
|
-
})), c = Fe(), d =
|
|
1767
|
-
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1798
|
+
const r = u(s.configOptions), i = Z(() => r.filter((x) => {
|
|
1799
|
+
const { type: V = "" } = x;
|
|
1800
|
+
return !!V;
|
|
1801
|
+
})), t = Z(() => r.filter((x) => {
|
|
1802
|
+
const { item: V = !1 } = x;
|
|
1803
|
+
return !V;
|
|
1804
|
+
})), c = Fe(), d = D(Object.keys(c)), v = D(null), N = (x) => {
|
|
1805
|
+
v.value.refreshList(x);
|
|
1806
|
+
}, k = Z(() => {
|
|
1807
|
+
const { expression: x, hasPage: V } = s;
|
|
1808
|
+
return V === !1 ? 25 : x;
|
|
1809
|
+
});
|
|
1810
|
+
return (x, V) => (n(), b("div", _a, [
|
|
1811
|
+
S("div", ma, [
|
|
1812
|
+
X(w(da, {
|
|
1772
1813
|
"config-options": u(i),
|
|
1773
1814
|
onOnSearch: N,
|
|
1774
1815
|
onOnClear: N
|
|
1775
|
-
}, null, 8, ["config-options"]),
|
|
1776
|
-
|
|
1816
|
+
}, null, 8, ["config-options"]), [
|
|
1817
|
+
[ee, e.hasSearch]
|
|
1818
|
+
]),
|
|
1819
|
+
w(Ne, {
|
|
1777
1820
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1778
|
-
ref:
|
|
1821
|
+
ref: v,
|
|
1822
|
+
"map-props": e.mapProps,
|
|
1779
1823
|
operationWidth: e.operationWidth,
|
|
1780
1824
|
"config-options": u(t),
|
|
1781
1825
|
data: e.tableData,
|
|
1782
1826
|
selection: e.selection,
|
|
1783
1827
|
operation: e.operation,
|
|
1784
|
-
expression:
|
|
1828
|
+
expression: u(k),
|
|
1785
1829
|
fetch: e.fetch,
|
|
1786
|
-
call: e.call
|
|
1830
|
+
call: e.call,
|
|
1831
|
+
"has-page": e.hasPage
|
|
1787
1832
|
}, Re({ _: 2 }, [
|
|
1788
|
-
|
|
1789
|
-
name:
|
|
1790
|
-
fn:
|
|
1791
|
-
q(
|
|
1833
|
+
Q(d.value, (R) => ({
|
|
1834
|
+
name: R,
|
|
1835
|
+
fn: T(({ row: p = {} }) => [
|
|
1836
|
+
q(x.$slots, R, { row: p })
|
|
1792
1837
|
])
|
|
1793
1838
|
}))
|
|
1794
|
-
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
1839
|
+
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
1795
1840
|
])
|
|
1796
1841
|
]));
|
|
1797
1842
|
}
|
|
@@ -1802,24 +1847,24 @@ const va = { class: "bsgoal-base-tree-fold" }, ha = {
|
|
|
1802
1847
|
props: ["modelValue"],
|
|
1803
1848
|
emits: ["update:modelValue"],
|
|
1804
1849
|
setup(e, { emit: s }) {
|
|
1805
|
-
let l =
|
|
1850
|
+
let l = D(!0);
|
|
1806
1851
|
const r = () => {
|
|
1807
1852
|
l.value = !l.value, s("update:modelValue", l.value);
|
|
1808
1853
|
};
|
|
1809
1854
|
return (i, t) => {
|
|
1810
1855
|
const c = f("el-icon");
|
|
1811
|
-
return n(),
|
|
1812
|
-
|
|
1813
|
-
class:
|
|
1856
|
+
return n(), b("div", va, [
|
|
1857
|
+
S("div", {
|
|
1858
|
+
class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
|
|
1814
1859
|
onClick: r
|
|
1815
1860
|
}, [
|
|
1816
|
-
|
|
1817
|
-
default:
|
|
1818
|
-
|
|
1819
|
-
[
|
|
1861
|
+
w(c, { color: "#fff" }, {
|
|
1862
|
+
default: T(() => [
|
|
1863
|
+
X(w(u(wt), null, null, 512), [
|
|
1864
|
+
[ee, u(l)]
|
|
1820
1865
|
]),
|
|
1821
|
-
|
|
1822
|
-
[
|
|
1866
|
+
X(w(u(It), null, null, 512), [
|
|
1867
|
+
[ee, !u(l)]
|
|
1823
1868
|
])
|
|
1824
1869
|
]),
|
|
1825
1870
|
_: 1
|
|
@@ -1885,53 +1930,53 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
|
|
|
1885
1930
|
},
|
|
1886
1931
|
emits: ["on-click"],
|
|
1887
1932
|
setup(e, { emit: s }) {
|
|
1888
|
-
const l = e, r =
|
|
1889
|
-
|
|
1890
|
-
t.value.filter(
|
|
1933
|
+
const l = e, r = be.height, i = D(""), t = D(null);
|
|
1934
|
+
de(i, (k) => {
|
|
1935
|
+
t.value.filter(k);
|
|
1891
1936
|
});
|
|
1892
|
-
const c = (
|
|
1893
|
-
s("on-click",
|
|
1894
|
-
}, N = async (
|
|
1895
|
-
if (
|
|
1896
|
-
const
|
|
1897
|
-
return
|
|
1937
|
+
const c = (k, x) => k ? x.label.includes(k) : !0, d = D(!0), v = (k, x, V, R) => {
|
|
1938
|
+
s("on-click", k, x, V, R);
|
|
1939
|
+
}, N = async (k, x, V) => {
|
|
1940
|
+
if (k.level === 0) {
|
|
1941
|
+
const R = await V.initNode(k);
|
|
1942
|
+
return x(R || []);
|
|
1898
1943
|
} else {
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1944
|
+
const R = await V.lazyLoad(k);
|
|
1945
|
+
x(R || []);
|
|
1901
1946
|
}
|
|
1902
1947
|
};
|
|
1903
|
-
return (
|
|
1904
|
-
const
|
|
1905
|
-
return n(),
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1948
|
+
return (k, x) => {
|
|
1949
|
+
const V = f("el-input"), R = f("el-tree");
|
|
1950
|
+
return n(), b("div", Ea, [
|
|
1951
|
+
X((n(), b("div", ba, [
|
|
1952
|
+
X(S("div", ya, [
|
|
1953
|
+
w(V, {
|
|
1909
1954
|
modelValue: i.value,
|
|
1910
|
-
"onUpdate:modelValue":
|
|
1955
|
+
"onUpdate:modelValue": x[0] || (x[0] = (p) => i.value = p),
|
|
1911
1956
|
class: "base_tree_main_input",
|
|
1912
1957
|
placeholder: "输入关键字过滤"
|
|
1913
1958
|
}, null, 8, ["modelValue"]),
|
|
1914
|
-
|
|
1959
|
+
w(R, {
|
|
1915
1960
|
ref_key: "EL_TREE_REF",
|
|
1916
1961
|
ref: t,
|
|
1917
1962
|
lazy: "",
|
|
1918
1963
|
"highlight-current": "",
|
|
1919
1964
|
"empty-text": "暂无数据",
|
|
1920
|
-
load: (
|
|
1965
|
+
load: (p, y) => N(p, y, l),
|
|
1921
1966
|
"expand-on-click-node": !1,
|
|
1922
1967
|
props: e.treeProps,
|
|
1923
1968
|
"filter-node-method": c,
|
|
1924
|
-
onNodeClick:
|
|
1969
|
+
onNodeClick: v
|
|
1925
1970
|
}, null, 8, ["load", "props"])
|
|
1926
1971
|
], 512), [
|
|
1927
|
-
[
|
|
1972
|
+
[ee, d.value]
|
|
1928
1973
|
]),
|
|
1929
|
-
|
|
1930
|
-
[
|
|
1974
|
+
X(w(Te, { vertical: "" }, null, 512), [
|
|
1975
|
+
[ee, d.value]
|
|
1931
1976
|
]),
|
|
1932
|
-
|
|
1977
|
+
w(pa, {
|
|
1933
1978
|
modelValue: d.value,
|
|
1934
|
-
"onUpdate:modelValue":
|
|
1979
|
+
"onUpdate:modelValue": x[1] || (x[1] = (p) => d.value = p)
|
|
1935
1980
|
}, null, 8, ["modelValue"])
|
|
1936
1981
|
])), [
|
|
1937
1982
|
[u(r), e.gasket]
|
|
@@ -2004,24 +2049,24 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
|
|
|
2004
2049
|
},
|
|
2005
2050
|
emits: ["update:modelValue", "on-confirm"],
|
|
2006
2051
|
setup(e, { emit: s }) {
|
|
2007
|
-
const l = e, r =
|
|
2052
|
+
const l = e, r = D(l.modelValue.value), i = () => {
|
|
2008
2053
|
r.value = !1;
|
|
2009
2054
|
}, t = () => {
|
|
2010
2055
|
r.value = !1, s("on-confirm");
|
|
2011
2056
|
};
|
|
2012
|
-
|
|
2057
|
+
de(
|
|
2013
2058
|
() => l.modelValue,
|
|
2014
2059
|
(d) => {
|
|
2015
2060
|
r.value = d;
|
|
2016
2061
|
}
|
|
2017
|
-
),
|
|
2062
|
+
), de(r, (d) => {
|
|
2018
2063
|
s("update:modelValue", d);
|
|
2019
2064
|
});
|
|
2020
|
-
const c =
|
|
2021
|
-
const { width: d, size:
|
|
2065
|
+
const c = Z(() => {
|
|
2066
|
+
const { width: d, size: v } = l;
|
|
2022
2067
|
if (d)
|
|
2023
2068
|
return d;
|
|
2024
|
-
switch (
|
|
2069
|
+
switch (v) {
|
|
2025
2070
|
case "small":
|
|
2026
2071
|
return "480px";
|
|
2027
2072
|
case "medium":
|
|
@@ -2036,44 +2081,44 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
|
|
|
2036
2081
|
return d;
|
|
2037
2082
|
}
|
|
2038
2083
|
});
|
|
2039
|
-
return (d,
|
|
2040
|
-
const N = f("el-button"),
|
|
2041
|
-
return n(),
|
|
2042
|
-
|
|
2043
|
-
|
|
2084
|
+
return (d, v) => {
|
|
2085
|
+
const N = f("el-button"), k = f("el-dialog");
|
|
2086
|
+
return n(), b("div", xa, [
|
|
2087
|
+
S("div", Ca, [
|
|
2088
|
+
w(k, {
|
|
2044
2089
|
modelValue: r.value,
|
|
2045
|
-
"onUpdate:modelValue":
|
|
2090
|
+
"onUpdate:modelValue": v[0] || (v[0] = (x) => r.value = x),
|
|
2046
2091
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2047
|
-
class:
|
|
2092
|
+
class: _e({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2048
2093
|
width: u(c)
|
|
2049
2094
|
}, {
|
|
2050
|
-
header:
|
|
2051
|
-
|
|
2095
|
+
header: T(() => [
|
|
2096
|
+
S("div", Va, Y(e.title), 1)
|
|
2052
2097
|
]),
|
|
2053
|
-
footer:
|
|
2098
|
+
footer: T(() => [
|
|
2054
2099
|
e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
default:
|
|
2058
|
-
W(
|
|
2100
|
+
S("span", Ma, [
|
|
2101
|
+
w(N, { onClick: i }, {
|
|
2102
|
+
default: T(() => [
|
|
2103
|
+
W(Y(e.cancelTxt), 1)
|
|
2059
2104
|
]),
|
|
2060
2105
|
_: 1
|
|
2061
2106
|
}),
|
|
2062
|
-
|
|
2107
|
+
w(N, {
|
|
2063
2108
|
type: "primary",
|
|
2064
2109
|
onClick: t
|
|
2065
2110
|
}, {
|
|
2066
|
-
default:
|
|
2067
|
-
W(
|
|
2111
|
+
default: T(() => [
|
|
2112
|
+
W(Y(e.confirmTxt), 1)
|
|
2068
2113
|
]),
|
|
2069
2114
|
_: 1
|
|
2070
2115
|
})
|
|
2071
2116
|
])
|
|
2072
|
-
]) :
|
|
2117
|
+
]) : $("", !0)
|
|
2073
2118
|
]),
|
|
2074
|
-
default:
|
|
2075
|
-
|
|
2076
|
-
class:
|
|
2119
|
+
default: T(() => [
|
|
2120
|
+
S("div", {
|
|
2121
|
+
class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2077
2122
|
}, [
|
|
2078
2123
|
q(d.$slots, "default")
|
|
2079
2124
|
], 2)
|
|
@@ -2085,9 +2130,9 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
|
|
|
2085
2130
|
};
|
|
2086
2131
|
}
|
|
2087
2132
|
});
|
|
2088
|
-
const
|
|
2133
|
+
const wa = { class: "bsgoal-base-tabs" }, Ba = {
|
|
2089
2134
|
name: "BsgoalBaseTabs"
|
|
2090
|
-
}, Da = /* @__PURE__ */ Object.assign(
|
|
2135
|
+
}, Da = /* @__PURE__ */ Object.assign(Ba, {
|
|
2091
2136
|
props: {
|
|
2092
2137
|
/**
|
|
2093
2138
|
* 配置项
|
|
@@ -2127,23 +2172,23 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
|
|
|
2127
2172
|
};
|
|
2128
2173
|
return (r, i) => {
|
|
2129
2174
|
const t = f("el-tab-pane"), c = f("el-tabs");
|
|
2130
|
-
return n(),
|
|
2131
|
-
|
|
2175
|
+
return n(), b("div", wa, [
|
|
2176
|
+
w(c, {
|
|
2132
2177
|
stretch: "",
|
|
2133
2178
|
class: "bsgoal_base_tabs",
|
|
2134
2179
|
type: e.type,
|
|
2135
2180
|
"model-value": e.modelValue,
|
|
2136
2181
|
onTabChange: l
|
|
2137
2182
|
}, {
|
|
2138
|
-
default:
|
|
2139
|
-
(n(!0),
|
|
2183
|
+
default: T(() => [
|
|
2184
|
+
(n(!0), b(j, null, Q(e.configOptions, ({ label: d, value: v }, N) => (n(), E(t, {
|
|
2140
2185
|
key: N,
|
|
2141
2186
|
label: d,
|
|
2142
|
-
name:
|
|
2187
|
+
name: v
|
|
2143
2188
|
}, {
|
|
2144
|
-
default:
|
|
2145
|
-
q(r.$slots,
|
|
2146
|
-
W(
|
|
2189
|
+
default: T(() => [
|
|
2190
|
+
q(r.$slots, v, {}, () => [
|
|
2191
|
+
W(Y(d), 1)
|
|
2147
2192
|
])
|
|
2148
2193
|
]),
|
|
2149
2194
|
_: 2
|
|
@@ -2155,9 +2200,9 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
|
|
|
2155
2200
|
};
|
|
2156
2201
|
}
|
|
2157
2202
|
});
|
|
2158
|
-
const ka = { class: "bsgoal-base-link" },
|
|
2203
|
+
const ka = { class: "bsgoal-base-link" }, Sa = {
|
|
2159
2204
|
name: "BsgoalBaseLink"
|
|
2160
|
-
},
|
|
2205
|
+
}, Oa = /* @__PURE__ */ Object.assign(Sa, {
|
|
2161
2206
|
props: {
|
|
2162
2207
|
/**
|
|
2163
2208
|
* 内容
|
|
@@ -2188,17 +2233,17 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
|
|
|
2188
2233
|
};
|
|
2189
2234
|
return (r, i) => {
|
|
2190
2235
|
const t = f("el-link");
|
|
2191
|
-
return n(),
|
|
2192
|
-
|
|
2236
|
+
return n(), b("div", ka, [
|
|
2237
|
+
w(t, {
|
|
2193
2238
|
class: "bsgoal_base_link",
|
|
2194
2239
|
type: "primary",
|
|
2195
2240
|
underline: e.underline,
|
|
2196
2241
|
style: Ue(e.styler),
|
|
2197
2242
|
onClick: l
|
|
2198
2243
|
}, {
|
|
2199
|
-
default:
|
|
2244
|
+
default: T(() => [
|
|
2200
2245
|
q(r.$slots, "default", {}, () => [
|
|
2201
|
-
W(
|
|
2246
|
+
W(Y(e.content), 1)
|
|
2202
2247
|
], !0)
|
|
2203
2248
|
]),
|
|
2204
2249
|
_: 3
|
|
@@ -2206,12 +2251,12 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
|
|
|
2206
2251
|
]);
|
|
2207
2252
|
};
|
|
2208
2253
|
}
|
|
2209
|
-
}), Ia = /* @__PURE__ */ $e(
|
|
2254
|
+
}), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), Pa = a, La = ye, za = {
|
|
2210
2255
|
install(e, s = {}) {
|
|
2211
2256
|
const { exclude: l = [] } = s, r = {
|
|
2212
2257
|
BsgoalBaseForm: We,
|
|
2213
2258
|
BsgoalBaseTable: Ne,
|
|
2214
|
-
BsgoalBaseLine:
|
|
2259
|
+
BsgoalBaseLine: Te,
|
|
2215
2260
|
BsgoalBaseSearchTable: fa,
|
|
2216
2261
|
BsgoalBaseTree: Aa,
|
|
2217
2262
|
BsgoalBaseDialog: Na,
|
|
@@ -2222,11 +2267,11 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
|
|
|
2222
2267
|
l.includes(i) || e.component(i, t);
|
|
2223
2268
|
},
|
|
2224
2269
|
enumType: a,
|
|
2225
|
-
useFetch:
|
|
2270
|
+
useFetch: ye
|
|
2226
2271
|
};
|
|
2227
2272
|
export {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2273
|
+
Pa as EnumType,
|
|
2274
|
+
za as default,
|
|
2275
|
+
La as useFetchApi
|
|
2231
2276
|
};
|
|
2232
2277
|
//# sourceMappingURL=index.mjs.map
|