@bsgoal/common 0.1.1 → 1.0.1
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 +532 -463
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/components/bsgoal-base-cascader/demo.vue +317 -0
- package/src/components/bsgoal-base-cascader/index.vue +93 -0
- package/src/components/bsgoal-base-search/demo.vue +179 -159
- package/src/components/bsgoal-base-search/index.vue +22 -2
- package/src/components/bsgoal-base-search-operation/index.vue +7 -9
- package/src/components/bsgoal-base-search-table/demo.vue +2 -2
- package/src/components/bsgoal-base-table/index.vue +4 -1
- package/src/components/bsgoal-base-table-pagination/index.vue +2 -4
- package/src/enums/enumType.js +3 -2
- package/src/router/index.js +6 -1
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ye = Object.defineProperty;
|
|
2
2
|
var Te = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var Ve = (
|
|
5
|
-
for (var
|
|
6
|
-
|
|
3
|
+
var we = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Ve = (l, c, u) => c in l ? ye(l, c, { enumerable: !0, configurable: !0, writable: !0, value: u }) : l[c] = u, Ae = (l, c) => {
|
|
5
|
+
for (var u in c || (c = {}))
|
|
6
|
+
we.call(c, u) && Ve(l, u, c[u]);
|
|
7
7
|
if (Te)
|
|
8
|
-
for (var
|
|
9
|
-
Be.call(c,
|
|
10
|
-
return
|
|
8
|
+
for (var u of Te(c))
|
|
9
|
+
Be.call(c, u) && Ve(l, u, c[u]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
|
-
import { ref as B, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as
|
|
12
|
+
import { ref as B, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as o, createElementBlock as T, createElementVNode as F, withDirectives as G, createBlock as E, withCtx as A, createVNode as D, Fragment as I, renderList as W, createCommentVNode as $, createTextVNode as K, toDisplayString as j, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ge, vShow as Q, provide as Oe, useSlots as ke, createSlots as Ne } from "vue";
|
|
13
13
|
import { ElMessage as Fe } from "element-plus";
|
|
14
14
|
const e = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -30,62 +30,63 @@ const e = {
|
|
|
30
30
|
TIME_RANGE: "timerange",
|
|
31
31
|
DATE_TIME: "datetime",
|
|
32
32
|
DATE_TIME_RANGE: "datetimerange",
|
|
33
|
-
OPERATION: "operation"
|
|
33
|
+
OPERATION: "operation",
|
|
34
|
+
CASCADER: "cascader"
|
|
34
35
|
};
|
|
35
36
|
let fe = null;
|
|
36
|
-
const ve = (
|
|
37
|
-
const c = [],
|
|
38
|
-
const r =
|
|
39
|
-
|
|
40
|
-
const { labelEl:
|
|
41
|
-
|
|
37
|
+
const ve = (l) => {
|
|
38
|
+
const c = [], u = [], d = (n = []) => {
|
|
39
|
+
const r = n.map((b) => b.width), p = Math.max(...r);
|
|
40
|
+
n.forEach((b) => {
|
|
41
|
+
const { labelEl: y } = b;
|
|
42
|
+
y.style.width = `${p}px`;
|
|
42
43
|
});
|
|
43
44
|
}, _ = () => {
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
45
|
+
if (l) {
|
|
46
|
+
const n = l.querySelectorAll(".el-form-item__label");
|
|
47
|
+
if (n && n.length) {
|
|
47
48
|
let r = 0;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const { x:
|
|
51
|
-
b === 0 && (r =
|
|
49
|
+
n.forEach((p, b) => {
|
|
50
|
+
p.style.width = "initial", p.style.whiteSpace = "nowrap";
|
|
51
|
+
const { x: y = 0, width: w = 0 } = p.getBoundingClientRect(), N = { x: y, width: w, labelEl: p };
|
|
52
|
+
b === 0 && (r = y), y === r ? c.push(N) : u.push(N);
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
fe && clearTimeout(fe), fe = setTimeout(() => {
|
|
57
|
-
_(), d(c), d(
|
|
58
|
+
_(), d(c), d(u);
|
|
58
59
|
}, 50);
|
|
59
|
-
},
|
|
60
|
+
}, pe = {
|
|
60
61
|
/**
|
|
61
62
|
* 表单自动左对齐
|
|
62
63
|
*/
|
|
63
64
|
align: {
|
|
64
|
-
created(
|
|
65
|
+
created(l) {
|
|
65
66
|
window.addEventListener("resize", () => {
|
|
66
|
-
ve(
|
|
67
|
+
ve(l);
|
|
67
68
|
});
|
|
68
69
|
},
|
|
69
|
-
mounted(
|
|
70
|
-
ve(
|
|
70
|
+
mounted(l) {
|
|
71
|
+
ve(l);
|
|
71
72
|
},
|
|
72
|
-
unmounted(
|
|
73
|
-
window.removeEventListener("resize", ve(
|
|
73
|
+
unmounted(l) {
|
|
74
|
+
window.removeEventListener("resize", ve(l));
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
/**
|
|
77
78
|
* 表格自动高度
|
|
78
79
|
*/
|
|
79
|
-
height: (
|
|
80
|
-
if (
|
|
81
|
-
const { y: d = 0 } =
|
|
82
|
-
|
|
80
|
+
height: (l, { value: c = 65, arg: u = "" }) => {
|
|
81
|
+
if (l) {
|
|
82
|
+
const { y: d = 0 } = l.getBoundingClientRect();
|
|
83
|
+
l.style.height = `calc(100vh - ${d + c}px)`;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
|
-
const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" },
|
|
87
|
+
const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { key: 1 }, Ue = {
|
|
87
88
|
name: "BsgoalBaseForm"
|
|
88
|
-
}, Ie = /* @__PURE__ */ Object.assign(
|
|
89
|
+
}, Ie = /* @__PURE__ */ Object.assign(Ue, {
|
|
89
90
|
props: {
|
|
90
91
|
/**
|
|
91
92
|
* >----------props----------<
|
|
@@ -126,24 +127,24 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
129
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
129
|
-
setup(
|
|
130
|
-
const d =
|
|
130
|
+
setup(l, { expose: c, emit: u }) {
|
|
131
|
+
const d = l, _ = B(null), n = pe.align, r = B({});
|
|
131
132
|
he(() => {
|
|
132
|
-
const { configOptions: h, values: v } = d,
|
|
133
|
-
|
|
134
|
-
const { value:
|
|
135
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[
|
|
133
|
+
const { configOptions: h, values: v } = d, V = s(h), f = s(v);
|
|
134
|
+
V.forEach((C) => {
|
|
135
|
+
const { value: O = "", prop: k = "", type: M = "" } = C;
|
|
136
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[k] = f[k] || O;
|
|
136
137
|
});
|
|
137
138
|
});
|
|
138
|
-
const
|
|
139
|
+
const p = oe(() => {
|
|
139
140
|
const { configOptions: h } = d;
|
|
140
|
-
return s(h).map((
|
|
141
|
-
let { rules: C = !1, label:
|
|
142
|
-
const
|
|
143
|
-
return C && (typeof C == "boolean" ? C = [
|
|
141
|
+
return s(h).map((f) => {
|
|
142
|
+
let { rules: C = !1, label: O = "" } = f;
|
|
143
|
+
const k = { required: !0, message: `${O}不能为空`, trigger: "blur" };
|
|
144
|
+
return C && (typeof C == "boolean" ? C = [k] : Array.isArray(C) ? C = [k, ...C] : C = [k, C]), f.rules = C, f;
|
|
144
145
|
});
|
|
145
|
-
}), b = (h = "", v = "",
|
|
146
|
-
if (!
|
|
146
|
+
}), b = (h = "", v = "", V = "") => {
|
|
147
|
+
if (!V)
|
|
147
148
|
switch (h) {
|
|
148
149
|
case e.INPUT:
|
|
149
150
|
case e.INPUT_TEXT_AREA:
|
|
@@ -164,8 +165,8 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
164
165
|
case e.MONTH_RANGE:
|
|
165
166
|
return ["开始月份", "结束月份"];
|
|
166
167
|
}
|
|
167
|
-
return
|
|
168
|
-
},
|
|
168
|
+
return V;
|
|
169
|
+
}, y = (h = "", v = "") => {
|
|
169
170
|
if (!v)
|
|
170
171
|
switch (h) {
|
|
171
172
|
case e.WEEK:
|
|
@@ -187,51 +188,51 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
187
188
|
return "YYYY-MM-DD HH:mm:ss";
|
|
188
189
|
}
|
|
189
190
|
return v;
|
|
190
|
-
},
|
|
191
|
-
const h = s(r), { configOptions: v } = d,
|
|
192
|
-
for (const
|
|
193
|
-
const { type: C = "", range:
|
|
194
|
-
if (C.endsWith("range") &&
|
|
195
|
-
const { 0: M = "", 1: P = "" } = h[
|
|
196
|
-
h[
|
|
191
|
+
}, w = () => {
|
|
192
|
+
const h = s(r), { configOptions: v } = d, V = s(v);
|
|
193
|
+
for (const f of V) {
|
|
194
|
+
const { type: C = "", range: O = [], prop: k = "" } = f;
|
|
195
|
+
if (C.endsWith("range") && O && O.length === 2) {
|
|
196
|
+
const { 0: M = "", 1: P = "" } = h[k], { 0: S = "", 1: U = "" } = O;
|
|
197
|
+
h[S] = M, h[U] = P;
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
return
|
|
200
|
+
return u("on-form", h), h;
|
|
200
201
|
}, N = () => {
|
|
201
|
-
_.value.resetFields(),
|
|
202
|
+
_.value.resetFields(), u("on-clear", r.value);
|
|
202
203
|
}, x = (h, v) => {
|
|
203
|
-
const
|
|
204
|
+
const V = {
|
|
204
205
|
type: h,
|
|
205
206
|
prop: v,
|
|
206
207
|
value: r.value[v] || ""
|
|
207
208
|
};
|
|
208
|
-
|
|
209
|
+
u("on-change", V);
|
|
209
210
|
};
|
|
210
211
|
return c({
|
|
211
212
|
triggerOperationClear: N,
|
|
212
|
-
triggerOperationForm:
|
|
213
|
+
triggerOperationForm: w,
|
|
213
214
|
validateForm: (h = () => {
|
|
214
215
|
}) => {
|
|
215
|
-
_.value.validate((v = !1,
|
|
216
|
+
_.value.validate((v = !1, V = {}) => {
|
|
216
217
|
if (v) {
|
|
217
|
-
const
|
|
218
|
-
h(
|
|
218
|
+
const f = w();
|
|
219
|
+
h(f);
|
|
219
220
|
} else {
|
|
220
|
-
h(!1), console.log("field",
|
|
221
|
-
const
|
|
222
|
-
[
|
|
221
|
+
h(!1), console.log("field", V);
|
|
222
|
+
const f = Object.keys(V)[0], {
|
|
223
|
+
[f]: {
|
|
223
224
|
0: { message: C = "" }
|
|
224
225
|
}
|
|
225
|
-
} =
|
|
226
|
+
} = V;
|
|
226
227
|
Fe.error(C);
|
|
227
228
|
}
|
|
228
229
|
});
|
|
229
230
|
}
|
|
230
231
|
}), (h, v) => {
|
|
231
|
-
const
|
|
232
|
-
return
|
|
232
|
+
const V = g("el-input"), f = g("el-input-number"), C = g("el-radio"), O = g("el-radio-group"), k = g("el-option"), M = g("el-select"), P = g("el-slider"), S = g("el-switch"), U = g("el-date-picker"), X = g("el-time-picker"), Z = g("el-checkbox"), le = g("el-checkbox-group"), ee = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
|
|
233
|
+
return o(), T("div", Me, [
|
|
233
234
|
F("div", Re, [
|
|
234
|
-
G((
|
|
235
|
+
G((o(), E(me, {
|
|
235
236
|
ref_key: "EL_FORM_REF",
|
|
236
237
|
ref: _,
|
|
237
238
|
"label-suffix": ":",
|
|
@@ -240,10 +241,10 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
240
241
|
default: A(() => [
|
|
241
242
|
D(_e, null, {
|
|
242
243
|
default: A(() => [
|
|
243
|
-
(
|
|
244
|
+
(o(!0), T(I, null, W(s(p), ({
|
|
244
245
|
label: L = "",
|
|
245
|
-
prop:
|
|
246
|
-
type:
|
|
246
|
+
prop: m = "",
|
|
247
|
+
type: a = "text",
|
|
247
248
|
placeholder: i = "",
|
|
248
249
|
readonly: z = !1,
|
|
249
250
|
clearable: se = !0,
|
|
@@ -253,39 +254,39 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
253
254
|
range: q = [],
|
|
254
255
|
format: Y = "",
|
|
255
256
|
rules: J = []
|
|
256
|
-
} = {}, te) => (
|
|
257
|
+
} = {}, te) => (o(), E(de, {
|
|
257
258
|
key: te,
|
|
258
259
|
xs: 24,
|
|
259
260
|
sm: 24,
|
|
260
|
-
md:
|
|
261
|
+
md: l.medium
|
|
261
262
|
}, {
|
|
262
263
|
default: A(() => [
|
|
263
264
|
D(ee, {
|
|
264
265
|
label: L,
|
|
265
|
-
prop:
|
|
266
|
+
prop: m,
|
|
266
267
|
rules: J
|
|
267
268
|
}, {
|
|
268
269
|
default: A(() => [
|
|
269
|
-
z ? (
|
|
270
|
-
|
|
270
|
+
z ? (o(), T("div", Se, j(r.value[m]), 1)) : (o(), T(I, { key: 0 }, [
|
|
271
|
+
a === s(e).INPUT ? (o(), E(V, {
|
|
271
272
|
key: 0,
|
|
272
|
-
modelValue: r.value[
|
|
273
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
274
|
-
placeholder: b(
|
|
273
|
+
modelValue: r.value[m],
|
|
274
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
275
|
+
placeholder: b(a, L, i),
|
|
275
276
|
clearable: se,
|
|
276
|
-
onChange: (t) => x(
|
|
277
|
+
onChange: (t) => x(a, m)
|
|
277
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
278
|
-
|
|
279
|
+
a === s(e).INPUT_TEXT_AREA ? (o(), E(V, {
|
|
279
280
|
key: 1,
|
|
280
|
-
modelValue: r.value[
|
|
281
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
281
|
+
modelValue: r.value[m],
|
|
282
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
282
283
|
type: "textarea",
|
|
283
284
|
rows: re,
|
|
284
285
|
clearable: se,
|
|
285
|
-
placeholder: b(
|
|
286
|
-
onChange: (t) => x(
|
|
286
|
+
placeholder: b(a, L, i),
|
|
287
|
+
onChange: (t) => x(a, m)
|
|
287
288
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
288
|
-
|
|
289
|
+
a === s(e).INPUT_NUMBER ? (o(), E(f, {
|
|
289
290
|
key: 2,
|
|
290
291
|
modelValue: h.num,
|
|
291
292
|
"onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
|
|
@@ -293,14 +294,14 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
293
294
|
max: ne,
|
|
294
295
|
onChange: x
|
|
295
296
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
296
|
-
|
|
297
|
+
a === s(e).RADIO ? (o(), E(O, {
|
|
297
298
|
key: 3,
|
|
298
|
-
modelValue: r.value[
|
|
299
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
300
|
-
onChange: (t) => x(
|
|
299
|
+
modelValue: r.value[m],
|
|
300
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
301
|
+
onChange: (t) => x(a, m)
|
|
301
302
|
}, {
|
|
302
303
|
default: A(() => [
|
|
303
|
-
(
|
|
304
|
+
(o(!0), T(I, null, W(q, (t, H) => (o(), E(C, {
|
|
304
305
|
key: H,
|
|
305
306
|
label: t.value
|
|
306
307
|
}, {
|
|
@@ -312,15 +313,15 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
312
313
|
]),
|
|
313
314
|
_: 2
|
|
314
315
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
315
|
-
|
|
316
|
+
a === s(e).SELECT ? (o(), E(M, {
|
|
316
317
|
key: 4,
|
|
317
|
-
modelValue: r.value[
|
|
318
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
319
|
-
placeholder: b(
|
|
320
|
-
onChange: (t) => x(
|
|
318
|
+
modelValue: r.value[m],
|
|
319
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
320
|
+
placeholder: b(a, L, i),
|
|
321
|
+
onChange: (t) => x(a, m)
|
|
321
322
|
}, {
|
|
322
323
|
default: A(() => [
|
|
323
|
-
(
|
|
324
|
+
(o(!0), T(I, null, W(q, (t, H) => (o(), E(k, {
|
|
324
325
|
key: H,
|
|
325
326
|
label: t.label,
|
|
326
327
|
value: t.value
|
|
@@ -328,75 +329,75 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
328
329
|
]),
|
|
329
330
|
_: 2
|
|
330
331
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
331
|
-
|
|
332
|
+
a === s(e).SLIDER ? (o(), E(P, {
|
|
332
333
|
key: 5,
|
|
333
|
-
modelValue: r.value[
|
|
334
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
334
|
+
modelValue: r.value[m],
|
|
335
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
335
336
|
min: ce,
|
|
336
337
|
max: ne,
|
|
337
|
-
onChange: (t) => x(
|
|
338
|
+
onChange: (t) => x(a, m)
|
|
338
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
339
|
-
|
|
340
|
+
a === s(e).SWITCH ? (o(), E(S, {
|
|
340
341
|
key: 6,
|
|
341
|
-
modelValue: r.value[
|
|
342
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
342
|
+
modelValue: r.value[m],
|
|
343
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
343
344
|
"active-value": q[0] || !0,
|
|
344
345
|
"inactive-value": q[1] || !1,
|
|
345
|
-
onChange: (t) => x(
|
|
346
|
+
onChange: (t) => x(a, m)
|
|
346
347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
347
348
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
348
|
-
|
|
349
|
-
) ? (
|
|
349
|
+
a
|
|
350
|
+
) ? (o(), E(U, {
|
|
350
351
|
key: 7,
|
|
351
|
-
modelValue: r.value[
|
|
352
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
353
|
-
format:
|
|
354
|
-
"value-format":
|
|
355
|
-
type:
|
|
356
|
-
placeholder: b(
|
|
357
|
-
onChange: (t) => x(
|
|
352
|
+
modelValue: r.value[m],
|
|
353
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
354
|
+
format: y(a, Y),
|
|
355
|
+
"value-format": y(a, Y),
|
|
356
|
+
type: a,
|
|
357
|
+
placeholder: b(a, L, i),
|
|
358
|
+
onChange: (t) => x(a, m)
|
|
358
359
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
359
360
|
[
|
|
360
361
|
s(e).DATE_RANGE,
|
|
361
362
|
s(e).MONTH_RANGE,
|
|
362
363
|
s(e).DATE_TIME_RANGE
|
|
363
|
-
].includes(
|
|
364
|
+
].includes(a) ? (o(), E(U, {
|
|
364
365
|
key: 8,
|
|
365
|
-
modelValue: r.value[
|
|
366
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
367
|
-
type:
|
|
368
|
-
"value-format":
|
|
369
|
-
"start-placeholder": b(
|
|
370
|
-
"end-placeholder": b(
|
|
371
|
-
onChange: (t) => x(
|
|
366
|
+
modelValue: r.value[m],
|
|
367
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
368
|
+
type: a,
|
|
369
|
+
"value-format": y(a, Y),
|
|
370
|
+
"start-placeholder": b(a, L, i)[0],
|
|
371
|
+
"end-placeholder": b(a, L, i)[1],
|
|
372
|
+
onChange: (t) => x(a, m)
|
|
372
373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
373
|
-
[s(e).TIME].includes(
|
|
374
|
+
[s(e).TIME].includes(a) ? (o(), E(X, {
|
|
374
375
|
key: 9,
|
|
375
|
-
modelValue: r.value[
|
|
376
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
376
|
+
modelValue: r.value[m],
|
|
377
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
377
378
|
"arrow-control": "",
|
|
378
|
-
"value-format":
|
|
379
|
-
placeholder: b(
|
|
380
|
-
onChange: (t) => x(
|
|
379
|
+
"value-format": y(a, Y),
|
|
380
|
+
placeholder: b(a, L, i),
|
|
381
|
+
onChange: (t) => x(a, m)
|
|
381
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
382
|
-
[s(e).TIME_RANGE].includes(
|
|
383
|
+
[s(e).TIME_RANGE].includes(a) ? (o(), E(X, {
|
|
383
384
|
key: 10,
|
|
384
|
-
modelValue: r.value[
|
|
385
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
385
|
+
modelValue: r.value[m],
|
|
386
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
386
387
|
"is-range": "",
|
|
387
|
-
"value-format":
|
|
388
|
-
"start-placeholder": b(
|
|
389
|
-
"end-placeholder": b(
|
|
390
|
-
onChange: (t) => x(
|
|
388
|
+
"value-format": y(a, Y),
|
|
389
|
+
"start-placeholder": b(a, L, i)[0],
|
|
390
|
+
"end-placeholder": b(a, L, i)[1],
|
|
391
|
+
onChange: (t) => x(a, m)
|
|
391
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
392
|
-
[s(e).CHECKBOX].includes(
|
|
393
|
+
[s(e).CHECKBOX].includes(a) ? (o(), E(le, {
|
|
393
394
|
key: 11,
|
|
394
|
-
modelValue: r.value[
|
|
395
|
-
"onUpdate:modelValue": (t) => r.value[
|
|
396
|
-
onChange: (t) => x(
|
|
395
|
+
modelValue: r.value[m],
|
|
396
|
+
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
397
|
+
onChange: (t) => x(a, m)
|
|
397
398
|
}, {
|
|
398
399
|
default: A(() => [
|
|
399
|
-
(
|
|
400
|
+
(o(!0), T(I, null, W(q, (t, H) => (o(), E(Z, {
|
|
400
401
|
key: H,
|
|
401
402
|
label: t.value
|
|
402
403
|
}, {
|
|
@@ -408,7 +409,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
408
409
|
]),
|
|
409
410
|
_: 2
|
|
410
411
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
411
|
-
[].includes(
|
|
412
|
+
[].includes(a) ? (o(), T(I, { key: 12 }, [], 64)) : $("", !0)
|
|
412
413
|
], 64))
|
|
413
414
|
]),
|
|
414
415
|
_: 2
|
|
@@ -422,7 +423,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
422
423
|
]),
|
|
423
424
|
_: 1
|
|
424
425
|
}, 8, ["model"])), [
|
|
425
|
-
[s(
|
|
426
|
+
[s(n)]
|
|
426
427
|
])
|
|
427
428
|
])
|
|
428
429
|
]);
|
|
@@ -438,9 +439,9 @@ const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_conte
|
|
|
438
439
|
default: ""
|
|
439
440
|
}
|
|
440
441
|
},
|
|
441
|
-
setup(
|
|
442
|
-
return (c,
|
|
443
|
-
F("div", Le, j(
|
|
442
|
+
setup(l) {
|
|
443
|
+
return (c, u) => (o(), T("div", Pe, [
|
|
444
|
+
F("div", Le, j(l.data), 1)
|
|
444
445
|
]));
|
|
445
446
|
}
|
|
446
447
|
});
|
|
@@ -606,27 +607,27 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
|
|
|
606
607
|
}
|
|
607
608
|
},
|
|
608
609
|
emits: ["on-size-change", "on-current-change"],
|
|
609
|
-
setup(
|
|
610
|
-
const
|
|
611
|
-
c("on-size-change",
|
|
612
|
-
}, d = (
|
|
613
|
-
c("on-current-change",
|
|
610
|
+
setup(l, { emit: c }) {
|
|
611
|
+
const u = (n = 0) => {
|
|
612
|
+
c("on-size-change", n);
|
|
613
|
+
}, d = (n = 1) => {
|
|
614
|
+
c("on-current-change", n);
|
|
614
615
|
}, _ = B(1);
|
|
615
|
-
return (
|
|
616
|
-
const
|
|
617
|
-
return
|
|
616
|
+
return (n, r) => {
|
|
617
|
+
const p = g("el-pagination"), b = g("el-config-provider");
|
|
618
|
+
return o(), T("div", Ge, [
|
|
618
619
|
F("div", je, [
|
|
619
620
|
D(b, { locale: s(He) }, {
|
|
620
621
|
default: A(() => [
|
|
621
|
-
D(
|
|
622
|
+
D(p, {
|
|
622
623
|
background: "",
|
|
623
624
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
624
625
|
"current-page": _.value,
|
|
625
|
-
"onUpdate:currentPage": r[0] || (r[0] = (
|
|
626
|
-
"page-sizes":
|
|
627
|
-
"page-size":
|
|
628
|
-
total:
|
|
629
|
-
onSizeChange:
|
|
626
|
+
"onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
|
|
627
|
+
"page-sizes": l.pageSizes,
|
|
628
|
+
"page-size": l.pageSize,
|
|
629
|
+
total: l.total,
|
|
630
|
+
onSizeChange: u,
|
|
630
631
|
onCurrentChange: d
|
|
631
632
|
}, {
|
|
632
633
|
next: A(() => [
|
|
@@ -641,30 +642,30 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
|
|
|
641
642
|
]);
|
|
642
643
|
};
|
|
643
644
|
}
|
|
644
|
-
}), qe = (
|
|
645
|
-
const d = s(
|
|
645
|
+
}), qe = (l = null, { expression: c = 75, arg: u = {} } = {}) => {
|
|
646
|
+
const d = s(l);
|
|
646
647
|
if (d) {
|
|
647
648
|
const _ = d.querySelector(".el-table");
|
|
648
649
|
_ && Ce(() => {
|
|
649
|
-
const { y:
|
|
650
|
-
_.style.height = `calc(100vh - ${
|
|
650
|
+
const { y: n = 0 } = _.getBoundingClientRect();
|
|
651
|
+
_.style.height = `calc(100vh - ${n + c}px)`;
|
|
651
652
|
});
|
|
652
653
|
}
|
|
653
|
-
},
|
|
654
|
+
}, Ee = (l = Promise.resolve(), c = null, u = B(!1), d = B(null)) => {
|
|
654
655
|
const _ = B("");
|
|
655
|
-
return
|
|
656
|
-
const { data: r = {}, message:
|
|
657
|
-
d.value = r, _.value =
|
|
658
|
-
}).catch((
|
|
659
|
-
if (typeof
|
|
660
|
-
const { message: r = "" } =
|
|
656
|
+
return u.value = !0, l.then((n = {}) => {
|
|
657
|
+
const { data: r = {}, message: p = "" } = n;
|
|
658
|
+
d.value = r, _.value = p, c && c(!0, r), u.value = !1;
|
|
659
|
+
}).catch((n = {}) => {
|
|
660
|
+
if (typeof n == "object") {
|
|
661
|
+
const { message: r = "" } = n;
|
|
661
662
|
_.value = r;
|
|
662
663
|
} else
|
|
663
|
-
_.value =
|
|
664
|
-
c(!1,
|
|
664
|
+
_.value = n;
|
|
665
|
+
c(!1, n), u.value = !1;
|
|
665
666
|
}).finally(() => {
|
|
666
|
-
|
|
667
|
-
}), { data: d, message: _, loading:
|
|
667
|
+
u.value = !1;
|
|
668
|
+
}), { data: d, message: _, loading: u };
|
|
668
669
|
};
|
|
669
670
|
const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
670
671
|
key: 0,
|
|
@@ -758,51 +759,51 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
758
759
|
default: 75
|
|
759
760
|
}
|
|
760
761
|
},
|
|
761
|
-
setup(
|
|
762
|
-
const
|
|
763
|
-
const { configOptions:
|
|
762
|
+
setup(l, { expose: c }) {
|
|
763
|
+
const u = l, d = oe(() => {
|
|
764
|
+
const { configOptions: f = [], operation: C = !1, operationWidth: O = 0 } = u, k = s(f), M = [];
|
|
764
765
|
return C && M.push({
|
|
765
766
|
label: "操作",
|
|
766
767
|
fixed: "right",
|
|
767
768
|
prop: "operation",
|
|
768
|
-
width:
|
|
769
|
-
}), [...
|
|
770
|
-
}), _ = B(null),
|
|
769
|
+
width: O
|
|
770
|
+
}), [...k, ...M];
|
|
771
|
+
}), _ = B(null), n = $e("transferFoldStatus");
|
|
771
772
|
he(() => {
|
|
772
|
-
const
|
|
773
|
-
qe(_, { arg:
|
|
773
|
+
const f = n ? n.value : !1, C = s(u.expression);
|
|
774
|
+
qe(_, { arg: f, expression: C });
|
|
774
775
|
});
|
|
775
|
-
const r = B(1),
|
|
776
|
-
const { fetch:
|
|
777
|
-
U
|
|
776
|
+
const r = B(1), p = B(10), b = B(0), y = B({}), w = B(u.loading), N = B(u.data), x = B({}), R = () => {
|
|
777
|
+
const { fetch: f, call: C, mapProps: O } = u, k = y.value, M = r.value, P = p.value, S = Ae({}, k), U = s(O);
|
|
778
|
+
S[U.currentPage] = M, S[U.pageSize] = P, Ee(f(S), C, w, x);
|
|
778
779
|
};
|
|
779
|
-
ue(x, (
|
|
780
|
-
const { mapProps: C } =
|
|
781
|
-
N.value =
|
|
780
|
+
ue(x, (f) => {
|
|
781
|
+
const { mapProps: C } = u, O = s(C);
|
|
782
|
+
N.value = f[O.rows], b.value = f[O.total];
|
|
782
783
|
});
|
|
783
|
-
const h = (
|
|
784
|
-
|
|
785
|
-
}, v = (
|
|
786
|
-
r.value =
|
|
787
|
-
},
|
|
788
|
-
|
|
784
|
+
const h = (f = {}) => {
|
|
785
|
+
y.value = f, r.value = 1, R();
|
|
786
|
+
}, v = (f = 1) => {
|
|
787
|
+
r.value = f;
|
|
788
|
+
}, V = (f = 10) => {
|
|
789
|
+
p.value = f;
|
|
789
790
|
};
|
|
790
|
-
return ue([r,
|
|
791
|
+
return ue([r, p], () => {
|
|
791
792
|
R();
|
|
792
793
|
}), c({
|
|
793
794
|
refreshList: h
|
|
794
|
-
}), (
|
|
795
|
-
const
|
|
796
|
-
return
|
|
795
|
+
}), (f, C) => {
|
|
796
|
+
const O = g("el-table-column"), k = g("el-table"), M = De("loading");
|
|
797
|
+
return o(), T("div", Je, [
|
|
797
798
|
F("div", Qe, [
|
|
798
|
-
|
|
799
|
-
ie(
|
|
799
|
+
f.$slots.menu ? (o(), T("div", Ze, [
|
|
800
|
+
ie(f.$slots, "menu")
|
|
800
801
|
])) : $("", !0),
|
|
801
802
|
F("div", {
|
|
802
803
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
803
804
|
ref: _
|
|
804
805
|
}, [
|
|
805
|
-
G((
|
|
806
|
+
G((o(), E(k, {
|
|
806
807
|
stripe: "",
|
|
807
808
|
border: "",
|
|
808
809
|
"highlight-current-row": "",
|
|
@@ -817,22 +818,22 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
817
818
|
}, {
|
|
818
819
|
empty: A(() => []),
|
|
819
820
|
default: A(() => [
|
|
820
|
-
|
|
821
|
+
l.selection ? (o(), E(O, {
|
|
821
822
|
key: 0,
|
|
822
823
|
fixed: "left",
|
|
823
824
|
type: "selection",
|
|
824
825
|
width: "40"
|
|
825
826
|
})) : $("", !0),
|
|
826
|
-
(
|
|
827
|
+
(o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(O, {
|
|
827
828
|
key: le,
|
|
828
|
-
label:
|
|
829
|
-
align:
|
|
829
|
+
label: S,
|
|
830
|
+
align: U,
|
|
830
831
|
width: X,
|
|
831
832
|
fixed: Z,
|
|
832
|
-
"min-width": `${
|
|
833
|
+
"min-width": `${S.length * 14 + 24}px`
|
|
833
834
|
}, {
|
|
834
835
|
default: A(({ row: ee }) => [
|
|
835
|
-
ie(
|
|
836
|
+
ie(f.$slots, P, { row: ee }, () => [
|
|
836
837
|
D(Ye, {
|
|
837
838
|
data: ee[P]
|
|
838
839
|
}, null, 8, ["data"])
|
|
@@ -843,13 +844,13 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
|
|
|
843
844
|
]),
|
|
844
845
|
_: 3
|
|
845
846
|
}, 8, ["data", "header-cell-style"])), [
|
|
846
|
-
[M,
|
|
847
|
+
[M, w.value]
|
|
847
848
|
])
|
|
848
849
|
], 512),
|
|
849
850
|
D(Ke, {
|
|
850
851
|
total: b.value,
|
|
851
852
|
onOnCurrentChange: v,
|
|
852
|
-
onOnSizeChange:
|
|
853
|
+
onOnSizeChange: V
|
|
853
854
|
}, null, 8, ["total"])
|
|
854
855
|
])
|
|
855
856
|
]);
|
|
@@ -868,22 +869,22 @@ const tt = {
|
|
|
868
869
|
default: !1
|
|
869
870
|
}
|
|
870
871
|
},
|
|
871
|
-
setup(
|
|
872
|
-
return (c,
|
|
873
|
-
class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical":
|
|
872
|
+
setup(l) {
|
|
873
|
+
return (c, u) => (o(), T("div", {
|
|
874
|
+
class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": l.vertical }])
|
|
874
875
|
}, [
|
|
875
876
|
F("div", {
|
|
876
|
-
class: ge(["base_line", { base_line__vertical:
|
|
877
|
+
class: ge(["base_line", { base_line__vertical: l.vertical }])
|
|
877
878
|
}, null, 2)
|
|
878
879
|
], 2));
|
|
879
880
|
}
|
|
880
881
|
});
|
|
881
882
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
882
|
-
var ae = (
|
|
883
|
-
let
|
|
883
|
+
var ae = (l, c) => {
|
|
884
|
+
let u = l.__vccOpts || l;
|
|
884
885
|
for (let [d, _] of c)
|
|
885
|
-
|
|
886
|
-
return
|
|
886
|
+
u[d] = _;
|
|
887
|
+
return u;
|
|
887
888
|
}, at = {
|
|
888
889
|
name: "ArrowDown"
|
|
889
890
|
}, lt = {
|
|
@@ -901,8 +902,8 @@ var ae = (a, c) => {
|
|
|
901
902
|
), ot = [
|
|
902
903
|
nt
|
|
903
904
|
];
|
|
904
|
-
function ut(
|
|
905
|
-
return
|
|
905
|
+
function ut(l, c, u, d, _, n) {
|
|
906
|
+
return o(), T("svg", lt, ot);
|
|
906
907
|
}
|
|
907
908
|
var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
|
|
908
909
|
name: "ArrowLeft"
|
|
@@ -921,8 +922,8 @@ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]),
|
|
|
921
922
|
), dt = [
|
|
922
923
|
it
|
|
923
924
|
];
|
|
924
|
-
function _t(
|
|
925
|
-
return
|
|
925
|
+
function _t(l, c, u, d, _, n) {
|
|
926
|
+
return o(), T("svg", ct, dt);
|
|
926
927
|
}
|
|
927
928
|
var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
|
|
928
929
|
name: "ArrowRight"
|
|
@@ -941,10 +942,10 @@ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]),
|
|
|
941
942
|
), ht = [
|
|
942
943
|
gt
|
|
943
944
|
];
|
|
944
|
-
function
|
|
945
|
-
return
|
|
945
|
+
function pt(l, c, u, d, _, n) {
|
|
946
|
+
return o(), T("svg", vt, ht);
|
|
946
947
|
}
|
|
947
|
-
var
|
|
948
|
+
var Et = /* @__PURE__ */ ae(ft, [["render", pt], ["__file", "arrow-right.vue"]]), bt = {
|
|
948
949
|
name: "ArrowUp"
|
|
949
950
|
}, Tt = {
|
|
950
951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -961,15 +962,15 @@ var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]])
|
|
|
961
962
|
), At = [
|
|
962
963
|
Vt
|
|
963
964
|
];
|
|
964
|
-
function Ct(
|
|
965
|
-
return
|
|
965
|
+
function Ct(l, c, u, d, _, n) {
|
|
966
|
+
return o(), T("svg", Tt, At);
|
|
966
967
|
}
|
|
967
968
|
var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), xt = {
|
|
968
969
|
name: "Delete"
|
|
969
|
-
},
|
|
970
|
+
}, yt = {
|
|
970
971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
971
972
|
viewBox: "0 0 1024 1024"
|
|
972
|
-
},
|
|
973
|
+
}, wt = /* @__PURE__ */ F(
|
|
973
974
|
"path",
|
|
974
975
|
{
|
|
975
976
|
fill: "currentColor",
|
|
@@ -979,12 +980,12 @@ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), x
|
|
|
979
980
|
-1
|
|
980
981
|
/* HOISTED */
|
|
981
982
|
), Bt = [
|
|
982
|
-
|
|
983
|
+
wt
|
|
983
984
|
];
|
|
984
|
-
function Dt(
|
|
985
|
-
return
|
|
985
|
+
function Dt(l, c, u, d, _, n) {
|
|
986
|
+
return o(), T("svg", yt, Bt);
|
|
986
987
|
}
|
|
987
|
-
var
|
|
988
|
+
var Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt = {
|
|
988
989
|
name: "Search"
|
|
989
990
|
}, Nt = {
|
|
990
991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1001,18 +1002,13 @@ var kt = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), Ot
|
|
|
1001
1002
|
), Mt = [
|
|
1002
1003
|
Ft
|
|
1003
1004
|
];
|
|
1004
|
-
function Rt(
|
|
1005
|
-
return
|
|
1005
|
+
function Rt(l, c, u, d, _, n) {
|
|
1006
|
+
return o(), T("svg", Nt, Mt);
|
|
1006
1007
|
}
|
|
1007
|
-
var
|
|
1008
|
-
const
|
|
1009
|
-
const n = a.__vccOpts || a;
|
|
1010
|
-
for (const [d, _] of c)
|
|
1011
|
-
n[d] = _;
|
|
1012
|
-
return n;
|
|
1013
|
-
}, It = { class: "bsgoal-base-search-operation" }, Pt = {
|
|
1008
|
+
var St = /* @__PURE__ */ ae(kt, [["render", Rt], ["__file", "search.vue"]]);
|
|
1009
|
+
const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
1014
1010
|
name: "BsgoalBaseSearchOperation"
|
|
1015
|
-
},
|
|
1011
|
+
}, Pt = /* @__PURE__ */ Object.assign(It, {
|
|
1016
1012
|
props: {
|
|
1017
1013
|
/**
|
|
1018
1014
|
* 是否显示折叠按钮
|
|
@@ -1023,17 +1019,17 @@ const St = (a, c) => {
|
|
|
1023
1019
|
}
|
|
1024
1020
|
},
|
|
1025
1021
|
emits: ["on-fold"],
|
|
1026
|
-
setup(
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1022
|
+
setup(l, { emit: c }) {
|
|
1023
|
+
const u = B(!1), d = () => {
|
|
1024
|
+
u.value = !s(u), c("on-fold", u.value);
|
|
1029
1025
|
};
|
|
1030
|
-
return (_,
|
|
1031
|
-
const r = g("el-button"),
|
|
1032
|
-
return
|
|
1026
|
+
return (_, n) => {
|
|
1027
|
+
const r = g("el-button"), p = g("el-icon");
|
|
1028
|
+
return o(), T("div", Ut, [
|
|
1033
1029
|
D(r, {
|
|
1034
1030
|
type: "primary",
|
|
1035
|
-
icon: s(
|
|
1036
|
-
onClick:
|
|
1031
|
+
icon: s(St),
|
|
1032
|
+
onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
|
|
1037
1033
|
}, {
|
|
1038
1034
|
default: A(() => [
|
|
1039
1035
|
K("搜索")
|
|
@@ -1041,28 +1037,28 @@ const St = (a, c) => {
|
|
|
1041
1037
|
_: 1
|
|
1042
1038
|
}, 8, ["icon"]),
|
|
1043
1039
|
D(r, {
|
|
1044
|
-
icon: s(
|
|
1045
|
-
onClick:
|
|
1040
|
+
icon: s(Ot),
|
|
1041
|
+
onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
|
|
1046
1042
|
}, {
|
|
1047
1043
|
default: A(() => [
|
|
1048
1044
|
K("清空")
|
|
1049
1045
|
]),
|
|
1050
1046
|
_: 1
|
|
1051
1047
|
}, 8, ["icon"]),
|
|
1052
|
-
|
|
1048
|
+
l.fold ? (o(), T("div", {
|
|
1053
1049
|
key: 0,
|
|
1054
1050
|
class: "operation_fold",
|
|
1055
1051
|
style: { color: "var(--el-color-primary)" },
|
|
1056
1052
|
onClick: d
|
|
1057
1053
|
}, [
|
|
1058
|
-
K(j(
|
|
1059
|
-
D(
|
|
1054
|
+
K(j(u.value ? "收起" : "展开"), 1),
|
|
1055
|
+
D(p, { color: "#409EFC" }, {
|
|
1060
1056
|
default: A(() => [
|
|
1061
1057
|
G(D(s($t), null, null, 512), [
|
|
1062
|
-
[Q,
|
|
1058
|
+
[Q, u.value]
|
|
1063
1059
|
]),
|
|
1064
1060
|
G(D(s(st), null, null, 512), [
|
|
1065
|
-
[Q, !
|
|
1061
|
+
[Q, !u.value]
|
|
1066
1062
|
])
|
|
1067
1063
|
]),
|
|
1068
1064
|
_: 1
|
|
@@ -1071,10 +1067,67 @@ const St = (a, c) => {
|
|
|
1071
1067
|
]);
|
|
1072
1068
|
};
|
|
1073
1069
|
}
|
|
1074
|
-
})
|
|
1075
|
-
const
|
|
1070
|
+
});
|
|
1071
|
+
const Lt = { class: "bsgoal-base-cascader" }, zt = {
|
|
1072
|
+
name: "BsgoalBaseCascader"
|
|
1073
|
+
}, Yt = /* @__PURE__ */ Object.assign(zt, {
|
|
1074
|
+
props: {
|
|
1075
|
+
/**
|
|
1076
|
+
* 绑定的值
|
|
1077
|
+
*/
|
|
1078
|
+
modelValue: {
|
|
1079
|
+
type: [Array],
|
|
1080
|
+
default: () => []
|
|
1081
|
+
},
|
|
1082
|
+
/**
|
|
1083
|
+
* 数据
|
|
1084
|
+
* {
|
|
1085
|
+
* value: '',
|
|
1086
|
+
* label: '',
|
|
1087
|
+
* children: [
|
|
1088
|
+
*
|
|
1089
|
+
* ]
|
|
1090
|
+
* }
|
|
1091
|
+
*/
|
|
1092
|
+
dataOptions: {
|
|
1093
|
+
type: [Array],
|
|
1094
|
+
default: () => []
|
|
1095
|
+
},
|
|
1096
|
+
/**
|
|
1097
|
+
* placeholder 输入框占位文本
|
|
1098
|
+
*/
|
|
1099
|
+
placeholder: {
|
|
1100
|
+
type: [String],
|
|
1101
|
+
default: ""
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
emits: ["update:model-value", "on-change"],
|
|
1105
|
+
setup(l, { emit: c }) {
|
|
1106
|
+
const u = B({
|
|
1107
|
+
checkStrictly: !0,
|
|
1108
|
+
multiple: !1
|
|
1109
|
+
}), d = (_) => {
|
|
1110
|
+
c("update:model-value", _), c("on-change", _);
|
|
1111
|
+
};
|
|
1112
|
+
return (_, n) => {
|
|
1113
|
+
const r = g("el-cascader");
|
|
1114
|
+
return o(), T("div", Lt, [
|
|
1115
|
+
D(r, {
|
|
1116
|
+
clearable: "",
|
|
1117
|
+
class: "base_cascader",
|
|
1118
|
+
"model-value": l.modelValue,
|
|
1119
|
+
options: l.dataOptions,
|
|
1120
|
+
props: u.value,
|
|
1121
|
+
placeholder: l.placeholder,
|
|
1122
|
+
onChange: d
|
|
1123
|
+
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1124
|
+
]);
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt = { key: 1 }, Wt = {
|
|
1076
1129
|
name: "BsgoalBaseSearch"
|
|
1077
|
-
},
|
|
1130
|
+
}, Xt = /* @__PURE__ */ Object.assign(Wt, {
|
|
1078
1131
|
props: {
|
|
1079
1132
|
/**
|
|
1080
1133
|
* >----------props----------<
|
|
@@ -1105,29 +1158,36 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1105
1158
|
medium: {
|
|
1106
1159
|
type: [Number, String],
|
|
1107
1160
|
default: 6
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* 绑定的值
|
|
1164
|
+
*/
|
|
1165
|
+
modelValue: {
|
|
1166
|
+
type: [Object],
|
|
1167
|
+
default: () => ({})
|
|
1108
1168
|
}
|
|
1109
1169
|
},
|
|
1110
1170
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1111
|
-
setup(
|
|
1112
|
-
const
|
|
1171
|
+
setup(l, { emit: c }) {
|
|
1172
|
+
const u = l, d = B(null), _ = pe.align, n = B({});
|
|
1113
1173
|
he(() => {
|
|
1114
|
-
const { configOptions: v } =
|
|
1115
|
-
s(v).forEach((
|
|
1116
|
-
const { value: C = "", prop:
|
|
1117
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(
|
|
1174
|
+
const { configOptions: v } = u;
|
|
1175
|
+
s(v).forEach((f) => {
|
|
1176
|
+
const { value: C = "", prop: O = "", type: k = "" } = f;
|
|
1177
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(k), n.value[O] = C;
|
|
1118
1178
|
});
|
|
1119
1179
|
});
|
|
1120
1180
|
const r = oe(() => {
|
|
1121
|
-
const { configOptions: v } =
|
|
1181
|
+
const { configOptions: v } = u, V = s(v), f = {
|
|
1122
1182
|
type: e.OPERATION
|
|
1123
1183
|
};
|
|
1124
|
-
return [...
|
|
1125
|
-
}),
|
|
1126
|
-
if (!
|
|
1184
|
+
return [...V, f];
|
|
1185
|
+
}), p = (v = "", V = "", f = "") => {
|
|
1186
|
+
if (!f)
|
|
1127
1187
|
switch (v) {
|
|
1128
1188
|
case e.INPUT:
|
|
1129
1189
|
case e.INPUT_TEXT_AREA:
|
|
1130
|
-
return `请输入${
|
|
1190
|
+
return `请输入${V}`;
|
|
1131
1191
|
case e.SELECT:
|
|
1132
1192
|
case e.DATE:
|
|
1133
1193
|
case e.WEEK:
|
|
@@ -1135,7 +1195,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1135
1195
|
case e.YEAR:
|
|
1136
1196
|
case e.DATE_TIME:
|
|
1137
1197
|
case e.TIME:
|
|
1138
|
-
|
|
1198
|
+
case e.CASCADER:
|
|
1199
|
+
return `请选择${V}`;
|
|
1139
1200
|
case e.DATE_RANGE:
|
|
1140
1201
|
case e.DATE_TIME_RANGE:
|
|
1141
1202
|
return ["开始日期", "结束日期"];
|
|
@@ -1144,9 +1205,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1144
1205
|
case e.MONTH_RANGE:
|
|
1145
1206
|
return ["开始月份", "结束月份"];
|
|
1146
1207
|
}
|
|
1147
|
-
return
|
|
1148
|
-
}, b = (v = "",
|
|
1149
|
-
if (!
|
|
1208
|
+
return f;
|
|
1209
|
+
}, b = (v = "", V = "") => {
|
|
1210
|
+
if (!V)
|
|
1150
1211
|
switch (v) {
|
|
1151
1212
|
case e.WEEK:
|
|
1152
1213
|
return "ww";
|
|
@@ -1166,51 +1227,51 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1166
1227
|
case e.DATE_TIME_RANGE:
|
|
1167
1228
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1168
1229
|
}
|
|
1169
|
-
return
|
|
1170
|
-
},
|
|
1171
|
-
const v = s(
|
|
1172
|
-
for (const C of
|
|
1173
|
-
const { type:
|
|
1174
|
-
if (
|
|
1175
|
-
const { 0: P = "", 1:
|
|
1176
|
-
v[
|
|
1230
|
+
return V;
|
|
1231
|
+
}, y = () => {
|
|
1232
|
+
const v = s(n), { configOptions: V } = u, f = s(V);
|
|
1233
|
+
for (const C of f) {
|
|
1234
|
+
const { type: O = "", range: k = [], prop: M = "" } = C;
|
|
1235
|
+
if (O.endsWith("range") && k && k.length === 2) {
|
|
1236
|
+
const { 0: P = "", 1: S = "" } = v[M], { 0: U = "", 1: X = "" } = k;
|
|
1237
|
+
v[U] = P, v[X] = S;
|
|
1177
1238
|
}
|
|
1178
1239
|
}
|
|
1179
|
-
c("on-search", v);
|
|
1240
|
+
c("on-search", v), c("update:modelValue", v);
|
|
1180
1241
|
};
|
|
1181
1242
|
Ce(() => {
|
|
1182
|
-
|
|
1243
|
+
y();
|
|
1183
1244
|
});
|
|
1184
|
-
const
|
|
1185
|
-
d.value.resetFields(), c("on-clear",
|
|
1245
|
+
const w = () => {
|
|
1246
|
+
d.value.resetFields(), c("on-clear", n.value);
|
|
1186
1247
|
}, N = $e("transferFoldStatus"), x = B(!1), R = (v = !1) => {
|
|
1187
1248
|
x.value = v, N && (N.value = v), c("on-fold", x);
|
|
1188
|
-
}, h = (v,
|
|
1189
|
-
|
|
1190
|
-
const
|
|
1249
|
+
}, h = (v, V) => {
|
|
1250
|
+
y();
|
|
1251
|
+
const f = {
|
|
1191
1252
|
type: v,
|
|
1192
|
-
prop:
|
|
1193
|
-
value:
|
|
1253
|
+
prop: V,
|
|
1254
|
+
value: n.value[V] || ""
|
|
1194
1255
|
};
|
|
1195
|
-
c("on-change",
|
|
1256
|
+
c("on-change", f);
|
|
1196
1257
|
};
|
|
1197
|
-
return (v,
|
|
1198
|
-
const
|
|
1199
|
-
return
|
|
1200
|
-
F("div",
|
|
1201
|
-
G((
|
|
1258
|
+
return (v, V) => {
|
|
1259
|
+
const f = g("el-input"), C = g("el-input-number"), O = g("el-radio"), k = g("el-radio-group"), M = g("el-option"), P = g("el-select"), S = g("el-slider"), U = g("el-switch"), X = g("el-date-picker"), Z = g("el-time-picker"), le = g("el-checkbox"), ee = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), L = g("el-form");
|
|
1260
|
+
return o(), T("div", Ht, [
|
|
1261
|
+
F("div", Gt, [
|
|
1262
|
+
G((o(), E(L, {
|
|
1202
1263
|
ref_key: "EL_FORM_REF",
|
|
1203
1264
|
ref: d,
|
|
1204
1265
|
"label-suffix": ":",
|
|
1205
1266
|
"show-message": !1,
|
|
1206
|
-
model:
|
|
1267
|
+
model: n.value
|
|
1207
1268
|
}, {
|
|
1208
1269
|
default: A(() => [
|
|
1209
1270
|
D(me, null, {
|
|
1210
1271
|
default: A(() => [
|
|
1211
|
-
(
|
|
1212
|
-
label:
|
|
1213
|
-
prop:
|
|
1272
|
+
(o(!0), T(I, null, W(s(r), ({
|
|
1273
|
+
label: m = "",
|
|
1274
|
+
prop: a = "",
|
|
1214
1275
|
type: i = "text",
|
|
1215
1276
|
placeholder: z = "",
|
|
1216
1277
|
readonly: se = !1,
|
|
@@ -1220,53 +1281,53 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1220
1281
|
max: q = 10,
|
|
1221
1282
|
range: Y = [],
|
|
1222
1283
|
format: J = ""
|
|
1223
|
-
} = {}, te) => G((
|
|
1284
|
+
} = {}, te) => G((o(), E(_e, {
|
|
1224
1285
|
key: te,
|
|
1225
1286
|
xs: 24,
|
|
1226
1287
|
sm: 12,
|
|
1227
|
-
md:
|
|
1288
|
+
md: l.medium
|
|
1228
1289
|
}, {
|
|
1229
1290
|
default: A(() => [
|
|
1230
1291
|
D(de, {
|
|
1231
|
-
label:
|
|
1232
|
-
prop:
|
|
1292
|
+
label: m,
|
|
1293
|
+
prop: a
|
|
1233
1294
|
}, {
|
|
1234
1295
|
default: A(() => [
|
|
1235
|
-
se ? (
|
|
1236
|
-
i === s(e).INPUT ? (
|
|
1296
|
+
se ? (o(), T("div", jt, j(n.value[a]), 1)) : (o(), T(I, { key: 0 }, [
|
|
1297
|
+
i === s(e).INPUT ? (o(), E(f, {
|
|
1237
1298
|
key: 0,
|
|
1238
|
-
modelValue:
|
|
1239
|
-
"onUpdate:modelValue": (t) =>
|
|
1240
|
-
placeholder:
|
|
1299
|
+
modelValue: n.value[a],
|
|
1300
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1301
|
+
placeholder: p(i, m, z),
|
|
1241
1302
|
clearable: re,
|
|
1242
|
-
onChange: (t) => h(i,
|
|
1303
|
+
onChange: (t) => h(i, a)
|
|
1243
1304
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
1244
|
-
i === s(e).INPUT_TEXT_AREA ? (
|
|
1305
|
+
i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
|
|
1245
1306
|
key: 1,
|
|
1246
|
-
modelValue:
|
|
1247
|
-
"onUpdate:modelValue": (t) =>
|
|
1307
|
+
modelValue: n.value[a],
|
|
1308
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1248
1309
|
type: "textarea",
|
|
1249
1310
|
rows: ce,
|
|
1250
1311
|
clearable: re,
|
|
1251
|
-
placeholder:
|
|
1252
|
-
onChange: (t) => h(i,
|
|
1312
|
+
placeholder: p(i, m, z),
|
|
1313
|
+
onChange: (t) => h(i, a)
|
|
1253
1314
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1254
|
-
i === s(e).INPUT_NUMBER ? (
|
|
1315
|
+
i === s(e).INPUT_NUMBER ? (o(), E(C, {
|
|
1255
1316
|
key: 2,
|
|
1256
1317
|
modelValue: v.num,
|
|
1257
|
-
"onUpdate:modelValue":
|
|
1318
|
+
"onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
|
|
1258
1319
|
min: ne,
|
|
1259
1320
|
max: q,
|
|
1260
1321
|
onChange: h
|
|
1261
1322
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1262
|
-
i === s(e).RADIO ? (
|
|
1323
|
+
i === s(e).RADIO ? (o(), E(k, {
|
|
1263
1324
|
key: 3,
|
|
1264
|
-
modelValue:
|
|
1265
|
-
"onUpdate:modelValue": (t) =>
|
|
1266
|
-
onChange: (t) => h(i,
|
|
1325
|
+
modelValue: n.value[a],
|
|
1326
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1327
|
+
onChange: (t) => h(i, a)
|
|
1267
1328
|
}, {
|
|
1268
1329
|
default: A(() => [
|
|
1269
|
-
(
|
|
1330
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(O, {
|
|
1270
1331
|
key: H,
|
|
1271
1332
|
label: t.value
|
|
1272
1333
|
}, {
|
|
@@ -1278,15 +1339,15 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1278
1339
|
]),
|
|
1279
1340
|
_: 2
|
|
1280
1341
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1281
|
-
i === s(e).SELECT ? (
|
|
1342
|
+
i === s(e).SELECT ? (o(), E(P, {
|
|
1282
1343
|
key: 4,
|
|
1283
|
-
modelValue:
|
|
1284
|
-
"onUpdate:modelValue": (t) =>
|
|
1285
|
-
placeholder:
|
|
1286
|
-
onChange: (t) => h(i,
|
|
1344
|
+
modelValue: n.value[a],
|
|
1345
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1346
|
+
placeholder: p(i, m, z),
|
|
1347
|
+
onChange: (t) => h(i, a)
|
|
1287
1348
|
}, {
|
|
1288
1349
|
default: A(() => [
|
|
1289
|
-
(
|
|
1350
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(M, {
|
|
1290
1351
|
key: H,
|
|
1291
1352
|
label: t.label,
|
|
1292
1353
|
value: t.value
|
|
@@ -1294,75 +1355,75 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1294
1355
|
]),
|
|
1295
1356
|
_: 2
|
|
1296
1357
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1297
|
-
i === s(e).SLIDER ? (
|
|
1358
|
+
i === s(e).SLIDER ? (o(), E(S, {
|
|
1298
1359
|
key: 5,
|
|
1299
|
-
modelValue:
|
|
1300
|
-
"onUpdate:modelValue": (t) =>
|
|
1360
|
+
modelValue: n.value[a],
|
|
1361
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1301
1362
|
min: ne,
|
|
1302
1363
|
max: q,
|
|
1303
|
-
onChange: (t) => h(i,
|
|
1364
|
+
onChange: (t) => h(i, a)
|
|
1304
1365
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1305
|
-
i === s(e).SWITCH ? (
|
|
1366
|
+
i === s(e).SWITCH ? (o(), E(U, {
|
|
1306
1367
|
key: 6,
|
|
1307
|
-
modelValue:
|
|
1308
|
-
"onUpdate:modelValue": (t) =>
|
|
1368
|
+
modelValue: n.value[a],
|
|
1369
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1309
1370
|
"active-value": Y[0] || !0,
|
|
1310
1371
|
"inactive-value": Y[1] || !1,
|
|
1311
|
-
onChange: (t) => h(i,
|
|
1372
|
+
onChange: (t) => h(i, a)
|
|
1312
1373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1313
1374
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
1314
1375
|
i
|
|
1315
|
-
) ? (
|
|
1376
|
+
) ? (o(), E(X, {
|
|
1316
1377
|
key: 7,
|
|
1317
|
-
modelValue:
|
|
1318
|
-
"onUpdate:modelValue": (t) =>
|
|
1378
|
+
modelValue: n.value[a],
|
|
1379
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1319
1380
|
format: b(i, J),
|
|
1320
1381
|
"value-format": b(i, J),
|
|
1321
1382
|
type: i,
|
|
1322
|
-
placeholder:
|
|
1323
|
-
onChange: (t) => h(i,
|
|
1383
|
+
placeholder: p(i, m, z),
|
|
1384
|
+
onChange: (t) => h(i, a)
|
|
1324
1385
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1325
1386
|
[
|
|
1326
1387
|
s(e).DATE_RANGE,
|
|
1327
1388
|
s(e).MONTH_RANGE,
|
|
1328
1389
|
s(e).DATE_TIME_RANGE
|
|
1329
|
-
].includes(i) ? (
|
|
1390
|
+
].includes(i) ? (o(), E(X, {
|
|
1330
1391
|
key: 8,
|
|
1331
|
-
modelValue:
|
|
1332
|
-
"onUpdate:modelValue": (t) =>
|
|
1392
|
+
modelValue: n.value[a],
|
|
1393
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1333
1394
|
type: i,
|
|
1334
1395
|
"value-format": b(i, J),
|
|
1335
|
-
"start-placeholder":
|
|
1336
|
-
"end-placeholder":
|
|
1337
|
-
onChange: (t) => h(i,
|
|
1396
|
+
"start-placeholder": p(i, m, z)[0],
|
|
1397
|
+
"end-placeholder": p(i, m, z)[1],
|
|
1398
|
+
onChange: (t) => h(i, a)
|
|
1338
1399
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1339
|
-
[s(e).TIME].includes(i) ? (
|
|
1400
|
+
[s(e).TIME].includes(i) ? (o(), E(Z, {
|
|
1340
1401
|
key: 9,
|
|
1341
|
-
modelValue:
|
|
1342
|
-
"onUpdate:modelValue": (t) =>
|
|
1402
|
+
modelValue: n.value[a],
|
|
1403
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1343
1404
|
"arrow-control": "",
|
|
1344
1405
|
"value-format": b(i, J),
|
|
1345
|
-
placeholder:
|
|
1346
|
-
onChange: (t) => h(i,
|
|
1406
|
+
placeholder: p(i, m, z),
|
|
1407
|
+
onChange: (t) => h(i, a)
|
|
1347
1408
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1348
|
-
[s(e).TIME_RANGE].includes(i) ? (
|
|
1409
|
+
[s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
|
|
1349
1410
|
key: 10,
|
|
1350
|
-
modelValue:
|
|
1351
|
-
"onUpdate:modelValue": (t) =>
|
|
1411
|
+
modelValue: n.value[a],
|
|
1412
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1352
1413
|
"is-range": "",
|
|
1353
1414
|
"value-format": b(i, J),
|
|
1354
|
-
"start-placeholder":
|
|
1355
|
-
"end-placeholder":
|
|
1356
|
-
onChange: (t) => h(i,
|
|
1415
|
+
"start-placeholder": p(i, m, z)[0],
|
|
1416
|
+
"end-placeholder": p(i, m, z)[1],
|
|
1417
|
+
onChange: (t) => h(i, a)
|
|
1357
1418
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1358
|
-
[s(e).CHECKBOX].includes(i) ? (
|
|
1419
|
+
[s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
|
|
1359
1420
|
key: 11,
|
|
1360
|
-
modelValue:
|
|
1361
|
-
"onUpdate:modelValue": (t) =>
|
|
1362
|
-
onChange: (t) => h(i,
|
|
1421
|
+
modelValue: n.value[a],
|
|
1422
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1423
|
+
onChange: (t) => h(i, a)
|
|
1363
1424
|
}, {
|
|
1364
1425
|
default: A(() => [
|
|
1365
|
-
(
|
|
1426
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(le, {
|
|
1366
1427
|
key: H,
|
|
1367
1428
|
label: t.value
|
|
1368
1429
|
}, {
|
|
@@ -1374,12 +1435,20 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1374
1435
|
]),
|
|
1375
1436
|
_: 2
|
|
1376
1437
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1377
|
-
[].includes(i) ? (
|
|
1378
|
-
|
|
1379
|
-
|
|
1438
|
+
[s(e).CASCADER].includes(i) ? (o(), E(Yt, {
|
|
1439
|
+
key: 12,
|
|
1440
|
+
modelValue: n.value[a],
|
|
1441
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1442
|
+
"data-options": Y,
|
|
1443
|
+
placeholder: p(i, m, z),
|
|
1444
|
+
onOnChange: (t) => h(i, a)
|
|
1445
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
|
|
1446
|
+
[].includes(i) ? (o(), T(I, { key: 13 }, [], 64)) : $("", !0),
|
|
1447
|
+
[s(e).OPERATION].includes(i) ? (o(), E(Pt, {
|
|
1448
|
+
key: 14,
|
|
1380
1449
|
fold: te >= 7,
|
|
1381
|
-
onOnSearch:
|
|
1382
|
-
onOnClear:
|
|
1450
|
+
onOnSearch: y,
|
|
1451
|
+
onOnClear: w,
|
|
1383
1452
|
onOnFold: R
|
|
1384
1453
|
}, null, 8, ["fold"])) : $("", !0)
|
|
1385
1454
|
], 64))
|
|
@@ -1405,9 +1474,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
|
|
|
1405
1474
|
};
|
|
1406
1475
|
}
|
|
1407
1476
|
});
|
|
1408
|
-
const
|
|
1477
|
+
const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_table" }, Jt = {
|
|
1409
1478
|
name: "BsgoalBaseSearchTable"
|
|
1410
|
-
},
|
|
1479
|
+
}, Qt = /* @__PURE__ */ Object.assign(Jt, {
|
|
1411
1480
|
props: {
|
|
1412
1481
|
/**
|
|
1413
1482
|
* >----------props----------<
|
|
@@ -1485,35 +1554,35 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
|
|
|
1485
1554
|
default: 75
|
|
1486
1555
|
}
|
|
1487
1556
|
},
|
|
1488
|
-
setup(
|
|
1489
|
-
const c =
|
|
1490
|
-
|
|
1491
|
-
const d = s(c.configOptions), _ = oe(() => d),
|
|
1492
|
-
b.value.refreshList(
|
|
1557
|
+
setup(l) {
|
|
1558
|
+
const c = l, u = B(!1);
|
|
1559
|
+
Oe("transferFoldStatus", u);
|
|
1560
|
+
const d = s(c.configOptions), _ = oe(() => d), n = oe(() => d), r = ke(), p = B(Object.keys(r)), b = B(null), y = (w) => {
|
|
1561
|
+
b.value.refreshList(w);
|
|
1493
1562
|
};
|
|
1494
|
-
return (
|
|
1495
|
-
F("div",
|
|
1496
|
-
D(
|
|
1563
|
+
return (w, N) => (o(), T("div", Kt, [
|
|
1564
|
+
F("div", qt, [
|
|
1565
|
+
D(Xt, {
|
|
1497
1566
|
"config-options": s(_),
|
|
1498
|
-
onOnSearch:
|
|
1499
|
-
onOnClear:
|
|
1567
|
+
onOnSearch: y,
|
|
1568
|
+
onOnClear: y
|
|
1500
1569
|
}, null, 8, ["config-options"]),
|
|
1501
1570
|
D(xe, {
|
|
1502
1571
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1503
1572
|
ref: b,
|
|
1504
|
-
operationWidth:
|
|
1505
|
-
"config-options": s(
|
|
1506
|
-
data:
|
|
1507
|
-
selection:
|
|
1508
|
-
operation:
|
|
1509
|
-
expression:
|
|
1510
|
-
fetch:
|
|
1511
|
-
call:
|
|
1573
|
+
operationWidth: l.operationWidth,
|
|
1574
|
+
"config-options": s(n),
|
|
1575
|
+
data: l.tableData,
|
|
1576
|
+
selection: l.selection,
|
|
1577
|
+
operation: l.operation,
|
|
1578
|
+
expression: l.expression,
|
|
1579
|
+
fetch: l.fetch,
|
|
1580
|
+
call: l.call
|
|
1512
1581
|
}, Ne({ _: 2 }, [
|
|
1513
|
-
W(
|
|
1582
|
+
W(p.value, (x) => ({
|
|
1514
1583
|
name: x,
|
|
1515
1584
|
fn: A(({ row: R = {} }) => [
|
|
1516
|
-
ie(
|
|
1585
|
+
ie(w.$slots, x, { row: R })
|
|
1517
1586
|
])
|
|
1518
1587
|
}))
|
|
1519
1588
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1521,30 +1590,30 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
|
|
|
1521
1590
|
]));
|
|
1522
1591
|
}
|
|
1523
1592
|
});
|
|
1524
|
-
const
|
|
1593
|
+
const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
1525
1594
|
name: "BsgoalBaseTreeFold"
|
|
1526
|
-
},
|
|
1595
|
+
}, ta = /* @__PURE__ */ Object.assign(ea, {
|
|
1527
1596
|
props: ["modelValue"],
|
|
1528
1597
|
emits: ["update:modelValue"],
|
|
1529
|
-
setup(
|
|
1530
|
-
let
|
|
1598
|
+
setup(l, { emit: c }) {
|
|
1599
|
+
let u = B(!0);
|
|
1531
1600
|
const d = () => {
|
|
1532
|
-
|
|
1601
|
+
u.value = !u.value, c("update:modelValue", u.value);
|
|
1533
1602
|
};
|
|
1534
|
-
return (_,
|
|
1603
|
+
return (_, n) => {
|
|
1535
1604
|
const r = g("el-icon");
|
|
1536
|
-
return
|
|
1605
|
+
return o(), T("div", Zt, [
|
|
1537
1606
|
F("div", {
|
|
1538
|
-
class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(
|
|
1607
|
+
class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
|
|
1539
1608
|
onClick: d
|
|
1540
1609
|
}, [
|
|
1541
1610
|
D(r, { color: "#fff" }, {
|
|
1542
1611
|
default: A(() => [
|
|
1543
1612
|
G(D(s(mt), null, null, 512), [
|
|
1544
|
-
[Q, s(
|
|
1613
|
+
[Q, s(u)]
|
|
1545
1614
|
]),
|
|
1546
|
-
G(D(s(
|
|
1547
|
-
[Q, !s(
|
|
1615
|
+
G(D(s(Et), null, null, 512), [
|
|
1616
|
+
[Q, !s(u)]
|
|
1548
1617
|
])
|
|
1549
1618
|
]),
|
|
1550
1619
|
_: 1
|
|
@@ -1554,9 +1623,9 @@ const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
|
|
|
1554
1623
|
};
|
|
1555
1624
|
}
|
|
1556
1625
|
});
|
|
1557
|
-
const
|
|
1626
|
+
const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { class: "base_tree_main" }, oa = {
|
|
1558
1627
|
name: "BsgoalBaseTree"
|
|
1559
|
-
},
|
|
1628
|
+
}, ua = /* @__PURE__ */ Object.assign(oa, {
|
|
1560
1629
|
props: {
|
|
1561
1630
|
/**
|
|
1562
1631
|
* 树结构 的下边距
|
|
@@ -1609,27 +1678,27 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
|
|
|
1609
1678
|
}
|
|
1610
1679
|
},
|
|
1611
1680
|
emits: ["on-click"],
|
|
1612
|
-
setup(
|
|
1613
|
-
const
|
|
1614
|
-
ue(_, (
|
|
1615
|
-
|
|
1681
|
+
setup(l, { emit: c }) {
|
|
1682
|
+
const u = l, d = pe.height, _ = B(""), n = B(null);
|
|
1683
|
+
ue(_, (w) => {
|
|
1684
|
+
n.value.filter(w);
|
|
1616
1685
|
});
|
|
1617
|
-
const r = (
|
|
1618
|
-
c("on-click",
|
|
1619
|
-
},
|
|
1620
|
-
if (
|
|
1621
|
-
const R = await x.initNode(
|
|
1686
|
+
const r = (w, N) => w ? N.label.includes(w) : !0, p = B(!0), b = (w, N, x, R) => {
|
|
1687
|
+
c("on-click", w, N, x, R);
|
|
1688
|
+
}, y = async (w, N, x) => {
|
|
1689
|
+
if (w.level === 0) {
|
|
1690
|
+
const R = await x.initNode(w);
|
|
1622
1691
|
return N(R || []);
|
|
1623
1692
|
} else {
|
|
1624
|
-
const R = await x.lazyLoad(
|
|
1693
|
+
const R = await x.lazyLoad(w);
|
|
1625
1694
|
N(R || []);
|
|
1626
1695
|
}
|
|
1627
1696
|
};
|
|
1628
|
-
return (
|
|
1697
|
+
return (w, N) => {
|
|
1629
1698
|
const x = g("el-input"), R = g("el-tree");
|
|
1630
|
-
return
|
|
1631
|
-
G((
|
|
1632
|
-
G(F("div",
|
|
1699
|
+
return o(), T("div", aa, [
|
|
1700
|
+
G((o(), T("div", la, [
|
|
1701
|
+
G(F("div", na, [
|
|
1633
1702
|
D(x, {
|
|
1634
1703
|
modelValue: _.value,
|
|
1635
1704
|
"onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
|
|
@@ -1638,36 +1707,36 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
|
|
|
1638
1707
|
}, null, 8, ["modelValue"]),
|
|
1639
1708
|
D(R, {
|
|
1640
1709
|
ref_key: "EL_TREE_REF",
|
|
1641
|
-
ref:
|
|
1710
|
+
ref: n,
|
|
1642
1711
|
lazy: "",
|
|
1643
1712
|
"highlight-current": "",
|
|
1644
1713
|
"empty-text": "暂无数据",
|
|
1645
|
-
load: (h, v) =>
|
|
1714
|
+
load: (h, v) => y(h, v, u),
|
|
1646
1715
|
"expand-on-click-node": !1,
|
|
1647
|
-
props:
|
|
1716
|
+
props: l.treeProps,
|
|
1648
1717
|
"filter-node-method": r,
|
|
1649
1718
|
onNodeClick: b
|
|
1650
1719
|
}, null, 8, ["load", "props"])
|
|
1651
1720
|
], 512), [
|
|
1652
|
-
[Q,
|
|
1721
|
+
[Q, p.value]
|
|
1653
1722
|
]),
|
|
1654
1723
|
G(D(be, { vertical: "" }, null, 512), [
|
|
1655
|
-
[Q,
|
|
1724
|
+
[Q, p.value]
|
|
1656
1725
|
]),
|
|
1657
|
-
D(
|
|
1658
|
-
modelValue:
|
|
1659
|
-
"onUpdate:modelValue": N[1] || (N[1] = (h) =>
|
|
1726
|
+
D(ta, {
|
|
1727
|
+
modelValue: p.value,
|
|
1728
|
+
"onUpdate:modelValue": N[1] || (N[1] = (h) => p.value = h)
|
|
1660
1729
|
}, null, 8, ["modelValue"])
|
|
1661
1730
|
])), [
|
|
1662
|
-
[s(d),
|
|
1731
|
+
[s(d), l.gasket]
|
|
1663
1732
|
])
|
|
1664
1733
|
]);
|
|
1665
1734
|
};
|
|
1666
1735
|
}
|
|
1667
1736
|
});
|
|
1668
|
-
const
|
|
1737
|
+
const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca = { class: "base_dialog_header" }, ia = { class: "base_dialog_content" }, da = { class: "base_dialog_footer" }, _a = {
|
|
1669
1738
|
name: "BsgoalBaseDialog"
|
|
1670
|
-
},
|
|
1739
|
+
}, ma = /* @__PURE__ */ Object.assign(_a, {
|
|
1671
1740
|
props: {
|
|
1672
1741
|
/**
|
|
1673
1742
|
* 弹窗状态
|
|
@@ -1699,52 +1768,52 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
|
|
|
1699
1768
|
}
|
|
1700
1769
|
},
|
|
1701
1770
|
emits: ["update:modelValue", "on-confirm"],
|
|
1702
|
-
setup(
|
|
1703
|
-
const
|
|
1771
|
+
setup(l, { emit: c }) {
|
|
1772
|
+
const u = l, d = B(u.modelValue.value), _ = () => {
|
|
1704
1773
|
d.value = !1;
|
|
1705
|
-
},
|
|
1774
|
+
}, n = () => {
|
|
1706
1775
|
d.value = !1, c("on-confirm");
|
|
1707
1776
|
};
|
|
1708
1777
|
return ue(
|
|
1709
|
-
() =>
|
|
1778
|
+
() => u.modelValue,
|
|
1710
1779
|
(r) => {
|
|
1711
1780
|
d.value = r;
|
|
1712
1781
|
}
|
|
1713
1782
|
), ue(d, (r) => {
|
|
1714
1783
|
c("update:modelValue", r);
|
|
1715
|
-
}), (r,
|
|
1716
|
-
const b = g("el-button"),
|
|
1717
|
-
return
|
|
1718
|
-
F("div",
|
|
1719
|
-
D(
|
|
1784
|
+
}), (r, p) => {
|
|
1785
|
+
const b = g("el-button"), y = g("el-dialog");
|
|
1786
|
+
return o(), T("div", sa, [
|
|
1787
|
+
F("div", ra, [
|
|
1788
|
+
D(y, {
|
|
1720
1789
|
modelValue: d.value,
|
|
1721
|
-
"onUpdate:modelValue":
|
|
1790
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => d.value = w),
|
|
1722
1791
|
"custom-class": "bsgoal_base_dialog_main"
|
|
1723
1792
|
}, {
|
|
1724
1793
|
header: A(() => [
|
|
1725
|
-
F("div",
|
|
1794
|
+
F("div", ca, j(l.title), 1)
|
|
1726
1795
|
]),
|
|
1727
1796
|
footer: A(() => [
|
|
1728
|
-
F("span",
|
|
1797
|
+
F("span", da, [
|
|
1729
1798
|
D(b, { onClick: _ }, {
|
|
1730
1799
|
default: A(() => [
|
|
1731
|
-
K(j(
|
|
1800
|
+
K(j(l.cancelTxt), 1)
|
|
1732
1801
|
]),
|
|
1733
1802
|
_: 1
|
|
1734
1803
|
}),
|
|
1735
1804
|
D(b, {
|
|
1736
1805
|
type: "primary",
|
|
1737
|
-
onClick:
|
|
1806
|
+
onClick: n
|
|
1738
1807
|
}, {
|
|
1739
1808
|
default: A(() => [
|
|
1740
|
-
K(j(
|
|
1809
|
+
K(j(l.confirmTxt), 1)
|
|
1741
1810
|
]),
|
|
1742
1811
|
_: 1
|
|
1743
1812
|
})
|
|
1744
1813
|
])
|
|
1745
1814
|
]),
|
|
1746
1815
|
default: A(() => [
|
|
1747
|
-
F("div",
|
|
1816
|
+
F("div", ia, [
|
|
1748
1817
|
ie(r.$slots, "default")
|
|
1749
1818
|
])
|
|
1750
1819
|
]),
|
|
@@ -1754,25 +1823,25 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
|
|
|
1754
1823
|
]);
|
|
1755
1824
|
};
|
|
1756
1825
|
}
|
|
1757
|
-
}),
|
|
1758
|
-
install(
|
|
1759
|
-
const { exclude:
|
|
1826
|
+
}), ha = e, pa = Ee, Ea = {
|
|
1827
|
+
install(l, c = {}) {
|
|
1828
|
+
const { exclude: u = [] } = c, d = {
|
|
1760
1829
|
BsgoalBaseForm: Ie,
|
|
1761
1830
|
BsgoalBaseTable: xe,
|
|
1762
1831
|
BsgoalBaseLine: be,
|
|
1763
|
-
BsgoalBaseSearchTable:
|
|
1764
|
-
BsgoalBaseTree:
|
|
1765
|
-
BsgoalBaseDialog:
|
|
1832
|
+
BsgoalBaseSearchTable: Qt,
|
|
1833
|
+
BsgoalBaseTree: ua,
|
|
1834
|
+
BsgoalBaseDialog: ma
|
|
1766
1835
|
};
|
|
1767
|
-
for (const [_,
|
|
1768
|
-
|
|
1836
|
+
for (const [_, n] of Object.entries(d))
|
|
1837
|
+
u.includes(_) || l.component(_, n);
|
|
1769
1838
|
},
|
|
1770
1839
|
enumType: e,
|
|
1771
|
-
useFetch:
|
|
1840
|
+
useFetch: Ee
|
|
1772
1841
|
};
|
|
1773
1842
|
export {
|
|
1774
|
-
|
|
1843
|
+
ha as EnumType,
|
|
1775
1844
|
Ea as default,
|
|
1776
|
-
|
|
1845
|
+
pa as useFetchApi
|
|
1777
1846
|
};
|
|
1778
1847
|
//# sourceMappingURL=index.mjs.map
|