magtool 1.5.14 → 1.5.18
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/README.md +37 -1
- package/dist/component.js +859 -853
- package/dist/css/magtool.css +1 -1
- package/package.json +1 -2
- package/README.1.md +0 -138
package/dist/component.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as P, getCurrentInstance as se, onMounted as re, reactive as H, createElementBlock as
|
|
1
|
+
import { defineComponent as P, getCurrentInstance as se, onMounted as re, reactive as H, createElementBlock as A, openBlock as c, normalizeStyle as me, unref as t, createCommentVNode as Y, createElementVNode as p, normalizeClass as K, renderSlot as W, toDisplayString as I, computed as g, watch as X, resolveComponent as N, createVNode as z, inject as pe, onBeforeMount as Ae, markRaw as ke, nextTick as fe, mergeProps as Z, withCtx as b, resolveDirective as De, withDirectives as Me, createBlock as E, withKeys as Ve, createSlots as ae, watchPostEffect as Ne, Fragment as ie, renderList as de, createTextVNode as ne, defineAsyncComponent as be, ref as _e, withModifiers as he, resolveDynamicComponent as ze, watchEffect as Be } from "vue";
|
|
2
2
|
import { _ as ue } from "./vendor.js";
|
|
3
|
-
import { dayjs as
|
|
4
|
-
import { loadImage as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
3
|
+
import { dayjs as je } from "element-plus";
|
|
4
|
+
import { loadImage as Ye, useSummary as Ee, download as Le } from "./composition.js";
|
|
5
|
+
import { useMap as ge } from "asamap";
|
|
6
|
+
import Se from "vuedraggable";
|
|
7
|
+
import { useRoute as Re } from "vue-router";
|
|
8
|
+
const Pe = { class: "fw700" }, Fe = P({
|
|
8
9
|
name: "MvcCard"
|
|
9
|
-
}),
|
|
10
|
+
}), Ue = /* @__PURE__ */ Object.assign(Fe, {
|
|
10
11
|
props: {
|
|
11
12
|
title: {
|
|
12
13
|
type: String,
|
|
@@ -47,52 +48,52 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
setup(M) {
|
|
50
|
-
const
|
|
51
|
+
const x = M, { proxy: s } = se(), e = () => {
|
|
51
52
|
o.toggle = !o.toggle;
|
|
52
53
|
};
|
|
53
54
|
re(() => {
|
|
54
|
-
o.toggle =
|
|
55
|
+
o.toggle = x.headerHide;
|
|
55
56
|
});
|
|
56
57
|
const o = H({
|
|
57
58
|
toggle: !1
|
|
58
59
|
});
|
|
59
|
-
return (
|
|
60
|
+
return (h, a) => (c(), A("div", {
|
|
60
61
|
class: "MvcCard",
|
|
61
62
|
style: me(t(o).cardStyle)
|
|
62
63
|
}, [
|
|
63
|
-
|
|
64
|
+
x.noheader ? Y("", !0) : (c(), A("div", {
|
|
64
65
|
key: 0,
|
|
65
66
|
ref: "header",
|
|
66
|
-
class: K(["cardHeader flexMode vc fs18 txt-dark9",
|
|
67
|
+
class: K(["cardHeader flexMode vc fs18 txt-dark9", x.headerClass])
|
|
67
68
|
}, [
|
|
68
|
-
|
|
69
|
+
p("i", {
|
|
69
70
|
class: K(["mr4 block imicon im-arrow-right fw700 fs14 transition3 hover", !t(o).toggle && "rotateZ90"]),
|
|
70
71
|
onClick: e
|
|
71
72
|
}, null, 2),
|
|
72
|
-
|
|
73
|
-
W(
|
|
73
|
+
p("div", Pe, I(h.$l(x.title)), 1),
|
|
74
|
+
W(h.$slots, "header", {}, void 0, !0)
|
|
74
75
|
], 2)),
|
|
75
|
-
|
|
76
|
-
class: K(["cardArea transition3", [
|
|
76
|
+
p("div", {
|
|
77
|
+
class: K(["cardArea transition3", [x.nobg && "nobg", t(o).toggle && "miniArea"]])
|
|
77
78
|
}, [
|
|
78
|
-
|
|
79
|
-
class: K(["cardBody relative nobar",
|
|
80
|
-
style: me(
|
|
79
|
+
p("div", {
|
|
80
|
+
class: K(["cardBody relative nobar", x.bodyClass]),
|
|
81
|
+
style: me(x.bodyStyle)
|
|
81
82
|
}, [
|
|
82
|
-
W(
|
|
83
|
+
W(h.$slots, "default", {}, void 0, !0)
|
|
83
84
|
], 6),
|
|
84
|
-
|
|
85
|
+
h.$slots.footer ? (c(), A("div", {
|
|
85
86
|
key: 0,
|
|
86
|
-
class: K(["cardFooter",
|
|
87
|
+
class: K(["cardFooter", x.footerClass])
|
|
87
88
|
}, [
|
|
88
|
-
W(
|
|
89
|
+
W(h.$slots, "footer", {}, void 0, !0)
|
|
89
90
|
], 2)) : Y("", !0)
|
|
90
91
|
], 2)
|
|
91
92
|
], 4));
|
|
92
93
|
}
|
|
93
|
-
}),
|
|
94
|
+
}), Ge = /* @__PURE__ */ ue(Ue, [["__scopeId", "data-v-348c485a"]]), He = { class: "SuperDatePicker" }, Je = P({
|
|
94
95
|
name: "SuperDatePicker"
|
|
95
|
-
}),
|
|
96
|
+
}), Ke = /* @__PURE__ */ Object.assign(Je, {
|
|
96
97
|
props: {
|
|
97
98
|
source: {
|
|
98
99
|
type: String,
|
|
@@ -146,8 +147,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
146
147
|
}
|
|
147
148
|
},
|
|
148
149
|
emits: ["change", "update:modelValue"],
|
|
149
|
-
setup(M, { expose:
|
|
150
|
-
|
|
150
|
+
setup(M, { expose: x, emit: s }) {
|
|
151
|
+
je.en.weekStart = 7;
|
|
151
152
|
const e = M, o = H({
|
|
152
153
|
type: "",
|
|
153
154
|
date: [],
|
|
@@ -155,16 +156,16 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
155
156
|
firstStamp: 0
|
|
156
157
|
});
|
|
157
158
|
re(() => {
|
|
158
|
-
if (!
|
|
159
|
+
if (!_.value.length) {
|
|
159
160
|
const l = e.defaultDate[0], n = e.defaultDate[1];
|
|
160
161
|
o.date = [
|
|
161
162
|
window.$m().add(l, "days").format("YYYY-MM-DD"),
|
|
162
163
|
window.$m().add(n, "days").format("YYYY-MM-DD")
|
|
163
|
-
],
|
|
164
|
+
], V(o.date);
|
|
164
165
|
}
|
|
165
166
|
O();
|
|
166
167
|
});
|
|
167
|
-
const
|
|
168
|
+
const h = s, a = (l) => {
|
|
168
169
|
let { limit: n, range: C } = e;
|
|
169
170
|
n = Number(n), C = Number(C);
|
|
170
171
|
const { firstStamp: R } = o, F = n * 864e5;
|
|
@@ -181,11 +182,11 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
181
182
|
Q < te && (te = Q);
|
|
182
183
|
}
|
|
183
184
|
return l < J || l > te;
|
|
184
|
-
},
|
|
185
|
+
}, y = (l) => {
|
|
185
186
|
l[1] === null ? o.firstStamp = +l[0] : o.firstStamp = 0;
|
|
186
|
-
},
|
|
187
|
+
}, V = (l) => {
|
|
187
188
|
const n = d(l);
|
|
188
|
-
|
|
189
|
+
h("change", n, "cpt");
|
|
189
190
|
}, O = () => {
|
|
190
191
|
const { shortcuts: l } = e;
|
|
191
192
|
let n = {};
|
|
@@ -197,9 +198,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
197
198
|
...l
|
|
198
199
|
};
|
|
199
200
|
const C = [];
|
|
200
|
-
n.today && C.push(
|
|
201
|
+
n.today && C.push(D()), n.yesterday && C.push(w()), n.thisweek && C.push(f()), n.last7days && C.push(r()), n.todaylast7days && C.push(k()), n.thismonth && C.push(u()), n.last30days && C.push(m()), n.lastmonth && C.push(S()), o.shortBtn = C;
|
|
201
202
|
}
|
|
202
|
-
},
|
|
203
|
+
}, D = () => ({
|
|
203
204
|
text: window.$l("Today"),
|
|
204
205
|
value: () => {
|
|
205
206
|
const l = window.$m().format("YYYY-MM-DD");
|
|
@@ -275,8 +276,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
275
276
|
return $.value === "Array" ? C = l : $.value === "Object" ? C = {
|
|
276
277
|
startDate: l[0],
|
|
277
278
|
endDate: l[1]
|
|
278
|
-
} : C = l[0] + e.separator + l[1],
|
|
279
|
-
}, i = g(() => window.$getLang()), $ = g(() => window.$getType(e.modelValue)),
|
|
279
|
+
} : C = l[0] + e.separator + l[1], h("update:modelValue", C), C;
|
|
280
|
+
}, i = g(() => window.$getLang()), $ = g(() => window.$getType(e.modelValue)), _ = g(() => $.value === "Array" ? e.modelValue : $.value === "Object" ? [e.modelValue.startDate, e.modelValue.endDate] : e.modelValue ? e.modelValue.split(e.separator) : []), B = g(() => ({
|
|
280
281
|
start: window.$l("Start Date"),
|
|
281
282
|
end: window.$l("End Date")
|
|
282
283
|
}));
|
|
@@ -297,15 +298,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
297
298
|
lastmonth: !0
|
|
298
299
|
};
|
|
299
300
|
return X(
|
|
300
|
-
() =>
|
|
301
|
+
() => _.value,
|
|
301
302
|
(l, n) => {
|
|
302
|
-
l.length && JSON.stringify(l) !== JSON.stringify(o.date) && (o.date = l,
|
|
303
|
+
l.length && JSON.stringify(l) !== JSON.stringify(o.date) && (o.date = l, V(l));
|
|
303
304
|
}
|
|
304
|
-
),
|
|
305
|
+
), x({
|
|
305
306
|
setDate: d
|
|
306
307
|
}), (l, n) => {
|
|
307
308
|
const C = N("el-date-picker");
|
|
308
|
-
return
|
|
309
|
+
return c(), A("div", He, [
|
|
309
310
|
z(C, {
|
|
310
311
|
modelValue: t(o).date,
|
|
311
312
|
"onUpdate:modelValue": n[0] || (n[0] = (R) => t(o).date = R),
|
|
@@ -324,15 +325,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
324
325
|
placement: e.placement,
|
|
325
326
|
disabled: e.disabled,
|
|
326
327
|
source: e.source,
|
|
327
|
-
onChange:
|
|
328
|
-
onCalendarChange:
|
|
328
|
+
onChange: V,
|
|
329
|
+
onCalendarChange: y
|
|
329
330
|
}, null, 8, ["modelValue", "popper-class", "size", "range-separator", "shortcuts", "end-placeholder", "start-placeholder", "placement", "disabled", "source"])
|
|
330
331
|
]);
|
|
331
332
|
};
|
|
332
333
|
}
|
|
333
|
-
}),
|
|
334
|
+
}), We = { class: "EChart" }, qe = ["id"], Ze = P({
|
|
334
335
|
name: "EChart"
|
|
335
|
-
}),
|
|
336
|
+
}), Qe = /* @__PURE__ */ Object.assign(Ze, {
|
|
336
337
|
props: {
|
|
337
338
|
options: {
|
|
338
339
|
type: Object,
|
|
@@ -364,7 +365,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
364
365
|
// default: false,
|
|
365
366
|
// },
|
|
366
367
|
},
|
|
367
|
-
setup(M, { expose:
|
|
368
|
+
setup(M, { expose: x, emit: s }) {
|
|
368
369
|
const e = M, { proxy: o } = se();
|
|
369
370
|
pe("store").launch();
|
|
370
371
|
const a = H({
|
|
@@ -416,14 +417,14 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
416
417
|
options: {},
|
|
417
418
|
chartType: ""
|
|
418
419
|
});
|
|
419
|
-
|
|
420
|
+
Ae(() => {
|
|
420
421
|
a.chartID = `chart${+/* @__PURE__ */ new Date()}${parseInt(Math.random() * 1e4)}`, u.light.className += ` ${a.chartID}`, u.dark.className += ` ${a.chartID}`;
|
|
421
422
|
}), re(() => {
|
|
422
|
-
a.mounted = !0, a.chart =
|
|
423
|
+
a.mounted = !0, a.chart = ke(
|
|
423
424
|
window.$ecs.init(o.$refs.chart, { renderer: "svg" })
|
|
424
425
|
);
|
|
425
426
|
});
|
|
426
|
-
const
|
|
427
|
+
const y = s, V = async () => {
|
|
427
428
|
O();
|
|
428
429
|
}, O = () => {
|
|
429
430
|
fe(() => {
|
|
@@ -487,13 +488,13 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
487
488
|
}), a.defaultOptions.tooltip = {
|
|
488
489
|
...a.defaultOptions.tooltip,
|
|
489
490
|
...u[e.theme]
|
|
490
|
-
}, m =
|
|
491
|
+
}, m = D(a.defaultOptions, m)), (d = m.series) == null || d.forEach((i) => {
|
|
491
492
|
i.animation = !0, i.animationDuration = 300, i.type === "line" ? (i.animationEasing = "cubicInOut", i.animationDelay = ($) => $ * 100) : (i.animationEasing = "cubicInOut", i.animationDelay = ($) => $ * 100);
|
|
492
493
|
}), a.options = m, a.chart.setOption(m), e.type === "wordcloud" && a.chart.on("click", (...i) => {
|
|
493
|
-
|
|
494
|
+
y("chart-click", i);
|
|
494
495
|
}), a.optioning = !1;
|
|
495
496
|
});
|
|
496
|
-
},
|
|
497
|
+
}, D = (m, S) => {
|
|
497
498
|
const { yAxis: d } = S, { yAxis: i } = m;
|
|
498
499
|
let $;
|
|
499
500
|
window.$getType(d) === "Array" ? $ = d.map((T) => ({
|
|
@@ -503,17 +504,17 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
503
504
|
...i,
|
|
504
505
|
...d
|
|
505
506
|
};
|
|
506
|
-
const
|
|
507
|
-
return Object.keys(
|
|
508
|
-
const l = window.$getType(
|
|
507
|
+
const _ = { ...S, ...m };
|
|
508
|
+
return Object.keys(_).forEach((T) => {
|
|
509
|
+
const l = window.$getType(_[T]);
|
|
509
510
|
if (l === "Array") {
|
|
510
511
|
const n = m[T] || [], C = S[T] || [];
|
|
511
|
-
|
|
512
|
+
_[T] = n.length && !C.length ? n : C;
|
|
512
513
|
} else if (l === "Object") {
|
|
513
514
|
const n = m[T] || {}, C = S[T] || {};
|
|
514
|
-
|
|
515
|
+
_[T] = { ...n, ...C };
|
|
515
516
|
}
|
|
516
|
-
}), $ && (
|
|
517
|
+
}), $ && (_.yAxis = $), _;
|
|
517
518
|
}, w = () => a.chart, f = g(() => window.global.config.options.cardWidth), r = g(() => {
|
|
518
519
|
const m = window.$getType(e.width), S = Number(e.height);
|
|
519
520
|
let d = e.width;
|
|
@@ -540,9 +541,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
540
541
|
height: e.height
|
|
541
542
|
});
|
|
542
543
|
}
|
|
543
|
-
),
|
|
544
|
+
), x({
|
|
544
545
|
getChart: w,
|
|
545
|
-
initChart:
|
|
546
|
+
initChart: V
|
|
546
547
|
});
|
|
547
548
|
const u = {
|
|
548
549
|
dark: {
|
|
@@ -613,20 +614,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
613
614
|
// },
|
|
614
615
|
}
|
|
615
616
|
};
|
|
616
|
-
return (m, S) => (
|
|
617
|
-
|
|
617
|
+
return (m, S) => (c(), A("div", We, [
|
|
618
|
+
p("div", {
|
|
618
619
|
ref: "chart",
|
|
619
620
|
style: me(t(r)),
|
|
620
621
|
id: t(a).chartID
|
|
621
|
-
}, null, 12,
|
|
622
|
+
}, null, 12, qe)
|
|
622
623
|
]));
|
|
623
624
|
}
|
|
624
|
-
}),
|
|
625
|
+
}), Xe = /* @__PURE__ */ ue(Qe, [["__scopeId", "data-v-e57a751a"]]), et = {
|
|
625
626
|
class: "MvcIcon",
|
|
626
627
|
"aria-hidden": "true"
|
|
627
|
-
},
|
|
628
|
+
}, tt = ["xlink:href"], ot = P({
|
|
628
629
|
name: "MvcIcon"
|
|
629
|
-
}),
|
|
630
|
+
}), lt = /* @__PURE__ */ Object.assign(ot, {
|
|
630
631
|
props: {
|
|
631
632
|
name: {
|
|
632
633
|
type: String,
|
|
@@ -634,15 +635,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
634
635
|
}
|
|
635
636
|
},
|
|
636
637
|
setup(M) {
|
|
637
|
-
return (
|
|
638
|
-
|
|
638
|
+
return (x, s) => (c(), A("svg", et, [
|
|
639
|
+
p("use", {
|
|
639
640
|
"xlink:href": `#imc-${M.name}`
|
|
640
|
-
}, null, 8,
|
|
641
|
+
}, null, 8, tt)
|
|
641
642
|
]));
|
|
642
643
|
}
|
|
643
|
-
}),
|
|
644
|
+
}), at = { class: "SuperImage" }, nt = { class: "flexMode hc vc hp100 bg-gray1 radius4" }, st = { class: "fs10-i lh1" }, rt = P({
|
|
644
645
|
name: "SuperImage"
|
|
645
|
-
}),
|
|
646
|
+
}), it = /* @__PURE__ */ Object.assign(rt, {
|
|
646
647
|
props: {
|
|
647
648
|
imageClass: {
|
|
648
649
|
type: String,
|
|
@@ -653,7 +654,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
653
654
|
default: "icon"
|
|
654
655
|
}
|
|
655
656
|
},
|
|
656
|
-
setup(M, { emit:
|
|
657
|
+
setup(M, { emit: x }) {
|
|
657
658
|
const s = M, e = H({
|
|
658
659
|
style: {},
|
|
659
660
|
diyClass: "hp100"
|
|
@@ -661,30 +662,30 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
661
662
|
re(() => {
|
|
662
663
|
a();
|
|
663
664
|
});
|
|
664
|
-
const
|
|
665
|
-
const
|
|
666
|
-
if (!
|
|
665
|
+
const h = x, a = async () => {
|
|
666
|
+
const y = await Ye(o.$attrs.src);
|
|
667
|
+
if (!y)
|
|
667
668
|
return;
|
|
668
|
-
const { height:
|
|
669
|
-
|
|
669
|
+
const { height: V, width: O } = y;
|
|
670
|
+
V < O && (e.diyClass = ""), h("load", O, V);
|
|
670
671
|
};
|
|
671
|
-
return (
|
|
672
|
+
return (y, V) => {
|
|
672
673
|
const O = N("el-image");
|
|
673
|
-
return
|
|
674
|
+
return c(), A("div", at, [
|
|
674
675
|
z(O, Z({
|
|
675
676
|
"min-scale": 0.9,
|
|
676
677
|
"max-scale": 1.8,
|
|
677
678
|
"zoom-rate": 1.1
|
|
678
|
-
},
|
|
679
|
+
}, y.$attrs, {
|
|
679
680
|
class: [t(e).diyClass, s.imageClass],
|
|
680
681
|
style: t(e).style
|
|
681
682
|
}), {
|
|
682
|
-
placeholder: b(() => [...
|
|
683
|
-
|
|
683
|
+
placeholder: b(() => [...V[0] || (V[0] = [
|
|
684
|
+
p("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
684
685
|
])]),
|
|
685
686
|
error: b(() => [
|
|
686
|
-
|
|
687
|
-
|
|
687
|
+
p("div", nt, [
|
|
688
|
+
p("span", st, I(y.$l("Fail")), 1)
|
|
688
689
|
])
|
|
689
690
|
]),
|
|
690
691
|
_: 1
|
|
@@ -692,9 +693,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
692
693
|
]);
|
|
693
694
|
};
|
|
694
695
|
}
|
|
695
|
-
}),
|
|
696
|
+
}), dt = { class: "SuperInput" }, ut = P({
|
|
696
697
|
name: "SuperInput"
|
|
697
|
-
}),
|
|
698
|
+
}), ct = /* @__PURE__ */ Object.assign(ut, {
|
|
698
699
|
props: {
|
|
699
700
|
modelValue: {
|
|
700
701
|
type: String,
|
|
@@ -722,19 +723,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
722
723
|
}
|
|
723
724
|
},
|
|
724
725
|
emits: ["change", "enter", "update:modelValue"],
|
|
725
|
-
setup(M, { expose:
|
|
726
|
+
setup(M, { expose: x, emit: s }) {
|
|
726
727
|
const e = M, o = H({
|
|
727
728
|
composition: !1,
|
|
728
729
|
v: ""
|
|
729
|
-
}), { proxy:
|
|
730
|
+
}), { proxy: h } = se(), a = s, y = () => {
|
|
730
731
|
o.composition = !0;
|
|
731
|
-
},
|
|
732
|
+
}, V = () => {
|
|
732
733
|
o.composition = !1;
|
|
733
734
|
}, O = () => {
|
|
734
735
|
o.composition || (a("update:modelValue", o.v), fe(() => {
|
|
735
736
|
a("enter", o.v);
|
|
736
737
|
}));
|
|
737
|
-
},
|
|
738
|
+
}, D = () => {
|
|
738
739
|
if (e.nobreak) {
|
|
739
740
|
const u = window.event || arguments[0];
|
|
740
741
|
if (u.key === "Enter" || u.code === "Enter" || u.keyCode === 13)
|
|
@@ -744,9 +745,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
744
745
|
e.nobreak ? a("update:modelValue", u.replace(/\n/g, "")) : a("update:modelValue", u), a("change", u);
|
|
745
746
|
}, f = (u) => {
|
|
746
747
|
fe(() => {
|
|
747
|
-
|
|
748
|
+
h.$refs.input.focus(), u && h.$refs.input.select();
|
|
748
749
|
});
|
|
749
|
-
}, r = g(() =>
|
|
750
|
+
}, r = g(() => h.$slots), k = g(() => e.placeholder ? window.$l(e.placeholder) : " ");
|
|
750
751
|
return X(
|
|
751
752
|
() => e.modelValue,
|
|
752
753
|
(u) => {
|
|
@@ -755,12 +756,12 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
755
756
|
{
|
|
756
757
|
immediate: !0
|
|
757
758
|
}
|
|
758
|
-
),
|
|
759
|
+
), x({
|
|
759
760
|
focus: f
|
|
760
761
|
}), (u, m) => {
|
|
761
|
-
const S = N("el-input"), d =
|
|
762
|
-
return
|
|
763
|
-
|
|
762
|
+
const S = N("el-input"), d = De("focus");
|
|
763
|
+
return c(), A("div", dt, [
|
|
764
|
+
Me((c(), E(S, Z({
|
|
764
765
|
ref: "input",
|
|
765
766
|
modelValue: t(o).v,
|
|
766
767
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => t(o).v = i),
|
|
@@ -771,18 +772,18 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
771
772
|
}, u.$attrs, {
|
|
772
773
|
placeholder: t(k),
|
|
773
774
|
onChange: w,
|
|
774
|
-
onCompositionstart:
|
|
775
|
-
onCompositionend:
|
|
775
|
+
onCompositionstart: y,
|
|
776
|
+
onCompositionend: V,
|
|
776
777
|
onKeydown: [
|
|
777
|
-
|
|
778
|
-
|
|
778
|
+
Ve(O, ["enter"]),
|
|
779
|
+
Ve(D, ["enter", "native"])
|
|
779
780
|
],
|
|
780
781
|
class: "wp100"
|
|
781
782
|
}), ae({ _: 2 }, [
|
|
782
783
|
t(r).prefix || e.icon ? {
|
|
783
784
|
name: "prefix",
|
|
784
785
|
fn: b(() => [
|
|
785
|
-
t(r).prefix ? W(u.$slots, "prefix", { key: 0 }) : (
|
|
786
|
+
t(r).prefix ? W(u.$slots, "prefix", { key: 0 }) : (c(), A("i", {
|
|
786
787
|
key: 1,
|
|
787
788
|
class: K(["imicon", `im-${e.icon}`])
|
|
788
789
|
}, null, 2))
|
|
@@ -816,15 +817,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
816
817
|
]);
|
|
817
818
|
};
|
|
818
819
|
}
|
|
819
|
-
}),
|
|
820
|
+
}), pt = { class: "SuperMultipleSelect relative" }, mt = {
|
|
820
821
|
key: 0,
|
|
821
822
|
class: "flexMode vc hb h40 outsideIgnore"
|
|
822
|
-
},
|
|
823
|
+
}, ft = {
|
|
823
824
|
key: 1,
|
|
824
825
|
class: "flexMode vc hb h40 outsideIgnore"
|
|
825
|
-
},
|
|
826
|
+
}, gt = { class: "flexMode vc g4 fs14 noevent" }, yt = { class: "txt-primary" }, ht = { class: "txt-dark5" }, _t = { class: "txt-primary" }, bt = { class: "txt-dark5" }, vt = P({
|
|
826
827
|
name: "SuperMultipleSelect"
|
|
827
|
-
}),
|
|
828
|
+
}), wt = /* @__PURE__ */ Object.assign(vt, {
|
|
828
829
|
props: {
|
|
829
830
|
modelValue: {
|
|
830
831
|
type: Array,
|
|
@@ -844,23 +845,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
844
845
|
}
|
|
845
846
|
},
|
|
846
847
|
emits: ["update:modelValue", "change"],
|
|
847
|
-
setup(M, { expose:
|
|
848
|
-
const e = M, o = H({ v: [] }), { proxy:
|
|
848
|
+
setup(M, { expose: x, emit: s }) {
|
|
849
|
+
const e = M, o = H({ v: [] }), { proxy: h } = se(), a = s, y = () => {
|
|
849
850
|
a("update:modelValue", o.v), a("change", o.v);
|
|
850
|
-
},
|
|
851
|
-
o.v = e.options.map((k) => k[e.value]),
|
|
851
|
+
}, V = () => {
|
|
852
|
+
o.v = e.options.map((k) => k[e.value]), y();
|
|
852
853
|
}, O = () => {
|
|
853
|
-
o.v = [],
|
|
854
|
-
},
|
|
855
|
-
|
|
856
|
-
}, w = g(() => e.options.length <= o.v.length && e.options.length !== 0), f = g(() =>
|
|
857
|
-
return
|
|
854
|
+
o.v = [], y();
|
|
855
|
+
}, D = () => {
|
|
856
|
+
h.$refs.select.blur();
|
|
857
|
+
}, w = g(() => e.options.length <= o.v.length && e.options.length !== 0), f = g(() => h.$attrs["multiple-limit"]), r = g(() => h.$attrs["collapse-tags"] !== void 0);
|
|
858
|
+
return Ne(() => {
|
|
858
859
|
JSON.stringify(e.modelValue) !== JSON.stringify(o.v) && (o.v = e.modelValue);
|
|
859
|
-
}),
|
|
860
|
-
blur:
|
|
860
|
+
}), x({
|
|
861
|
+
blur: D
|
|
861
862
|
}), (k, u) => {
|
|
862
863
|
const m = N("el-button"), S = N("el-option"), d = N("el-select");
|
|
863
|
-
return
|
|
864
|
+
return c(), A("div", pt, [
|
|
864
865
|
z(d, Z({
|
|
865
866
|
ref: "select",
|
|
866
867
|
modelValue: t(o).v,
|
|
@@ -870,11 +871,11 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
870
871
|
placement: "top"
|
|
871
872
|
}, k.$attrs, {
|
|
872
873
|
multiple: "",
|
|
873
|
-
onChange:
|
|
874
|
+
onChange: y,
|
|
874
875
|
class: ["wp100 MultipleSelect", t(r) && "nowrap"]
|
|
875
876
|
}), ae({
|
|
876
877
|
default: b(() => [
|
|
877
|
-
(
|
|
878
|
+
(c(!0), A(ie, null, de(e.options, (i, $) => (c(), E(S, {
|
|
878
879
|
key: $,
|
|
879
880
|
label: k.$l(i[e.label]),
|
|
880
881
|
value: i[e.value],
|
|
@@ -902,10 +903,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
902
903
|
t(f) ? void 0 : {
|
|
903
904
|
name: "header",
|
|
904
905
|
fn: b(() => [
|
|
905
|
-
k.$slots.header ? (
|
|
906
|
+
k.$slots.header ? (c(), A("div", mt, [
|
|
906
907
|
W(k.$slots, "header", {}, void 0, !0)
|
|
907
|
-
])) : (
|
|
908
|
-
t(w) ? (
|
|
908
|
+
])) : (c(), A("div", ft, [
|
|
909
|
+
t(w) ? (c(), E(m, {
|
|
909
910
|
key: 0,
|
|
910
911
|
type: "primary",
|
|
911
912
|
size: "default",
|
|
@@ -915,20 +916,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
915
916
|
ne(I(k.$l("Cancel All")), 1)
|
|
916
917
|
]),
|
|
917
918
|
_: 1
|
|
918
|
-
})) : (
|
|
919
|
+
})) : (c(), E(m, {
|
|
919
920
|
key: 1,
|
|
920
921
|
size: "default",
|
|
921
|
-
onClick:
|
|
922
|
+
onClick: V
|
|
922
923
|
}, {
|
|
923
924
|
default: b(() => [
|
|
924
925
|
ne(I(k.$l("Select All")), 1)
|
|
925
926
|
]),
|
|
926
927
|
_: 1
|
|
927
928
|
})),
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
u[1] || (u[1] =
|
|
931
|
-
|
|
929
|
+
p("div", gt, [
|
|
930
|
+
p("span", yt, I(t(o).v.length), 1),
|
|
931
|
+
u[1] || (u[1] = p("span", { class: "txt-dark3" }, "/", -1)),
|
|
932
|
+
p("span", ht, I(t(f) || e.options.length), 1)
|
|
932
933
|
])
|
|
933
934
|
]))
|
|
934
935
|
]),
|
|
@@ -942,23 +943,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
942
943
|
key: "2"
|
|
943
944
|
} : void 0
|
|
944
945
|
]), 1040, ["modelValue", "class"]),
|
|
945
|
-
t(f) ? (
|
|
946
|
+
t(f) ? (c(), A("div", {
|
|
946
947
|
key: 0,
|
|
947
948
|
class: K(["countArea abs flexMode vc p4 fs12", t(r) && "nowrap"])
|
|
948
949
|
}, [
|
|
949
|
-
|
|
950
|
-
u[2] || (u[2] =
|
|
951
|
-
|
|
950
|
+
p("span", _t, I(t(o).v.length), 1),
|
|
951
|
+
u[2] || (u[2] = p("span", { class: "txt-dark3" }, "/", -1)),
|
|
952
|
+
p("span", bt, I(t(f)), 1)
|
|
952
953
|
], 2)) : Y("", !0)
|
|
953
954
|
]);
|
|
954
955
|
};
|
|
955
956
|
}
|
|
956
|
-
}),
|
|
957
|
+
}), $t = /* @__PURE__ */ ue(wt, [["__scopeId", "data-v-278f3960"]]), St = { class: "SuperNodata" }, Oe = {
|
|
957
958
|
data: "No Data",
|
|
958
959
|
selection: "Unselected"
|
|
959
|
-
},
|
|
960
|
+
}, Ct = P({
|
|
960
961
|
name: "SuperNodata"
|
|
961
|
-
}),
|
|
962
|
+
}), kt = /* @__PURE__ */ Object.assign(Ct, {
|
|
962
963
|
props: {
|
|
963
964
|
size: {
|
|
964
965
|
type: [String, Number],
|
|
@@ -967,7 +968,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
967
968
|
type: {
|
|
968
969
|
type: String,
|
|
969
970
|
default: "data",
|
|
970
|
-
validate: (M) =>
|
|
971
|
+
validate: (M) => Oe[M]
|
|
971
972
|
},
|
|
972
973
|
txt: {
|
|
973
974
|
type: String,
|
|
@@ -975,10 +976,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
975
976
|
}
|
|
976
977
|
},
|
|
977
978
|
setup(M) {
|
|
978
|
-
const
|
|
979
|
-
return (o,
|
|
979
|
+
const x = M, s = g(() => Number(x.size)), e = g(() => x.txt ? window.$l(x.txt) : window.$l(Oe[x.type]));
|
|
980
|
+
return (o, h) => {
|
|
980
981
|
const a = N("el-empty");
|
|
981
|
-
return
|
|
982
|
+
return c(), A("div", St, [
|
|
982
983
|
z(a, {
|
|
983
984
|
"image-size": t(s),
|
|
984
985
|
description: t(e)
|
|
@@ -986,15 +987,18 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
986
987
|
]);
|
|
987
988
|
};
|
|
988
989
|
}
|
|
989
|
-
}),
|
|
990
|
-
key:
|
|
990
|
+
}), xt = /* @__PURE__ */ ue(kt, [["__scopeId", "data-v-0714983f"]]), Vt = { class: "Page relative yscroll vh100" }, Ot = { key: 1 }, Tt = {
|
|
991
|
+
key: 0,
|
|
991
992
|
class: "title fw700 fs24"
|
|
992
|
-
},
|
|
993
|
+
}, At = {
|
|
994
|
+
key: 1,
|
|
995
|
+
class: "subtitle"
|
|
996
|
+
}, Dt = {
|
|
993
997
|
class: "PageFooter flexMode vc g8 fs14",
|
|
994
998
|
style: { padding: "14px 30px 24px 30px" }
|
|
995
|
-
},
|
|
999
|
+
}, Mt = { class: "txt-dark5" }, Nt = { class: "txt-primary" }, It = { class: "txt-dark5" }, zt = P({
|
|
996
1000
|
name: "Page"
|
|
997
|
-
}),
|
|
1001
|
+
}), Bt = /* @__PURE__ */ Object.assign(zt, {
|
|
998
1002
|
props: {
|
|
999
1003
|
loading: {
|
|
1000
1004
|
type: Boolean,
|
|
@@ -1004,6 +1008,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1004
1008
|
type: String,
|
|
1005
1009
|
default: ""
|
|
1006
1010
|
},
|
|
1011
|
+
subtitle: {
|
|
1012
|
+
type: String,
|
|
1013
|
+
default: ""
|
|
1014
|
+
},
|
|
1007
1015
|
headerClass: {
|
|
1008
1016
|
type: String,
|
|
1009
1017
|
default: "sticky"
|
|
@@ -1014,40 +1022,43 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1014
1022
|
}
|
|
1015
1023
|
},
|
|
1016
1024
|
setup(M) {
|
|
1017
|
-
const
|
|
1025
|
+
const x = M, s = g(() => window.global.config.meta), e = g(() => ({
|
|
1018
1026
|
minHeight: window.global.config.options.pageHeight + "px"
|
|
1019
1027
|
}));
|
|
1020
|
-
return (o,
|
|
1028
|
+
return (o, h) => {
|
|
1021
1029
|
const a = N("Loading");
|
|
1022
|
-
return
|
|
1030
|
+
return c(), A("div", Vt, [
|
|
1023
1031
|
z(a, {
|
|
1024
|
-
loading:
|
|
1032
|
+
loading: x.loading
|
|
1025
1033
|
}, null, 8, ["loading"]),
|
|
1026
|
-
|
|
1034
|
+
x.noheader ? Y("", !0) : (c(), A("div", {
|
|
1027
1035
|
key: 0,
|
|
1028
|
-
class: K(["PageHeader h80 p0-30 flexMode vc hb z9 xscroll nobar",
|
|
1036
|
+
class: K(["PageHeader h80 p0-30 flexMode vc hb z9 xscroll nobar", x.headerClass])
|
|
1029
1037
|
}, [
|
|
1030
|
-
o.$slots.title ? W(o.$slots, "title", { key: 0 }, void 0, !0) :
|
|
1038
|
+
o.$slots.title ? W(o.$slots, "title", { key: 0 }, void 0, !0) : (c(), A("div", Ot, [
|
|
1039
|
+
x.title ? (c(), A("div", Tt, I(o.$l(x.title)), 1)) : Y("", !0),
|
|
1040
|
+
x.subtitle ? (c(), A("div", At, I(o.$l(x.subtitle)), 1)) : Y("", !0)
|
|
1041
|
+
])),
|
|
1031
1042
|
W(o.$slots, "tool", {}, void 0, !0)
|
|
1032
1043
|
], 2)),
|
|
1033
|
-
|
|
1044
|
+
p("div", {
|
|
1034
1045
|
class: "PageBody relative p0-30 z1",
|
|
1035
1046
|
style: me(t(e))
|
|
1036
1047
|
}, [
|
|
1037
1048
|
W(o.$slots, "default", {}, void 0, !0)
|
|
1038
1049
|
], 4),
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1050
|
+
p("div", Dt, [
|
|
1051
|
+
p("span", Mt, I(t(s).copyright), 1),
|
|
1052
|
+
p("span", Nt, I(t(s).campany), 1),
|
|
1053
|
+
p("span", It, I(t(s).email), 1)
|
|
1043
1054
|
])
|
|
1044
1055
|
]);
|
|
1045
1056
|
};
|
|
1046
1057
|
}
|
|
1047
|
-
}),
|
|
1058
|
+
}), jt = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-b044cbc8"]]), Yt = { class: "MvcTableHeaderTool" }, Et = { class: "ToolArea" }, Lt = P({
|
|
1048
1059
|
name: "MvcTableHeaderTool",
|
|
1049
1060
|
inheritAttrs: !1
|
|
1050
|
-
}),
|
|
1061
|
+
}), Rt = /* @__PURE__ */ Object.assign(Lt, {
|
|
1051
1062
|
props: {
|
|
1052
1063
|
tableName: {
|
|
1053
1064
|
type: String,
|
|
@@ -1090,17 +1101,17 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1090
1101
|
default: ""
|
|
1091
1102
|
}
|
|
1092
1103
|
},
|
|
1093
|
-
setup(M, { emit:
|
|
1094
|
-
const s =
|
|
1104
|
+
setup(M, { emit: x }) {
|
|
1105
|
+
const s = be(() => Promise.resolve().then(() => ra)), e = be(() => Promise.resolve().then(() => xa)), o = M, h = H({
|
|
1095
1106
|
drawer: [
|
|
1096
1107
|
{
|
|
1097
1108
|
title: window.$l("Table Column Customization"),
|
|
1098
1109
|
size: 1024,
|
|
1099
|
-
cpt:
|
|
1110
|
+
cpt: ke(s)
|
|
1100
1111
|
},
|
|
1101
1112
|
{
|
|
1102
1113
|
title: window.$l("Download from Current Table"),
|
|
1103
|
-
cpt:
|
|
1114
|
+
cpt: ke(e)
|
|
1104
1115
|
}
|
|
1105
1116
|
],
|
|
1106
1117
|
groupby: [],
|
|
@@ -1110,28 +1121,28 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1110
1121
|
filterTop: 0,
|
|
1111
1122
|
loading: !1,
|
|
1112
1123
|
dt: []
|
|
1113
|
-
}), { proxy: a } = se(),
|
|
1114
|
-
o.type === "drawer" || (d.target.localName === "span" ? window.$pageScrollTo(d.target.parentNode) : d.target.localName === "i" ? d.target.parentNode.localName === "button" ? window.$pageScrollTo(d.target.parentNode) : window.$pageScrollTo(d.target.parentNode.parentNode) : window.$pageScrollTo(d.target)),
|
|
1124
|
+
}), { proxy: a } = se(), y = x, V = (d) => {
|
|
1125
|
+
o.type === "drawer" || (d.target.localName === "span" ? window.$pageScrollTo(d.target.parentNode) : d.target.localName === "i" ? d.target.parentNode.localName === "button" ? window.$pageScrollTo(d.target.parentNode) : window.$pageScrollTo(d.target.parentNode.parentNode) : window.$pageScrollTo(d.target)), y("refresh");
|
|
1115
1126
|
}, O = () => {
|
|
1116
|
-
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1127
|
+
h.drawer[0].params = { tableName: o.tableName }, h.current = 0;
|
|
1128
|
+
}, D = () => {
|
|
1129
|
+
h.drawer[1].params = {
|
|
1119
1130
|
showTotalChosen: o.showTotalChosen,
|
|
1120
1131
|
tableName: o.tableName,
|
|
1121
1132
|
list: o.list,
|
|
1122
1133
|
selection: o.selection,
|
|
1123
1134
|
remote: o.remote
|
|
1124
|
-
},
|
|
1135
|
+
}, h.current = 1;
|
|
1125
1136
|
}, w = (d) => {
|
|
1126
|
-
d === "column" ?
|
|
1137
|
+
d === "column" ? y("to-init-table") : d === "download" && y("to-download");
|
|
1127
1138
|
}, f = async () => {
|
|
1128
1139
|
if (o.loadData) {
|
|
1129
|
-
|
|
1140
|
+
h.loading = !0;
|
|
1130
1141
|
const d = await o.loadData({ pageStart: 1, pageSize: o.total });
|
|
1131
|
-
|
|
1142
|
+
h.loading = !1, d && (h.dt = d, h.drawer[1].params.list = h.dt.list);
|
|
1132
1143
|
}
|
|
1133
1144
|
}, r = () => {
|
|
1134
|
-
|
|
1145
|
+
h.drawer[1].params.list = o.list;
|
|
1135
1146
|
}, k = g(() => {
|
|
1136
1147
|
var d;
|
|
1137
1148
|
return ((d = o.tool) == null ? void 0 : d.download) === void 0;
|
|
@@ -1143,7 +1154,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1143
1154
|
return ((d = o.tool) == null ? void 0 : d.refresh) === void 0;
|
|
1144
1155
|
});
|
|
1145
1156
|
g(() => {
|
|
1146
|
-
const d =
|
|
1157
|
+
const d = h.searchGroupBy.toLowerCase();
|
|
1147
1158
|
return S.map((i) => (i.label.toLowerCase().includes(d) ? i.hide = !1 : i.hide = !0, i));
|
|
1148
1159
|
});
|
|
1149
1160
|
const S = [
|
|
@@ -1174,42 +1185,42 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1174
1185
|
}
|
|
1175
1186
|
];
|
|
1176
1187
|
return (d, i) => {
|
|
1177
|
-
const $ = N("el-button"),
|
|
1178
|
-
return
|
|
1179
|
-
|
|
1180
|
-
t(m) ? (
|
|
1188
|
+
const $ = N("el-button"), _ = N("Drawer");
|
|
1189
|
+
return c(), A("div", Yt, [
|
|
1190
|
+
p("div", Et, [
|
|
1191
|
+
t(m) ? (c(), E($, {
|
|
1181
1192
|
key: 0,
|
|
1182
1193
|
plain: "",
|
|
1183
|
-
onClick: i[0] || (i[0] = (B) =>
|
|
1194
|
+
onClick: i[0] || (i[0] = (B) => V(B))
|
|
1184
1195
|
}, {
|
|
1185
1196
|
icon: b(() => [...i[2] || (i[2] = [
|
|
1186
|
-
|
|
1197
|
+
p("i", { class: "imicon im-reset" }, null, -1)
|
|
1187
1198
|
])]),
|
|
1188
1199
|
default: b(() => [
|
|
1189
1200
|
ne(" " + I(d.$l("Refresh")), 1)
|
|
1190
1201
|
]),
|
|
1191
1202
|
_: 1
|
|
1192
1203
|
})) : Y("", !0),
|
|
1193
|
-
t(u) ? (
|
|
1204
|
+
t(u) ? (c(), E($, {
|
|
1194
1205
|
key: 1,
|
|
1195
1206
|
plain: "",
|
|
1196
1207
|
onClick: O
|
|
1197
1208
|
}, {
|
|
1198
1209
|
icon: b(() => [...i[3] || (i[3] = [
|
|
1199
|
-
|
|
1210
|
+
p("i", { class: "imicon im-columns1" }, null, -1)
|
|
1200
1211
|
])]),
|
|
1201
1212
|
default: b(() => [
|
|
1202
1213
|
ne(" " + I(d.$l("Columns")), 1)
|
|
1203
1214
|
]),
|
|
1204
1215
|
_: 1
|
|
1205
1216
|
})) : Y("", !0),
|
|
1206
|
-
t(k) ? (
|
|
1217
|
+
t(k) ? (c(), E($, {
|
|
1207
1218
|
key: 2,
|
|
1208
1219
|
plain: "",
|
|
1209
|
-
onClick:
|
|
1220
|
+
onClick: D
|
|
1210
1221
|
}, {
|
|
1211
1222
|
icon: b(() => [...i[4] || (i[4] = [
|
|
1212
|
-
|
|
1223
|
+
p("i", { class: "imicon im-download1" }, null, -1)
|
|
1213
1224
|
])]),
|
|
1214
1225
|
default: b(() => [
|
|
1215
1226
|
ne(" " + I(d.$l("Download")), 1)
|
|
@@ -1217,12 +1228,12 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1217
1228
|
_: 1
|
|
1218
1229
|
})) : Y("", !0)
|
|
1219
1230
|
]),
|
|
1220
|
-
z(
|
|
1221
|
-
current: t(
|
|
1222
|
-
"onUpdate:current": i[1] || (i[1] = (B) => t(
|
|
1223
|
-
drawer: t(
|
|
1224
|
-
loading: t(
|
|
1225
|
-
dt: t(
|
|
1231
|
+
z(_, {
|
|
1232
|
+
current: t(h).current,
|
|
1233
|
+
"onUpdate:current": i[1] || (i[1] = (B) => t(h).current = B),
|
|
1234
|
+
drawer: t(h).drawer,
|
|
1235
|
+
loading: t(h).loading,
|
|
1236
|
+
dt: t(h).dt,
|
|
1226
1237
|
onFetchAllData: f,
|
|
1227
1238
|
onRecoverCurrentData: r,
|
|
1228
1239
|
onSubmit: w
|
|
@@ -1230,19 +1241,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1230
1241
|
]);
|
|
1231
1242
|
};
|
|
1232
1243
|
}
|
|
1233
|
-
}),
|
|
1244
|
+
}), Pt = /* @__PURE__ */ ue(Rt, [["__scopeId", "data-v-85db0009"]]), Ft = { class: "HeaderArea" }, Ut = {
|
|
1234
1245
|
key: 0,
|
|
1235
1246
|
class: "flexGrow xscroll nobar"
|
|
1236
|
-
},
|
|
1247
|
+
}, Gt = {
|
|
1237
1248
|
key: 1,
|
|
1238
1249
|
class: "titleArea"
|
|
1239
|
-
},
|
|
1250
|
+
}, Ht = { key: 2 }, Jt = {
|
|
1240
1251
|
key: 0,
|
|
1241
1252
|
class: "filterRowArea"
|
|
1242
|
-
},
|
|
1253
|
+
}, Kt = P({
|
|
1243
1254
|
name: "MvcTableHeader",
|
|
1244
1255
|
inheritAttrs: !1
|
|
1245
|
-
}),
|
|
1256
|
+
}), Wt = /* @__PURE__ */ Object.assign(Kt, {
|
|
1246
1257
|
props: {
|
|
1247
1258
|
title: {
|
|
1248
1259
|
type: String,
|
|
@@ -1269,28 +1280,28 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1269
1280
|
default: 0
|
|
1270
1281
|
}
|
|
1271
1282
|
},
|
|
1272
|
-
setup(M, { emit:
|
|
1283
|
+
setup(M, { emit: x }) {
|
|
1273
1284
|
const s = M;
|
|
1274
|
-
return (e, o) => (
|
|
1285
|
+
return (e, o) => (c(), A("div", {
|
|
1275
1286
|
class: "MvcTableHeader",
|
|
1276
1287
|
style: me(s.filterTagShow ? "padding-bottom: 2px !important" : "")
|
|
1277
1288
|
}, [
|
|
1278
|
-
|
|
1279
|
-
e.$slots.default ? (
|
|
1289
|
+
p("div", Ft, [
|
|
1290
|
+
e.$slots.default ? (c(), A("div", Ut, [
|
|
1280
1291
|
W(e.$slots, "default", {}, void 0, !0)
|
|
1281
|
-
])) : s.title ? (
|
|
1282
|
-
e.$attrs.tool !== !1 ? (
|
|
1292
|
+
])) : s.title ? (c(), A("div", Gt, I(s.title), 1)) : (c(), A("div", Ht)),
|
|
1293
|
+
e.$attrs.tool !== !1 ? (c(), E(Pt, Z({ key: 3 }, e.$attrs, {
|
|
1283
1294
|
"table-name": s.tableName,
|
|
1284
1295
|
total: s.total,
|
|
1285
1296
|
"show-total-chosen": s.showTotalChosen
|
|
1286
1297
|
}), null, 16, ["table-name", "total", "show-total-chosen"])) : Y("", !0)
|
|
1287
1298
|
]),
|
|
1288
|
-
e.$slots.filterRow ? (
|
|
1299
|
+
e.$slots.filterRow ? (c(), A("div", Jt, [
|
|
1289
1300
|
W(e.$slots, "filterRow", {}, void 0, !0)
|
|
1290
1301
|
])) : Y("", !0)
|
|
1291
1302
|
], 4));
|
|
1292
1303
|
}
|
|
1293
|
-
}),
|
|
1304
|
+
}), qt = /* @__PURE__ */ ue(Wt, [["__scopeId", "data-v-93f064e2"]]), Zt = P({
|
|
1294
1305
|
name: "MvcTableColumnFilter",
|
|
1295
1306
|
props: {
|
|
1296
1307
|
tableName: {
|
|
@@ -1302,20 +1313,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1302
1313
|
default: /* @__PURE__ */ Object.create(null)
|
|
1303
1314
|
}
|
|
1304
1315
|
},
|
|
1305
|
-
setup: (M,
|
|
1306
|
-
var
|
|
1316
|
+
setup: (M, x) => {
|
|
1317
|
+
var y;
|
|
1307
1318
|
const s = H({
|
|
1308
1319
|
options: [],
|
|
1309
1320
|
slots: []
|
|
1310
1321
|
}), e = M.tableName + "_Column";
|
|
1311
1322
|
let o = [];
|
|
1312
1323
|
(() => {
|
|
1313
|
-
const
|
|
1324
|
+
const V = x.slots.default()[0].children[0].children, O = {
|
|
1314
1325
|
left: [],
|
|
1315
1326
|
center: [],
|
|
1316
1327
|
right: []
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1328
|
+
}, D = M.tableName ? JSON.parse(localStorage.getItem(e)) : {}, w = [void 0];
|
|
1329
|
+
V.forEach((r) => {
|
|
1319
1330
|
window.$getType(r.type) === "Symbol" ? o = o.concat(r.children) : o.push(r);
|
|
1320
1331
|
}), o.forEach((r, k) => {
|
|
1321
1332
|
var m;
|
|
@@ -1330,8 +1341,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1330
1341
|
resizable: !0,
|
|
1331
1342
|
visible: r.props.visible !== !1
|
|
1332
1343
|
};
|
|
1333
|
-
if (
|
|
1334
|
-
const { data: d } =
|
|
1344
|
+
if (D != null && D.length && w.indexOf(r.props.prop) === -1) {
|
|
1345
|
+
const { data: d } = D.filter1(
|
|
1335
1346
|
(i) => i.prop === r.props.prop
|
|
1336
1347
|
);
|
|
1337
1348
|
d && (S.sort = d.sort, S.fixed = d.fixed, S.visible = d.visible);
|
|
@@ -1347,10 +1358,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1347
1358
|
M.tableName && localStorage.setItem(e, JSON.stringify(f));
|
|
1348
1359
|
})();
|
|
1349
1360
|
let a = [];
|
|
1350
|
-
if (o.forEach((
|
|
1351
|
-
window.$getType(
|
|
1352
|
-
}), (
|
|
1353
|
-
const
|
|
1361
|
+
if (o.forEach((V) => {
|
|
1362
|
+
window.$getType(V) !== "String" && V.props.visible && a.push(V);
|
|
1363
|
+
}), (y = M.group) != null && y.label) {
|
|
1364
|
+
const V = {
|
|
1354
1365
|
label: "Group By " + M.group.label,
|
|
1355
1366
|
// prop: props.group.value,
|
|
1356
1367
|
width: M.group.width,
|
|
@@ -1360,23 +1371,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1360
1371
|
};
|
|
1361
1372
|
a[0].props.type === "selection" ? a.splice(1, 0, {
|
|
1362
1373
|
...a[1],
|
|
1363
|
-
props:
|
|
1374
|
+
props: V
|
|
1364
1375
|
}) : a.unshift({
|
|
1365
1376
|
...a[0],
|
|
1366
|
-
props:
|
|
1377
|
+
props: V
|
|
1367
1378
|
});
|
|
1368
1379
|
}
|
|
1369
|
-
return a = a.sort((
|
|
1380
|
+
return a = a.sort((V, O) => V.props.sort - O.props.sort), () => a;
|
|
1370
1381
|
}
|
|
1371
|
-
}),
|
|
1382
|
+
}), Qt = { class: "MvcTableFooter" }, Xt = { class: "FooterArea xscroll nobar" }, eo = { class: "flexMode vc g8" }, to = {
|
|
1372
1383
|
key: 1,
|
|
1373
1384
|
class: "flexMode vc g4 fs14"
|
|
1374
|
-
},
|
|
1385
|
+
}, oo = { class: "txt-dark3" }, lo = { class: "flexMode vc" }, ao = { class: "txt-blue" }, no = {
|
|
1375
1386
|
key: 2,
|
|
1376
1387
|
class: "flexMode vc g4 fs14"
|
|
1377
|
-
},
|
|
1388
|
+
}, so = { class: "txt-dark3" }, ro = { class: "flexMode vc" }, io = { class: "txt-blue" }, uo = { class: "txt-dark7" }, co = { class: "flexMode vc g4 fs14" }, po = { class: "txt-dark3" }, mo = { class: "txt-dark7" }, fo = P({
|
|
1378
1389
|
name: "MvcTableFooter"
|
|
1379
|
-
}),
|
|
1390
|
+
}), go = /* @__PURE__ */ Object.assign(fo, {
|
|
1380
1391
|
props: {
|
|
1381
1392
|
pageNum: {
|
|
1382
1393
|
type: Number,
|
|
@@ -1427,16 +1438,16 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1427
1438
|
default: !1
|
|
1428
1439
|
}
|
|
1429
1440
|
},
|
|
1430
|
-
setup(M, { emit:
|
|
1441
|
+
setup(M, { emit: x }) {
|
|
1431
1442
|
const s = M, e = H({
|
|
1432
1443
|
summaryMode: 1
|
|
1433
|
-
}), o =
|
|
1444
|
+
}), o = x, h = (r) => {
|
|
1434
1445
|
o("size-change", r);
|
|
1435
1446
|
}, a = (r) => {
|
|
1436
1447
|
o("page-change", r);
|
|
1437
|
-
},
|
|
1448
|
+
}, y = (r) => {
|
|
1438
1449
|
o("summary-mode-change", r);
|
|
1439
|
-
},
|
|
1450
|
+
}, V = g(() => s.staticTotal ? !1 : s.filterTotal !== s.total), O = g(() => Number(s.pageCount) || 7), D = g(() => window.$getType(s.remoteData) === "String"), w = g(() => D.value ? "slot, ->, prev, pager, next, sizes" : "slot, ->"), f = [
|
|
1440
1451
|
{
|
|
1441
1452
|
label: window.$l("Current Page"),
|
|
1442
1453
|
value: 0
|
|
@@ -1448,8 +1459,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1448
1459
|
];
|
|
1449
1460
|
return (r, k) => {
|
|
1450
1461
|
const u = N("el-option"), m = N("el-select"), S = N("el-pagination");
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1462
|
+
return c(), A("div", Qt, [
|
|
1463
|
+
p("div", Xt, [
|
|
1453
1464
|
z(S, {
|
|
1454
1465
|
ref: "pagination",
|
|
1455
1466
|
background: "",
|
|
@@ -1460,26 +1471,26 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1460
1471
|
"page-size": s.pageSize,
|
|
1461
1472
|
"page-sizes": s.pageSizes,
|
|
1462
1473
|
"pager-count": t(O),
|
|
1463
|
-
onSizeChange:
|
|
1474
|
+
onSizeChange: h,
|
|
1464
1475
|
onCurrentChange: a,
|
|
1465
1476
|
class: "wp100"
|
|
1466
1477
|
}, {
|
|
1467
1478
|
default: b(() => [
|
|
1468
|
-
|
|
1469
|
-
s.nosummary ? Y("", !0) : (
|
|
1479
|
+
p("div", eo, [
|
|
1480
|
+
s.nosummary ? Y("", !0) : (c(), E(m, {
|
|
1470
1481
|
key: 0,
|
|
1471
1482
|
modelValue: t(e).summaryMode,
|
|
1472
1483
|
"onUpdate:modelValue": k[0] || (k[0] = (d) => t(e).summaryMode = d),
|
|
1473
1484
|
placeholder: " ",
|
|
1474
1485
|
class: "w160",
|
|
1475
1486
|
size: "normal",
|
|
1476
|
-
onChange:
|
|
1487
|
+
onChange: y
|
|
1477
1488
|
}, {
|
|
1478
1489
|
prefix: b(() => [
|
|
1479
1490
|
ne(I(r.$l("Sum")), 1)
|
|
1480
1491
|
]),
|
|
1481
1492
|
default: b(() => [
|
|
1482
|
-
(
|
|
1493
|
+
(c(), A(ie, null, de(f, (d, i) => z(u, {
|
|
1483
1494
|
key: i,
|
|
1484
1495
|
label: d.label,
|
|
1485
1496
|
value: d.value
|
|
@@ -1487,23 +1498,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1487
1498
|
]),
|
|
1488
1499
|
_: 1
|
|
1489
1500
|
}, 8, ["modelValue"])),
|
|
1490
|
-
s.selectionLength ? (
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1501
|
+
s.selectionLength ? (c(), A("div", to, [
|
|
1502
|
+
p("div", oo, I(r.$l("Selected")), 1),
|
|
1503
|
+
p("div", lo, [
|
|
1504
|
+
p("span", ao, I(s.selectionLength), 1)
|
|
1494
1505
|
])
|
|
1495
1506
|
])) : Y("", !0),
|
|
1496
|
-
t(
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
k[2] || (k[2] =
|
|
1501
|
-
|
|
1507
|
+
t(V) ? (c(), A("div", no, [
|
|
1508
|
+
p("div", so, I(r.$l("Current")), 1),
|
|
1509
|
+
p("div", ro, [
|
|
1510
|
+
p("span", io, I(r.$fa(s.filterTotal, 0)), 1),
|
|
1511
|
+
k[2] || (k[2] = p("span", { class: "p0-2 txt-dark3" }, "/", -1)),
|
|
1512
|
+
p("span", uo, I(r.$fa(s.rows, 0)), 1)
|
|
1502
1513
|
])
|
|
1503
1514
|
])) : Y("", !0),
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1515
|
+
p("div", co, [
|
|
1516
|
+
p("div", po, I(r.$l("Total")), 1),
|
|
1517
|
+
p("div", mo, I(r.$fa(s.total, 0)), 1)
|
|
1507
1518
|
])
|
|
1508
1519
|
])
|
|
1509
1520
|
]),
|
|
@@ -1513,10 +1524,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1513
1524
|
]);
|
|
1514
1525
|
};
|
|
1515
1526
|
}
|
|
1516
|
-
}),
|
|
1527
|
+
}), Ie = /* @__PURE__ */ ue(go, [["__scopeId", "data-v-1cd61412"]]), yo = ["id"], ho = P({
|
|
1517
1528
|
name: "MvcTableGroupMain",
|
|
1518
1529
|
inheritAttrs: !1
|
|
1519
|
-
}),
|
|
1530
|
+
}), _o = /* @__PURE__ */ Object.assign(ho, {
|
|
1520
1531
|
props: {
|
|
1521
1532
|
loading: {
|
|
1522
1533
|
type: Boolean,
|
|
@@ -1599,7 +1610,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1599
1610
|
default: /* @__PURE__ */ Object.create(null)
|
|
1600
1611
|
}
|
|
1601
1612
|
},
|
|
1602
|
-
setup(M, { expose:
|
|
1613
|
+
setup(M, { expose: x, emit: s }) {
|
|
1603
1614
|
const e = M, o = H({
|
|
1604
1615
|
loading: !0,
|
|
1605
1616
|
tableKey: 0,
|
|
@@ -1614,20 +1625,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1614
1625
|
summaryMode: 1,
|
|
1615
1626
|
tableId: "",
|
|
1616
1627
|
sizeChanged: !1
|
|
1617
|
-
}), { proxy:
|
|
1628
|
+
}), { proxy: h } = se();
|
|
1618
1629
|
pe("store").table();
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1630
|
+
const y = _e();
|
|
1631
|
+
Ae(() => {
|
|
1621
1632
|
o.tableId = `Table${+/* @__PURE__ */ new Date()}_${window.$rn(9999)}`;
|
|
1622
1633
|
});
|
|
1623
|
-
const
|
|
1624
|
-
const { refresh: G, remote:
|
|
1625
|
-
J.value && G || (j ? (o.pageStart = j.pageStart || 1, j.pageSize && (o.pageSize = j.pageSize), delete j.pageStart, delete j.pageSize, delete j.refresh, delete j.remote, o.search = j) : o.pageStart = 1, await w({ remote:
|
|
1626
|
-
},
|
|
1634
|
+
const V = s, O = async (j = {}) => {
|
|
1635
|
+
const { refresh: G, remote: L } = j;
|
|
1636
|
+
J.value && G || (j ? (o.pageStart = j.pageStart || 1, j.pageSize && (o.pageSize = j.pageSize), delete j.pageStart, delete j.pageSize, delete j.refresh, delete j.remote, o.search = j) : o.pageStart = 1, await w({ remote: L }));
|
|
1637
|
+
}, D = (j) => {
|
|
1627
1638
|
j || o.tableKey++;
|
|
1628
1639
|
}, w = async (j = {}, G) => {
|
|
1629
1640
|
var ee;
|
|
1630
|
-
const { remote:
|
|
1641
|
+
const { remote: L } = j;
|
|
1631
1642
|
if (e.loadData !== void 0) {
|
|
1632
1643
|
o.loading = !0;
|
|
1633
1644
|
let oe;
|
|
@@ -1637,78 +1648,78 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1637
1648
|
pageSize: oe,
|
|
1638
1649
|
...o.search
|
|
1639
1650
|
};
|
|
1640
|
-
o.pageSize = le.pageSize, o.pageStart = le.pageStart, (ee = e.groupInfo) != null && ee.value && (le.groupBy = e.groupInfo.value),
|
|
1641
|
-
const
|
|
1642
|
-
o.loading = !1,
|
|
1651
|
+
o.pageSize = le.pageSize, o.pageStart = le.pageStart, (ee = e.groupInfo) != null && ee.value && (le.groupBy = e.groupInfo.value), L && (le.remote = !0);
|
|
1652
|
+
const ye = await e.loadData(le);
|
|
1653
|
+
o.loading = !1, ye ? (o.dt = ye, o.filter = JSON.parse(JSON.stringify(ye)), V("update:total", o.dt.total)) : (o.dt = {
|
|
1643
1654
|
total: 0,
|
|
1644
1655
|
list: []
|
|
1645
1656
|
}, o.filter = {
|
|
1646
1657
|
total: 0,
|
|
1647
1658
|
list: []
|
|
1648
|
-
}), Q.value ? k() :
|
|
1659
|
+
}), Q.value ? k() : V("list-change", ye.list || []);
|
|
1649
1660
|
}
|
|
1650
1661
|
C();
|
|
1651
1662
|
}, f = (j) => {
|
|
1652
1663
|
o.summaryMode = j;
|
|
1653
|
-
}, r = ({ columns: j, data: G }) =>
|
|
1664
|
+
}, r = ({ columns: j, data: G }) => Ee({ columns: j, data: G, currency: window.currency }), k = (j = {}) => {
|
|
1654
1665
|
let { v: G = e.filter } = j;
|
|
1655
1666
|
G || (G = j);
|
|
1656
|
-
const
|
|
1657
|
-
return
|
|
1667
|
+
const L = Object.keys(G), ee = [];
|
|
1668
|
+
return L.forEach((oe) => {
|
|
1658
1669
|
const le = G[oe];
|
|
1659
1670
|
le && le.length && ee.push(oe);
|
|
1660
|
-
}), ee.length ? u(ee, G) : (o.dt.list = [...o.filter.list], o.filter.total = o.dt.total,
|
|
1671
|
+
}), ee.length ? u(ee, G) : (o.dt.list = [...o.filter.list], o.filter.total = o.dt.total, V("list-change", o.dt.list), o.filter.list);
|
|
1661
1672
|
}, u = (j, G) => {
|
|
1662
|
-
const
|
|
1673
|
+
const L = [];
|
|
1663
1674
|
return o.filter.list.forEach((ee) => {
|
|
1664
1675
|
let oe = !1;
|
|
1665
1676
|
j.forEach((le) => {
|
|
1666
|
-
const
|
|
1667
|
-
let
|
|
1668
|
-
if (window.$getType(
|
|
1677
|
+
const ye = String(ee[le]).toLowerCase();
|
|
1678
|
+
let we = G[le];
|
|
1679
|
+
if (window.$getType(we) === "Array")
|
|
1669
1680
|
try {
|
|
1670
|
-
|
|
1671
|
-
if (
|
|
1681
|
+
we.forEach(($e) => {
|
|
1682
|
+
if ($e && ye.includes(String($e).toLowerCase()))
|
|
1672
1683
|
throw oe = !0, new Error();
|
|
1673
1684
|
});
|
|
1674
1685
|
} catch {
|
|
1675
1686
|
}
|
|
1676
|
-
else
|
|
1677
|
-
}), oe &&
|
|
1678
|
-
}), o.dt.list =
|
|
1687
|
+
else ye.includes(we.toLowerCase()) && (oe = !0);
|
|
1688
|
+
}), oe && L.push(ee);
|
|
1689
|
+
}), o.dt.list = L, o.filter.total = L.length, V("list-change", L), L;
|
|
1679
1690
|
}, m = () => {
|
|
1680
1691
|
o.dt = {
|
|
1681
1692
|
list: e.list,
|
|
1682
1693
|
total: e.list.length
|
|
1683
|
-
}, o.filter = JSON.parse(JSON.stringify(o.dt)),
|
|
1694
|
+
}, o.filter = JSON.parse(JSON.stringify(o.dt)), V("list-change", e.list);
|
|
1684
1695
|
}, S = ({ row: j = {}, id: G }) => {
|
|
1685
|
-
G === void 0 ? o.dt.list.unshift(j) : o.dt.list = o.dt.list.map((
|
|
1686
|
-
...
|
|
1696
|
+
G === void 0 ? o.dt.list.unshift(j) : o.dt.list = o.dt.list.map((L) => L.id === G ? {
|
|
1697
|
+
...L,
|
|
1687
1698
|
...j
|
|
1688
|
-
} :
|
|
1699
|
+
} : L);
|
|
1689
1700
|
}, d = (j, G) => {
|
|
1690
|
-
o.dt.list = o.dt.list.filter((
|
|
1701
|
+
o.dt.list = o.dt.list.filter((L) => L[j] !== G), o.filter.list = o.filter.list.filter((L) => L[j] !== G);
|
|
1691
1702
|
}, i = (j) => {
|
|
1692
|
-
|
|
1703
|
+
y.value.toggleRowExpansion(j);
|
|
1693
1704
|
}, $ = (j, G) => {
|
|
1694
|
-
|
|
1695
|
-
},
|
|
1696
|
-
o.selection = j,
|
|
1705
|
+
y.value.toggleRowSelection(j, G);
|
|
1706
|
+
}, _ = (j) => {
|
|
1707
|
+
o.selection = j, V("selection-change", j);
|
|
1697
1708
|
}, B = (j) => {
|
|
1698
|
-
|
|
1709
|
+
V("sort-change", j);
|
|
1699
1710
|
}, T = (j) => {
|
|
1700
1711
|
o.pageSize = j, o.sizeChanged = !0, w();
|
|
1701
1712
|
}, l = (j) => {
|
|
1702
1713
|
o.pageStart = j, w();
|
|
1703
|
-
}, n = (j, G,
|
|
1714
|
+
}, n = (j, G, L) => {
|
|
1704
1715
|
let ee = localStorage.getItem(q.value);
|
|
1705
1716
|
if (ee) {
|
|
1706
1717
|
ee = JSON.parse(ee);
|
|
1707
|
-
const { data: oe } = ee.filter1((le) => le.prop ===
|
|
1708
|
-
oe && (oe.width =
|
|
1718
|
+
const { data: oe } = ee.filter1((le) => le.prop === L.property);
|
|
1719
|
+
oe && (oe.width = L.width, localStorage.setItem(q.value, JSON.stringify(ee)));
|
|
1709
1720
|
}
|
|
1710
1721
|
}, C = () => {
|
|
1711
|
-
|
|
1722
|
+
y.value && y.value.setScrollTop(0);
|
|
1712
1723
|
}, R = () => {
|
|
1713
1724
|
o.loading = !1;
|
|
1714
1725
|
}, F = (j) => {
|
|
@@ -1718,9 +1729,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1718
1729
|
options: { tableHeight: j },
|
|
1719
1730
|
page: G
|
|
1720
1731
|
} = window.global.config;
|
|
1721
|
-
let
|
|
1722
|
-
return e.nofooter && (
|
|
1723
|
-
}), Q = g(() => 0), U = g(() => e.list === void 0 ? String(+/* @__PURE__ */ new Date()) : +/* @__PURE__ */ new Date()), ce = g(() => window.$getType(U.value) === "String"), q = g(() => e.tableName + "_Column"),
|
|
1732
|
+
let L = e.height || j;
|
|
1733
|
+
return e.nofooter && (L = L + G.footer), e.noheader && (L = L + G.header), e.minusHeight && (L = L - Number(e.minusHeight)), L < 200 && (L = 200), L;
|
|
1734
|
+
}), Q = g(() => 0), U = g(() => e.list === void 0 ? String(+/* @__PURE__ */ new Date()) : +/* @__PURE__ */ new Date()), ce = g(() => window.$getType(U.value) === "String"), q = g(() => e.tableName + "_Column"), xe = g(() => o.summaryMode === 0 ? r : e.summaryMethod);
|
|
1724
1735
|
X(
|
|
1725
1736
|
() => U.value,
|
|
1726
1737
|
(j) => {
|
|
@@ -1732,34 +1743,34 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1732
1743
|
{
|
|
1733
1744
|
immediate: !0
|
|
1734
1745
|
}
|
|
1735
|
-
),
|
|
1746
|
+
), x({
|
|
1736
1747
|
toFilter: k,
|
|
1737
1748
|
initTable: O,
|
|
1738
1749
|
editRow: S,
|
|
1739
1750
|
removeRow: d,
|
|
1740
|
-
refreshTable:
|
|
1751
|
+
refreshTable: D,
|
|
1741
1752
|
toggleRowExpansion: i,
|
|
1742
1753
|
toggleRowSelection: $,
|
|
1743
1754
|
toStop: R,
|
|
1744
1755
|
toAdd: F
|
|
1745
1756
|
});
|
|
1746
|
-
const
|
|
1757
|
+
const ve = {
|
|
1747
1758
|
"popper-class": "maxw300"
|
|
1748
1759
|
};
|
|
1749
1760
|
return (j, G) => {
|
|
1750
1761
|
var oe, le;
|
|
1751
|
-
const
|
|
1752
|
-
return
|
|
1762
|
+
const L = N("Loading"), ee = N("el-table");
|
|
1763
|
+
return c(), A("div", {
|
|
1753
1764
|
class: K(["MvcTableGroupMain", t(ce) && "PagiTable"]),
|
|
1754
1765
|
id: t(o).tableId
|
|
1755
1766
|
}, [
|
|
1756
|
-
z(
|
|
1767
|
+
z(L, {
|
|
1757
1768
|
loading: t(J),
|
|
1758
1769
|
class: "loadingRect"
|
|
1759
1770
|
}, null, 8, ["loading"]),
|
|
1760
|
-
(
|
|
1771
|
+
(c(), E(ee, {
|
|
1761
1772
|
ref_key: "table",
|
|
1762
|
-
ref:
|
|
1773
|
+
ref: y,
|
|
1763
1774
|
key: t(o).tableKey,
|
|
1764
1775
|
data: t(o).dt.list,
|
|
1765
1776
|
"row-key": e.rowKey,
|
|
@@ -1768,16 +1779,16 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1768
1779
|
border: "",
|
|
1769
1780
|
"default-sort": M.defaultSort,
|
|
1770
1781
|
"show-summary": e.showSummary,
|
|
1771
|
-
"summary-method": t(
|
|
1772
|
-
"tooltip-options":
|
|
1782
|
+
"summary-method": t(xe),
|
|
1783
|
+
"tooltip-options": ve,
|
|
1773
1784
|
"cell-class-name": e.cellClassName,
|
|
1774
1785
|
onHeaderDragend: n,
|
|
1775
|
-
onSelectionChange:
|
|
1786
|
+
onSelectionChange: _,
|
|
1776
1787
|
onSortChange: B,
|
|
1777
1788
|
onToggleRowSelection: $
|
|
1778
1789
|
}, {
|
|
1779
1790
|
default: b(() => [
|
|
1780
|
-
z(t(
|
|
1791
|
+
z(t(Zt), {
|
|
1781
1792
|
"table-name": e.tableName,
|
|
1782
1793
|
group: e.groupInfo
|
|
1783
1794
|
}, {
|
|
@@ -1789,7 +1800,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1789
1800
|
]),
|
|
1790
1801
|
_: 3
|
|
1791
1802
|
}, 8, ["data", "row-key", "height", "default-sort", "show-summary", "summary-method", "cell-class-name"])),
|
|
1792
|
-
e.nofooter ? Y("", !0) : (
|
|
1803
|
+
e.nofooter ? Y("", !0) : (c(), E(Ie, Z({
|
|
1793
1804
|
key: 0,
|
|
1794
1805
|
ref: "footer"
|
|
1795
1806
|
}, j.$attrs, {
|
|
@@ -1807,13 +1818,13 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1807
1818
|
onPageChange: l,
|
|
1808
1819
|
onSummaryModeChange: f
|
|
1809
1820
|
}), null, 16, ["nosummary", "page-num", "page-size", "rows", "filter-rows", "total", "filter-total", "selection-length", "remote-data", "static-total"]))
|
|
1810
|
-
], 10,
|
|
1821
|
+
], 10, yo);
|
|
1811
1822
|
};
|
|
1812
1823
|
}
|
|
1813
|
-
}),
|
|
1824
|
+
}), bo = /* @__PURE__ */ ue(_o, [["__scopeId", "data-v-b05a08f4"]]), vo = P({
|
|
1814
1825
|
name: "Table",
|
|
1815
1826
|
inheritAttrs: !1
|
|
1816
|
-
}),
|
|
1827
|
+
}), wo = /* @__PURE__ */ Object.assign(vo, {
|
|
1817
1828
|
props: {
|
|
1818
1829
|
showTotalChosen: {
|
|
1819
1830
|
type: Boolean,
|
|
@@ -1840,48 +1851,48 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1840
1851
|
default: !1
|
|
1841
1852
|
}
|
|
1842
1853
|
},
|
|
1843
|
-
setup(M, { expose:
|
|
1844
|
-
const e = s, o = M,
|
|
1854
|
+
setup(M, { expose: x, emit: s }) {
|
|
1855
|
+
const e = s, o = M, h = H({
|
|
1845
1856
|
columnInfo: {},
|
|
1846
1857
|
selection: [],
|
|
1847
1858
|
list: [],
|
|
1848
1859
|
total: 0,
|
|
1849
1860
|
groupInfo: {}
|
|
1850
|
-
}), a =
|
|
1851
|
-
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1854
|
-
},
|
|
1855
|
-
|
|
1861
|
+
}), a = _e();
|
|
1862
|
+
_e();
|
|
1863
|
+
const y = _e(), { proxy: V } = se(), O = (l) => {
|
|
1864
|
+
y.value.toFilter(l);
|
|
1865
|
+
}, D = (l) => {
|
|
1866
|
+
y.value.initTable(l);
|
|
1856
1867
|
}, w = (l) => {
|
|
1857
|
-
|
|
1868
|
+
y.value.editRow(l);
|
|
1858
1869
|
}, f = () => {
|
|
1859
|
-
|
|
1870
|
+
y.value.refreshTable();
|
|
1860
1871
|
}, r = (l) => {
|
|
1861
|
-
|
|
1872
|
+
h.list = l;
|
|
1862
1873
|
}, k = (l) => {
|
|
1863
|
-
|
|
1874
|
+
h.selection = l;
|
|
1864
1875
|
}, u = (l) => {
|
|
1865
|
-
|
|
1876
|
+
y.value.toggleRowExpansion(l);
|
|
1866
1877
|
}, m = (l, n) => {
|
|
1867
|
-
|
|
1878
|
+
y.value.toggleRowSelection(l, n);
|
|
1868
1879
|
}, S = () => {
|
|
1869
|
-
|
|
1880
|
+
V.$attrs.list || y.value.initTable({ refresh: !0, remote: o.remote }), o.customRefresh && e("customRefreshFunc");
|
|
1870
1881
|
}, d = (l) => {
|
|
1871
|
-
|
|
1872
|
-
|
|
1882
|
+
h.groupInfo = l, fe(() => {
|
|
1883
|
+
y.value.initTable();
|
|
1873
1884
|
});
|
|
1874
1885
|
}, i = () => {
|
|
1875
|
-
|
|
1886
|
+
y.value.$refs.table.clearSelection();
|
|
1876
1887
|
}, $ = () => {
|
|
1877
|
-
|
|
1878
|
-
},
|
|
1879
|
-
|
|
1888
|
+
y.value.toStop();
|
|
1889
|
+
}, _ = (l) => {
|
|
1890
|
+
y.value.toAdd(l);
|
|
1880
1891
|
}, B = (l, n) => {
|
|
1881
|
-
|
|
1882
|
-
}, T = g(() =>
|
|
1883
|
-
return g(() => `${T.value}_Column`),
|
|
1884
|
-
initTable:
|
|
1892
|
+
y.value.removeRow(l, n);
|
|
1893
|
+
}, T = g(() => V.$attrs["table-name"]);
|
|
1894
|
+
return g(() => `${T.value}_Column`), x({
|
|
1895
|
+
initTable: D,
|
|
1885
1896
|
editRow: w,
|
|
1886
1897
|
removeRow: B,
|
|
1887
1898
|
toFilter: O,
|
|
@@ -1890,19 +1901,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1890
1901
|
toInitTable: f,
|
|
1891
1902
|
clearSelection: i,
|
|
1892
1903
|
toStop: $,
|
|
1893
|
-
toAdd:
|
|
1894
|
-
}), (l, n) => (
|
|
1904
|
+
toAdd: _
|
|
1905
|
+
}), (l, n) => (c(), A("div", {
|
|
1895
1906
|
class: K(["Table", o.tableClass])
|
|
1896
1907
|
}, [
|
|
1897
|
-
o.noheader ? Y("", !0) : (
|
|
1908
|
+
o.noheader ? Y("", !0) : (c(), E(qt, Z({
|
|
1898
1909
|
key: 0,
|
|
1899
1910
|
ref_key: "header",
|
|
1900
1911
|
ref: a
|
|
1901
1912
|
}, l.$attrs, {
|
|
1902
1913
|
filterTagShow: o.filterTagShow,
|
|
1903
|
-
list: t(
|
|
1904
|
-
selection: t(
|
|
1905
|
-
total: t(
|
|
1914
|
+
list: t(h).list,
|
|
1915
|
+
selection: t(h).selection,
|
|
1916
|
+
total: t(h).total,
|
|
1906
1917
|
showTotalChosen: o.showTotalChosen,
|
|
1907
1918
|
onToInitTable: f,
|
|
1908
1919
|
onGroupChange: d,
|
|
@@ -1921,13 +1932,13 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1921
1932
|
key: "0"
|
|
1922
1933
|
} : void 0
|
|
1923
1934
|
]), 1040, ["filterTagShow", "list", "selection", "total", "showTotalChosen"])),
|
|
1924
|
-
z(
|
|
1935
|
+
z(bo, Z({
|
|
1925
1936
|
ref_key: "main",
|
|
1926
|
-
ref:
|
|
1937
|
+
ref: y
|
|
1927
1938
|
}, l.$attrs, {
|
|
1928
|
-
"group-info": t(
|
|
1929
|
-
total: t(
|
|
1930
|
-
"onUpdate:total": n[0] || (n[0] = (C) => t(
|
|
1939
|
+
"group-info": t(h).groupInfo,
|
|
1940
|
+
total: t(h).total,
|
|
1941
|
+
"onUpdate:total": n[0] || (n[0] = (C) => t(h).total = C),
|
|
1931
1942
|
onSelectionChange: k,
|
|
1932
1943
|
onListChange: r
|
|
1933
1944
|
}), {
|
|
@@ -1938,12 +1949,12 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1938
1949
|
}, 16, ["group-info", "total"])
|
|
1939
1950
|
], 2));
|
|
1940
1951
|
}
|
|
1941
|
-
}),
|
|
1952
|
+
}), $o = /* @__PURE__ */ ue(wo, [["__scopeId", "data-v-22eb1590"]]), So = { class: "SuperTextarea relative" }, Co = {
|
|
1942
1953
|
key: 0,
|
|
1943
1954
|
class: "absFull flexMode hc vc z9"
|
|
1944
|
-
},
|
|
1955
|
+
}, ko = P({
|
|
1945
1956
|
name: "SuperTextarea"
|
|
1946
|
-
}),
|
|
1957
|
+
}), xo = /* @__PURE__ */ Object.assign(ko, {
|
|
1947
1958
|
props: {
|
|
1948
1959
|
modelValue: {
|
|
1949
1960
|
type: [String, Array],
|
|
@@ -1984,22 +1995,22 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1984
1995
|
}
|
|
1985
1996
|
},
|
|
1986
1997
|
emits: ["total", "update:modelValue", "blur"],
|
|
1987
|
-
setup(M, { expose:
|
|
1988
|
-
const e = M, o = H({ v: "", total: 0, mounted: !1 }), { proxy:
|
|
1998
|
+
setup(M, { expose: x, emit: s }) {
|
|
1999
|
+
const e = M, o = H({ v: "", total: 0, mounted: !1 }), { proxy: h } = se();
|
|
1989
2000
|
re(() => {
|
|
1990
|
-
e.focus &&
|
|
2001
|
+
e.focus && y(v);
|
|
1991
2002
|
});
|
|
1992
|
-
const a = s,
|
|
2003
|
+
const a = s, y = (S) => {
|
|
1993
2004
|
fe(() => {
|
|
1994
|
-
|
|
2005
|
+
h.$refs.input.focus(), S && h.$refs.input.select();
|
|
1995
2006
|
});
|
|
1996
|
-
},
|
|
2007
|
+
}, V = (S) => {
|
|
1997
2008
|
let d = 0, i = [];
|
|
1998
2009
|
const $ = [];
|
|
1999
2010
|
if (S) {
|
|
2000
2011
|
if (i = S.split(`
|
|
2001
|
-
`), i.forEach((
|
|
2002
|
-
|
|
2012
|
+
`), i.forEach((_) => {
|
|
2013
|
+
_.trim() && (d++, $.push(_));
|
|
2003
2014
|
}), !w.value) {
|
|
2004
2015
|
o.v = r.value ? [] : "";
|
|
2005
2016
|
return;
|
|
@@ -2009,20 +2020,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
2009
2020
|
a("update:modelValue", r.value ? [] : "");
|
|
2010
2021
|
o.total = d, a("total", d);
|
|
2011
2022
|
}, O = () => {
|
|
2012
|
-
o.v = "", o.total = 0, a("update:modelValue", ""), a("change", ""),
|
|
2013
|
-
},
|
|
2023
|
+
o.v = "", o.total = 0, a("update:modelValue", ""), a("change", ""), y();
|
|
2024
|
+
}, D = () => {
|
|
2014
2025
|
a("blur");
|
|
2015
2026
|
}, w = g(() => Number(e.max) || 0), f = g(() => o.total === w.value ? "txt-red" : "txt-blue"), r = g(() => window.$getType(e.modelValue) === "Array"), k = g(() => window.$l("One per Line")), u = g(() => e.placeholder ? `${window.$l(e.placeholder)}
|
|
2016
2027
|
${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.modelValue);
|
|
2017
|
-
return
|
|
2018
|
-
m.value && w.value ? m.value !== o.v && (o.v = m.value,
|
|
2019
|
-
}),
|
|
2020
|
-
toFocus:
|
|
2028
|
+
return Ne(() => {
|
|
2029
|
+
m.value && w.value ? m.value !== o.v && (o.v = m.value, V(m.value)) : (o.v = "", o.total = 0);
|
|
2030
|
+
}), x({
|
|
2031
|
+
toFocus: y
|
|
2021
2032
|
}), (S, d) => {
|
|
2022
2033
|
const i = N("el-input");
|
|
2023
|
-
return
|
|
2024
|
-
e.loading ? (
|
|
2025
|
-
|
|
2034
|
+
return c(), A("div", So, [
|
|
2035
|
+
e.loading ? (c(), A("div", Co, [...d[1] || (d[1] = [
|
|
2036
|
+
p("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
2026
2037
|
])])) : Y("", !0),
|
|
2027
2038
|
z(i, {
|
|
2028
2039
|
ref: "input",
|
|
@@ -2034,39 +2045,39 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2034
2045
|
placeholder: S.$l(t(u)),
|
|
2035
2046
|
class: K(["fullTextArea", S.$slots.prefix && "prefix"]),
|
|
2036
2047
|
disabled: e.loading || e.disabled,
|
|
2037
|
-
onInput:
|
|
2038
|
-
onBlur:
|
|
2048
|
+
onInput: V,
|
|
2049
|
+
onBlur: D
|
|
2039
2050
|
}, null, 8, ["modelValue", "rows", "resize", "placeholder", "class", "disabled"]),
|
|
2040
|
-
t(w) > -1 ? (
|
|
2051
|
+
t(w) > -1 ? (c(), A("div", {
|
|
2041
2052
|
key: 1,
|
|
2042
2053
|
class: K(["countArea abs fs12 txt-blue", e.rows > 1 && "lh20"])
|
|
2043
2054
|
}, [
|
|
2044
|
-
|
|
2055
|
+
p("span", {
|
|
2045
2056
|
class: K(t(f))
|
|
2046
2057
|
}, I(t(o).total), 3),
|
|
2047
|
-
d[2] || (d[2] =
|
|
2048
|
-
|
|
2058
|
+
d[2] || (d[2] = p("span", null, " / ", -1)),
|
|
2059
|
+
p("span", null, I(t(w)), 1)
|
|
2049
2060
|
], 2)) : Y("", !0),
|
|
2050
|
-
|
|
2061
|
+
p("div", {
|
|
2051
2062
|
class: K(["clearArea abs txt-dark3 hover-txt-red5", [t(o).v && "content"]]),
|
|
2052
2063
|
onClick: O
|
|
2053
2064
|
}, [...d[3] || (d[3] = [
|
|
2054
|
-
|
|
2065
|
+
p("i", { class: "imicon im-close-circle" }, null, -1)
|
|
2055
2066
|
])], 2),
|
|
2056
|
-
S.$slots.prefix ? (
|
|
2067
|
+
S.$slots.prefix ? (c(), A("div", {
|
|
2057
2068
|
key: 2,
|
|
2058
2069
|
class: "prefix abs l t",
|
|
2059
2070
|
style: { padding: "6px 11px" },
|
|
2060
|
-
onClick:
|
|
2071
|
+
onClick: he(($) => null, ["stop"])
|
|
2061
2072
|
}, [
|
|
2062
2073
|
W(S.$slots, "prefix", {}, void 0, !0)
|
|
2063
2074
|
])) : Y("", !0)
|
|
2064
2075
|
]);
|
|
2065
2076
|
};
|
|
2066
2077
|
}
|
|
2067
|
-
}),
|
|
2078
|
+
}), Vo = /* @__PURE__ */ ue(xo, [["__scopeId", "data-v-005d323b"]]), Oo = { class: "SuperAiApp relative" }, To = { class: "flexMode vc g8" }, Ao = { class: "txt-nowrap" }, Do = { class: "txt-dark5" }, Mo = P({
|
|
2068
2079
|
name: "SuperAiApp"
|
|
2069
|
-
}),
|
|
2080
|
+
}), No = /* @__PURE__ */ Object.assign(Mo, {
|
|
2070
2081
|
props: {
|
|
2071
2082
|
modelValue: {
|
|
2072
2083
|
type: Number,
|
|
@@ -2091,31 +2102,31 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2091
2102
|
"update:orgs",
|
|
2092
2103
|
"update:name"
|
|
2093
2104
|
],
|
|
2094
|
-
setup(M, { emit:
|
|
2105
|
+
setup(M, { emit: x }) {
|
|
2095
2106
|
const s = M, e = H({
|
|
2096
2107
|
loading: !1,
|
|
2097
2108
|
single: "",
|
|
2098
2109
|
multiple: [],
|
|
2099
2110
|
options: []
|
|
2100
|
-
}),
|
|
2111
|
+
}), h = pe("store").ai();
|
|
2101
2112
|
re(() => {
|
|
2102
|
-
|
|
2113
|
+
y();
|
|
2103
2114
|
});
|
|
2104
|
-
const a =
|
|
2115
|
+
const a = x, y = async () => {
|
|
2105
2116
|
if (O.value.length) {
|
|
2106
2117
|
a("success");
|
|
2107
2118
|
return;
|
|
2108
2119
|
}
|
|
2109
|
-
e.loading = !0, await
|
|
2110
|
-
},
|
|
2120
|
+
e.loading = !0, await h.getAppOptions(), e.loading = !1, a("success");
|
|
2121
|
+
}, V = (f) => {
|
|
2111
2122
|
a("update:modelValue", f);
|
|
2112
|
-
const { data: r } =
|
|
2123
|
+
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2113
2124
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs));
|
|
2114
|
-
}, O = g(() =>
|
|
2125
|
+
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), w = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2115
2126
|
return X(
|
|
2116
2127
|
() => s.modelValue,
|
|
2117
2128
|
(f) => {
|
|
2118
|
-
f && f !== e.v && (e.single = f,
|
|
2129
|
+
f && f !== e.v && (e.single = f, V(f));
|
|
2119
2130
|
},
|
|
2120
2131
|
{
|
|
2121
2132
|
immediate: !0
|
|
@@ -2123,38 +2134,38 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2123
2134
|
), X(
|
|
2124
2135
|
() => O.value,
|
|
2125
2136
|
(f) => {
|
|
2126
|
-
s.useDefault && (f == null ? void 0 : f.length) === 1 && (e.single = f[0].id,
|
|
2137
|
+
s.useDefault && (f == null ? void 0 : f.length) === 1 && (e.single = f[0].id, V(f[0].id));
|
|
2127
2138
|
},
|
|
2128
2139
|
{
|
|
2129
2140
|
immediate: !0
|
|
2130
2141
|
}
|
|
2131
2142
|
), (f, r) => {
|
|
2132
2143
|
const k = N("IconLoading"), u = N("Image"), m = N("el-option"), S = N("el-select");
|
|
2133
|
-
return
|
|
2134
|
-
t(e).loading ? (
|
|
2144
|
+
return c(), A("div", Oo, [
|
|
2145
|
+
t(e).loading ? (c(), E(k, { key: 0 })) : Y("", !0),
|
|
2135
2146
|
z(S, Z({
|
|
2136
2147
|
modelValue: t(e).single,
|
|
2137
2148
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => t(e).single = d),
|
|
2138
|
-
placeholder: t(
|
|
2149
|
+
placeholder: t(D),
|
|
2139
2150
|
filterable: "",
|
|
2140
2151
|
clearable: "",
|
|
2141
2152
|
"default-first-option": "",
|
|
2142
2153
|
"fit-input-width": ""
|
|
2143
|
-
}, f.$attrs, { onChange:
|
|
2154
|
+
}, f.$attrs, { onChange: V }), ae({
|
|
2144
2155
|
default: b(() => [
|
|
2145
|
-
(
|
|
2156
|
+
(c(!0), A(ie, null, de(t(O), (d, i) => (c(), E(m, {
|
|
2146
2157
|
key: i,
|
|
2147
2158
|
label: d.label,
|
|
2148
2159
|
value: d.id
|
|
2149
2160
|
}, {
|
|
2150
2161
|
default: b(() => [
|
|
2151
|
-
|
|
2162
|
+
p("div", To, [
|
|
2152
2163
|
z(u, {
|
|
2153
2164
|
src: d.icon,
|
|
2154
2165
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2155
2166
|
}, null, 8, ["src"]),
|
|
2156
|
-
|
|
2157
|
-
|
|
2167
|
+
p("span", Ao, I(d.name), 1),
|
|
2168
|
+
p("span", Do, "(" + I(d.id) + ")", 1)
|
|
2158
2169
|
])
|
|
2159
2170
|
]),
|
|
2160
2171
|
_: 2
|
|
@@ -2176,9 +2187,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2176
2187
|
]);
|
|
2177
2188
|
};
|
|
2178
2189
|
}
|
|
2179
|
-
}),
|
|
2190
|
+
}), Io = { class: "SuperAsaOrg relative" }, zo = { class: "inputGroup" }, Bo = { class: "inputGroupLeft noShrink" }, jo = { class: "flexMode vc g4" }, Yo = { class: "txt-dark5" }, Eo = P({
|
|
2180
2191
|
name: "SuperAsaOrg"
|
|
2181
|
-
}),
|
|
2192
|
+
}), Lo = /* @__PURE__ */ Object.assign(Eo, {
|
|
2182
2193
|
props: {
|
|
2183
2194
|
app: {
|
|
2184
2195
|
type: Number,
|
|
@@ -2210,85 +2221,85 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2210
2221
|
"error",
|
|
2211
2222
|
"change"
|
|
2212
2223
|
],
|
|
2213
|
-
setup(M, { emit:
|
|
2224
|
+
setup(M, { emit: x }) {
|
|
2214
2225
|
const s = M, e = H({
|
|
2215
2226
|
loading: !1,
|
|
2216
2227
|
single: "",
|
|
2217
2228
|
multiple: [],
|
|
2218
2229
|
options: []
|
|
2219
|
-
}),
|
|
2230
|
+
}), h = pe("store").ai();
|
|
2220
2231
|
re(() => {
|
|
2221
|
-
|
|
2232
|
+
y();
|
|
2222
2233
|
});
|
|
2223
|
-
const a =
|
|
2224
|
-
f.value.length ? (e.single ||
|
|
2225
|
-
},
|
|
2234
|
+
const a = x, y = async () => {
|
|
2235
|
+
f.value.length ? (e.single || V(f.value[0].id), a("success")) : a("error");
|
|
2236
|
+
}, V = (u) => {
|
|
2226
2237
|
var m, S, d, i;
|
|
2227
2238
|
a("update:modelValue", u), a("update:name", (m = r.value) == null ? void 0 : m.name), a("update:currency", (S = r.value) == null ? void 0 : S.currency), a("update:timezone", (d = r.value) == null ? void 0 : d.timezone), a("update:readonly", (i = r.value) == null ? void 0 : i.readonly), s.changeImmediately && a("change", u), s.unTimezone || O();
|
|
2228
2239
|
}, O = () => {
|
|
2229
2240
|
var m;
|
|
2230
2241
|
let u = r.value;
|
|
2231
|
-
|
|
2242
|
+
h.saveData("accountTimezone", {
|
|
2232
2243
|
timezoneName: u == null ? void 0 : u.timezone,
|
|
2233
2244
|
tip: "Account",
|
|
2234
|
-
timezone: (m =
|
|
2245
|
+
timezone: (m = ge("common.timezone").filter1(
|
|
2235
2246
|
(S) => S.label === (u == null ? void 0 : u.timezone)
|
|
2236
2247
|
).data) == null ? void 0 : m.value
|
|
2237
2248
|
});
|
|
2238
|
-
},
|
|
2249
|
+
}, D = () => {
|
|
2239
2250
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
2240
2251
|
}, w = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
2241
2252
|
var u;
|
|
2242
|
-
return s.app ? ((u =
|
|
2253
|
+
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
2243
2254
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
2244
2255
|
return X(
|
|
2245
2256
|
() => s.modelValue,
|
|
2246
2257
|
(u) => {
|
|
2247
|
-
u ? u !== e.single && (e.single = u,
|
|
2258
|
+
u ? u !== e.single && (e.single = u, V(u)) : D();
|
|
2248
2259
|
},
|
|
2249
2260
|
{
|
|
2250
2261
|
immediate: !0
|
|
2251
2262
|
}
|
|
2252
2263
|
), (u, m) => {
|
|
2253
2264
|
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), $ = N("el-select");
|
|
2254
|
-
return
|
|
2255
|
-
t(e).loading ? (
|
|
2256
|
-
|
|
2257
|
-
|
|
2265
|
+
return c(), A("div", Io, [
|
|
2266
|
+
t(e).loading ? (c(), E(S, { key: 0 })) : Y("", !0),
|
|
2267
|
+
p("div", zo, [
|
|
2268
|
+
p("div", Bo, [
|
|
2258
2269
|
z(d, {
|
|
2259
2270
|
circle: "",
|
|
2260
|
-
onClick: m[0] || (m[0] = (
|
|
2271
|
+
onClick: m[0] || (m[0] = (_) => u.$copy(t(e).single, "ID"))
|
|
2261
2272
|
}, {
|
|
2262
2273
|
icon: b(() => [...m[2] || (m[2] = [
|
|
2263
|
-
|
|
2274
|
+
p("i", { class: "imicon im-copy" }, null, -1)
|
|
2264
2275
|
])]),
|
|
2265
2276
|
_: 1
|
|
2266
2277
|
})
|
|
2267
2278
|
]),
|
|
2268
2279
|
z($, Z({
|
|
2269
2280
|
modelValue: t(e).single,
|
|
2270
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
2281
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
2271
2282
|
placeholder: t(w),
|
|
2272
2283
|
disabled: t(k),
|
|
2273
2284
|
filterable: ""
|
|
2274
2285
|
}, u.$attrs, {
|
|
2275
2286
|
class: "inputGroupRight",
|
|
2276
|
-
onChange:
|
|
2287
|
+
onChange: V
|
|
2277
2288
|
}), {
|
|
2278
2289
|
default: b(() => [
|
|
2279
|
-
(
|
|
2290
|
+
(c(!0), A(ie, null, de(t(f), (_, B) => (c(), E(i, {
|
|
2280
2291
|
key: B,
|
|
2281
|
-
label: `${
|
|
2282
|
-
value:
|
|
2283
|
-
disabled: s.readonly &&
|
|
2292
|
+
label: `${_.name} (${_.id})`,
|
|
2293
|
+
value: _.id,
|
|
2294
|
+
disabled: s.readonly && _.readonly
|
|
2284
2295
|
}, {
|
|
2285
2296
|
default: b(() => [
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
class: K(["imicon",
|
|
2297
|
+
p("div", jo, [
|
|
2298
|
+
p("i", {
|
|
2299
|
+
class: K(["imicon", _.readonly ? "" : "im-writing"])
|
|
2289
2300
|
}, null, 2),
|
|
2290
|
-
|
|
2291
|
-
|
|
2301
|
+
p("span", null, I(_.name), 1),
|
|
2302
|
+
p("span", Yo, "(" + I(_.id) + ")", 1)
|
|
2292
2303
|
])
|
|
2293
2304
|
]),
|
|
2294
2305
|
_: 2
|
|
@@ -2300,12 +2311,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2300
2311
|
]);
|
|
2301
2312
|
};
|
|
2302
2313
|
}
|
|
2303
|
-
}),
|
|
2314
|
+
}), Ro = { class: "SuperAsaAdGroup relative" }, Po = { class: "outsideIgnore" }, Fo = { class: "flexMode vc g8" }, Uo = { class: "flexMode hr outsideIgnore" }, Go = {
|
|
2304
2315
|
key: 2,
|
|
2305
2316
|
class: "inputGroup"
|
|
2306
|
-
},
|
|
2317
|
+
}, Ho = { class: "inputGroupLeft noShrink" }, Jo = { class: "flexMode vc g8" }, Ko = P({
|
|
2307
2318
|
name: "SuperAsaAdGroup"
|
|
2308
|
-
}),
|
|
2319
|
+
}), Wo = /* @__PURE__ */ Object.assign(Ko, {
|
|
2309
2320
|
props: {
|
|
2310
2321
|
modelValue: {
|
|
2311
2322
|
type: [Number, Array],
|
|
@@ -2350,33 +2361,33 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2350
2361
|
"update:modelValue",
|
|
2351
2362
|
"update:name"
|
|
2352
2363
|
],
|
|
2353
|
-
setup(M, { expose:
|
|
2364
|
+
setup(M, { expose: x, emit: s }) {
|
|
2354
2365
|
const e = M, o = H({
|
|
2355
2366
|
loading: !1,
|
|
2356
2367
|
single: "",
|
|
2357
2368
|
multiple: [],
|
|
2358
2369
|
options: [],
|
|
2359
2370
|
filterTxt: ""
|
|
2360
|
-
}), { proxy:
|
|
2371
|
+
}), { proxy: h } = se(), a = s, y = async () => {
|
|
2361
2372
|
const i = window.$getType(e.campaign);
|
|
2362
2373
|
let $;
|
|
2363
2374
|
if (i === "Array" ? $ = e.campaign.join(",") : $ = e.campaign.toString(), !$)
|
|
2364
2375
|
return;
|
|
2365
|
-
let
|
|
2376
|
+
let _ = {
|
|
2366
2377
|
data: {
|
|
2367
2378
|
appId: e.app,
|
|
2368
2379
|
orgId: e.org,
|
|
2369
2380
|
campaignId: $
|
|
2370
2381
|
}
|
|
2371
2382
|
};
|
|
2372
|
-
e.needNew && (
|
|
2383
|
+
e.needNew && (_.ex = +/* @__PURE__ */ new Date()), o.loading = !0;
|
|
2373
2384
|
const { code: B, data: T } = await window.$post({
|
|
2374
2385
|
url: window.$api.asa.adGroupOptions,
|
|
2375
|
-
...
|
|
2386
|
+
..._
|
|
2376
2387
|
});
|
|
2377
2388
|
if (o.loading = !1, B === 200) {
|
|
2378
2389
|
let l;
|
|
2379
|
-
e.permission ? l = T.filter((n) => n.permission === e.permission) : l = T, o.options = l.map((n) => (n.sort =
|
|
2390
|
+
e.permission ? l = T.filter((n) => n.permission === e.permission) : l = T, o.options = l.map((n) => (n.sort = ge("statusMap")[n.status].sort, n.ca = `${n.campaignId}_${n.id}`, n.oca = `${n.orgId}_${n.valueCA}`, n)).sort((n, C) => n.sort - C.sort);
|
|
2380
2391
|
}
|
|
2381
2392
|
if (e.multiple && e.modelValue && e.modelValue.length > 0) {
|
|
2382
2393
|
const l = e.modelValue.map((n) => {
|
|
@@ -2386,14 +2397,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2386
2397
|
a("update:name", l);
|
|
2387
2398
|
}
|
|
2388
2399
|
!e.multiple && u.value && a("update:name", u.value.name);
|
|
2389
|
-
},
|
|
2400
|
+
}, V = (i) => {
|
|
2390
2401
|
o.filterTxt = i;
|
|
2391
2402
|
}, O = () => {
|
|
2392
|
-
|
|
2393
|
-
},
|
|
2394
|
-
const $ = i.map((
|
|
2395
|
-
const { data: B } = m.value.filter1((T) => T[e.value] ===
|
|
2396
|
-
return B ? B.name : `Unknown Name ${
|
|
2403
|
+
h.$refs.multipleSelect.blur(), e.confirmAction && a("confirm");
|
|
2404
|
+
}, D = (i) => {
|
|
2405
|
+
const $ = i.map((_) => {
|
|
2406
|
+
const { data: B } = m.value.filter1((T) => T[e.value] === _);
|
|
2407
|
+
return B ? B.name : `Unknown Name ${_}`;
|
|
2397
2408
|
});
|
|
2398
2409
|
a("update:modelValue", o.multiple), a("update:name", $), a("change", i);
|
|
2399
2410
|
}, w = () => {
|
|
@@ -2404,20 +2415,20 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2404
2415
|
return i;
|
|
2405
2416
|
}).map((i) => i[e.value]), a("update:modelValue", o.multiple);
|
|
2406
2417
|
}, r = () => {
|
|
2407
|
-
|
|
2418
|
+
y();
|
|
2408
2419
|
}, k = g(() => window.$l("Ad Group")), u = g(() => o.single ? o.options.filter1((i) => i[e.value] === o.single).data : ""), m = g(() => o.filterTxt ? o.options.map((i) => (i.name.includes(o.filterTxt) ? i.hide = !1 : i.hide = !0, i)) : (o.options.map((i) => (i.hide = !1, i)), o.options.map((i) => (i.hide = !1, i)))), S = g(() => m.value.filter((i) => i.hide === !1).length);
|
|
2409
2420
|
g(() => e.app && e.org && e.campaign);
|
|
2410
2421
|
const d = g(() => {
|
|
2411
|
-
var
|
|
2422
|
+
var _, B;
|
|
2412
2423
|
let i = !1;
|
|
2413
2424
|
const $ = window.$getType(e.campaign);
|
|
2414
|
-
return e.multiple && $ === "Array" ? i = e.special ? ((
|
|
2425
|
+
return e.multiple && $ === "Array" ? i = e.special ? ((_ = e.campaign) == null ? void 0 : _.length) !== 1 : !((B = e.campaign) != null && B.length) : i = !e.campaign, i;
|
|
2415
2426
|
});
|
|
2416
2427
|
return X(
|
|
2417
2428
|
() => e.campaign,
|
|
2418
2429
|
(i, $) => {
|
|
2419
|
-
const
|
|
2420
|
-
e.multiple ? (
|
|
2430
|
+
const _ = window.$getType(i);
|
|
2431
|
+
e.multiple ? (_ === "Array" && i.length || _ === "Number" && i) && y() : i && i !== $ && y();
|
|
2421
2432
|
},
|
|
2422
2433
|
{
|
|
2423
2434
|
immediate: !0
|
|
@@ -2430,13 +2441,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2430
2441
|
{
|
|
2431
2442
|
immediate: !0
|
|
2432
2443
|
}
|
|
2433
|
-
),
|
|
2444
|
+
), x({
|
|
2434
2445
|
reload: r
|
|
2435
2446
|
}), (i, $) => {
|
|
2436
|
-
const
|
|
2437
|
-
return
|
|
2438
|
-
t(o).loading ? (
|
|
2439
|
-
e.multiple ? (
|
|
2447
|
+
const _ = N("IconLoading"), B = N("el-button"), T = N("el-tag"), l = N("StatusItem"), n = N("MultipleSelect"), C = N("el-option"), R = N("el-select");
|
|
2448
|
+
return c(), A("div", Ro, [
|
|
2449
|
+
t(o).loading ? (c(), E(_, { key: 0 })) : Y("", !0),
|
|
2450
|
+
e.multiple ? (c(), E(n, Z({
|
|
2440
2451
|
key: 1,
|
|
2441
2452
|
ref: "multipleSelect",
|
|
2442
2453
|
modelValue: t(o).multiple,
|
|
@@ -2447,14 +2458,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2447
2458
|
value: e.value,
|
|
2448
2459
|
clearable: "",
|
|
2449
2460
|
filterable: "",
|
|
2450
|
-
"filter-method":
|
|
2461
|
+
"filter-method": V,
|
|
2451
2462
|
"collapse-tags": "",
|
|
2452
2463
|
"collapse-tags-tooltip": "",
|
|
2453
2464
|
disabled: t(d)
|
|
2454
|
-
}, i.$attrs, { onChange:
|
|
2465
|
+
}, i.$attrs, { onChange: D }), {
|
|
2455
2466
|
header: b(() => [
|
|
2456
|
-
|
|
2457
|
-
t(o).filterTxt ? (
|
|
2467
|
+
p("div", Po, [
|
|
2468
|
+
t(o).filterTxt ? (c(), E(B, {
|
|
2458
2469
|
key: 0,
|
|
2459
2470
|
onClick: f,
|
|
2460
2471
|
class: "outsideIgnore"
|
|
@@ -2479,19 +2490,19 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2479
2490
|
})
|
|
2480
2491
|
]),
|
|
2481
2492
|
default: b(({ it: F }) => [
|
|
2482
|
-
|
|
2493
|
+
p("div", Fo, [
|
|
2483
2494
|
z(l, {
|
|
2484
2495
|
status: F.status,
|
|
2485
2496
|
nolabel: ""
|
|
2486
2497
|
}, null, 8, ["status"]),
|
|
2487
|
-
|
|
2498
|
+
p("span", null, I(F.name), 1)
|
|
2488
2499
|
])
|
|
2489
2500
|
]),
|
|
2490
2501
|
footer: b(() => [
|
|
2491
|
-
|
|
2502
|
+
p("div", Uo, [
|
|
2492
2503
|
z(B, {
|
|
2493
2504
|
type: "primary",
|
|
2494
|
-
onClick:
|
|
2505
|
+
onClick: he(O, ["stop"])
|
|
2495
2506
|
}, {
|
|
2496
2507
|
default: b(() => [
|
|
2497
2508
|
ne(I(i.$l("Confirm")), 1)
|
|
@@ -2501,14 +2512,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2501
2512
|
])
|
|
2502
2513
|
]),
|
|
2503
2514
|
_: 1
|
|
2504
|
-
}, 16, ["modelValue", "options", "placeholder", "label", "value", "disabled"])) : (
|
|
2505
|
-
|
|
2515
|
+
}, 16, ["modelValue", "options", "placeholder", "label", "value", "disabled"])) : (c(), A("div", Go, [
|
|
2516
|
+
p("div", Ho, [
|
|
2506
2517
|
z(B, {
|
|
2507
2518
|
circle: "",
|
|
2508
2519
|
onClick: $[1] || ($[1] = (F) => i.$copy(t(o).single, "ID"))
|
|
2509
2520
|
}, {
|
|
2510
2521
|
icon: b(() => [...$[3] || ($[3] = [
|
|
2511
|
-
|
|
2522
|
+
p("i", { class: "imicon im-copy" }, null, -1)
|
|
2512
2523
|
])]),
|
|
2513
2524
|
_: 1
|
|
2514
2525
|
})
|
|
@@ -2525,18 +2536,18 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2525
2536
|
onChange: w
|
|
2526
2537
|
}), ae({
|
|
2527
2538
|
default: b(() => [
|
|
2528
|
-
(
|
|
2539
|
+
(c(!0), A(ie, null, de(t(o).options, (F, J) => (c(), E(C, {
|
|
2529
2540
|
key: J,
|
|
2530
2541
|
label: i.$l(F.name),
|
|
2531
2542
|
value: F[e.value]
|
|
2532
2543
|
}, {
|
|
2533
2544
|
default: b(() => [
|
|
2534
|
-
|
|
2545
|
+
p("div", Jo, [
|
|
2535
2546
|
z(l, {
|
|
2536
2547
|
status: F.status,
|
|
2537
2548
|
nolabel: ""
|
|
2538
2549
|
}, null, 8, ["status"]),
|
|
2539
|
-
|
|
2550
|
+
p("span", null, I(F.name), 1)
|
|
2540
2551
|
])
|
|
2541
2552
|
]),
|
|
2542
2553
|
_: 2
|
|
@@ -2559,9 +2570,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2559
2570
|
]);
|
|
2560
2571
|
};
|
|
2561
2572
|
}
|
|
2562
|
-
}),
|
|
2573
|
+
}), qo = { class: "SuperAsaApp relative" }, Zo = { class: "flexMode vc g8" }, Qo = { class: "txt-nowrap" }, Xo = { class: "txt-dark5" }, el = P({
|
|
2563
2574
|
name: "SuperAsaApp"
|
|
2564
|
-
}),
|
|
2575
|
+
}), tl = /* @__PURE__ */ Object.assign(el, {
|
|
2565
2576
|
props: {
|
|
2566
2577
|
modelValue: {
|
|
2567
2578
|
type: Number,
|
|
@@ -2591,31 +2602,31 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2591
2602
|
"update:orgs",
|
|
2592
2603
|
"update:name"
|
|
2593
2604
|
],
|
|
2594
|
-
setup(M, { emit:
|
|
2605
|
+
setup(M, { emit: x }) {
|
|
2595
2606
|
const s = M, e = H({
|
|
2596
2607
|
loading: !1,
|
|
2597
2608
|
single: "",
|
|
2598
2609
|
multiple: [],
|
|
2599
2610
|
options: []
|
|
2600
|
-
}),
|
|
2611
|
+
}), h = pe("store").asa();
|
|
2601
2612
|
re(() => {
|
|
2602
|
-
|
|
2613
|
+
y();
|
|
2603
2614
|
});
|
|
2604
|
-
const a =
|
|
2615
|
+
const a = x, y = async () => {
|
|
2605
2616
|
if (O.value.length) {
|
|
2606
2617
|
a("success");
|
|
2607
2618
|
return;
|
|
2608
2619
|
}
|
|
2609
|
-
e.loading = !0, await
|
|
2610
|
-
},
|
|
2620
|
+
e.loading = !0, await h.getAppOptions(), e.loading = !1, a("success");
|
|
2621
|
+
}, V = (f) => {
|
|
2611
2622
|
a("update:modelValue", f);
|
|
2612
|
-
const { data: r } =
|
|
2623
|
+
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2613
2624
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs)), a("change", f);
|
|
2614
|
-
}, O = g(() =>
|
|
2625
|
+
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), w = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2615
2626
|
return X(
|
|
2616
2627
|
() => s.modelValue,
|
|
2617
2628
|
(f) => {
|
|
2618
|
-
f && f !== e.v && (e.single = f,
|
|
2629
|
+
f && f !== e.v && (e.single = f, V(f));
|
|
2619
2630
|
},
|
|
2620
2631
|
{
|
|
2621
2632
|
immediate: !0
|
|
@@ -2623,38 +2634,38 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2623
2634
|
), X(
|
|
2624
2635
|
() => O.value,
|
|
2625
2636
|
(f) => {
|
|
2626
|
-
(s.useDefault && (f == null ? void 0 : f.length) === 1 || s.aiDefault && f.length > 0) && (e.single = f[0].id,
|
|
2637
|
+
(s.useDefault && (f == null ? void 0 : f.length) === 1 || s.aiDefault && f.length > 0) && (e.single = f[0].id, V(f[0].id));
|
|
2627
2638
|
},
|
|
2628
2639
|
{
|
|
2629
2640
|
immediate: !0
|
|
2630
2641
|
}
|
|
2631
2642
|
), (f, r) => {
|
|
2632
2643
|
const k = N("IconLoading"), u = N("Image"), m = N("el-option"), S = N("el-select");
|
|
2633
|
-
return
|
|
2634
|
-
t(e).loading ? (
|
|
2644
|
+
return c(), A("div", qo, [
|
|
2645
|
+
t(e).loading ? (c(), E(k, { key: 0 })) : Y("", !0),
|
|
2635
2646
|
z(S, Z({
|
|
2636
2647
|
modelValue: t(e).single,
|
|
2637
2648
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => t(e).single = d),
|
|
2638
|
-
placeholder: t(
|
|
2649
|
+
placeholder: t(D),
|
|
2639
2650
|
filterable: "",
|
|
2640
2651
|
clearable: "",
|
|
2641
2652
|
"default-first-option": "",
|
|
2642
2653
|
"fit-input-width": ""
|
|
2643
|
-
}, f.$attrs, { onChange:
|
|
2654
|
+
}, f.$attrs, { onChange: V }), ae({
|
|
2644
2655
|
default: b(() => [
|
|
2645
|
-
(
|
|
2656
|
+
(c(!0), A(ie, null, de(t(O), (d, i) => (c(), E(m, {
|
|
2646
2657
|
key: i,
|
|
2647
2658
|
label: d.label,
|
|
2648
2659
|
value: d.id
|
|
2649
2660
|
}, {
|
|
2650
2661
|
default: b(() => [
|
|
2651
|
-
|
|
2662
|
+
p("div", Zo, [
|
|
2652
2663
|
z(u, {
|
|
2653
2664
|
src: d.icon,
|
|
2654
2665
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2655
2666
|
}, null, 8, ["src"]),
|
|
2656
|
-
|
|
2657
|
-
|
|
2667
|
+
p("span", Qo, I(d.name), 1),
|
|
2668
|
+
p("span", Xo, "(" + I(d.id) + ")", 1)
|
|
2658
2669
|
])
|
|
2659
2670
|
]),
|
|
2660
2671
|
_: 2
|
|
@@ -2676,18 +2687,18 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2676
2687
|
]);
|
|
2677
2688
|
};
|
|
2678
2689
|
}
|
|
2679
|
-
}),
|
|
2690
|
+
}), ol = { class: "SuperAsaCampaign relative" }, ll = { class: "outsideIgnore" }, al = { class: "flexMode vc g8" }, nl = {
|
|
2680
2691
|
key: 0,
|
|
2681
2692
|
class: "imicon im-writing"
|
|
2682
|
-
},
|
|
2693
|
+
}, sl = { class: "txt-nowrap" }, rl = { class: "flexMode hr outsideIgnore" }, il = {
|
|
2683
2694
|
key: 2,
|
|
2684
2695
|
class: "inputGroup"
|
|
2685
|
-
},
|
|
2696
|
+
}, dl = { class: "inputGroupLeft noShrink" }, ul = { class: "flexMode vc g8" }, cl = {
|
|
2686
2697
|
key: 0,
|
|
2687
2698
|
class: "imicon im-writing"
|
|
2688
|
-
},
|
|
2699
|
+
}, pl = { class: "txt-nowrap" }, ml = P({
|
|
2689
2700
|
name: "SuperAsaCampaign"
|
|
2690
|
-
}),
|
|
2701
|
+
}), fl = /* @__PURE__ */ Object.assign(ml, {
|
|
2691
2702
|
props: {
|
|
2692
2703
|
modelValue: {
|
|
2693
2704
|
type: [Array, Number],
|
|
@@ -2730,16 +2741,16 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2730
2741
|
"update:adplacement",
|
|
2731
2742
|
"success"
|
|
2732
2743
|
],
|
|
2733
|
-
setup(M, { expose:
|
|
2744
|
+
setup(M, { expose: x, emit: s }) {
|
|
2734
2745
|
const e = M, o = H({
|
|
2735
2746
|
loading: !1,
|
|
2736
2747
|
single: "",
|
|
2737
2748
|
multiple: [],
|
|
2738
2749
|
options: [],
|
|
2739
2750
|
filterTxt: ""
|
|
2740
|
-
}), { proxy:
|
|
2751
|
+
}), { proxy: h } = se();
|
|
2741
2752
|
pe("store").common();
|
|
2742
|
-
const
|
|
2753
|
+
const y = s, V = async (T) => {
|
|
2743
2754
|
o.loading = !0;
|
|
2744
2755
|
const { code: l, data: n } = await window.$post({
|
|
2745
2756
|
url: window.$api.asa.campaignOptions,
|
|
@@ -2749,11 +2760,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2749
2760
|
},
|
|
2750
2761
|
ex: e.useex ? e.org : +/* @__PURE__ */ new Date()
|
|
2751
2762
|
});
|
|
2752
|
-
o.loading = !1, l === 200 && (o.options = n.map((C) => (C.oc = `${C.orgId}_${C.id}`, C)).filter((C) => e.type.includes(C.adPlacement)),
|
|
2763
|
+
o.loading = !1, l === 200 && (o.options = n.map((C) => (C.oc = `${C.orgId}_${C.id}`, C)).filter((C) => e.type.includes(C.adPlacement)), y("success", o.options));
|
|
2753
2764
|
}, O = () => {
|
|
2754
|
-
|
|
2755
|
-
},
|
|
2756
|
-
|
|
2765
|
+
h.$refs.multipleSelect.blur(), y("confirm");
|
|
2766
|
+
}, D = (T) => {
|
|
2767
|
+
y("update:modelValue", T), y("change", T);
|
|
2757
2768
|
const l = {};
|
|
2758
2769
|
d.value.filter((C) => T.indexOf(C.id) > -1).forEach((C) => {
|
|
2759
2770
|
l[C.adChannelType] = !0;
|
|
@@ -2762,29 +2773,29 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2762
2773
|
const { data: R } = d.value.filter1((F) => F[e.value] === C);
|
|
2763
2774
|
return R ? R.name : `Unknown Name ${C}`;
|
|
2764
2775
|
});
|
|
2765
|
-
|
|
2776
|
+
y("update:name", n), y("update:ad-type", Object.keys(l));
|
|
2766
2777
|
}, w = (T) => {
|
|
2767
2778
|
var l, n;
|
|
2768
|
-
|
|
2779
|
+
y("update:modelValue", T), y("update:adplacement", (l = S.value) == null ? void 0 : l.adPlacement), y("update:name", (n = S.value) == null ? void 0 : n.name), y("change", T);
|
|
2769
2780
|
}, f = (T) => {
|
|
2770
2781
|
var l, n;
|
|
2771
|
-
|
|
2782
|
+
y("update:modelValue", T), y("update:adplacement", (l = S.value) == null ? void 0 : l.adPlacement), y("update:name", (n = S.value) == null ? void 0 : n.name);
|
|
2772
2783
|
}, r = () => {
|
|
2773
2784
|
o.multiple = d.value.filter((T) => {
|
|
2774
2785
|
if (T.hide === !1)
|
|
2775
2786
|
return T;
|
|
2776
|
-
}).map((T) => T[e.value]),
|
|
2787
|
+
}).map((T) => T[e.value]), y("update:modelValue", o.multiple);
|
|
2777
2788
|
}, k = (T) => {
|
|
2778
2789
|
o.filterTxt = T;
|
|
2779
2790
|
}, u = () => {
|
|
2780
|
-
|
|
2781
|
-
}, m = g(() => window.$l("Campaign")), S = g(() => o.single ? o.options.filter1((T) => T[e.value] === o.single).data : ""), d = g(() => o.filterTxt ? o.options.map((T) => (T.name.includes(o.filterTxt) && e.type.includes(T.adPlacement) ? T.hide = !1 : T.hide = !0, T)) : o.options.map((l) => (e.type.includes(l.adPlacement) ? l.hide = !1 : l.hide = !0, l))), i = g(() => d.value.filter((T) => T.hide === !1).length), $ = g(() => window.$getType(e.app) === "Array" ? e.app.join(",") : e.app),
|
|
2782
|
-
g(() => `${$.value} ${
|
|
2791
|
+
V();
|
|
2792
|
+
}, m = g(() => window.$l("Campaign")), S = g(() => o.single ? o.options.filter1((T) => T[e.value] === o.single).data : ""), d = g(() => o.filterTxt ? o.options.map((T) => (T.name.includes(o.filterTxt) && e.type.includes(T.adPlacement) ? T.hide = !1 : T.hide = !0, T)) : o.options.map((l) => (e.type.includes(l.adPlacement) ? l.hide = !1 : l.hide = !0, l))), i = g(() => d.value.filter((T) => T.hide === !1).length), $ = g(() => window.$getType(e.app) === "Array" ? e.app.join(",") : e.app), _ = g(() => window.$getType(e.org) === "Array" ? e.org.join(",") : e.org);
|
|
2793
|
+
g(() => `${$.value} ${_.value}`), g(() => e.app && e.org);
|
|
2783
2794
|
const B = g(() => !e.org);
|
|
2784
2795
|
return X(
|
|
2785
2796
|
() => e.org,
|
|
2786
2797
|
(T, l) => {
|
|
2787
|
-
T && T !== l &&
|
|
2798
|
+
T && T !== l && V();
|
|
2788
2799
|
},
|
|
2789
2800
|
{
|
|
2790
2801
|
immediate: !0
|
|
@@ -2805,13 +2816,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2805
2816
|
{
|
|
2806
2817
|
immediate: !0
|
|
2807
2818
|
}
|
|
2808
|
-
),
|
|
2819
|
+
), x({
|
|
2809
2820
|
reload: u
|
|
2810
2821
|
}), (T, l) => {
|
|
2811
2822
|
const n = N("IconLoading"), C = N("el-button"), R = N("el-tag"), F = N("StatusItem"), J = N("MultipleSelect"), te = N("el-option"), Q = N("el-select");
|
|
2812
|
-
return
|
|
2813
|
-
t(o).loading ? (
|
|
2814
|
-
e.multiple ? (
|
|
2823
|
+
return c(), A("div", ol, [
|
|
2824
|
+
t(o).loading ? (c(), E(n, { key: 0 })) : Y("", !0),
|
|
2825
|
+
e.multiple ? (c(), E(J, Z({
|
|
2815
2826
|
key: 1,
|
|
2816
2827
|
ref: "multipleSelect",
|
|
2817
2828
|
modelValue: t(o).multiple,
|
|
@@ -2826,10 +2837,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2826
2837
|
"filter-method": k,
|
|
2827
2838
|
"collapse-tags": "",
|
|
2828
2839
|
"collapse-tags-tooltip": ""
|
|
2829
|
-
}, T.$attrs, { onChange:
|
|
2840
|
+
}, T.$attrs, { onChange: D }), {
|
|
2830
2841
|
header: b(() => [
|
|
2831
|
-
|
|
2832
|
-
t(o).filterTxt ? (
|
|
2842
|
+
p("div", ll, [
|
|
2843
|
+
t(o).filterTxt ? (c(), E(C, {
|
|
2833
2844
|
key: 0,
|
|
2834
2845
|
onClick: r,
|
|
2835
2846
|
class: "outsideIgnore"
|
|
@@ -2854,21 +2865,21 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2854
2865
|
})
|
|
2855
2866
|
]),
|
|
2856
2867
|
default: b(({ it: U }) => [
|
|
2857
|
-
|
|
2868
|
+
p("div", al, [
|
|
2858
2869
|
z(F, {
|
|
2859
2870
|
status: U.status,
|
|
2860
2871
|
nolabel: "",
|
|
2861
2872
|
class: "noShrink"
|
|
2862
2873
|
}, null, 8, ["status"]),
|
|
2863
|
-
U.readonly === !1 ? (
|
|
2864
|
-
|
|
2874
|
+
U.readonly === !1 ? (c(), A("i", nl)) : Y("", !0),
|
|
2875
|
+
p("span", sl, I(U.name), 1)
|
|
2865
2876
|
])
|
|
2866
2877
|
]),
|
|
2867
2878
|
footer: b(() => [
|
|
2868
|
-
|
|
2879
|
+
p("div", rl, [
|
|
2869
2880
|
z(C, {
|
|
2870
2881
|
type: "primary",
|
|
2871
|
-
onClick:
|
|
2882
|
+
onClick: he(O, ["stop"])
|
|
2872
2883
|
}, {
|
|
2873
2884
|
default: b(() => [
|
|
2874
2885
|
ne(I(T.$l("Confirm")), 1)
|
|
@@ -2878,14 +2889,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2878
2889
|
])
|
|
2879
2890
|
]),
|
|
2880
2891
|
_: 1
|
|
2881
|
-
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (
|
|
2882
|
-
|
|
2892
|
+
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (c(), A("div", il, [
|
|
2893
|
+
p("div", dl, [
|
|
2883
2894
|
z(C, {
|
|
2884
2895
|
circle: "",
|
|
2885
2896
|
onClick: l[1] || (l[1] = (U) => T.$copy(t(o).single, "ID"))
|
|
2886
2897
|
}, {
|
|
2887
2898
|
icon: b(() => [...l[3] || (l[3] = [
|
|
2888
|
-
|
|
2899
|
+
p("i", { class: "imicon im-copy" }, null, -1)
|
|
2889
2900
|
])]),
|
|
2890
2901
|
_: 1
|
|
2891
2902
|
})
|
|
@@ -2902,20 +2913,20 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2902
2913
|
onChange: w
|
|
2903
2914
|
}), ae({
|
|
2904
2915
|
default: b(() => [
|
|
2905
|
-
(
|
|
2916
|
+
(c(!0), A(ie, null, de(t(d), (U, ce) => (c(), E(te, {
|
|
2906
2917
|
key: ce,
|
|
2907
2918
|
label: U.name,
|
|
2908
2919
|
value: U[e.value]
|
|
2909
2920
|
}, {
|
|
2910
2921
|
default: b(() => [
|
|
2911
|
-
|
|
2922
|
+
p("div", ul, [
|
|
2912
2923
|
z(F, {
|
|
2913
2924
|
status: U.status,
|
|
2914
2925
|
nolabel: "",
|
|
2915
2926
|
class: "noShrink"
|
|
2916
2927
|
}, null, 8, ["status"]),
|
|
2917
|
-
U.readonly === !1 ? (
|
|
2918
|
-
|
|
2928
|
+
U.readonly === !1 ? (c(), A("i", cl)) : Y("", !0),
|
|
2929
|
+
p("span", pl, I(U.name), 1)
|
|
2919
2930
|
])
|
|
2920
2931
|
]),
|
|
2921
2932
|
_: 2
|
|
@@ -2939,9 +2950,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2939
2950
|
]);
|
|
2940
2951
|
};
|
|
2941
2952
|
}
|
|
2942
|
-
}),
|
|
2953
|
+
}), gl = { class: "SuperAsaOrg relative" }, yl = { class: "inputGroup" }, hl = { class: "inputGroupLeft noShrink" }, _l = { class: "flexMode vc g4" }, bl = { class: "txt-dark5" }, vl = P({
|
|
2943
2954
|
name: "SuperAsaOrg"
|
|
2944
|
-
}),
|
|
2955
|
+
}), wl = /* @__PURE__ */ Object.assign(vl, {
|
|
2945
2956
|
props: {
|
|
2946
2957
|
app: {
|
|
2947
2958
|
type: Number,
|
|
@@ -2973,85 +2984,85 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2973
2984
|
"error",
|
|
2974
2985
|
"change"
|
|
2975
2986
|
],
|
|
2976
|
-
setup(M, { emit:
|
|
2987
|
+
setup(M, { emit: x }) {
|
|
2977
2988
|
const s = M, e = H({
|
|
2978
2989
|
loading: !1,
|
|
2979
2990
|
single: "",
|
|
2980
2991
|
multiple: [],
|
|
2981
2992
|
options: []
|
|
2982
|
-
}),
|
|
2993
|
+
}), h = pe("store").asa();
|
|
2983
2994
|
re(() => {
|
|
2984
|
-
|
|
2995
|
+
y();
|
|
2985
2996
|
});
|
|
2986
|
-
const a =
|
|
2987
|
-
f.value.length ? (e.single ||
|
|
2988
|
-
},
|
|
2997
|
+
const a = x, y = async () => {
|
|
2998
|
+
f.value.length ? (e.single || V(f.value[0].id), a("success")) : a("error");
|
|
2999
|
+
}, V = (u) => {
|
|
2989
3000
|
var m, S, d, i;
|
|
2990
3001
|
a("update:modelValue", u), a("update:name", (m = r.value) == null ? void 0 : m.name), a("update:currency", (S = r.value) == null ? void 0 : S.currency), a("update:timezone", (d = r.value) == null ? void 0 : d.timezone), a("update:readonly", (i = r.value) == null ? void 0 : i.readonly), s.changeImmediately && a("change", u), s.unTimezone || O();
|
|
2991
3002
|
}, O = () => {
|
|
2992
3003
|
var m;
|
|
2993
3004
|
let u = r.value;
|
|
2994
|
-
|
|
3005
|
+
h.saveData("accountTimezone", {
|
|
2995
3006
|
timezoneName: u == null ? void 0 : u.timezone,
|
|
2996
3007
|
tip: "Account",
|
|
2997
|
-
timezone: (m =
|
|
3008
|
+
timezone: (m = ge("common.timezone").filter1(
|
|
2998
3009
|
(S) => S.label === (u == null ? void 0 : u.timezone)
|
|
2999
3010
|
).data) == null ? void 0 : m.value
|
|
3000
3011
|
});
|
|
3001
|
-
},
|
|
3012
|
+
}, D = () => {
|
|
3002
3013
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
3003
3014
|
}, w = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
3004
3015
|
var u;
|
|
3005
|
-
return s.app ? ((u =
|
|
3016
|
+
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
3006
3017
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
3007
3018
|
return X(
|
|
3008
3019
|
() => s.modelValue,
|
|
3009
3020
|
(u) => {
|
|
3010
|
-
u ? u !== e.single && (e.single = u,
|
|
3021
|
+
u ? u !== e.single && (e.single = u, V(u)) : D();
|
|
3011
3022
|
},
|
|
3012
3023
|
{
|
|
3013
3024
|
immediate: !0
|
|
3014
3025
|
}
|
|
3015
3026
|
), (u, m) => {
|
|
3016
3027
|
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), $ = N("el-select");
|
|
3017
|
-
return
|
|
3018
|
-
t(e).loading ? (
|
|
3019
|
-
|
|
3020
|
-
|
|
3028
|
+
return c(), A("div", gl, [
|
|
3029
|
+
t(e).loading ? (c(), E(S, { key: 0 })) : Y("", !0),
|
|
3030
|
+
p("div", yl, [
|
|
3031
|
+
p("div", hl, [
|
|
3021
3032
|
z(d, {
|
|
3022
3033
|
circle: "",
|
|
3023
|
-
onClick: m[0] || (m[0] = (
|
|
3034
|
+
onClick: m[0] || (m[0] = (_) => u.$copy(t(e).single, "ID"))
|
|
3024
3035
|
}, {
|
|
3025
3036
|
icon: b(() => [...m[2] || (m[2] = [
|
|
3026
|
-
|
|
3037
|
+
p("i", { class: "imicon im-copy" }, null, -1)
|
|
3027
3038
|
])]),
|
|
3028
3039
|
_: 1
|
|
3029
3040
|
})
|
|
3030
3041
|
]),
|
|
3031
3042
|
z($, Z({
|
|
3032
3043
|
modelValue: t(e).single,
|
|
3033
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
3044
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
3034
3045
|
placeholder: t(w),
|
|
3035
3046
|
disabled: t(k),
|
|
3036
3047
|
filterable: ""
|
|
3037
3048
|
}, u.$attrs, {
|
|
3038
3049
|
class: "inputGroupRight",
|
|
3039
|
-
onChange:
|
|
3050
|
+
onChange: V
|
|
3040
3051
|
}), {
|
|
3041
3052
|
default: b(() => [
|
|
3042
|
-
(
|
|
3053
|
+
(c(!0), A(ie, null, de(t(f), (_, B) => (c(), E(i, {
|
|
3043
3054
|
key: B,
|
|
3044
|
-
label: `${
|
|
3045
|
-
value:
|
|
3046
|
-
disabled: s.readonly &&
|
|
3055
|
+
label: `${_.name} (${_.id})`,
|
|
3056
|
+
value: _.id,
|
|
3057
|
+
disabled: s.readonly && _.readonly
|
|
3047
3058
|
}, {
|
|
3048
3059
|
default: b(() => [
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
class: K(["imicon",
|
|
3060
|
+
p("div", _l, [
|
|
3061
|
+
p("i", {
|
|
3062
|
+
class: K(["imicon", _.readonly ? "" : "im-writing"])
|
|
3052
3063
|
}, null, 2),
|
|
3053
|
-
|
|
3054
|
-
|
|
3064
|
+
p("span", null, I(_.name), 1),
|
|
3065
|
+
p("span", bl, "(" + I(_.id) + ")", 1)
|
|
3055
3066
|
])
|
|
3056
3067
|
]),
|
|
3057
3068
|
_: 2
|
|
@@ -3063,9 +3074,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3063
3074
|
]);
|
|
3064
3075
|
};
|
|
3065
3076
|
}
|
|
3066
|
-
}),
|
|
3077
|
+
}), $l = P({
|
|
3067
3078
|
name: "SuperCountry"
|
|
3068
|
-
}),
|
|
3079
|
+
}), Sl = /* @__PURE__ */ Object.assign($l, {
|
|
3069
3080
|
props: {
|
|
3070
3081
|
type: {
|
|
3071
3082
|
type: String,
|
|
@@ -3077,25 +3088,25 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3077
3088
|
}
|
|
3078
3089
|
},
|
|
3079
3090
|
setup(M) {
|
|
3080
|
-
const
|
|
3081
|
-
CountryAso:
|
|
3091
|
+
const x = be(() => Promise.resolve().then(() => Da)), s = be(() => Promise.resolve().then(() => Ba)), e = {
|
|
3092
|
+
CountryAso: x,
|
|
3082
3093
|
CountryDiy: s
|
|
3083
|
-
}, o = M,
|
|
3084
|
-
return (
|
|
3094
|
+
}, o = M, h = g(() => e["Country" + window.$toUpperCamel(o.type)]), a = g(() => o.nowrap);
|
|
3095
|
+
return (y, V) => (c(), A("div", {
|
|
3085
3096
|
class: K(["SuperCountry", o.nowrap && "nowrap"])
|
|
3086
3097
|
}, [
|
|
3087
|
-
(
|
|
3098
|
+
(c(), E(ze(t(h)), Z(y.$attrs, {
|
|
3088
3099
|
"collapse-tags": t(a),
|
|
3089
3100
|
"collapse-tags-tooltip": t(a)
|
|
3090
3101
|
}), null, 16, ["collapse-tags", "collapse-tags-tooltip"]))
|
|
3091
3102
|
], 2));
|
|
3092
3103
|
}
|
|
3093
|
-
}),
|
|
3104
|
+
}), Cl = ["title"], kl = {
|
|
3094
3105
|
key: 0,
|
|
3095
3106
|
class: "pl4"
|
|
3096
|
-
},
|
|
3107
|
+
}, xl = P({
|
|
3097
3108
|
name: "SuperCountryItem"
|
|
3098
|
-
}),
|
|
3109
|
+
}), Vl = /* @__PURE__ */ Object.assign(xl, {
|
|
3099
3110
|
props: {
|
|
3100
3111
|
name: {
|
|
3101
3112
|
type: String,
|
|
@@ -3115,35 +3126,35 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3115
3126
|
}
|
|
3116
3127
|
},
|
|
3117
3128
|
setup(M) {
|
|
3118
|
-
const
|
|
3129
|
+
const x = M;
|
|
3119
3130
|
H({});
|
|
3120
3131
|
const e = pe("store").common(), o = g(() => {
|
|
3121
|
-
const O =
|
|
3122
|
-
return e.countryObj[O] ||
|
|
3123
|
-
}),
|
|
3132
|
+
const O = x.name.toLowerCase();
|
|
3133
|
+
return e.countryObj[O] || ge("country.countryAllObj")[O] || {};
|
|
3134
|
+
}), h = g(() => `fi-${o.value.value_lower}`);
|
|
3124
3135
|
g(() => window.$getLang());
|
|
3125
|
-
const a = g(() => window.$l(o.value.label)),
|
|
3126
|
-
const O = parseInt(
|
|
3136
|
+
const a = g(() => window.$l(o.value.label)), y = g(() => {
|
|
3137
|
+
const O = parseInt(x.size);
|
|
3127
3138
|
return {
|
|
3128
3139
|
width: O + "px",
|
|
3129
3140
|
height: O + "px"
|
|
3130
3141
|
};
|
|
3131
|
-
}),
|
|
3132
|
-
return
|
|
3142
|
+
}), V = g(() => `radius${Number(x.radius) || 2}`);
|
|
3143
|
+
return ge("country.countryAllObj"), (O, D) => (c(), A("div", {
|
|
3133
3144
|
class: "SuperCountryItem flexMode vc g4",
|
|
3134
3145
|
title: t(a)
|
|
3135
3146
|
}, [
|
|
3136
|
-
|
|
3137
|
-
class: K(["box-shadow-gray3 fi fis noShrink", [t(
|
|
3138
|
-
style: me(t(
|
|
3147
|
+
p("span", {
|
|
3148
|
+
class: K(["box-shadow-gray3 fi fis noShrink", [t(h), t(V)]]),
|
|
3149
|
+
style: me(t(y))
|
|
3139
3150
|
}, null, 6),
|
|
3140
|
-
|
|
3141
|
-
], 8,
|
|
3151
|
+
x.nolabel ? Y("", !0) : (c(), A("span", kl, I(t(a)), 1))
|
|
3152
|
+
], 8, Cl));
|
|
3142
3153
|
}
|
|
3143
|
-
}),
|
|
3154
|
+
}), Ol = { class: "SuperOrg relative wp100" }, Tl = P({
|
|
3144
3155
|
name: "SuperOrg",
|
|
3145
3156
|
inheritAttrs: !1
|
|
3146
|
-
}),
|
|
3157
|
+
}), Al = /* @__PURE__ */ Object.assign(Tl, {
|
|
3147
3158
|
props: {
|
|
3148
3159
|
modelValue: {
|
|
3149
3160
|
type: [Number, String],
|
|
@@ -3155,18 +3166,18 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3155
3166
|
}
|
|
3156
3167
|
},
|
|
3157
3168
|
emits: "change",
|
|
3158
|
-
setup(M, { emit:
|
|
3169
|
+
setup(M, { emit: x }) {
|
|
3159
3170
|
const s = M, e = H({
|
|
3160
3171
|
loading: !1,
|
|
3161
3172
|
v: "",
|
|
3162
3173
|
orgOptions: []
|
|
3163
|
-
}),
|
|
3174
|
+
}), h = pe("store").asa();
|
|
3164
3175
|
re(() => {
|
|
3165
|
-
|
|
3176
|
+
y();
|
|
3166
3177
|
});
|
|
3167
|
-
const a =
|
|
3168
|
-
if (
|
|
3169
|
-
e.orgOptions =
|
|
3178
|
+
const a = x, y = async () => {
|
|
3179
|
+
if (h.orgOptions.length > 0) {
|
|
3180
|
+
e.orgOptions = h.orgOptions, a("success", e.orgOptions), fe(() => {
|
|
3170
3181
|
const f = e.orgOptions.filter1(
|
|
3171
3182
|
(r) => r.orgId === e.v
|
|
3172
3183
|
).data;
|
|
@@ -3175,31 +3186,31 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3175
3186
|
return;
|
|
3176
3187
|
}
|
|
3177
3188
|
e.loading = !0;
|
|
3178
|
-
const { code:
|
|
3189
|
+
const { code: D, data: w } = await window.$post({
|
|
3179
3190
|
url: window.$api.asa.orgOptions
|
|
3180
3191
|
});
|
|
3181
|
-
e.loading = !1,
|
|
3192
|
+
e.loading = !1, D === 200 && (e.orgOptions = w.map((f) => (f.label = `${f.orgName} (${f.orgId})`, f)), h.saveData("orgOptions", e.orgOptions), fe(() => {
|
|
3182
3193
|
const f = e.orgOptions.filter1(
|
|
3183
3194
|
(r) => r.orgId === e.v
|
|
3184
3195
|
).data;
|
|
3185
3196
|
a("update:paymentModel", f == null ? void 0 : f.paymentModel);
|
|
3186
3197
|
}), a("success", e.orgOptions));
|
|
3187
|
-
},
|
|
3188
|
-
a("update:modelValue",
|
|
3189
|
-
const w = e.orgOptions.filter1((f) => f.orgId ===
|
|
3190
|
-
a("update:currency", w == null ? void 0 : w.currency), a("update:name", w == null ? void 0 : w.orgName), a("update:timezone", w == null ? void 0 : w.timezone), a("update:paymentModel", w == null ? void 0 : w.paymentModel), a("change",
|
|
3198
|
+
}, V = (D) => {
|
|
3199
|
+
a("update:modelValue", D);
|
|
3200
|
+
const w = e.orgOptions.filter1((f) => f.orgId === D).data;
|
|
3201
|
+
a("update:currency", w == null ? void 0 : w.currency), a("update:name", w == null ? void 0 : w.orgName), a("update:timezone", w == null ? void 0 : w.timezone), a("update:paymentModel", w == null ? void 0 : w.paymentModel), a("change", D);
|
|
3191
3202
|
}, O = g(() => {
|
|
3192
3203
|
if (s.permission === "all")
|
|
3193
3204
|
return e.orgOptions;
|
|
3194
3205
|
{
|
|
3195
|
-
const
|
|
3196
|
-
return e.orgOptions.filter((f) => f.readonly ===
|
|
3206
|
+
const D = s.permission === "readonly";
|
|
3207
|
+
return e.orgOptions.filter((f) => f.readonly === D);
|
|
3197
3208
|
}
|
|
3198
3209
|
});
|
|
3199
3210
|
return X(
|
|
3200
3211
|
() => s.modelValue,
|
|
3201
|
-
(
|
|
3202
|
-
|
|
3212
|
+
(D) => {
|
|
3213
|
+
D ? D !== e.v && (e.v = D, fe(() => {
|
|
3203
3214
|
const w = e.orgOptions.filter1(
|
|
3204
3215
|
(f) => f.orgId === e.v
|
|
3205
3216
|
).data;
|
|
@@ -3209,10 +3220,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3209
3220
|
{
|
|
3210
3221
|
immediate: !0
|
|
3211
3222
|
}
|
|
3212
|
-
), (
|
|
3223
|
+
), (D, w) => {
|
|
3213
3224
|
const f = N("IconLoading"), r = N("el-option"), k = N("el-select");
|
|
3214
|
-
return
|
|
3215
|
-
t(e).loading ? (
|
|
3225
|
+
return c(), A("div", Ol, [
|
|
3226
|
+
t(e).loading ? (c(), E(f, { key: 0 })) : Y("", !0),
|
|
3216
3227
|
z(k, {
|
|
3217
3228
|
modelValue: t(e).v,
|
|
3218
3229
|
"onUpdate:modelValue": w[0] || (w[0] = (u) => t(e).v = u),
|
|
@@ -3220,10 +3231,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3220
3231
|
"collapse-tags": "",
|
|
3221
3232
|
placeholder: " ",
|
|
3222
3233
|
class: "wp100",
|
|
3223
|
-
onChange:
|
|
3234
|
+
onChange: V
|
|
3224
3235
|
}, {
|
|
3225
3236
|
default: b(() => [
|
|
3226
|
-
(
|
|
3237
|
+
(c(!0), A(ie, null, de(t(O), (u, m) => (c(), E(r, {
|
|
3227
3238
|
key: m,
|
|
3228
3239
|
label: u.label,
|
|
3229
3240
|
value: u.orgId
|
|
@@ -3234,9 +3245,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3234
3245
|
]);
|
|
3235
3246
|
};
|
|
3236
3247
|
}
|
|
3237
|
-
}),
|
|
3248
|
+
}), Dl = { class: "SuperStatusItem flexMode vc g8" }, Ml = P({
|
|
3238
3249
|
name: "SuperStatusItem"
|
|
3239
|
-
}),
|
|
3250
|
+
}), Nl = /* @__PURE__ */ Object.assign(Ml, {
|
|
3240
3251
|
props: {
|
|
3241
3252
|
status: {
|
|
3242
3253
|
type: String,
|
|
@@ -3272,35 +3283,33 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3272
3283
|
}
|
|
3273
3284
|
},
|
|
3274
3285
|
emits: ["changeStatus"],
|
|
3275
|
-
setup(M, { emit:
|
|
3276
|
-
const s = M, e =
|
|
3286
|
+
setup(M, { emit: x }) {
|
|
3287
|
+
const s = M, e = x, o = () => {
|
|
3277
3288
|
s.isButton && e("changeStatus", s.status, s.id1, s.id2, s.id3);
|
|
3278
|
-
},
|
|
3279
|
-
g(() => s.lang || window.$getLang());
|
|
3280
|
-
const h = g(() => x[s.size] || "fs12"), x = {
|
|
3289
|
+
}, h = g(() => ge("statusMap")[s.status] || !1), a = g(() => window.$toUpperCamel(s.status)), y = g(() => V[s.size] || "fs12"), V = {
|
|
3281
3290
|
small: "fs12",
|
|
3282
3291
|
default: "fs16",
|
|
3283
3292
|
large: "fs24"
|
|
3284
3293
|
};
|
|
3285
|
-
return (O,
|
|
3286
|
-
t(
|
|
3294
|
+
return (O, D) => (c(), A("div", Dl, [
|
|
3295
|
+
t(h) ? (c(), A("i", {
|
|
3287
3296
|
key: 0,
|
|
3288
3297
|
class: K(["imicon", [
|
|
3289
|
-
t(
|
|
3290
|
-
t(
|
|
3291
|
-
s.isButton && s.status !== "DELETED" ? t(
|
|
3298
|
+
t(h).class,
|
|
3299
|
+
t(y),
|
|
3300
|
+
s.isButton && s.status !== "DELETED" ? t(h).button_class : ""
|
|
3292
3301
|
]]),
|
|
3293
3302
|
onClick: o
|
|
3294
3303
|
}, null, 2)) : Y("", !0),
|
|
3295
|
-
s.nolabel ? Y("", !0) : (
|
|
3304
|
+
s.nolabel ? Y("", !0) : (c(), A("span", {
|
|
3296
3305
|
key: 1,
|
|
3297
|
-
class: K(["txt-h1", t(
|
|
3298
|
-
}, I(O.$l(t(
|
|
3306
|
+
class: K(["txt-h1", t(y)])
|
|
3307
|
+
}, I(O.$l(t(h) ? t(h).label : t(a))), 3))
|
|
3299
3308
|
]));
|
|
3300
3309
|
}
|
|
3301
|
-
}),
|
|
3310
|
+
}), Il = { class: "SuperStatusSelect" }, zl = P({
|
|
3302
3311
|
name: "SuperStatusSelect"
|
|
3303
|
-
}),
|
|
3312
|
+
}), Bl = /* @__PURE__ */ Object.assign(zl, {
|
|
3304
3313
|
props: {
|
|
3305
3314
|
modelValue: {
|
|
3306
3315
|
type: String,
|
|
@@ -3316,32 +3325,32 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3316
3325
|
}
|
|
3317
3326
|
},
|
|
3318
3327
|
setup(M) {
|
|
3319
|
-
const
|
|
3328
|
+
const x = M, s = H({
|
|
3320
3329
|
v: ""
|
|
3321
|
-
}), { proxy: e } = se(), o = g(() => window.$getLang()),
|
|
3322
|
-
const O =
|
|
3330
|
+
}), { proxy: e } = se(), o = g(() => window.$getLang()), h = g(() => e.$slots), a = g(() => x.options.length ? x.options : ["RUNNING", "PAUSED"]), y = g(() => {
|
|
3331
|
+
const O = x.placeholder || "Status";
|
|
3323
3332
|
return window.$l(O);
|
|
3324
3333
|
});
|
|
3325
|
-
|
|
3326
|
-
s.v =
|
|
3334
|
+
Be(() => {
|
|
3335
|
+
s.v = x.modelValue;
|
|
3327
3336
|
});
|
|
3328
|
-
const
|
|
3329
|
-
return (O,
|
|
3337
|
+
const V = ge("statusMap");
|
|
3338
|
+
return (O, D) => {
|
|
3330
3339
|
const w = N("StatusItem"), f = N("el-option"), r = N("el-select");
|
|
3331
|
-
return
|
|
3340
|
+
return c(), A("div", Il, [
|
|
3332
3341
|
z(r, Z({
|
|
3333
3342
|
modelValue: t(s).v,
|
|
3334
|
-
"onUpdate:modelValue":
|
|
3343
|
+
"onUpdate:modelValue": D[0] || (D[0] = (k) => t(s).v = k),
|
|
3335
3344
|
"collapse-tags": "",
|
|
3336
3345
|
"collapse-tags-tooltip": ""
|
|
3337
3346
|
}, O.$attrs, {
|
|
3338
|
-
placeholder: t(
|
|
3347
|
+
placeholder: t(y),
|
|
3339
3348
|
onChange: O.change
|
|
3340
3349
|
}), ae({
|
|
3341
3350
|
default: b(() => [
|
|
3342
|
-
(
|
|
3351
|
+
(c(!0), A(ie, null, de(t(a), (k, u) => (c(), E(f, {
|
|
3343
3352
|
key: k,
|
|
3344
|
-
label: O.$l(t(
|
|
3353
|
+
label: O.$l(t(V)[k].label),
|
|
3345
3354
|
value: k
|
|
3346
3355
|
}, {
|
|
3347
3356
|
default: b(() => [
|
|
@@ -3358,7 +3367,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3358
3367
|
t(s).v ? {
|
|
3359
3368
|
name: "prefix",
|
|
3360
3369
|
fn: b(() => [
|
|
3361
|
-
t(
|
|
3370
|
+
t(h).prefix ? W(O.$slots, "prefix", { key: 0 }) : (c(), E(w, {
|
|
3362
3371
|
key: 1,
|
|
3363
3372
|
status: t(s).v,
|
|
3364
3373
|
nolabel: "",
|
|
@@ -3371,36 +3380,36 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3371
3380
|
]);
|
|
3372
3381
|
};
|
|
3373
3382
|
}
|
|
3374
|
-
}),
|
|
3375
|
-
Card:
|
|
3376
|
-
DatePicker:
|
|
3377
|
-
EChart:
|
|
3378
|
-
Icon:
|
|
3379
|
-
Image:
|
|
3380
|
-
Input:
|
|
3381
|
-
MultipleSelect:
|
|
3382
|
-
Nodata:
|
|
3383
|
-
Page:
|
|
3384
|
-
Table:
|
|
3385
|
-
TableFooter:
|
|
3386
|
-
Textarea:
|
|
3387
|
-
AiApp:
|
|
3388
|
-
AiOrg:
|
|
3389
|
-
AsaAdGroup:
|
|
3390
|
-
AsaApp:
|
|
3391
|
-
AsaCampaign:
|
|
3392
|
-
AsaOrg:
|
|
3393
|
-
Country:
|
|
3394
|
-
CountryItem:
|
|
3395
|
-
Org:
|
|
3396
|
-
StatusItem:
|
|
3397
|
-
StatusSelect:
|
|
3398
|
-
},
|
|
3399
|
-
for (let
|
|
3400
|
-
M.component(
|
|
3401
|
-
},
|
|
3383
|
+
}), Te = {
|
|
3384
|
+
Card: Ge,
|
|
3385
|
+
DatePicker: Ke,
|
|
3386
|
+
EChart: Xe,
|
|
3387
|
+
Icon: lt,
|
|
3388
|
+
Image: it,
|
|
3389
|
+
Input: ct,
|
|
3390
|
+
MultipleSelect: $t,
|
|
3391
|
+
Nodata: xt,
|
|
3392
|
+
Page: jt,
|
|
3393
|
+
Table: $o,
|
|
3394
|
+
TableFooter: Ie,
|
|
3395
|
+
Textarea: Vo,
|
|
3396
|
+
AiApp: No,
|
|
3397
|
+
AiOrg: Lo,
|
|
3398
|
+
AsaAdGroup: Wo,
|
|
3399
|
+
AsaApp: tl,
|
|
3400
|
+
AsaCampaign: fl,
|
|
3401
|
+
AsaOrg: wl,
|
|
3402
|
+
Country: Sl,
|
|
3403
|
+
CountryItem: Vl,
|
|
3404
|
+
Org: Al,
|
|
3405
|
+
StatusItem: Nl,
|
|
3406
|
+
StatusSelect: Bl
|
|
3407
|
+
}, Ga = (M) => {
|
|
3408
|
+
for (let x in Te)
|
|
3409
|
+
M.component(x, Te[x]);
|
|
3410
|
+
}, jl = { class: "dragCenter flexMode vc flexGrow txt-nowrap" }, Yl = { class: "pl10 fs14 txt-h2" }, El = { class: "pb5 fs12 txt-primary3" }, Ll = P({
|
|
3402
3411
|
name: "ColumnConfigDragItem"
|
|
3403
|
-
}),
|
|
3412
|
+
}), Rl = /* @__PURE__ */ Object.assign(Ll, {
|
|
3404
3413
|
props: {
|
|
3405
3414
|
modelValue: {
|
|
3406
3415
|
type: Object,
|
|
@@ -3423,7 +3432,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3423
3432
|
default: "en_us"
|
|
3424
3433
|
}
|
|
3425
3434
|
},
|
|
3426
|
-
setup(M, { emit:
|
|
3435
|
+
setup(M, { emit: x }) {
|
|
3427
3436
|
const s = M, e = H({
|
|
3428
3437
|
editMode: !1,
|
|
3429
3438
|
form: {},
|
|
@@ -3432,15 +3441,15 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3432
3441
|
re(() => {
|
|
3433
3442
|
e.form = s.it;
|
|
3434
3443
|
});
|
|
3435
|
-
const o =
|
|
3444
|
+
const o = x, h = () => {
|
|
3436
3445
|
o("add-left", s);
|
|
3437
3446
|
}, a = () => {
|
|
3438
3447
|
o("add-right", s);
|
|
3439
|
-
},
|
|
3448
|
+
}, y = (D) => {
|
|
3440
3449
|
o("change", { it: e.form, index: s.index, type: s.type });
|
|
3441
3450
|
};
|
|
3442
3451
|
g(() => e.form.align ? " " : O[0].label);
|
|
3443
|
-
const
|
|
3452
|
+
const V = g(() => s.it.nomove || e.editMode), O = [
|
|
3444
3453
|
{
|
|
3445
3454
|
label: "Left",
|
|
3446
3455
|
value: "left"
|
|
@@ -3454,73 +3463,73 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3454
3463
|
value: "right"
|
|
3455
3464
|
}
|
|
3456
3465
|
];
|
|
3457
|
-
return (
|
|
3466
|
+
return (D, w) => {
|
|
3458
3467
|
const f = N("el-switch");
|
|
3459
|
-
return
|
|
3460
|
-
class: K(["ColumnConfigDragItem", [!t(
|
|
3468
|
+
return c(), A("div", {
|
|
3469
|
+
class: K(["ColumnConfigDragItem", [!t(V) && "drag", s.type]])
|
|
3461
3470
|
}, [
|
|
3462
|
-
|
|
3471
|
+
p("div", {
|
|
3463
3472
|
class: K(["itemArea relative flexMode vc p4", [
|
|
3464
3473
|
t(e).editMode && "edit",
|
|
3465
|
-
t(
|
|
3474
|
+
t(V) ? "cursor-disabled hover-bg-gray1" : "cursor-grab hover-bg-primary1"
|
|
3466
3475
|
]])
|
|
3467
3476
|
}, [
|
|
3468
|
-
|
|
3477
|
+
p("div", {
|
|
3469
3478
|
class: "arrowLeft ml4 mr8 circle24 hover-txt-primary",
|
|
3470
|
-
onClick:
|
|
3479
|
+
onClick: he(h, ["stop"])
|
|
3471
3480
|
}, [...w[1] || (w[1] = [
|
|
3472
|
-
|
|
3481
|
+
p("i", { class: "imicon im-arrow-left" }, null, -1)
|
|
3473
3482
|
])]),
|
|
3474
|
-
|
|
3483
|
+
p("div", jl, [
|
|
3475
3484
|
z(f, {
|
|
3476
3485
|
modelValue: t(e).form.visible,
|
|
3477
3486
|
"onUpdate:modelValue": w[0] || (w[0] = (r) => t(e).form.visible = r),
|
|
3478
3487
|
disabled: t(e).form.nomove,
|
|
3479
3488
|
size: "default",
|
|
3480
|
-
onChange:
|
|
3489
|
+
onChange: y
|
|
3481
3490
|
}, null, 8, ["modelValue", "disabled"]),
|
|
3482
|
-
|
|
3491
|
+
p("span", Yl, I(t(e).form.label || t(e).form.type), 1)
|
|
3483
3492
|
]),
|
|
3484
|
-
|
|
3485
|
-
|
|
3493
|
+
p("span", El, I(t(e).form.tips), 1),
|
|
3494
|
+
p("div", {
|
|
3486
3495
|
class: "arrowRight mr4 ml8 circle24 hover-txt-primary",
|
|
3487
|
-
onClick:
|
|
3496
|
+
onClick: he(a, ["stop"])
|
|
3488
3497
|
}, [...w[2] || (w[2] = [
|
|
3489
|
-
|
|
3498
|
+
p("i", { class: "imicon im-arrow-right" }, null, -1)
|
|
3490
3499
|
])])
|
|
3491
3500
|
], 2)
|
|
3492
3501
|
], 2);
|
|
3493
3502
|
};
|
|
3494
3503
|
}
|
|
3495
|
-
}),
|
|
3504
|
+
}), Ce = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-34f8430d"]]), Pl = { class: "flexMode vs p16 g16" }, Fl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Ul = { class: "fs12 txt-primary" }, Gl = { class: "fs12 txt-dark5" }, Hl = {
|
|
3496
3505
|
key: 0,
|
|
3497
3506
|
class: "fs12 txt-dark3"
|
|
3498
|
-
},
|
|
3507
|
+
}, Jl = {
|
|
3499
3508
|
key: 0,
|
|
3500
3509
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3501
|
-
},
|
|
3510
|
+
}, Kl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Wl = { class: "fs12 txt-primary" }, ql = { class: "fs12 txt-dark5" }, Zl = {
|
|
3502
3511
|
key: 0,
|
|
3503
3512
|
class: "fs12 txt-dark3"
|
|
3504
|
-
},
|
|
3513
|
+
}, Ql = {
|
|
3505
3514
|
key: 0,
|
|
3506
3515
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3507
|
-
},
|
|
3516
|
+
}, Xl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, ea = { class: "fs12 txt-primary" }, ta = { class: "fs12 txt-dark5" }, oa = {
|
|
3508
3517
|
key: 0,
|
|
3509
3518
|
class: "fs12 txt-dark3"
|
|
3510
|
-
},
|
|
3519
|
+
}, la = {
|
|
3511
3520
|
key: 0,
|
|
3512
3521
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3513
|
-
},
|
|
3522
|
+
}, aa = P({
|
|
3514
3523
|
name: "TableHeaderColumnConfig",
|
|
3515
3524
|
inheritAttrs: !1
|
|
3516
|
-
}),
|
|
3525
|
+
}), na = /* @__PURE__ */ Object.assign(aa, {
|
|
3517
3526
|
props: {
|
|
3518
3527
|
params: {
|
|
3519
3528
|
type: Object,
|
|
3520
3529
|
default: /* @__PURE__ */ Object.create(null)
|
|
3521
3530
|
}
|
|
3522
3531
|
},
|
|
3523
|
-
setup(M, { emit:
|
|
3532
|
+
setup(M, { emit: x }) {
|
|
3524
3533
|
const s = M, e = H({
|
|
3525
3534
|
loading: !1,
|
|
3526
3535
|
left: [],
|
|
@@ -3529,78 +3538,78 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3529
3538
|
total: 0
|
|
3530
3539
|
});
|
|
3531
3540
|
re(() => {
|
|
3532
|
-
|
|
3541
|
+
h();
|
|
3533
3542
|
});
|
|
3534
|
-
const o =
|
|
3543
|
+
const o = x, h = () => {
|
|
3535
3544
|
a();
|
|
3536
3545
|
}, a = () => {
|
|
3537
3546
|
let $ = localStorage.getItem(k.value);
|
|
3538
3547
|
if ($) {
|
|
3539
3548
|
$ = JSON.parse($);
|
|
3540
|
-
let
|
|
3549
|
+
let _ = 0;
|
|
3541
3550
|
$.forEach((B) => {
|
|
3542
|
-
B.label && !B.nomove && (
|
|
3543
|
-
}), e.total =
|
|
3551
|
+
B.label && !B.nomove && (_++, B.fixed ? e[B.fixed].push(B) : e.center.push(B));
|
|
3552
|
+
}), e.total = _;
|
|
3544
3553
|
}
|
|
3545
|
-
},
|
|
3546
|
-
e.left.unshift($), e.center.splice(
|
|
3547
|
-
},
|
|
3548
|
-
e.right.unshift($), e.center.splice(
|
|
3549
|
-
}, O = ({ it: $, index:
|
|
3550
|
-
e.center.unshift($), e.left.splice(
|
|
3551
|
-
},
|
|
3552
|
-
e.center.unshift($), e.right.splice(
|
|
3553
|
-
}, w = ({ it: $, index:
|
|
3554
|
-
e[B][
|
|
3554
|
+
}, y = ({ it: $, index: _, type: B }) => {
|
|
3555
|
+
e.left.unshift($), e.center.splice(_, 1);
|
|
3556
|
+
}, V = ({ it: $, index: _, type: B }) => {
|
|
3557
|
+
e.right.unshift($), e.center.splice(_, 1);
|
|
3558
|
+
}, O = ({ it: $, index: _, type: B }) => {
|
|
3559
|
+
e.center.unshift($), e.left.splice(_, 1);
|
|
3560
|
+
}, D = ({ it: $, index: _, type: B }) => {
|
|
3561
|
+
e.center.unshift($), e.right.splice(_, 1);
|
|
3562
|
+
}, w = ({ it: $, index: _, type: B }) => {
|
|
3563
|
+
e[B][_] = $;
|
|
3555
3564
|
}, f = async () => {
|
|
3556
3565
|
e.loading = !0, localStorage.removeItem(k.value), window.$promise(() => {
|
|
3557
3566
|
e.loading = !1, o("submit", "column"), o("close");
|
|
3558
3567
|
});
|
|
3559
3568
|
}, r = async () => {
|
|
3560
3569
|
e.loading = !0, await window.$promise(() => {
|
|
3561
|
-
const { left: $, center:
|
|
3570
|
+
const { left: $, center: _, right: B } = e;
|
|
3562
3571
|
$.forEach((l, n) => {
|
|
3563
3572
|
l.fixed = "left", l.sort = n;
|
|
3564
|
-
}),
|
|
3573
|
+
}), _.forEach((l, n) => {
|
|
3565
3574
|
l.fixed = !1, l.sort = n;
|
|
3566
3575
|
}), B.forEach((l, n) => {
|
|
3567
3576
|
l.fixed = "right", l.sort = n;
|
|
3568
3577
|
});
|
|
3569
|
-
const T = [...$, ...
|
|
3578
|
+
const T = [...$, ..._, ...B].sort(
|
|
3570
3579
|
(l, n) => l.sort - n.sort
|
|
3571
3580
|
);
|
|
3572
3581
|
localStorage.setItem(k.value, JSON.stringify(T));
|
|
3573
3582
|
}, 10), e.loading = !1, o("submit", "column"), o("close");
|
|
3574
3583
|
}, k = g(() => `${s.params.tableName}_Column`), u = g(() => ({
|
|
3575
|
-
height: window.global.config.options.drawerHeight -
|
|
3584
|
+
height: window.global.config.options.drawerHeight - 80 + "px"
|
|
3576
3585
|
})), m = g(() => {
|
|
3577
|
-
let $ = 0,
|
|
3586
|
+
let $ = 0, _ = 0;
|
|
3578
3587
|
return e.left.forEach((B) => {
|
|
3579
|
-
B.visible ? $++ :
|
|
3588
|
+
B.visible ? $++ : _++;
|
|
3580
3589
|
}), {
|
|
3581
3590
|
visible: $,
|
|
3582
|
-
hide:
|
|
3591
|
+
hide: _
|
|
3583
3592
|
};
|
|
3584
3593
|
}), S = g(() => {
|
|
3585
|
-
let $ = 0,
|
|
3594
|
+
let $ = 0, _ = 0;
|
|
3586
3595
|
return e.center.forEach((B) => {
|
|
3587
|
-
B.visible ? $++ :
|
|
3596
|
+
B.visible ? $++ : _++;
|
|
3588
3597
|
}), {
|
|
3589
3598
|
visible: $,
|
|
3590
|
-
hide:
|
|
3599
|
+
hide: _
|
|
3591
3600
|
};
|
|
3592
3601
|
}), d = g(() => {
|
|
3593
|
-
let $ = 0,
|
|
3602
|
+
let $ = 0, _ = 0;
|
|
3594
3603
|
return e.right.forEach((B) => {
|
|
3595
|
-
B.visible ? $++ :
|
|
3604
|
+
B.visible ? $++ : _++;
|
|
3596
3605
|
}), {
|
|
3597
3606
|
visible: $,
|
|
3598
|
-
hide:
|
|
3607
|
+
hide: _
|
|
3599
3608
|
};
|
|
3600
3609
|
}), i = g(() => window.$getLang());
|
|
3601
|
-
return ($,
|
|
3610
|
+
return ($, _) => {
|
|
3602
3611
|
const B = N("Card"), T = N("el-button"), l = N("DrawerArea");
|
|
3603
|
-
return
|
|
3612
|
+
return c(), E(l, {
|
|
3604
3613
|
class: "TableHeaderColumnConfig",
|
|
3605
3614
|
loading: t(e).loading,
|
|
3606
3615
|
noscroll: "",
|
|
@@ -3611,8 +3620,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3611
3620
|
plain: "",
|
|
3612
3621
|
onClick: f
|
|
3613
3622
|
}, {
|
|
3614
|
-
icon: b(() => [...
|
|
3615
|
-
|
|
3623
|
+
icon: b(() => [..._[0] || (_[0] = [
|
|
3624
|
+
p("i", { class: "imicon im-reset" }, null, -1)
|
|
3616
3625
|
])]),
|
|
3617
3626
|
default: b(() => [
|
|
3618
3627
|
ne(" " + I($.$l("Reset")), 1)
|
|
@@ -3621,15 +3630,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3621
3630
|
})
|
|
3622
3631
|
]),
|
|
3623
3632
|
default: b(() => [
|
|
3624
|
-
|
|
3633
|
+
p("div", Pl, [
|
|
3625
3634
|
z(B, {
|
|
3626
3635
|
title: "Fixed on Left",
|
|
3627
3636
|
class: "flex1"
|
|
3628
3637
|
}, ae({
|
|
3629
3638
|
default: b(() => [
|
|
3630
|
-
t(e).left.length === 0 ? (
|
|
3631
|
-
|
|
3632
|
-
z(t($e), {
|
|
3639
|
+
t(e).left.length === 0 ? (c(), A("div", Jl, I($.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3640
|
+
z(t(Se), {
|
|
3633
3641
|
list: t(e).left,
|
|
3634
3642
|
group: "columnFilter",
|
|
3635
3643
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3638,7 +3646,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3638
3646
|
"item-key": (n) => n
|
|
3639
3647
|
}, {
|
|
3640
3648
|
item: b(({ element: n, index: C }) => [
|
|
3641
|
-
z(
|
|
3649
|
+
z(Ce, {
|
|
3642
3650
|
it: n,
|
|
3643
3651
|
index: C,
|
|
3644
3652
|
lang: t(i),
|
|
@@ -3655,10 +3663,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3655
3663
|
t(m) ? {
|
|
3656
3664
|
name: "header",
|
|
3657
3665
|
fn: b(() => [
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
t(m).hide ? (
|
|
3666
|
+
p("div", Fl, [
|
|
3667
|
+
p("span", Ul, I(t(m).visible), 1),
|
|
3668
|
+
p("span", Gl, " / " + I(t(e).total), 1),
|
|
3669
|
+
t(m).hide ? (c(), A("span", Hl, "(" + I(t(m).hide) + ")", 1)) : Y("", !0)
|
|
3662
3670
|
])
|
|
3663
3671
|
]),
|
|
3664
3672
|
key: "0"
|
|
@@ -3669,9 +3677,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3669
3677
|
class: "flex1"
|
|
3670
3678
|
}, ae({
|
|
3671
3679
|
default: b(() => [
|
|
3672
|
-
t(e).center.length === 0 ? (
|
|
3673
|
-
|
|
3674
|
-
z(t($e), {
|
|
3680
|
+
t(e).center.length === 0 ? (c(), A("div", Ql, I($.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3681
|
+
z(t(Se), {
|
|
3675
3682
|
list: t(e).center,
|
|
3676
3683
|
group: "columnFilter",
|
|
3677
3684
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3680,12 +3687,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3680
3687
|
"item-key": (n) => n
|
|
3681
3688
|
}, {
|
|
3682
3689
|
item: b(({ element: n, index: C }) => [
|
|
3683
|
-
z(
|
|
3690
|
+
z(Ce, {
|
|
3684
3691
|
it: n,
|
|
3685
3692
|
index: C,
|
|
3686
|
-
onAddLeft:
|
|
3693
|
+
onAddLeft: y,
|
|
3687
3694
|
lang: t(i),
|
|
3688
|
-
onAddRight:
|
|
3695
|
+
onAddRight: V,
|
|
3689
3696
|
onChange: w
|
|
3690
3697
|
}, null, 8, ["it", "index", "lang"])
|
|
3691
3698
|
]),
|
|
@@ -3697,10 +3704,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3697
3704
|
t(S) ? {
|
|
3698
3705
|
name: "header",
|
|
3699
3706
|
fn: b(() => [
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
t(S).hide ? (
|
|
3707
|
+
p("div", Kl, [
|
|
3708
|
+
p("span", Wl, I(t(S).visible), 1),
|
|
3709
|
+
p("span", ql, " / " + I(t(e).total), 1),
|
|
3710
|
+
t(S).hide ? (c(), A("span", Zl, "(" + I(t(S).hide) + ")", 1)) : Y("", !0)
|
|
3704
3711
|
])
|
|
3705
3712
|
]),
|
|
3706
3713
|
key: "0"
|
|
@@ -3711,9 +3718,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3711
3718
|
class: "flex1"
|
|
3712
3719
|
}, ae({
|
|
3713
3720
|
default: b(() => [
|
|
3714
|
-
t(e).right.length === 0 ? (
|
|
3715
|
-
|
|
3716
|
-
z(t($e), {
|
|
3721
|
+
t(e).right.length === 0 ? (c(), A("div", la, I($.$l("No Column Fixed on Right")), 1)) : Y("", !0),
|
|
3722
|
+
z(t(Se), {
|
|
3717
3723
|
list: t(e).right,
|
|
3718
3724
|
group: "columnFilter",
|
|
3719
3725
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3722,12 +3728,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3722
3728
|
"item-key": (n) => n
|
|
3723
3729
|
}, {
|
|
3724
3730
|
item: b(({ element: n, index: C }) => [
|
|
3725
|
-
z(
|
|
3731
|
+
z(Ce, {
|
|
3726
3732
|
it: n,
|
|
3727
3733
|
index: C,
|
|
3728
3734
|
type: "right",
|
|
3729
3735
|
lang: t(i),
|
|
3730
|
-
onAddLeft:
|
|
3736
|
+
onAddLeft: D,
|
|
3731
3737
|
onChange: w
|
|
3732
3738
|
}, null, 8, ["it", "index", "lang"])
|
|
3733
3739
|
]),
|
|
@@ -3739,10 +3745,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3739
3745
|
t(d) ? {
|
|
3740
3746
|
name: "header",
|
|
3741
3747
|
fn: b(() => [
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
t(d).hide ? (
|
|
3748
|
+
p("div", Xl, [
|
|
3749
|
+
p("span", ea, I(t(d).visible), 1),
|
|
3750
|
+
p("span", ta, " / " + I(t(e).total), 1),
|
|
3751
|
+
t(d).hide ? (c(), A("span", oa, "(" + I(t(d).hide) + ")", 1)) : Y("", !0)
|
|
3746
3752
|
])
|
|
3747
3753
|
]),
|
|
3748
3754
|
key: "0"
|
|
@@ -3754,28 +3760,28 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3754
3760
|
}, 8, ["loading"]);
|
|
3755
3761
|
};
|
|
3756
3762
|
}
|
|
3757
|
-
}),
|
|
3763
|
+
}), sa = /* @__PURE__ */ ue(na, [["__scopeId", "data-v-8d33c87a"]]), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3758
3764
|
__proto__: null,
|
|
3759
|
-
default:
|
|
3760
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3765
|
+
default: sa
|
|
3766
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = { class: "p16 wp100 sticky bg-white9 border-b backdrop z2" }, da = { class: "p8" }, ua = { class: "txt-dark5" }, ca = { class: "pl8 txt-dark9" }, pa = {
|
|
3761
3767
|
key: 0,
|
|
3762
3768
|
class: "flexMode vc p8"
|
|
3763
|
-
},
|
|
3769
|
+
}, ma = {
|
|
3764
3770
|
key: 1,
|
|
3765
3771
|
class: "flexMode vc p8"
|
|
3766
|
-
},
|
|
3772
|
+
}, fa = { class: "txt-dark5" }, ga = { class: "pl8 pr16 txt-dark9" }, ya = {
|
|
3767
3773
|
key: 2,
|
|
3768
3774
|
class: "flexMode vc p8"
|
|
3769
|
-
},
|
|
3775
|
+
}, ha = { class: "flexMode hr vc g16" }, _a = { class: "pr8" }, ba = { class: "relative wp100 pb8 border-b z1" }, va = { class: "p16 txt-dark9" }, wa = { class: "pr8" }, $a = { class: "inputGroup flexMode vc flexGrow" }, Sa = { class: "inputGroupRight" }, Ca = P({
|
|
3770
3776
|
name: "TableDownload"
|
|
3771
|
-
}),
|
|
3777
|
+
}), ka = /* @__PURE__ */ Object.assign(Ca, {
|
|
3772
3778
|
props: {
|
|
3773
3779
|
params: {
|
|
3774
3780
|
type: Object,
|
|
3775
3781
|
default: /* @__PURE__ */ Object.create(null)
|
|
3776
3782
|
}
|
|
3777
3783
|
},
|
|
3778
|
-
setup(M, { emit:
|
|
3784
|
+
setup(M, { emit: x }) {
|
|
3779
3785
|
const s = M, e = H({
|
|
3780
3786
|
columns: [],
|
|
3781
3787
|
items: [],
|
|
@@ -3789,17 +3795,17 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3789
3795
|
useCountryName: !1,
|
|
3790
3796
|
// 使用国家名称
|
|
3791
3797
|
widthTableHead: !0
|
|
3792
|
-
}), { proxy: o } = se(),
|
|
3798
|
+
}), { proxy: o } = se(), h = Re();
|
|
3793
3799
|
re(() => {
|
|
3794
|
-
|
|
3800
|
+
V();
|
|
3795
3801
|
});
|
|
3796
|
-
const a =
|
|
3802
|
+
const a = x, y = () => {
|
|
3797
3803
|
e.downloadAll ? a("fetch-all-data") : a("recover-current-data");
|
|
3798
|
-
},
|
|
3799
|
-
O(),
|
|
3804
|
+
}, V = () => {
|
|
3805
|
+
O(), D();
|
|
3800
3806
|
}, O = () => {
|
|
3801
3807
|
B.value.length && (e.onlySelection = !0);
|
|
3802
|
-
},
|
|
3808
|
+
}, D = () => {
|
|
3803
3809
|
const l = JSON.parse(localStorage.getItem(d.value)) || [], n = [], C = [];
|
|
3804
3810
|
l.forEach((R) => {
|
|
3805
3811
|
R.prop && (n.push(R), R.visible && C.push(R.prop));
|
|
@@ -3808,7 +3814,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3808
3814
|
}, f = (l = ",", n) => {
|
|
3809
3815
|
const C = e.items.map((J) => $.value[J].label);
|
|
3810
3816
|
let R = [];
|
|
3811
|
-
e.onlySelection ? R = B.value : R =
|
|
3817
|
+
e.onlySelection ? R = B.value : R = _.value;
|
|
3812
3818
|
const F = R.map((J) => {
|
|
3813
3819
|
const te = [];
|
|
3814
3820
|
return e.items.forEach((Q) => {
|
|
@@ -3816,7 +3822,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3816
3822
|
if (e.useCountryName) {
|
|
3817
3823
|
const U = window.$getType(J[Q]);
|
|
3818
3824
|
let ce;
|
|
3819
|
-
U === "Array" ? ce = J[Q] : ce = J[Q].split(","), ce = ce.map((q) =>
|
|
3825
|
+
U === "Array" ? ce = J[Q] : ce = J[Q].split(","), ce = ce.map((q) => ge("country.asaObj")[q.toLowerCase()][`label_${u.value}`]), te.push(`"${ce.join(",")}"`);
|
|
3820
3826
|
} else
|
|
3821
3827
|
te.push(`"${J[Q]}"`);
|
|
3822
3828
|
else if (["spendOrigin"].includes(Q)) {
|
|
@@ -3833,7 +3839,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3833
3839
|
}, r = () => {
|
|
3834
3840
|
var n;
|
|
3835
3841
|
let l = !1;
|
|
3836
|
-
if ((e.onlySelection && ((n = s.params.selection) != null && n.length) ||
|
|
3842
|
+
if ((e.onlySelection && ((n = s.params.selection) != null && n.length) || _.value.length) && (l = !0), l) {
|
|
3837
3843
|
const C = f(" ", e.withTableHead);
|
|
3838
3844
|
window.$copy(C);
|
|
3839
3845
|
} else
|
|
@@ -3846,12 +3852,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3846
3852
|
name: n,
|
|
3847
3853
|
data: l
|
|
3848
3854
|
}), o.$message.success(window.$l("Download Mode"));
|
|
3849
|
-
}, u = g(() => window.$getLang()), m = g(() => s.params.tableName), S = g(() => m.value ? `${window.$l(m.value)}_${window.$m().format("YYYYMMDD_hhmmss")}` : ""), d = g(() => s.params.tableName + "_Column"), i = g(() => `${
|
|
3855
|
+
}, u = g(() => window.$getLang()), m = g(() => s.params.tableName), S = g(() => m.value ? `${window.$l(m.value)}_${window.$m().format("YYYYMMDD_hhmmss")}` : ""), d = g(() => s.params.tableName + "_Column"), i = g(() => `${h.name}_${window.$m().format("YYYYMMDD_hhmmss")}`), $ = g(() => {
|
|
3850
3856
|
const l = {};
|
|
3851
3857
|
return e.columns.forEach((n) => {
|
|
3852
3858
|
l[n.prop] = n;
|
|
3853
3859
|
}), l;
|
|
3854
|
-
}),
|
|
3860
|
+
}), _ = g(() => {
|
|
3855
3861
|
var l;
|
|
3856
3862
|
return ((l = s.params) == null ? void 0 : l.list) || [];
|
|
3857
3863
|
}), B = g(() => {
|
|
@@ -3859,13 +3865,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3859
3865
|
return ((l = s.params) == null ? void 0 : l.selection) || [];
|
|
3860
3866
|
}), T = g(() => {
|
|
3861
3867
|
var l;
|
|
3862
|
-
return e.items.length === 0 ||
|
|
3868
|
+
return e.items.length === 0 || _.value.length === 0 || !!((l = s.params) != null && l.loading);
|
|
3863
3869
|
});
|
|
3864
3870
|
return (l, n) => {
|
|
3865
|
-
const C = N("el-checkbox"), R = N("el-button"), F = N("Alert"), J = N("el-switch"), te = N("el-checkbox-group"), Q = N("el-input"), U = N("DrawerArea"), ce =
|
|
3866
|
-
return
|
|
3871
|
+
const C = N("el-checkbox"), R = N("el-button"), F = N("Alert"), J = N("el-switch"), te = N("el-checkbox-group"), Q = N("el-input"), U = N("DrawerArea"), ce = De("loading");
|
|
3872
|
+
return c(), E(U, { onSubmit: k }, {
|
|
3867
3873
|
footer: b(() => [
|
|
3868
|
-
|
|
3874
|
+
p("div", $a, [
|
|
3869
3875
|
z(Q, {
|
|
3870
3876
|
modelValue: t(e).filename,
|
|
3871
3877
|
"onUpdate:modelValue": n[6] || (n[6] = (q) => t(e).filename = q),
|
|
@@ -3874,11 +3880,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3874
3880
|
class: "inputGroupLeft"
|
|
3875
3881
|
}, {
|
|
3876
3882
|
prefix: b(() => [...n[9] || (n[9] = [
|
|
3877
|
-
|
|
3883
|
+
p("i", { class: "imicon im-file" }, null, -1)
|
|
3878
3884
|
])]),
|
|
3879
3885
|
_: 1
|
|
3880
3886
|
}, 8, ["modelValue", "placeholder"]),
|
|
3881
|
-
|
|
3887
|
+
p("div", Sa, [
|
|
3882
3888
|
z(R, {
|
|
3883
3889
|
disabled: t(T),
|
|
3884
3890
|
plain: "",
|
|
@@ -3886,10 +3892,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3886
3892
|
onClick: k
|
|
3887
3893
|
}, {
|
|
3888
3894
|
icon: b(() => [...n[10] || (n[10] = [
|
|
3889
|
-
|
|
3895
|
+
p("i", { class: "imicon im-download1" }, null, -1)
|
|
3890
3896
|
])]),
|
|
3891
3897
|
default: b(() => [
|
|
3892
|
-
|
|
3898
|
+
p("span", null, I(l.$l("Download")), 1)
|
|
3893
3899
|
]),
|
|
3894
3900
|
_: 1
|
|
3895
3901
|
}, 8, ["disabled"])
|
|
@@ -3897,26 +3903,26 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3897
3903
|
])
|
|
3898
3904
|
]),
|
|
3899
3905
|
default: b(() => [
|
|
3900
|
-
|
|
3906
|
+
Me((c(), A("div", ia, [
|
|
3901
3907
|
z(F, null, {
|
|
3902
3908
|
default: b(() => [
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
n[7] || (n[7] =
|
|
3906
|
-
|
|
3909
|
+
p("div", da, [
|
|
3910
|
+
p("span", ua, I(t(e).downloadAll ? l.$l("Total in All Pages") : l.$l("Total in Current Page")), 1),
|
|
3911
|
+
n[7] || (n[7] = p("span", { class: "pr4" }, ":", -1)),
|
|
3912
|
+
p("span", ca, I(t(_).length), 1)
|
|
3907
3913
|
]),
|
|
3908
|
-
s.params.showTotalChosen ? (
|
|
3914
|
+
s.params.showTotalChosen ? (c(), A("div", pa, [
|
|
3909
3915
|
z(C, {
|
|
3910
3916
|
modelValue: t(e).downloadAll,
|
|
3911
3917
|
"onUpdate:modelValue": n[0] || (n[0] = (q) => t(e).downloadAll = q),
|
|
3912
3918
|
label: l.$l("Download All Data"),
|
|
3913
3919
|
class: "h24-i",
|
|
3914
|
-
onChange:
|
|
3920
|
+
onChange: y
|
|
3915
3921
|
}, null, 8, ["modelValue", "label"])
|
|
3916
3922
|
])) : Y("", !0),
|
|
3917
|
-
t(B).length ? (
|
|
3918
|
-
|
|
3919
|
-
|
|
3923
|
+
t(B).length ? (c(), A("div", ma, [
|
|
3924
|
+
p("span", fa, I(l.$l("Selected")), 1),
|
|
3925
|
+
p("span", ga, I(t(B).length), 1),
|
|
3920
3926
|
z(C, {
|
|
3921
3927
|
modelValue: t(e).onlySelection,
|
|
3922
3928
|
"onUpdate:modelValue": n[1] || (n[1] = (q) => t(e).onlySelection = q),
|
|
@@ -3924,29 +3930,29 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3924
3930
|
class: "h24-i"
|
|
3925
3931
|
}, null, 8, ["modelValue", "label"])
|
|
3926
3932
|
])) : Y("", !0),
|
|
3927
|
-
s.params.remote ? (
|
|
3933
|
+
s.params.remote ? (c(), A("div", ya, [
|
|
3928
3934
|
z(C, {
|
|
3929
3935
|
modelValue: t(e).remoteDownload,
|
|
3930
3936
|
"onUpdate:modelValue": n[2] || (n[2] = (q) => t(e).remoteDownload = q),
|
|
3931
3937
|
label: l.$l("Download all data using remote download")
|
|
3932
3938
|
}, null, 8, ["modelValue", "label"])
|
|
3933
3939
|
])) : Y("", !0),
|
|
3934
|
-
|
|
3940
|
+
p("div", ha, [
|
|
3935
3941
|
z(R, {
|
|
3936
3942
|
plain: "",
|
|
3937
3943
|
size: "default",
|
|
3938
3944
|
onClick: r
|
|
3939
3945
|
}, {
|
|
3940
3946
|
icon: b(() => [...n[8] || (n[8] = [
|
|
3941
|
-
|
|
3947
|
+
p("i", { class: "imicon im-copy" }, null, -1)
|
|
3942
3948
|
])]),
|
|
3943
3949
|
default: b(() => [
|
|
3944
|
-
|
|
3950
|
+
p("span", _a, I(l.$l("Copy to Clipboard")), 1),
|
|
3945
3951
|
z(C, {
|
|
3946
3952
|
modelValue: t(e).withTableHead,
|
|
3947
3953
|
"onUpdate:modelValue": n[3] || (n[3] = (q) => t(e).withTableHead = q),
|
|
3948
3954
|
label: l.$l("With Table Head"),
|
|
3949
|
-
onClick:
|
|
3955
|
+
onClick: he((q) => null, ["stop"])
|
|
3950
3956
|
}, null, 8, ["modelValue", "label"])
|
|
3951
3957
|
]),
|
|
3952
3958
|
_: 1
|
|
@@ -3958,24 +3964,24 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3958
3964
|
])), [
|
|
3959
3965
|
[ce, s.params.loading]
|
|
3960
3966
|
]),
|
|
3961
|
-
|
|
3962
|
-
|
|
3967
|
+
p("div", ba, [
|
|
3968
|
+
p("div", va, I(l.$l("What do you want to Download?")), 1),
|
|
3963
3969
|
z(te, {
|
|
3964
3970
|
modelValue: t(e).items,
|
|
3965
3971
|
"onUpdate:modelValue": n[5] || (n[5] = (q) => t(e).items = q)
|
|
3966
3972
|
}, {
|
|
3967
3973
|
default: b(() => [
|
|
3968
|
-
(
|
|
3974
|
+
(c(!0), A(ie, null, de(t(e).columns, (q, xe) => (c(), E(C, {
|
|
3969
3975
|
key: q.prop,
|
|
3970
3976
|
value: q.prop,
|
|
3971
3977
|
class: "wp100 p0-16 h36-i hover-bg-gray1"
|
|
3972
3978
|
}, {
|
|
3973
3979
|
default: b(() => [
|
|
3974
|
-
|
|
3975
|
-
q.prop === "country" ? (
|
|
3980
|
+
p("span", wa, I(q.label), 1),
|
|
3981
|
+
q.prop === "country" ? (c(), E(J, {
|
|
3976
3982
|
key: 0,
|
|
3977
3983
|
modelValue: t(e).useCountryName,
|
|
3978
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
3984
|
+
"onUpdate:modelValue": n[4] || (n[4] = (ve) => t(e).useCountryName = ve),
|
|
3979
3985
|
"inline-prompt": "",
|
|
3980
3986
|
"active-text": " Use name ",
|
|
3981
3987
|
"inactive-text": " Use Alpha-2 code ",
|
|
@@ -3988,18 +3994,18 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3988
3994
|
_: 1
|
|
3989
3995
|
}, 8, ["modelValue"])
|
|
3990
3996
|
]),
|
|
3991
|
-
n[11] || (n[11] =
|
|
3997
|
+
n[11] || (n[11] = p("div", { class: "TheEnd" }, null, -1))
|
|
3992
3998
|
]),
|
|
3993
3999
|
_: 1
|
|
3994
4000
|
});
|
|
3995
4001
|
};
|
|
3996
4002
|
}
|
|
3997
|
-
}),
|
|
4003
|
+
}), xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3998
4004
|
__proto__: null,
|
|
3999
|
-
default:
|
|
4000
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4005
|
+
default: ka
|
|
4006
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = { class: "SuperCountryAso relative" }, Oa = { class: "flexMode hr" }, Ta = P({
|
|
4001
4007
|
name: "SuperCountryAso"
|
|
4002
|
-
}),
|
|
4008
|
+
}), Aa = /* @__PURE__ */ Object.assign(Ta, {
|
|
4003
4009
|
props: {
|
|
4004
4010
|
modelValue: {
|
|
4005
4011
|
type: [String, Array],
|
|
@@ -4036,23 +4042,23 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4036
4042
|
"confirm",
|
|
4037
4043
|
"update:name"
|
|
4038
4044
|
],
|
|
4039
|
-
setup(M, { emit:
|
|
4040
|
-
const s = M, { proxy: e } = se(),
|
|
4045
|
+
setup(M, { emit: x }) {
|
|
4046
|
+
const s = M, { proxy: e } = se(), h = pe("store").common(), a = H({
|
|
4041
4047
|
loading: !1,
|
|
4042
4048
|
v: "",
|
|
4043
4049
|
arr: []
|
|
4044
|
-
}),
|
|
4045
|
-
|
|
4050
|
+
}), y = x, V = (r) => {
|
|
4051
|
+
y("update:modelValue", r), y("to-change", r);
|
|
4046
4052
|
}, O = (r) => {
|
|
4047
4053
|
let k = [];
|
|
4048
|
-
|
|
4054
|
+
h.countryOptions.forEach((u) => {
|
|
4049
4055
|
r.forEach((m) => {
|
|
4050
4056
|
u.value === m && k.push(u.label);
|
|
4051
4057
|
});
|
|
4052
|
-
}),
|
|
4053
|
-
},
|
|
4054
|
-
|
|
4055
|
-
}, w = g(() =>
|
|
4058
|
+
}), y("update:modelValue", r), y("update:name", k.join(", ")), y("to-change", r);
|
|
4059
|
+
}, D = () => {
|
|
4060
|
+
y("update:modelValue", a.arr), y("confirm", a.arr), e.$refs.multiple.blur();
|
|
4061
|
+
}, w = g(() => h.countryOptions), f = g(() => window.$l("Countries or Regions"));
|
|
4056
4062
|
return X(
|
|
4057
4063
|
() => s.modelValue,
|
|
4058
4064
|
(r, k) => {
|
|
@@ -4063,22 +4069,22 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4063
4069
|
}
|
|
4064
4070
|
), (r, k) => {
|
|
4065
4071
|
const u = N("IconLoading"), m = N("CountryItem"), S = N("el-option"), d = N("el-select"), i = N("el-button"), $ = N("MultipleSelect");
|
|
4066
|
-
return
|
|
4067
|
-
t(a).loading ? (
|
|
4068
|
-
s.multiple ? (
|
|
4072
|
+
return c(), A("div", Va, [
|
|
4073
|
+
t(a).loading ? (c(), E(u, { key: 0 })) : Y("", !0),
|
|
4074
|
+
s.multiple ? (c(), E($, Z({
|
|
4069
4075
|
key: 2,
|
|
4070
4076
|
ref: "multiple",
|
|
4071
4077
|
modelValue: t(a).arr,
|
|
4072
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
4078
|
+
"onUpdate:modelValue": k[1] || (k[1] = (_) => t(a).arr = _),
|
|
4073
4079
|
options: t(w),
|
|
4074
4080
|
placeholder: t(f)
|
|
4075
4081
|
}, r.$attrs, {
|
|
4076
4082
|
"multiple-limit": s.limit,
|
|
4077
4083
|
onChange: O
|
|
4078
4084
|
}), ae({
|
|
4079
|
-
default: b(({ it:
|
|
4085
|
+
default: b(({ it: _ }) => [
|
|
4080
4086
|
z(m, {
|
|
4081
|
-
name:
|
|
4087
|
+
name: _.value_lower
|
|
4082
4088
|
}, null, 8, ["name"])
|
|
4083
4089
|
]),
|
|
4084
4090
|
_: 2
|
|
@@ -4086,13 +4092,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4086
4092
|
s.useFooter ? {
|
|
4087
4093
|
name: "footer",
|
|
4088
4094
|
fn: b(() => [
|
|
4089
|
-
|
|
4095
|
+
p("div", Oa, [
|
|
4090
4096
|
z(i, {
|
|
4091
4097
|
type: "primary",
|
|
4092
|
-
onClick:
|
|
4098
|
+
onClick: D
|
|
4093
4099
|
}, {
|
|
4094
4100
|
icon: b(() => [...k[2] || (k[2] = [
|
|
4095
|
-
|
|
4101
|
+
p("i", { class: "imicon im-search" }, null, -1)
|
|
4096
4102
|
])]),
|
|
4097
4103
|
default: b(() => [
|
|
4098
4104
|
ne(" " + I(r.$l("Confirm")), 1)
|
|
@@ -4103,28 +4109,28 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4103
4109
|
]),
|
|
4104
4110
|
key: "0"
|
|
4105
4111
|
} : void 0
|
|
4106
|
-
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (
|
|
4112
|
+
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (c(), E(d, Z({
|
|
4107
4113
|
key: 1,
|
|
4108
4114
|
modelValue: t(a).v,
|
|
4109
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
4115
|
+
"onUpdate:modelValue": k[0] || (k[0] = (_) => t(a).v = _),
|
|
4110
4116
|
filterable: "",
|
|
4111
4117
|
placeholder: t(f),
|
|
4112
4118
|
class: "wp100"
|
|
4113
|
-
}, r.$attrs, { onChange:
|
|
4119
|
+
}, r.$attrs, { onChange: V }), ae({
|
|
4114
4120
|
default: b(() => [
|
|
4115
|
-
s.useAll ? (
|
|
4121
|
+
s.useAll ? (c(), E(S, {
|
|
4116
4122
|
key: 0,
|
|
4117
4123
|
label: r.$l("All"),
|
|
4118
4124
|
value: s.allValue
|
|
4119
4125
|
}, null, 8, ["label", "value"])) : Y("", !0),
|
|
4120
|
-
(
|
|
4121
|
-
key:
|
|
4122
|
-
label: r.$l(
|
|
4123
|
-
value:
|
|
4126
|
+
(c(!0), A(ie, null, de(t(w), (_, B) => (c(), E(S, {
|
|
4127
|
+
key: _.value,
|
|
4128
|
+
label: r.$l(_.label),
|
|
4129
|
+
value: _.value_lower
|
|
4124
4130
|
}, {
|
|
4125
4131
|
default: b(() => [
|
|
4126
4132
|
z(m, {
|
|
4127
|
-
name:
|
|
4133
|
+
name: _.value_lower
|
|
4128
4134
|
}, null, 8, ["name"])
|
|
4129
4135
|
]),
|
|
4130
4136
|
_: 2
|
|
@@ -4146,12 +4152,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4146
4152
|
]);
|
|
4147
4153
|
};
|
|
4148
4154
|
}
|
|
4149
|
-
}),
|
|
4155
|
+
}), Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4150
4156
|
__proto__: null,
|
|
4151
|
-
default:
|
|
4152
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4157
|
+
default: Aa
|
|
4158
|
+
}, Symbol.toStringTag, { value: "Module" })), Ma = { class: "SuperCountryDiy" }, Na = { class: "flexMode hr" }, Ia = P({
|
|
4153
4159
|
name: "SuperCountryDiy"
|
|
4154
|
-
}),
|
|
4160
|
+
}), za = /* @__PURE__ */ Object.assign(Ia, {
|
|
4155
4161
|
props: {
|
|
4156
4162
|
modelValue: {
|
|
4157
4163
|
tupe: [Array, String],
|
|
@@ -4175,35 +4181,35 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4175
4181
|
}
|
|
4176
4182
|
},
|
|
4177
4183
|
emits: ["change", "update:modelValue"],
|
|
4178
|
-
setup(M, { emit:
|
|
4184
|
+
setup(M, { emit: x }) {
|
|
4179
4185
|
const s = M, e = H({
|
|
4180
4186
|
single: "",
|
|
4181
4187
|
multiple: []
|
|
4182
|
-
}), { proxy: o } = se(),
|
|
4188
|
+
}), { proxy: o } = se(), h = x, a = () => {
|
|
4183
4189
|
o.$refs.multiple.blur();
|
|
4184
|
-
},
|
|
4185
|
-
|
|
4186
|
-
},
|
|
4190
|
+
}, y = (D) => {
|
|
4191
|
+
h("update:modelValue", D), h("change", D);
|
|
4192
|
+
}, V = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("Country or Region")), O = g(() => s.options.sort((D, w) => D.label.localeCompare(w.label)));
|
|
4187
4193
|
return X(
|
|
4188
4194
|
() => s.modelValue,
|
|
4189
|
-
(
|
|
4190
|
-
JSON.stringify(
|
|
4195
|
+
(D, w) => {
|
|
4196
|
+
JSON.stringify(D) !== JSON.stringify(w) && (s.multiple ? e.multiple = D : e.single = D);
|
|
4191
4197
|
},
|
|
4192
4198
|
{
|
|
4193
4199
|
immediate: !0
|
|
4194
4200
|
}
|
|
4195
|
-
), (
|
|
4201
|
+
), (D, w) => {
|
|
4196
4202
|
const f = N("CountryItem"), r = N("el-button"), k = N("MultipleSelect"), u = N("el-option"), m = N("el-select");
|
|
4197
|
-
return
|
|
4198
|
-
s.multiple ? (
|
|
4203
|
+
return c(), A("div", Ma, [
|
|
4204
|
+
s.multiple ? (c(), E(k, Z({
|
|
4199
4205
|
key: 0,
|
|
4200
4206
|
ref: "multiple",
|
|
4201
4207
|
modelValue: t(e).multiple,
|
|
4202
4208
|
"onUpdate:modelValue": w[0] || (w[0] = (S) => t(e).multiple = S),
|
|
4203
|
-
placeholder: t(
|
|
4204
|
-
},
|
|
4209
|
+
placeholder: t(V)
|
|
4210
|
+
}, D.$attrs, {
|
|
4205
4211
|
options: t(O),
|
|
4206
|
-
onChange:
|
|
4212
|
+
onChange: y
|
|
4207
4213
|
}), ae({
|
|
4208
4214
|
default: b(({ it: S }) => [
|
|
4209
4215
|
z(f, {
|
|
@@ -4215,36 +4221,36 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4215
4221
|
s.useFooter ? {
|
|
4216
4222
|
name: "footer",
|
|
4217
4223
|
fn: b(() => [
|
|
4218
|
-
|
|
4224
|
+
p("div", Na, [
|
|
4219
4225
|
z(r, {
|
|
4220
4226
|
type: "primary",
|
|
4221
4227
|
onClick: a
|
|
4222
4228
|
}, {
|
|
4223
4229
|
default: b(() => [
|
|
4224
|
-
ne(I(
|
|
4230
|
+
ne(I(D.$l("Confirm")), 1)
|
|
4225
4231
|
]),
|
|
4226
4232
|
_: 1
|
|
4227
4233
|
})
|
|
4228
4234
|
])
|
|
4229
4235
|
]),
|
|
4230
4236
|
key: "0"
|
|
4231
|
-
} :
|
|
4237
|
+
} : D.$slots.footer ? {
|
|
4232
4238
|
name: "footer",
|
|
4233
4239
|
fn: b(() => [
|
|
4234
|
-
W(
|
|
4240
|
+
W(D.$slots, "footer")
|
|
4235
4241
|
]),
|
|
4236
4242
|
key: "1"
|
|
4237
4243
|
} : void 0
|
|
4238
|
-
]), 1040, ["modelValue", "placeholder", "options"])) : (
|
|
4244
|
+
]), 1040, ["modelValue", "placeholder", "options"])) : (c(), E(m, Z({
|
|
4239
4245
|
key: 1,
|
|
4240
4246
|
modelValue: t(e).single,
|
|
4241
4247
|
"onUpdate:modelValue": w[1] || (w[1] = (S) => t(e).single = S),
|
|
4242
|
-
placeholder: t(
|
|
4243
|
-
},
|
|
4248
|
+
placeholder: t(V)
|
|
4249
|
+
}, D.$attrs, { onChange: y }), ae({
|
|
4244
4250
|
default: b(() => [
|
|
4245
|
-
(
|
|
4251
|
+
(c(!0), A(ie, null, de(t(O), (S, d) => (c(), E(u, {
|
|
4246
4252
|
key: d,
|
|
4247
|
-
label:
|
|
4253
|
+
label: D.$l(S.label),
|
|
4248
4254
|
value: S.value
|
|
4249
4255
|
}, {
|
|
4250
4256
|
default: b(() => [
|
|
@@ -4271,10 +4277,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4271
4277
|
]);
|
|
4272
4278
|
};
|
|
4273
4279
|
}
|
|
4274
|
-
}),
|
|
4280
|
+
}), Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4275
4281
|
__proto__: null,
|
|
4276
|
-
default:
|
|
4282
|
+
default: za
|
|
4277
4283
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4278
4284
|
export {
|
|
4279
|
-
|
|
4285
|
+
Ga as c
|
|
4280
4286
|
};
|