@bsgoal/common 1.5.1 → 1.5.2
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 +577 -563
- 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-dialog/demo.vue +34 -7
- package/src/components/bsgoal-base-dialog/index.vue +43 -9
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var xe = Object.defineProperty;
|
|
2
2
|
var ye = Object.getOwnPropertySymbols;
|
|
3
3
|
var $e = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var Ae = (
|
|
5
|
-
for (var
|
|
6
|
-
$e.call(
|
|
4
|
+
var Ae = (t, c, l) => c in t ? xe(t, c, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[c] = l, Te = (t, c) => {
|
|
5
|
+
for (var l in c || (c = {}))
|
|
6
|
+
$e.call(c, l) && Ae(t, l, c[l]);
|
|
7
7
|
if (ye)
|
|
8
|
-
for (var
|
|
9
|
-
Ne.call(
|
|
10
|
-
return
|
|
8
|
+
for (var l of ye(c))
|
|
9
|
+
Ne.call(c, l) && Ae(t, l, c[l]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
import { ref as w, watchEffect as he, unref as s, computed as
|
|
12
|
+
import { ref as w, watchEffect as he, unref as s, computed as le, resolveComponent as v, openBlock as u, createElementBlock as A, createElementVNode as O, withDirectives as X, createBlock as y, withCtx as C, createVNode as D, Fragment as L, renderList as W, createCommentVNode as M, createTextVNode as Q, toDisplayString as G, nextTick as Ce, inject as Ve, watch as ue, resolveDirective as De, renderSlot as se, normalizeClass as ve, vShow as te, isProxy as we, toRaw as Be, provide as Oe, useSlots as ke, createSlots as Ie } from "vue";
|
|
13
13
|
import { ElMessage as Se } from "element-plus";
|
|
14
14
|
const e = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -34,53 +34,53 @@ const e = {
|
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
36
|
let ge = null;
|
|
37
|
-
const fe = (
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const { labelEl: x } =
|
|
42
|
-
x.style.width = `${
|
|
37
|
+
const fe = (t) => {
|
|
38
|
+
const c = [], l = [], i = (n = []) => {
|
|
39
|
+
const r = n.map((p) => p.width), m = Math.max(...r);
|
|
40
|
+
n.forEach((p) => {
|
|
41
|
+
const { labelEl: x } = p;
|
|
42
|
+
x.style.width = `${m}px`;
|
|
43
43
|
});
|
|
44
44
|
}, _ = () => {
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const { x = 0, width:
|
|
52
|
-
|
|
45
|
+
if (t) {
|
|
46
|
+
const n = t.querySelectorAll(".el-form-item__label");
|
|
47
|
+
if (n && n.length) {
|
|
48
|
+
let r = 0;
|
|
49
|
+
n.forEach((m, p) => {
|
|
50
|
+
m.style.width = "initial", m.style.whiteSpace = "nowrap";
|
|
51
|
+
const { x = 0, width: V = 0 } = m.getBoundingClientRect(), $ = { x, width: V, labelEl: m };
|
|
52
|
+
p === 0 && (r = x), x === r ? c.push($) : l.push($);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
ge && clearTimeout(ge), ge = setTimeout(() => {
|
|
58
|
-
_(), i(
|
|
58
|
+
_(), i(c), i(l);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, pe = {
|
|
61
61
|
/**
|
|
62
62
|
* 表单自动左对齐
|
|
63
63
|
*/
|
|
64
64
|
align: {
|
|
65
|
-
created(
|
|
65
|
+
created(t) {
|
|
66
66
|
window.addEventListener("resize", () => {
|
|
67
|
-
fe(
|
|
67
|
+
fe(t);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
|
-
mounted(
|
|
71
|
-
fe(
|
|
70
|
+
mounted(t) {
|
|
71
|
+
fe(t);
|
|
72
72
|
},
|
|
73
|
-
unmounted(
|
|
74
|
-
window.removeEventListener("resize", fe(
|
|
73
|
+
unmounted(t) {
|
|
74
|
+
window.removeEventListener("resize", fe(t));
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
78
78
|
* 表格自动高度
|
|
79
79
|
*/
|
|
80
|
-
height: (
|
|
81
|
-
if (
|
|
82
|
-
const { y: i = 0 } =
|
|
83
|
-
|
|
80
|
+
height: (t, { value: c = 65, arg: l = "" }) => {
|
|
81
|
+
if (t) {
|
|
82
|
+
const { y: i = 0 } = t.getBoundingClientRect();
|
|
83
|
+
t.style.height = `calc(100vh - ${i + c}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
@@ -127,28 +127,28 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
130
|
-
setup(
|
|
131
|
-
const i =
|
|
130
|
+
setup(t, { expose: c, emit: l }) {
|
|
131
|
+
const i = t, _ = w(null), n = pe.align, r = w({});
|
|
132
132
|
he(() => {
|
|
133
|
-
const { configOptions:
|
|
134
|
-
T.forEach((
|
|
135
|
-
const { value: B = "", prop: k = "", type: S = "" } =
|
|
136
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(S),
|
|
133
|
+
const { configOptions: h, values: E } = i, T = s(h), f = s(E);
|
|
134
|
+
T.forEach((b) => {
|
|
135
|
+
const { value: B = "", prop: k = "", type: S = "" } = b;
|
|
136
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(S), r.value[k] = f[k] || B;
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
-
const
|
|
140
|
-
const { configOptions:
|
|
141
|
-
return s(
|
|
142
|
-
let { rules:
|
|
139
|
+
const m = le(() => {
|
|
140
|
+
const { configOptions: h } = i;
|
|
141
|
+
return s(h).map((f) => {
|
|
142
|
+
let { rules: b = !1, label: B = "" } = f;
|
|
143
143
|
const k = { required: !0, message: `${B}不能为空`, trigger: "blur" };
|
|
144
|
-
return
|
|
144
|
+
return b && (typeof b == "boolean" ? b = [k] : Array.isArray(b) ? b = [k, ...b] : b = [k, b]), f.rules = b, f;
|
|
145
145
|
});
|
|
146
|
-
}),
|
|
146
|
+
}), p = (h = "", E = "", T = "") => {
|
|
147
147
|
if (!T)
|
|
148
|
-
switch (
|
|
148
|
+
switch (h) {
|
|
149
149
|
case e.INPUT:
|
|
150
150
|
case e.INPUT_TEXT_AREA:
|
|
151
|
-
return `请输入${
|
|
151
|
+
return `请输入${E}`;
|
|
152
152
|
case e.SELECT:
|
|
153
153
|
case e.DATE:
|
|
154
154
|
case e.WEEK:
|
|
@@ -156,7 +156,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
156
156
|
case e.YEAR:
|
|
157
157
|
case e.DATE_TIME:
|
|
158
158
|
case e.TIME:
|
|
159
|
-
return `请选择${
|
|
159
|
+
return `请选择${E}`;
|
|
160
160
|
case e.DATE_RANGE:
|
|
161
161
|
case e.DATE_TIME_RANGE:
|
|
162
162
|
return ["开始日期", "结束日期"];
|
|
@@ -166,9 +166,9 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
166
166
|
return ["开始月份", "结束月份"];
|
|
167
167
|
}
|
|
168
168
|
return T;
|
|
169
|
-
}, x = (
|
|
170
|
-
if (!
|
|
171
|
-
switch (
|
|
169
|
+
}, x = (h = "", E = "") => {
|
|
170
|
+
if (!E)
|
|
171
|
+
switch (h) {
|
|
172
172
|
case e.WEEK:
|
|
173
173
|
return "ww";
|
|
174
174
|
case e.DATE:
|
|
@@ -187,222 +187,222 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
187
187
|
case e.DATE_TIME_RANGE:
|
|
188
188
|
return "YYYY-MM-DD HH:mm:ss";
|
|
189
189
|
}
|
|
190
|
-
return
|
|
191
|
-
},
|
|
192
|
-
const
|
|
193
|
-
for (const
|
|
194
|
-
const { type:
|
|
195
|
-
if (
|
|
196
|
-
const { 0: S = "", 1: R = "" } =
|
|
197
|
-
|
|
190
|
+
return E;
|
|
191
|
+
}, V = () => {
|
|
192
|
+
const h = s(r), { configOptions: E } = i, T = s(E);
|
|
193
|
+
for (const f of T) {
|
|
194
|
+
const { type: b = "", range: B = [], prop: k = "" } = f;
|
|
195
|
+
if (b.endsWith("range") && B && B.length === 2) {
|
|
196
|
+
const { 0: S = "", 1: R = "" } = h[k], { 0: U = "", 1: I = "" } = B;
|
|
197
|
+
h[U] = S, h[I] = R;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
return
|
|
201
|
-
},
|
|
202
|
-
_.value.resetFields(),
|
|
203
|
-
},
|
|
200
|
+
return l("on-form", h), h;
|
|
201
|
+
}, $ = () => {
|
|
202
|
+
_.value.resetFields(), l("on-clear", r.value);
|
|
203
|
+
}, N = (h, E) => {
|
|
204
204
|
const T = {
|
|
205
|
-
type:
|
|
206
|
-
prop:
|
|
207
|
-
value:
|
|
205
|
+
type: h,
|
|
206
|
+
prop: E,
|
|
207
|
+
value: r.value[E] || ""
|
|
208
208
|
};
|
|
209
|
-
|
|
209
|
+
l("on-change", T);
|
|
210
210
|
};
|
|
211
|
-
return
|
|
212
|
-
triggerOperationClear:
|
|
213
|
-
triggerOperationForm:
|
|
214
|
-
validateForm: (
|
|
211
|
+
return c({
|
|
212
|
+
triggerOperationClear: $,
|
|
213
|
+
triggerOperationForm: V,
|
|
214
|
+
validateForm: (h = () => {
|
|
215
215
|
}) => {
|
|
216
|
-
_.value.validate((
|
|
217
|
-
if (
|
|
218
|
-
const
|
|
219
|
-
|
|
216
|
+
_.value.validate((E = !1, T = {}) => {
|
|
217
|
+
if (E) {
|
|
218
|
+
const f = V();
|
|
219
|
+
h(f);
|
|
220
220
|
} else {
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
[
|
|
224
|
-
0: { message:
|
|
221
|
+
h(!1), console.log("field", T);
|
|
222
|
+
const f = Object.keys(T)[0], {
|
|
223
|
+
[f]: {
|
|
224
|
+
0: { message: b = "" }
|
|
225
225
|
}
|
|
226
226
|
} = T;
|
|
227
|
-
Se.error(
|
|
227
|
+
Se.error(b);
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
}), (
|
|
232
|
-
const T =
|
|
231
|
+
}), (h, E) => {
|
|
232
|
+
const T = v("el-input"), f = v("el-input-number"), b = v("el-radio"), B = v("el-radio-group"), k = v("el-option"), S = v("el-select"), R = v("el-slider"), U = v("el-switch"), I = v("el-date-picker"), z = v("el-time-picker"), Z = v("el-checkbox"), q = v("el-checkbox-group"), K = v("el-form-item"), de = v("el-col"), _e = v("el-row"), me = v("el-form");
|
|
233
233
|
return u(), A("div", Re, [
|
|
234
234
|
O("div", Fe, [
|
|
235
|
-
X((u(),
|
|
235
|
+
X((u(), y(me, {
|
|
236
236
|
ref_key: "EL_FORM_REF",
|
|
237
237
|
ref: _,
|
|
238
238
|
"label-suffix": ":",
|
|
239
|
-
model:
|
|
239
|
+
model: r.value
|
|
240
240
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
default:
|
|
244
|
-
(u(!0), A(L, null, W(s(
|
|
241
|
+
default: C(() => [
|
|
242
|
+
D(_e, null, {
|
|
243
|
+
default: C(() => [
|
|
244
|
+
(u(!0), A(L, null, W(s(m), ({
|
|
245
245
|
label: P = "",
|
|
246
|
-
prop:
|
|
246
|
+
prop: g = "",
|
|
247
247
|
type: o = "text",
|
|
248
248
|
placeholder: d = "",
|
|
249
249
|
readonly: j = !1,
|
|
250
250
|
clearable: ce = !0,
|
|
251
251
|
rows: re = 2,
|
|
252
252
|
min: ie = 1,
|
|
253
|
-
max:
|
|
253
|
+
max: oe = 10,
|
|
254
254
|
range: J = [],
|
|
255
255
|
format: Y = "",
|
|
256
256
|
rules: ee = []
|
|
257
|
-
} = {}, ae) => (u(),
|
|
257
|
+
} = {}, ae) => (u(), y(de, {
|
|
258
258
|
key: ae,
|
|
259
259
|
xs: 24,
|
|
260
260
|
sm: 24,
|
|
261
|
-
md:
|
|
261
|
+
md: t.medium
|
|
262
262
|
}, {
|
|
263
|
-
default:
|
|
264
|
-
|
|
263
|
+
default: C(() => [
|
|
264
|
+
D(K, {
|
|
265
265
|
label: P,
|
|
266
|
-
prop:
|
|
266
|
+
prop: g,
|
|
267
267
|
rules: ee
|
|
268
268
|
}, {
|
|
269
|
-
default:
|
|
270
|
-
j ? (u(), A("div", Ue, G(
|
|
271
|
-
o === s(e).INPUT ? (u(),
|
|
269
|
+
default: C(() => [
|
|
270
|
+
j ? (u(), A("div", Ue, G(r.value[g]), 1)) : (u(), A(L, { key: 0 }, [
|
|
271
|
+
o === s(e).INPUT ? (u(), y(T, {
|
|
272
272
|
key: 0,
|
|
273
|
-
modelValue:
|
|
274
|
-
"onUpdate:modelValue": (
|
|
275
|
-
placeholder:
|
|
273
|
+
modelValue: r.value[g],
|
|
274
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
275
|
+
placeholder: p(o, P, d),
|
|
276
276
|
clearable: ce,
|
|
277
|
-
onChange: (
|
|
277
|
+
onChange: (a) => N(o, g)
|
|
278
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
279
|
-
o === s(e).INPUT_TEXT_AREA ? (u(),
|
|
279
|
+
o === s(e).INPUT_TEXT_AREA ? (u(), y(T, {
|
|
280
280
|
key: 1,
|
|
281
|
-
modelValue:
|
|
282
|
-
"onUpdate:modelValue": (
|
|
281
|
+
modelValue: r.value[g],
|
|
282
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
283
283
|
type: "textarea",
|
|
284
284
|
rows: re,
|
|
285
285
|
clearable: ce,
|
|
286
|
-
placeholder:
|
|
287
|
-
onChange: (
|
|
286
|
+
placeholder: p(o, P, d),
|
|
287
|
+
onChange: (a) => N(o, g)
|
|
288
288
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
289
|
-
o === s(e).INPUT_NUMBER ? (u(),
|
|
289
|
+
o === s(e).INPUT_NUMBER ? (u(), y(f, {
|
|
290
290
|
key: 2,
|
|
291
|
-
modelValue:
|
|
292
|
-
"onUpdate:modelValue":
|
|
291
|
+
modelValue: h.num,
|
|
292
|
+
"onUpdate:modelValue": E[0] || (E[0] = (a) => h.num = a),
|
|
293
293
|
min: ie,
|
|
294
|
-
max:
|
|
295
|
-
onChange:
|
|
294
|
+
max: oe,
|
|
295
|
+
onChange: N
|
|
296
296
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
297
|
-
o === s(e).RADIO ? (u(),
|
|
297
|
+
o === s(e).RADIO ? (u(), y(B, {
|
|
298
298
|
key: 3,
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue": (
|
|
301
|
-
onChange: (
|
|
299
|
+
modelValue: r.value[g],
|
|
300
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
301
|
+
onChange: (a) => N(o, g)
|
|
302
302
|
}, {
|
|
303
|
-
default:
|
|
304
|
-
(u(!0), A(L, null, W(J, (
|
|
303
|
+
default: C(() => [
|
|
304
|
+
(u(!0), A(L, null, W(J, (a, H) => (u(), y(b, {
|
|
305
305
|
key: H,
|
|
306
|
-
label:
|
|
306
|
+
label: a.value
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
Q(G(
|
|
308
|
+
default: C(() => [
|
|
309
|
+
Q(G(a.label), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 2
|
|
312
312
|
}, 1032, ["label"]))), 128))
|
|
313
313
|
]),
|
|
314
314
|
_: 2
|
|
315
315
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
316
|
-
o === s(e).SELECT ? (u(),
|
|
316
|
+
o === s(e).SELECT ? (u(), y(S, {
|
|
317
317
|
key: 4,
|
|
318
|
-
modelValue:
|
|
319
|
-
"onUpdate:modelValue": (
|
|
320
|
-
placeholder:
|
|
321
|
-
onChange: (
|
|
318
|
+
modelValue: r.value[g],
|
|
319
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
320
|
+
placeholder: p(o, P, d),
|
|
321
|
+
onChange: (a) => N(o, g)
|
|
322
322
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
(u(!0), A(L, null, W(J, (
|
|
323
|
+
default: C(() => [
|
|
324
|
+
(u(!0), A(L, null, W(J, (a, H) => (u(), y(k, {
|
|
325
325
|
key: H,
|
|
326
|
-
label:
|
|
327
|
-
value:
|
|
326
|
+
label: a.label,
|
|
327
|
+
value: a.value
|
|
328
328
|
}, null, 8, ["label", "value"]))), 128))
|
|
329
329
|
]),
|
|
330
330
|
_: 2
|
|
331
331
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
332
|
-
o === s(e).SLIDER ? (u(),
|
|
332
|
+
o === s(e).SLIDER ? (u(), y(R, {
|
|
333
333
|
key: 5,
|
|
334
|
-
modelValue:
|
|
335
|
-
"onUpdate:modelValue": (
|
|
334
|
+
modelValue: r.value[g],
|
|
335
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
336
336
|
min: ie,
|
|
337
|
-
max:
|
|
338
|
-
onChange: (
|
|
337
|
+
max: oe,
|
|
338
|
+
onChange: (a) => N(o, g)
|
|
339
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
340
|
-
o === s(e).SWITCH ? (u(),
|
|
340
|
+
o === s(e).SWITCH ? (u(), y(U, {
|
|
341
341
|
key: 6,
|
|
342
|
-
modelValue:
|
|
343
|
-
"onUpdate:modelValue": (
|
|
342
|
+
modelValue: r.value[g],
|
|
343
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
344
344
|
"active-value": J[0] || !0,
|
|
345
345
|
"inactive-value": J[1] || !1,
|
|
346
|
-
onChange: (
|
|
346
|
+
onChange: (a) => N(o, g)
|
|
347
347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
348
348
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
349
349
|
o
|
|
350
|
-
) ? (u(),
|
|
350
|
+
) ? (u(), y(I, {
|
|
351
351
|
key: 7,
|
|
352
|
-
modelValue:
|
|
353
|
-
"onUpdate:modelValue": (
|
|
352
|
+
modelValue: r.value[g],
|
|
353
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
354
354
|
format: x(o, Y),
|
|
355
355
|
"value-format": x(o, Y),
|
|
356
356
|
type: o,
|
|
357
|
-
placeholder:
|
|
358
|
-
onChange: (
|
|
357
|
+
placeholder: p(o, P, d),
|
|
358
|
+
onChange: (a) => N(o, g)
|
|
359
359
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
360
360
|
[
|
|
361
361
|
s(e).DATE_RANGE,
|
|
362
362
|
s(e).MONTH_RANGE,
|
|
363
363
|
s(e).DATE_TIME_RANGE
|
|
364
|
-
].includes(o) ? (u(),
|
|
364
|
+
].includes(o) ? (u(), y(I, {
|
|
365
365
|
key: 8,
|
|
366
|
-
modelValue:
|
|
367
|
-
"onUpdate:modelValue": (
|
|
366
|
+
modelValue: r.value[g],
|
|
367
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
368
368
|
type: o,
|
|
369
369
|
"value-format": x(o, Y),
|
|
370
|
-
"start-placeholder":
|
|
371
|
-
"end-placeholder":
|
|
372
|
-
onChange: (
|
|
370
|
+
"start-placeholder": p(o, P, d)[0],
|
|
371
|
+
"end-placeholder": p(o, P, d)[1],
|
|
372
|
+
onChange: (a) => N(o, g)
|
|
373
373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
374
|
-
[s(e).TIME].includes(o) ? (u(),
|
|
374
|
+
[s(e).TIME].includes(o) ? (u(), y(z, {
|
|
375
375
|
key: 9,
|
|
376
|
-
modelValue:
|
|
377
|
-
"onUpdate:modelValue": (
|
|
376
|
+
modelValue: r.value[g],
|
|
377
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
378
378
|
"arrow-control": "",
|
|
379
379
|
"value-format": x(o, Y),
|
|
380
|
-
placeholder:
|
|
381
|
-
onChange: (
|
|
380
|
+
placeholder: p(o, P, d),
|
|
381
|
+
onChange: (a) => N(o, g)
|
|
382
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
383
|
-
[s(e).TIME_RANGE].includes(o) ? (u(),
|
|
383
|
+
[s(e).TIME_RANGE].includes(o) ? (u(), y(z, {
|
|
384
384
|
key: 10,
|
|
385
|
-
modelValue:
|
|
386
|
-
"onUpdate:modelValue": (
|
|
385
|
+
modelValue: r.value[g],
|
|
386
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
387
387
|
"is-range": "",
|
|
388
388
|
"value-format": x(o, Y),
|
|
389
|
-
"start-placeholder":
|
|
390
|
-
"end-placeholder":
|
|
391
|
-
onChange: (
|
|
389
|
+
"start-placeholder": p(o, P, d)[0],
|
|
390
|
+
"end-placeholder": p(o, P, d)[1],
|
|
391
|
+
onChange: (a) => N(o, g)
|
|
392
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
393
|
-
[s(e).CHECKBOX].includes(o) ? (u(),
|
|
393
|
+
[s(e).CHECKBOX].includes(o) ? (u(), y(q, {
|
|
394
394
|
key: 11,
|
|
395
|
-
modelValue:
|
|
396
|
-
"onUpdate:modelValue": (
|
|
397
|
-
onChange: (
|
|
395
|
+
modelValue: r.value[g],
|
|
396
|
+
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
397
|
+
onChange: (a) => N(o, g)
|
|
398
398
|
}, {
|
|
399
|
-
default:
|
|
400
|
-
(u(!0), A(L, null, W(J, (
|
|
399
|
+
default: C(() => [
|
|
400
|
+
(u(!0), A(L, null, W(J, (a, H) => (u(), y(Z, {
|
|
401
401
|
key: H,
|
|
402
|
-
label:
|
|
402
|
+
label: a.value
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
Q(G(
|
|
404
|
+
default: C(() => [
|
|
405
|
+
Q(G(a.label), 1)
|
|
406
406
|
]),
|
|
407
407
|
_: 2
|
|
408
408
|
}, 1032, ["label"]))), 128))
|
|
@@ -423,7 +423,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
423
423
|
]),
|
|
424
424
|
_: 1
|
|
425
425
|
}, 8, ["model"])), [
|
|
426
|
-
[s(
|
|
426
|
+
[s(n)]
|
|
427
427
|
])
|
|
428
428
|
])
|
|
429
429
|
]);
|
|
@@ -439,9 +439,9 @@ const Pe = { class: "bsgoal-base-table-content" }, je = { class: "bas_tabl_conte
|
|
|
439
439
|
default: ""
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
443
|
-
return (
|
|
444
|
-
O("div", je, G(
|
|
442
|
+
setup(t) {
|
|
443
|
+
return (c, l) => (u(), A("div", Pe, [
|
|
444
|
+
O("div", je, G(t.data), 1)
|
|
445
445
|
]));
|
|
446
446
|
}
|
|
447
447
|
});
|
|
@@ -607,30 +607,30 @@ 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
|
-
}, i = (
|
|
614
|
-
|
|
610
|
+
setup(t, { emit: c }) {
|
|
611
|
+
const l = (n = 0) => {
|
|
612
|
+
c("on-size-change", n);
|
|
613
|
+
}, i = (n = 1) => {
|
|
614
|
+
c("on-current-change", n);
|
|
615
615
|
}, _ = w(1);
|
|
616
|
-
return (
|
|
617
|
-
const
|
|
616
|
+
return (n, r) => {
|
|
617
|
+
const m = v("el-pagination"), p = v("el-config-provider");
|
|
618
618
|
return u(), A("div", We, [
|
|
619
619
|
O("div", Xe, [
|
|
620
|
-
|
|
621
|
-
default:
|
|
622
|
-
|
|
620
|
+
D(p, { locale: s(He) }, {
|
|
621
|
+
default: C(() => [
|
|
622
|
+
D(m, {
|
|
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": r[0] || (r[0] = (x) => _.value = x),
|
|
627
|
+
"page-sizes": t.pageSizes,
|
|
628
|
+
"page-size": t.pageSize,
|
|
629
|
+
total: t.total,
|
|
630
|
+
onSizeChange: l,
|
|
631
631
|
onCurrentChange: i
|
|
632
632
|
}, {
|
|
633
|
-
next:
|
|
633
|
+
next: C(() => [
|
|
634
634
|
Qe
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
@@ -643,11 +643,11 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
const Je = (
|
|
647
|
-
const
|
|
648
|
-
for (const [i, _] of
|
|
649
|
-
|
|
650
|
-
return
|
|
646
|
+
const Je = (t, c) => {
|
|
647
|
+
const l = t.__vccOpts || t;
|
|
648
|
+
for (const [i, _] of c)
|
|
649
|
+
l[i] = _;
|
|
650
|
+
return l;
|
|
651
651
|
}, qe = {
|
|
652
652
|
name: "BsgoalBaseTableEmpty"
|
|
653
653
|
}, et = { class: "bsgoal-base-table-empty" }, tt = /* @__PURE__ */ O("div", { class: "base_table_empty" }, [
|
|
@@ -661,33 +661,33 @@ const Je = (a, r) => {
|
|
|
661
661
|
], -1), at = [
|
|
662
662
|
tt
|
|
663
663
|
];
|
|
664
|
-
function lt(
|
|
664
|
+
function lt(t, c, l, i, _, n) {
|
|
665
665
|
return u(), A("div", et, at);
|
|
666
666
|
}
|
|
667
|
-
const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (
|
|
668
|
-
const i = s(
|
|
667
|
+
const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (t = null, { expression: c = 75, arg: l = {} } = {}) => {
|
|
668
|
+
const i = s(t);
|
|
669
669
|
if (i) {
|
|
670
670
|
const _ = i.querySelector(".el-table");
|
|
671
|
-
_ &&
|
|
672
|
-
const { y:
|
|
673
|
-
_.style.height = `calc(100vh - ${
|
|
671
|
+
_ && Ce(() => {
|
|
672
|
+
const { y: n = 0 } = _.getBoundingClientRect();
|
|
673
|
+
_.style.height = `calc(100vh - ${n + c}px)`;
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
}, Ee = (
|
|
676
|
+
}, Ee = (t = Promise.resolve(), c = null, l = w(!1), i = w(null)) => {
|
|
677
677
|
const _ = w("");
|
|
678
|
-
return
|
|
679
|
-
const { data:
|
|
680
|
-
i.value =
|
|
681
|
-
}).catch((
|
|
682
|
-
if (typeof
|
|
683
|
-
const { message:
|
|
684
|
-
_.value =
|
|
678
|
+
return l.value = !0, t.then((n = {}) => {
|
|
679
|
+
const { data: r = {}, message: m = "" } = n;
|
|
680
|
+
i.value = r, _.value = m, c && c(!0, r), l.value = !1;
|
|
681
|
+
}).catch((n = {}) => {
|
|
682
|
+
if (typeof n == "object") {
|
|
683
|
+
const { message: r = "" } = n;
|
|
684
|
+
_.value = r;
|
|
685
685
|
} else
|
|
686
|
-
_.value =
|
|
687
|
-
|
|
686
|
+
_.value = n;
|
|
687
|
+
c && c(!1, n), l.value = !1;
|
|
688
688
|
}).finally(() => {
|
|
689
|
-
|
|
690
|
-
}), { data: i, message: _, loading:
|
|
689
|
+
l.value = !1;
|
|
690
|
+
}), { data: i, message: _, loading: l };
|
|
691
691
|
};
|
|
692
692
|
const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
693
693
|
key: 0,
|
|
@@ -781,56 +781,56 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
781
781
|
default: 75
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
|
-
setup(
|
|
785
|
-
const
|
|
786
|
-
const { configOptions:
|
|
787
|
-
return
|
|
784
|
+
setup(t, { expose: c }) {
|
|
785
|
+
const l = t, i = le(() => {
|
|
786
|
+
const { configOptions: f = [], operation: b = !1, operationWidth: B = 0 } = l, k = s(f), S = [];
|
|
787
|
+
return b && S.push({
|
|
788
788
|
label: "操作",
|
|
789
789
|
fixed: "right",
|
|
790
790
|
prop: "operation",
|
|
791
791
|
width: B
|
|
792
792
|
}), [...k, ...S];
|
|
793
|
-
}), _ = w(null),
|
|
793
|
+
}), _ = w(null), n = Ve("transferFoldStatus");
|
|
794
794
|
he(() => {
|
|
795
|
-
const
|
|
796
|
-
ot(_, { arg:
|
|
795
|
+
const f = n ? n.value : !1, b = s(l.expression);
|
|
796
|
+
ot(_, { arg: f, expression: b });
|
|
797
797
|
});
|
|
798
|
-
const
|
|
799
|
-
const { fetch:
|
|
800
|
-
U[I.currentPage] = S, U[I.pageSize] = R, Ee(
|
|
798
|
+
const r = w(1), m = w(10), p = w(0), x = w({}), V = w(l.loading), $ = w(l.data), N = w({}), F = () => {
|
|
799
|
+
const { fetch: f, call: b, mapProps: B } = l, k = x.value, S = r.value, R = m.value, U = Te({}, k), I = s(B);
|
|
800
|
+
U[I.currentPage] = S, U[I.pageSize] = R, Ee(f(U), b, V, N);
|
|
801
801
|
};
|
|
802
|
-
ue(
|
|
803
|
-
const { mapProps:
|
|
804
|
-
|
|
802
|
+
ue(N, (f) => {
|
|
803
|
+
const { mapProps: b } = l, B = s(b);
|
|
804
|
+
$.value = f[B.rows], p.value = f[B.total];
|
|
805
805
|
});
|
|
806
|
-
const
|
|
807
|
-
x.value =
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
}, T = (
|
|
811
|
-
|
|
806
|
+
const h = (f = {}) => {
|
|
807
|
+
x.value = f, r.value = 1, F();
|
|
808
|
+
}, E = (f = 1) => {
|
|
809
|
+
r.value = f;
|
|
810
|
+
}, T = (f = 10) => {
|
|
811
|
+
m.value = f;
|
|
812
812
|
};
|
|
813
|
-
return ue([
|
|
813
|
+
return ue([r, m], () => {
|
|
814
814
|
F();
|
|
815
|
-
}),
|
|
816
|
-
refreshList:
|
|
817
|
-
}), (
|
|
818
|
-
const B =
|
|
815
|
+
}), c({
|
|
816
|
+
refreshList: h
|
|
817
|
+
}), (f, b) => {
|
|
818
|
+
const B = v("el-table-column"), k = v("el-table"), S = De("loading");
|
|
819
819
|
return u(), A("div", ut, [
|
|
820
820
|
O("div", st, [
|
|
821
|
-
|
|
822
|
-
se(
|
|
821
|
+
f.$slots.menu ? (u(), A("div", ct, [
|
|
822
|
+
se(f.$slots, "menu")
|
|
823
823
|
])) : M("", !0),
|
|
824
824
|
O("div", {
|
|
825
825
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
826
826
|
ref: _
|
|
827
827
|
}, [
|
|
828
|
-
X((u(),
|
|
828
|
+
X((u(), y(k, {
|
|
829
829
|
stripe: "",
|
|
830
830
|
border: "",
|
|
831
831
|
"highlight-current-row": "",
|
|
832
832
|
style: { width: "100%" },
|
|
833
|
-
data:
|
|
833
|
+
data: $.value,
|
|
834
834
|
"header-cell-style": {
|
|
835
835
|
fontWeight: "bold",
|
|
836
836
|
backgroundColor: "#EBEEF5",
|
|
@@ -838,17 +838,17 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
838
838
|
fontSize: "14px"
|
|
839
839
|
}
|
|
840
840
|
}, {
|
|
841
|
-
empty:
|
|
842
|
-
|
|
841
|
+
empty: C(() => [
|
|
842
|
+
D(nt)
|
|
843
843
|
]),
|
|
844
|
-
default:
|
|
845
|
-
|
|
844
|
+
default: C(() => [
|
|
845
|
+
t.selection ? (u(), y(B, {
|
|
846
846
|
key: 0,
|
|
847
847
|
fixed: "left",
|
|
848
848
|
type: "selection",
|
|
849
849
|
width: "40"
|
|
850
850
|
})) : M("", !0),
|
|
851
|
-
(u(!0), A(L, null, W(s(i), ({ prop: R = "", label: U = "", align: I = "center", width: z = "", fixed: Z = !1 } = {}, q) => (u(),
|
|
851
|
+
(u(!0), A(L, null, W(s(i), ({ prop: R = "", label: U = "", align: I = "center", width: z = "", fixed: Z = !1 } = {}, q) => (u(), y(B, {
|
|
852
852
|
key: q,
|
|
853
853
|
label: U,
|
|
854
854
|
align: I,
|
|
@@ -856,9 +856,9 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
856
856
|
fixed: Z,
|
|
857
857
|
"min-width": `${U.length * 14 + 24}px`
|
|
858
858
|
}, {
|
|
859
|
-
default:
|
|
860
|
-
se(
|
|
861
|
-
|
|
859
|
+
default: C(({ row: K }) => [
|
|
860
|
+
se(f.$slots, R, { row: K }, () => [
|
|
861
|
+
D(Ge, {
|
|
862
862
|
data: K[R]
|
|
863
863
|
}, null, 8, ["data"])
|
|
864
864
|
])
|
|
@@ -868,12 +868,12 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
868
868
|
]),
|
|
869
869
|
_: 3
|
|
870
870
|
}, 8, ["data", "header-cell-style"])), [
|
|
871
|
-
[S,
|
|
871
|
+
[S, V.value]
|
|
872
872
|
])
|
|
873
873
|
], 512),
|
|
874
|
-
|
|
875
|
-
total:
|
|
876
|
-
onOnCurrentChange:
|
|
874
|
+
D(Ke, {
|
|
875
|
+
total: p.value,
|
|
876
|
+
onOnCurrentChange: E,
|
|
877
877
|
onOnSizeChange: T
|
|
878
878
|
}, null, 8, ["total"])
|
|
879
879
|
])
|
|
@@ -893,22 +893,22 @@ const it = {
|
|
|
893
893
|
default: !1
|
|
894
894
|
}
|
|
895
895
|
},
|
|
896
|
-
setup(
|
|
897
|
-
return (
|
|
898
|
-
class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical":
|
|
896
|
+
setup(t) {
|
|
897
|
+
return (c, l) => (u(), A("div", {
|
|
898
|
+
class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": t.vertical }])
|
|
899
899
|
}, [
|
|
900
900
|
O("div", {
|
|
901
|
-
class: ve(["base_line", { base_line__vertical:
|
|
901
|
+
class: ve(["base_line", { base_line__vertical: t.vertical }])
|
|
902
902
|
}, null, 2)
|
|
903
903
|
], 2));
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
907
|
-
var
|
|
908
|
-
let
|
|
909
|
-
for (let [i, _] of
|
|
910
|
-
|
|
911
|
-
return
|
|
907
|
+
var ne = (t, c) => {
|
|
908
|
+
let l = t.__vccOpts || t;
|
|
909
|
+
for (let [i, _] of c)
|
|
910
|
+
l[i] = _;
|
|
911
|
+
return l;
|
|
912
912
|
}, dt = {
|
|
913
913
|
name: "ArrowDown"
|
|
914
914
|
}, _t = {
|
|
@@ -926,10 +926,10 @@ var le = (a, r) => {
|
|
|
926
926
|
), gt = [
|
|
927
927
|
mt
|
|
928
928
|
];
|
|
929
|
-
function ft(
|
|
929
|
+
function ft(t, c, l, i, _, n) {
|
|
930
930
|
return u(), A("svg", _t, gt);
|
|
931
931
|
}
|
|
932
|
-
var vt = /* @__PURE__ */
|
|
932
|
+
var vt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
|
|
933
933
|
name: "ArrowLeft"
|
|
934
934
|
}, pt = {
|
|
935
935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -946,15 +946,15 @@ var vt = /* @__PURE__ */ le(dt, [["render", ft], ["__file", "arrow-down.vue"]]),
|
|
|
946
946
|
), bt = [
|
|
947
947
|
Et
|
|
948
948
|
];
|
|
949
|
-
function yt(
|
|
949
|
+
function yt(t, c, l, i, _, n) {
|
|
950
950
|
return u(), A("svg", pt, bt);
|
|
951
951
|
}
|
|
952
|
-
var At = /* @__PURE__ */
|
|
952
|
+
var At = /* @__PURE__ */ ne(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
|
|
953
953
|
name: "ArrowRight"
|
|
954
|
-
},
|
|
954
|
+
}, Ct = {
|
|
955
955
|
xmlns: "http://www.w3.org/2000/svg",
|
|
956
956
|
viewBox: "0 0 1024 1024"
|
|
957
|
-
},
|
|
957
|
+
}, Vt = /* @__PURE__ */ O(
|
|
958
958
|
"path",
|
|
959
959
|
{
|
|
960
960
|
fill: "currentColor",
|
|
@@ -964,12 +964,12 @@ var At = /* @__PURE__ */ le(ht, [["render", yt], ["__file", "arrow-left.vue"]]),
|
|
|
964
964
|
-1
|
|
965
965
|
/* HOISTED */
|
|
966
966
|
), Mt = [
|
|
967
|
-
|
|
967
|
+
Vt
|
|
968
968
|
];
|
|
969
|
-
function xt(
|
|
970
|
-
return u(), A("svg",
|
|
969
|
+
function xt(t, c, l, i, _, n) {
|
|
970
|
+
return u(), A("svg", Ct, Mt);
|
|
971
971
|
}
|
|
972
|
-
var $t = /* @__PURE__ */
|
|
972
|
+
var $t = /* @__PURE__ */ ne(Tt, [["render", xt], ["__file", "arrow-right.vue"]]), Nt = {
|
|
973
973
|
name: "ArrowUp"
|
|
974
974
|
}, Dt = {
|
|
975
975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -986,10 +986,10 @@ var $t = /* @__PURE__ */ le(Tt, [["render", xt], ["__file", "arrow-right.vue"]])
|
|
|
986
986
|
), Bt = [
|
|
987
987
|
wt
|
|
988
988
|
];
|
|
989
|
-
function Ot(
|
|
989
|
+
function Ot(t, c, l, i, _, n) {
|
|
990
990
|
return u(), A("svg", Dt, Bt);
|
|
991
991
|
}
|
|
992
|
-
var kt = /* @__PURE__ */
|
|
992
|
+
var kt = /* @__PURE__ */ ne(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), It = {
|
|
993
993
|
name: "Delete"
|
|
994
994
|
}, St = {
|
|
995
995
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1006,10 +1006,10 @@ var kt = /* @__PURE__ */ le(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), I
|
|
|
1006
1006
|
), Ft = [
|
|
1007
1007
|
Rt
|
|
1008
1008
|
];
|
|
1009
|
-
function Ut(
|
|
1009
|
+
function Ut(t, c, l, i, _, n) {
|
|
1010
1010
|
return u(), A("svg", St, Ft);
|
|
1011
1011
|
}
|
|
1012
|
-
var Lt = /* @__PURE__ */
|
|
1012
|
+
var Lt = /* @__PURE__ */ ne(It, [["render", Ut], ["__file", "delete.vue"]]), zt = {
|
|
1013
1013
|
name: "Search"
|
|
1014
1014
|
}, Pt = {
|
|
1015
1015
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1026,10 +1026,10 @@ var Lt = /* @__PURE__ */ le(It, [["render", Ut], ["__file", "delete.vue"]]), zt
|
|
|
1026
1026
|
), Yt = [
|
|
1027
1027
|
jt
|
|
1028
1028
|
];
|
|
1029
|
-
function Gt(
|
|
1029
|
+
function Gt(t, c, l, i, _, n) {
|
|
1030
1030
|
return u(), A("svg", Pt, Yt);
|
|
1031
1031
|
}
|
|
1032
|
-
var Ht = /* @__PURE__ */
|
|
1032
|
+
var Ht = /* @__PURE__ */ ne(zt, [["render", Gt], ["__file", "search.vue"]]);
|
|
1033
1033
|
const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
|
|
1034
1034
|
name: "BsgoalBaseSearchOperation"
|
|
1035
1035
|
}, Qt = /* @__PURE__ */ Object.assign(Xt, {
|
|
@@ -1043,46 +1043,46 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
},
|
|
1045
1045
|
emits: ["on-fold"],
|
|
1046
|
-
setup(
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1046
|
+
setup(t, { emit: c }) {
|
|
1047
|
+
const l = w(!1), i = () => {
|
|
1048
|
+
l.value = !s(l), c("on-fold", l.value);
|
|
1049
1049
|
};
|
|
1050
|
-
return (_,
|
|
1051
|
-
const
|
|
1050
|
+
return (_, n) => {
|
|
1051
|
+
const r = v("el-button"), m = v("el-icon");
|
|
1052
1052
|
return u(), A("div", Wt, [
|
|
1053
|
-
|
|
1053
|
+
D(r, {
|
|
1054
1054
|
type: "primary",
|
|
1055
1055
|
icon: s(Ht),
|
|
1056
|
-
onClick:
|
|
1056
|
+
onClick: n[0] || (n[0] = (p) => _.$emit("on-search"))
|
|
1057
1057
|
}, {
|
|
1058
|
-
default:
|
|
1058
|
+
default: C(() => [
|
|
1059
1059
|
Q("搜索")
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["icon"]),
|
|
1063
|
-
|
|
1063
|
+
D(r, {
|
|
1064
1064
|
icon: s(Lt),
|
|
1065
|
-
onClick:
|
|
1065
|
+
onClick: n[1] || (n[1] = (p) => _.$emit("on-clear"))
|
|
1066
1066
|
}, {
|
|
1067
|
-
default:
|
|
1067
|
+
default: C(() => [
|
|
1068
1068
|
Q("清空")
|
|
1069
1069
|
]),
|
|
1070
1070
|
_: 1
|
|
1071
1071
|
}, 8, ["icon"]),
|
|
1072
|
-
|
|
1072
|
+
t.fold ? (u(), A("div", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
class: "operation_fold",
|
|
1075
1075
|
style: { color: "var(--el-color-primary)" },
|
|
1076
1076
|
onClick: i
|
|
1077
1077
|
}, [
|
|
1078
|
-
Q(G(
|
|
1079
|
-
|
|
1080
|
-
default:
|
|
1081
|
-
X(
|
|
1082
|
-
[te,
|
|
1078
|
+
Q(G(l.value ? "收起" : "展开"), 1),
|
|
1079
|
+
D(m, { color: "#409EFC" }, {
|
|
1080
|
+
default: C(() => [
|
|
1081
|
+
X(D(s(kt), null, null, 512), [
|
|
1082
|
+
[te, l.value]
|
|
1083
1083
|
]),
|
|
1084
|
-
X(
|
|
1085
|
-
[te, !
|
|
1084
|
+
X(D(s(vt), null, null, 512), [
|
|
1085
|
+
[te, !l.value]
|
|
1086
1086
|
])
|
|
1087
1087
|
]),
|
|
1088
1088
|
_: 1
|
|
@@ -1126,24 +1126,24 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
1128
|
emits: ["update:model-value", "on-change"],
|
|
1129
|
-
setup(
|
|
1130
|
-
const
|
|
1129
|
+
setup(t, { emit: c }) {
|
|
1130
|
+
const l = w({
|
|
1131
1131
|
checkStrictly: !0,
|
|
1132
1132
|
multiple: !1
|
|
1133
1133
|
}), i = (_) => {
|
|
1134
|
-
|
|
1134
|
+
c("update:model-value", _), c("on-change", _);
|
|
1135
1135
|
};
|
|
1136
|
-
return (_,
|
|
1137
|
-
const
|
|
1136
|
+
return (_, n) => {
|
|
1137
|
+
const r = v("el-cascader");
|
|
1138
1138
|
return u(), A("div", Zt, [
|
|
1139
|
-
|
|
1139
|
+
D(r, {
|
|
1140
1140
|
clearable: "",
|
|
1141
1141
|
class: "base_cascader",
|
|
1142
1142
|
"show-all-levels": !1,
|
|
1143
|
-
"model-value":
|
|
1144
|
-
options:
|
|
1145
|
-
props:
|
|
1146
|
-
placeholder:
|
|
1143
|
+
"model-value": t.modelValue,
|
|
1144
|
+
options: t.dataOptions,
|
|
1145
|
+
props: l.value,
|
|
1146
|
+
placeholder: t.placeholder,
|
|
1147
1147
|
onChange: i
|
|
1148
1148
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1149
1149
|
]);
|
|
@@ -1193,23 +1193,23 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1193
1193
|
}
|
|
1194
1194
|
},
|
|
1195
1195
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1196
|
-
setup(
|
|
1197
|
-
const
|
|
1196
|
+
setup(t, { emit: c }) {
|
|
1197
|
+
const l = t, i = w(null), _ = pe.align, n = w({});
|
|
1198
1198
|
he(() => {
|
|
1199
|
-
const { configOptions:
|
|
1200
|
-
s(
|
|
1201
|
-
const { value:
|
|
1202
|
-
[e.INPUT, e.INPUT_TEXT_AREA].includes(k),
|
|
1199
|
+
const { configOptions: E } = l;
|
|
1200
|
+
s(E).forEach((f) => {
|
|
1201
|
+
const { value: b, prop: B = "", type: k = "" } = f;
|
|
1202
|
+
[e.INPUT, e.INPUT_TEXT_AREA].includes(k), n.value[B] = [0, !1].includes(b) ? b : "";
|
|
1203
1203
|
});
|
|
1204
1204
|
});
|
|
1205
|
-
const
|
|
1206
|
-
const { configOptions:
|
|
1205
|
+
const r = le(() => {
|
|
1206
|
+
const { configOptions: E } = l, T = s(E), f = {
|
|
1207
1207
|
type: e.OPERATION
|
|
1208
1208
|
};
|
|
1209
|
-
return [...T,
|
|
1210
|
-
}),
|
|
1211
|
-
if (!
|
|
1212
|
-
switch (
|
|
1209
|
+
return [...T, f];
|
|
1210
|
+
}), m = (E = "", T = "", f = "") => {
|
|
1211
|
+
if (!f)
|
|
1212
|
+
switch (E) {
|
|
1213
1213
|
case e.INPUT:
|
|
1214
1214
|
case e.INPUT_TEXT_AREA:
|
|
1215
1215
|
return `请输入${T}`;
|
|
@@ -1230,10 +1230,10 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1230
1230
|
case e.MONTH_RANGE:
|
|
1231
1231
|
return ["开始月份", "结束月份"];
|
|
1232
1232
|
}
|
|
1233
|
-
return
|
|
1234
|
-
},
|
|
1233
|
+
return f;
|
|
1234
|
+
}, p = (E = "", T = "") => {
|
|
1235
1235
|
if (!T)
|
|
1236
|
-
switch (
|
|
1236
|
+
switch (E) {
|
|
1237
1237
|
case e.WEEK:
|
|
1238
1238
|
return "ww";
|
|
1239
1239
|
case e.DATE:
|
|
@@ -1254,231 +1254,231 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1254
1254
|
}
|
|
1255
1255
|
return T;
|
|
1256
1256
|
}, x = () => {
|
|
1257
|
-
const { configOptions:
|
|
1258
|
-
for (const B of
|
|
1257
|
+
const { configOptions: E } = l, T = s(n), f = s(E), b = {};
|
|
1258
|
+
for (const B of f) {
|
|
1259
1259
|
const { type: k = "", range: S = [], prop: R = "", single: U = !1 } = B, I = T[R];
|
|
1260
1260
|
if ([e.CASCADER].includes(k) && Array.isArray(I) && U) {
|
|
1261
1261
|
const z = I.length;
|
|
1262
|
-
z ?
|
|
1262
|
+
z ? b[R] = I[z - 1] : b[R] = I;
|
|
1263
1263
|
} else
|
|
1264
|
-
we(I) ?
|
|
1264
|
+
we(I) ? b[R] = Be(I) : b[R] = I;
|
|
1265
1265
|
if (k.endsWith("range") && S && S.length === 2) {
|
|
1266
1266
|
const { 0: z = "", 1: Z = "" } = I, { 0: q = "", 1: K = "" } = S;
|
|
1267
|
-
|
|
1267
|
+
b[q] = z, b[K] = Z;
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
|
|
1270
|
+
c("on-search", b), c("update:modelValue", b);
|
|
1271
1271
|
};
|
|
1272
|
-
|
|
1272
|
+
Ce(() => {
|
|
1273
1273
|
x();
|
|
1274
1274
|
});
|
|
1275
|
-
const
|
|
1276
|
-
i.value.resetFields(),
|
|
1277
|
-
},
|
|
1278
|
-
|
|
1279
|
-
},
|
|
1275
|
+
const V = () => {
|
|
1276
|
+
i.value.resetFields(), c("on-clear", n.value);
|
|
1277
|
+
}, $ = Ve("transferFoldStatus"), N = w(!1), F = (E = !1) => {
|
|
1278
|
+
N.value = E, $ && ($.value = E), c("on-fold", N);
|
|
1279
|
+
}, h = (E, T) => {
|
|
1280
1280
|
x();
|
|
1281
|
-
const
|
|
1282
|
-
type:
|
|
1281
|
+
const f = {
|
|
1282
|
+
type: E,
|
|
1283
1283
|
prop: T,
|
|
1284
|
-
value:
|
|
1284
|
+
value: n.value[T] || ""
|
|
1285
1285
|
};
|
|
1286
|
-
|
|
1286
|
+
c("on-change", f);
|
|
1287
1287
|
};
|
|
1288
|
-
return (
|
|
1289
|
-
const
|
|
1288
|
+
return (E, T) => {
|
|
1289
|
+
const f = v("el-input"), b = v("el-input-number"), B = v("el-radio"), k = v("el-radio-group"), S = v("el-option"), R = v("el-select"), U = v("el-slider"), I = v("el-switch"), z = v("el-date-picker"), Z = v("el-time-picker"), q = v("el-checkbox"), K = v("el-checkbox-group"), de = v("el-form-item"), _e = v("el-col"), me = v("el-row"), P = v("el-form");
|
|
1290
1290
|
return u(), A("div", qt, [
|
|
1291
1291
|
O("div", ea, [
|
|
1292
|
-
X((u(),
|
|
1292
|
+
X((u(), y(P, {
|
|
1293
1293
|
ref_key: "EL_FORM_REF",
|
|
1294
1294
|
ref: i,
|
|
1295
1295
|
"label-suffix": ":",
|
|
1296
1296
|
"show-message": !1,
|
|
1297
|
-
model:
|
|
1297
|
+
model: n.value
|
|
1298
1298
|
}, {
|
|
1299
|
-
default:
|
|
1300
|
-
|
|
1301
|
-
default:
|
|
1302
|
-
(u(!0), A(L, null, W(s(
|
|
1303
|
-
label:
|
|
1299
|
+
default: C(() => [
|
|
1300
|
+
D(me, null, {
|
|
1301
|
+
default: C(() => [
|
|
1302
|
+
(u(!0), A(L, null, W(s(r), ({
|
|
1303
|
+
label: g = "",
|
|
1304
1304
|
prop: o = "",
|
|
1305
1305
|
type: d = "text",
|
|
1306
1306
|
placeholder: j = "",
|
|
1307
1307
|
readonly: ce = !1,
|
|
1308
1308
|
clearable: re = !0,
|
|
1309
1309
|
rows: ie = 2,
|
|
1310
|
-
min:
|
|
1310
|
+
min: oe = 1,
|
|
1311
1311
|
max: J = 10,
|
|
1312
1312
|
range: Y = [],
|
|
1313
1313
|
format: ee = ""
|
|
1314
|
-
} = {}, ae) => X((u(),
|
|
1314
|
+
} = {}, ae) => X((u(), y(_e, {
|
|
1315
1315
|
key: ae,
|
|
1316
1316
|
xs: 24,
|
|
1317
1317
|
sm: 12,
|
|
1318
|
-
md:
|
|
1318
|
+
md: t.medium
|
|
1319
1319
|
}, {
|
|
1320
|
-
default:
|
|
1321
|
-
|
|
1322
|
-
label:
|
|
1320
|
+
default: C(() => [
|
|
1321
|
+
D(de, {
|
|
1322
|
+
label: g,
|
|
1323
1323
|
prop: o
|
|
1324
1324
|
}, {
|
|
1325
|
-
default:
|
|
1326
|
-
ce ? (u(), A("div", ta, G(
|
|
1327
|
-
d === s(e).INPUT ? (u(),
|
|
1325
|
+
default: C(() => [
|
|
1326
|
+
ce ? (u(), A("div", ta, G(n.value[o]), 1)) : (u(), A(L, { key: 0 }, [
|
|
1327
|
+
d === s(e).INPUT ? (u(), y(f, {
|
|
1328
1328
|
key: 0,
|
|
1329
|
-
modelValue:
|
|
1330
|
-
"onUpdate:modelValue": (
|
|
1331
|
-
placeholder:
|
|
1329
|
+
modelValue: n.value[o],
|
|
1330
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1331
|
+
placeholder: m(d, g, j),
|
|
1332
1332
|
clearable: re,
|
|
1333
|
-
onChange: (
|
|
1333
|
+
onChange: (a) => h(d, o)
|
|
1334
1334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
1335
|
-
d === s(e).INPUT_TEXT_AREA ? (u(),
|
|
1335
|
+
d === s(e).INPUT_TEXT_AREA ? (u(), y(f, {
|
|
1336
1336
|
key: 1,
|
|
1337
|
-
modelValue:
|
|
1338
|
-
"onUpdate:modelValue": (
|
|
1337
|
+
modelValue: n.value[o],
|
|
1338
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1339
1339
|
type: "textarea",
|
|
1340
1340
|
rows: ie,
|
|
1341
1341
|
clearable: re,
|
|
1342
|
-
placeholder:
|
|
1343
|
-
onChange: (
|
|
1342
|
+
placeholder: m(d, g, j),
|
|
1343
|
+
onChange: (a) => h(d, o)
|
|
1344
1344
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
1345
|
-
d === s(e).INPUT_NUMBER ? (u(), b
|
|
1345
|
+
d === s(e).INPUT_NUMBER ? (u(), y(b, {
|
|
1346
1346
|
key: 2,
|
|
1347
|
-
modelValue:
|
|
1348
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1349
|
-
min:
|
|
1347
|
+
modelValue: E.num,
|
|
1348
|
+
"onUpdate:modelValue": T[0] || (T[0] = (a) => E.num = a),
|
|
1349
|
+
min: oe,
|
|
1350
1350
|
max: J,
|
|
1351
|
-
onChange:
|
|
1351
|
+
onChange: h
|
|
1352
1352
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
1353
|
-
d === s(e).RADIO ? (u(),
|
|
1353
|
+
d === s(e).RADIO ? (u(), y(k, {
|
|
1354
1354
|
key: 3,
|
|
1355
|
-
modelValue:
|
|
1356
|
-
"onUpdate:modelValue": (
|
|
1357
|
-
onChange: (
|
|
1355
|
+
modelValue: n.value[o],
|
|
1356
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1357
|
+
onChange: (a) => h(d, o)
|
|
1358
1358
|
}, {
|
|
1359
|
-
default:
|
|
1360
|
-
(u(!0), A(L, null, W(Y, (
|
|
1359
|
+
default: C(() => [
|
|
1360
|
+
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(B, {
|
|
1361
1361
|
key: H,
|
|
1362
|
-
label:
|
|
1362
|
+
label: a.value
|
|
1363
1363
|
}, {
|
|
1364
|
-
default:
|
|
1365
|
-
Q(G(
|
|
1364
|
+
default: C(() => [
|
|
1365
|
+
Q(G(a.label), 1)
|
|
1366
1366
|
]),
|
|
1367
1367
|
_: 2
|
|
1368
1368
|
}, 1032, ["label"]))), 128))
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 2
|
|
1371
1371
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1372
|
-
d === s(e).SELECT ? (u(),
|
|
1372
|
+
d === s(e).SELECT ? (u(), y(R, {
|
|
1373
1373
|
key: 4,
|
|
1374
|
-
modelValue:
|
|
1375
|
-
"onUpdate:modelValue": (
|
|
1376
|
-
placeholder:
|
|
1377
|
-
onChange: (
|
|
1374
|
+
modelValue: n.value[o],
|
|
1375
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1376
|
+
placeholder: m(d, g, j),
|
|
1377
|
+
onChange: (a) => h(d, o)
|
|
1378
1378
|
}, {
|
|
1379
|
-
default:
|
|
1380
|
-
(u(!0), A(L, null, W(Y, (
|
|
1379
|
+
default: C(() => [
|
|
1380
|
+
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(S, {
|
|
1381
1381
|
key: H,
|
|
1382
|
-
label:
|
|
1383
|
-
value:
|
|
1382
|
+
label: a.label,
|
|
1383
|
+
value: a.value
|
|
1384
1384
|
}, null, 8, ["label", "value"]))), 128))
|
|
1385
1385
|
]),
|
|
1386
1386
|
_: 2
|
|
1387
1387
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
1388
|
-
d === s(e).SLIDER ? (u(),
|
|
1388
|
+
d === s(e).SLIDER ? (u(), y(U, {
|
|
1389
1389
|
key: 5,
|
|
1390
|
-
modelValue:
|
|
1391
|
-
"onUpdate:modelValue": (
|
|
1392
|
-
min:
|
|
1390
|
+
modelValue: n.value[o],
|
|
1391
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1392
|
+
min: oe,
|
|
1393
1393
|
max: J,
|
|
1394
|
-
onChange: (
|
|
1394
|
+
onChange: (a) => h(d, o)
|
|
1395
1395
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
1396
|
-
d === s(e).SWITCH ? (u(),
|
|
1396
|
+
d === s(e).SWITCH ? (u(), y(I, {
|
|
1397
1397
|
key: 6,
|
|
1398
|
-
modelValue:
|
|
1399
|
-
"onUpdate:modelValue": (
|
|
1398
|
+
modelValue: n.value[o],
|
|
1399
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1400
1400
|
"active-value": Y[0] || !0,
|
|
1401
1401
|
"inactive-value": Y[1] || !1,
|
|
1402
|
-
onChange: (
|
|
1402
|
+
onChange: (a) => h(d, o)
|
|
1403
1403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
1404
1404
|
[s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
|
|
1405
1405
|
d
|
|
1406
|
-
) ? (u(),
|
|
1406
|
+
) ? (u(), y(z, {
|
|
1407
1407
|
key: 7,
|
|
1408
|
-
modelValue:
|
|
1409
|
-
"onUpdate:modelValue": (
|
|
1410
|
-
format:
|
|
1411
|
-
"value-format":
|
|
1408
|
+
modelValue: n.value[o],
|
|
1409
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1410
|
+
format: p(d, ee),
|
|
1411
|
+
"value-format": p(d, ee),
|
|
1412
1412
|
type: d,
|
|
1413
|
-
placeholder:
|
|
1414
|
-
onChange: (
|
|
1413
|
+
placeholder: m(d, g, j),
|
|
1414
|
+
onChange: (a) => h(d, o)
|
|
1415
1415
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
1416
1416
|
[
|
|
1417
1417
|
s(e).DATE_RANGE,
|
|
1418
1418
|
s(e).MONTH_RANGE,
|
|
1419
1419
|
s(e).DATE_TIME_RANGE
|
|
1420
|
-
].includes(d) ? (u(),
|
|
1420
|
+
].includes(d) ? (u(), y(z, {
|
|
1421
1421
|
key: 8,
|
|
1422
|
-
modelValue:
|
|
1423
|
-
"onUpdate:modelValue": (
|
|
1422
|
+
modelValue: n.value[o],
|
|
1423
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1424
1424
|
type: d,
|
|
1425
|
-
"value-format":
|
|
1426
|
-
"start-placeholder":
|
|
1427
|
-
"end-placeholder":
|
|
1428
|
-
onChange: (
|
|
1425
|
+
"value-format": p(d, ee),
|
|
1426
|
+
"start-placeholder": m(d, g, j)[0],
|
|
1427
|
+
"end-placeholder": m(d, g, j)[1],
|
|
1428
|
+
onChange: (a) => h(d, o)
|
|
1429
1429
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1430
|
-
[s(e).TIME].includes(d) ? (u(),
|
|
1430
|
+
[s(e).TIME].includes(d) ? (u(), y(Z, {
|
|
1431
1431
|
key: 9,
|
|
1432
|
-
modelValue:
|
|
1433
|
-
"onUpdate:modelValue": (
|
|
1432
|
+
modelValue: n.value[o],
|
|
1433
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1434
1434
|
"arrow-control": "",
|
|
1435
|
-
"value-format":
|
|
1436
|
-
placeholder:
|
|
1437
|
-
onChange: (
|
|
1435
|
+
"value-format": p(d, ee),
|
|
1436
|
+
placeholder: m(d, g, j),
|
|
1437
|
+
onChange: (a) => h(d, o)
|
|
1438
1438
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
1439
|
-
[s(e).TIME_RANGE].includes(d) ? (u(),
|
|
1439
|
+
[s(e).TIME_RANGE].includes(d) ? (u(), y(Z, {
|
|
1440
1440
|
key: 10,
|
|
1441
|
-
modelValue:
|
|
1442
|
-
"onUpdate:modelValue": (
|
|
1441
|
+
modelValue: n.value[o],
|
|
1442
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1443
1443
|
"is-range": "",
|
|
1444
|
-
"value-format":
|
|
1445
|
-
"start-placeholder":
|
|
1446
|
-
"end-placeholder":
|
|
1447
|
-
onChange: (
|
|
1444
|
+
"value-format": p(d, ee),
|
|
1445
|
+
"start-placeholder": m(d, g, j)[0],
|
|
1446
|
+
"end-placeholder": m(d, g, j)[1],
|
|
1447
|
+
onChange: (a) => h(d, o)
|
|
1448
1448
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1449
|
-
[s(e).CHECKBOX].includes(d) ? (u(),
|
|
1449
|
+
[s(e).CHECKBOX].includes(d) ? (u(), y(K, {
|
|
1450
1450
|
key: 11,
|
|
1451
|
-
modelValue:
|
|
1452
|
-
"onUpdate:modelValue": (
|
|
1453
|
-
onChange: (
|
|
1451
|
+
modelValue: n.value[o],
|
|
1452
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1453
|
+
onChange: (a) => h(d, o)
|
|
1454
1454
|
}, {
|
|
1455
|
-
default:
|
|
1456
|
-
(u(!0), A(L, null, W(Y, (
|
|
1455
|
+
default: C(() => [
|
|
1456
|
+
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(q, {
|
|
1457
1457
|
key: H,
|
|
1458
|
-
label:
|
|
1458
|
+
label: a.value
|
|
1459
1459
|
}, {
|
|
1460
|
-
default:
|
|
1461
|
-
Q(G(
|
|
1460
|
+
default: C(() => [
|
|
1461
|
+
Q(G(a.label), 1)
|
|
1462
1462
|
]),
|
|
1463
1463
|
_: 2
|
|
1464
1464
|
}, 1032, ["label"]))), 128))
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 2
|
|
1467
1467
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1468
|
-
[s(e).CASCADER].includes(d) ? (u(),
|
|
1468
|
+
[s(e).CASCADER].includes(d) ? (u(), y(Jt, {
|
|
1469
1469
|
key: 12,
|
|
1470
|
-
modelValue:
|
|
1471
|
-
"onUpdate:modelValue": (
|
|
1470
|
+
modelValue: n.value[o],
|
|
1471
|
+
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1472
1472
|
"data-options": Y,
|
|
1473
|
-
placeholder:
|
|
1474
|
-
onOnChange: (
|
|
1473
|
+
placeholder: m(d, g, j),
|
|
1474
|
+
onOnChange: (a) => h(d, o)
|
|
1475
1475
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
|
|
1476
1476
|
[].includes(d) ? (u(), A(L, { key: 13 }, [], 64)) : M("", !0),
|
|
1477
|
-
[s(e).OPERATION].includes(d) ? (u(),
|
|
1477
|
+
[s(e).OPERATION].includes(d) ? (u(), y(Qt, {
|
|
1478
1478
|
key: 14,
|
|
1479
1479
|
fold: ae >= 7,
|
|
1480
1480
|
onOnSearch: x,
|
|
1481
|
-
onOnClear:
|
|
1481
|
+
onOnClear: V,
|
|
1482
1482
|
onOnFold: F
|
|
1483
1483
|
}, null, 8, ["fold"])) : M("", !0)
|
|
1484
1484
|
], 64))
|
|
@@ -1488,7 +1488,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1488
1488
|
]),
|
|
1489
1489
|
_: 2
|
|
1490
1490
|
}, 1032, ["md"])), [
|
|
1491
|
-
[te, ae < 7 || d === s(e).OPERATION || ae >= 7 &&
|
|
1491
|
+
[te, ae < 7 || d === s(e).OPERATION || ae >= 7 && N.value]
|
|
1492
1492
|
])), 128))
|
|
1493
1493
|
]),
|
|
1494
1494
|
_: 1
|
|
@@ -1499,7 +1499,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1499
1499
|
[s(_)]
|
|
1500
1500
|
])
|
|
1501
1501
|
]),
|
|
1502
|
-
|
|
1502
|
+
D(be)
|
|
1503
1503
|
]);
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
@@ -1586,41 +1586,41 @@ const na = { class: "bsgoal-base-search-table" }, oa = { class: "base_search_tab
|
|
|
1586
1586
|
default: 75
|
|
1587
1587
|
}
|
|
1588
1588
|
},
|
|
1589
|
-
setup(
|
|
1590
|
-
const
|
|
1591
|
-
Oe("transferFoldStatus",
|
|
1592
|
-
const i = s(
|
|
1593
|
-
const { type:
|
|
1594
|
-
return
|
|
1595
|
-
})),
|
|
1596
|
-
const { item:
|
|
1597
|
-
return
|
|
1598
|
-
})),
|
|
1599
|
-
|
|
1589
|
+
setup(t) {
|
|
1590
|
+
const c = t, l = w(!1);
|
|
1591
|
+
Oe("transferFoldStatus", l);
|
|
1592
|
+
const i = s(c.configOptions), _ = le(() => i.filter((V) => {
|
|
1593
|
+
const { type: $ = "" } = V;
|
|
1594
|
+
return !!$;
|
|
1595
|
+
})), n = le(() => i.filter((V) => {
|
|
1596
|
+
const { item: $ = !1 } = V;
|
|
1597
|
+
return !$;
|
|
1598
|
+
})), r = ke(), m = w(Object.keys(r)), p = w(null), x = (V) => {
|
|
1599
|
+
p.value.refreshList(V);
|
|
1600
1600
|
};
|
|
1601
|
-
return (
|
|
1601
|
+
return (V, $) => (u(), A("div", na, [
|
|
1602
1602
|
O("div", oa, [
|
|
1603
|
-
|
|
1603
|
+
D(la, {
|
|
1604
1604
|
"config-options": s(_),
|
|
1605
1605
|
onOnSearch: x,
|
|
1606
1606
|
onOnClear: x
|
|
1607
1607
|
}, null, 8, ["config-options"]),
|
|
1608
|
-
|
|
1608
|
+
D(Me, {
|
|
1609
1609
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1610
|
-
ref:
|
|
1611
|
-
operationWidth:
|
|
1612
|
-
"config-options": s(
|
|
1613
|
-
data:
|
|
1614
|
-
selection:
|
|
1615
|
-
operation:
|
|
1616
|
-
expression:
|
|
1617
|
-
fetch:
|
|
1618
|
-
call:
|
|
1610
|
+
ref: p,
|
|
1611
|
+
operationWidth: t.operationWidth,
|
|
1612
|
+
"config-options": s(n),
|
|
1613
|
+
data: t.tableData,
|
|
1614
|
+
selection: t.selection,
|
|
1615
|
+
operation: t.operation,
|
|
1616
|
+
expression: t.expression,
|
|
1617
|
+
fetch: t.fetch,
|
|
1618
|
+
call: t.call
|
|
1619
1619
|
}, Ie({ _: 2 }, [
|
|
1620
|
-
W(
|
|
1621
|
-
name:
|
|
1622
|
-
fn:
|
|
1623
|
-
se(
|
|
1620
|
+
W(m.value, (N) => ({
|
|
1621
|
+
name: N,
|
|
1622
|
+
fn: C(({ row: F = {} }) => [
|
|
1623
|
+
se(V.$slots, N, { row: F })
|
|
1624
1624
|
])
|
|
1625
1625
|
}))
|
|
1626
1626
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1633,25 +1633,25 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
|
|
|
1633
1633
|
}, ia = /* @__PURE__ */ Object.assign(ra, {
|
|
1634
1634
|
props: ["modelValue"],
|
|
1635
1635
|
emits: ["update:modelValue"],
|
|
1636
|
-
setup(
|
|
1637
|
-
let
|
|
1636
|
+
setup(t, { emit: c }) {
|
|
1637
|
+
let l = w(!0);
|
|
1638
1638
|
const i = () => {
|
|
1639
|
-
|
|
1639
|
+
l.value = !l.value, c("update:modelValue", l.value);
|
|
1640
1640
|
};
|
|
1641
|
-
return (_,
|
|
1642
|
-
const
|
|
1641
|
+
return (_, n) => {
|
|
1642
|
+
const r = v("el-icon");
|
|
1643
1643
|
return u(), A("div", ca, [
|
|
1644
1644
|
O("div", {
|
|
1645
|
-
class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(
|
|
1645
|
+
class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(l) }]),
|
|
1646
1646
|
onClick: i
|
|
1647
1647
|
}, [
|
|
1648
|
-
|
|
1649
|
-
default:
|
|
1650
|
-
X(
|
|
1651
|
-
[te, s(
|
|
1648
|
+
D(r, { color: "#fff" }, {
|
|
1649
|
+
default: C(() => [
|
|
1650
|
+
X(D(s(At), null, null, 512), [
|
|
1651
|
+
[te, s(l)]
|
|
1652
1652
|
]),
|
|
1653
|
-
X(
|
|
1654
|
-
[te, !s(
|
|
1653
|
+
X(D(s($t), null, null, 512), [
|
|
1654
|
+
[te, !s(l)]
|
|
1655
1655
|
])
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 1
|
|
@@ -1716,57 +1716,57 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
|
|
|
1716
1716
|
}
|
|
1717
1717
|
},
|
|
1718
1718
|
emits: ["on-click"],
|
|
1719
|
-
setup(
|
|
1720
|
-
const
|
|
1721
|
-
ue(_, (
|
|
1722
|
-
|
|
1719
|
+
setup(t, { emit: c }) {
|
|
1720
|
+
const l = t, i = pe.height, _ = w(""), n = w(null);
|
|
1721
|
+
ue(_, (V) => {
|
|
1722
|
+
n.value.filter(V);
|
|
1723
1723
|
});
|
|
1724
|
-
const
|
|
1725
|
-
|
|
1726
|
-
}, x = async (
|
|
1727
|
-
if (
|
|
1728
|
-
const F = await
|
|
1729
|
-
return
|
|
1724
|
+
const r = (V, $) => V ? $.label.includes(V) : !0, m = w(!0), p = (V, $, N, F) => {
|
|
1725
|
+
c("on-click", V, $, N, F);
|
|
1726
|
+
}, x = async (V, $, N) => {
|
|
1727
|
+
if (V.level === 0) {
|
|
1728
|
+
const F = await N.initNode(V);
|
|
1729
|
+
return $(F || []);
|
|
1730
1730
|
} else {
|
|
1731
|
-
const F = await
|
|
1732
|
-
|
|
1731
|
+
const F = await N.lazyLoad(V);
|
|
1732
|
+
$(F || []);
|
|
1733
1733
|
}
|
|
1734
1734
|
};
|
|
1735
|
-
return (
|
|
1736
|
-
const
|
|
1735
|
+
return (V, $) => {
|
|
1736
|
+
const N = v("el-input"), F = v("el-tree");
|
|
1737
1737
|
return u(), A("div", da, [
|
|
1738
1738
|
X((u(), A("div", _a, [
|
|
1739
1739
|
X(O("div", ma, [
|
|
1740
|
-
N
|
|
1740
|
+
D(N, {
|
|
1741
1741
|
modelValue: _.value,
|
|
1742
|
-
"onUpdate:modelValue":
|
|
1742
|
+
"onUpdate:modelValue": $[0] || ($[0] = (h) => _.value = h),
|
|
1743
1743
|
class: "base_tree_main_input",
|
|
1744
1744
|
placeholder: "输入关键字过滤"
|
|
1745
1745
|
}, null, 8, ["modelValue"]),
|
|
1746
|
-
|
|
1746
|
+
D(F, {
|
|
1747
1747
|
ref_key: "EL_TREE_REF",
|
|
1748
|
-
ref:
|
|
1748
|
+
ref: n,
|
|
1749
1749
|
lazy: "",
|
|
1750
1750
|
"highlight-current": "",
|
|
1751
1751
|
"empty-text": "暂无数据",
|
|
1752
|
-
load: (
|
|
1752
|
+
load: (h, E) => x(h, E, l),
|
|
1753
1753
|
"expand-on-click-node": !1,
|
|
1754
|
-
props:
|
|
1755
|
-
"filter-node-method":
|
|
1756
|
-
onNodeClick:
|
|
1754
|
+
props: t.treeProps,
|
|
1755
|
+
"filter-node-method": r,
|
|
1756
|
+
onNodeClick: p
|
|
1757
1757
|
}, null, 8, ["load", "props"])
|
|
1758
1758
|
], 512), [
|
|
1759
|
-
[te,
|
|
1759
|
+
[te, m.value]
|
|
1760
1760
|
]),
|
|
1761
|
-
X(
|
|
1762
|
-
[te,
|
|
1761
|
+
X(D(be, { vertical: "" }, null, 512), [
|
|
1762
|
+
[te, m.value]
|
|
1763
1763
|
]),
|
|
1764
|
-
|
|
1765
|
-
modelValue:
|
|
1766
|
-
"onUpdate:modelValue":
|
|
1764
|
+
D(ia, {
|
|
1765
|
+
modelValue: m.value,
|
|
1766
|
+
"onUpdate:modelValue": $[1] || ($[1] = (h) => m.value = h)
|
|
1767
1767
|
}, null, 8, ["modelValue"])
|
|
1768
1768
|
])), [
|
|
1769
|
-
[s(i),
|
|
1769
|
+
[s(i), t.gasket]
|
|
1770
1770
|
])
|
|
1771
1771
|
]);
|
|
1772
1772
|
};
|
|
@@ -1805,73 +1805,87 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
|
|
|
1805
1805
|
default: "确定"
|
|
1806
1806
|
},
|
|
1807
1807
|
/**
|
|
1808
|
-
|
|
1809
|
-
|
|
1808
|
+
* 宽度
|
|
1809
|
+
*/
|
|
1810
1810
|
width: {
|
|
1811
1811
|
type: [String, Number]
|
|
1812
|
+
},
|
|
1813
|
+
/**
|
|
1814
|
+
* 弹窗类型
|
|
1815
|
+
*/
|
|
1816
|
+
type: {
|
|
1817
|
+
type: [String],
|
|
1818
|
+
default: "default",
|
|
1819
|
+
validator: (t) => ["default", "form", "blank"].includes(t)
|
|
1812
1820
|
}
|
|
1813
1821
|
},
|
|
1814
1822
|
emits: ["update:modelValue", "on-confirm"],
|
|
1815
|
-
setup(
|
|
1816
|
-
const
|
|
1823
|
+
setup(t, { emit: c }) {
|
|
1824
|
+
const l = t, i = w(l.modelValue.value), _ = () => {
|
|
1817
1825
|
i.value = !1;
|
|
1818
|
-
},
|
|
1819
|
-
i.value = !1,
|
|
1826
|
+
}, n = () => {
|
|
1827
|
+
i.value = !1, c("on-confirm");
|
|
1820
1828
|
};
|
|
1821
|
-
|
|
1822
|
-
() =>
|
|
1823
|
-
(
|
|
1824
|
-
i.value =
|
|
1829
|
+
ue(
|
|
1830
|
+
() => l.modelValue,
|
|
1831
|
+
(m) => {
|
|
1832
|
+
i.value = m;
|
|
1825
1833
|
}
|
|
1826
|
-
), ue(i, (
|
|
1827
|
-
|
|
1828
|
-
})
|
|
1829
|
-
|
|
1834
|
+
), ue(i, (m) => {
|
|
1835
|
+
c("update:modelValue", m);
|
|
1836
|
+
});
|
|
1837
|
+
const r = le(() => {
|
|
1838
|
+
let m = "bsgoal_base_dialog_main";
|
|
1839
|
+
const { type: p = "" } = l;
|
|
1840
|
+
return p === "form" && (m += " bsgoal_base_dialog_main--form"), p === "blank" && (m += " bsgoal_base_dialog_main--blank"), m;
|
|
1841
|
+
});
|
|
1842
|
+
return (m, p) => {
|
|
1843
|
+
const x = v("el-button"), V = v("el-dialog");
|
|
1830
1844
|
return u(), A("div", va, [
|
|
1831
1845
|
O("div", ha, [
|
|
1832
|
-
|
|
1846
|
+
D(V, {
|
|
1833
1847
|
modelValue: i.value,
|
|
1834
|
-
"onUpdate:modelValue":
|
|
1835
|
-
"custom-class":
|
|
1836
|
-
width:
|
|
1848
|
+
"onUpdate:modelValue": p[0] || (p[0] = ($) => i.value = $),
|
|
1849
|
+
"custom-class": s(r),
|
|
1850
|
+
width: t.width
|
|
1837
1851
|
}, {
|
|
1838
|
-
header:
|
|
1839
|
-
O("div", pa, G(
|
|
1852
|
+
header: C(() => [
|
|
1853
|
+
O("div", pa, G(t.title), 1)
|
|
1840
1854
|
]),
|
|
1841
|
-
footer:
|
|
1855
|
+
footer: C(() => [
|
|
1842
1856
|
O("span", ba, [
|
|
1843
|
-
|
|
1844
|
-
default:
|
|
1845
|
-
Q(G(
|
|
1857
|
+
D(x, { onClick: _ }, {
|
|
1858
|
+
default: C(() => [
|
|
1859
|
+
Q(G(t.cancelTxt), 1)
|
|
1846
1860
|
]),
|
|
1847
1861
|
_: 1
|
|
1848
1862
|
}),
|
|
1849
|
-
|
|
1863
|
+
D(x, {
|
|
1850
1864
|
type: "primary",
|
|
1851
|
-
onClick:
|
|
1865
|
+
onClick: n
|
|
1852
1866
|
}, {
|
|
1853
|
-
default:
|
|
1854
|
-
Q(G(
|
|
1867
|
+
default: C(() => [
|
|
1868
|
+
Q(G(t.confirmTxt), 1)
|
|
1855
1869
|
]),
|
|
1856
1870
|
_: 1
|
|
1857
1871
|
})
|
|
1858
1872
|
])
|
|
1859
1873
|
]),
|
|
1860
|
-
default:
|
|
1874
|
+
default: C(() => [
|
|
1861
1875
|
O("div", Ea, [
|
|
1862
|
-
se(
|
|
1876
|
+
se(m.$slots, "default")
|
|
1863
1877
|
])
|
|
1864
1878
|
]),
|
|
1865
1879
|
_: 3
|
|
1866
|
-
}, 8, ["modelValue", "width"])
|
|
1880
|
+
}, 8, ["modelValue", "custom-class", "width"])
|
|
1867
1881
|
])
|
|
1868
1882
|
]);
|
|
1869
1883
|
};
|
|
1870
1884
|
}
|
|
1871
1885
|
});
|
|
1872
|
-
const Ta = { class: "bsgoal-base-tabs" },
|
|
1886
|
+
const Ta = { class: "bsgoal-base-tabs" }, Ca = {
|
|
1873
1887
|
name: "BsgoalBaseTabs"
|
|
1874
|
-
},
|
|
1888
|
+
}, Va = /* @__PURE__ */ Object.assign(Ca, {
|
|
1875
1889
|
props: {
|
|
1876
1890
|
/**
|
|
1877
1891
|
* 配置项
|
|
@@ -1894,7 +1908,7 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
|
|
|
1894
1908
|
type: {
|
|
1895
1909
|
type: [String],
|
|
1896
1910
|
default: "",
|
|
1897
|
-
validator: (
|
|
1911
|
+
validator: (t) => ["card", "border-card"].includes(t)
|
|
1898
1912
|
},
|
|
1899
1913
|
/**
|
|
1900
1914
|
* 组件绑定的值
|
|
@@ -1905,29 +1919,29 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
|
|
|
1905
1919
|
}
|
|
1906
1920
|
},
|
|
1907
1921
|
emits: ["update:modelValue"],
|
|
1908
|
-
setup(
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1922
|
+
setup(t, { emit: c }) {
|
|
1923
|
+
const l = (i = "") => {
|
|
1924
|
+
c("update:modelValue", i);
|
|
1911
1925
|
};
|
|
1912
1926
|
return (i, _) => {
|
|
1913
|
-
const
|
|
1927
|
+
const n = v("el-tab-pane"), r = v("el-tabs");
|
|
1914
1928
|
return u(), A("div", Ta, [
|
|
1915
|
-
|
|
1929
|
+
D(r, {
|
|
1916
1930
|
stretch: "",
|
|
1917
1931
|
class: "bsgoal_base_tabs",
|
|
1918
|
-
type:
|
|
1919
|
-
"model-value":
|
|
1920
|
-
onTabChange:
|
|
1932
|
+
type: t.type,
|
|
1933
|
+
"model-value": t.modelValue,
|
|
1934
|
+
onTabChange: l
|
|
1921
1935
|
}, {
|
|
1922
|
-
default:
|
|
1923
|
-
(u(!0), A(L, null, W(
|
|
1936
|
+
default: C(() => [
|
|
1937
|
+
(u(!0), A(L, null, W(t.configOptions, ({ label: m, value: p }, x) => (u(), y(n, {
|
|
1924
1938
|
key: x,
|
|
1925
|
-
label:
|
|
1926
|
-
name:
|
|
1939
|
+
label: m,
|
|
1940
|
+
name: p
|
|
1927
1941
|
}, {
|
|
1928
|
-
default:
|
|
1929
|
-
se(i.$slots,
|
|
1930
|
-
Q(G(
|
|
1942
|
+
default: C(() => [
|
|
1943
|
+
se(i.$slots, p, {}, () => [
|
|
1944
|
+
Q(G(m), 1)
|
|
1931
1945
|
])
|
|
1932
1946
|
]),
|
|
1933
1947
|
_: 2
|
|
@@ -1939,18 +1953,18 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
|
|
|
1939
1953
|
};
|
|
1940
1954
|
}
|
|
1941
1955
|
}), Na = e, Da = Ee, wa = {
|
|
1942
|
-
install(
|
|
1943
|
-
const { exclude:
|
|
1956
|
+
install(t, c = {}) {
|
|
1957
|
+
const { exclude: l = [] } = c, i = {
|
|
1944
1958
|
BsgoalBaseForm: ze,
|
|
1945
1959
|
BsgoalBaseTable: Me,
|
|
1946
1960
|
BsgoalBaseLine: be,
|
|
1947
1961
|
BsgoalBaseSearchTable: sa,
|
|
1948
1962
|
BsgoalBaseTree: fa,
|
|
1949
1963
|
BsgoalBaseDialog: Aa,
|
|
1950
|
-
BsgoalBaseTabs:
|
|
1964
|
+
BsgoalBaseTabs: Va
|
|
1951
1965
|
};
|
|
1952
|
-
for (const [_,
|
|
1953
|
-
|
|
1966
|
+
for (const [_, n] of Object.entries(i))
|
|
1967
|
+
l.includes(_) || t.component(_, n);
|
|
1954
1968
|
},
|
|
1955
1969
|
enumType: e,
|
|
1956
1970
|
useFetch: Ee
|