@bsgoal/common 1.4.4 → 1.4.6
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 +474 -468
- 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 +27 -12
- package/src/components/bsgoal-base-search-table/demo.vue +94 -7
- package/src/components/bsgoal-base-table/index.vue +2 -2
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 g, openBlock as o, createElementBlock 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((
|
|
40
|
-
n.forEach((
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
39
|
+
const r = n.map((T) => T.width), E = Math.max(...r);
|
|
40
|
+
n.forEach((T) => {
|
|
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
|
-
|
|
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,25 +130,25 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { 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
|
-
|
|
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
|
-
}),
|
|
147
|
-
if (!
|
|
148
|
-
switch (
|
|
146
|
+
}), T = (v = "", h = "", A = "") => {
|
|
147
|
+
if (!A)
|
|
148
|
+
switch (v) {
|
|
149
149
|
case e.INPUT:
|
|
150
150
|
case e.INPUT_TEXT_AREA:
|
|
151
|
-
return `请输入${
|
|
151
|
+
return `请输入${h}`;
|
|
152
152
|
case e.SELECT:
|
|
153
153
|
case e.DATE:
|
|
154
154
|
case e.WEEK:
|
|
@@ -156,7 +156,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
156
156
|
case e.YEAR:
|
|
157
157
|
case e.DATE_TIME:
|
|
158
158
|
case e.TIME:
|
|
159
|
-
return `请选择${
|
|
159
|
+
return `请选择${h}`;
|
|
160
160
|
case e.DATE_RANGE:
|
|
161
161
|
case e.DATE_TIME_RANGE:
|
|
162
162
|
return ["开始日期", "结束日期"];
|
|
@@ -165,10 +165,10 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
165
165
|
case e.MONTH_RANGE:
|
|
166
166
|
return ["开始月份", "结束月份"];
|
|
167
167
|
}
|
|
168
|
-
return
|
|
169
|
-
},
|
|
170
|
-
if (!
|
|
171
|
-
switch (
|
|
168
|
+
return A;
|
|
169
|
+
}, x = (v = "", h = "") => {
|
|
170
|
+
if (!h)
|
|
171
|
+
switch (v) {
|
|
172
172
|
case e.WEEK:
|
|
173
173
|
return "ww";
|
|
174
174
|
case e.DATE:
|
|
@@ -187,52 +187,52 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
187
187
|
case e.DATE_TIME_RANGE:
|
|
188
188
|
return "YYYY-MM-DD HH:mm:ss";
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return h;
|
|
191
191
|
}, $ = () => {
|
|
192
|
-
const
|
|
193
|
-
for (const f of
|
|
194
|
-
const { type:
|
|
195
|
-
if (
|
|
196
|
-
const { 0:
|
|
197
|
-
|
|
192
|
+
const v = s(r), { configOptions: h } = d, A = s(h);
|
|
193
|
+
for (const f of A) {
|
|
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
|
-
},
|
|
204
|
-
const
|
|
205
|
-
type:
|
|
206
|
-
prop:
|
|
207
|
-
value: r.value[
|
|
203
|
+
}, w = (v, h) => {
|
|
204
|
+
const A = {
|
|
205
|
+
type: v,
|
|
206
|
+
prop: h,
|
|
207
|
+
value: r.value[h] || ""
|
|
208
208
|
};
|
|
209
|
-
u("on-change",
|
|
209
|
+
u("on-change", A);
|
|
210
210
|
};
|
|
211
211
|
return c({
|
|
212
212
|
triggerOperationClear: B,
|
|
213
213
|
triggerOperationForm: $,
|
|
214
|
-
validateForm: (
|
|
214
|
+
validateForm: (v = () => {
|
|
215
215
|
}) => {
|
|
216
|
-
_.value.validate((
|
|
217
|
-
if (
|
|
216
|
+
_.value.validate((h = !1, A = {}) => {
|
|
217
|
+
if (h) {
|
|
218
218
|
const f = $();
|
|
219
|
-
|
|
219
|
+
v(f);
|
|
220
220
|
} else {
|
|
221
|
-
|
|
222
|
-
const f = Object.keys(
|
|
221
|
+
v(!1), console.log("field", A);
|
|
222
|
+
const f = Object.keys(A)[0], {
|
|
223
223
|
[f]: {
|
|
224
|
-
0: { message:
|
|
224
|
+
0: { message: p = "" }
|
|
225
225
|
}
|
|
226
|
-
} =
|
|
227
|
-
|
|
226
|
+
} = A;
|
|
227
|
+
Re.error(p);
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
}), (
|
|
232
|
-
const
|
|
233
|
-
return o(),
|
|
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 Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
|
|
|
241
241
|
default: C(() => [
|
|
242
242
|
O(_e, null, {
|
|
243
243
|
default: C(() => [
|
|
244
|
-
(o(!0),
|
|
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
|
-
} = {},
|
|
258
|
-
key:
|
|
254
|
+
range: Q = [],
|
|
255
|
+
format: H = "",
|
|
256
|
+
rules: ee = []
|
|
257
|
+
} = {}, ae) => (o(), b(de, {
|
|
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:
|
|
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:
|
|
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":
|
|
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),
|
|
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:
|
|
321
|
-
onChange: (t) =>
|
|
320
|
+
placeholder: T(a, z, i),
|
|
321
|
+
onChange: (t) => w(a, m)
|
|
322
322
|
}, {
|
|
323
323
|
default: C(() => [
|
|
324
|
-
(o(!0),
|
|
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:
|
|
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":
|
|
371
|
-
"end-placeholder":
|
|
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:
|
|
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":
|
|
390
|
-
"end-placeholder":
|
|
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),
|
|
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(),
|
|
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 Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { 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 Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_conte
|
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
setup(l) {
|
|
443
|
-
return (c, u) => (o(),
|
|
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 He = {
|
|
|
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 Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
|
|
|
614
614
|
c("on-current-change", n);
|
|
615
615
|
}, _ = D(1);
|
|
616
616
|
return (n, r) => {
|
|
617
|
-
const
|
|
618
|
-
return o(),
|
|
619
|
-
F("div",
|
|
620
|
-
O(
|
|
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 Ge = { class: "bsgoal-base-table-pagination" }, je = { 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 Ge = { class: "bsgoal-base-table-pagination" }, je = { 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 Ge = { class: "bsgoal-base-table-pagination" }, je = { 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 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: 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:
|
|
782
|
-
B.value = f[k.rows],
|
|
780
|
+
ue(w, (f) => {
|
|
781
|
+
const { mapProps: p } = u, k = s(p);
|
|
782
|
+
B.value = f[k.rows], T.value = f[k.total];
|
|
783
783
|
});
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
},
|
|
784
|
+
const v = (f = {}) => {
|
|
785
|
+
x.value = f, r.value = 1, U();
|
|
786
|
+
}, h = (f = 1) => {
|
|
787
787
|
r.value = f;
|
|
788
|
-
},
|
|
789
|
-
|
|
788
|
+
}, A = (f = 10) => {
|
|
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 = g("el-table-column"), N = g("el-table"),
|
|
797
|
-
return o(),
|
|
798
|
-
F("div",
|
|
799
|
-
f.$slots.menu ? (o(),
|
|
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 Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
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),
|
|
828
|
-
key:
|
|
829
|
-
label:
|
|
830
|
-
align:
|
|
831
|
-
width:
|
|
832
|
-
fixed:
|
|
833
|
-
"min-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
|
+
fixed: q,
|
|
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,22 +844,22 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
844
844
|
]),
|
|
845
845
|
_: 3
|
|
846
846
|
}, 8, ["data", "header-cell-style"])), [
|
|
847
|
-
[
|
|
847
|
+
[R, $.value]
|
|
848
848
|
])
|
|
849
849
|
], 512),
|
|
850
|
-
O(
|
|
851
|
-
total:
|
|
852
|
-
onOnCurrentChange:
|
|
853
|
-
onOnSizeChange:
|
|
850
|
+
O(Je, {
|
|
851
|
+
total: T.value,
|
|
852
|
+
onOnCurrentChange: h,
|
|
853
|
+
onOnSizeChange: A
|
|
854
854
|
}, null, 8, ["total"])
|
|
855
855
|
])
|
|
856
856
|
]);
|
|
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
|
* 是否为垂直
|
|
@@ -870,27 +870,27 @@ const tt = {
|
|
|
870
870
|
}
|
|
871
871
|
},
|
|
872
872
|
setup(l) {
|
|
873
|
-
return (c, u) => (o(),
|
|
874
|
-
class:
|
|
873
|
+
return (c, u) => (o(), V("div", {
|
|
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
|
}
|
|
881
881
|
});
|
|
882
882
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
883
|
-
var
|
|
883
|
+
var le = (l, c) => {
|
|
884
884
|
let u = l.__vccOpts || l;
|
|
885
885
|
for (let [d, _] of c)
|
|
886
886
|
u[d] = _;
|
|
887
887
|
return u;
|
|
888
|
-
},
|
|
888
|
+
}, nt = {
|
|
889
889
|
name: "ArrowDown"
|
|
890
|
-
},
|
|
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 ae = (l, c) => {
|
|
|
899
899
|
null,
|
|
900
900
|
-1
|
|
901
901
|
/* HOISTED */
|
|
902
|
-
),
|
|
903
|
-
|
|
902
|
+
), st = [
|
|
903
|
+
ut
|
|
904
904
|
];
|
|
905
|
-
function
|
|
906
|
-
return o(),
|
|
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 st = /* @__PURE__ */ ae(at, [["render", ut], ["__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(),
|
|
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 mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__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(),
|
|
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 Et = /* @__PURE__ */ ae(ft, [["render", pt], ["__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(),
|
|
965
|
+
function yt(l, c, u, d, _, n) {
|
|
966
|
+
return o(), V("svg", At, $t);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
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 $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__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(),
|
|
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 Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt
|
|
|
999
999
|
null,
|
|
1000
1000
|
-1
|
|
1001
1001
|
/* HOISTED */
|
|
1002
|
-
),
|
|
1003
|
-
|
|
1002
|
+
), St = [
|
|
1003
|
+
Rt
|
|
1004
1004
|
];
|
|
1005
|
-
function
|
|
1006
|
-
return o(),
|
|
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,12 +1024,12 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1024
1024
|
u.value = !s(u), c("on-fold", u.value);
|
|
1025
1025
|
};
|
|
1026
1026
|
return (_, n) => {
|
|
1027
|
-
const r = g("el-button"),
|
|
1028
|
-
return o(),
|
|
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(
|
|
1032
|
-
onClick: n[0] || (n[0] = (
|
|
1031
|
+
icon: s(It),
|
|
1032
|
+
onClick: n[0] || (n[0] = (T) => _.$emit("on-search"))
|
|
1033
1033
|
}, {
|
|
1034
1034
|
default: C(() => [
|
|
1035
1035
|
K("搜索")
|
|
@@ -1037,40 +1037,40 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1037
1037
|
_: 1
|
|
1038
1038
|
}, 8, ["icon"]),
|
|
1039
1039
|
O(r, {
|
|
1040
|
-
icon: s(
|
|
1041
|
-
onClick: n[1] || (n[1] = (
|
|
1040
|
+
icon: s(Nt),
|
|
1041
|
+
onClick: n[1] || (n[1] = (T) => _.$emit("on-clear"))
|
|
1042
1042
|
}, {
|
|
1043
1043
|
default: C(() => [
|
|
1044
1044
|
K("清空")
|
|
1045
1045
|
]),
|
|
1046
1046
|
_: 1
|
|
1047
1047
|
}, 8, ["icon"]),
|
|
1048
|
-
l.fold ? (o(),
|
|
1048
|
+
l.fold ? (o(), V("div", {
|
|
1049
1049
|
key: 0,
|
|
1050
1050
|
class: "operation_fold",
|
|
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
|
* 绑定的值
|
|
@@ -1111,10 +1111,11 @@ const Lt = { class: "bsgoal-base-cascader" }, zt = {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
return (_, n) => {
|
|
1113
1113
|
const r = g("el-cascader");
|
|
1114
|
-
return o(),
|
|
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 Lt = { class: "bsgoal-base-cascader" }, zt = {
|
|
|
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----------<
|
|
@@ -1171,23 +1172,23 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1171
1172
|
setup(l, { emit: c }) {
|
|
1172
1173
|
const u = l, d = D(null), _ = pe.align, n = D({});
|
|
1173
1174
|
he(() => {
|
|
1174
|
-
const { configOptions:
|
|
1175
|
-
s(
|
|
1176
|
-
const { value:
|
|
1177
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(
|
|
1175
|
+
const { configOptions: h } = u;
|
|
1176
|
+
s(h).forEach((f) => {
|
|
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(() => {
|
|
1181
|
-
const { configOptions:
|
|
1182
|
+
const { configOptions: h } = u, A = s(h), f = {
|
|
1182
1183
|
type: e.OPERATION
|
|
1183
1184
|
};
|
|
1184
|
-
return [...
|
|
1185
|
-
}),
|
|
1185
|
+
return [...A, f];
|
|
1186
|
+
}), E = (h = "", A = "", f = "") => {
|
|
1186
1187
|
if (!f)
|
|
1187
|
-
switch (
|
|
1188
|
+
switch (h) {
|
|
1188
1189
|
case e.INPUT:
|
|
1189
1190
|
case e.INPUT_TEXT_AREA:
|
|
1190
|
-
return `请输入${
|
|
1191
|
+
return `请输入${A}`;
|
|
1191
1192
|
case e.SELECT:
|
|
1192
1193
|
case e.DATE:
|
|
1193
1194
|
case e.WEEK:
|
|
@@ -1196,7 +1197,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1196
1197
|
case e.DATE_TIME:
|
|
1197
1198
|
case e.TIME:
|
|
1198
1199
|
case e.CASCADER:
|
|
1199
|
-
return `请选择${
|
|
1200
|
+
return `请选择${A}`;
|
|
1200
1201
|
case e.DATE_RANGE:
|
|
1201
1202
|
case e.DATE_TIME_RANGE:
|
|
1202
1203
|
return ["开始日期", "结束日期"];
|
|
@@ -1206,9 +1207,9 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1206
1207
|
return ["开始月份", "结束月份"];
|
|
1207
1208
|
}
|
|
1208
1209
|
return f;
|
|
1209
|
-
},
|
|
1210
|
-
if (!
|
|
1211
|
-
switch (
|
|
1210
|
+
}, T = (h = "", A = "") => {
|
|
1211
|
+
if (!A)
|
|
1212
|
+
switch (h) {
|
|
1212
1213
|
case e.WEEK:
|
|
1213
1214
|
return "ww";
|
|
1214
1215
|
case e.DATE:
|
|
@@ -1227,39 +1228,44 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1227
1228
|
case e.DATE_TIME_RANGE:
|
|
1228
1229
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1229
1230
|
}
|
|
1230
|
-
return
|
|
1231
|
-
},
|
|
1232
|
-
const
|
|
1233
|
-
for (const
|
|
1234
|
-
const { type:
|
|
1235
|
-
if (
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1231
|
+
return A;
|
|
1232
|
+
}, x = () => {
|
|
1233
|
+
const { configOptions: h } = u, A = s(n), f = s(h), p = {};
|
|
1234
|
+
for (const k of f) {
|
|
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
|
-
type:
|
|
1253
|
-
prop:
|
|
1254
|
-
value: n.value[
|
|
1258
|
+
type: h,
|
|
1259
|
+
prop: A,
|
|
1260
|
+
value: n.value[A] || ""
|
|
1255
1261
|
};
|
|
1256
1262
|
c("on-change", f);
|
|
1257
1263
|
};
|
|
1258
|
-
return (
|
|
1259
|
-
const f = g("el-input"),
|
|
1260
|
-
return o(),
|
|
1261
|
-
F("div",
|
|
1262
|
-
|
|
1264
|
+
return (h, A) => {
|
|
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,20 +1275,20 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1269
1275
|
default: C(() => [
|
|
1270
1276
|
O(me, null, {
|
|
1271
1277
|
default: C(() => [
|
|
1272
|
-
(o(!0),
|
|
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
|
-
} = {},
|
|
1285
|
-
key:
|
|
1287
|
+
max: Q = 10,
|
|
1288
|
+
range: H = [],
|
|
1289
|
+
format: ee = ""
|
|
1290
|
+
} = {}, ae) => j((o(), b(_e, {
|
|
1291
|
+
key: ae,
|
|
1286
1292
|
xs: 24,
|
|
1287
1293
|
sm: 12,
|
|
1288
1294
|
md: l.medium
|
|
@@ -1293,164 +1299,164 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
1293
1299
|
prop: a
|
|
1294
1300
|
}, {
|
|
1295
1301
|
default: C(() => [
|
|
1296
|
-
se ? (o(),
|
|
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
|
-
modelValue:
|
|
1318
|
-
"onUpdate:modelValue":
|
|
1323
|
+
modelValue: h.num,
|
|
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),
|
|
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),
|
|
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:
|
|
1381
|
-
"value-format":
|
|
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":
|
|
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":
|
|
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":
|
|
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),
|
|
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(),
|
|
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
|
-
fold:
|
|
1450
|
-
onOnSearch:
|
|
1455
|
+
fold: ae >= 7,
|
|
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 Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
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 Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
|
|
|
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----------<
|
|
@@ -1556,26 +1562,26 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
|
|
|
1556
1562
|
},
|
|
1557
1563
|
setup(l) {
|
|
1558
1564
|
const c = l, u = D(!1);
|
|
1559
|
-
|
|
1565
|
+
Ne("transferFoldStatus", u);
|
|
1560
1566
|
const d = s(c.configOptions), _ = oe(() => d.filter(($) => {
|
|
1561
1567
|
const { type: B = "" } = $;
|
|
1562
1568
|
return !!B;
|
|
1563
1569
|
})), n = oe(() => d.filter(($) => {
|
|
1564
1570
|
const { item: B = !1 } = $;
|
|
1565
1571
|
return !B;
|
|
1566
|
-
})), r =
|
|
1567
|
-
|
|
1572
|
+
})), r = Fe(), E = D(Object.keys(r)), T = D(null), x = ($) => {
|
|
1573
|
+
T.value.refreshList($);
|
|
1568
1574
|
};
|
|
1569
|
-
return ($, B) => (o(),
|
|
1570
|
-
F("div",
|
|
1571
|
-
O(
|
|
1575
|
+
return ($, B) => (o(), V("div", Jt, [
|
|
1576
|
+
F("div", Qt, [
|
|
1577
|
+
O(qt, {
|
|
1572
1578
|
"config-options": s(_),
|
|
1573
|
-
onOnSearch:
|
|
1574
|
-
onOnClear:
|
|
1579
|
+
onOnSearch: x,
|
|
1580
|
+
onOnClear: x
|
|
1575
1581
|
}, null, 8, ["config-options"]),
|
|
1576
|
-
O(
|
|
1582
|
+
O(ye, {
|
|
1577
1583
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1578
|
-
ref:
|
|
1584
|
+
ref: T,
|
|
1579
1585
|
operationWidth: l.operationWidth,
|
|
1580
1586
|
"config-options": s(n),
|
|
1581
1587
|
data: l.tableData,
|
|
@@ -1584,11 +1590,11 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
|
|
|
1584
1590
|
expression: l.expression,
|
|
1585
1591
|
fetch: l.fetch,
|
|
1586
1592
|
call: l.call
|
|
1587
|
-
},
|
|
1588
|
-
|
|
1589
|
-
name:
|
|
1590
|
-
fn: C(({ row:
|
|
1591
|
-
ie($.$slots,
|
|
1593
|
+
}, Me({ _: 2 }, [
|
|
1594
|
+
X(E.value, (w) => ({
|
|
1595
|
+
name: w,
|
|
1596
|
+
fn: C(({ row: U = {} }) => [
|
|
1597
|
+
ie($.$slots, w, { row: U })
|
|
1592
1598
|
])
|
|
1593
1599
|
}))
|
|
1594
1600
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1596,9 +1602,9 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
|
|
|
1596
1602
|
]));
|
|
1597
1603
|
}
|
|
1598
1604
|
});
|
|
1599
|
-
const
|
|
1605
|
+
const ta = { class: "bsgoal-base-tree-fold" }, aa = {
|
|
1600
1606
|
name: "BsgoalBaseTreeFold"
|
|
1601
|
-
},
|
|
1607
|
+
}, la = /* @__PURE__ */ Object.assign(aa, {
|
|
1602
1608
|
props: ["modelValue"],
|
|
1603
1609
|
emits: ["update:modelValue"],
|
|
1604
1610
|
setup(l, { emit: c }) {
|
|
@@ -1608,18 +1614,18 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
|
1608
1614
|
};
|
|
1609
1615
|
return (_, n) => {
|
|
1610
1616
|
const r = g("el-icon");
|
|
1611
|
-
return o(),
|
|
1617
|
+
return o(), V("div", ta, [
|
|
1612
1618
|
F("div", {
|
|
1613
|
-
class:
|
|
1619
|
+
class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
|
|
1614
1620
|
onClick: d
|
|
1615
1621
|
}, [
|
|
1616
1622
|
O(r, { color: "#fff" }, {
|
|
1617
1623
|
default: C(() => [
|
|
1618
|
-
|
|
1619
|
-
[
|
|
1624
|
+
j(O(s(gt), null, null, 512), [
|
|
1625
|
+
[te, s(u)]
|
|
1620
1626
|
]),
|
|
1621
|
-
|
|
1622
|
-
[
|
|
1627
|
+
j(O(s(Tt), null, null, 512), [
|
|
1628
|
+
[te, !s(u)]
|
|
1623
1629
|
])
|
|
1624
1630
|
]),
|
|
1625
1631
|
_: 1
|
|
@@ -1629,9 +1635,9 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
|
1629
1635
|
};
|
|
1630
1636
|
}
|
|
1631
1637
|
});
|
|
1632
|
-
const
|
|
1638
|
+
const na = { class: "bsgoal-base-tree" }, oa = { class: "base_tree" }, ua = { class: "base_tree_main" }, sa = {
|
|
1633
1639
|
name: "BsgoalBaseTree"
|
|
1634
|
-
},
|
|
1640
|
+
}, ra = /* @__PURE__ */ Object.assign(sa, {
|
|
1635
1641
|
props: {
|
|
1636
1642
|
/**
|
|
1637
1643
|
* 树结构 的下边距
|
|
@@ -1689,49 +1695,49 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
|
|
|
1689
1695
|
ue(_, ($) => {
|
|
1690
1696
|
n.value.filter($);
|
|
1691
1697
|
});
|
|
1692
|
-
const r = ($, B) => $ ? B.label.includes($) : !0,
|
|
1693
|
-
c("on-click", $, B,
|
|
1694
|
-
},
|
|
1698
|
+
const r = ($, B) => $ ? B.label.includes($) : !0, E = D(!0), T = ($, B, w, U) => {
|
|
1699
|
+
c("on-click", $, B, w, U);
|
|
1700
|
+
}, x = async ($, B, w) => {
|
|
1695
1701
|
if ($.level === 0) {
|
|
1696
|
-
const
|
|
1697
|
-
return B(
|
|
1702
|
+
const U = await w.initNode($);
|
|
1703
|
+
return B(U || []);
|
|
1698
1704
|
} else {
|
|
1699
|
-
const
|
|
1700
|
-
B(
|
|
1705
|
+
const U = await w.lazyLoad($);
|
|
1706
|
+
B(U || []);
|
|
1701
1707
|
}
|
|
1702
1708
|
};
|
|
1703
1709
|
return ($, B) => {
|
|
1704
|
-
const
|
|
1705
|
-
return o(),
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
O(
|
|
1710
|
+
const w = g("el-input"), U = g("el-tree");
|
|
1711
|
+
return o(), V("div", na, [
|
|
1712
|
+
j((o(), V("div", oa, [
|
|
1713
|
+
j(F("div", ua, [
|
|
1714
|
+
O(w, {
|
|
1709
1715
|
modelValue: _.value,
|
|
1710
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
1716
|
+
"onUpdate:modelValue": B[0] || (B[0] = (v) => _.value = v),
|
|
1711
1717
|
class: "base_tree_main_input",
|
|
1712
1718
|
placeholder: "输入关键字过滤"
|
|
1713
1719
|
}, null, 8, ["modelValue"]),
|
|
1714
|
-
O(
|
|
1720
|
+
O(U, {
|
|
1715
1721
|
ref_key: "EL_TREE_REF",
|
|
1716
1722
|
ref: n,
|
|
1717
1723
|
lazy: "",
|
|
1718
1724
|
"highlight-current": "",
|
|
1719
1725
|
"empty-text": "暂无数据",
|
|
1720
|
-
load: (
|
|
1726
|
+
load: (v, h) => x(v, h, u),
|
|
1721
1727
|
"expand-on-click-node": !1,
|
|
1722
1728
|
props: l.treeProps,
|
|
1723
1729
|
"filter-node-method": r,
|
|
1724
|
-
onNodeClick:
|
|
1730
|
+
onNodeClick: T
|
|
1725
1731
|
}, null, 8, ["load", "props"])
|
|
1726
1732
|
], 512), [
|
|
1727
|
-
[
|
|
1733
|
+
[te, E.value]
|
|
1728
1734
|
]),
|
|
1729
|
-
|
|
1730
|
-
[
|
|
1735
|
+
j(O(be, { vertical: "" }, null, 512), [
|
|
1736
|
+
[te, E.value]
|
|
1731
1737
|
]),
|
|
1732
|
-
O(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
1738
|
+
O(la, {
|
|
1739
|
+
modelValue: E.value,
|
|
1740
|
+
"onUpdate:modelValue": B[1] || (B[1] = (v) => E.value = v)
|
|
1735
1741
|
}, null, 8, ["modelValue"])
|
|
1736
1742
|
])), [
|
|
1737
1743
|
[s(d), l.gasket]
|
|
@@ -1740,9 +1746,9 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
|
|
|
1740
1746
|
};
|
|
1741
1747
|
}
|
|
1742
1748
|
});
|
|
1743
|
-
const
|
|
1749
|
+
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
1750
|
name: "BsgoalBaseDialog"
|
|
1745
|
-
},
|
|
1751
|
+
}, ga = /* @__PURE__ */ Object.assign(fa, {
|
|
1746
1752
|
props: {
|
|
1747
1753
|
/**
|
|
1748
1754
|
* 弹窗状态
|
|
@@ -1787,39 +1793,39 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
|
|
|
1787
1793
|
}
|
|
1788
1794
|
), ue(d, (r) => {
|
|
1789
1795
|
c("update:modelValue", r);
|
|
1790
|
-
}), (r,
|
|
1791
|
-
const
|
|
1792
|
-
return o(),
|
|
1793
|
-
F("div",
|
|
1794
|
-
O(
|
|
1796
|
+
}), (r, E) => {
|
|
1797
|
+
const T = g("el-button"), x = g("el-dialog");
|
|
1798
|
+
return o(), V("div", ca, [
|
|
1799
|
+
F("div", ia, [
|
|
1800
|
+
O(x, {
|
|
1795
1801
|
modelValue: d.value,
|
|
1796
|
-
"onUpdate:modelValue":
|
|
1802
|
+
"onUpdate:modelValue": E[0] || (E[0] = ($) => d.value = $),
|
|
1797
1803
|
"custom-class": "bsgoal_base_dialog_main"
|
|
1798
1804
|
}, {
|
|
1799
1805
|
header: C(() => [
|
|
1800
|
-
F("div",
|
|
1806
|
+
F("div", da, W(l.title), 1)
|
|
1801
1807
|
]),
|
|
1802
1808
|
footer: C(() => [
|
|
1803
|
-
F("span",
|
|
1804
|
-
O(
|
|
1809
|
+
F("span", ma, [
|
|
1810
|
+
O(T, { onClick: _ }, {
|
|
1805
1811
|
default: C(() => [
|
|
1806
|
-
K(
|
|
1812
|
+
K(W(l.cancelTxt), 1)
|
|
1807
1813
|
]),
|
|
1808
1814
|
_: 1
|
|
1809
1815
|
}),
|
|
1810
|
-
O(
|
|
1816
|
+
O(T, {
|
|
1811
1817
|
type: "primary",
|
|
1812
1818
|
onClick: n
|
|
1813
1819
|
}, {
|
|
1814
1820
|
default: C(() => [
|
|
1815
|
-
K(
|
|
1821
|
+
K(W(l.confirmTxt), 1)
|
|
1816
1822
|
]),
|
|
1817
1823
|
_: 1
|
|
1818
1824
|
})
|
|
1819
1825
|
])
|
|
1820
1826
|
]),
|
|
1821
1827
|
default: C(() => [
|
|
1822
|
-
F("div",
|
|
1828
|
+
F("div", _a, [
|
|
1823
1829
|
ie(r.$slots, "default")
|
|
1824
1830
|
])
|
|
1825
1831
|
]),
|
|
@@ -1829,15 +1835,15 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
|
|
|
1829
1835
|
]);
|
|
1830
1836
|
};
|
|
1831
1837
|
}
|
|
1832
|
-
}),
|
|
1838
|
+
}), Ea = e, ba = Ee, Ta = {
|
|
1833
1839
|
install(l, c = {}) {
|
|
1834
1840
|
const { exclude: u = [] } = c, d = {
|
|
1835
|
-
BsgoalBaseForm:
|
|
1836
|
-
BsgoalBaseTable:
|
|
1841
|
+
BsgoalBaseForm: Le,
|
|
1842
|
+
BsgoalBaseTable: ye,
|
|
1837
1843
|
BsgoalBaseLine: be,
|
|
1838
|
-
BsgoalBaseSearchTable:
|
|
1839
|
-
BsgoalBaseTree:
|
|
1840
|
-
BsgoalBaseDialog:
|
|
1844
|
+
BsgoalBaseSearchTable: ea,
|
|
1845
|
+
BsgoalBaseTree: ra,
|
|
1846
|
+
BsgoalBaseDialog: ga
|
|
1841
1847
|
};
|
|
1842
1848
|
for (const [_, n] of Object.entries(d))
|
|
1843
1849
|
u.includes(_) || l.component(_, n);
|
|
@@ -1846,8 +1852,8 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
|
|
|
1846
1852
|
useFetch: Ee
|
|
1847
1853
|
};
|
|
1848
1854
|
export {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1855
|
+
Ea as EnumType,
|
|
1856
|
+
Ta as default,
|
|
1857
|
+
ba as useFetchApi
|
|
1852
1858
|
};
|
|
1853
1859
|
//# sourceMappingURL=index.mjs.map
|