@bsgoal/common 1.4.5 → 1.4.7
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 +424 -416
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/combines/useFetchs.js +9 -2
- package/src/components/bsgoal-base-cascader/demo.vue +82 -270
- package/src/components/bsgoal-base-cascader/index.vue +3 -2
- package/src/components/bsgoal-base-search/demo.vue +2 -1
- package/src/components/bsgoal-base-search/index.vue +16 -4
- package/src/components/bsgoal-base-search-table/demo.vue +94 -7
- package/src/components/bsgoal-base-search-table/index.vue +3 -1
- package/src/components/bsgoal-base-table/index.vue +2 -2
- package/src/components/bsgoal-base-table-empty/demo.vue +38 -0
- package/src/components/bsgoal-base-table-empty/index.vue +48 -0
- package/src/router/index.js +14 -9
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var we = Object.defineProperty;
|
|
2
2
|
var Te = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var Ve = (l, c, u) => c in l ?
|
|
3
|
+
var xe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Ve = (l, c, u) => c in l ? we(l, c, { enumerable: !0, configurable: !0, writable: !0, value: u }) : l[c] = u, Ae = (l, c) => {
|
|
5
5
|
for (var u in c || (c = {}))
|
|
6
|
-
|
|
6
|
+
xe.call(c, u) && Ve(l, u, c[u]);
|
|
7
7
|
if (Te)
|
|
8
8
|
for (var u of Te(c))
|
|
9
9
|
Be.call(c, u) && Ve(l, u, c[u]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
|
-
import { ref as D, watchEffect as he, unref as s, computed as oe, resolveComponent as
|
|
13
|
-
import { ElMessage as
|
|
12
|
+
import { ref as D, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as o, createElementBlock as V, createElementVNode as F, withDirectives as j, createBlock as b, withCtx as C, createVNode as O, Fragment as P, renderList as X, createCommentVNode as y, createTextVNode as K, toDisplayString as W, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ve, vShow as te, isProxy as Oe, toRaw as ke, provide as Ne, useSlots as Fe, createSlots as Me } from "vue";
|
|
13
|
+
import { ElMessage as Re } from "element-plus";
|
|
14
14
|
const e = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
@@ -34,22 +34,22 @@ const e = {
|
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
36
|
let fe = null;
|
|
37
|
-
const
|
|
37
|
+
const ge = (l) => {
|
|
38
38
|
const c = [], u = [], d = (n = []) => {
|
|
39
|
-
const r = n.map((T) => T.width),
|
|
39
|
+
const r = n.map((T) => T.width), E = Math.max(...r);
|
|
40
40
|
n.forEach((T) => {
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
41
|
+
const { labelEl: x } = T;
|
|
42
|
+
x.style.width = `${E}px`;
|
|
43
43
|
});
|
|
44
44
|
}, _ = () => {
|
|
45
45
|
if (l) {
|
|
46
46
|
const n = l.querySelectorAll(".el-form-item__label");
|
|
47
47
|
if (n && n.length) {
|
|
48
48
|
let r = 0;
|
|
49
|
-
n.forEach((
|
|
50
|
-
|
|
51
|
-
const { x
|
|
52
|
-
T === 0 && (r =
|
|
49
|
+
n.forEach((E, T) => {
|
|
50
|
+
E.style.width = "initial", E.style.whiteSpace = "nowrap";
|
|
51
|
+
const { x = 0, width: $ = 0 } = E.getBoundingClientRect(), B = { x, width: $, labelEl: E };
|
|
52
|
+
T === 0 && (r = x), x === r ? c.push(B) : u.push(B);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -64,14 +64,14 @@ const ve = (l) => {
|
|
|
64
64
|
align: {
|
|
65
65
|
created(l) {
|
|
66
66
|
window.addEventListener("resize", () => {
|
|
67
|
-
|
|
67
|
+
ge(l);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
mounted(l) {
|
|
71
|
-
|
|
71
|
+
ge(l);
|
|
72
72
|
},
|
|
73
73
|
unmounted(l) {
|
|
74
|
-
window.removeEventListener("resize",
|
|
74
|
+
window.removeEventListener("resize", ge(l));
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
@@ -84,9 +84,9 @@ const ve = (l) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const Se = { class: "bsgoal-base-form" }, Ue = { class: "base_form" }, Ie = { key: 1 }, Pe = {
|
|
88
88
|
name: "BsgoalBaseForm"
|
|
89
|
-
},
|
|
89
|
+
}, Le = /* @__PURE__ */ Object.assign(Pe, {
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* >----------props----------<
|
|
@@ -130,22 +130,22 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
130
130
|
setup(l, { expose: c, emit: u }) {
|
|
131
131
|
const d = l, _ = D(null), n = pe.align, r = D({});
|
|
132
132
|
he(() => {
|
|
133
|
-
const { configOptions:
|
|
134
|
-
A.forEach((
|
|
135
|
-
const { value: k = "", prop: N = "", type:
|
|
136
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(
|
|
133
|
+
const { configOptions: v, values: h } = d, A = s(v), f = s(h);
|
|
134
|
+
A.forEach((p) => {
|
|
135
|
+
const { value: k = "", prop: N = "", type: R = "" } = p;
|
|
136
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(R), r.value[N] = f[N] || k;
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
-
const
|
|
140
|
-
const { configOptions:
|
|
141
|
-
return s(
|
|
142
|
-
let { rules:
|
|
139
|
+
const E = oe(() => {
|
|
140
|
+
const { configOptions: v } = d;
|
|
141
|
+
return s(v).map((f) => {
|
|
142
|
+
let { rules: p = !1, label: k = "" } = f;
|
|
143
143
|
const N = { required: !0, message: `${k}不能为空`, trigger: "blur" };
|
|
144
|
-
return
|
|
144
|
+
return p && (typeof p == "boolean" ? p = [N] : Array.isArray(p) ? p = [N, ...p] : p = [N, p]), f.rules = p, f;
|
|
145
145
|
});
|
|
146
|
-
}), T = (
|
|
146
|
+
}), T = (v = "", h = "", A = "") => {
|
|
147
147
|
if (!A)
|
|
148
|
-
switch (
|
|
148
|
+
switch (v) {
|
|
149
149
|
case e.INPUT:
|
|
150
150
|
case e.INPUT_TEXT_AREA:
|
|
151
151
|
return `请输入${h}`;
|
|
@@ -166,9 +166,9 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
166
166
|
return ["开始月份", "结束月份"];
|
|
167
167
|
}
|
|
168
168
|
return A;
|
|
169
|
-
},
|
|
169
|
+
}, x = (v = "", h = "") => {
|
|
170
170
|
if (!h)
|
|
171
|
-
switch (
|
|
171
|
+
switch (v) {
|
|
172
172
|
case e.WEEK:
|
|
173
173
|
return "ww";
|
|
174
174
|
case e.DATE:
|
|
@@ -189,20 +189,20 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
189
189
|
}
|
|
190
190
|
return h;
|
|
191
191
|
}, $ = () => {
|
|
192
|
-
const
|
|
192
|
+
const v = s(r), { configOptions: h } = d, A = s(h);
|
|
193
193
|
for (const f of A) {
|
|
194
|
-
const { type:
|
|
195
|
-
if (
|
|
196
|
-
const { 0:
|
|
197
|
-
|
|
194
|
+
const { type: p = "", range: k = [], prop: N = "" } = f;
|
|
195
|
+
if (p.endsWith("range") && k && k.length === 2) {
|
|
196
|
+
const { 0: R = "", 1: S = "" } = v[N], { 0: I = "", 1: M = "" } = k;
|
|
197
|
+
v[I] = R, v[M] = S;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
return u("on-form",
|
|
200
|
+
return u("on-form", v), v;
|
|
201
201
|
}, B = () => {
|
|
202
202
|
_.value.resetFields(), u("on-clear", r.value);
|
|
203
|
-
},
|
|
203
|
+
}, w = (v, h) => {
|
|
204
204
|
const A = {
|
|
205
|
-
type:
|
|
205
|
+
type: v,
|
|
206
206
|
prop: h,
|
|
207
207
|
value: r.value[h] || ""
|
|
208
208
|
};
|
|
@@ -211,28 +211,28 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
211
211
|
return c({
|
|
212
212
|
triggerOperationClear: B,
|
|
213
213
|
triggerOperationForm: $,
|
|
214
|
-
validateForm: (
|
|
214
|
+
validateForm: (v = () => {
|
|
215
215
|
}) => {
|
|
216
216
|
_.value.validate((h = !1, A = {}) => {
|
|
217
217
|
if (h) {
|
|
218
218
|
const f = $();
|
|
219
|
-
|
|
219
|
+
v(f);
|
|
220
220
|
} else {
|
|
221
|
-
|
|
221
|
+
v(!1), console.log("field", A);
|
|
222
222
|
const f = Object.keys(A)[0], {
|
|
223
223
|
[f]: {
|
|
224
|
-
0: { message:
|
|
224
|
+
0: { message: p = "" }
|
|
225
225
|
}
|
|
226
226
|
} = A;
|
|
227
|
-
|
|
227
|
+
Re.error(p);
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
}), (
|
|
232
|
-
const A =
|
|
233
|
-
return o(), V("div",
|
|
234
|
-
F("div",
|
|
235
|
-
|
|
231
|
+
}), (v, h) => {
|
|
232
|
+
const A = g("el-input"), f = g("el-input-number"), p = g("el-radio"), k = g("el-radio-group"), N = g("el-option"), R = g("el-select"), S = g("el-slider"), I = g("el-switch"), M = g("el-date-picker"), L = g("el-time-picker"), q = g("el-checkbox"), Z = g("el-checkbox-group"), J = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
|
|
233
|
+
return o(), V("div", Se, [
|
|
234
|
+
F("div", Ue, [
|
|
235
|
+
j((o(), b(me, {
|
|
236
236
|
ref_key: "EL_FORM_REF",
|
|
237
237
|
ref: _,
|
|
238
238
|
"label-suffix": ":",
|
|
@@ -241,175 +241,175 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
241
241
|
default: C(() => [
|
|
242
242
|
O(_e, null, {
|
|
243
243
|
default: C(() => [
|
|
244
|
-
(o(!0), V(P, null,
|
|
245
|
-
label:
|
|
244
|
+
(o(!0), V(P, null, X(s(E), ({
|
|
245
|
+
label: z = "",
|
|
246
246
|
prop: m = "",
|
|
247
247
|
type: a = "text",
|
|
248
248
|
placeholder: i = "",
|
|
249
|
-
readonly:
|
|
249
|
+
readonly: Y = !1,
|
|
250
250
|
clearable: se = !0,
|
|
251
251
|
rows: re = 2,
|
|
252
252
|
min: ce = 1,
|
|
253
253
|
max: ne = 10,
|
|
254
|
-
range:
|
|
255
|
-
format:
|
|
256
|
-
rules:
|
|
257
|
-
} = {}, ae) => (o(),
|
|
254
|
+
range: Q = [],
|
|
255
|
+
format: H = "",
|
|
256
|
+
rules: ee = []
|
|
257
|
+
} = {}, ae) => (o(), b(de, {
|
|
258
258
|
key: ae,
|
|
259
259
|
xs: 24,
|
|
260
260
|
sm: 24,
|
|
261
261
|
md: l.medium
|
|
262
262
|
}, {
|
|
263
263
|
default: C(() => [
|
|
264
|
-
O(
|
|
265
|
-
label:
|
|
264
|
+
O(J, {
|
|
265
|
+
label: z,
|
|
266
266
|
prop: m,
|
|
267
|
-
rules:
|
|
267
|
+
rules: ee
|
|
268
268
|
}, {
|
|
269
269
|
default: C(() => [
|
|
270
|
-
|
|
271
|
-
a === s(e).INPUT ? (o(),
|
|
270
|
+
Y ? (o(), V("div", Ie, W(r.value[m]), 1)) : (o(), V(P, { key: 0 }, [
|
|
271
|
+
a === s(e).INPUT ? (o(), b(A, {
|
|
272
272
|
key: 0,
|
|
273
273
|
modelValue: r.value[m],
|
|
274
274
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
275
|
-
placeholder: T(a,
|
|
275
|
+
placeholder: T(a, z, i),
|
|
276
276
|
clearable: se,
|
|
277
|
-
onChange: (t) =>
|
|
278
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
279
|
-
a === s(e).INPUT_TEXT_AREA ? (o(),
|
|
277
|
+
onChange: (t) => w(a, m)
|
|
278
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : y("", !0),
|
|
279
|
+
a === s(e).INPUT_TEXT_AREA ? (o(), b(A, {
|
|
280
280
|
key: 1,
|
|
281
281
|
modelValue: r.value[m],
|
|
282
282
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
283
283
|
type: "textarea",
|
|
284
284
|
rows: re,
|
|
285
285
|
clearable: se,
|
|
286
|
-
placeholder: T(a,
|
|
287
|
-
onChange: (t) =>
|
|
288
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
289
|
-
a === s(e).INPUT_NUMBER ? (o(),
|
|
286
|
+
placeholder: T(a, z, i),
|
|
287
|
+
onChange: (t) => w(a, m)
|
|
288
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : y("", !0),
|
|
289
|
+
a === s(e).INPUT_NUMBER ? (o(), b(f, {
|
|
290
290
|
key: 2,
|
|
291
|
-
modelValue:
|
|
292
|
-
"onUpdate:modelValue": h[0] || (h[0] = (t) =>
|
|
291
|
+
modelValue: v.num,
|
|
292
|
+
"onUpdate:modelValue": h[0] || (h[0] = (t) => v.num = t),
|
|
293
293
|
min: ce,
|
|
294
294
|
max: ne,
|
|
295
|
-
onChange:
|
|
296
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
297
|
-
a === s(e).RADIO ? (o(),
|
|
295
|
+
onChange: w
|
|
296
|
+
}, null, 8, ["modelValue", "min", "max"])) : y("", !0),
|
|
297
|
+
a === s(e).RADIO ? (o(), b(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) => w(a, m)
|
|
302
302
|
}, {
|
|
303
303
|
default: C(() => [
|
|
304
|
-
(o(!0), V(P, null,
|
|
305
|
-
key:
|
|
304
|
+
(o(!0), V(P, null, X(Q, (t, G) => (o(), b(p, {
|
|
305
|
+
key: G,
|
|
306
306
|
label: t.value
|
|
307
307
|
}, {
|
|
308
308
|
default: C(() => [
|
|
309
|
-
K(
|
|
309
|
+
K(W(t.label), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 2
|
|
312
312
|
}, 1032, ["label"]))), 128))
|
|
313
313
|
]),
|
|
314
314
|
_: 2
|
|
315
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
316
|
-
a === s(e).SELECT ? (o(),
|
|
315
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
|
|
316
|
+
a === s(e).SELECT ? (o(), b(R, {
|
|
317
317
|
key: 4,
|
|
318
318
|
modelValue: r.value[m],
|
|
319
319
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
320
|
-
placeholder: T(a,
|
|
321
|
-
onChange: (t) =>
|
|
320
|
+
placeholder: T(a, z, i),
|
|
321
|
+
onChange: (t) => w(a, m)
|
|
322
322
|
}, {
|
|
323
323
|
default: C(() => [
|
|
324
|
-
(o(!0), V(P, null,
|
|
325
|
-
key:
|
|
324
|
+
(o(!0), V(P, null, X(Q, (t, G) => (o(), b(N, {
|
|
325
|
+
key: G,
|
|
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"])) :
|
|
332
|
-
a === s(e).SLIDER ? (o(),
|
|
331
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : y("", !0),
|
|
332
|
+
a === s(e).SLIDER ? (o(), b(S, {
|
|
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"])) :
|
|
340
|
-
a === s(e).SWITCH ? (o(),
|
|
338
|
+
onChange: (t) => w(a, m)
|
|
339
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : y("", !0),
|
|
340
|
+
a === s(e).SWITCH ? (o(), b(I, {
|
|
341
341
|
key: 6,
|
|
342
342
|
modelValue: r.value[m],
|
|
343
343
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
344
|
-
"active-value":
|
|
345
|
-
"inactive-value":
|
|
346
|
-
onChange: (t) =>
|
|
347
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
344
|
+
"active-value": Q[0] || !0,
|
|
345
|
+
"inactive-value": Q[1] || !1,
|
|
346
|
+
onChange: (t) => w(a, m)
|
|
347
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : y("", !0),
|
|
348
348
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
349
349
|
a
|
|
350
|
-
) ? (o(),
|
|
350
|
+
) ? (o(), b(M, {
|
|
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: x(a, H),
|
|
355
|
+
"value-format": x(a, H),
|
|
356
356
|
type: a,
|
|
357
|
-
placeholder: T(a,
|
|
358
|
-
onChange: (t) =>
|
|
359
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
357
|
+
placeholder: T(a, z, i),
|
|
358
|
+
onChange: (t) => w(a, m)
|
|
359
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : y("", !0),
|
|
360
360
|
[
|
|
361
361
|
s(e).DATE_RANGE,
|
|
362
362
|
s(e).MONTH_RANGE,
|
|
363
363
|
s(e).DATE_TIME_RANGE
|
|
364
|
-
].includes(a) ? (o(),
|
|
364
|
+
].includes(a) ? (o(), b(M, {
|
|
365
365
|
key: 8,
|
|
366
366
|
modelValue: r.value[m],
|
|
367
367
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
368
368
|
type: a,
|
|
369
|
-
"value-format":
|
|
370
|
-
"start-placeholder": T(a,
|
|
371
|
-
"end-placeholder": T(a,
|
|
372
|
-
onChange: (t) =>
|
|
373
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
374
|
-
[s(e).TIME].includes(a) ? (o(),
|
|
369
|
+
"value-format": x(a, H),
|
|
370
|
+
"start-placeholder": T(a, z, i)[0],
|
|
371
|
+
"end-placeholder": T(a, z, i)[1],
|
|
372
|
+
onChange: (t) => w(a, m)
|
|
373
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
|
|
374
|
+
[s(e).TIME].includes(a) ? (o(), b(L, {
|
|
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":
|
|
380
|
-
placeholder: T(a,
|
|
381
|
-
onChange: (t) =>
|
|
382
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
383
|
-
[s(e).TIME_RANGE].includes(a) ? (o(),
|
|
379
|
+
"value-format": x(a, H),
|
|
380
|
+
placeholder: T(a, z, i),
|
|
381
|
+
onChange: (t) => w(a, m)
|
|
382
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : y("", !0),
|
|
383
|
+
[s(e).TIME_RANGE].includes(a) ? (o(), b(L, {
|
|
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":
|
|
389
|
-
"start-placeholder": T(a,
|
|
390
|
-
"end-placeholder": T(a,
|
|
391
|
-
onChange: (t) =>
|
|
392
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
393
|
-
[s(e).CHECKBOX].includes(a) ? (o(),
|
|
388
|
+
"value-format": x(a, H),
|
|
389
|
+
"start-placeholder": T(a, z, i)[0],
|
|
390
|
+
"end-placeholder": T(a, z, i)[1],
|
|
391
|
+
onChange: (t) => w(a, m)
|
|
392
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
|
|
393
|
+
[s(e).CHECKBOX].includes(a) ? (o(), b(Z, {
|
|
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) => w(a, m)
|
|
398
398
|
}, {
|
|
399
399
|
default: C(() => [
|
|
400
|
-
(o(!0), V(P, null,
|
|
401
|
-
key:
|
|
400
|
+
(o(!0), V(P, null, X(Q, (t, G) => (o(), b(q, {
|
|
401
|
+
key: G,
|
|
402
402
|
label: t.value
|
|
403
403
|
}, {
|
|
404
404
|
default: C(() => [
|
|
405
|
-
K(
|
|
405
|
+
K(W(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(), V(P, { key: 12 }, [], 64)) :
|
|
411
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
|
|
412
|
+
[].includes(a) ? (o(), V(P, { key: 12 }, [], 64)) : y("", !0)
|
|
413
413
|
], 64))
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
@@ -430,9 +430,9 @@ const Re = { class: "bsgoal-base-form" }, Se = { class: "base_form" }, Ue = { ke
|
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
const
|
|
433
|
+
const ze = { class: "bsgoal-base-table-content" }, Ye = { class: "bas_tabl_content" }, He = {
|
|
434
434
|
name: "BsgoalBaseTableContent"
|
|
435
|
-
},
|
|
435
|
+
}, Ge = /* @__PURE__ */ Object.assign(He, {
|
|
436
436
|
props: {
|
|
437
437
|
data: {
|
|
438
438
|
type: [String, Number, Object, Number, Boolean],
|
|
@@ -440,13 +440,13 @@ const Le = { class: "bsgoal-base-table-content" }, ze = { class: "bas_tabl_conte
|
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
setup(l) {
|
|
443
|
-
return (c, u) => (o(), V("div",
|
|
444
|
-
F("div",
|
|
443
|
+
return (c, u) => (o(), V("div", ze, [
|
|
444
|
+
F("div", Ye, W(l.data), 1)
|
|
445
445
|
]));
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
/*! Element Plus v2.3.3 */
|
|
449
|
-
var
|
|
449
|
+
var je = {
|
|
450
450
|
name: "zh-cn",
|
|
451
451
|
el: {
|
|
452
452
|
colorpicker: {
|
|
@@ -573,9 +573,9 @@ var Ge = {
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
|
-
const
|
|
576
|
+
const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_pagination" }, Ke = /* @__PURE__ */ F("span", null, "总数", -1), qe = {
|
|
577
577
|
name: "BsgoalBaseTablePagination"
|
|
578
|
-
},
|
|
578
|
+
}, Je = /* @__PURE__ */ Object.assign(qe, {
|
|
579
579
|
props: {
|
|
580
580
|
/**
|
|
581
581
|
* 当前页数
|
|
@@ -614,16 +614,16 @@ const je = { class: "bsgoal-base-table-pagination" }, We = { class: "base_table_
|
|
|
614
614
|
c("on-current-change", n);
|
|
615
615
|
}, _ = D(1);
|
|
616
616
|
return (n, r) => {
|
|
617
|
-
const
|
|
618
|
-
return o(), V("div",
|
|
619
|
-
F("div",
|
|
620
|
-
O(T, { locale: s(
|
|
617
|
+
const E = g("el-pagination"), T = g("el-config-provider");
|
|
618
|
+
return o(), V("div", We, [
|
|
619
|
+
F("div", Xe, [
|
|
620
|
+
O(T, { locale: s(je) }, {
|
|
621
621
|
default: C(() => [
|
|
622
|
-
O(
|
|
622
|
+
O(E, {
|
|
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] = (x) => _.value = x),
|
|
627
627
|
"page-sizes": l.pageSizes,
|
|
628
628
|
"page-size": l.pageSize,
|
|
629
629
|
total: l.total,
|
|
@@ -631,7 +631,7 @@ const je = { class: "bsgoal-base-table-pagination" }, We = { class: "base_table_
|
|
|
631
631
|
onCurrentChange: d
|
|
632
632
|
}, {
|
|
633
633
|
next: C(() => [
|
|
634
|
-
|
|
634
|
+
Ke
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
637
|
}, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
@@ -642,7 +642,7 @@ const je = { class: "bsgoal-base-table-pagination" }, We = { class: "base_table_
|
|
|
642
642
|
]);
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
|
-
}),
|
|
645
|
+
}), Qe = (l = null, { expression: c = 75, arg: u = {} } = {}) => {
|
|
646
646
|
const d = s(l);
|
|
647
647
|
if (d) {
|
|
648
648
|
const _ = d.querySelector(".el-table");
|
|
@@ -654,25 +654,25 @@ const je = { class: "bsgoal-base-table-pagination" }, We = { class: "base_table_
|
|
|
654
654
|
}, Ee = (l = Promise.resolve(), c = null, u = D(!1), d = D(null)) => {
|
|
655
655
|
const _ = D("");
|
|
656
656
|
return u.value = !0, l.then((n = {}) => {
|
|
657
|
-
const { data: r = {}, message:
|
|
658
|
-
d.value = r, _.value =
|
|
657
|
+
const { data: r = {}, message: E = "" } = n;
|
|
658
|
+
d.value = r, _.value = E, c && c(!0, r), u.value = !1;
|
|
659
659
|
}).catch((n = {}) => {
|
|
660
660
|
if (typeof n == "object") {
|
|
661
661
|
const { message: r = "" } = n;
|
|
662
662
|
_.value = r;
|
|
663
663
|
} else
|
|
664
664
|
_.value = n;
|
|
665
|
-
c(!1, n), u.value = !1;
|
|
665
|
+
c && c(!1, n), u.value = !1;
|
|
666
666
|
}).finally(() => {
|
|
667
667
|
u.value = !1;
|
|
668
668
|
}), { data: d, message: _, loading: u };
|
|
669
669
|
};
|
|
670
|
-
const
|
|
670
|
+
const Ze = { class: "bsgoal-base-table" }, et = { class: "base_table" }, tt = {
|
|
671
671
|
key: 0,
|
|
672
672
|
class: "base_table_menu"
|
|
673
|
-
},
|
|
673
|
+
}, at = {
|
|
674
674
|
name: "BsgoalBaseTable"
|
|
675
|
-
},
|
|
675
|
+
}, ye = /* @__PURE__ */ Object.assign(at, {
|
|
676
676
|
props: {
|
|
677
677
|
/**
|
|
678
678
|
* >----------props----------<
|
|
@@ -761,49 +761,49 @@ const Qe = { class: "bsgoal-base-table" }, Ze = { class: "base_table" }, et = {
|
|
|
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: p = !1, operationWidth: k = 0 } = u, N = s(f), R = [];
|
|
765
|
+
return p && R.push({
|
|
766
766
|
label: "操作",
|
|
767
767
|
fixed: "right",
|
|
768
768
|
prop: "operation",
|
|
769
769
|
width: k
|
|
770
|
-
}), [...N, ...
|
|
770
|
+
}), [...N, ...R];
|
|
771
771
|
}), _ = D(null), n = $e("transferFoldStatus");
|
|
772
772
|
he(() => {
|
|
773
|
-
const f = n ? n.value : !1,
|
|
774
|
-
|
|
773
|
+
const f = n ? n.value : !1, p = s(u.expression);
|
|
774
|
+
Qe(_, { arg: f, expression: p });
|
|
775
775
|
});
|
|
776
|
-
const r = D(1),
|
|
777
|
-
const { fetch: f, call:
|
|
778
|
-
|
|
776
|
+
const r = D(1), E = D(10), T = D(0), x = D({}), $ = D(u.loading), B = D(u.data), w = D({}), U = () => {
|
|
777
|
+
const { fetch: f, call: p, mapProps: k } = u, N = x.value, R = r.value, S = E.value, I = Ae({}, N), M = s(k);
|
|
778
|
+
I[M.currentPage] = R, I[M.pageSize] = S, Ee(f(I), p, $, w);
|
|
779
779
|
};
|
|
780
|
-
ue(
|
|
781
|
-
const { mapProps:
|
|
780
|
+
ue(w, (f) => {
|
|
781
|
+
const { mapProps: p } = u, k = s(p);
|
|
782
782
|
B.value = f[k.rows], T.value = f[k.total];
|
|
783
783
|
});
|
|
784
|
-
const
|
|
785
|
-
|
|
784
|
+
const v = (f = {}) => {
|
|
785
|
+
x.value = f, r.value = 1, U();
|
|
786
786
|
}, h = (f = 1) => {
|
|
787
787
|
r.value = f;
|
|
788
788
|
}, A = (f = 10) => {
|
|
789
|
-
|
|
789
|
+
E.value = f;
|
|
790
790
|
};
|
|
791
|
-
return ue([r,
|
|
792
|
-
|
|
791
|
+
return ue([r, E], () => {
|
|
792
|
+
U();
|
|
793
793
|
}), c({
|
|
794
|
-
refreshList:
|
|
795
|
-
}), (f,
|
|
796
|
-
const k =
|
|
797
|
-
return o(), V("div",
|
|
798
|
-
F("div",
|
|
799
|
-
f.$slots.menu ? (o(), V("div",
|
|
794
|
+
refreshList: v
|
|
795
|
+
}), (f, p) => {
|
|
796
|
+
const k = g("el-table-column"), N = g("el-table"), R = De("loading");
|
|
797
|
+
return o(), V("div", Ze, [
|
|
798
|
+
F("div", et, [
|
|
799
|
+
f.$slots.menu ? (o(), V("div", tt, [
|
|
800
800
|
ie(f.$slots, "menu")
|
|
801
|
-
])) :
|
|
801
|
+
])) : y("", !0),
|
|
802
802
|
F("div", {
|
|
803
803
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
804
804
|
ref: _
|
|
805
805
|
}, [
|
|
806
|
-
|
|
806
|
+
j((o(), b(N, {
|
|
807
807
|
stripe: "",
|
|
808
808
|
border: "",
|
|
809
809
|
"highlight-current-row": "",
|
|
@@ -818,24 +818,24 @@ const Qe = { class: "bsgoal-base-table" }, Ze = { class: "base_table" }, et = {
|
|
|
818
818
|
}, {
|
|
819
819
|
empty: C(() => []),
|
|
820
820
|
default: C(() => [
|
|
821
|
-
l.selection ? (o(),
|
|
821
|
+
l.selection ? (o(), b(k, {
|
|
822
822
|
key: 0,
|
|
823
823
|
fixed: "left",
|
|
824
824
|
type: "selection",
|
|
825
825
|
width: "40"
|
|
826
|
-
})) :
|
|
827
|
-
(o(!0), V(P, null,
|
|
828
|
-
key:
|
|
829
|
-
label:
|
|
830
|
-
align:
|
|
831
|
-
width:
|
|
826
|
+
})) : y("", !0),
|
|
827
|
+
(o(!0), V(P, null, X(s(d), ({ prop: S = "", label: I = "", align: M = "center", width: L = "", fixed: q = !1 } = {}, Z) => (o(), b(k, {
|
|
828
|
+
key: Z,
|
|
829
|
+
label: I,
|
|
830
|
+
align: M,
|
|
831
|
+
width: L,
|
|
832
832
|
fixed: q,
|
|
833
|
-
"min-width": `${
|
|
833
|
+
"min-width": `${I.length * 14 + 24}px`
|
|
834
834
|
}, {
|
|
835
|
-
default: C(({ row:
|
|
836
|
-
ie(f.$slots,
|
|
837
|
-
O(
|
|
838
|
-
data:
|
|
835
|
+
default: C(({ row: J }) => [
|
|
836
|
+
ie(f.$slots, S, { row: J }, () => [
|
|
837
|
+
O(Ge, {
|
|
838
|
+
data: J[S]
|
|
839
839
|
}, null, 8, ["data"])
|
|
840
840
|
])
|
|
841
841
|
]),
|
|
@@ -844,10 +844,10 @@ const Qe = { class: "bsgoal-base-table" }, Ze = { class: "base_table" }, et = {
|
|
|
844
844
|
]),
|
|
845
845
|
_: 3
|
|
846
846
|
}, 8, ["data", "header-cell-style"])), [
|
|
847
|
-
[
|
|
847
|
+
[R, $.value]
|
|
848
848
|
])
|
|
849
849
|
], 512),
|
|
850
|
-
O(
|
|
850
|
+
O(Je, {
|
|
851
851
|
total: T.value,
|
|
852
852
|
onOnCurrentChange: h,
|
|
853
853
|
onOnSizeChange: A
|
|
@@ -857,9 +857,9 @@ const Qe = { class: "bsgoal-base-table" }, Ze = { class: "base_table" }, et = {
|
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
|
-
const
|
|
860
|
+
const lt = {
|
|
861
861
|
name: "BsgoalBaseLine"
|
|
862
|
-
}, be = /* @__PURE__ */ Object.assign(
|
|
862
|
+
}, be = /* @__PURE__ */ Object.assign(lt, {
|
|
863
863
|
props: {
|
|
864
864
|
/**
|
|
865
865
|
* 是否为垂直
|
|
@@ -871,10 +871,10 @@ const at = {
|
|
|
871
871
|
},
|
|
872
872
|
setup(l) {
|
|
873
873
|
return (c, u) => (o(), V("div", {
|
|
874
|
-
class:
|
|
874
|
+
class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": l.vertical }])
|
|
875
875
|
}, [
|
|
876
876
|
F("div", {
|
|
877
|
-
class:
|
|
877
|
+
class: ve(["base_line", { base_line__vertical: l.vertical }])
|
|
878
878
|
}, null, 2)
|
|
879
879
|
], 2));
|
|
880
880
|
}
|
|
@@ -885,12 +885,12 @@ var le = (l, c) => {
|
|
|
885
885
|
for (let [d, _] of c)
|
|
886
886
|
u[d] = _;
|
|
887
887
|
return u;
|
|
888
|
-
}, lt = {
|
|
889
|
-
name: "ArrowDown"
|
|
890
888
|
}, nt = {
|
|
889
|
+
name: "ArrowDown"
|
|
890
|
+
}, ot = {
|
|
891
891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
892
892
|
viewBox: "0 0 1024 1024"
|
|
893
|
-
},
|
|
893
|
+
}, ut = /* @__PURE__ */ F(
|
|
894
894
|
"path",
|
|
895
895
|
{
|
|
896
896
|
fill: "currentColor",
|
|
@@ -899,18 +899,18 @@ var le = (l, c) => {
|
|
|
899
899
|
null,
|
|
900
900
|
-1
|
|
901
901
|
/* HOISTED */
|
|
902
|
-
),
|
|
903
|
-
|
|
902
|
+
), st = [
|
|
903
|
+
ut
|
|
904
904
|
];
|
|
905
|
-
function
|
|
906
|
-
return o(), V("svg",
|
|
905
|
+
function rt(l, c, u, d, _, n) {
|
|
906
|
+
return o(), V("svg", ot, st);
|
|
907
907
|
}
|
|
908
|
-
var
|
|
908
|
+
var ct = /* @__PURE__ */ le(nt, [["render", rt], ["__file", "arrow-down.vue"]]), it = {
|
|
909
909
|
name: "ArrowLeft"
|
|
910
|
-
},
|
|
910
|
+
}, dt = {
|
|
911
911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
912
912
|
viewBox: "0 0 1024 1024"
|
|
913
|
-
},
|
|
913
|
+
}, _t = /* @__PURE__ */ F(
|
|
914
914
|
"path",
|
|
915
915
|
{
|
|
916
916
|
fill: "currentColor",
|
|
@@ -919,18 +919,18 @@ var rt = /* @__PURE__ */ le(lt, [["render", st], ["__file", "arrow-down.vue"]]),
|
|
|
919
919
|
null,
|
|
920
920
|
-1
|
|
921
921
|
/* HOISTED */
|
|
922
|
-
),
|
|
923
|
-
|
|
922
|
+
), mt = [
|
|
923
|
+
_t
|
|
924
924
|
];
|
|
925
|
-
function
|
|
926
|
-
return o(), V("svg",
|
|
925
|
+
function ft(l, c, u, d, _, n) {
|
|
926
|
+
return o(), V("svg", dt, mt);
|
|
927
927
|
}
|
|
928
|
-
var
|
|
928
|
+
var gt = /* @__PURE__ */ le(it, [["render", ft], ["__file", "arrow-left.vue"]]), vt = {
|
|
929
929
|
name: "ArrowRight"
|
|
930
|
-
},
|
|
930
|
+
}, ht = {
|
|
931
931
|
xmlns: "http://www.w3.org/2000/svg",
|
|
932
932
|
viewBox: "0 0 1024 1024"
|
|
933
|
-
},
|
|
933
|
+
}, pt = /* @__PURE__ */ F(
|
|
934
934
|
"path",
|
|
935
935
|
{
|
|
936
936
|
fill: "currentColor",
|
|
@@ -939,18 +939,18 @@ var ft = /* @__PURE__ */ le(ct, [["render", mt], ["__file", "arrow-left.vue"]]),
|
|
|
939
939
|
null,
|
|
940
940
|
-1
|
|
941
941
|
/* HOISTED */
|
|
942
|
-
),
|
|
943
|
-
|
|
942
|
+
), Et = [
|
|
943
|
+
pt
|
|
944
944
|
];
|
|
945
|
-
function
|
|
946
|
-
return o(), V("svg",
|
|
945
|
+
function bt(l, c, u, d, _, n) {
|
|
946
|
+
return o(), V("svg", ht, Et);
|
|
947
947
|
}
|
|
948
|
-
var
|
|
948
|
+
var Tt = /* @__PURE__ */ le(vt, [["render", bt], ["__file", "arrow-right.vue"]]), Vt = {
|
|
949
949
|
name: "ArrowUp"
|
|
950
|
-
},
|
|
950
|
+
}, At = {
|
|
951
951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
952
952
|
viewBox: "0 0 1024 1024"
|
|
953
|
-
},
|
|
953
|
+
}, Ct = /* @__PURE__ */ F(
|
|
954
954
|
"path",
|
|
955
955
|
{
|
|
956
956
|
fill: "currentColor",
|
|
@@ -959,18 +959,18 @@ var bt = /* @__PURE__ */ le(vt, [["render", Et], ["__file", "arrow-right.vue"]])
|
|
|
959
959
|
null,
|
|
960
960
|
-1
|
|
961
961
|
/* HOISTED */
|
|
962
|
-
),
|
|
963
|
-
|
|
962
|
+
), $t = [
|
|
963
|
+
Ct
|
|
964
964
|
];
|
|
965
|
-
function
|
|
966
|
-
return o(), V("svg",
|
|
965
|
+
function yt(l, c, u, d, _, n) {
|
|
966
|
+
return o(), V("svg", At, $t);
|
|
967
967
|
}
|
|
968
|
-
var wt = /* @__PURE__ */ le(
|
|
968
|
+
var wt = /* @__PURE__ */ le(Vt, [["render", yt], ["__file", "arrow-up.vue"]]), xt = {
|
|
969
969
|
name: "Delete"
|
|
970
|
-
},
|
|
970
|
+
}, Bt = {
|
|
971
971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
972
972
|
viewBox: "0 0 1024 1024"
|
|
973
|
-
},
|
|
973
|
+
}, Dt = /* @__PURE__ */ F(
|
|
974
974
|
"path",
|
|
975
975
|
{
|
|
976
976
|
fill: "currentColor",
|
|
@@ -979,18 +979,18 @@ var wt = /* @__PURE__ */ le(Tt, [["render", $t], ["__file", "arrow-up.vue"]]), x
|
|
|
979
979
|
null,
|
|
980
980
|
-1
|
|
981
981
|
/* HOISTED */
|
|
982
|
-
),
|
|
983
|
-
|
|
982
|
+
), Ot = [
|
|
983
|
+
Dt
|
|
984
984
|
];
|
|
985
|
-
function
|
|
986
|
-
return o(), V("svg",
|
|
985
|
+
function kt(l, c, u, d, _, n) {
|
|
986
|
+
return o(), V("svg", Bt, Ot);
|
|
987
987
|
}
|
|
988
|
-
var
|
|
988
|
+
var Nt = /* @__PURE__ */ le(xt, [["render", kt], ["__file", "delete.vue"]]), Ft = {
|
|
989
989
|
name: "Search"
|
|
990
|
-
},
|
|
990
|
+
}, Mt = {
|
|
991
991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
992
992
|
viewBox: "0 0 1024 1024"
|
|
993
|
-
},
|
|
993
|
+
}, Rt = /* @__PURE__ */ F(
|
|
994
994
|
"path",
|
|
995
995
|
{
|
|
996
996
|
fill: "currentColor",
|
|
@@ -999,16 +999,16 @@ var kt = /* @__PURE__ */ le(xt, [["render", Ot], ["__file", "delete.vue"]]), Nt
|
|
|
999
999
|
null,
|
|
1000
1000
|
-1
|
|
1001
1001
|
/* HOISTED */
|
|
1002
|
-
),
|
|
1003
|
-
|
|
1002
|
+
), St = [
|
|
1003
|
+
Rt
|
|
1004
1004
|
];
|
|
1005
|
-
function
|
|
1006
|
-
return o(), V("svg",
|
|
1005
|
+
function Ut(l, c, u, d, _, n) {
|
|
1006
|
+
return o(), V("svg", Mt, St);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1009
|
-
const
|
|
1008
|
+
var It = /* @__PURE__ */ le(Ft, [["render", Ut], ["__file", "search.vue"]]);
|
|
1009
|
+
const Pt = { class: "bsgoal-base-search-operation" }, Lt = {
|
|
1010
1010
|
name: "BsgoalBaseSearchOperation"
|
|
1011
|
-
},
|
|
1011
|
+
}, zt = /* @__PURE__ */ Object.assign(Lt, {
|
|
1012
1012
|
props: {
|
|
1013
1013
|
/**
|
|
1014
1014
|
* 是否显示折叠按钮
|
|
@@ -1024,11 +1024,11 @@ const It = { class: "bsgoal-base-search-operation" }, Pt = {
|
|
|
1024
1024
|
u.value = !s(u), c("on-fold", u.value);
|
|
1025
1025
|
};
|
|
1026
1026
|
return (_, n) => {
|
|
1027
|
-
const r =
|
|
1028
|
-
return o(), V("div",
|
|
1027
|
+
const r = g("el-button"), E = g("el-icon");
|
|
1028
|
+
return o(), V("div", Pt, [
|
|
1029
1029
|
O(r, {
|
|
1030
1030
|
type: "primary",
|
|
1031
|
-
icon: s(
|
|
1031
|
+
icon: s(It),
|
|
1032
1032
|
onClick: n[0] || (n[0] = (T) => _.$emit("on-search"))
|
|
1033
1033
|
}, {
|
|
1034
1034
|
default: C(() => [
|
|
@@ -1037,7 +1037,7 @@ const It = { class: "bsgoal-base-search-operation" }, Pt = {
|
|
|
1037
1037
|
_: 1
|
|
1038
1038
|
}, 8, ["icon"]),
|
|
1039
1039
|
O(r, {
|
|
1040
|
-
icon: s(
|
|
1040
|
+
icon: s(Nt),
|
|
1041
1041
|
onClick: n[1] || (n[1] = (T) => _.$emit("on-clear"))
|
|
1042
1042
|
}, {
|
|
1043
1043
|
default: C(() => [
|
|
@@ -1051,26 +1051,26 @@ const It = { class: "bsgoal-base-search-operation" }, Pt = {
|
|
|
1051
1051
|
style: { color: "var(--el-color-primary)" },
|
|
1052
1052
|
onClick: d
|
|
1053
1053
|
}, [
|
|
1054
|
-
K(
|
|
1055
|
-
O(
|
|
1054
|
+
K(W(u.value ? "收起" : "展开"), 1),
|
|
1055
|
+
O(E, { color: "#409EFC" }, {
|
|
1056
1056
|
default: C(() => [
|
|
1057
|
-
|
|
1058
|
-
[
|
|
1057
|
+
j(O(s(wt), null, null, 512), [
|
|
1058
|
+
[te, u.value]
|
|
1059
1059
|
]),
|
|
1060
|
-
|
|
1061
|
-
[
|
|
1060
|
+
j(O(s(ct), null, null, 512), [
|
|
1061
|
+
[te, !u.value]
|
|
1062
1062
|
])
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 1
|
|
1065
1065
|
})
|
|
1066
|
-
])) :
|
|
1066
|
+
])) : y("", !0)
|
|
1067
1067
|
]);
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
|
-
const
|
|
1071
|
+
const Yt = { class: "bsgoal-base-cascader" }, Ht = {
|
|
1072
1072
|
name: "BsgoalBaseCascader"
|
|
1073
|
-
},
|
|
1073
|
+
}, Gt = /* @__PURE__ */ Object.assign(Ht, {
|
|
1074
1074
|
props: {
|
|
1075
1075
|
/**
|
|
1076
1076
|
* 绑定的值
|
|
@@ -1110,11 +1110,12 @@ const zt = { class: "bsgoal-base-cascader" }, Yt = {
|
|
|
1110
1110
|
c("update:model-value", _), c("on-change", _);
|
|
1111
1111
|
};
|
|
1112
1112
|
return (_, n) => {
|
|
1113
|
-
const r =
|
|
1114
|
-
return o(), V("div",
|
|
1113
|
+
const r = g("el-cascader");
|
|
1114
|
+
return o(), V("div", Yt, [
|
|
1115
1115
|
O(r, {
|
|
1116
1116
|
clearable: "",
|
|
1117
1117
|
class: "base_cascader",
|
|
1118
|
+
"show-all-levels": !1,
|
|
1118
1119
|
"model-value": l.modelValue,
|
|
1119
1120
|
options: l.dataOptions,
|
|
1120
1121
|
props: u.value,
|
|
@@ -1125,9 +1126,9 @@ const zt = { class: "bsgoal-base-cascader" }, Yt = {
|
|
|
1125
1126
|
};
|
|
1126
1127
|
}
|
|
1127
1128
|
});
|
|
1128
|
-
const
|
|
1129
|
+
const jt = { class: "bsgoal-base-search" }, Wt = { class: "base_search" }, Xt = { key: 1 }, Kt = {
|
|
1129
1130
|
name: "BsgoalBaseSearch"
|
|
1130
|
-
},
|
|
1131
|
+
}, qt = /* @__PURE__ */ Object.assign(Kt, {
|
|
1131
1132
|
props: {
|
|
1132
1133
|
/**
|
|
1133
1134
|
* >----------props----------<
|
|
@@ -1173,8 +1174,8 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1173
1174
|
he(() => {
|
|
1174
1175
|
const { configOptions: h } = u;
|
|
1175
1176
|
s(h).forEach((f) => {
|
|
1176
|
-
const { value:
|
|
1177
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(
|
|
1177
|
+
const { value: p, prop: k = "", type: N = "" } = f;
|
|
1178
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(p) ? p : "";
|
|
1178
1179
|
});
|
|
1179
1180
|
});
|
|
1180
1181
|
const r = oe(() => {
|
|
@@ -1182,7 +1183,7 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1182
1183
|
type: e.OPERATION
|
|
1183
1184
|
};
|
|
1184
1185
|
return [...A, f];
|
|
1185
|
-
}),
|
|
1186
|
+
}), E = (h = "", A = "", f = "") => {
|
|
1186
1187
|
if (!f)
|
|
1187
1188
|
switch (h) {
|
|
1188
1189
|
case e.INPUT:
|
|
@@ -1228,26 +1229,31 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1228
1229
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1229
1230
|
}
|
|
1230
1231
|
return A;
|
|
1231
|
-
},
|
|
1232
|
-
const { configOptions: h } = u, A = s(n), f = s(h),
|
|
1232
|
+
}, x = () => {
|
|
1233
|
+
const { configOptions: h } = u, A = s(n), f = s(h), p = {};
|
|
1233
1234
|
for (const k of f) {
|
|
1234
|
-
const { type: N = "", range:
|
|
1235
|
-
if (
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1235
|
+
const { type: N = "", range: R = [], prop: S = "", single: I = !1 } = k, M = A[S];
|
|
1236
|
+
if ([e.CASCADER].includes(N) && Array.isArray(M) && I) {
|
|
1237
|
+
const L = M.length;
|
|
1238
|
+
L ? p[S] = M[L - 1] : p[S] = M;
|
|
1239
|
+
} else
|
|
1240
|
+
Oe(M) ? p[S] = ke(M) : p[S] = M;
|
|
1241
|
+
if (N.endsWith("range") && R && R.length === 2) {
|
|
1242
|
+
const { 0: L = "", 1: q = "" } = M, { 0: Z = "", 1: J = "" } = R;
|
|
1243
|
+
p[Z] = L, p[J] = q;
|
|
1238
1244
|
}
|
|
1239
1245
|
}
|
|
1240
|
-
c("on-search",
|
|
1246
|
+
c("on-search", p), c("update:modelValue", p);
|
|
1241
1247
|
};
|
|
1242
1248
|
Ce(() => {
|
|
1243
|
-
|
|
1249
|
+
x();
|
|
1244
1250
|
});
|
|
1245
1251
|
const $ = () => {
|
|
1246
1252
|
d.value.resetFields(), c("on-clear", n.value);
|
|
1247
|
-
}, B = $e("transferFoldStatus"),
|
|
1248
|
-
|
|
1249
|
-
},
|
|
1250
|
-
|
|
1253
|
+
}, B = $e("transferFoldStatus"), w = D(!1), U = (h = !1) => {
|
|
1254
|
+
w.value = h, B && (B.value = h), c("on-fold", w);
|
|
1255
|
+
}, v = (h, A) => {
|
|
1256
|
+
x();
|
|
1251
1257
|
const f = {
|
|
1252
1258
|
type: h,
|
|
1253
1259
|
prop: A,
|
|
@@ -1256,10 +1262,10 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1256
1262
|
c("on-change", f);
|
|
1257
1263
|
};
|
|
1258
1264
|
return (h, A) => {
|
|
1259
|
-
const f =
|
|
1260
|
-
return o(), V("div",
|
|
1261
|
-
F("div",
|
|
1262
|
-
|
|
1265
|
+
const f = g("el-input"), p = g("el-input-number"), k = g("el-radio"), N = g("el-radio-group"), R = g("el-option"), S = g("el-select"), I = g("el-slider"), M = g("el-switch"), L = g("el-date-picker"), q = g("el-time-picker"), Z = g("el-checkbox"), J = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), z = g("el-form");
|
|
1266
|
+
return o(), V("div", jt, [
|
|
1267
|
+
F("div", Wt, [
|
|
1268
|
+
j((o(), b(z, {
|
|
1263
1269
|
ref_key: "EL_FORM_REF",
|
|
1264
1270
|
ref: d,
|
|
1265
1271
|
"label-suffix": ":",
|
|
@@ -1269,19 +1275,19 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1269
1275
|
default: C(() => [
|
|
1270
1276
|
O(me, null, {
|
|
1271
1277
|
default: C(() => [
|
|
1272
|
-
(o(!0), V(P, null,
|
|
1278
|
+
(o(!0), V(P, null, X(s(r), ({
|
|
1273
1279
|
label: m = "",
|
|
1274
1280
|
prop: a = "",
|
|
1275
1281
|
type: i = "text",
|
|
1276
|
-
placeholder:
|
|
1282
|
+
placeholder: Y = "",
|
|
1277
1283
|
readonly: se = !1,
|
|
1278
1284
|
clearable: re = !0,
|
|
1279
1285
|
rows: ce = 2,
|
|
1280
1286
|
min: ne = 1,
|
|
1281
|
-
max:
|
|
1282
|
-
range:
|
|
1283
|
-
format:
|
|
1284
|
-
} = {}, ae) =>
|
|
1287
|
+
max: Q = 10,
|
|
1288
|
+
range: H = [],
|
|
1289
|
+
format: ee = ""
|
|
1290
|
+
} = {}, ae) => j((o(), b(_e, {
|
|
1285
1291
|
key: ae,
|
|
1286
1292
|
xs: 24,
|
|
1287
1293
|
sm: 12,
|
|
@@ -1293,164 +1299,164 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1293
1299
|
prop: a
|
|
1294
1300
|
}, {
|
|
1295
1301
|
default: C(() => [
|
|
1296
|
-
se ? (o(), V("div",
|
|
1297
|
-
i === s(e).INPUT ? (o(),
|
|
1302
|
+
se ? (o(), V("div", Xt, W(n.value[a]), 1)) : (o(), V(P, { key: 0 }, [
|
|
1303
|
+
i === s(e).INPUT ? (o(), b(f, {
|
|
1298
1304
|
key: 0,
|
|
1299
1305
|
modelValue: n.value[a],
|
|
1300
1306
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1301
|
-
placeholder:
|
|
1307
|
+
placeholder: E(i, m, Y),
|
|
1302
1308
|
clearable: re,
|
|
1303
|
-
onChange: (t) =>
|
|
1304
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
1305
|
-
i === s(e).INPUT_TEXT_AREA ? (o(),
|
|
1309
|
+
onChange: (t) => v(i, a)
|
|
1310
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : y("", !0),
|
|
1311
|
+
i === s(e).INPUT_TEXT_AREA ? (o(), b(f, {
|
|
1306
1312
|
key: 1,
|
|
1307
1313
|
modelValue: n.value[a],
|
|
1308
1314
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1309
1315
|
type: "textarea",
|
|
1310
1316
|
rows: ce,
|
|
1311
1317
|
clearable: re,
|
|
1312
|
-
placeholder:
|
|
1313
|
-
onChange: (t) =>
|
|
1314
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1315
|
-
i === s(e).INPUT_NUMBER ? (o(),
|
|
1318
|
+
placeholder: E(i, m, Y),
|
|
1319
|
+
onChange: (t) => v(i, a)
|
|
1320
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : y("", !0),
|
|
1321
|
+
i === s(e).INPUT_NUMBER ? (o(), b(p, {
|
|
1316
1322
|
key: 2,
|
|
1317
1323
|
modelValue: h.num,
|
|
1318
1324
|
"onUpdate:modelValue": A[0] || (A[0] = (t) => h.num = t),
|
|
1319
1325
|
min: ne,
|
|
1320
|
-
max:
|
|
1321
|
-
onChange:
|
|
1322
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1323
|
-
i === s(e).RADIO ? (o(),
|
|
1326
|
+
max: Q,
|
|
1327
|
+
onChange: v
|
|
1328
|
+
}, null, 8, ["modelValue", "min", "max"])) : y("", !0),
|
|
1329
|
+
i === s(e).RADIO ? (o(), b(N, {
|
|
1324
1330
|
key: 3,
|
|
1325
1331
|
modelValue: n.value[a],
|
|
1326
1332
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1327
|
-
onChange: (t) =>
|
|
1333
|
+
onChange: (t) => v(i, a)
|
|
1328
1334
|
}, {
|
|
1329
1335
|
default: C(() => [
|
|
1330
|
-
(o(!0), V(P, null,
|
|
1331
|
-
key:
|
|
1336
|
+
(o(!0), V(P, null, X(H, (t, G) => (o(), b(k, {
|
|
1337
|
+
key: G,
|
|
1332
1338
|
label: t.value
|
|
1333
1339
|
}, {
|
|
1334
1340
|
default: C(() => [
|
|
1335
|
-
K(
|
|
1341
|
+
K(W(t.label), 1)
|
|
1336
1342
|
]),
|
|
1337
1343
|
_: 2
|
|
1338
1344
|
}, 1032, ["label"]))), 128))
|
|
1339
1345
|
]),
|
|
1340
1346
|
_: 2
|
|
1341
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1342
|
-
i === s(e).SELECT ? (o(),
|
|
1347
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
|
|
1348
|
+
i === s(e).SELECT ? (o(), b(S, {
|
|
1343
1349
|
key: 4,
|
|
1344
1350
|
modelValue: n.value[a],
|
|
1345
1351
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1346
|
-
placeholder:
|
|
1347
|
-
onChange: (t) =>
|
|
1352
|
+
placeholder: E(i, m, Y),
|
|
1353
|
+
onChange: (t) => v(i, a)
|
|
1348
1354
|
}, {
|
|
1349
1355
|
default: C(() => [
|
|
1350
|
-
(o(!0), V(P, null,
|
|
1351
|
-
key:
|
|
1356
|
+
(o(!0), V(P, null, X(H, (t, G) => (o(), b(R, {
|
|
1357
|
+
key: G,
|
|
1352
1358
|
label: t.label,
|
|
1353
1359
|
value: t.value
|
|
1354
1360
|
}, null, 8, ["label", "value"]))), 128))
|
|
1355
1361
|
]),
|
|
1356
1362
|
_: 2
|
|
1357
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1358
|
-
i === s(e).SLIDER ? (o(),
|
|
1363
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : y("", !0),
|
|
1364
|
+
i === s(e).SLIDER ? (o(), b(I, {
|
|
1359
1365
|
key: 5,
|
|
1360
1366
|
modelValue: n.value[a],
|
|
1361
1367
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1362
1368
|
min: ne,
|
|
1363
|
-
max:
|
|
1364
|
-
onChange: (t) =>
|
|
1365
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1366
|
-
i === s(e).SWITCH ? (o(),
|
|
1369
|
+
max: Q,
|
|
1370
|
+
onChange: (t) => v(i, a)
|
|
1371
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : y("", !0),
|
|
1372
|
+
i === s(e).SWITCH ? (o(), b(M, {
|
|
1367
1373
|
key: 6,
|
|
1368
1374
|
modelValue: n.value[a],
|
|
1369
1375
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1370
|
-
"active-value":
|
|
1371
|
-
"inactive-value":
|
|
1372
|
-
onChange: (t) =>
|
|
1373
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1376
|
+
"active-value": H[0] || !0,
|
|
1377
|
+
"inactive-value": H[1] || !1,
|
|
1378
|
+
onChange: (t) => v(i, a)
|
|
1379
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : y("", !0),
|
|
1374
1380
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
1375
1381
|
i
|
|
1376
|
-
) ? (o(),
|
|
1382
|
+
) ? (o(), b(L, {
|
|
1377
1383
|
key: 7,
|
|
1378
1384
|
modelValue: n.value[a],
|
|
1379
1385
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1380
|
-
format: T(i,
|
|
1381
|
-
"value-format": T(i,
|
|
1386
|
+
format: T(i, ee),
|
|
1387
|
+
"value-format": T(i, ee),
|
|
1382
1388
|
type: i,
|
|
1383
|
-
placeholder:
|
|
1384
|
-
onChange: (t) =>
|
|
1385
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1389
|
+
placeholder: E(i, m, Y),
|
|
1390
|
+
onChange: (t) => v(i, a)
|
|
1391
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : y("", !0),
|
|
1386
1392
|
[
|
|
1387
1393
|
s(e).DATE_RANGE,
|
|
1388
1394
|
s(e).MONTH_RANGE,
|
|
1389
1395
|
s(e).DATE_TIME_RANGE
|
|
1390
|
-
].includes(i) ? (o(),
|
|
1396
|
+
].includes(i) ? (o(), b(L, {
|
|
1391
1397
|
key: 8,
|
|
1392
1398
|
modelValue: n.value[a],
|
|
1393
1399
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1394
1400
|
type: i,
|
|
1395
|
-
"value-format": T(i,
|
|
1396
|
-
"start-placeholder":
|
|
1397
|
-
"end-placeholder":
|
|
1398
|
-
onChange: (t) =>
|
|
1399
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1400
|
-
[s(e).TIME].includes(i) ? (o(),
|
|
1401
|
+
"value-format": T(i, ee),
|
|
1402
|
+
"start-placeholder": E(i, m, Y)[0],
|
|
1403
|
+
"end-placeholder": E(i, m, Y)[1],
|
|
1404
|
+
onChange: (t) => v(i, a)
|
|
1405
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
|
|
1406
|
+
[s(e).TIME].includes(i) ? (o(), b(q, {
|
|
1401
1407
|
key: 9,
|
|
1402
1408
|
modelValue: n.value[a],
|
|
1403
1409
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1404
1410
|
"arrow-control": "",
|
|
1405
|
-
"value-format": T(i,
|
|
1406
|
-
placeholder:
|
|
1407
|
-
onChange: (t) =>
|
|
1408
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1409
|
-
[s(e).TIME_RANGE].includes(i) ? (o(),
|
|
1411
|
+
"value-format": T(i, ee),
|
|
1412
|
+
placeholder: E(i, m, Y),
|
|
1413
|
+
onChange: (t) => v(i, a)
|
|
1414
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : y("", !0),
|
|
1415
|
+
[s(e).TIME_RANGE].includes(i) ? (o(), b(q, {
|
|
1410
1416
|
key: 10,
|
|
1411
1417
|
modelValue: n.value[a],
|
|
1412
1418
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1413
1419
|
"is-range": "",
|
|
1414
|
-
"value-format": T(i,
|
|
1415
|
-
"start-placeholder":
|
|
1416
|
-
"end-placeholder":
|
|
1417
|
-
onChange: (t) =>
|
|
1418
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1419
|
-
[s(e).CHECKBOX].includes(i) ? (o(),
|
|
1420
|
+
"value-format": T(i, ee),
|
|
1421
|
+
"start-placeholder": E(i, m, Y)[0],
|
|
1422
|
+
"end-placeholder": E(i, m, Y)[1],
|
|
1423
|
+
onChange: (t) => v(i, a)
|
|
1424
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
|
|
1425
|
+
[s(e).CHECKBOX].includes(i) ? (o(), b(J, {
|
|
1420
1426
|
key: 11,
|
|
1421
1427
|
modelValue: n.value[a],
|
|
1422
1428
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1423
|
-
onChange: (t) =>
|
|
1429
|
+
onChange: (t) => v(i, a)
|
|
1424
1430
|
}, {
|
|
1425
1431
|
default: C(() => [
|
|
1426
|
-
(o(!0), V(P, null,
|
|
1427
|
-
key:
|
|
1432
|
+
(o(!0), V(P, null, X(H, (t, G) => (o(), b(Z, {
|
|
1433
|
+
key: G,
|
|
1428
1434
|
label: t.value
|
|
1429
1435
|
}, {
|
|
1430
1436
|
default: C(() => [
|
|
1431
|
-
K(
|
|
1437
|
+
K(W(t.label), 1)
|
|
1432
1438
|
]),
|
|
1433
1439
|
_: 2
|
|
1434
1440
|
}, 1032, ["label"]))), 128))
|
|
1435
1441
|
]),
|
|
1436
1442
|
_: 2
|
|
1437
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1438
|
-
[s(e).CASCADER].includes(i) ? (o(),
|
|
1443
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
|
|
1444
|
+
[s(e).CASCADER].includes(i) ? (o(), b(Gt, {
|
|
1439
1445
|
key: 12,
|
|
1440
1446
|
modelValue: n.value[a],
|
|
1441
1447
|
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1442
|
-
"data-options":
|
|
1443
|
-
placeholder:
|
|
1444
|
-
onOnChange: (t) =>
|
|
1445
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1446
|
-
[].includes(i) ? (o(), V(P, { key: 13 }, [], 64)) :
|
|
1447
|
-
[s(e).OPERATION].includes(i) ? (o(),
|
|
1448
|
+
"data-options": H,
|
|
1449
|
+
placeholder: E(i, m, Y),
|
|
1450
|
+
onOnChange: (t) => v(i, a)
|
|
1451
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : y("", !0),
|
|
1452
|
+
[].includes(i) ? (o(), V(P, { key: 13 }, [], 64)) : y("", !0),
|
|
1453
|
+
[s(e).OPERATION].includes(i) ? (o(), b(zt, {
|
|
1448
1454
|
key: 14,
|
|
1449
1455
|
fold: ae >= 7,
|
|
1450
|
-
onOnSearch:
|
|
1456
|
+
onOnSearch: x,
|
|
1451
1457
|
onOnClear: $,
|
|
1452
|
-
onOnFold:
|
|
1453
|
-
}, null, 8, ["fold"])) :
|
|
1458
|
+
onOnFold: U
|
|
1459
|
+
}, null, 8, ["fold"])) : y("", !0)
|
|
1454
1460
|
], 64))
|
|
1455
1461
|
]),
|
|
1456
1462
|
_: 2
|
|
@@ -1458,7 +1464,7 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1458
1464
|
]),
|
|
1459
1465
|
_: 2
|
|
1460
1466
|
}, 1032, ["md"])), [
|
|
1461
|
-
[
|
|
1467
|
+
[te, ae < 7 || i === s(e).OPERATION || ae >= 7 && w.value]
|
|
1462
1468
|
])), 128))
|
|
1463
1469
|
]),
|
|
1464
1470
|
_: 1
|
|
@@ -1474,9 +1480,9 @@ const Gt = { class: "bsgoal-base-search" }, jt = { class: "base_search" }, Wt =
|
|
|
1474
1480
|
};
|
|
1475
1481
|
}
|
|
1476
1482
|
});
|
|
1477
|
-
const
|
|
1483
|
+
const Jt = { class: "bsgoal-base-search-table" }, Qt = { class: "base_search_table" }, Zt = {
|
|
1478
1484
|
name: "BsgoalBaseSearchTable"
|
|
1479
|
-
},
|
|
1485
|
+
}, ea = /* @__PURE__ */ Object.assign(Zt, {
|
|
1480
1486
|
props: {
|
|
1481
1487
|
/**
|
|
1482
1488
|
* >----------props----------<
|
|
@@ -1488,6 +1494,8 @@ const qt = { class: "bsgoal-base-search-table" }, Jt = { class: "base_search_tab
|
|
|
1488
1494
|
*
|
|
1489
1495
|
* value: '' // 初始值 (查询)
|
|
1490
1496
|
* type : '' // 查询组件的类型 (查询)
|
|
1497
|
+
* item : false // 只为查询项
|
|
1498
|
+
* single : false // 机构选择器配置为单个值输出
|
|
1491
1499
|
*
|
|
1492
1500
|
*
|
|
1493
1501
|
* width: 0 // 列宽度 (表格)
|
|
@@ -1556,24 +1564,24 @@ const qt = { class: "bsgoal-base-search-table" }, Jt = { class: "base_search_tab
|
|
|
1556
1564
|
},
|
|
1557
1565
|
setup(l) {
|
|
1558
1566
|
const c = l, u = D(!1);
|
|
1559
|
-
|
|
1567
|
+
Ne("transferFoldStatus", u);
|
|
1560
1568
|
const d = s(c.configOptions), _ = oe(() => d.filter(($) => {
|
|
1561
1569
|
const { type: B = "" } = $;
|
|
1562
1570
|
return !!B;
|
|
1563
1571
|
})), n = oe(() => d.filter(($) => {
|
|
1564
1572
|
const { item: B = !1 } = $;
|
|
1565
1573
|
return !B;
|
|
1566
|
-
})), r =
|
|
1574
|
+
})), r = Fe(), E = D(Object.keys(r)), T = D(null), x = ($) => {
|
|
1567
1575
|
T.value.refreshList($);
|
|
1568
1576
|
};
|
|
1569
|
-
return ($, B) => (o(), V("div",
|
|
1570
|
-
F("div",
|
|
1571
|
-
O(
|
|
1577
|
+
return ($, B) => (o(), V("div", Jt, [
|
|
1578
|
+
F("div", Qt, [
|
|
1579
|
+
O(qt, {
|
|
1572
1580
|
"config-options": s(_),
|
|
1573
|
-
onOnSearch:
|
|
1574
|
-
onOnClear:
|
|
1581
|
+
onOnSearch: x,
|
|
1582
|
+
onOnClear: x
|
|
1575
1583
|
}, null, 8, ["config-options"]),
|
|
1576
|
-
O(
|
|
1584
|
+
O(ye, {
|
|
1577
1585
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1578
1586
|
ref: T,
|
|
1579
1587
|
operationWidth: l.operationWidth,
|
|
@@ -1584,11 +1592,11 @@ const qt = { class: "bsgoal-base-search-table" }, Jt = { class: "base_search_tab
|
|
|
1584
1592
|
expression: l.expression,
|
|
1585
1593
|
fetch: l.fetch,
|
|
1586
1594
|
call: l.call
|
|
1587
|
-
},
|
|
1588
|
-
|
|
1589
|
-
name:
|
|
1590
|
-
fn: C(({ row:
|
|
1591
|
-
ie($.$slots,
|
|
1595
|
+
}, Me({ _: 2 }, [
|
|
1596
|
+
X(E.value, (w) => ({
|
|
1597
|
+
name: w,
|
|
1598
|
+
fn: C(({ row: U = {} }) => [
|
|
1599
|
+
ie($.$slots, w, { row: U })
|
|
1592
1600
|
])
|
|
1593
1601
|
}))
|
|
1594
1602
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1596,9 +1604,9 @@ const qt = { class: "bsgoal-base-search-table" }, Jt = { class: "base_search_tab
|
|
|
1596
1604
|
]));
|
|
1597
1605
|
}
|
|
1598
1606
|
});
|
|
1599
|
-
const
|
|
1607
|
+
const ta = { class: "bsgoal-base-tree-fold" }, aa = {
|
|
1600
1608
|
name: "BsgoalBaseTreeFold"
|
|
1601
|
-
},
|
|
1609
|
+
}, la = /* @__PURE__ */ Object.assign(aa, {
|
|
1602
1610
|
props: ["modelValue"],
|
|
1603
1611
|
emits: ["update:modelValue"],
|
|
1604
1612
|
setup(l, { emit: c }) {
|
|
@@ -1607,19 +1615,19 @@ const ea = { class: "bsgoal-base-tree-fold" }, ta = {
|
|
|
1607
1615
|
u.value = !u.value, c("update:modelValue", u.value);
|
|
1608
1616
|
};
|
|
1609
1617
|
return (_, n) => {
|
|
1610
|
-
const r =
|
|
1611
|
-
return o(), V("div",
|
|
1618
|
+
const r = g("el-icon");
|
|
1619
|
+
return o(), V("div", ta, [
|
|
1612
1620
|
F("div", {
|
|
1613
|
-
class:
|
|
1621
|
+
class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
|
|
1614
1622
|
onClick: d
|
|
1615
1623
|
}, [
|
|
1616
1624
|
O(r, { color: "#fff" }, {
|
|
1617
1625
|
default: C(() => [
|
|
1618
|
-
|
|
1619
|
-
[
|
|
1626
|
+
j(O(s(gt), null, null, 512), [
|
|
1627
|
+
[te, s(u)]
|
|
1620
1628
|
]),
|
|
1621
|
-
|
|
1622
|
-
[
|
|
1629
|
+
j(O(s(Tt), null, null, 512), [
|
|
1630
|
+
[te, !s(u)]
|
|
1623
1631
|
])
|
|
1624
1632
|
]),
|
|
1625
1633
|
_: 1
|
|
@@ -1629,9 +1637,9 @@ const ea = { class: "bsgoal-base-tree-fold" }, ta = {
|
|
|
1629
1637
|
};
|
|
1630
1638
|
}
|
|
1631
1639
|
});
|
|
1632
|
-
const
|
|
1640
|
+
const na = { class: "bsgoal-base-tree" }, oa = { class: "base_tree" }, ua = { class: "base_tree_main" }, sa = {
|
|
1633
1641
|
name: "BsgoalBaseTree"
|
|
1634
|
-
},
|
|
1642
|
+
}, ra = /* @__PURE__ */ Object.assign(sa, {
|
|
1635
1643
|
props: {
|
|
1636
1644
|
/**
|
|
1637
1645
|
* 树结构 的下边距
|
|
@@ -1689,49 +1697,49 @@ const la = { class: "bsgoal-base-tree" }, na = { class: "base_tree" }, oa = { cl
|
|
|
1689
1697
|
ue(_, ($) => {
|
|
1690
1698
|
n.value.filter($);
|
|
1691
1699
|
});
|
|
1692
|
-
const r = ($, B) => $ ? B.label.includes($) : !0,
|
|
1693
|
-
c("on-click", $, B,
|
|
1694
|
-
},
|
|
1700
|
+
const r = ($, B) => $ ? B.label.includes($) : !0, E = D(!0), T = ($, B, w, U) => {
|
|
1701
|
+
c("on-click", $, B, w, U);
|
|
1702
|
+
}, x = async ($, B, w) => {
|
|
1695
1703
|
if ($.level === 0) {
|
|
1696
|
-
const
|
|
1697
|
-
return B(
|
|
1704
|
+
const U = await w.initNode($);
|
|
1705
|
+
return B(U || []);
|
|
1698
1706
|
} else {
|
|
1699
|
-
const
|
|
1700
|
-
B(
|
|
1707
|
+
const U = await w.lazyLoad($);
|
|
1708
|
+
B(U || []);
|
|
1701
1709
|
}
|
|
1702
1710
|
};
|
|
1703
1711
|
return ($, B) => {
|
|
1704
|
-
const
|
|
1705
|
-
return o(), V("div",
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
O(
|
|
1712
|
+
const w = g("el-input"), U = g("el-tree");
|
|
1713
|
+
return o(), V("div", na, [
|
|
1714
|
+
j((o(), V("div", oa, [
|
|
1715
|
+
j(F("div", ua, [
|
|
1716
|
+
O(w, {
|
|
1709
1717
|
modelValue: _.value,
|
|
1710
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
1718
|
+
"onUpdate:modelValue": B[0] || (B[0] = (v) => _.value = v),
|
|
1711
1719
|
class: "base_tree_main_input",
|
|
1712
1720
|
placeholder: "输入关键字过滤"
|
|
1713
1721
|
}, null, 8, ["modelValue"]),
|
|
1714
|
-
O(
|
|
1722
|
+
O(U, {
|
|
1715
1723
|
ref_key: "EL_TREE_REF",
|
|
1716
1724
|
ref: n,
|
|
1717
1725
|
lazy: "",
|
|
1718
1726
|
"highlight-current": "",
|
|
1719
1727
|
"empty-text": "暂无数据",
|
|
1720
|
-
load: (
|
|
1728
|
+
load: (v, h) => x(v, h, u),
|
|
1721
1729
|
"expand-on-click-node": !1,
|
|
1722
1730
|
props: l.treeProps,
|
|
1723
1731
|
"filter-node-method": r,
|
|
1724
1732
|
onNodeClick: T
|
|
1725
1733
|
}, null, 8, ["load", "props"])
|
|
1726
1734
|
], 512), [
|
|
1727
|
-
[
|
|
1735
|
+
[te, E.value]
|
|
1728
1736
|
]),
|
|
1729
|
-
|
|
1730
|
-
[
|
|
1737
|
+
j(O(be, { vertical: "" }, null, 512), [
|
|
1738
|
+
[te, E.value]
|
|
1731
1739
|
]),
|
|
1732
|
-
O(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
1740
|
+
O(la, {
|
|
1741
|
+
modelValue: E.value,
|
|
1742
|
+
"onUpdate:modelValue": B[1] || (B[1] = (v) => E.value = v)
|
|
1735
1743
|
}, null, 8, ["modelValue"])
|
|
1736
1744
|
])), [
|
|
1737
1745
|
[s(d), l.gasket]
|
|
@@ -1740,9 +1748,9 @@ const la = { class: "bsgoal-base-tree" }, na = { class: "base_tree" }, oa = { cl
|
|
|
1740
1748
|
};
|
|
1741
1749
|
}
|
|
1742
1750
|
});
|
|
1743
|
-
const
|
|
1751
|
+
const ca = { class: "bsgoal-base-dialog" }, ia = { class: "base_dialog" }, da = { class: "base_dialog_header" }, _a = { class: "base_dialog_content" }, ma = { class: "base_dialog_footer" }, fa = {
|
|
1744
1752
|
name: "BsgoalBaseDialog"
|
|
1745
|
-
},
|
|
1753
|
+
}, ga = /* @__PURE__ */ Object.assign(fa, {
|
|
1746
1754
|
props: {
|
|
1747
1755
|
/**
|
|
1748
1756
|
* 弹窗状态
|
|
@@ -1787,23 +1795,23 @@ const ra = { class: "bsgoal-base-dialog" }, ca = { class: "base_dialog" }, ia =
|
|
|
1787
1795
|
}
|
|
1788
1796
|
), ue(d, (r) => {
|
|
1789
1797
|
c("update:modelValue", r);
|
|
1790
|
-
}), (r,
|
|
1791
|
-
const T =
|
|
1792
|
-
return o(), V("div",
|
|
1793
|
-
F("div",
|
|
1794
|
-
O(
|
|
1798
|
+
}), (r, E) => {
|
|
1799
|
+
const T = g("el-button"), x = g("el-dialog");
|
|
1800
|
+
return o(), V("div", ca, [
|
|
1801
|
+
F("div", ia, [
|
|
1802
|
+
O(x, {
|
|
1795
1803
|
modelValue: d.value,
|
|
1796
|
-
"onUpdate:modelValue":
|
|
1804
|
+
"onUpdate:modelValue": E[0] || (E[0] = ($) => d.value = $),
|
|
1797
1805
|
"custom-class": "bsgoal_base_dialog_main"
|
|
1798
1806
|
}, {
|
|
1799
1807
|
header: C(() => [
|
|
1800
|
-
F("div",
|
|
1808
|
+
F("div", da, W(l.title), 1)
|
|
1801
1809
|
]),
|
|
1802
1810
|
footer: C(() => [
|
|
1803
|
-
F("span",
|
|
1811
|
+
F("span", ma, [
|
|
1804
1812
|
O(T, { onClick: _ }, {
|
|
1805
1813
|
default: C(() => [
|
|
1806
|
-
K(
|
|
1814
|
+
K(W(l.cancelTxt), 1)
|
|
1807
1815
|
]),
|
|
1808
1816
|
_: 1
|
|
1809
1817
|
}),
|
|
@@ -1812,14 +1820,14 @@ const ra = { class: "bsgoal-base-dialog" }, ca = { class: "base_dialog" }, ia =
|
|
|
1812
1820
|
onClick: n
|
|
1813
1821
|
}, {
|
|
1814
1822
|
default: C(() => [
|
|
1815
|
-
K(
|
|
1823
|
+
K(W(l.confirmTxt), 1)
|
|
1816
1824
|
]),
|
|
1817
1825
|
_: 1
|
|
1818
1826
|
})
|
|
1819
1827
|
])
|
|
1820
1828
|
]),
|
|
1821
1829
|
default: C(() => [
|
|
1822
|
-
F("div",
|
|
1830
|
+
F("div", _a, [
|
|
1823
1831
|
ie(r.$slots, "default")
|
|
1824
1832
|
])
|
|
1825
1833
|
]),
|
|
@@ -1829,15 +1837,15 @@ const ra = { class: "bsgoal-base-dialog" }, ca = { class: "base_dialog" }, ia =
|
|
|
1829
1837
|
]);
|
|
1830
1838
|
};
|
|
1831
1839
|
}
|
|
1832
|
-
}),
|
|
1840
|
+
}), Ea = e, ba = Ee, Ta = {
|
|
1833
1841
|
install(l, c = {}) {
|
|
1834
1842
|
const { exclude: u = [] } = c, d = {
|
|
1835
|
-
BsgoalBaseForm:
|
|
1836
|
-
BsgoalBaseTable:
|
|
1843
|
+
BsgoalBaseForm: Le,
|
|
1844
|
+
BsgoalBaseTable: ye,
|
|
1837
1845
|
BsgoalBaseLine: be,
|
|
1838
|
-
BsgoalBaseSearchTable:
|
|
1839
|
-
BsgoalBaseTree:
|
|
1840
|
-
BsgoalBaseDialog:
|
|
1846
|
+
BsgoalBaseSearchTable: ea,
|
|
1847
|
+
BsgoalBaseTree: ra,
|
|
1848
|
+
BsgoalBaseDialog: ga
|
|
1841
1849
|
};
|
|
1842
1850
|
for (const [_, n] of Object.entries(d))
|
|
1843
1851
|
u.includes(_) || l.component(_, n);
|
|
@@ -1846,8 +1854,8 @@ const ra = { class: "bsgoal-base-dialog" }, ca = { class: "base_dialog" }, ia =
|
|
|
1846
1854
|
useFetch: Ee
|
|
1847
1855
|
};
|
|
1848
1856
|
export {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1857
|
+
Ea as EnumType,
|
|
1858
|
+
Ta as default,
|
|
1859
|
+
ba as useFetchApi
|
|
1852
1860
|
};
|
|
1853
1861
|
//# sourceMappingURL=index.mjs.map
|