@bsgoal/common 1.1.3 → 1.4.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
|
@@ -9,7 +9,7 @@ var Ve = (l, c, u) => c in l ? ye(l, c, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
Be.call(c, u) && Ve(l, u, c[u]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
|
-
import { ref as
|
|
12
|
+
import { ref as D, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as o, createElementBlock as T, createElementVNode as F, withDirectives as G, createBlock as E, withCtx as C, createVNode as O, Fragment as I, renderList as W, createCommentVNode as x, createTextVNode as K, toDisplayString as j, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ge, vShow as Q, provide as Oe, useSlots as ke, createSlots as Ne } from "vue";
|
|
13
13
|
import { ElMessage as Fe } from "element-plus";
|
|
14
14
|
const e = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -38,8 +38,8 @@ const ve = (l) => {
|
|
|
38
38
|
const c = [], u = [], d = (n = []) => {
|
|
39
39
|
const r = n.map((b) => b.width), p = Math.max(...r);
|
|
40
40
|
n.forEach((b) => {
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
41
|
+
const { labelEl: w } = b;
|
|
42
|
+
w.style.width = `${p}px`;
|
|
43
43
|
});
|
|
44
44
|
}, _ = () => {
|
|
45
45
|
if (l) {
|
|
@@ -48,8 +48,8 @@ const ve = (l) => {
|
|
|
48
48
|
let r = 0;
|
|
49
49
|
n.forEach((p, b) => {
|
|
50
50
|
p.style.width = "initial", p.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x:
|
|
52
|
-
b === 0 && (r =
|
|
51
|
+
const { x: w = 0, width: $ = 0 } = p.getBoundingClientRect(), B = { x: w, width: $, labelEl: p };
|
|
52
|
+
b === 0 && (r = w), w === r ? c.push(B) : u.push(B);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -128,20 +128,20 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
130
130
|
setup(l, { expose: c, emit: u }) {
|
|
131
|
-
const d = l, _ =
|
|
131
|
+
const d = l, _ = D(null), n = pe.align, r = D({});
|
|
132
132
|
he(() => {
|
|
133
133
|
const { configOptions: h, values: v } = d, V = s(h), f = s(v);
|
|
134
|
-
V.forEach((
|
|
135
|
-
const { value:
|
|
136
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[
|
|
134
|
+
V.forEach((A) => {
|
|
135
|
+
const { value: k = "", prop: N = "", type: M = "" } = A;
|
|
136
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[N] = f[N] || k;
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
const p = oe(() => {
|
|
140
140
|
const { configOptions: h } = d;
|
|
141
141
|
return s(h).map((f) => {
|
|
142
|
-
let { rules:
|
|
143
|
-
const
|
|
144
|
-
return
|
|
142
|
+
let { rules: A = !1, label: k = "" } = f;
|
|
143
|
+
const N = { required: !0, message: `${k}不能为空`, trigger: "blur" };
|
|
144
|
+
return A && (typeof A == "boolean" ? A = [N] : Array.isArray(A) ? A = [N, ...A] : A = [N, A]), f.rules = A, f;
|
|
145
145
|
});
|
|
146
146
|
}), b = (h = "", v = "", V = "") => {
|
|
147
147
|
if (!V)
|
|
@@ -166,7 +166,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
166
166
|
return ["开始月份", "结束月份"];
|
|
167
167
|
}
|
|
168
168
|
return V;
|
|
169
|
-
},
|
|
169
|
+
}, w = (h = "", v = "") => {
|
|
170
170
|
if (!v)
|
|
171
171
|
switch (h) {
|
|
172
172
|
case e.WEEK:
|
|
@@ -188,19 +188,19 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
188
188
|
return "YYYY-MM-DD HH:mm:ss";
|
|
189
189
|
}
|
|
190
190
|
return v;
|
|
191
|
-
},
|
|
191
|
+
}, $ = () => {
|
|
192
192
|
const h = s(r), { configOptions: v } = d, V = s(v);
|
|
193
193
|
for (const f of V) {
|
|
194
|
-
const { type:
|
|
195
|
-
if (
|
|
196
|
-
const { 0: M = "", 1: P = "" } = h[
|
|
194
|
+
const { type: A = "", range: k = [], prop: N = "" } = f;
|
|
195
|
+
if (A.endsWith("range") && k && k.length === 2) {
|
|
196
|
+
const { 0: M = "", 1: P = "" } = h[N], { 0: S = "", 1: U = "" } = k;
|
|
197
197
|
h[S] = M, h[U] = P;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
return u("on-form", h), h;
|
|
201
|
-
},
|
|
201
|
+
}, B = () => {
|
|
202
202
|
_.value.resetFields(), u("on-clear", r.value);
|
|
203
|
-
},
|
|
203
|
+
}, y = (h, v) => {
|
|
204
204
|
const V = {
|
|
205
205
|
type: h,
|
|
206
206
|
prop: v,
|
|
@@ -209,27 +209,27 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
209
209
|
u("on-change", V);
|
|
210
210
|
};
|
|
211
211
|
return c({
|
|
212
|
-
triggerOperationClear:
|
|
213
|
-
triggerOperationForm:
|
|
212
|
+
triggerOperationClear: B,
|
|
213
|
+
triggerOperationForm: $,
|
|
214
214
|
validateForm: (h = () => {
|
|
215
215
|
}) => {
|
|
216
216
|
_.value.validate((v = !1, V = {}) => {
|
|
217
217
|
if (v) {
|
|
218
|
-
const f =
|
|
218
|
+
const f = $();
|
|
219
219
|
h(f);
|
|
220
220
|
} else {
|
|
221
221
|
h(!1), console.log("field", V);
|
|
222
222
|
const f = Object.keys(V)[0], {
|
|
223
223
|
[f]: {
|
|
224
|
-
0: { message:
|
|
224
|
+
0: { message: A = "" }
|
|
225
225
|
}
|
|
226
226
|
} = V;
|
|
227
|
-
Fe.error(
|
|
227
|
+
Fe.error(A);
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
}), (h, v) => {
|
|
232
|
-
const V = g("el-input"), f = g("el-input-number"),
|
|
232
|
+
const V = g("el-input"), f = g("el-input-number"), A = g("el-radio"), k = g("el-radio-group"), N = g("el-option"), M = g("el-select"), P = g("el-slider"), S = g("el-switch"), U = g("el-date-picker"), X = g("el-time-picker"), Z = g("el-checkbox"), le = g("el-checkbox-group"), ee = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
|
|
233
233
|
return o(), T("div", Me, [
|
|
234
234
|
F("div", Re, [
|
|
235
235
|
G((o(), E(me, {
|
|
@@ -238,9 +238,9 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
238
238
|
"label-suffix": ":",
|
|
239
239
|
model: r.value
|
|
240
240
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
default:
|
|
241
|
+
default: C(() => [
|
|
242
|
+
O(_e, null, {
|
|
243
|
+
default: C(() => [
|
|
244
244
|
(o(!0), T(I, null, W(s(p), ({
|
|
245
245
|
label: L = "",
|
|
246
246
|
prop: m = "",
|
|
@@ -260,13 +260,13 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
260
260
|
sm: 24,
|
|
261
261
|
md: l.medium
|
|
262
262
|
}, {
|
|
263
|
-
default:
|
|
264
|
-
|
|
263
|
+
default: C(() => [
|
|
264
|
+
O(ee, {
|
|
265
265
|
label: L,
|
|
266
266
|
prop: m,
|
|
267
267
|
rules: J
|
|
268
268
|
}, {
|
|
269
|
-
default:
|
|
269
|
+
default: C(() => [
|
|
270
270
|
z ? (o(), T("div", Se, j(r.value[m]), 1)) : (o(), T(I, { key: 0 }, [
|
|
271
271
|
a === s(e).INPUT ? (o(), E(V, {
|
|
272
272
|
key: 0,
|
|
@@ -274,8 +274,8 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
274
274
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
275
275
|
placeholder: b(a, L, i),
|
|
276
276
|
clearable: se,
|
|
277
|
-
onChange: (t) =>
|
|
278
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
277
|
+
onChange: (t) => y(a, m)
|
|
278
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
|
|
279
279
|
a === s(e).INPUT_TEXT_AREA ? (o(), E(V, {
|
|
280
280
|
key: 1,
|
|
281
281
|
modelValue: r.value[m],
|
|
@@ -284,79 +284,79 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
284
284
|
rows: re,
|
|
285
285
|
clearable: se,
|
|
286
286
|
placeholder: b(a, L, i),
|
|
287
|
-
onChange: (t) =>
|
|
288
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
287
|
+
onChange: (t) => y(a, m)
|
|
288
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
|
|
289
289
|
a === s(e).INPUT_NUMBER ? (o(), E(f, {
|
|
290
290
|
key: 2,
|
|
291
291
|
modelValue: h.num,
|
|
292
292
|
"onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
|
|
293
293
|
min: ce,
|
|
294
294
|
max: ne,
|
|
295
|
-
onChange:
|
|
296
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
297
|
-
a === s(e).RADIO ? (o(), E(
|
|
295
|
+
onChange: y
|
|
296
|
+
}, null, 8, ["modelValue", "min", "max"])) : x("", !0),
|
|
297
|
+
a === s(e).RADIO ? (o(), E(k, {
|
|
298
298
|
key: 3,
|
|
299
299
|
modelValue: r.value[m],
|
|
300
300
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
301
|
-
onChange: (t) =>
|
|
301
|
+
onChange: (t) => y(a, m)
|
|
302
302
|
}, {
|
|
303
|
-
default:
|
|
304
|
-
(o(!0), T(I, null, W(q, (t, H) => (o(), E(
|
|
303
|
+
default: C(() => [
|
|
304
|
+
(o(!0), T(I, null, W(q, (t, H) => (o(), E(A, {
|
|
305
305
|
key: H,
|
|
306
306
|
label: t.value
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
308
|
+
default: C(() => [
|
|
309
309
|
K(j(t.label), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 2
|
|
312
312
|
}, 1032, ["label"]))), 128))
|
|
313
313
|
]),
|
|
314
314
|
_: 2
|
|
315
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
315
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
|
|
316
316
|
a === s(e).SELECT ? (o(), E(M, {
|
|
317
317
|
key: 4,
|
|
318
318
|
modelValue: r.value[m],
|
|
319
319
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
320
320
|
placeholder: b(a, L, i),
|
|
321
|
-
onChange: (t) =>
|
|
321
|
+
onChange: (t) => y(a, m)
|
|
322
322
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
(o(!0), T(I, null, W(q, (t, H) => (o(), E(
|
|
323
|
+
default: C(() => [
|
|
324
|
+
(o(!0), T(I, null, W(q, (t, H) => (o(), E(N, {
|
|
325
325
|
key: H,
|
|
326
326
|
label: t.label,
|
|
327
327
|
value: t.value
|
|
328
328
|
}, null, 8, ["label", "value"]))), 128))
|
|
329
329
|
]),
|
|
330
330
|
_: 2
|
|
331
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
331
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
|
|
332
332
|
a === s(e).SLIDER ? (o(), E(P, {
|
|
333
333
|
key: 5,
|
|
334
334
|
modelValue: r.value[m],
|
|
335
335
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
336
336
|
min: ce,
|
|
337
337
|
max: ne,
|
|
338
|
-
onChange: (t) =>
|
|
339
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
338
|
+
onChange: (t) => y(a, m)
|
|
339
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
|
|
340
340
|
a === s(e).SWITCH ? (o(), E(S, {
|
|
341
341
|
key: 6,
|
|
342
342
|
modelValue: r.value[m],
|
|
343
343
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
344
344
|
"active-value": q[0] || !0,
|
|
345
345
|
"inactive-value": q[1] || !1,
|
|
346
|
-
onChange: (t) =>
|
|
347
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
346
|
+
onChange: (t) => y(a, m)
|
|
347
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
|
|
348
348
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
349
349
|
a
|
|
350
350
|
) ? (o(), E(U, {
|
|
351
351
|
key: 7,
|
|
352
352
|
modelValue: r.value[m],
|
|
353
353
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
354
|
-
format:
|
|
355
|
-
"value-format":
|
|
354
|
+
format: w(a, Y),
|
|
355
|
+
"value-format": w(a, Y),
|
|
356
356
|
type: a,
|
|
357
357
|
placeholder: b(a, L, i),
|
|
358
|
-
onChange: (t) =>
|
|
359
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
358
|
+
onChange: (t) => y(a, m)
|
|
359
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
|
|
360
360
|
[
|
|
361
361
|
s(e).DATE_RANGE,
|
|
362
362
|
s(e).MONTH_RANGE,
|
|
@@ -366,50 +366,50 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
366
366
|
modelValue: r.value[m],
|
|
367
367
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
368
368
|
type: a,
|
|
369
|
-
"value-format":
|
|
369
|
+
"value-format": w(a, Y),
|
|
370
370
|
"start-placeholder": b(a, L, i)[0],
|
|
371
371
|
"end-placeholder": b(a, L, i)[1],
|
|
372
|
-
onChange: (t) =>
|
|
373
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
372
|
+
onChange: (t) => y(a, m)
|
|
373
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
374
374
|
[s(e).TIME].includes(a) ? (o(), E(X, {
|
|
375
375
|
key: 9,
|
|
376
376
|
modelValue: r.value[m],
|
|
377
377
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
378
378
|
"arrow-control": "",
|
|
379
|
-
"value-format":
|
|
379
|
+
"value-format": w(a, Y),
|
|
380
380
|
placeholder: b(a, L, i),
|
|
381
|
-
onChange: (t) =>
|
|
382
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
381
|
+
onChange: (t) => y(a, m)
|
|
382
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
|
|
383
383
|
[s(e).TIME_RANGE].includes(a) ? (o(), E(X, {
|
|
384
384
|
key: 10,
|
|
385
385
|
modelValue: r.value[m],
|
|
386
386
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
387
387
|
"is-range": "",
|
|
388
|
-
"value-format":
|
|
388
|
+
"value-format": w(a, Y),
|
|
389
389
|
"start-placeholder": b(a, L, i)[0],
|
|
390
390
|
"end-placeholder": b(a, L, i)[1],
|
|
391
|
-
onChange: (t) =>
|
|
392
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
391
|
+
onChange: (t) => y(a, m)
|
|
392
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
393
393
|
[s(e).CHECKBOX].includes(a) ? (o(), E(le, {
|
|
394
394
|
key: 11,
|
|
395
395
|
modelValue: r.value[m],
|
|
396
396
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
397
|
-
onChange: (t) =>
|
|
397
|
+
onChange: (t) => y(a, m)
|
|
398
398
|
}, {
|
|
399
|
-
default:
|
|
399
|
+
default: C(() => [
|
|
400
400
|
(o(!0), T(I, null, W(q, (t, H) => (o(), E(Z, {
|
|
401
401
|
key: H,
|
|
402
402
|
label: t.value
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
404
|
+
default: C(() => [
|
|
405
405
|
K(j(t.label), 1)
|
|
406
406
|
]),
|
|
407
407
|
_: 2
|
|
408
408
|
}, 1032, ["label"]))), 128))
|
|
409
409
|
]),
|
|
410
410
|
_: 2
|
|
411
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
412
|
-
[].includes(a) ? (o(), T(I, { key: 12 }, [], 64)) :
|
|
411
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
|
|
412
|
+
[].includes(a) ? (o(), T(I, { key: 12 }, [], 64)) : x("", !0)
|
|
413
413
|
], 64))
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
@@ -612,25 +612,25 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
|
|
|
612
612
|
c("on-size-change", n);
|
|
613
613
|
}, d = (n = 1) => {
|
|
614
614
|
c("on-current-change", n);
|
|
615
|
-
}, _ =
|
|
615
|
+
}, _ = D(1);
|
|
616
616
|
return (n, r) => {
|
|
617
617
|
const p = g("el-pagination"), b = g("el-config-provider");
|
|
618
618
|
return o(), T("div", Ge, [
|
|
619
619
|
F("div", je, [
|
|
620
|
-
|
|
621
|
-
default:
|
|
622
|
-
|
|
620
|
+
O(b, { locale: s(He) }, {
|
|
621
|
+
default: C(() => [
|
|
622
|
+
O(p, {
|
|
623
623
|
background: "",
|
|
624
624
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
625
625
|
"current-page": _.value,
|
|
626
|
-
"onUpdate:currentPage": r[0] || (r[0] = (
|
|
626
|
+
"onUpdate:currentPage": r[0] || (r[0] = (w) => _.value = w),
|
|
627
627
|
"page-sizes": l.pageSizes,
|
|
628
628
|
"page-size": l.pageSize,
|
|
629
629
|
total: l.total,
|
|
630
630
|
onSizeChange: u,
|
|
631
631
|
onCurrentChange: d
|
|
632
632
|
}, {
|
|
633
|
-
next:
|
|
633
|
+
next: C(() => [
|
|
634
634
|
We
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
@@ -651,8 +651,8 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
|
|
|
651
651
|
_.style.height = `calc(100vh - ${n + c}px)`;
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
|
-
}, Ee = (l = Promise.resolve(), c = null, u =
|
|
655
|
-
const _ =
|
|
654
|
+
}, Ee = (l = Promise.resolve(), c = null, u = D(!1), d = D(null)) => {
|
|
655
|
+
const _ = D("");
|
|
656
656
|
return u.value = !0, l.then((n = {}) => {
|
|
657
657
|
const { data: r = {}, message: p = "" } = n;
|
|
658
658
|
d.value = r, _.value = p, c && c(!0, r), u.value = !1;
|
|
@@ -761,28 +761,28 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
761
761
|
},
|
|
762
762
|
setup(l, { expose: c }) {
|
|
763
763
|
const u = l, d = oe(() => {
|
|
764
|
-
const { configOptions: f = [], operation:
|
|
765
|
-
return
|
|
764
|
+
const { configOptions: f = [], operation: A = !1, operationWidth: k = 0 } = u, N = s(f), M = [];
|
|
765
|
+
return A && M.push({
|
|
766
766
|
label: "操作",
|
|
767
767
|
fixed: "right",
|
|
768
768
|
prop: "operation",
|
|
769
|
-
width:
|
|
770
|
-
}), [...
|
|
771
|
-
}), _ =
|
|
769
|
+
width: k
|
|
770
|
+
}), [...N, ...M];
|
|
771
|
+
}), _ = D(null), n = $e("transferFoldStatus");
|
|
772
772
|
he(() => {
|
|
773
|
-
const f = n ? n.value : !1,
|
|
774
|
-
qe(_, { arg: f, expression:
|
|
773
|
+
const f = n ? n.value : !1, A = s(u.expression);
|
|
774
|
+
qe(_, { arg: f, expression: A });
|
|
775
775
|
});
|
|
776
|
-
const r =
|
|
777
|
-
const { fetch: f, call:
|
|
778
|
-
S[U.currentPage] = M, S[U.pageSize] = P, Ee(f(S),
|
|
776
|
+
const r = D(1), p = D(10), b = D(0), w = D({}), $ = D(u.loading), B = D(u.data), y = D({}), R = () => {
|
|
777
|
+
const { fetch: f, call: A, mapProps: k } = u, N = w.value, M = r.value, P = p.value, S = Ae({}, N), U = s(k);
|
|
778
|
+
S[U.currentPage] = M, S[U.pageSize] = P, Ee(f(S), A, $, y);
|
|
779
779
|
};
|
|
780
|
-
ue(
|
|
781
|
-
const { mapProps:
|
|
782
|
-
|
|
780
|
+
ue(y, (f) => {
|
|
781
|
+
const { mapProps: A } = u, k = s(A);
|
|
782
|
+
B.value = f[k.rows], b.value = f[k.total];
|
|
783
783
|
});
|
|
784
784
|
const h = (f = {}) => {
|
|
785
|
-
|
|
785
|
+
w.value = f, r.value = 1, R();
|
|
786
786
|
}, v = (f = 1) => {
|
|
787
787
|
r.value = f;
|
|
788
788
|
}, V = (f = 10) => {
|
|
@@ -792,23 +792,23 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
792
792
|
R();
|
|
793
793
|
}), c({
|
|
794
794
|
refreshList: h
|
|
795
|
-
}), (f,
|
|
796
|
-
const
|
|
795
|
+
}), (f, A) => {
|
|
796
|
+
const k = g("el-table-column"), N = g("el-table"), M = De("loading");
|
|
797
797
|
return o(), T("div", Je, [
|
|
798
798
|
F("div", Qe, [
|
|
799
799
|
f.$slots.menu ? (o(), T("div", Ze, [
|
|
800
800
|
ie(f.$slots, "menu")
|
|
801
|
-
])) :
|
|
801
|
+
])) : x("", !0),
|
|
802
802
|
F("div", {
|
|
803
803
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
804
804
|
ref: _
|
|
805
805
|
}, [
|
|
806
|
-
G((o(), E(
|
|
806
|
+
G((o(), E(N, {
|
|
807
807
|
stripe: "",
|
|
808
808
|
border: "",
|
|
809
809
|
"highlight-current-row": "",
|
|
810
810
|
style: { width: "100%" },
|
|
811
|
-
data:
|
|
811
|
+
data: B.value,
|
|
812
812
|
"header-cell-style": {
|
|
813
813
|
fontWeight: "bold",
|
|
814
814
|
backgroundColor: "#EBEEF5",
|
|
@@ -816,15 +816,15 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
816
816
|
fontSize: "14px"
|
|
817
817
|
}
|
|
818
818
|
}, {
|
|
819
|
-
empty:
|
|
820
|
-
default:
|
|
821
|
-
l.selection ? (o(), E(
|
|
819
|
+
empty: C(() => []),
|
|
820
|
+
default: C(() => [
|
|
821
|
+
l.selection ? (o(), E(k, {
|
|
822
822
|
key: 0,
|
|
823
823
|
fixed: "left",
|
|
824
824
|
type: "selection",
|
|
825
825
|
width: "40"
|
|
826
|
-
})) :
|
|
827
|
-
(o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(
|
|
826
|
+
})) : x("", !0),
|
|
827
|
+
(o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(k, {
|
|
828
828
|
key: le,
|
|
829
829
|
label: S,
|
|
830
830
|
align: U,
|
|
@@ -832,9 +832,9 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
832
832
|
fixed: Z,
|
|
833
833
|
"min-width": `${S.length * 14 + 24}px`
|
|
834
834
|
}, {
|
|
835
|
-
default:
|
|
835
|
+
default: C(({ row: ee }) => [
|
|
836
836
|
ie(f.$slots, P, { row: ee }, () => [
|
|
837
|
-
|
|
837
|
+
O(Ye, {
|
|
838
838
|
data: ee[P]
|
|
839
839
|
}, null, 8, ["data"])
|
|
840
840
|
])
|
|
@@ -844,10 +844,10 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
844
844
|
]),
|
|
845
845
|
_: 3
|
|
846
846
|
}, 8, ["data", "header-cell-style"])), [
|
|
847
|
-
[M,
|
|
847
|
+
[M, $.value]
|
|
848
848
|
])
|
|
849
849
|
], 512),
|
|
850
|
-
|
|
850
|
+
O(Ke, {
|
|
851
851
|
total: b.value,
|
|
852
852
|
onOnCurrentChange: v,
|
|
853
853
|
onOnSizeChange: V
|
|
@@ -1020,27 +1020,27 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1020
1020
|
},
|
|
1021
1021
|
emits: ["on-fold"],
|
|
1022
1022
|
setup(l, { emit: c }) {
|
|
1023
|
-
const u =
|
|
1023
|
+
const u = D(!1), d = () => {
|
|
1024
1024
|
u.value = !s(u), c("on-fold", u.value);
|
|
1025
1025
|
};
|
|
1026
1026
|
return (_, n) => {
|
|
1027
1027
|
const r = g("el-button"), p = g("el-icon");
|
|
1028
1028
|
return o(), T("div", Ut, [
|
|
1029
|
-
|
|
1029
|
+
O(r, {
|
|
1030
1030
|
type: "primary",
|
|
1031
1031
|
icon: s(St),
|
|
1032
1032
|
onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
|
|
1033
1033
|
}, {
|
|
1034
|
-
default:
|
|
1034
|
+
default: C(() => [
|
|
1035
1035
|
K("搜索")
|
|
1036
1036
|
]),
|
|
1037
1037
|
_: 1
|
|
1038
1038
|
}, 8, ["icon"]),
|
|
1039
|
-
|
|
1039
|
+
O(r, {
|
|
1040
1040
|
icon: s(Ot),
|
|
1041
1041
|
onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
|
|
1042
1042
|
}, {
|
|
1043
|
-
default:
|
|
1043
|
+
default: C(() => [
|
|
1044
1044
|
K("清空")
|
|
1045
1045
|
]),
|
|
1046
1046
|
_: 1
|
|
@@ -1052,18 +1052,18 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1052
1052
|
onClick: d
|
|
1053
1053
|
}, [
|
|
1054
1054
|
K(j(u.value ? "收起" : "展开"), 1),
|
|
1055
|
-
|
|
1056
|
-
default:
|
|
1057
|
-
G(
|
|
1055
|
+
O(p, { color: "#409EFC" }, {
|
|
1056
|
+
default: C(() => [
|
|
1057
|
+
G(O(s($t), null, null, 512), [
|
|
1058
1058
|
[Q, u.value]
|
|
1059
1059
|
]),
|
|
1060
|
-
G(
|
|
1060
|
+
G(O(s(st), null, null, 512), [
|
|
1061
1061
|
[Q, !u.value]
|
|
1062
1062
|
])
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 1
|
|
1065
1065
|
})
|
|
1066
|
-
])) :
|
|
1066
|
+
])) : x("", !0)
|
|
1067
1067
|
]);
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
@@ -1103,7 +1103,7 @@ const Lt = { class: "bsgoal-base-cascader" }, zt = {
|
|
|
1103
1103
|
},
|
|
1104
1104
|
emits: ["update:model-value", "on-change"],
|
|
1105
1105
|
setup(l, { emit: c }) {
|
|
1106
|
-
const u =
|
|
1106
|
+
const u = D({
|
|
1107
1107
|
checkStrictly: !0,
|
|
1108
1108
|
multiple: !1
|
|
1109
1109
|
}), d = (_) => {
|
|
@@ -1112,7 +1112,7 @@ const Lt = { class: "bsgoal-base-cascader" }, zt = {
|
|
|
1112
1112
|
return (_, n) => {
|
|
1113
1113
|
const r = g("el-cascader");
|
|
1114
1114
|
return o(), T("div", Lt, [
|
|
1115
|
-
|
|
1115
|
+
O(r, {
|
|
1116
1116
|
clearable: "",
|
|
1117
1117
|
class: "base_cascader",
|
|
1118
1118
|
"model-value": l.modelValue,
|
|
@@ -1169,12 +1169,12 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1169
1169
|
},
|
|
1170
1170
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1171
1171
|
setup(l, { emit: c }) {
|
|
1172
|
-
const u = l, d =
|
|
1172
|
+
const u = l, d = D(null), _ = pe.align, n = D({});
|
|
1173
1173
|
he(() => {
|
|
1174
1174
|
const { configOptions: v } = u;
|
|
1175
1175
|
s(v).forEach((f) => {
|
|
1176
|
-
const { value:
|
|
1177
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(
|
|
1176
|
+
const { value: A, prop: k = "", type: N = "" } = f;
|
|
1177
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(A) ? A : "";
|
|
1178
1178
|
});
|
|
1179
1179
|
});
|
|
1180
1180
|
const r = oe(() => {
|
|
@@ -1228,26 +1228,26 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1228
1228
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1229
1229
|
}
|
|
1230
1230
|
return V;
|
|
1231
|
-
},
|
|
1231
|
+
}, w = () => {
|
|
1232
1232
|
const v = s(n), { configOptions: V } = u, f = s(V);
|
|
1233
|
-
for (const
|
|
1234
|
-
const { type:
|
|
1235
|
-
if (
|
|
1236
|
-
const { 0: P = "", 1: S = "" } = v[M], { 0: U = "", 1: X = "" } =
|
|
1233
|
+
for (const A of f) {
|
|
1234
|
+
const { type: k = "", range: N = [], prop: M = "" } = A;
|
|
1235
|
+
if (k.endsWith("range") && N && N.length === 2) {
|
|
1236
|
+
const { 0: P = "", 1: S = "" } = v[M], { 0: U = "", 1: X = "" } = N;
|
|
1237
1237
|
v[U] = P, v[X] = S;
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
c("on-search", v), c("update:modelValue", v);
|
|
1241
1241
|
};
|
|
1242
1242
|
Ce(() => {
|
|
1243
|
-
|
|
1243
|
+
w();
|
|
1244
1244
|
});
|
|
1245
|
-
const
|
|
1245
|
+
const $ = () => {
|
|
1246
1246
|
d.value.resetFields(), c("on-clear", n.value);
|
|
1247
|
-
},
|
|
1248
|
-
|
|
1247
|
+
}, B = $e("transferFoldStatus"), y = D(!1), R = (v = !1) => {
|
|
1248
|
+
y.value = v, B && (B.value = v), c("on-fold", y);
|
|
1249
1249
|
}, h = (v, V) => {
|
|
1250
|
-
|
|
1250
|
+
w();
|
|
1251
1251
|
const f = {
|
|
1252
1252
|
type: v,
|
|
1253
1253
|
prop: V,
|
|
@@ -1256,7 +1256,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1256
1256
|
c("on-change", f);
|
|
1257
1257
|
};
|
|
1258
1258
|
return (v, V) => {
|
|
1259
|
-
const f = g("el-input"),
|
|
1259
|
+
const f = g("el-input"), A = g("el-input-number"), k = g("el-radio"), N = g("el-radio-group"), M = g("el-option"), P = g("el-select"), S = g("el-slider"), U = g("el-switch"), X = g("el-date-picker"), Z = g("el-time-picker"), le = g("el-checkbox"), ee = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), L = g("el-form");
|
|
1260
1260
|
return o(), T("div", Ht, [
|
|
1261
1261
|
F("div", Gt, [
|
|
1262
1262
|
G((o(), E(L, {
|
|
@@ -1266,9 +1266,9 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1266
1266
|
"show-message": !1,
|
|
1267
1267
|
model: n.value
|
|
1268
1268
|
}, {
|
|
1269
|
-
default:
|
|
1270
|
-
|
|
1271
|
-
default:
|
|
1269
|
+
default: C(() => [
|
|
1270
|
+
O(me, null, {
|
|
1271
|
+
default: C(() => [
|
|
1272
1272
|
(o(!0), T(I, null, W(s(r), ({
|
|
1273
1273
|
label: m = "",
|
|
1274
1274
|
prop: a = "",
|
|
@@ -1287,12 +1287,12 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1287
1287
|
sm: 12,
|
|
1288
1288
|
md: l.medium
|
|
1289
1289
|
}, {
|
|
1290
|
-
default:
|
|
1291
|
-
|
|
1290
|
+
default: C(() => [
|
|
1291
|
+
O(de, {
|
|
1292
1292
|
label: m,
|
|
1293
1293
|
prop: a
|
|
1294
1294
|
}, {
|
|
1295
|
-
default:
|
|
1295
|
+
default: C(() => [
|
|
1296
1296
|
se ? (o(), T("div", jt, j(n.value[a]), 1)) : (o(), T(I, { key: 0 }, [
|
|
1297
1297
|
i === s(e).INPUT ? (o(), E(f, {
|
|
1298
1298
|
key: 0,
|
|
@@ -1301,7 +1301,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1301
1301
|
placeholder: p(i, m, z),
|
|
1302
1302
|
clearable: re,
|
|
1303
1303
|
onChange: (t) => h(i, a)
|
|
1304
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
1304
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
|
|
1305
1305
|
i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
|
|
1306
1306
|
key: 1,
|
|
1307
1307
|
modelValue: n.value[a],
|
|
@@ -1311,34 +1311,34 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1311
1311
|
clearable: re,
|
|
1312
1312
|
placeholder: p(i, m, z),
|
|
1313
1313
|
onChange: (t) => h(i, a)
|
|
1314
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1315
|
-
i === s(e).INPUT_NUMBER ? (o(), E(
|
|
1314
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
|
|
1315
|
+
i === s(e).INPUT_NUMBER ? (o(), E(A, {
|
|
1316
1316
|
key: 2,
|
|
1317
1317
|
modelValue: v.num,
|
|
1318
1318
|
"onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
|
|
1319
1319
|
min: ne,
|
|
1320
1320
|
max: q,
|
|
1321
1321
|
onChange: h
|
|
1322
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1323
|
-
i === s(e).RADIO ? (o(), E(
|
|
1322
|
+
}, null, 8, ["modelValue", "min", "max"])) : x("", !0),
|
|
1323
|
+
i === s(e).RADIO ? (o(), E(N, {
|
|
1324
1324
|
key: 3,
|
|
1325
1325
|
modelValue: n.value[a],
|
|
1326
1326
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1327
1327
|
onChange: (t) => h(i, a)
|
|
1328
1328
|
}, {
|
|
1329
|
-
default:
|
|
1330
|
-
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(
|
|
1329
|
+
default: C(() => [
|
|
1330
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(k, {
|
|
1331
1331
|
key: H,
|
|
1332
1332
|
label: t.value
|
|
1333
1333
|
}, {
|
|
1334
|
-
default:
|
|
1334
|
+
default: C(() => [
|
|
1335
1335
|
K(j(t.label), 1)
|
|
1336
1336
|
]),
|
|
1337
1337
|
_: 2
|
|
1338
1338
|
}, 1032, ["label"]))), 128))
|
|
1339
1339
|
]),
|
|
1340
1340
|
_: 2
|
|
1341
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1341
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
|
|
1342
1342
|
i === s(e).SELECT ? (o(), E(P, {
|
|
1343
1343
|
key: 4,
|
|
1344
1344
|
modelValue: n.value[a],
|
|
@@ -1346,7 +1346,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1346
1346
|
placeholder: p(i, m, z),
|
|
1347
1347
|
onChange: (t) => h(i, a)
|
|
1348
1348
|
}, {
|
|
1349
|
-
default:
|
|
1349
|
+
default: C(() => [
|
|
1350
1350
|
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(M, {
|
|
1351
1351
|
key: H,
|
|
1352
1352
|
label: t.label,
|
|
@@ -1354,7 +1354,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1354
1354
|
}, null, 8, ["label", "value"]))), 128))
|
|
1355
1355
|
]),
|
|
1356
1356
|
_: 2
|
|
1357
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1357
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
|
|
1358
1358
|
i === s(e).SLIDER ? (o(), E(S, {
|
|
1359
1359
|
key: 5,
|
|
1360
1360
|
modelValue: n.value[a],
|
|
@@ -1362,7 +1362,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1362
1362
|
min: ne,
|
|
1363
1363
|
max: q,
|
|
1364
1364
|
onChange: (t) => h(i, a)
|
|
1365
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1365
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
|
|
1366
1366
|
i === s(e).SWITCH ? (o(), E(U, {
|
|
1367
1367
|
key: 6,
|
|
1368
1368
|
modelValue: n.value[a],
|
|
@@ -1370,7 +1370,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1370
1370
|
"active-value": Y[0] || !0,
|
|
1371
1371
|
"inactive-value": Y[1] || !1,
|
|
1372
1372
|
onChange: (t) => h(i, a)
|
|
1373
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1373
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
|
|
1374
1374
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
1375
1375
|
i
|
|
1376
1376
|
) ? (o(), E(X, {
|
|
@@ -1382,7 +1382,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1382
1382
|
type: i,
|
|
1383
1383
|
placeholder: p(i, m, z),
|
|
1384
1384
|
onChange: (t) => h(i, a)
|
|
1385
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1385
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
|
|
1386
1386
|
[
|
|
1387
1387
|
s(e).DATE_RANGE,
|
|
1388
1388
|
s(e).MONTH_RANGE,
|
|
@@ -1396,7 +1396,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1396
1396
|
"start-placeholder": p(i, m, z)[0],
|
|
1397
1397
|
"end-placeholder": p(i, m, z)[1],
|
|
1398
1398
|
onChange: (t) => h(i, a)
|
|
1399
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1399
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
1400
1400
|
[s(e).TIME].includes(i) ? (o(), E(Z, {
|
|
1401
1401
|
key: 9,
|
|
1402
1402
|
modelValue: n.value[a],
|
|
@@ -1405,7 +1405,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1405
1405
|
"value-format": b(i, J),
|
|
1406
1406
|
placeholder: p(i, m, z),
|
|
1407
1407
|
onChange: (t) => h(i, a)
|
|
1408
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1408
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
|
|
1409
1409
|
[s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
|
|
1410
1410
|
key: 10,
|
|
1411
1411
|
modelValue: n.value[a],
|
|
@@ -1415,26 +1415,26 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1415
1415
|
"start-placeholder": p(i, m, z)[0],
|
|
1416
1416
|
"end-placeholder": p(i, m, z)[1],
|
|
1417
1417
|
onChange: (t) => h(i, a)
|
|
1418
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1418
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
1419
1419
|
[s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
|
|
1420
1420
|
key: 11,
|
|
1421
1421
|
modelValue: n.value[a],
|
|
1422
1422
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1423
1423
|
onChange: (t) => h(i, a)
|
|
1424
1424
|
}, {
|
|
1425
|
-
default:
|
|
1425
|
+
default: C(() => [
|
|
1426
1426
|
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(le, {
|
|
1427
1427
|
key: H,
|
|
1428
1428
|
label: t.value
|
|
1429
1429
|
}, {
|
|
1430
|
-
default:
|
|
1430
|
+
default: C(() => [
|
|
1431
1431
|
K(j(t.label), 1)
|
|
1432
1432
|
]),
|
|
1433
1433
|
_: 2
|
|
1434
1434
|
}, 1032, ["label"]))), 128))
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 2
|
|
1437
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1437
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
|
|
1438
1438
|
[s(e).CASCADER].includes(i) ? (o(), E(Yt, {
|
|
1439
1439
|
key: 12,
|
|
1440
1440
|
modelValue: n.value[a],
|
|
@@ -1442,15 +1442,15 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1442
1442
|
"data-options": Y,
|
|
1443
1443
|
placeholder: p(i, m, z),
|
|
1444
1444
|
onOnChange: (t) => h(i, a)
|
|
1445
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1446
|
-
[].includes(i) ? (o(), T(I, { key: 13 }, [], 64)) :
|
|
1445
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : x("", !0),
|
|
1446
|
+
[].includes(i) ? (o(), T(I, { key: 13 }, [], 64)) : x("", !0),
|
|
1447
1447
|
[s(e).OPERATION].includes(i) ? (o(), E(Pt, {
|
|
1448
1448
|
key: 14,
|
|
1449
1449
|
fold: te >= 7,
|
|
1450
|
-
onOnSearch:
|
|
1451
|
-
onOnClear:
|
|
1450
|
+
onOnSearch: w,
|
|
1451
|
+
onOnClear: $,
|
|
1452
1452
|
onOnFold: R
|
|
1453
|
-
}, null, 8, ["fold"])) :
|
|
1453
|
+
}, null, 8, ["fold"])) : x("", !0)
|
|
1454
1454
|
], 64))
|
|
1455
1455
|
]),
|
|
1456
1456
|
_: 2
|
|
@@ -1458,7 +1458,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 2
|
|
1460
1460
|
}, 1032, ["md"])), [
|
|
1461
|
-
[Q, te < 7 || i === s(e).OPERATION || te >= 7 &&
|
|
1461
|
+
[Q, te < 7 || i === s(e).OPERATION || te >= 7 && y.value]
|
|
1462
1462
|
])), 128))
|
|
1463
1463
|
]),
|
|
1464
1464
|
_: 1
|
|
@@ -1469,7 +1469,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1469
1469
|
[s(_)]
|
|
1470
1470
|
])
|
|
1471
1471
|
]),
|
|
1472
|
-
|
|
1472
|
+
O(be)
|
|
1473
1473
|
]);
|
|
1474
1474
|
};
|
|
1475
1475
|
}
|
|
@@ -1555,19 +1555,25 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
|
|
|
1555
1555
|
}
|
|
1556
1556
|
},
|
|
1557
1557
|
setup(l) {
|
|
1558
|
-
const c = l, u =
|
|
1558
|
+
const c = l, u = D(!1);
|
|
1559
1559
|
Oe("transferFoldStatus", u);
|
|
1560
|
-
const d = s(c.configOptions), _ = oe(() => d
|
|
1561
|
-
|
|
1560
|
+
const d = s(c.configOptions), _ = oe(() => d.filter(($) => {
|
|
1561
|
+
const { type: B = "" } = $;
|
|
1562
|
+
return !!B;
|
|
1563
|
+
})), n = oe(() => d.filter(($) => {
|
|
1564
|
+
const { item: B = !1 } = $;
|
|
1565
|
+
return !B;
|
|
1566
|
+
})), r = ke(), p = D(Object.keys(r)), b = D(null), w = ($) => {
|
|
1567
|
+
b.value.refreshList($);
|
|
1562
1568
|
};
|
|
1563
|
-
return (
|
|
1569
|
+
return ($, B) => (o(), T("div", Kt, [
|
|
1564
1570
|
F("div", qt, [
|
|
1565
|
-
|
|
1571
|
+
O(Xt, {
|
|
1566
1572
|
"config-options": s(_),
|
|
1567
|
-
onOnSearch:
|
|
1568
|
-
onOnClear:
|
|
1573
|
+
onOnSearch: w,
|
|
1574
|
+
onOnClear: w
|
|
1569
1575
|
}, null, 8, ["config-options"]),
|
|
1570
|
-
|
|
1576
|
+
O(xe, {
|
|
1571
1577
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1572
1578
|
ref: b,
|
|
1573
1579
|
operationWidth: l.operationWidth,
|
|
@@ -1579,10 +1585,10 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
|
|
|
1579
1585
|
fetch: l.fetch,
|
|
1580
1586
|
call: l.call
|
|
1581
1587
|
}, Ne({ _: 2 }, [
|
|
1582
|
-
W(p.value, (
|
|
1583
|
-
name:
|
|
1584
|
-
fn:
|
|
1585
|
-
ie(
|
|
1588
|
+
W(p.value, (y) => ({
|
|
1589
|
+
name: y,
|
|
1590
|
+
fn: C(({ row: R = {} }) => [
|
|
1591
|
+
ie($.$slots, y, { row: R })
|
|
1586
1592
|
])
|
|
1587
1593
|
}))
|
|
1588
1594
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1596,7 +1602,7 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
|
1596
1602
|
props: ["modelValue"],
|
|
1597
1603
|
emits: ["update:modelValue"],
|
|
1598
1604
|
setup(l, { emit: c }) {
|
|
1599
|
-
let u =
|
|
1605
|
+
let u = D(!0);
|
|
1600
1606
|
const d = () => {
|
|
1601
1607
|
u.value = !u.value, c("update:modelValue", u.value);
|
|
1602
1608
|
};
|
|
@@ -1607,12 +1613,12 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
|
1607
1613
|
class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
|
|
1608
1614
|
onClick: d
|
|
1609
1615
|
}, [
|
|
1610
|
-
|
|
1611
|
-
default:
|
|
1612
|
-
G(
|
|
1616
|
+
O(r, { color: "#fff" }, {
|
|
1617
|
+
default: C(() => [
|
|
1618
|
+
G(O(s(mt), null, null, 512), [
|
|
1613
1619
|
[Q, s(u)]
|
|
1614
1620
|
]),
|
|
1615
|
-
G(
|
|
1621
|
+
G(O(s(Et), null, null, 512), [
|
|
1616
1622
|
[Q, !s(u)]
|
|
1617
1623
|
])
|
|
1618
1624
|
]),
|
|
@@ -1679,39 +1685,39 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
|
|
|
1679
1685
|
},
|
|
1680
1686
|
emits: ["on-click"],
|
|
1681
1687
|
setup(l, { emit: c }) {
|
|
1682
|
-
const u = l, d = pe.height, _ =
|
|
1683
|
-
ue(_, (
|
|
1684
|
-
n.value.filter(
|
|
1688
|
+
const u = l, d = pe.height, _ = D(""), n = D(null);
|
|
1689
|
+
ue(_, ($) => {
|
|
1690
|
+
n.value.filter($);
|
|
1685
1691
|
});
|
|
1686
|
-
const r = (
|
|
1687
|
-
c("on-click",
|
|
1688
|
-
},
|
|
1689
|
-
if (
|
|
1690
|
-
const R = await
|
|
1691
|
-
return
|
|
1692
|
+
const r = ($, B) => $ ? B.label.includes($) : !0, p = D(!0), b = ($, B, y, R) => {
|
|
1693
|
+
c("on-click", $, B, y, R);
|
|
1694
|
+
}, w = async ($, B, y) => {
|
|
1695
|
+
if ($.level === 0) {
|
|
1696
|
+
const R = await y.initNode($);
|
|
1697
|
+
return B(R || []);
|
|
1692
1698
|
} else {
|
|
1693
|
-
const R = await
|
|
1694
|
-
|
|
1699
|
+
const R = await y.lazyLoad($);
|
|
1700
|
+
B(R || []);
|
|
1695
1701
|
}
|
|
1696
1702
|
};
|
|
1697
|
-
return (
|
|
1698
|
-
const
|
|
1703
|
+
return ($, B) => {
|
|
1704
|
+
const y = g("el-input"), R = g("el-tree");
|
|
1699
1705
|
return o(), T("div", aa, [
|
|
1700
1706
|
G((o(), T("div", la, [
|
|
1701
1707
|
G(F("div", na, [
|
|
1702
|
-
|
|
1708
|
+
O(y, {
|
|
1703
1709
|
modelValue: _.value,
|
|
1704
|
-
"onUpdate:modelValue":
|
|
1710
|
+
"onUpdate:modelValue": B[0] || (B[0] = (h) => _.value = h),
|
|
1705
1711
|
class: "base_tree_main_input",
|
|
1706
1712
|
placeholder: "输入关键字过滤"
|
|
1707
1713
|
}, null, 8, ["modelValue"]),
|
|
1708
|
-
|
|
1714
|
+
O(R, {
|
|
1709
1715
|
ref_key: "EL_TREE_REF",
|
|
1710
1716
|
ref: n,
|
|
1711
1717
|
lazy: "",
|
|
1712
1718
|
"highlight-current": "",
|
|
1713
1719
|
"empty-text": "暂无数据",
|
|
1714
|
-
load: (h, v) =>
|
|
1720
|
+
load: (h, v) => w(h, v, u),
|
|
1715
1721
|
"expand-on-click-node": !1,
|
|
1716
1722
|
props: l.treeProps,
|
|
1717
1723
|
"filter-node-method": r,
|
|
@@ -1720,12 +1726,12 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
|
|
|
1720
1726
|
], 512), [
|
|
1721
1727
|
[Q, p.value]
|
|
1722
1728
|
]),
|
|
1723
|
-
G(
|
|
1729
|
+
G(O(be, { vertical: "" }, null, 512), [
|
|
1724
1730
|
[Q, p.value]
|
|
1725
1731
|
]),
|
|
1726
|
-
|
|
1732
|
+
O(ta, {
|
|
1727
1733
|
modelValue: p.value,
|
|
1728
|
-
"onUpdate:modelValue":
|
|
1734
|
+
"onUpdate:modelValue": B[1] || (B[1] = (h) => p.value = h)
|
|
1729
1735
|
}, null, 8, ["modelValue"])
|
|
1730
1736
|
])), [
|
|
1731
1737
|
[s(d), l.gasket]
|
|
@@ -1769,7 +1775,7 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
|
|
|
1769
1775
|
},
|
|
1770
1776
|
emits: ["update:modelValue", "on-confirm"],
|
|
1771
1777
|
setup(l, { emit: c }) {
|
|
1772
|
-
const u = l, d =
|
|
1778
|
+
const u = l, d = D(u.modelValue.value), _ = () => {
|
|
1773
1779
|
d.value = !1;
|
|
1774
1780
|
}, n = () => {
|
|
1775
1781
|
d.value = !1, c("on-confirm");
|
|
@@ -1782,37 +1788,37 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
|
|
|
1782
1788
|
), ue(d, (r) => {
|
|
1783
1789
|
c("update:modelValue", r);
|
|
1784
1790
|
}), (r, p) => {
|
|
1785
|
-
const b = g("el-button"),
|
|
1791
|
+
const b = g("el-button"), w = g("el-dialog");
|
|
1786
1792
|
return o(), T("div", sa, [
|
|
1787
1793
|
F("div", ra, [
|
|
1788
|
-
|
|
1794
|
+
O(w, {
|
|
1789
1795
|
modelValue: d.value,
|
|
1790
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1796
|
+
"onUpdate:modelValue": p[0] || (p[0] = ($) => d.value = $),
|
|
1791
1797
|
"custom-class": "bsgoal_base_dialog_main"
|
|
1792
1798
|
}, {
|
|
1793
|
-
header:
|
|
1799
|
+
header: C(() => [
|
|
1794
1800
|
F("div", ca, j(l.title), 1)
|
|
1795
1801
|
]),
|
|
1796
|
-
footer:
|
|
1802
|
+
footer: C(() => [
|
|
1797
1803
|
F("span", da, [
|
|
1798
|
-
|
|
1799
|
-
default:
|
|
1804
|
+
O(b, { onClick: _ }, {
|
|
1805
|
+
default: C(() => [
|
|
1800
1806
|
K(j(l.cancelTxt), 1)
|
|
1801
1807
|
]),
|
|
1802
1808
|
_: 1
|
|
1803
1809
|
}),
|
|
1804
|
-
|
|
1810
|
+
O(b, {
|
|
1805
1811
|
type: "primary",
|
|
1806
1812
|
onClick: n
|
|
1807
1813
|
}, {
|
|
1808
|
-
default:
|
|
1814
|
+
default: C(() => [
|
|
1809
1815
|
K(j(l.confirmTxt), 1)
|
|
1810
1816
|
]),
|
|
1811
1817
|
_: 1
|
|
1812
1818
|
})
|
|
1813
1819
|
])
|
|
1814
1820
|
]),
|
|
1815
|
-
default:
|
|
1821
|
+
default: C(() => [
|
|
1816
1822
|
F("div", ia, [
|
|
1817
1823
|
ie(r.$slots, "default")
|
|
1818
1824
|
])
|