@bsgoal/common 1.0.3 → 1.1.0
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 +487 -413
- 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 +1 -1
- 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/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 = (
|
|
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
5
|
for (var u in c || (c = {}))
|
|
6
|
-
|
|
6
|
+
we.call(c, u) && Ve(l, u, c[u]);
|
|
7
7
|
if (Te)
|
|
8
8
|
for (var u of Te(c))
|
|
9
|
-
Be.call(c, u) && Ve(
|
|
10
|
-
return
|
|
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 o, createElementBlock 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 = [], u = [], d = (
|
|
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
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
44
|
+
}, _ = () => {
|
|
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 = 0, width:
|
|
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
|
-
|
|
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,60 +188,60 @@ 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
200
|
return u("on-form", h), h;
|
|
200
201
|
}, N = () => {
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
const
|
|
202
|
+
_.value.resetFields(), u("on-clear", r.value);
|
|
203
|
+
}, x = (h, v) => {
|
|
204
|
+
const V = {
|
|
204
205
|
type: h,
|
|
205
206
|
prop: v,
|
|
206
207
|
value: r.value[v] || ""
|
|
207
208
|
};
|
|
208
|
-
u("on-change",
|
|
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
|
-
|
|
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 o(),
|
|
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((o(),
|
|
235
|
+
G((o(), E(me, {
|
|
235
236
|
ref_key: "EL_FORM_REF",
|
|
236
|
-
ref:
|
|
237
|
+
ref: _,
|
|
237
238
|
"label-suffix": ":",
|
|
238
239
|
model: r.value
|
|
239
240
|
}, {
|
|
240
241
|
default: A(() => [
|
|
241
242
|
D(_e, null, {
|
|
242
243
|
default: A(() => [
|
|
243
|
-
(o(!0),
|
|
244
|
+
(o(!0), T(I, null, W(s(p), ({
|
|
244
245
|
label: L = "",
|
|
245
246
|
prop: m = "",
|
|
246
247
|
type: a = "text",
|
|
@@ -253,11 +254,11 @@ 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) => (o(),
|
|
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, {
|
|
@@ -266,16 +267,16 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
266
267
|
rules: J
|
|
267
268
|
}, {
|
|
268
269
|
default: A(() => [
|
|
269
|
-
z ? (o(),
|
|
270
|
-
a === s(e).INPUT ? (o(),
|
|
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
273
|
modelValue: r.value[m],
|
|
273
274
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
274
275
|
placeholder: b(a, L, i),
|
|
275
276
|
clearable: se,
|
|
276
|
-
onChange: (t) =>
|
|
277
|
+
onChange: (t) => x(a, m)
|
|
277
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
278
|
-
a === s(e).INPUT_TEXT_AREA ? (o(),
|
|
279
|
+
a === s(e).INPUT_TEXT_AREA ? (o(), E(V, {
|
|
279
280
|
key: 1,
|
|
280
281
|
modelValue: r.value[m],
|
|
281
282
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
@@ -283,24 +284,24 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
|
|
|
283
284
|
rows: re,
|
|
284
285
|
clearable: se,
|
|
285
286
|
placeholder: b(a, L, i),
|
|
286
|
-
onChange: (t) =>
|
|
287
|
+
onChange: (t) => x(a, m)
|
|
287
288
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
288
|
-
a === s(e).INPUT_NUMBER ? (o(),
|
|
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),
|
|
292
293
|
min: ce,
|
|
293
294
|
max: ne,
|
|
294
|
-
onChange:
|
|
295
|
+
onChange: x
|
|
295
296
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
296
|
-
a === s(e).RADIO ? (o(),
|
|
297
|
+
a === s(e).RADIO ? (o(), E(O, {
|
|
297
298
|
key: 3,
|
|
298
299
|
modelValue: r.value[m],
|
|
299
300
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
300
|
-
onChange: (t) =>
|
|
301
|
+
onChange: (t) => x(a, m)
|
|
301
302
|
}, {
|
|
302
303
|
default: A(() => [
|
|
303
|
-
(o(!0),
|
|
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
|
-
a === s(e).SELECT ? (o(),
|
|
316
|
+
a === s(e).SELECT ? (o(), E(M, {
|
|
316
317
|
key: 4,
|
|
317
318
|
modelValue: r.value[m],
|
|
318
319
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
319
320
|
placeholder: b(a, L, i),
|
|
320
|
-
onChange: (t) =>
|
|
321
|
+
onChange: (t) => x(a, m)
|
|
321
322
|
}, {
|
|
322
323
|
default: A(() => [
|
|
323
|
-
(o(!0),
|
|
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
|
-
a === s(e).SLIDER ? (o(),
|
|
332
|
+
a === s(e).SLIDER ? (o(), E(P, {
|
|
332
333
|
key: 5,
|
|
333
334
|
modelValue: r.value[m],
|
|
334
335
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
335
336
|
min: ce,
|
|
336
337
|
max: ne,
|
|
337
|
-
onChange: (t) =>
|
|
338
|
+
onChange: (t) => x(a, m)
|
|
338
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
339
|
-
a === s(e).SWITCH ? (o(),
|
|
340
|
+
a === s(e).SWITCH ? (o(), E(S, {
|
|
340
341
|
key: 6,
|
|
341
342
|
modelValue: r.value[m],
|
|
342
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) =>
|
|
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
|
a
|
|
349
|
-
) ? (o(),
|
|
350
|
+
) ? (o(), E(U, {
|
|
350
351
|
key: 7,
|
|
351
352
|
modelValue: r.value[m],
|
|
352
353
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
353
|
-
format:
|
|
354
|
-
"value-format":
|
|
354
|
+
format: y(a, Y),
|
|
355
|
+
"value-format": y(a, Y),
|
|
355
356
|
type: a,
|
|
356
357
|
placeholder: b(a, L, i),
|
|
357
|
-
onChange: (t) =>
|
|
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(a) ? (o(),
|
|
364
|
+
].includes(a) ? (o(), E(U, {
|
|
364
365
|
key: 8,
|
|
365
366
|
modelValue: r.value[m],
|
|
366
367
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
367
368
|
type: a,
|
|
368
|
-
"value-format":
|
|
369
|
+
"value-format": y(a, Y),
|
|
369
370
|
"start-placeholder": b(a, L, i)[0],
|
|
370
371
|
"end-placeholder": b(a, L, i)[1],
|
|
371
|
-
onChange: (t) =>
|
|
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(a) ? (o(),
|
|
374
|
+
[s(e).TIME].includes(a) ? (o(), E(X, {
|
|
374
375
|
key: 9,
|
|
375
376
|
modelValue: r.value[m],
|
|
376
377
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
377
378
|
"arrow-control": "",
|
|
378
|
-
"value-format":
|
|
379
|
+
"value-format": y(a, Y),
|
|
379
380
|
placeholder: b(a, L, i),
|
|
380
|
-
onChange: (t) =>
|
|
381
|
+
onChange: (t) => x(a, m)
|
|
381
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
382
|
-
[s(e).TIME_RANGE].includes(a) ? (o(),
|
|
383
|
+
[s(e).TIME_RANGE].includes(a) ? (o(), E(X, {
|
|
383
384
|
key: 10,
|
|
384
385
|
modelValue: r.value[m],
|
|
385
386
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
386
387
|
"is-range": "",
|
|
387
|
-
"value-format":
|
|
388
|
+
"value-format": y(a, Y),
|
|
388
389
|
"start-placeholder": b(a, L, i)[0],
|
|
389
390
|
"end-placeholder": b(a, L, i)[1],
|
|
390
|
-
onChange: (t) =>
|
|
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(a) ? (o(),
|
|
393
|
+
[s(e).CHECKBOX].includes(a) ? (o(), E(le, {
|
|
393
394
|
key: 11,
|
|
394
395
|
modelValue: r.value[m],
|
|
395
396
|
"onUpdate:modelValue": (t) => r.value[m] = t,
|
|
396
|
-
onChange: (t) =>
|
|
397
|
+
onChange: (t) => x(a, m)
|
|
397
398
|
}, {
|
|
398
399
|
default: A(() => [
|
|
399
|
-
(o(!0),
|
|
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(a) ? (o(),
|
|
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, u) => (o(),
|
|
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,26 +607,26 @@ 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 u = (
|
|
611
|
-
c("on-size-change",
|
|
612
|
-
}, d = (
|
|
613
|
-
c("on-current-change",
|
|
614
|
-
},
|
|
615
|
-
return (
|
|
616
|
-
const
|
|
617
|
-
return o(),
|
|
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);
|
|
615
|
+
}, _ = B(1);
|
|
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
|
-
"current-page":
|
|
625
|
-
"onUpdate:currentPage": r[0] || (r[0] = (
|
|
626
|
-
"page-sizes":
|
|
627
|
-
"page-size":
|
|
628
|
-
total:
|
|
625
|
+
"current-page": _.value,
|
|
626
|
+
"onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
|
|
627
|
+
"page-sizes": l.pageSizes,
|
|
628
|
+
"page-size": l.pageSize,
|
|
629
|
+
total: l.total,
|
|
629
630
|
onSizeChange: u,
|
|
630
631
|
onCurrentChange: d
|
|
631
632
|
}, {
|
|
@@ -641,37 +642,37 @@ 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
|
-
const
|
|
648
|
-
|
|
649
|
-
const { y:
|
|
650
|
-
|
|
648
|
+
const _ = d.querySelector(".el-table");
|
|
649
|
+
_ && Ce(() => {
|
|
650
|
+
const { y: n = 0 } = _.getBoundingClientRect();
|
|
651
|
+
_.style.height = `calc(100vh - ${n + c}px)`;
|
|
651
652
|
});
|
|
652
653
|
}
|
|
653
|
-
},
|
|
654
|
-
const
|
|
655
|
-
return u.value = !0,
|
|
656
|
-
const { data: r = {}, message:
|
|
657
|
-
d.value = r,
|
|
658
|
-
}).catch((
|
|
659
|
-
if (typeof
|
|
660
|
-
const { message: r = "" } =
|
|
661
|
-
|
|
654
|
+
}, Ee = (l = Promise.resolve(), c = null, u = B(!1), d = B(null)) => {
|
|
655
|
+
const _ = B("");
|
|
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;
|
|
662
|
+
_.value = r;
|
|
662
663
|
} else
|
|
663
|
-
|
|
664
|
-
c(!1,
|
|
664
|
+
_.value = n;
|
|
665
|
+
c(!1, n), u.value = !1;
|
|
665
666
|
}).finally(() => {
|
|
666
667
|
u.value = !1;
|
|
667
|
-
}), { data: d, message:
|
|
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,
|
|
671
672
|
class: "base_table_menu"
|
|
672
673
|
}, et = {
|
|
673
674
|
name: "BsgoalBaseTable"
|
|
674
|
-
},
|
|
675
|
+
}, xe = /* @__PURE__ */ Object.assign(et, {
|
|
675
676
|
props: {
|
|
676
677
|
/**
|
|
677
678
|
* >----------props----------<
|
|
@@ -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 u =
|
|
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
|
-
}),
|
|
769
|
+
width: O
|
|
770
|
+
}), [...k, ...M];
|
|
771
|
+
}), _ = B(null), n = $e("transferFoldStatus");
|
|
771
772
|
he(() => {
|
|
772
|
-
const
|
|
773
|
-
qe(
|
|
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(
|
|
780
|
-
const { mapProps: C } = u,
|
|
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 o(),
|
|
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
|
-
ref:
|
|
804
|
+
ref: _
|
|
804
805
|
}, [
|
|
805
|
-
G((o(),
|
|
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
|
-
(o(!0),
|
|
827
|
+
(o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(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,21 +869,21 @@ const tt = {
|
|
|
868
869
|
default: !1
|
|
869
870
|
}
|
|
870
871
|
},
|
|
871
|
-
setup(
|
|
872
|
-
return (c, u) => (o(),
|
|
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 u =
|
|
884
|
-
for (let [d,
|
|
885
|
-
u[d] =
|
|
883
|
+
var ae = (l, c) => {
|
|
884
|
+
let u = l.__vccOpts || l;
|
|
885
|
+
for (let [d, _] of c)
|
|
886
|
+
u[d] = _;
|
|
886
887
|
return u;
|
|
887
888
|
}, at = {
|
|
888
889
|
name: "ArrowDown"
|
|
@@ -901,8 +902,8 @@ var ae = (n, c) => {
|
|
|
901
902
|
), ot = [
|
|
902
903
|
nt
|
|
903
904
|
];
|
|
904
|
-
function ut(
|
|
905
|
-
return o(),
|
|
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 o(),
|
|
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 o(),
|
|
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 o(),
|
|
965
|
+
function Ct(l, c, u, d, _, n) {
|
|
966
|
+
return o(), T("svg", Tt, At);
|
|
966
967
|
}
|
|
967
|
-
var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]),
|
|
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"]]), w
|
|
|
979
980
|
-1
|
|
980
981
|
/* HOISTED */
|
|
981
982
|
), Bt = [
|
|
982
|
-
|
|
983
|
+
wt
|
|
983
984
|
];
|
|
984
|
-
function Dt(
|
|
985
|
-
return o(),
|
|
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,11 +1002,11 @@ var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot
|
|
|
1001
1002
|
), Mt = [
|
|
1002
1003
|
Ft
|
|
1003
1004
|
];
|
|
1004
|
-
function Rt(
|
|
1005
|
-
return o(),
|
|
1005
|
+
function Rt(l, c, u, d, _, n) {
|
|
1006
|
+
return o(), T("svg", Nt, Mt);
|
|
1006
1007
|
}
|
|
1007
|
-
var
|
|
1008
|
-
const
|
|
1008
|
+
var St = /* @__PURE__ */ ae(kt, [["render", Rt], ["__file", "search.vue"]]);
|
|
1009
|
+
const Ut = { class: "bsgoal-base-search-operation" }, It = {
|
|
1009
1010
|
name: "BsgoalBaseSearchOperation"
|
|
1010
1011
|
}, Pt = /* @__PURE__ */ Object.assign(It, {
|
|
1011
1012
|
props: {
|
|
@@ -1018,17 +1019,17 @@ const St = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1018
1019
|
}
|
|
1019
1020
|
},
|
|
1020
1021
|
emits: ["on-fold"],
|
|
1021
|
-
setup(
|
|
1022
|
+
setup(l, { emit: c }) {
|
|
1022
1023
|
const u = B(!1), d = () => {
|
|
1023
1024
|
u.value = !s(u), c("on-fold", u.value);
|
|
1024
1025
|
};
|
|
1025
|
-
return (
|
|
1026
|
-
const r = g("el-button"),
|
|
1027
|
-
return o(),
|
|
1026
|
+
return (_, n) => {
|
|
1027
|
+
const r = g("el-button"), p = g("el-icon");
|
|
1028
|
+
return o(), T("div", Ut, [
|
|
1028
1029
|
D(r, {
|
|
1029
1030
|
type: "primary",
|
|
1030
|
-
icon: s(
|
|
1031
|
-
onClick:
|
|
1031
|
+
icon: s(St),
|
|
1032
|
+
onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
|
|
1032
1033
|
}, {
|
|
1033
1034
|
default: A(() => [
|
|
1034
1035
|
K("搜索")
|
|
@@ -1036,22 +1037,22 @@ const St = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1036
1037
|
_: 1
|
|
1037
1038
|
}, 8, ["icon"]),
|
|
1038
1039
|
D(r, {
|
|
1039
|
-
icon: s(
|
|
1040
|
-
onClick:
|
|
1040
|
+
icon: s(Ot),
|
|
1041
|
+
onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
|
|
1041
1042
|
}, {
|
|
1042
1043
|
default: A(() => [
|
|
1043
1044
|
K("清空")
|
|
1044
1045
|
]),
|
|
1045
1046
|
_: 1
|
|
1046
1047
|
}, 8, ["icon"]),
|
|
1047
|
-
|
|
1048
|
+
l.fold ? (o(), T("div", {
|
|
1048
1049
|
key: 0,
|
|
1049
1050
|
class: "operation_fold",
|
|
1050
1051
|
style: { color: "var(--el-color-primary)" },
|
|
1051
1052
|
onClick: d
|
|
1052
1053
|
}, [
|
|
1053
1054
|
K(j(u.value ? "收起" : "展开"), 1),
|
|
1054
|
-
D(
|
|
1055
|
+
D(p, { color: "#409EFC" }, {
|
|
1055
1056
|
default: A(() => [
|
|
1056
1057
|
G(D(s($t), null, null, 512), [
|
|
1057
1058
|
[Q, u.value]
|
|
@@ -1067,9 +1068,66 @@ const St = { class: "bsgoal-base-search-operation" }, It = {
|
|
|
1067
1068
|
};
|
|
1068
1069
|
}
|
|
1069
1070
|
});
|
|
1070
|
-
const Lt = { class: "bsgoal-base-
|
|
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 = {
|
|
1071
1129
|
name: "BsgoalBaseSearch"
|
|
1072
|
-
},
|
|
1130
|
+
}, Xt = /* @__PURE__ */ Object.assign(Wt, {
|
|
1073
1131
|
props: {
|
|
1074
1132
|
/**
|
|
1075
1133
|
* >----------props----------<
|
|
@@ -1100,29 +1158,36 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1100
1158
|
medium: {
|
|
1101
1159
|
type: [Number, String],
|
|
1102
1160
|
default: 6
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* 绑定的值
|
|
1164
|
+
*/
|
|
1165
|
+
modelValue: {
|
|
1166
|
+
type: [Object],
|
|
1167
|
+
default: () => ({})
|
|
1103
1168
|
}
|
|
1104
1169
|
},
|
|
1105
1170
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1106
|
-
setup(
|
|
1107
|
-
const u =
|
|
1171
|
+
setup(l, { emit: c }) {
|
|
1172
|
+
const u = l, d = B(null), _ = pe.align, n = B({});
|
|
1108
1173
|
he(() => {
|
|
1109
1174
|
const { configOptions: v } = u;
|
|
1110
|
-
s(v).forEach((
|
|
1111
|
-
const { value: C = "", prop:
|
|
1112
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(
|
|
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;
|
|
1113
1178
|
});
|
|
1114
1179
|
});
|
|
1115
1180
|
const r = oe(() => {
|
|
1116
|
-
const { configOptions: v } = u,
|
|
1181
|
+
const { configOptions: v } = u, V = s(v), f = {
|
|
1117
1182
|
type: e.OPERATION
|
|
1118
1183
|
};
|
|
1119
|
-
return [...
|
|
1120
|
-
}),
|
|
1121
|
-
if (!
|
|
1184
|
+
return [...V, f];
|
|
1185
|
+
}), p = (v = "", V = "", f = "") => {
|
|
1186
|
+
if (!f)
|
|
1122
1187
|
switch (v) {
|
|
1123
1188
|
case e.INPUT:
|
|
1124
1189
|
case e.INPUT_TEXT_AREA:
|
|
1125
|
-
return `请输入${
|
|
1190
|
+
return `请输入${V}`;
|
|
1126
1191
|
case e.SELECT:
|
|
1127
1192
|
case e.DATE:
|
|
1128
1193
|
case e.WEEK:
|
|
@@ -1130,7 +1195,8 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1130
1195
|
case e.YEAR:
|
|
1131
1196
|
case e.DATE_TIME:
|
|
1132
1197
|
case e.TIME:
|
|
1133
|
-
|
|
1198
|
+
case e.CASCADER:
|
|
1199
|
+
return `请选择${V}`;
|
|
1134
1200
|
case e.DATE_RANGE:
|
|
1135
1201
|
case e.DATE_TIME_RANGE:
|
|
1136
1202
|
return ["开始日期", "结束日期"];
|
|
@@ -1139,9 +1205,9 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1139
1205
|
case e.MONTH_RANGE:
|
|
1140
1206
|
return ["开始月份", "结束月份"];
|
|
1141
1207
|
}
|
|
1142
|
-
return
|
|
1143
|
-
}, b = (v = "",
|
|
1144
|
-
if (!
|
|
1208
|
+
return f;
|
|
1209
|
+
}, b = (v = "", V = "") => {
|
|
1210
|
+
if (!V)
|
|
1145
1211
|
switch (v) {
|
|
1146
1212
|
case e.WEEK:
|
|
1147
1213
|
return "ww";
|
|
@@ -1161,49 +1227,49 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1161
1227
|
case e.DATE_TIME_RANGE:
|
|
1162
1228
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1163
1229
|
}
|
|
1164
|
-
return
|
|
1165
|
-
},
|
|
1166
|
-
const v = s(
|
|
1167
|
-
for (const C of
|
|
1168
|
-
const { type:
|
|
1169
|
-
if (
|
|
1170
|
-
const { 0: P = "", 1:
|
|
1171
|
-
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;
|
|
1172
1238
|
}
|
|
1173
1239
|
}
|
|
1174
|
-
c("on-search", v);
|
|
1240
|
+
c("on-search", v), c("update:modelValue", v);
|
|
1175
1241
|
};
|
|
1176
1242
|
Ce(() => {
|
|
1177
|
-
|
|
1243
|
+
y();
|
|
1178
1244
|
});
|
|
1179
|
-
const
|
|
1180
|
-
d.value.resetFields(), c("on-clear",
|
|
1181
|
-
}, N = $e("transferFoldStatus"),
|
|
1182
|
-
|
|
1183
|
-
}, h = (v,
|
|
1184
|
-
|
|
1185
|
-
const
|
|
1245
|
+
const w = () => {
|
|
1246
|
+
d.value.resetFields(), c("on-clear", n.value);
|
|
1247
|
+
}, N = $e("transferFoldStatus"), x = B(!1), R = (v = !1) => {
|
|
1248
|
+
x.value = v, N && (N.value = v), c("on-fold", x);
|
|
1249
|
+
}, h = (v, V) => {
|
|
1250
|
+
y();
|
|
1251
|
+
const f = {
|
|
1186
1252
|
type: v,
|
|
1187
|
-
prop:
|
|
1188
|
-
value:
|
|
1253
|
+
prop: V,
|
|
1254
|
+
value: n.value[V] || ""
|
|
1189
1255
|
};
|
|
1190
|
-
c("on-change",
|
|
1256
|
+
c("on-change", f);
|
|
1191
1257
|
};
|
|
1192
|
-
return (v,
|
|
1193
|
-
const
|
|
1194
|
-
return o(),
|
|
1195
|
-
F("div",
|
|
1196
|
-
G((o(),
|
|
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, {
|
|
1197
1263
|
ref_key: "EL_FORM_REF",
|
|
1198
1264
|
ref: d,
|
|
1199
1265
|
"label-suffix": ":",
|
|
1200
1266
|
"show-message": !1,
|
|
1201
|
-
model:
|
|
1267
|
+
model: n.value
|
|
1202
1268
|
}, {
|
|
1203
1269
|
default: A(() => [
|
|
1204
1270
|
D(me, null, {
|
|
1205
1271
|
default: A(() => [
|
|
1206
|
-
(o(!0),
|
|
1272
|
+
(o(!0), T(I, null, W(s(r), ({
|
|
1207
1273
|
label: m = "",
|
|
1208
1274
|
prop: a = "",
|
|
1209
1275
|
type: i = "text",
|
|
@@ -1215,11 +1281,11 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1215
1281
|
max: q = 10,
|
|
1216
1282
|
range: Y = [],
|
|
1217
1283
|
format: J = ""
|
|
1218
|
-
} = {}, te) => G((o(),
|
|
1284
|
+
} = {}, te) => G((o(), E(_e, {
|
|
1219
1285
|
key: te,
|
|
1220
1286
|
xs: 24,
|
|
1221
1287
|
sm: 12,
|
|
1222
|
-
md:
|
|
1288
|
+
md: l.medium
|
|
1223
1289
|
}, {
|
|
1224
1290
|
default: A(() => [
|
|
1225
1291
|
D(de, {
|
|
@@ -1227,41 +1293,41 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1227
1293
|
prop: a
|
|
1228
1294
|
}, {
|
|
1229
1295
|
default: A(() => [
|
|
1230
|
-
se ? (o(),
|
|
1231
|
-
i === s(e).INPUT ? (o(),
|
|
1296
|
+
se ? (o(), T("div", jt, j(n.value[a]), 1)) : (o(), T(I, { key: 0 }, [
|
|
1297
|
+
i === s(e).INPUT ? (o(), E(f, {
|
|
1232
1298
|
key: 0,
|
|
1233
|
-
modelValue:
|
|
1234
|
-
"onUpdate:modelValue": (t) =>
|
|
1235
|
-
placeholder:
|
|
1299
|
+
modelValue: n.value[a],
|
|
1300
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1301
|
+
placeholder: p(i, m, z),
|
|
1236
1302
|
clearable: re,
|
|
1237
1303
|
onChange: (t) => h(i, a)
|
|
1238
1304
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
|
|
1239
|
-
i === s(e).INPUT_TEXT_AREA ? (o(),
|
|
1305
|
+
i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
|
|
1240
1306
|
key: 1,
|
|
1241
|
-
modelValue:
|
|
1242
|
-
"onUpdate:modelValue": (t) =>
|
|
1307
|
+
modelValue: n.value[a],
|
|
1308
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1243
1309
|
type: "textarea",
|
|
1244
1310
|
rows: ce,
|
|
1245
1311
|
clearable: re,
|
|
1246
|
-
placeholder:
|
|
1312
|
+
placeholder: p(i, m, z),
|
|
1247
1313
|
onChange: (t) => h(i, a)
|
|
1248
1314
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
|
|
1249
|
-
i === s(e).INPUT_NUMBER ? (o(),
|
|
1315
|
+
i === s(e).INPUT_NUMBER ? (o(), E(C, {
|
|
1250
1316
|
key: 2,
|
|
1251
1317
|
modelValue: v.num,
|
|
1252
|
-
"onUpdate:modelValue":
|
|
1318
|
+
"onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
|
|
1253
1319
|
min: ne,
|
|
1254
1320
|
max: q,
|
|
1255
1321
|
onChange: h
|
|
1256
1322
|
}, null, 8, ["modelValue", "min", "max"])) : $("", !0),
|
|
1257
|
-
i === s(e).RADIO ? (o(),
|
|
1323
|
+
i === s(e).RADIO ? (o(), E(k, {
|
|
1258
1324
|
key: 3,
|
|
1259
|
-
modelValue:
|
|
1260
|
-
"onUpdate:modelValue": (t) =>
|
|
1325
|
+
modelValue: n.value[a],
|
|
1326
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1261
1327
|
onChange: (t) => h(i, a)
|
|
1262
1328
|
}, {
|
|
1263
1329
|
default: A(() => [
|
|
1264
|
-
(o(!0),
|
|
1330
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(O, {
|
|
1265
1331
|
key: H,
|
|
1266
1332
|
label: t.value
|
|
1267
1333
|
}, {
|
|
@@ -1273,15 +1339,15 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1273
1339
|
]),
|
|
1274
1340
|
_: 2
|
|
1275
1341
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1276
|
-
i === s(e).SELECT ? (o(),
|
|
1342
|
+
i === s(e).SELECT ? (o(), E(P, {
|
|
1277
1343
|
key: 4,
|
|
1278
|
-
modelValue:
|
|
1279
|
-
"onUpdate:modelValue": (t) =>
|
|
1280
|
-
placeholder:
|
|
1344
|
+
modelValue: n.value[a],
|
|
1345
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1346
|
+
placeholder: p(i, m, z),
|
|
1281
1347
|
onChange: (t) => h(i, a)
|
|
1282
1348
|
}, {
|
|
1283
1349
|
default: A(() => [
|
|
1284
|
-
(o(!0),
|
|
1350
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(M, {
|
|
1285
1351
|
key: H,
|
|
1286
1352
|
label: t.label,
|
|
1287
1353
|
value: t.value
|
|
@@ -1289,75 +1355,75 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1289
1355
|
]),
|
|
1290
1356
|
_: 2
|
|
1291
1357
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
|
|
1292
|
-
i === s(e).SLIDER ? (o(),
|
|
1358
|
+
i === s(e).SLIDER ? (o(), E(S, {
|
|
1293
1359
|
key: 5,
|
|
1294
|
-
modelValue:
|
|
1295
|
-
"onUpdate:modelValue": (t) =>
|
|
1360
|
+
modelValue: n.value[a],
|
|
1361
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1296
1362
|
min: ne,
|
|
1297
1363
|
max: q,
|
|
1298
1364
|
onChange: (t) => h(i, a)
|
|
1299
1365
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
|
|
1300
|
-
i === s(e).SWITCH ? (o(),
|
|
1366
|
+
i === s(e).SWITCH ? (o(), E(U, {
|
|
1301
1367
|
key: 6,
|
|
1302
|
-
modelValue:
|
|
1303
|
-
"onUpdate:modelValue": (t) =>
|
|
1368
|
+
modelValue: n.value[a],
|
|
1369
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1304
1370
|
"active-value": Y[0] || !0,
|
|
1305
1371
|
"inactive-value": Y[1] || !1,
|
|
1306
1372
|
onChange: (t) => h(i, a)
|
|
1307
1373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
|
|
1308
1374
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
1309
1375
|
i
|
|
1310
|
-
) ? (o(),
|
|
1376
|
+
) ? (o(), E(X, {
|
|
1311
1377
|
key: 7,
|
|
1312
|
-
modelValue:
|
|
1313
|
-
"onUpdate:modelValue": (t) =>
|
|
1378
|
+
modelValue: n.value[a],
|
|
1379
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1314
1380
|
format: b(i, J),
|
|
1315
1381
|
"value-format": b(i, J),
|
|
1316
1382
|
type: i,
|
|
1317
|
-
placeholder:
|
|
1383
|
+
placeholder: p(i, m, z),
|
|
1318
1384
|
onChange: (t) => h(i, a)
|
|
1319
1385
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
|
|
1320
1386
|
[
|
|
1321
1387
|
s(e).DATE_RANGE,
|
|
1322
1388
|
s(e).MONTH_RANGE,
|
|
1323
1389
|
s(e).DATE_TIME_RANGE
|
|
1324
|
-
].includes(i) ? (o(),
|
|
1390
|
+
].includes(i) ? (o(), E(X, {
|
|
1325
1391
|
key: 8,
|
|
1326
|
-
modelValue:
|
|
1327
|
-
"onUpdate:modelValue": (t) =>
|
|
1392
|
+
modelValue: n.value[a],
|
|
1393
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1328
1394
|
type: i,
|
|
1329
1395
|
"value-format": b(i, J),
|
|
1330
|
-
"start-placeholder":
|
|
1331
|
-
"end-placeholder":
|
|
1396
|
+
"start-placeholder": p(i, m, z)[0],
|
|
1397
|
+
"end-placeholder": p(i, m, z)[1],
|
|
1332
1398
|
onChange: (t) => h(i, a)
|
|
1333
1399
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1334
|
-
[s(e).TIME].includes(i) ? (o(),
|
|
1400
|
+
[s(e).TIME].includes(i) ? (o(), E(Z, {
|
|
1335
1401
|
key: 9,
|
|
1336
|
-
modelValue:
|
|
1337
|
-
"onUpdate:modelValue": (t) =>
|
|
1402
|
+
modelValue: n.value[a],
|
|
1403
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1338
1404
|
"arrow-control": "",
|
|
1339
1405
|
"value-format": b(i, J),
|
|
1340
|
-
placeholder:
|
|
1406
|
+
placeholder: p(i, m, z),
|
|
1341
1407
|
onChange: (t) => h(i, a)
|
|
1342
1408
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
|
|
1343
|
-
[s(e).TIME_RANGE].includes(i) ? (o(),
|
|
1409
|
+
[s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
|
|
1344
1410
|
key: 10,
|
|
1345
|
-
modelValue:
|
|
1346
|
-
"onUpdate:modelValue": (t) =>
|
|
1411
|
+
modelValue: n.value[a],
|
|
1412
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1347
1413
|
"is-range": "",
|
|
1348
1414
|
"value-format": b(i, J),
|
|
1349
|
-
"start-placeholder":
|
|
1350
|
-
"end-placeholder":
|
|
1415
|
+
"start-placeholder": p(i, m, z)[0],
|
|
1416
|
+
"end-placeholder": p(i, m, z)[1],
|
|
1351
1417
|
onChange: (t) => h(i, a)
|
|
1352
1418
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
|
|
1353
|
-
[s(e).CHECKBOX].includes(i) ? (o(),
|
|
1419
|
+
[s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
|
|
1354
1420
|
key: 11,
|
|
1355
|
-
modelValue:
|
|
1356
|
-
"onUpdate:modelValue": (t) =>
|
|
1421
|
+
modelValue: n.value[a],
|
|
1422
|
+
"onUpdate:modelValue": (t) => n.value[a] = t,
|
|
1357
1423
|
onChange: (t) => h(i, a)
|
|
1358
1424
|
}, {
|
|
1359
1425
|
default: A(() => [
|
|
1360
|
-
(o(!0),
|
|
1426
|
+
(o(!0), T(I, null, W(Y, (t, H) => (o(), E(le, {
|
|
1361
1427
|
key: H,
|
|
1362
1428
|
label: t.value
|
|
1363
1429
|
}, {
|
|
@@ -1369,12 +1435,20 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1369
1435
|
]),
|
|
1370
1436
|
_: 2
|
|
1371
1437
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
|
|
1372
|
-
[].includes(i) ? (o(),
|
|
1373
|
-
|
|
1374
|
-
|
|
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,
|
|
1375
1449
|
fold: te >= 7,
|
|
1376
|
-
onOnSearch:
|
|
1377
|
-
onOnClear:
|
|
1450
|
+
onOnSearch: y,
|
|
1451
|
+
onOnClear: w,
|
|
1378
1452
|
onOnFold: R
|
|
1379
1453
|
}, null, 8, ["fold"])) : $("", !0)
|
|
1380
1454
|
], 64))
|
|
@@ -1384,7 +1458,7 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1384
1458
|
]),
|
|
1385
1459
|
_: 2
|
|
1386
1460
|
}, 1032, ["md"])), [
|
|
1387
|
-
[Q, te < 7 || i === s(e).OPERATION || te >= 7 &&
|
|
1461
|
+
[Q, te < 7 || i === s(e).OPERATION || te >= 7 && x.value]
|
|
1388
1462
|
])), 128))
|
|
1389
1463
|
]),
|
|
1390
1464
|
_: 1
|
|
@@ -1392,7 +1466,7 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1392
1466
|
]),
|
|
1393
1467
|
_: 1
|
|
1394
1468
|
}, 8, ["model"])), [
|
|
1395
|
-
[s(
|
|
1469
|
+
[s(_)]
|
|
1396
1470
|
])
|
|
1397
1471
|
]),
|
|
1398
1472
|
D(be)
|
|
@@ -1400,9 +1474,9 @@ const Lt = { class: "bsgoal-base-search" }, zt = { class: "base_search" }, Yt =
|
|
|
1400
1474
|
};
|
|
1401
1475
|
}
|
|
1402
1476
|
});
|
|
1403
|
-
const
|
|
1477
|
+
const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_table" }, Jt = {
|
|
1404
1478
|
name: "BsgoalBaseSearchTable"
|
|
1405
|
-
},
|
|
1479
|
+
}, Qt = /* @__PURE__ */ Object.assign(Jt, {
|
|
1406
1480
|
props: {
|
|
1407
1481
|
/**
|
|
1408
1482
|
* >----------props----------<
|
|
@@ -1480,35 +1554,35 @@ const jt = { class: "bsgoal-base-search-table" }, Wt = { class: "base_search_tab
|
|
|
1480
1554
|
default: 75
|
|
1481
1555
|
}
|
|
1482
1556
|
},
|
|
1483
|
-
setup(
|
|
1484
|
-
const c =
|
|
1485
|
-
|
|
1486
|
-
const d = s(c.configOptions),
|
|
1487
|
-
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);
|
|
1488
1562
|
};
|
|
1489
|
-
return (
|
|
1490
|
-
F("div",
|
|
1491
|
-
D(
|
|
1492
|
-
"config-options": s(
|
|
1493
|
-
onOnSearch:
|
|
1494
|
-
onOnClear:
|
|
1563
|
+
return (w, N) => (o(), T("div", Kt, [
|
|
1564
|
+
F("div", qt, [
|
|
1565
|
+
D(Xt, {
|
|
1566
|
+
"config-options": s(_),
|
|
1567
|
+
onOnSearch: y,
|
|
1568
|
+
onOnClear: y
|
|
1495
1569
|
}, null, 8, ["config-options"]),
|
|
1496
|
-
D(
|
|
1570
|
+
D(xe, {
|
|
1497
1571
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1498
1572
|
ref: b,
|
|
1499
|
-
operationWidth:
|
|
1500
|
-
"config-options": s(
|
|
1501
|
-
data:
|
|
1502
|
-
selection:
|
|
1503
|
-
operation:
|
|
1504
|
-
expression:
|
|
1505
|
-
fetch:
|
|
1506
|
-
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
|
|
1507
1581
|
}, Ne({ _: 2 }, [
|
|
1508
|
-
W(
|
|
1509
|
-
name:
|
|
1582
|
+
W(p.value, (x) => ({
|
|
1583
|
+
name: x,
|
|
1510
1584
|
fn: A(({ row: R = {} }) => [
|
|
1511
|
-
ie(
|
|
1585
|
+
ie(w.$slots, x, { row: R })
|
|
1512
1586
|
])
|
|
1513
1587
|
}))
|
|
1514
1588
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1516,19 +1590,19 @@ const jt = { class: "bsgoal-base-search-table" }, Wt = { class: "base_search_tab
|
|
|
1516
1590
|
]));
|
|
1517
1591
|
}
|
|
1518
1592
|
});
|
|
1519
|
-
const
|
|
1593
|
+
const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
|
|
1520
1594
|
name: "BsgoalBaseTreeFold"
|
|
1521
|
-
},
|
|
1595
|
+
}, ta = /* @__PURE__ */ Object.assign(ea, {
|
|
1522
1596
|
props: ["modelValue"],
|
|
1523
1597
|
emits: ["update:modelValue"],
|
|
1524
|
-
setup(
|
|
1598
|
+
setup(l, { emit: c }) {
|
|
1525
1599
|
let u = B(!0);
|
|
1526
1600
|
const d = () => {
|
|
1527
1601
|
u.value = !u.value, c("update:modelValue", u.value);
|
|
1528
1602
|
};
|
|
1529
|
-
return (
|
|
1603
|
+
return (_, n) => {
|
|
1530
1604
|
const r = g("el-icon");
|
|
1531
|
-
return o(),
|
|
1605
|
+
return o(), T("div", Zt, [
|
|
1532
1606
|
F("div", {
|
|
1533
1607
|
class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
|
|
1534
1608
|
onClick: d
|
|
@@ -1538,7 +1612,7 @@ const qt = { class: "bsgoal-base-tree-fold" }, Jt = {
|
|
|
1538
1612
|
G(D(s(mt), null, null, 512), [
|
|
1539
1613
|
[Q, s(u)]
|
|
1540
1614
|
]),
|
|
1541
|
-
G(D(s(
|
|
1615
|
+
G(D(s(Et), null, null, 512), [
|
|
1542
1616
|
[Q, !s(u)]
|
|
1543
1617
|
])
|
|
1544
1618
|
]),
|
|
@@ -1549,9 +1623,9 @@ const qt = { class: "bsgoal-base-tree-fold" }, Jt = {
|
|
|
1549
1623
|
};
|
|
1550
1624
|
}
|
|
1551
1625
|
});
|
|
1552
|
-
const
|
|
1626
|
+
const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { class: "base_tree_main" }, oa = {
|
|
1553
1627
|
name: "BsgoalBaseTree"
|
|
1554
|
-
},
|
|
1628
|
+
}, ua = /* @__PURE__ */ Object.assign(oa, {
|
|
1555
1629
|
props: {
|
|
1556
1630
|
/**
|
|
1557
1631
|
* 树结构 的下边距
|
|
@@ -1604,65 +1678,65 @@ const Zt = { class: "bsgoal-base-tree" }, ea = { class: "base_tree" }, ta = { cl
|
|
|
1604
1678
|
}
|
|
1605
1679
|
},
|
|
1606
1680
|
emits: ["on-click"],
|
|
1607
|
-
setup(
|
|
1608
|
-
const u =
|
|
1609
|
-
ue(
|
|
1610
|
-
|
|
1681
|
+
setup(l, { emit: c }) {
|
|
1682
|
+
const u = l, d = pe.height, _ = B(""), n = B(null);
|
|
1683
|
+
ue(_, (w) => {
|
|
1684
|
+
n.value.filter(w);
|
|
1611
1685
|
});
|
|
1612
|
-
const r = (
|
|
1613
|
-
c("on-click",
|
|
1614
|
-
},
|
|
1615
|
-
if (
|
|
1616
|
-
const R = await
|
|
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);
|
|
1617
1691
|
return N(R || []);
|
|
1618
1692
|
} else {
|
|
1619
|
-
const R = await
|
|
1693
|
+
const R = await x.lazyLoad(w);
|
|
1620
1694
|
N(R || []);
|
|
1621
1695
|
}
|
|
1622
1696
|
};
|
|
1623
|
-
return (
|
|
1624
|
-
const
|
|
1625
|
-
return o(),
|
|
1626
|
-
G((o(),
|
|
1627
|
-
G(F("div",
|
|
1628
|
-
D(
|
|
1629
|
-
modelValue:
|
|
1630
|
-
"onUpdate:modelValue": N[0] || (N[0] = (h) =>
|
|
1697
|
+
return (w, N) => {
|
|
1698
|
+
const x = g("el-input"), R = g("el-tree");
|
|
1699
|
+
return o(), T("div", aa, [
|
|
1700
|
+
G((o(), T("div", la, [
|
|
1701
|
+
G(F("div", na, [
|
|
1702
|
+
D(x, {
|
|
1703
|
+
modelValue: _.value,
|
|
1704
|
+
"onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
|
|
1631
1705
|
class: "base_tree_main_input",
|
|
1632
1706
|
placeholder: "输入关键字过滤"
|
|
1633
1707
|
}, null, 8, ["modelValue"]),
|
|
1634
1708
|
D(R, {
|
|
1635
1709
|
ref_key: "EL_TREE_REF",
|
|
1636
|
-
ref:
|
|
1710
|
+
ref: n,
|
|
1637
1711
|
lazy: "",
|
|
1638
1712
|
"highlight-current": "",
|
|
1639
1713
|
"empty-text": "暂无数据",
|
|
1640
|
-
load: (h, v) =>
|
|
1714
|
+
load: (h, v) => y(h, v, u),
|
|
1641
1715
|
"expand-on-click-node": !1,
|
|
1642
|
-
props:
|
|
1716
|
+
props: l.treeProps,
|
|
1643
1717
|
"filter-node-method": r,
|
|
1644
1718
|
onNodeClick: b
|
|
1645
1719
|
}, null, 8, ["load", "props"])
|
|
1646
1720
|
], 512), [
|
|
1647
|
-
[Q,
|
|
1721
|
+
[Q, p.value]
|
|
1648
1722
|
]),
|
|
1649
1723
|
G(D(be, { vertical: "" }, null, 512), [
|
|
1650
|
-
[Q,
|
|
1724
|
+
[Q, p.value]
|
|
1651
1725
|
]),
|
|
1652
|
-
D(
|
|
1653
|
-
modelValue:
|
|
1654
|
-
"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)
|
|
1655
1729
|
}, null, 8, ["modelValue"])
|
|
1656
1730
|
])), [
|
|
1657
|
-
[s(d),
|
|
1731
|
+
[s(d), l.gasket]
|
|
1658
1732
|
])
|
|
1659
1733
|
]);
|
|
1660
1734
|
};
|
|
1661
1735
|
}
|
|
1662
1736
|
});
|
|
1663
|
-
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 = {
|
|
1664
1738
|
name: "BsgoalBaseDialog"
|
|
1665
|
-
},
|
|
1739
|
+
}, ma = /* @__PURE__ */ Object.assign(_a, {
|
|
1666
1740
|
props: {
|
|
1667
1741
|
/**
|
|
1668
1742
|
* 弹窗状态
|
|
@@ -1694,10 +1768,10 @@ const na = { class: "bsgoal-base-dialog" }, oa = { class: "base_dialog" }, ua =
|
|
|
1694
1768
|
}
|
|
1695
1769
|
},
|
|
1696
1770
|
emits: ["update:modelValue", "on-confirm"],
|
|
1697
|
-
setup(
|
|
1698
|
-
const u =
|
|
1771
|
+
setup(l, { emit: c }) {
|
|
1772
|
+
const u = l, d = B(u.modelValue.value), _ = () => {
|
|
1699
1773
|
d.value = !1;
|
|
1700
|
-
},
|
|
1774
|
+
}, n = () => {
|
|
1701
1775
|
d.value = !1, c("on-confirm");
|
|
1702
1776
|
};
|
|
1703
1777
|
return ue(
|
|
@@ -1707,39 +1781,39 @@ const na = { class: "bsgoal-base-dialog" }, oa = { class: "base_dialog" }, ua =
|
|
|
1707
1781
|
}
|
|
1708
1782
|
), ue(d, (r) => {
|
|
1709
1783
|
c("update:modelValue", r);
|
|
1710
|
-
}), (r,
|
|
1711
|
-
const b = g("el-button"),
|
|
1712
|
-
return o(),
|
|
1713
|
-
F("div",
|
|
1714
|
-
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, {
|
|
1715
1789
|
modelValue: d.value,
|
|
1716
|
-
"onUpdate:modelValue":
|
|
1790
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => d.value = w),
|
|
1717
1791
|
"custom-class": "bsgoal_base_dialog_main"
|
|
1718
1792
|
}, {
|
|
1719
1793
|
header: A(() => [
|
|
1720
|
-
F("div",
|
|
1794
|
+
F("div", ca, j(l.title), 1)
|
|
1721
1795
|
]),
|
|
1722
1796
|
footer: A(() => [
|
|
1723
|
-
F("span",
|
|
1724
|
-
D(b, { onClick:
|
|
1797
|
+
F("span", da, [
|
|
1798
|
+
D(b, { onClick: _ }, {
|
|
1725
1799
|
default: A(() => [
|
|
1726
|
-
K(j(
|
|
1800
|
+
K(j(l.cancelTxt), 1)
|
|
1727
1801
|
]),
|
|
1728
1802
|
_: 1
|
|
1729
1803
|
}),
|
|
1730
1804
|
D(b, {
|
|
1731
1805
|
type: "primary",
|
|
1732
|
-
onClick:
|
|
1806
|
+
onClick: n
|
|
1733
1807
|
}, {
|
|
1734
1808
|
default: A(() => [
|
|
1735
|
-
K(j(
|
|
1809
|
+
K(j(l.confirmTxt), 1)
|
|
1736
1810
|
]),
|
|
1737
1811
|
_: 1
|
|
1738
1812
|
})
|
|
1739
1813
|
])
|
|
1740
1814
|
]),
|
|
1741
1815
|
default: A(() => [
|
|
1742
|
-
F("div",
|
|
1816
|
+
F("div", ia, [
|
|
1743
1817
|
ie(r.$slots, "default")
|
|
1744
1818
|
])
|
|
1745
1819
|
]),
|
|
@@ -1749,25 +1823,25 @@ const na = { class: "bsgoal-base-dialog" }, oa = { class: "base_dialog" }, ua =
|
|
|
1749
1823
|
]);
|
|
1750
1824
|
};
|
|
1751
1825
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
install(
|
|
1826
|
+
}), ha = e, pa = Ee, Ea = {
|
|
1827
|
+
install(l, c = {}) {
|
|
1754
1828
|
const { exclude: u = [] } = c, d = {
|
|
1755
1829
|
BsgoalBaseForm: Ie,
|
|
1756
|
-
BsgoalBaseTable:
|
|
1830
|
+
BsgoalBaseTable: xe,
|
|
1757
1831
|
BsgoalBaseLine: be,
|
|
1758
|
-
BsgoalBaseSearchTable:
|
|
1759
|
-
BsgoalBaseTree:
|
|
1760
|
-
BsgoalBaseDialog:
|
|
1832
|
+
BsgoalBaseSearchTable: Qt,
|
|
1833
|
+
BsgoalBaseTree: ua,
|
|
1834
|
+
BsgoalBaseDialog: ma
|
|
1761
1835
|
};
|
|
1762
|
-
for (const [
|
|
1763
|
-
u.includes(
|
|
1836
|
+
for (const [_, n] of Object.entries(d))
|
|
1837
|
+
u.includes(_) || l.component(_, n);
|
|
1764
1838
|
},
|
|
1765
1839
|
enumType: e,
|
|
1766
|
-
useFetch:
|
|
1840
|
+
useFetch: Ee
|
|
1767
1841
|
};
|
|
1768
1842
|
export {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1843
|
+
ha as EnumType,
|
|
1844
|
+
Ea as default,
|
|
1845
|
+
pa as useFetchApi
|
|
1772
1846
|
};
|
|
1773
1847
|
//# sourceMappingURL=index.mjs.map
|