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