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