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