@bsgoal/common 1.6.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +734 -725
- 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-button/demo.vue +50 -0
- package/src/components/bsgoal-base-button/index.vue +77 -0
- package/src/components/bsgoal-base-search/index.vue +8 -3
- package/src/components/bsgoal-base-search-table/demo.vue +8 -2
- package/src/components/bsgoal-base-search-table/index.vue +20 -2
- package/src/router/index.js +7 -2
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var xe = (e, s, l) => s in e ?
|
|
1
|
+
var Be = Object.defineProperty;
|
|
2
|
+
var Te = Object.getOwnPropertySymbols;
|
|
3
|
+
var we = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var xe = (e, s, l) => s in e ? Be(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
|
|
6
|
+
we.call(s, l) && xe(e, l, s[l]);
|
|
7
|
+
if (Te)
|
|
8
|
+
for (var l of Te(s))
|
|
9
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 K, resolveComponent as g, openBlock as o, createElementBlock as y, createVNode as N, unref as u, withCtx as x, renderSlot as ae, createTextVNode as H, toDisplayString as G, ref as D, watchEffect as Ee, createElementVNode as k, withDirectives as W, createBlock as b, Fragment as z, renderList as Z, createCommentVNode as $, nextTick as Ce, inject as Ve, watch as _e, resolveDirective as Se, normalizeClass as me, vShow as le, isProxy as ke, toRaw as Oe, provide as Ie, useSlots as Re, createSlots as Fe, 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",
|
|
@@ -35,27 +35,27 @@ const a = {
|
|
|
35
35
|
};
|
|
36
36
|
let he = null;
|
|
37
37
|
const pe = (e) => {
|
|
38
|
-
const s = [], l = [],
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
38
|
+
const s = [], l = [], i = (c = []) => {
|
|
39
|
+
const t = c.map((_) => _.width), m = Math.max(...t);
|
|
40
|
+
c.forEach((_) => {
|
|
41
|
+
const { labelEl: V } = _;
|
|
42
|
+
V.style.width = `${m}px`;
|
|
43
43
|
});
|
|
44
|
-
},
|
|
44
|
+
}, r = () => {
|
|
45
45
|
if (e) {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const { x:
|
|
52
|
-
|
|
46
|
+
const c = e.querySelectorAll(".el-form-item__label");
|
|
47
|
+
if (c && c.length) {
|
|
48
|
+
let t = 0;
|
|
49
|
+
c.forEach((m, _) => {
|
|
50
|
+
m.style.width = "initial", m.style.whiteSpace = "nowrap";
|
|
51
|
+
const { x: V = 0, width: B = 0 } = m.getBoundingClientRect(), S = { x: V, width: B, labelEl: m };
|
|
52
|
+
_ === 0 && (t = V), V === t ? s.push(S) : l.push(S);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
he && clearTimeout(he), he = setTimeout(() => {
|
|
58
|
-
|
|
58
|
+
r(), i(s), i(l);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, be = {
|
|
61
61
|
/**
|
|
@@ -79,12 +79,12 @@ const pe = (e) => {
|
|
|
79
79
|
*/
|
|
80
80
|
height: (e, { value: s = 65, arg: l = "" }) => {
|
|
81
81
|
if (e) {
|
|
82
|
-
const { y:
|
|
83
|
-
e.style.height = `calc(100vh - ${
|
|
82
|
+
const { y: i = 0 } = e.getBoundingClientRect();
|
|
83
|
+
e.style.height = `calc(100vh - ${i + s}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const Pe = { class: "bsgoal-base-tooltip" }, ze = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
89
|
}, Me = /* @__PURE__ */ Object.assign(ze, {
|
|
90
90
|
props: {
|
|
@@ -126,29 +126,29 @@ const Le = { class: "bsgoal-base-tooltip" }, ze = {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
setup(e) {
|
|
129
|
-
const s = e, l =
|
|
130
|
-
const { content:
|
|
131
|
-
let
|
|
132
|
-
const
|
|
133
|
-
return
|
|
134
|
-
}),
|
|
135
|
-
const { content:
|
|
136
|
-
return
|
|
129
|
+
const s = e, l = K(() => {
|
|
130
|
+
const { content: r = "", limit: c = 0, none: t = "" } = s;
|
|
131
|
+
let m = r;
|
|
132
|
+
const _ = r.length;
|
|
133
|
+
return c && _ > c && (m = `${r.substring(0, c)}...`), m || t;
|
|
134
|
+
}), i = K(() => {
|
|
135
|
+
const { content: r = "", limit: c = 0 } = s;
|
|
136
|
+
return r.length < c || !c;
|
|
137
137
|
});
|
|
138
|
-
return (
|
|
139
|
-
const
|
|
140
|
-
return
|
|
141
|
-
|
|
138
|
+
return (r, c) => {
|
|
139
|
+
const t = g("el-tooltip");
|
|
140
|
+
return o(), y("div", Pe, [
|
|
141
|
+
N(t, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
145
145
|
placement: "top-start",
|
|
146
146
|
content: e.content,
|
|
147
|
-
disabled: u(
|
|
147
|
+
disabled: u(i)
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
default: x(() => [
|
|
150
|
+
ae(r.$slots, "default", {}, () => [
|
|
151
|
+
H(G(u(l)), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
@@ -222,27 +222,27 @@ const je = { 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
|
|
225
|
+
const i = e, r = D(null), c = be.align, t = D({});
|
|
226
226
|
Ee(() => {
|
|
227
|
-
const { configOptions:
|
|
228
|
-
|
|
229
|
-
const { value:
|
|
230
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(I),
|
|
227
|
+
const { configOptions: h, values: E } = i, A = u(h), C = u(E);
|
|
228
|
+
A.forEach((M) => {
|
|
229
|
+
const { value: p = "", prop: O = "", type: I = "" } = M;
|
|
230
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = C[O] || p;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
const
|
|
234
|
-
const { configOptions:
|
|
235
|
-
return u(
|
|
236
|
-
let { rules: M = !1, label:
|
|
237
|
-
const O = { required: !0, message: `${
|
|
238
|
-
return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]),
|
|
233
|
+
const m = K(() => {
|
|
234
|
+
const { configOptions: h } = i;
|
|
235
|
+
return u(h).map((C) => {
|
|
236
|
+
let { rules: M = !1, label: p = "" } = C;
|
|
237
|
+
const O = { required: !0, message: `${p}不能为空`, trigger: "blur" };
|
|
238
|
+
return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]), C.rules = M, C;
|
|
239
239
|
});
|
|
240
|
-
}),
|
|
241
|
-
if (!
|
|
242
|
-
switch (
|
|
240
|
+
}), _ = (h = "", E = "", A = "") => {
|
|
241
|
+
if (!A)
|
|
242
|
+
switch (h) {
|
|
243
243
|
case a.INPUT:
|
|
244
244
|
case a.INPUT_TEXT_AREA:
|
|
245
|
-
return `请输入${
|
|
245
|
+
return `请输入${E}`;
|
|
246
246
|
case a.SELECT:
|
|
247
247
|
case a.DATE:
|
|
248
248
|
case a.WEEK:
|
|
@@ -250,7 +250,7 @@ const je = { 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 `请选择${E}`;
|
|
254
254
|
case a.DATE_RANGE:
|
|
255
255
|
case a.DATE_TIME_RANGE:
|
|
256
256
|
return ["开始日期", "结束日期"];
|
|
@@ -259,10 +259,10 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
259
259
|
case a.MONTH_RANGE:
|
|
260
260
|
return ["开始月份", "结束月份"];
|
|
261
261
|
}
|
|
262
|
-
return
|
|
263
|
-
},
|
|
264
|
-
if (!
|
|
265
|
-
switch (
|
|
262
|
+
return A;
|
|
263
|
+
}, V = (h = "", E = "") => {
|
|
264
|
+
if (!E)
|
|
265
|
+
switch (h) {
|
|
266
266
|
case a.WEEK:
|
|
267
267
|
return "ww";
|
|
268
268
|
case a.DATE:
|
|
@@ -281,236 +281,236 @@ const je = { 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: M = "", range:
|
|
289
|
-
if (M.endsWith("range") &&
|
|
290
|
-
const { 0: I = "", 1:
|
|
291
|
-
|
|
284
|
+
return E;
|
|
285
|
+
}, B = () => {
|
|
286
|
+
const h = u(t), { configOptions: E } = i, A = u(E);
|
|
287
|
+
for (const C of A) {
|
|
288
|
+
const { type: M = "", range: p = [], prop: O = "" } = C;
|
|
289
|
+
if (M.endsWith("range") && p && p.length === 2) {
|
|
290
|
+
const { 0: I = "", 1: L = "" } = h[O], { 0: F = "", 1: j = "" } = p;
|
|
291
|
+
h[F] = I, h[j] = L;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
return l("on-form",
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
const
|
|
299
|
-
type:
|
|
300
|
-
prop:
|
|
301
|
-
value:
|
|
294
|
+
return l("on-form", h), h;
|
|
295
|
+
}, S = () => {
|
|
296
|
+
r.value.resetFields(), l("on-clear", t.value);
|
|
297
|
+
}, w = (h, E) => {
|
|
298
|
+
const A = {
|
|
299
|
+
type: h,
|
|
300
|
+
prop: E,
|
|
301
|
+
value: t.value[E] || ""
|
|
302
302
|
};
|
|
303
|
-
l("on-change",
|
|
303
|
+
l("on-change", A);
|
|
304
304
|
};
|
|
305
305
|
return s({
|
|
306
|
-
triggerOperationClear:
|
|
307
|
-
triggerOperationForm:
|
|
308
|
-
validateForm: (
|
|
306
|
+
triggerOperationClear: S,
|
|
307
|
+
triggerOperationForm: B,
|
|
308
|
+
validateForm: (h = () => {
|
|
309
309
|
}) => {
|
|
310
|
-
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
313
|
-
|
|
310
|
+
r.value.validate((E = !1, A = {}) => {
|
|
311
|
+
if (E) {
|
|
312
|
+
const C = B();
|
|
313
|
+
h(C);
|
|
314
314
|
} else {
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
[
|
|
315
|
+
h(!1);
|
|
316
|
+
const C = Object.keys(A)[0], {
|
|
317
|
+
[C]: {
|
|
318
318
|
0: { message: M = "" }
|
|
319
319
|
}
|
|
320
|
-
} =
|
|
321
|
-
|
|
320
|
+
} = A;
|
|
321
|
+
Le.error(M);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
}), (
|
|
326
|
-
const
|
|
327
|
-
return
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
}), (h, E) => {
|
|
326
|
+
const A = g("el-input"), C = g("el-input-number"), M = g("el-radio"), p = g("el-radio-group"), O = g("el-option"), I = g("el-select"), L = g("el-slider"), F = g("el-switch"), j = g("el-date-picker"), R = g("el-time-picker"), X = g("el-checkbox"), J = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
|
|
327
|
+
return o(), y("div", je, [
|
|
328
|
+
k("div", Ye, [
|
|
329
|
+
W((o(), b(ie, {
|
|
330
330
|
ref_key: "EL_FORM_REF",
|
|
331
|
-
ref:
|
|
331
|
+
ref: r,
|
|
332
332
|
"label-suffix": ":",
|
|
333
|
-
model:
|
|
333
|
+
model: t.value
|
|
334
334
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
default:
|
|
338
|
-
(
|
|
339
|
-
label:
|
|
340
|
-
prop:
|
|
341
|
-
type:
|
|
342
|
-
placeholder:
|
|
343
|
-
readonly:
|
|
344
|
-
clearable:
|
|
345
|
-
rows:
|
|
346
|
-
min:
|
|
347
|
-
max:
|
|
348
|
-
range:
|
|
349
|
-
format:
|
|
350
|
-
rules:
|
|
351
|
-
limit:
|
|
352
|
-
} = {},
|
|
353
|
-
key:
|
|
335
|
+
default: x(() => [
|
|
336
|
+
N(re, null, {
|
|
337
|
+
default: x(() => [
|
|
338
|
+
(o(!0), y(z, null, Z(u(m), ({
|
|
339
|
+
label: P = "",
|
|
340
|
+
prop: T = "",
|
|
341
|
+
type: d = "text",
|
|
342
|
+
placeholder: f = "",
|
|
343
|
+
readonly: v = e.readonlys,
|
|
344
|
+
clearable: Y = !0,
|
|
345
|
+
rows: fe = 2,
|
|
346
|
+
min: de = 1,
|
|
347
|
+
max: ge = 10,
|
|
348
|
+
range: q = [],
|
|
349
|
+
format: ee = "",
|
|
350
|
+
rules: te = [],
|
|
351
|
+
limit: ue = e.limits
|
|
352
|
+
} = {}, se) => (o(), b(oe, {
|
|
353
|
+
key: se,
|
|
354
354
|
xs: 24,
|
|
355
355
|
sm: 24,
|
|
356
356
|
md: e.medium
|
|
357
357
|
}, {
|
|
358
|
-
default:
|
|
359
|
-
|
|
360
|
-
label:
|
|
361
|
-
prop:
|
|
362
|
-
rules:
|
|
358
|
+
default: x(() => [
|
|
359
|
+
N(ne, {
|
|
360
|
+
label: P,
|
|
361
|
+
prop: T,
|
|
362
|
+
rules: te
|
|
363
363
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
content:
|
|
368
|
-
limit:
|
|
364
|
+
default: x(() => [
|
|
365
|
+
v ? (o(), y("div", Ge, [
|
|
366
|
+
N(Me, {
|
|
367
|
+
content: t.value[T],
|
|
368
|
+
limit: ue,
|
|
369
369
|
none: e.none
|
|
370
370
|
}, null, 8, ["content", "limit", "none"])
|
|
371
|
-
])) : (
|
|
372
|
-
|
|
371
|
+
])) : (o(), y(z, { key: 0 }, [
|
|
372
|
+
d === u(a).INPUT ? (o(), b(A, {
|
|
373
373
|
key: 0,
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue": (
|
|
376
|
-
placeholder:
|
|
377
|
-
clearable:
|
|
378
|
-
onChange: (
|
|
374
|
+
modelValue: t.value[T],
|
|
375
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
376
|
+
placeholder: _(d, P, f),
|
|
377
|
+
clearable: Y,
|
|
378
|
+
onChange: (n) => w(d, T)
|
|
379
379
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
380
|
-
|
|
380
|
+
d === u(a).INPUT_TEXT_AREA ? (o(), b(A, {
|
|
381
381
|
key: 1,
|
|
382
|
-
modelValue:
|
|
383
|
-
"onUpdate:modelValue": (
|
|
382
|
+
modelValue: t.value[T],
|
|
383
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
384
384
|
type: "textarea",
|
|
385
|
-
rows:
|
|
386
|
-
clearable:
|
|
387
|
-
placeholder:
|
|
388
|
-
onChange: (
|
|
385
|
+
rows: fe,
|
|
386
|
+
clearable: Y,
|
|
387
|
+
placeholder: _(d, P, f),
|
|
388
|
+
onChange: (n) => w(d, T)
|
|
389
389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
390
|
-
|
|
390
|
+
d === u(a).INPUT_NUMBER ? (o(), b(C, {
|
|
391
391
|
key: 2,
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue":
|
|
394
|
-
min:
|
|
395
|
-
max:
|
|
396
|
-
onChange:
|
|
392
|
+
modelValue: h.num,
|
|
393
|
+
"onUpdate:modelValue": E[0] || (E[0] = (n) => h.num = n),
|
|
394
|
+
min: de,
|
|
395
|
+
max: ge,
|
|
396
|
+
onChange: w
|
|
397
397
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
398
|
-
|
|
398
|
+
d === u(a).RADIO ? (o(), b(p, {
|
|
399
399
|
key: 3,
|
|
400
|
-
modelValue:
|
|
401
|
-
"onUpdate:modelValue": (
|
|
402
|
-
onChange: (
|
|
400
|
+
modelValue: t.value[T],
|
|
401
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
402
|
+
onChange: (n) => w(d, T)
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
(
|
|
406
|
-
key:
|
|
407
|
-
label:
|
|
404
|
+
default: x(() => [
|
|
405
|
+
(o(!0), y(z, null, Z(q, (n, Q) => (o(), b(M, {
|
|
406
|
+
key: Q,
|
|
407
|
+
label: n.value
|
|
408
408
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
409
|
+
default: x(() => [
|
|
410
|
+
H(G(n.label), 1)
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, 1032, ["label"]))), 128))
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
416
416
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
417
|
-
|
|
417
|
+
d === u(a).SELECT ? (o(), b(I, {
|
|
418
418
|
key: 4,
|
|
419
|
-
modelValue:
|
|
420
|
-
"onUpdate:modelValue": (
|
|
421
|
-
placeholder:
|
|
422
|
-
onChange: (
|
|
419
|
+
modelValue: t.value[T],
|
|
420
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
421
|
+
placeholder: _(d, P, f),
|
|
422
|
+
onChange: (n) => w(d, T)
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
(
|
|
426
|
-
key:
|
|
427
|
-
label:
|
|
428
|
-
value:
|
|
424
|
+
default: x(() => [
|
|
425
|
+
(o(!0), y(z, null, Z(q, (n, Q) => (o(), b(O, {
|
|
426
|
+
key: Q,
|
|
427
|
+
label: n.label,
|
|
428
|
+
value: n.value
|
|
429
429
|
}, null, 8, ["label", "value"]))), 128))
|
|
430
430
|
]),
|
|
431
431
|
_: 2
|
|
432
432
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
433
|
-
|
|
433
|
+
d === u(a).SLIDER ? (o(), b(L, {
|
|
434
434
|
key: 5,
|
|
435
|
-
modelValue:
|
|
436
|
-
"onUpdate:modelValue": (
|
|
437
|
-
min:
|
|
438
|
-
max:
|
|
439
|
-
onChange: (
|
|
435
|
+
modelValue: t.value[T],
|
|
436
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
437
|
+
min: de,
|
|
438
|
+
max: ge,
|
|
439
|
+
onChange: (n) => w(d, T)
|
|
440
440
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
441
|
-
|
|
441
|
+
d === u(a).SWITCH ? (o(), b(F, {
|
|
442
442
|
key: 6,
|
|
443
|
-
modelValue:
|
|
444
|
-
"onUpdate:modelValue": (
|
|
445
|
-
"active-value":
|
|
446
|
-
"inactive-value":
|
|
447
|
-
onChange: (
|
|
443
|
+
modelValue: t.value[T],
|
|
444
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
445
|
+
"active-value": q[0] || !0,
|
|
446
|
+
"inactive-value": q[1] || !1,
|
|
447
|
+
onChange: (n) => w(d, T)
|
|
448
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
|
-
|
|
451
|
-
) ? (
|
|
450
|
+
d
|
|
451
|
+
) ? (o(), b(j, {
|
|
452
452
|
key: 7,
|
|
453
|
-
modelValue:
|
|
454
|
-
"onUpdate:modelValue": (
|
|
455
|
-
format:
|
|
456
|
-
"value-format":
|
|
457
|
-
type:
|
|
458
|
-
placeholder:
|
|
459
|
-
onChange: (
|
|
453
|
+
modelValue: t.value[T],
|
|
454
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
455
|
+
format: V(d, ee),
|
|
456
|
+
"value-format": V(d, ee),
|
|
457
|
+
type: d,
|
|
458
|
+
placeholder: _(d, P, f),
|
|
459
|
+
onChange: (n) => w(d, T)
|
|
460
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(
|
|
465
|
+
].includes(d) ? (o(), b(j, {
|
|
466
466
|
key: 8,
|
|
467
|
-
modelValue:
|
|
468
|
-
"onUpdate:modelValue": (
|
|
469
|
-
type:
|
|
470
|
-
"value-format":
|
|
471
|
-
"start-placeholder":
|
|
472
|
-
"end-placeholder":
|
|
473
|
-
onChange: (
|
|
467
|
+
modelValue: t.value[T],
|
|
468
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
469
|
+
type: d,
|
|
470
|
+
"value-format": V(d, ee),
|
|
471
|
+
"start-placeholder": _(d, P, f)[0],
|
|
472
|
+
"end-placeholder": _(d, P, f)[1],
|
|
473
|
+
onChange: (n) => w(d, T)
|
|
474
474
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
475
|
-
[u(a).TIME].includes(
|
|
475
|
+
[u(a).TIME].includes(d) ? (o(), b(R, {
|
|
476
476
|
key: 9,
|
|
477
|
-
modelValue:
|
|
478
|
-
"onUpdate:modelValue": (
|
|
477
|
+
modelValue: t.value[T],
|
|
478
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
479
479
|
"arrow-control": "",
|
|
480
|
-
"value-format":
|
|
481
|
-
placeholder:
|
|
482
|
-
onChange: (
|
|
480
|
+
"value-format": V(d, ee),
|
|
481
|
+
placeholder: _(d, P, f),
|
|
482
|
+
onChange: (n) => w(d, T)
|
|
483
483
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
484
|
-
[u(a).TIME_RANGE].includes(
|
|
484
|
+
[u(a).TIME_RANGE].includes(d) ? (o(), b(R, {
|
|
485
485
|
key: 10,
|
|
486
|
-
modelValue:
|
|
487
|
-
"onUpdate:modelValue": (
|
|
486
|
+
modelValue: t.value[T],
|
|
487
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
488
488
|
"is-range": "",
|
|
489
|
-
"value-format":
|
|
490
|
-
"start-placeholder":
|
|
491
|
-
"end-placeholder":
|
|
492
|
-
onChange: (
|
|
489
|
+
"value-format": V(d, ee),
|
|
490
|
+
"start-placeholder": _(d, P, f)[0],
|
|
491
|
+
"end-placeholder": _(d, P, f)[1],
|
|
492
|
+
onChange: (n) => w(d, T)
|
|
493
493
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
494
|
-
[u(a).CHECKBOX].includes(
|
|
494
|
+
[u(a).CHECKBOX].includes(d) ? (o(), b(J, {
|
|
495
495
|
key: 11,
|
|
496
|
-
modelValue:
|
|
497
|
-
"onUpdate:modelValue": (
|
|
498
|
-
onChange: (
|
|
496
|
+
modelValue: t.value[T],
|
|
497
|
+
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
498
|
+
onChange: (n) => w(d, T)
|
|
499
499
|
}, {
|
|
500
|
-
default:
|
|
501
|
-
(
|
|
502
|
-
key:
|
|
503
|
-
label:
|
|
500
|
+
default: x(() => [
|
|
501
|
+
(o(!0), y(z, null, Z(q, (n, Q) => (o(), b(X, {
|
|
502
|
+
key: Q,
|
|
503
|
+
label: n.value
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
|
|
505
|
+
default: x(() => [
|
|
506
|
+
H(G(n.label), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 2
|
|
509
509
|
}, 1032, ["label"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
512
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
513
|
-
[].includes(
|
|
513
|
+
[].includes(d) ? (o(), y(z, { key: 12 }, [], 64)) : $("", !0)
|
|
514
514
|
], 64))
|
|
515
515
|
]),
|
|
516
516
|
_: 2
|
|
@@ -524,7 +524,7 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
|
|
|
524
524
|
]),
|
|
525
525
|
_: 1
|
|
526
526
|
}, 8, ["model"])), [
|
|
527
|
-
[u(
|
|
527
|
+
[u(c)]
|
|
528
528
|
])
|
|
529
529
|
])
|
|
530
530
|
]);
|
|
@@ -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) => (
|
|
565
|
-
|
|
566
|
-
e.tooltip ? (
|
|
564
|
+
return (s, l) => (o(), y("div", Xe, [
|
|
565
|
+
k("div", Qe, [
|
|
566
|
+
e.tooltip ? (o(), b(Me, {
|
|
567
567
|
key: 0,
|
|
568
568
|
content: e.data,
|
|
569
569
|
limit: e.limit
|
|
570
|
-
}, null, 8, ["content", "limit"])) : (
|
|
570
|
+
}, null, 8, ["content", "limit"])) : (o(), y("div", Ze, G(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__ */ k("span", null, "总数", -1), lt = {
|
|
704
704
|
name: "BsgoalBaseTablePagination"
|
|
705
705
|
}, nt = /* @__PURE__ */ Object.assign(lt, {
|
|
706
706
|
props: {
|
|
@@ -735,29 +735,29 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
|
|
|
735
735
|
},
|
|
736
736
|
emits: ["on-size-change", "on-current-change"],
|
|
737
737
|
setup(e, { emit: s }) {
|
|
738
|
-
const l = (
|
|
739
|
-
s("on-size-change",
|
|
740
|
-
},
|
|
741
|
-
s("on-current-change",
|
|
742
|
-
},
|
|
743
|
-
return (
|
|
744
|
-
const
|
|
745
|
-
return
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
default:
|
|
749
|
-
|
|
738
|
+
const l = (c = 0) => {
|
|
739
|
+
s("on-size-change", c);
|
|
740
|
+
}, i = (c = 1) => {
|
|
741
|
+
s("on-current-change", c);
|
|
742
|
+
}, r = D(1);
|
|
743
|
+
return (c, t) => {
|
|
744
|
+
const m = g("el-pagination"), _ = g("el-config-provider");
|
|
745
|
+
return o(), y("div", et, [
|
|
746
|
+
k("div", tt, [
|
|
747
|
+
N(_, { locale: u(qe) }, {
|
|
748
|
+
default: x(() => [
|
|
749
|
+
N(m, {
|
|
750
750
|
background: "",
|
|
751
751
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
752
|
-
"current-page":
|
|
753
|
-
"onUpdate:currentPage":
|
|
752
|
+
"current-page": r.value,
|
|
753
|
+
"onUpdate:currentPage": t[0] || (t[0] = (V) => r.value = V),
|
|
754
754
|
"page-sizes": e.pageSizes,
|
|
755
755
|
"page-size": e.pageSize,
|
|
756
756
|
total: e.total,
|
|
757
757
|
onSizeChange: l,
|
|
758
|
-
onCurrentChange:
|
|
758
|
+
onCurrentChange: i
|
|
759
759
|
}, {
|
|
760
|
-
next:
|
|
760
|
+
next: x(() => [
|
|
761
761
|
at
|
|
762
762
|
]),
|
|
763
763
|
_: 1
|
|
@@ -772,51 +772,51 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
|
|
|
772
772
|
});
|
|
773
773
|
const $e = (e, s) => {
|
|
774
774
|
const l = e.__vccOpts || e;
|
|
775
|
-
for (const [
|
|
776
|
-
l[
|
|
775
|
+
for (const [i, r] of s)
|
|
776
|
+
l[i] = r;
|
|
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__ */ k("div", { class: "base_table_empty" }, [
|
|
781
|
+
/* @__PURE__ */ k("div", { class: "base_table_empty_img" }, [
|
|
782
|
+
/* @__PURE__ */ k("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__ */ k("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
788
788
|
], -1), ct = [
|
|
789
789
|
st
|
|
790
790
|
];
|
|
791
|
-
function rt(e, s, l,
|
|
792
|
-
return
|
|
791
|
+
function rt(e, s, l, i, r, c) {
|
|
792
|
+
return o(), y("div", ut, ct);
|
|
793
793
|
}
|
|
794
|
-
const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height:
|
|
795
|
-
const
|
|
796
|
-
if (
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
const { y:
|
|
800
|
-
let
|
|
801
|
-
const
|
|
802
|
-
|
|
794
|
+
const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height: i = "" } = {}) => {
|
|
795
|
+
const r = u(e);
|
|
796
|
+
if (r) {
|
|
797
|
+
const c = r.querySelector(".el-table");
|
|
798
|
+
c && Ce(() => {
|
|
799
|
+
const { y: t = 0 } = c.getBoundingClientRect();
|
|
800
|
+
let m = `calc(100vh - ${t + s}px)`;
|
|
801
|
+
const _ = Number.parseInt(i);
|
|
802
|
+
i && (_ ? m = `${i}px` : m = i), c.style.height = m;
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
}, ye = (e = Promise.resolve(), s = null, l = D(!1),
|
|
806
|
-
const
|
|
807
|
-
return l.value = !0, e.then((
|
|
808
|
-
const { data:
|
|
809
|
-
|
|
810
|
-
}).catch((
|
|
811
|
-
if (typeof
|
|
812
|
-
const { message:
|
|
813
|
-
|
|
805
|
+
}, ye = (e = Promise.resolve(), s = null, l = D(!1), i = D(null)) => {
|
|
806
|
+
const r = D("");
|
|
807
|
+
return l.value = !0, e.then((c = {}) => {
|
|
808
|
+
const { data: t = {}, message: m = "" } = c;
|
|
809
|
+
i.value = t, r.value = m, s && s(!0, t), l.value = !1;
|
|
810
|
+
}).catch((c = {}) => {
|
|
811
|
+
if (typeof c == "object") {
|
|
812
|
+
const { message: t = "" } = c;
|
|
813
|
+
r.value = t;
|
|
814
814
|
} else
|
|
815
|
-
|
|
816
|
-
s && s(!1,
|
|
815
|
+
r.value = c;
|
|
816
|
+
s && s(!1, c), l.value = !1;
|
|
817
817
|
}).finally(() => {
|
|
818
818
|
l.value = !1;
|
|
819
|
-
}), { data:
|
|
819
|
+
}), { data: i, message: r, loading: l };
|
|
820
820
|
}, _t = (e = null) => {
|
|
821
821
|
switch (toString.apply(e)) {
|
|
822
822
|
case "[object Object]":
|
|
@@ -947,59 +947,59 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
949
|
setup(e, { expose: s }) {
|
|
950
|
-
const l = e,
|
|
951
|
-
const { configOptions:
|
|
952
|
-
return O &&
|
|
950
|
+
const l = e, i = K(() => {
|
|
951
|
+
const { configOptions: p = [], operation: O = !1, operationWidth: I = 0 } = l, L = u(p), F = [];
|
|
952
|
+
return O && F.push({
|
|
953
953
|
label: "操作",
|
|
954
954
|
fixed: "right",
|
|
955
955
|
prop: "operation",
|
|
956
956
|
width: I
|
|
957
|
-
}), [...
|
|
958
|
-
}),
|
|
957
|
+
}), [...L, ...F];
|
|
958
|
+
}), r = D(null), c = Ve("transferFoldStatus");
|
|
959
959
|
Ee(() => {
|
|
960
|
-
const { height:
|
|
961
|
-
mt(
|
|
960
|
+
const { height: p } = l, O = c ? c.value : !1, I = u(l.expression);
|
|
961
|
+
mt(p) || dt(r, { arg: O, expression: I, height: p });
|
|
962
962
|
});
|
|
963
|
-
const
|
|
963
|
+
const t = u(l.mapProps), m = ve({
|
|
964
964
|
currentPage: "currentPage",
|
|
965
965
|
pageSize: "pageSize",
|
|
966
966
|
rows: "rows",
|
|
967
967
|
total: "total"
|
|
968
|
-
},
|
|
969
|
-
const { fetch:
|
|
970
|
-
I && (
|
|
968
|
+
}, t), _ = D(1), V = D(10), B = D(0), S = D({}), w = D(l.loading), U = D(l.data), h = D({}), E = () => {
|
|
969
|
+
const { fetch: p, call: O, hasPage: I } = l, L = S.value, F = _.value, j = V.value, R = ve({}, L);
|
|
970
|
+
I && (R[m.currentPage] = F, R[m.pageSize] = j), ye(p(R), O, w, h);
|
|
971
971
|
};
|
|
972
|
-
|
|
973
|
-
l.hasPage ? (
|
|
972
|
+
_e(h, (p) => {
|
|
973
|
+
l.hasPage ? (U.value = p[m.rows], B.value = p[m.total]) : U.value = p;
|
|
974
974
|
});
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
},
|
|
978
|
-
|
|
979
|
-
}, M = (
|
|
980
|
-
|
|
975
|
+
const A = (p = {}) => {
|
|
976
|
+
S.value = p, _.value = 1, E();
|
|
977
|
+
}, C = (p = 1) => {
|
|
978
|
+
_.value = p;
|
|
979
|
+
}, M = (p = 10) => {
|
|
980
|
+
V.value = p;
|
|
981
981
|
};
|
|
982
|
-
return
|
|
983
|
-
|
|
982
|
+
return _e([_, V], () => {
|
|
983
|
+
E();
|
|
984
984
|
}), s({
|
|
985
|
-
refreshList:
|
|
986
|
-
}), (
|
|
987
|
-
const I = g("el-table-column"),
|
|
988
|
-
return
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
985
|
+
refreshList: A
|
|
986
|
+
}), (p, O) => {
|
|
987
|
+
const I = g("el-table-column"), L = g("el-table"), F = Se("loading");
|
|
988
|
+
return o(), y("div", gt, [
|
|
989
|
+
k("div", ft, [
|
|
990
|
+
p.$slots.menu ? (o(), y("div", vt, [
|
|
991
|
+
ae(p.$slots, "menu")
|
|
992
992
|
])) : $("", !0),
|
|
993
|
-
|
|
993
|
+
k("div", {
|
|
994
994
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
995
|
-
ref:
|
|
995
|
+
ref: r
|
|
996
996
|
}, [
|
|
997
|
-
|
|
997
|
+
W((o(), b(L, {
|
|
998
998
|
stripe: "",
|
|
999
999
|
border: "",
|
|
1000
1000
|
"highlight-current-row": "",
|
|
1001
1001
|
style: { width: "100%" },
|
|
1002
|
-
data:
|
|
1002
|
+
data: U.value,
|
|
1003
1003
|
"header-cell-style": {
|
|
1004
1004
|
fontWeight: "bold",
|
|
1005
1005
|
backgroundColor: "#EBEEF5",
|
|
@@ -1007,38 +1007,38 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1007
1007
|
fontSize: "14px"
|
|
1008
1008
|
}
|
|
1009
1009
|
}, {
|
|
1010
|
-
empty:
|
|
1011
|
-
|
|
1010
|
+
empty: x(() => [
|
|
1011
|
+
N(it)
|
|
1012
1012
|
]),
|
|
1013
|
-
default:
|
|
1014
|
-
e.selection ? (
|
|
1013
|
+
default: x(() => [
|
|
1014
|
+
e.selection ? (o(), b(I, {
|
|
1015
1015
|
key: 0,
|
|
1016
1016
|
fixed: "left",
|
|
1017
1017
|
type: "selection",
|
|
1018
1018
|
width: "40"
|
|
1019
1019
|
})) : $("", !0),
|
|
1020
|
-
(
|
|
1021
|
-
prop:
|
|
1022
|
-
label:
|
|
1023
|
-
align:
|
|
1024
|
-
width:
|
|
1025
|
-
fixed:
|
|
1026
|
-
tooltip:
|
|
1027
|
-
limit:
|
|
1028
|
-
} = {},
|
|
1029
|
-
key:
|
|
1030
|
-
label:
|
|
1031
|
-
align:
|
|
1032
|
-
width:
|
|
1033
|
-
fixed:
|
|
1034
|
-
"min-width": `${
|
|
1020
|
+
(o(!0), y(z, null, Z(u(i), ({
|
|
1021
|
+
prop: j = "",
|
|
1022
|
+
label: R = "",
|
|
1023
|
+
align: X = "center",
|
|
1024
|
+
width: J = "",
|
|
1025
|
+
fixed: ne = !1,
|
|
1026
|
+
tooltip: oe = !1,
|
|
1027
|
+
limit: re = 0
|
|
1028
|
+
} = {}, ie) => (o(), b(I, {
|
|
1029
|
+
key: ie,
|
|
1030
|
+
label: R,
|
|
1031
|
+
align: X,
|
|
1032
|
+
width: J,
|
|
1033
|
+
fixed: ne,
|
|
1034
|
+
"min-width": `${R.length * 14 + 24}px`
|
|
1035
1035
|
}, {
|
|
1036
|
-
default:
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
limit:
|
|
1040
|
-
tooltip:
|
|
1041
|
-
data:
|
|
1036
|
+
default: x(({ row: P }) => [
|
|
1037
|
+
ae(p.$slots, j, { row: P }, () => [
|
|
1038
|
+
N(Je, {
|
|
1039
|
+
limit: re,
|
|
1040
|
+
tooltip: oe,
|
|
1041
|
+
data: P[j]
|
|
1042
1042
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1043
1043
|
])
|
|
1044
1044
|
]),
|
|
@@ -1047,13 +1047,13 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1047
1047
|
]),
|
|
1048
1048
|
_: 3
|
|
1049
1049
|
}, 8, ["data", "header-cell-style"])), [
|
|
1050
|
-
[
|
|
1050
|
+
[F, w.value]
|
|
1051
1051
|
])
|
|
1052
1052
|
], 512),
|
|
1053
|
-
e.hasPage ? (
|
|
1053
|
+
e.hasPage ? (o(), b(nt, {
|
|
1054
1054
|
key: 1,
|
|
1055
|
-
total:
|
|
1056
|
-
onOnCurrentChange:
|
|
1055
|
+
total: B.value,
|
|
1056
|
+
onOnCurrentChange: C,
|
|
1057
1057
|
onOnSizeChange: M
|
|
1058
1058
|
}, null, 8, ["total"])) : $("", !0)
|
|
1059
1059
|
])
|
|
@@ -1063,7 +1063,7 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
const pt = {
|
|
1065
1065
|
name: "BsgoalBaseLine"
|
|
1066
|
-
},
|
|
1066
|
+
}, Ae = /* @__PURE__ */ Object.assign(pt, {
|
|
1067
1067
|
props: {
|
|
1068
1068
|
/**
|
|
1069
1069
|
* 是否为垂直
|
|
@@ -1074,27 +1074,27 @@ const pt = {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
},
|
|
1076
1076
|
setup(e) {
|
|
1077
|
-
return (s, l) => (
|
|
1078
|
-
class:
|
|
1077
|
+
return (s, l) => (o(), y("div", {
|
|
1078
|
+
class: me(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1079
1079
|
}, [
|
|
1080
|
-
|
|
1081
|
-
class:
|
|
1080
|
+
k("div", {
|
|
1081
|
+
class: me(["base_line", { base_line__vertical: e.vertical }])
|
|
1082
1082
|
}, null, 2)
|
|
1083
1083
|
], 2));
|
|
1084
1084
|
}
|
|
1085
1085
|
});
|
|
1086
1086
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1087
|
-
var
|
|
1087
|
+
var ce = (e, s) => {
|
|
1088
1088
|
let l = e.__vccOpts || e;
|
|
1089
|
-
for (let [
|
|
1090
|
-
l[
|
|
1089
|
+
for (let [i, r] of s)
|
|
1090
|
+
l[i] = r;
|
|
1091
1091
|
return l;
|
|
1092
1092
|
}, Et = {
|
|
1093
1093
|
name: "ArrowDown"
|
|
1094
1094
|
}, bt = {
|
|
1095
1095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1096
1096
|
viewBox: "0 0 1024 1024"
|
|
1097
|
-
}, yt = /* @__PURE__ */
|
|
1097
|
+
}, yt = /* @__PURE__ */ k(
|
|
1098
1098
|
"path",
|
|
1099
1099
|
{
|
|
1100
1100
|
fill: "currentColor",
|
|
@@ -1103,18 +1103,18 @@ var oe = (e, s) => {
|
|
|
1103
1103
|
null,
|
|
1104
1104
|
-1
|
|
1105
1105
|
/* HOISTED */
|
|
1106
|
-
),
|
|
1106
|
+
), At = [
|
|
1107
1107
|
yt
|
|
1108
1108
|
];
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1109
|
+
function Tt(e, s, l, i, r, c) {
|
|
1110
|
+
return o(), y("svg", bt, At);
|
|
1111
1111
|
}
|
|
1112
|
-
var xt = /* @__PURE__ */
|
|
1112
|
+
var xt = /* @__PURE__ */ ce(Et, [["render", Tt], ["__file", "arrow-down.vue"]]), Ct = {
|
|
1113
1113
|
name: "ArrowLeft"
|
|
1114
|
-
},
|
|
1114
|
+
}, Vt = {
|
|
1115
1115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1116
1116
|
viewBox: "0 0 1024 1024"
|
|
1117
|
-
}, Mt = /* @__PURE__ */
|
|
1117
|
+
}, Mt = /* @__PURE__ */ k(
|
|
1118
1118
|
"path",
|
|
1119
1119
|
{
|
|
1120
1120
|
fill: "currentColor",
|
|
@@ -1126,15 +1126,15 @@ var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]),
|
|
|
1126
1126
|
), $t = [
|
|
1127
1127
|
Mt
|
|
1128
1128
|
];
|
|
1129
|
-
function Nt(e, s, l,
|
|
1130
|
-
return
|
|
1129
|
+
function Nt(e, s, l, i, r, c) {
|
|
1130
|
+
return o(), y("svg", Vt, $t);
|
|
1131
1131
|
}
|
|
1132
|
-
var
|
|
1132
|
+
var Bt = /* @__PURE__ */ ce(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), wt = {
|
|
1133
1133
|
name: "ArrowRight"
|
|
1134
1134
|
}, Dt = {
|
|
1135
1135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1136
1136
|
viewBox: "0 0 1024 1024"
|
|
1137
|
-
},
|
|
1137
|
+
}, St = /* @__PURE__ */ k(
|
|
1138
1138
|
"path",
|
|
1139
1139
|
{
|
|
1140
1140
|
fill: "currentColor",
|
|
@@ -1143,18 +1143,18 @@ var wt = /* @__PURE__ */ oe(Vt, [["render", Nt], ["__file", "arrow-left.vue"]]),
|
|
|
1143
1143
|
null,
|
|
1144
1144
|
-1
|
|
1145
1145
|
/* HOISTED */
|
|
1146
|
-
),
|
|
1147
|
-
|
|
1146
|
+
), kt = [
|
|
1147
|
+
St
|
|
1148
1148
|
];
|
|
1149
|
-
function Ot(e, s, l,
|
|
1150
|
-
return
|
|
1149
|
+
function Ot(e, s, l, i, r, c) {
|
|
1150
|
+
return o(), y("svg", Dt, kt);
|
|
1151
1151
|
}
|
|
1152
|
-
var It = /* @__PURE__ */
|
|
1152
|
+
var It = /* @__PURE__ */ ce(wt, [["render", Ot], ["__file", "arrow-right.vue"]]), Rt = {
|
|
1153
1153
|
name: "ArrowUp"
|
|
1154
|
-
},
|
|
1154
|
+
}, Ft = {
|
|
1155
1155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1156
1156
|
viewBox: "0 0 1024 1024"
|
|
1157
|
-
}, Ut = /* @__PURE__ */
|
|
1157
|
+
}, Ut = /* @__PURE__ */ k(
|
|
1158
1158
|
"path",
|
|
1159
1159
|
{
|
|
1160
1160
|
fill: "currentColor",
|
|
@@ -1163,18 +1163,18 @@ var It = /* @__PURE__ */ oe(Bt, [["render", Ot], ["__file", "arrow-right.vue"]])
|
|
|
1163
1163
|
null,
|
|
1164
1164
|
-1
|
|
1165
1165
|
/* HOISTED */
|
|
1166
|
-
),
|
|
1166
|
+
), Lt = [
|
|
1167
1167
|
Ut
|
|
1168
1168
|
];
|
|
1169
|
-
function
|
|
1170
|
-
return
|
|
1169
|
+
function Pt(e, s, l, i, r, c) {
|
|
1170
|
+
return o(), y("svg", Ft, Lt);
|
|
1171
1171
|
}
|
|
1172
|
-
var zt = /* @__PURE__ */
|
|
1172
|
+
var zt = /* @__PURE__ */ ce(Rt, [["render", Pt], ["__file", "arrow-up.vue"]]), jt = {
|
|
1173
1173
|
name: "Delete"
|
|
1174
1174
|
}, Yt = {
|
|
1175
1175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1176
1176
|
viewBox: "0 0 1024 1024"
|
|
1177
|
-
}, Gt = /* @__PURE__ */
|
|
1177
|
+
}, Gt = /* @__PURE__ */ k(
|
|
1178
1178
|
"path",
|
|
1179
1179
|
{
|
|
1180
1180
|
fill: "currentColor",
|
|
@@ -1186,15 +1186,15 @@ var zt = /* @__PURE__ */ oe(Ft, [["render", Lt], ["__file", "arrow-up.vue"]]), j
|
|
|
1186
1186
|
), Ht = [
|
|
1187
1187
|
Gt
|
|
1188
1188
|
];
|
|
1189
|
-
function Wt(e, s, l,
|
|
1190
|
-
return
|
|
1189
|
+
function Wt(e, s, l, i, r, c) {
|
|
1190
|
+
return o(), y("svg", Yt, Ht);
|
|
1191
1191
|
}
|
|
1192
|
-
var Xt = /* @__PURE__ */
|
|
1192
|
+
var Xt = /* @__PURE__ */ ce(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
|
|
1193
1193
|
name: "Search"
|
|
1194
1194
|
}, Zt = {
|
|
1195
1195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1196
1196
|
viewBox: "0 0 1024 1024"
|
|
1197
|
-
}, Kt = /* @__PURE__ */
|
|
1197
|
+
}, Kt = /* @__PURE__ */ k(
|
|
1198
1198
|
"path",
|
|
1199
1199
|
{
|
|
1200
1200
|
fill: "currentColor",
|
|
@@ -1206,10 +1206,10 @@ var Xt = /* @__PURE__ */ oe(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt
|
|
|
1206
1206
|
), Jt = [
|
|
1207
1207
|
Kt
|
|
1208
1208
|
];
|
|
1209
|
-
function qt(e, s, l,
|
|
1210
|
-
return
|
|
1209
|
+
function qt(e, s, l, i, r, c) {
|
|
1210
|
+
return o(), y("svg", Zt, Jt);
|
|
1211
1211
|
}
|
|
1212
|
-
var ea = /* @__PURE__ */
|
|
1212
|
+
var ea = /* @__PURE__ */ ce(Qt, [["render", qt], ["__file", "search.vue"]]);
|
|
1213
1213
|
const ta = { class: "bsgoal-base-search-operation" }, aa = {
|
|
1214
1214
|
name: "BsgoalBaseSearchOperation"
|
|
1215
1215
|
}, la = /* @__PURE__ */ Object.assign(aa, {
|
|
@@ -1224,45 +1224,45 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
|
|
|
1224
1224
|
},
|
|
1225
1225
|
emits: ["on-fold"],
|
|
1226
1226
|
setup(e, { emit: s }) {
|
|
1227
|
-
const l = D(!1),
|
|
1227
|
+
const l = D(!1), i = () => {
|
|
1228
1228
|
l.value = !u(l), s("on-fold", l.value);
|
|
1229
1229
|
};
|
|
1230
|
-
return (
|
|
1231
|
-
const
|
|
1232
|
-
return
|
|
1233
|
-
|
|
1230
|
+
return (r, c) => {
|
|
1231
|
+
const t = g("el-button"), m = g("el-icon");
|
|
1232
|
+
return o(), y("div", ta, [
|
|
1233
|
+
N(t, {
|
|
1234
1234
|
type: "primary",
|
|
1235
1235
|
icon: u(ea),
|
|
1236
|
-
onClick:
|
|
1236
|
+
onClick: c[0] || (c[0] = (_) => r.$emit("on-search"))
|
|
1237
1237
|
}, {
|
|
1238
|
-
default:
|
|
1239
|
-
|
|
1238
|
+
default: x(() => [
|
|
1239
|
+
H("搜索")
|
|
1240
1240
|
]),
|
|
1241
1241
|
_: 1
|
|
1242
1242
|
}, 8, ["icon"]),
|
|
1243
|
-
|
|
1243
|
+
N(t, {
|
|
1244
1244
|
icon: u(Xt),
|
|
1245
|
-
onClick:
|
|
1245
|
+
onClick: c[1] || (c[1] = (_) => r.$emit("on-clear"))
|
|
1246
1246
|
}, {
|
|
1247
|
-
default:
|
|
1248
|
-
|
|
1247
|
+
default: x(() => [
|
|
1248
|
+
H("清空")
|
|
1249
1249
|
]),
|
|
1250
1250
|
_: 1
|
|
1251
1251
|
}, 8, ["icon"]),
|
|
1252
|
-
e.fold ? (
|
|
1252
|
+
e.fold ? (o(), y("div", {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
class: "operation_fold",
|
|
1255
1255
|
style: { color: "var(--el-color-primary)" },
|
|
1256
|
-
onClick:
|
|
1256
|
+
onClick: i
|
|
1257
1257
|
}, [
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1262
|
-
[
|
|
1258
|
+
H(G(l.value ? "收起" : "展开"), 1),
|
|
1259
|
+
N(m, { color: "#409EFC" }, {
|
|
1260
|
+
default: x(() => [
|
|
1261
|
+
W(N(u(zt), null, null, 512), [
|
|
1262
|
+
[le, l.value]
|
|
1263
1263
|
]),
|
|
1264
|
-
|
|
1265
|
-
[
|
|
1264
|
+
W(N(u(xt), null, null, 512), [
|
|
1265
|
+
[le, !l.value]
|
|
1266
1266
|
])
|
|
1267
1267
|
]),
|
|
1268
1268
|
_: 1
|
|
@@ -1310,13 +1310,13 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
|
|
|
1310
1310
|
const l = D({
|
|
1311
1311
|
checkStrictly: !0,
|
|
1312
1312
|
multiple: !1
|
|
1313
|
-
}),
|
|
1314
|
-
s("update:model-value",
|
|
1313
|
+
}), i = (r) => {
|
|
1314
|
+
s("update:model-value", r), s("on-change", r);
|
|
1315
1315
|
};
|
|
1316
|
-
return (
|
|
1317
|
-
const
|
|
1318
|
-
return
|
|
1319
|
-
|
|
1316
|
+
return (r, c) => {
|
|
1317
|
+
const t = g("el-cascader");
|
|
1318
|
+
return o(), y("div", na, [
|
|
1319
|
+
N(t, {
|
|
1320
1320
|
clearable: "",
|
|
1321
1321
|
class: "base_cascader",
|
|
1322
1322
|
"show-all-levels": !1,
|
|
@@ -1324,7 +1324,7 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
|
|
|
1324
1324
|
options: e.dataOptions,
|
|
1325
1325
|
props: l.value,
|
|
1326
1326
|
placeholder: e.placeholder,
|
|
1327
|
-
onChange:
|
|
1327
|
+
onChange: i
|
|
1328
1328
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1329
1329
|
]);
|
|
1330
1330
|
};
|
|
@@ -1373,26 +1373,26 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1373
1373
|
}
|
|
1374
1374
|
},
|
|
1375
1375
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1376
|
-
setup(e, {
|
|
1377
|
-
const
|
|
1376
|
+
setup(e, { expose: s, emit: l }) {
|
|
1377
|
+
const i = e, r = D(null), c = be.align, t = D({});
|
|
1378
1378
|
Ee(() => {
|
|
1379
|
-
const { configOptions:
|
|
1380
|
-
u(
|
|
1381
|
-
const { value:
|
|
1382
|
-
[a.INPUT, a.INPUT_TEXT_AREA].includes(
|
|
1379
|
+
const { configOptions: A } = i;
|
|
1380
|
+
u(A).forEach((M) => {
|
|
1381
|
+
const { value: p, prop: O = "", type: I = "" } = M;
|
|
1382
|
+
[a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(p) ? p : "";
|
|
1383
1383
|
});
|
|
1384
1384
|
});
|
|
1385
|
-
const
|
|
1386
|
-
const { configOptions:
|
|
1385
|
+
const m = K(() => {
|
|
1386
|
+
const { configOptions: A } = i, C = u(A), M = {
|
|
1387
1387
|
type: a.OPERATION
|
|
1388
1388
|
};
|
|
1389
|
-
return [...
|
|
1390
|
-
}),
|
|
1391
|
-
if (!
|
|
1392
|
-
switch (
|
|
1389
|
+
return [...C, M];
|
|
1390
|
+
}), _ = (A = "", C = "", M = "") => {
|
|
1391
|
+
if (!M)
|
|
1392
|
+
switch (A) {
|
|
1393
1393
|
case a.INPUT:
|
|
1394
1394
|
case a.INPUT_TEXT_AREA:
|
|
1395
|
-
return `请输入${
|
|
1395
|
+
return `请输入${C}`;
|
|
1396
1396
|
case a.SELECT:
|
|
1397
1397
|
case a.DATE:
|
|
1398
1398
|
case a.WEEK:
|
|
@@ -1401,7 +1401,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1401
1401
|
case a.DATE_TIME:
|
|
1402
1402
|
case a.TIME:
|
|
1403
1403
|
case a.CASCADER:
|
|
1404
|
-
return `请选择${
|
|
1404
|
+
return `请选择${C}`;
|
|
1405
1405
|
case a.DATE_RANGE:
|
|
1406
1406
|
case a.DATE_TIME_RANGE:
|
|
1407
1407
|
return ["开始日期", "结束日期"];
|
|
@@ -1410,10 +1410,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1410
1410
|
case a.MONTH_RANGE:
|
|
1411
1411
|
return ["开始月份", "结束月份"];
|
|
1412
1412
|
}
|
|
1413
|
-
return
|
|
1414
|
-
},
|
|
1415
|
-
if (!
|
|
1416
|
-
switch (
|
|
1413
|
+
return M;
|
|
1414
|
+
}, V = (A = "", C = "") => {
|
|
1415
|
+
if (!C)
|
|
1416
|
+
switch (A) {
|
|
1417
1417
|
case a.WEEK:
|
|
1418
1418
|
return "ww";
|
|
1419
1419
|
case a.DATE:
|
|
@@ -1432,233 +1432,235 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1432
1432
|
case a.DATE_TIME_RANGE:
|
|
1433
1433
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1434
1434
|
}
|
|
1435
|
-
return
|
|
1436
|
-
},
|
|
1437
|
-
const { configOptions:
|
|
1438
|
-
for (const
|
|
1439
|
-
const { type:
|
|
1440
|
-
if ([a.CASCADER].includes(
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1435
|
+
return C;
|
|
1436
|
+
}, B = () => {
|
|
1437
|
+
const { configOptions: A } = i, C = u(t), M = u(A), p = {};
|
|
1438
|
+
for (const O of M) {
|
|
1439
|
+
const { type: I = "", range: L = [], prop: F = "", single: j = !1 } = O, R = C[F];
|
|
1440
|
+
if ([a.CASCADER].includes(I) && Array.isArray(R) && j) {
|
|
1441
|
+
const X = R.length;
|
|
1442
|
+
X ? p[F] = R[X - 1] : p[F] = R;
|
|
1443
1443
|
} else
|
|
1444
|
-
|
|
1445
|
-
if (
|
|
1446
|
-
const { 0:
|
|
1447
|
-
|
|
1444
|
+
ke(R) ? p[F] = Oe(R) : p[F] = R;
|
|
1445
|
+
if (I.endsWith("range") && L && L.length === 2) {
|
|
1446
|
+
const { 0: X = "", 1: J = "" } = R, { 0: ne = "", 1: oe = "" } = L;
|
|
1447
|
+
p[ne] = X, p[oe] = J;
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1450
|
+
l("on-search", p), l("update:modelValue", p);
|
|
1451
1451
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1452
|
+
Ce(() => {
|
|
1453
|
+
B();
|
|
1454
1454
|
});
|
|
1455
|
-
const
|
|
1456
|
-
r.value.resetFields(),
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1459
|
-
},
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
type:
|
|
1463
|
-
prop:
|
|
1464
|
-
value: t.value[
|
|
1455
|
+
const S = () => {
|
|
1456
|
+
r.value.resetFields(), l("on-clear", t.value);
|
|
1457
|
+
}, w = Ve("transferFoldStatus"), U = D(!1), h = (A = !1) => {
|
|
1458
|
+
U.value = A, w && (w.value = A), l("on-fold", U);
|
|
1459
|
+
}, E = (A, C) => {
|
|
1460
|
+
B();
|
|
1461
|
+
const M = {
|
|
1462
|
+
type: A,
|
|
1463
|
+
prop: C,
|
|
1464
|
+
value: t.value[C] || ""
|
|
1465
1465
|
};
|
|
1466
|
-
|
|
1466
|
+
l("on-change", M);
|
|
1467
1467
|
};
|
|
1468
|
-
return (
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1468
|
+
return s({
|
|
1469
|
+
triggerOperationSearch: B
|
|
1470
|
+
}), (A, C) => {
|
|
1471
|
+
const M = g("el-input"), p = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), L = g("el-option"), F = g("el-select"), j = g("el-slider"), R = g("el-switch"), X = g("el-date-picker"), J = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
|
|
1472
|
+
return o(), y("div", sa, [
|
|
1473
|
+
k("div", ca, [
|
|
1474
|
+
W((o(), b(T, {
|
|
1473
1475
|
ref_key: "EL_FORM_REF",
|
|
1474
1476
|
ref: r,
|
|
1475
1477
|
"label-suffix": ":",
|
|
1476
1478
|
"show-message": !1,
|
|
1477
1479
|
model: t.value
|
|
1478
1480
|
}, {
|
|
1479
|
-
default:
|
|
1480
|
-
|
|
1481
|
-
default:
|
|
1482
|
-
(
|
|
1483
|
-
label:
|
|
1484
|
-
prop:
|
|
1485
|
-
type:
|
|
1486
|
-
placeholder:
|
|
1487
|
-
readonly:
|
|
1488
|
-
clearable:
|
|
1489
|
-
rows:
|
|
1490
|
-
min:
|
|
1491
|
-
max:
|
|
1492
|
-
range:
|
|
1493
|
-
format:
|
|
1494
|
-
} = {},
|
|
1495
|
-
key:
|
|
1481
|
+
default: x(() => [
|
|
1482
|
+
N(P, null, {
|
|
1483
|
+
default: x(() => [
|
|
1484
|
+
(o(!0), y(z, null, Z(u(m), ({
|
|
1485
|
+
label: d = "",
|
|
1486
|
+
prop: f = "",
|
|
1487
|
+
type: v = "text",
|
|
1488
|
+
placeholder: Y = "",
|
|
1489
|
+
readonly: fe = !1,
|
|
1490
|
+
clearable: de = !0,
|
|
1491
|
+
rows: ge = 2,
|
|
1492
|
+
min: q = 1,
|
|
1493
|
+
max: ee = 10,
|
|
1494
|
+
range: te = [],
|
|
1495
|
+
format: ue = ""
|
|
1496
|
+
} = {}, se) => W((o(), b(ie, {
|
|
1497
|
+
key: se,
|
|
1496
1498
|
xs: 24,
|
|
1497
1499
|
sm: 12,
|
|
1498
1500
|
md: e.medium
|
|
1499
1501
|
}, {
|
|
1500
|
-
default:
|
|
1501
|
-
|
|
1502
|
-
label:
|
|
1503
|
-
prop:
|
|
1502
|
+
default: x(() => [
|
|
1503
|
+
N(re, {
|
|
1504
|
+
label: d,
|
|
1505
|
+
prop: f
|
|
1504
1506
|
}, {
|
|
1505
|
-
default:
|
|
1506
|
-
|
|
1507
|
-
|
|
1507
|
+
default: x(() => [
|
|
1508
|
+
fe ? (o(), y("div", ra, G(t.value[f]), 1)) : (o(), y(z, { key: 0 }, [
|
|
1509
|
+
v === u(a).INPUT ? (o(), b(M, {
|
|
1508
1510
|
key: 0,
|
|
1509
|
-
modelValue: t.value[
|
|
1510
|
-
"onUpdate:modelValue": (
|
|
1511
|
-
placeholder:
|
|
1512
|
-
clearable:
|
|
1511
|
+
modelValue: t.value[f],
|
|
1512
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1513
|
+
placeholder: _(v, d, Y),
|
|
1514
|
+
clearable: de
|
|
1513
1515
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : $("", !0),
|
|
1514
|
-
|
|
1516
|
+
v === u(a).INPUT_TEXT_AREA ? (o(), b(M, {
|
|
1515
1517
|
key: 1,
|
|
1516
|
-
modelValue: t.value[
|
|
1517
|
-
"onUpdate:modelValue": (
|
|
1518
|
+
modelValue: t.value[f],
|
|
1519
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1518
1520
|
type: "textarea",
|
|
1519
|
-
rows:
|
|
1520
|
-
clearable:
|
|
1521
|
-
placeholder:
|
|
1522
|
-
onChange: (
|
|
1521
|
+
rows: ge,
|
|
1522
|
+
clearable: de,
|
|
1523
|
+
placeholder: _(v, d, Y),
|
|
1524
|
+
onChange: (n) => E(v, f)
|
|
1523
1525
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1524
|
-
|
|
1526
|
+
v === u(a).INPUT_NUMBER ? (o(), b(p, {
|
|
1525
1527
|
key: 2,
|
|
1526
|
-
modelValue:
|
|
1527
|
-
"onUpdate:modelValue":
|
|
1528
|
-
min:
|
|
1529
|
-
max:
|
|
1530
|
-
onChange:
|
|
1528
|
+
modelValue: A.num,
|
|
1529
|
+
"onUpdate:modelValue": C[0] || (C[0] = (n) => A.num = n),
|
|
1530
|
+
min: q,
|
|
1531
|
+
max: ee,
|
|
1532
|
+
onChange: E
|
|
1531
1533
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1532
|
-
|
|
1534
|
+
v === u(a).RADIO ? (o(), b(I, {
|
|
1533
1535
|
key: 3,
|
|
1534
|
-
modelValue: t.value[
|
|
1535
|
-
"onUpdate:modelValue": (
|
|
1536
|
-
onChange: (
|
|
1536
|
+
modelValue: t.value[f],
|
|
1537
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1538
|
+
onChange: (n) => E(v, f)
|
|
1537
1539
|
}, {
|
|
1538
|
-
default:
|
|
1539
|
-
(
|
|
1540
|
-
key:
|
|
1541
|
-
label:
|
|
1540
|
+
default: x(() => [
|
|
1541
|
+
(o(!0), y(z, null, Z(te, (n, Q) => (o(), b(O, {
|
|
1542
|
+
key: Q,
|
|
1543
|
+
label: n.value
|
|
1542
1544
|
}, {
|
|
1543
|
-
default:
|
|
1544
|
-
|
|
1545
|
+
default: x(() => [
|
|
1546
|
+
H(G(n.label), 1)
|
|
1545
1547
|
]),
|
|
1546
1548
|
_: 2
|
|
1547
1549
|
}, 1032, ["label"]))), 128))
|
|
1548
1550
|
]),
|
|
1549
1551
|
_: 2
|
|
1550
1552
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1551
|
-
|
|
1553
|
+
v === u(a).SELECT ? (o(), b(F, {
|
|
1552
1554
|
key: 4,
|
|
1553
|
-
modelValue: t.value[
|
|
1554
|
-
"onUpdate:modelValue": (
|
|
1555
|
-
placeholder:
|
|
1556
|
-
onChange: (
|
|
1555
|
+
modelValue: t.value[f],
|
|
1556
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1557
|
+
placeholder: _(v, d, Y),
|
|
1558
|
+
onChange: (n) => E(v, f)
|
|
1557
1559
|
}, {
|
|
1558
|
-
default:
|
|
1559
|
-
(
|
|
1560
|
-
key:
|
|
1561
|
-
label:
|
|
1562
|
-
value:
|
|
1560
|
+
default: x(() => [
|
|
1561
|
+
(o(!0), y(z, null, Z(te, (n, Q) => (o(), b(L, {
|
|
1562
|
+
key: Q,
|
|
1563
|
+
label: n.label,
|
|
1564
|
+
value: n.value
|
|
1563
1565
|
}, null, 8, ["label", "value"]))), 128))
|
|
1564
1566
|
]),
|
|
1565
1567
|
_: 2
|
|
1566
1568
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1567
|
-
|
|
1569
|
+
v === u(a).SLIDER ? (o(), b(j, {
|
|
1568
1570
|
key: 5,
|
|
1569
|
-
modelValue: t.value[
|
|
1570
|
-
"onUpdate:modelValue": (
|
|
1571
|
-
min:
|
|
1572
|
-
max:
|
|
1573
|
-
onChange: (
|
|
1571
|
+
modelValue: t.value[f],
|
|
1572
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1573
|
+
min: q,
|
|
1574
|
+
max: ee,
|
|
1575
|
+
onChange: (n) => E(v, f)
|
|
1574
1576
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1575
|
-
|
|
1577
|
+
v === u(a).SWITCH ? (o(), b(R, {
|
|
1576
1578
|
key: 6,
|
|
1577
|
-
modelValue: t.value[
|
|
1578
|
-
"onUpdate:modelValue": (
|
|
1579
|
-
"active-value":
|
|
1580
|
-
"inactive-value":
|
|
1581
|
-
onChange: (
|
|
1579
|
+
modelValue: t.value[f],
|
|
1580
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1581
|
+
"active-value": te[0] || !0,
|
|
1582
|
+
"inactive-value": te[1] || !1,
|
|
1583
|
+
onChange: (n) => E(v, f)
|
|
1582
1584
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1583
1585
|
[u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
|
|
1584
|
-
|
|
1585
|
-
) ? (
|
|
1586
|
+
v
|
|
1587
|
+
) ? (o(), b(X, {
|
|
1586
1588
|
key: 7,
|
|
1587
|
-
modelValue: t.value[
|
|
1588
|
-
"onUpdate:modelValue": (
|
|
1589
|
-
format:
|
|
1590
|
-
"value-format":
|
|
1591
|
-
type:
|
|
1592
|
-
placeholder:
|
|
1593
|
-
onChange: (
|
|
1589
|
+
modelValue: t.value[f],
|
|
1590
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1591
|
+
format: V(v, ue),
|
|
1592
|
+
"value-format": V(v, ue),
|
|
1593
|
+
type: v,
|
|
1594
|
+
placeholder: _(v, d, Y),
|
|
1595
|
+
onChange: (n) => E(v, f)
|
|
1594
1596
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1595
1597
|
[
|
|
1596
1598
|
u(a).DATE_RANGE,
|
|
1597
1599
|
u(a).MONTH_RANGE,
|
|
1598
1600
|
u(a).DATE_TIME_RANGE
|
|
1599
|
-
].includes(
|
|
1601
|
+
].includes(v) ? (o(), b(X, {
|
|
1600
1602
|
key: 8,
|
|
1601
|
-
modelValue: t.value[
|
|
1602
|
-
"onUpdate:modelValue": (
|
|
1603
|
-
type:
|
|
1604
|
-
"value-format":
|
|
1605
|
-
"start-placeholder":
|
|
1606
|
-
"end-placeholder":
|
|
1607
|
-
onChange: (
|
|
1603
|
+
modelValue: t.value[f],
|
|
1604
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1605
|
+
type: v,
|
|
1606
|
+
"value-format": V(v, ue),
|
|
1607
|
+
"start-placeholder": _(v, d, Y)[0],
|
|
1608
|
+
"end-placeholder": _(v, d, Y)[1],
|
|
1609
|
+
onChange: (n) => E(v, f)
|
|
1608
1610
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1609
|
-
[u(a).TIME].includes(
|
|
1611
|
+
[u(a).TIME].includes(v) ? (o(), b(J, {
|
|
1610
1612
|
key: 9,
|
|
1611
|
-
modelValue: t.value[
|
|
1612
|
-
"onUpdate:modelValue": (
|
|
1613
|
+
modelValue: t.value[f],
|
|
1614
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1613
1615
|
"arrow-control": "",
|
|
1614
|
-
"value-format":
|
|
1615
|
-
placeholder:
|
|
1616
|
-
onChange: (
|
|
1616
|
+
"value-format": V(v, ue),
|
|
1617
|
+
placeholder: _(v, d, Y),
|
|
1618
|
+
onChange: (n) => E(v, f)
|
|
1617
1619
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1618
|
-
[u(a).TIME_RANGE].includes(
|
|
1620
|
+
[u(a).TIME_RANGE].includes(v) ? (o(), b(J, {
|
|
1619
1621
|
key: 10,
|
|
1620
|
-
modelValue: t.value[
|
|
1621
|
-
"onUpdate:modelValue": (
|
|
1622
|
+
modelValue: t.value[f],
|
|
1623
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1622
1624
|
"is-range": "",
|
|
1623
|
-
"value-format":
|
|
1624
|
-
"start-placeholder":
|
|
1625
|
-
"end-placeholder":
|
|
1626
|
-
onChange: (
|
|
1625
|
+
"value-format": V(v, ue),
|
|
1626
|
+
"start-placeholder": _(v, d, Y)[0],
|
|
1627
|
+
"end-placeholder": _(v, d, Y)[1],
|
|
1628
|
+
onChange: (n) => E(v, f)
|
|
1627
1629
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1628
|
-
[u(a).CHECKBOX].includes(
|
|
1630
|
+
[u(a).CHECKBOX].includes(v) ? (o(), b(oe, {
|
|
1629
1631
|
key: 11,
|
|
1630
|
-
modelValue: t.value[
|
|
1631
|
-
"onUpdate:modelValue": (
|
|
1632
|
-
onChange: (
|
|
1632
|
+
modelValue: t.value[f],
|
|
1633
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1634
|
+
onChange: (n) => E(v, f)
|
|
1633
1635
|
}, {
|
|
1634
|
-
default:
|
|
1635
|
-
(
|
|
1636
|
-
key:
|
|
1637
|
-
label:
|
|
1636
|
+
default: x(() => [
|
|
1637
|
+
(o(!0), y(z, null, Z(te, (n, Q) => (o(), b(ne, {
|
|
1638
|
+
key: Q,
|
|
1639
|
+
label: n.value
|
|
1638
1640
|
}, {
|
|
1639
|
-
default:
|
|
1640
|
-
|
|
1641
|
+
default: x(() => [
|
|
1642
|
+
H(G(n.label), 1)
|
|
1641
1643
|
]),
|
|
1642
1644
|
_: 2
|
|
1643
1645
|
}, 1032, ["label"]))), 128))
|
|
1644
1646
|
]),
|
|
1645
1647
|
_: 2
|
|
1646
1648
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1647
|
-
[u(a).CASCADER].includes(
|
|
1649
|
+
[u(a).CASCADER].includes(v) ? (o(), b(ua, {
|
|
1648
1650
|
key: 12,
|
|
1649
|
-
modelValue: t.value[
|
|
1650
|
-
"onUpdate:modelValue": (
|
|
1651
|
-
"data-options":
|
|
1652
|
-
placeholder:
|
|
1653
|
-
onOnChange: (
|
|
1651
|
+
modelValue: t.value[f],
|
|
1652
|
+
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1653
|
+
"data-options": te,
|
|
1654
|
+
placeholder: _(v, d, Y),
|
|
1655
|
+
onOnChange: (n) => E(v, f)
|
|
1654
1656
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
|
|
1655
|
-
[].includes(
|
|
1656
|
-
[u(a).OPERATION].includes(
|
|
1657
|
+
[].includes(v) ? (o(), y(z, { key: 13 }, [], 64)) : $("", !0),
|
|
1658
|
+
[u(a).OPERATION].includes(v) ? (o(), b(la, {
|
|
1657
1659
|
key: 14,
|
|
1658
|
-
fold:
|
|
1659
|
-
onOnSearch:
|
|
1660
|
-
onOnClear:
|
|
1661
|
-
onOnFold:
|
|
1660
|
+
fold: se >= 7,
|
|
1661
|
+
onOnSearch: B,
|
|
1662
|
+
onOnClear: S,
|
|
1663
|
+
onOnFold: h
|
|
1662
1664
|
}, null, 8, ["fold"])) : $("", !0)
|
|
1663
1665
|
], 64))
|
|
1664
1666
|
]),
|
|
@@ -1667,7 +1669,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1667
1669
|
]),
|
|
1668
1670
|
_: 2
|
|
1669
1671
|
}, 1032, ["md"])), [
|
|
1670
|
-
[
|
|
1672
|
+
[le, se < 7 || v === u(a).OPERATION || se >= 7 && U.value]
|
|
1671
1673
|
])), 128))
|
|
1672
1674
|
]),
|
|
1673
1675
|
_: 1
|
|
@@ -1675,10 +1677,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
|
|
|
1675
1677
|
]),
|
|
1676
1678
|
_: 1
|
|
1677
1679
|
}, 8, ["model"])), [
|
|
1678
|
-
[u(
|
|
1680
|
+
[u(c)]
|
|
1679
1681
|
])
|
|
1680
1682
|
]),
|
|
1681
|
-
|
|
1683
|
+
N(Ae)
|
|
1682
1684
|
]);
|
|
1683
1685
|
};
|
|
1684
1686
|
}
|
|
@@ -1791,48 +1793,55 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
|
|
|
1791
1793
|
default: !0
|
|
1792
1794
|
}
|
|
1793
1795
|
},
|
|
1794
|
-
setup(e) {
|
|
1795
|
-
const
|
|
1796
|
-
Ie("transferFoldStatus",
|
|
1797
|
-
const r = u(
|
|
1798
|
-
const { type:
|
|
1799
|
-
return !!
|
|
1800
|
-
})), t =
|
|
1801
|
-
const { item:
|
|
1802
|
-
return !
|
|
1803
|
-
})),
|
|
1804
|
-
|
|
1805
|
-
},
|
|
1806
|
-
const { expression:
|
|
1807
|
-
return
|
|
1808
|
-
});
|
|
1809
|
-
return (
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1796
|
+
setup(e, { expose: s }) {
|
|
1797
|
+
const l = e, i = D(!1);
|
|
1798
|
+
Ie("transferFoldStatus", i);
|
|
1799
|
+
const r = u(l.configOptions), c = K(() => r.filter((h) => {
|
|
1800
|
+
const { type: E = "" } = h;
|
|
1801
|
+
return !!E;
|
|
1802
|
+
})), t = K(() => r.filter((h) => {
|
|
1803
|
+
const { item: E = !1 } = h;
|
|
1804
|
+
return !E;
|
|
1805
|
+
})), m = Re(), _ = D(Object.keys(m)), V = D(null), B = (h) => {
|
|
1806
|
+
V.value.refreshList(h);
|
|
1807
|
+
}, S = K(() => {
|
|
1808
|
+
const { expression: h, hasPage: E } = l;
|
|
1809
|
+
return E === !1 ? 25 : h;
|
|
1810
|
+
}), w = D(null);
|
|
1811
|
+
return s({
|
|
1812
|
+
refresh: () => {
|
|
1813
|
+
const { hasSearch: h } = l;
|
|
1814
|
+
u(h) && w.value.triggerOperationSearch();
|
|
1815
|
+
}
|
|
1816
|
+
}), (h, E) => (o(), y("div", _a, [
|
|
1817
|
+
k("div", ma, [
|
|
1818
|
+
W(N(da, {
|
|
1819
|
+
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1820
|
+
ref: w,
|
|
1821
|
+
"config-options": u(c),
|
|
1822
|
+
onOnSearch: B,
|
|
1823
|
+
onOnClear: B
|
|
1815
1824
|
}, null, 8, ["config-options"]), [
|
|
1816
|
-
[
|
|
1825
|
+
[le, e.hasSearch]
|
|
1817
1826
|
]),
|
|
1818
|
-
|
|
1827
|
+
N(Ne, {
|
|
1819
1828
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1820
|
-
ref:
|
|
1829
|
+
ref: V,
|
|
1821
1830
|
"map-props": e.mapProps,
|
|
1822
1831
|
operationWidth: e.operationWidth,
|
|
1823
1832
|
"config-options": u(t),
|
|
1824
1833
|
data: e.tableData,
|
|
1825
1834
|
selection: e.selection,
|
|
1826
1835
|
operation: e.operation,
|
|
1827
|
-
expression: u(
|
|
1836
|
+
expression: u(S),
|
|
1828
1837
|
fetch: e.fetch,
|
|
1829
1838
|
call: e.call,
|
|
1830
1839
|
"has-page": e.hasPage
|
|
1831
|
-
},
|
|
1832
|
-
|
|
1833
|
-
name:
|
|
1834
|
-
fn:
|
|
1835
|
-
|
|
1840
|
+
}, Fe({ _: 2 }, [
|
|
1841
|
+
Z(_.value, (A) => ({
|
|
1842
|
+
name: A,
|
|
1843
|
+
fn: x(({ row: C = {} }) => [
|
|
1844
|
+
ae(h.$slots, A, { row: C })
|
|
1836
1845
|
])
|
|
1837
1846
|
}))
|
|
1838
1847
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1847,23 +1856,23 @@ const va = { class: "bsgoal-base-tree-fold" }, ha = {
|
|
|
1847
1856
|
emits: ["update:modelValue"],
|
|
1848
1857
|
setup(e, { emit: s }) {
|
|
1849
1858
|
let l = D(!0);
|
|
1850
|
-
const
|
|
1859
|
+
const i = () => {
|
|
1851
1860
|
l.value = !l.value, s("update:modelValue", l.value);
|
|
1852
1861
|
};
|
|
1853
|
-
return (
|
|
1854
|
-
const
|
|
1855
|
-
return
|
|
1856
|
-
|
|
1857
|
-
class:
|
|
1858
|
-
onClick:
|
|
1862
|
+
return (r, c) => {
|
|
1863
|
+
const t = g("el-icon");
|
|
1864
|
+
return o(), y("div", va, [
|
|
1865
|
+
k("div", {
|
|
1866
|
+
class: me(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
|
|
1867
|
+
onClick: i
|
|
1859
1868
|
}, [
|
|
1860
|
-
|
|
1861
|
-
default:
|
|
1862
|
-
|
|
1863
|
-
[
|
|
1869
|
+
N(t, { color: "#fff" }, {
|
|
1870
|
+
default: x(() => [
|
|
1871
|
+
W(N(u(Bt), null, null, 512), [
|
|
1872
|
+
[le, u(l)]
|
|
1864
1873
|
]),
|
|
1865
|
-
|
|
1866
|
-
[
|
|
1874
|
+
W(N(u(It), null, null, 512), [
|
|
1875
|
+
[le, !u(l)]
|
|
1867
1876
|
])
|
|
1868
1877
|
]),
|
|
1869
1878
|
_: 1
|
|
@@ -1873,9 +1882,9 @@ const va = { class: "bsgoal-base-tree-fold" }, ha = {
|
|
|
1873
1882
|
};
|
|
1874
1883
|
}
|
|
1875
1884
|
});
|
|
1876
|
-
const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { class: "base_tree_main" },
|
|
1885
|
+
const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { class: "base_tree_main" }, Aa = {
|
|
1877
1886
|
name: "BsgoalBaseTree"
|
|
1878
|
-
},
|
|
1887
|
+
}, Ta = /* @__PURE__ */ Object.assign(Aa, {
|
|
1879
1888
|
props: {
|
|
1880
1889
|
/**
|
|
1881
1890
|
* 树结构 的下边距
|
|
@@ -1929,62 +1938,62 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
|
|
|
1929
1938
|
},
|
|
1930
1939
|
emits: ["on-click"],
|
|
1931
1940
|
setup(e, { emit: s }) {
|
|
1932
|
-
const l = e,
|
|
1933
|
-
|
|
1934
|
-
|
|
1941
|
+
const l = e, i = be.height, r = D(""), c = D(null);
|
|
1942
|
+
_e(r, (B) => {
|
|
1943
|
+
c.value.filter(B);
|
|
1935
1944
|
});
|
|
1936
|
-
const
|
|
1937
|
-
s("on-click",
|
|
1938
|
-
},
|
|
1939
|
-
if (
|
|
1940
|
-
const
|
|
1941
|
-
return
|
|
1945
|
+
const t = (B, S) => B ? S.label.includes(B) : !0, m = D(!0), _ = (B, S, w, U) => {
|
|
1946
|
+
s("on-click", B, S, w, U);
|
|
1947
|
+
}, V = async (B, S, w) => {
|
|
1948
|
+
if (B.level === 0) {
|
|
1949
|
+
const U = await w.initNode(B);
|
|
1950
|
+
return S(U || []);
|
|
1942
1951
|
} else {
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1952
|
+
const U = await w.lazyLoad(B);
|
|
1953
|
+
S(U || []);
|
|
1945
1954
|
}
|
|
1946
1955
|
};
|
|
1947
|
-
return (
|
|
1948
|
-
const
|
|
1949
|
-
return
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
w
|
|
1953
|
-
modelValue:
|
|
1954
|
-
"onUpdate:modelValue":
|
|
1956
|
+
return (B, S) => {
|
|
1957
|
+
const w = g("el-input"), U = g("el-tree");
|
|
1958
|
+
return o(), y("div", Ea, [
|
|
1959
|
+
W((o(), y("div", ba, [
|
|
1960
|
+
W(k("div", ya, [
|
|
1961
|
+
N(w, {
|
|
1962
|
+
modelValue: r.value,
|
|
1963
|
+
"onUpdate:modelValue": S[0] || (S[0] = (h) => r.value = h),
|
|
1955
1964
|
class: "base_tree_main_input",
|
|
1956
1965
|
placeholder: "输入关键字过滤"
|
|
1957
1966
|
}, null, 8, ["modelValue"]),
|
|
1958
|
-
|
|
1967
|
+
N(U, {
|
|
1959
1968
|
ref_key: "EL_TREE_REF",
|
|
1960
|
-
ref:
|
|
1969
|
+
ref: c,
|
|
1961
1970
|
lazy: "",
|
|
1962
1971
|
"highlight-current": "",
|
|
1963
1972
|
"empty-text": "暂无数据",
|
|
1964
|
-
load: (
|
|
1973
|
+
load: (h, E) => V(h, E, l),
|
|
1965
1974
|
"expand-on-click-node": !1,
|
|
1966
1975
|
props: e.treeProps,
|
|
1967
|
-
"filter-node-method":
|
|
1968
|
-
onNodeClick:
|
|
1976
|
+
"filter-node-method": t,
|
|
1977
|
+
onNodeClick: _
|
|
1969
1978
|
}, null, 8, ["load", "props"])
|
|
1970
1979
|
], 512), [
|
|
1971
|
-
[
|
|
1980
|
+
[le, m.value]
|
|
1972
1981
|
]),
|
|
1973
|
-
|
|
1974
|
-
[
|
|
1982
|
+
W(N(Ae, { vertical: "" }, null, 512), [
|
|
1983
|
+
[le, m.value]
|
|
1975
1984
|
]),
|
|
1976
|
-
|
|
1977
|
-
modelValue:
|
|
1978
|
-
"onUpdate:modelValue":
|
|
1985
|
+
N(pa, {
|
|
1986
|
+
modelValue: m.value,
|
|
1987
|
+
"onUpdate:modelValue": S[1] || (S[1] = (h) => m.value = h)
|
|
1979
1988
|
}, null, 8, ["modelValue"])
|
|
1980
1989
|
])), [
|
|
1981
|
-
[u(
|
|
1990
|
+
[u(i), e.gasket]
|
|
1982
1991
|
])
|
|
1983
1992
|
]);
|
|
1984
1993
|
};
|
|
1985
1994
|
}
|
|
1986
1995
|
});
|
|
1987
|
-
const xa = { class: "bsgoal-base-dialog" },
|
|
1996
|
+
const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ma = { class: "base_dialog_footer" }, $a = {
|
|
1988
1997
|
name: "BsgoalBaseDialog"
|
|
1989
1998
|
}, Na = /* @__PURE__ */ Object.assign($a, {
|
|
1990
1999
|
props: {
|
|
@@ -2048,26 +2057,26 @@ const xa = { class: "bsgoal-base-dialog" }, Va = { class: "base_dialog" }, Ca =
|
|
|
2048
2057
|
},
|
|
2049
2058
|
emits: ["update:modelValue", "on-confirm"],
|
|
2050
2059
|
setup(e, { emit: s }) {
|
|
2051
|
-
const l = e,
|
|
2052
|
-
|
|
2053
|
-
},
|
|
2060
|
+
const l = e, i = D(l.modelValue.value), r = () => {
|
|
2061
|
+
i.value = !1;
|
|
2062
|
+
}, c = () => {
|
|
2054
2063
|
s("on-confirm", () => {
|
|
2055
|
-
|
|
2064
|
+
i.value = !1;
|
|
2056
2065
|
});
|
|
2057
2066
|
};
|
|
2058
|
-
|
|
2067
|
+
_e(
|
|
2059
2068
|
() => l.modelValue,
|
|
2060
|
-
(
|
|
2061
|
-
|
|
2069
|
+
(m) => {
|
|
2070
|
+
i.value = m;
|
|
2062
2071
|
}
|
|
2063
|
-
),
|
|
2064
|
-
s("update:modelValue",
|
|
2072
|
+
), _e(i, (m) => {
|
|
2073
|
+
s("update:modelValue", m);
|
|
2065
2074
|
});
|
|
2066
|
-
const
|
|
2067
|
-
const { width:
|
|
2068
|
-
if (
|
|
2069
|
-
return
|
|
2070
|
-
switch (
|
|
2075
|
+
const t = K(() => {
|
|
2076
|
+
const { width: m, size: _ } = l;
|
|
2077
|
+
if (m)
|
|
2078
|
+
return m;
|
|
2079
|
+
switch (_) {
|
|
2071
2080
|
case "small":
|
|
2072
2081
|
return "480px";
|
|
2073
2082
|
case "medium":
|
|
@@ -2079,49 +2088,49 @@ const xa = { class: "bsgoal-base-dialog" }, Va = { class: "base_dialog" }, Ca =
|
|
|
2079
2088
|
case "dnymic":
|
|
2080
2089
|
return "80%";
|
|
2081
2090
|
default:
|
|
2082
|
-
return
|
|
2091
|
+
return m;
|
|
2083
2092
|
}
|
|
2084
2093
|
});
|
|
2085
|
-
return (
|
|
2086
|
-
const
|
|
2087
|
-
return
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
modelValue:
|
|
2091
|
-
"onUpdate:modelValue":
|
|
2094
|
+
return (m, _) => {
|
|
2095
|
+
const V = g("el-button"), B = g("el-dialog");
|
|
2096
|
+
return o(), y("div", xa, [
|
|
2097
|
+
k("div", Ca, [
|
|
2098
|
+
N(B, {
|
|
2099
|
+
modelValue: i.value,
|
|
2100
|
+
"onUpdate:modelValue": _[0] || (_[0] = (S) => i.value = S),
|
|
2092
2101
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2093
|
-
class:
|
|
2094
|
-
width: u(
|
|
2102
|
+
class: me({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2103
|
+
width: u(t)
|
|
2095
2104
|
}, {
|
|
2096
|
-
header:
|
|
2097
|
-
|
|
2105
|
+
header: x(() => [
|
|
2106
|
+
k("div", Va, G(e.title), 1)
|
|
2098
2107
|
]),
|
|
2099
|
-
footer:
|
|
2100
|
-
e.footer ?
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
default:
|
|
2104
|
-
|
|
2108
|
+
footer: x(() => [
|
|
2109
|
+
e.footer ? ae(m.$slots, "footer", { key: 0 }, () => [
|
|
2110
|
+
k("span", Ma, [
|
|
2111
|
+
N(V, { onClick: r }, {
|
|
2112
|
+
default: x(() => [
|
|
2113
|
+
H(G(e.cancelTxt), 1)
|
|
2105
2114
|
]),
|
|
2106
2115
|
_: 1
|
|
2107
2116
|
}),
|
|
2108
|
-
|
|
2117
|
+
N(V, {
|
|
2109
2118
|
type: "primary",
|
|
2110
|
-
onClick:
|
|
2119
|
+
onClick: c
|
|
2111
2120
|
}, {
|
|
2112
|
-
default:
|
|
2113
|
-
|
|
2121
|
+
default: x(() => [
|
|
2122
|
+
H(G(e.confirmTxt), 1)
|
|
2114
2123
|
]),
|
|
2115
2124
|
_: 1
|
|
2116
2125
|
})
|
|
2117
2126
|
])
|
|
2118
2127
|
]) : $("", !0)
|
|
2119
2128
|
]),
|
|
2120
|
-
default:
|
|
2121
|
-
|
|
2122
|
-
class:
|
|
2129
|
+
default: x(() => [
|
|
2130
|
+
k("div", {
|
|
2131
|
+
class: me(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2123
2132
|
}, [
|
|
2124
|
-
|
|
2133
|
+
ae(m.$slots, "default")
|
|
2125
2134
|
], 2)
|
|
2126
2135
|
]),
|
|
2127
2136
|
_: 3
|
|
@@ -2131,9 +2140,9 @@ const xa = { class: "bsgoal-base-dialog" }, Va = { class: "base_dialog" }, Ca =
|
|
|
2131
2140
|
};
|
|
2132
2141
|
}
|
|
2133
2142
|
});
|
|
2134
|
-
const
|
|
2143
|
+
const Ba = { class: "bsgoal-base-tabs" }, wa = {
|
|
2135
2144
|
name: "BsgoalBaseTabs"
|
|
2136
|
-
}, Da = /* @__PURE__ */ Object.assign(
|
|
2145
|
+
}, Da = /* @__PURE__ */ Object.assign(wa, {
|
|
2137
2146
|
props: {
|
|
2138
2147
|
/**
|
|
2139
2148
|
* 配置项
|
|
@@ -2168,28 +2177,28 @@ const wa = { class: "bsgoal-base-tabs" }, Ba = {
|
|
|
2168
2177
|
},
|
|
2169
2178
|
emits: ["update:modelValue"],
|
|
2170
2179
|
setup(e, { emit: s }) {
|
|
2171
|
-
const l = (
|
|
2172
|
-
s("update:modelValue",
|
|
2180
|
+
const l = (i = "") => {
|
|
2181
|
+
s("update:modelValue", i);
|
|
2173
2182
|
};
|
|
2174
|
-
return (
|
|
2175
|
-
const
|
|
2176
|
-
return
|
|
2177
|
-
|
|
2183
|
+
return (i, r) => {
|
|
2184
|
+
const c = g("el-tab-pane"), t = g("el-tabs");
|
|
2185
|
+
return o(), y("div", Ba, [
|
|
2186
|
+
N(t, {
|
|
2178
2187
|
stretch: "",
|
|
2179
2188
|
class: "bsgoal_base_tabs",
|
|
2180
2189
|
type: e.type,
|
|
2181
2190
|
"model-value": e.modelValue,
|
|
2182
2191
|
onTabChange: l
|
|
2183
2192
|
}, {
|
|
2184
|
-
default:
|
|
2185
|
-
(
|
|
2186
|
-
key:
|
|
2187
|
-
label:
|
|
2188
|
-
name:
|
|
2193
|
+
default: x(() => [
|
|
2194
|
+
(o(!0), y(z, null, Z(e.configOptions, ({ label: m, value: _ }, V) => (o(), b(c, {
|
|
2195
|
+
key: V,
|
|
2196
|
+
label: m,
|
|
2197
|
+
name: _
|
|
2189
2198
|
}, {
|
|
2190
|
-
default:
|
|
2191
|
-
|
|
2192
|
-
|
|
2199
|
+
default: x(() => [
|
|
2200
|
+
ae(i.$slots, _, {}, () => [
|
|
2201
|
+
H(G(m), 1)
|
|
2193
2202
|
])
|
|
2194
2203
|
]),
|
|
2195
2204
|
_: 2
|
|
@@ -2201,9 +2210,9 @@ const wa = { class: "bsgoal-base-tabs" }, Ba = {
|
|
|
2201
2210
|
};
|
|
2202
2211
|
}
|
|
2203
2212
|
});
|
|
2204
|
-
const
|
|
2213
|
+
const Sa = { class: "bsgoal-base-link" }, ka = {
|
|
2205
2214
|
name: "BsgoalBaseLink"
|
|
2206
|
-
}, Oa = /* @__PURE__ */ Object.assign(
|
|
2215
|
+
}, Oa = /* @__PURE__ */ Object.assign(ka, {
|
|
2207
2216
|
props: {
|
|
2208
2217
|
/**
|
|
2209
2218
|
* 内容
|
|
@@ -2232,19 +2241,19 @@ const ka = { class: "bsgoal-base-link" }, Sa = {
|
|
|
2232
2241
|
const l = () => {
|
|
2233
2242
|
s("on-click");
|
|
2234
2243
|
};
|
|
2235
|
-
return (
|
|
2236
|
-
const
|
|
2237
|
-
return
|
|
2238
|
-
|
|
2244
|
+
return (i, r) => {
|
|
2245
|
+
const c = g("el-link");
|
|
2246
|
+
return o(), y("div", Sa, [
|
|
2247
|
+
N(c, {
|
|
2239
2248
|
class: "bsgoal_base_link",
|
|
2240
2249
|
type: "primary",
|
|
2241
2250
|
underline: e.underline,
|
|
2242
2251
|
style: Ue(e.styler),
|
|
2243
2252
|
onClick: l
|
|
2244
2253
|
}, {
|
|
2245
|
-
default:
|
|
2246
|
-
|
|
2247
|
-
|
|
2254
|
+
default: x(() => [
|
|
2255
|
+
ae(i.$slots, "default", {}, () => [
|
|
2256
|
+
H(G(e.content), 1)
|
|
2248
2257
|
], !0)
|
|
2249
2258
|
]),
|
|
2250
2259
|
_: 3
|
|
@@ -2252,27 +2261,27 @@ const ka = { class: "bsgoal-base-link" }, Sa = {
|
|
|
2252
2261
|
]);
|
|
2253
2262
|
};
|
|
2254
2263
|
}
|
|
2255
|
-
}), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]),
|
|
2264
|
+
}), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), La = a, Pa = ye, za = {
|
|
2256
2265
|
install(e, s = {}) {
|
|
2257
|
-
const { exclude: l = [] } = s,
|
|
2266
|
+
const { exclude: l = [] } = s, i = {
|
|
2258
2267
|
BsgoalBaseForm: We,
|
|
2259
2268
|
BsgoalBaseTable: Ne,
|
|
2260
|
-
BsgoalBaseLine:
|
|
2269
|
+
BsgoalBaseLine: Ae,
|
|
2261
2270
|
BsgoalBaseSearchTable: fa,
|
|
2262
|
-
BsgoalBaseTree:
|
|
2271
|
+
BsgoalBaseTree: Ta,
|
|
2263
2272
|
BsgoalBaseDialog: Na,
|
|
2264
2273
|
BsgoalBaseTabs: Da,
|
|
2265
2274
|
BsgoalBaseLink: Ia
|
|
2266
2275
|
};
|
|
2267
|
-
for (const [
|
|
2268
|
-
l.includes(
|
|
2276
|
+
for (const [r, c] of Object.entries(i))
|
|
2277
|
+
l.includes(r) || e.component(r, c);
|
|
2269
2278
|
},
|
|
2270
2279
|
enumType: a,
|
|
2271
2280
|
useFetch: ye
|
|
2272
2281
|
};
|
|
2273
2282
|
export {
|
|
2274
|
-
|
|
2283
|
+
La as EnumType,
|
|
2275
2284
|
za as default,
|
|
2276
|
-
|
|
2285
|
+
Pa as useFetchApi
|
|
2277
2286
|
};
|
|
2278
2287
|
//# sourceMappingURL=index.mjs.map
|