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