magtool 1.5.13 → 1.5.16
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.1.md +6 -0
- package/dist/component.js +627 -631
- package/dist/css/magtool.css +1 -1
- package/package.json +1 -1
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 D, openBlock as p, normalizeStyle as me, unref as t, createCommentVNode as Y, createElementVNode as c, 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
|
|
1
|
+
import { defineComponent as P, getCurrentInstance as se, onMounted as re, reactive as H, createElementBlock as D, openBlock as p, normalizeStyle as me, unref as t, createCommentVNode as Y, createElementVNode as c, 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,
|
|
@@ -56,7 +57,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
56
57
|
const o = H({
|
|
57
58
|
toggle: !1
|
|
58
59
|
});
|
|
59
|
-
return (
|
|
60
|
+
return (h, a) => (p(), D("div", {
|
|
60
61
|
class: "MvcCard",
|
|
61
62
|
style: me(t(o).cardStyle)
|
|
62
63
|
}, [
|
|
@@ -69,8 +70,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
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
|
-
c("div",
|
|
73
|
-
W(
|
|
73
|
+
c("div", Pe, I(h.$l(V.title)), 1),
|
|
74
|
+
W(h.$slots, "header", {}, void 0, !0)
|
|
74
75
|
], 2)),
|
|
75
76
|
c("div", {
|
|
76
77
|
class: K(["cardArea transition3", [V.nobg && "nobg", t(o).toggle && "miniArea"]])
|
|
@@ -79,20 +80,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
79
80
|
class: K(["cardBody relative nobar", V.bodyClass]),
|
|
80
81
|
style: me(V.bodyStyle)
|
|
81
82
|
}, [
|
|
82
|
-
W(
|
|
83
|
+
W(h.$slots, "default", {}, void 0, !0)
|
|
83
84
|
], 6),
|
|
84
|
-
|
|
85
|
+
h.$slots.footer ? (p(), D("div", {
|
|
85
86
|
key: 0,
|
|
86
87
|
class: K(["cardFooter", V.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,
|
|
@@ -147,7 +148,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
147
148
|
},
|
|
148
149
|
emits: ["change", "update:modelValue"],
|
|
149
150
|
setup(M, { expose: V, emit: s }) {
|
|
150
|
-
|
|
151
|
+
je.en.weekStart = 7;
|
|
151
152
|
const e = M, o = H({
|
|
152
153
|
type: "",
|
|
153
154
|
date: [],
|
|
@@ -155,7 +156,7 @@ 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"),
|
|
@@ -164,7 +165,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
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
|
}, x = (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 = {};
|
|
@@ -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,7 +298,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
297
298
|
lastmonth: !0
|
|
298
299
|
};
|
|
299
300
|
return X(
|
|
300
|
-
() =>
|
|
301
|
+
() => _.value,
|
|
301
302
|
(l, n) => {
|
|
302
303
|
l.length && JSON.stringify(l) !== JSON.stringify(o.date) && (o.date = l, x(l));
|
|
303
304
|
}
|
|
@@ -305,7 +306,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
305
306
|
setDate: d
|
|
306
307
|
}), (l, n) => {
|
|
307
308
|
const C = N("el-date-picker");
|
|
308
|
-
return p(), D("div",
|
|
309
|
+
return p(), D("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),
|
|
@@ -325,14 +326,14 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
325
326
|
disabled: e.disabled,
|
|
326
327
|
source: e.source,
|
|
327
328
|
onChange: x,
|
|
328
|
-
onCalendarChange:
|
|
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,
|
|
@@ -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, x = async () => {
|
|
427
428
|
O();
|
|
428
429
|
}, O = () => {
|
|
429
430
|
fe(() => {
|
|
@@ -490,7 +491,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
490
491
|
}, m = A(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
|
}, A = (m, S) => {
|
|
@@ -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;
|
|
@@ -613,20 +614,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
613
614
|
// },
|
|
614
615
|
}
|
|
615
616
|
};
|
|
616
|
-
return (m, S) => (p(), D("div",
|
|
617
|
+
return (m, S) => (p(), D("div", We, [
|
|
617
618
|
c("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 (V, s) => (p(), D("svg",
|
|
638
|
+
return (V, s) => (p(), D("svg", et, [
|
|
638
639
|
c("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,
|
|
@@ -661,21 +662,21 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
661
662
|
re(() => {
|
|
662
663
|
a();
|
|
663
664
|
});
|
|
664
|
-
const
|
|
665
|
-
const
|
|
666
|
-
if (!
|
|
665
|
+
const h = V, a = async () => {
|
|
666
|
+
const y = await Ye(o.$attrs.src);
|
|
667
|
+
if (!y)
|
|
667
668
|
return;
|
|
668
|
-
const { height: x, width: O } =
|
|
669
|
-
x < O && (e.diyClass = ""),
|
|
669
|
+
const { height: x, width: O } = y;
|
|
670
|
+
x < O && (e.diyClass = ""), h("load", O, x);
|
|
670
671
|
};
|
|
671
|
-
return (
|
|
672
|
+
return (y, x) => {
|
|
672
673
|
const O = N("el-image");
|
|
673
|
-
return p(), D("div",
|
|
674
|
+
return p(), D("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
|
}), {
|
|
@@ -683,8 +684,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
683
684
|
c("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
684
685
|
])]),
|
|
685
686
|
error: b(() => [
|
|
686
|
-
c("div",
|
|
687
|
-
c("span",
|
|
687
|
+
c("div", nt, [
|
|
688
|
+
c("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,
|
|
@@ -726,7 +727,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
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
|
}, x = () => {
|
|
732
733
|
o.composition = !1;
|
|
@@ -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) => {
|
|
@@ -758,9 +759,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
758
759
|
), V({
|
|
759
760
|
focus: f
|
|
760
761
|
}), (u, m) => {
|
|
761
|
-
const S = N("el-input"), d =
|
|
762
|
-
return p(), D("div",
|
|
763
|
-
|
|
762
|
+
const S = N("el-input"), d = De("focus");
|
|
763
|
+
return p(), D("div", dt, [
|
|
764
|
+
Me((p(), 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,11 +772,11 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
771
772
|
}, u.$attrs, {
|
|
772
773
|
placeholder: t(k),
|
|
773
774
|
onChange: w,
|
|
774
|
-
onCompositionstart:
|
|
775
|
+
onCompositionstart: y,
|
|
775
776
|
onCompositionend: x,
|
|
776
777
|
onKeydown: [
|
|
777
|
-
|
|
778
|
-
|
|
778
|
+
Ve(O, ["enter"]),
|
|
779
|
+
Ve(A, ["enter", "native"])
|
|
779
780
|
],
|
|
780
781
|
class: "wp100"
|
|
781
782
|
}), ae({ _: 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,
|
|
@@ -845,22 +846,22 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
845
846
|
},
|
|
846
847
|
emits: ["update:modelValue", "change"],
|
|
847
848
|
setup(M, { expose: V, emit: s }) {
|
|
848
|
-
const e = M, o = H({ v: [] }), { proxy:
|
|
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
|
}, x = () => {
|
|
851
|
-
o.v = e.options.map((k) => k[e.value]),
|
|
852
|
+
o.v = e.options.map((k) => k[e.value]), y();
|
|
852
853
|
}, O = () => {
|
|
853
|
-
o.v = [],
|
|
854
|
+
o.v = [], y();
|
|
854
855
|
}, A = () => {
|
|
855
|
-
|
|
856
|
-
}, w = g(() => e.options.length <= o.v.length && e.options.length !== 0), f = g(() =>
|
|
857
|
-
return
|
|
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
|
}), V({
|
|
860
861
|
blur: A
|
|
861
862
|
}), (k, u) => {
|
|
862
863
|
const m = N("el-button"), S = N("el-option"), d = N("el-select");
|
|
863
|
-
return p(), D("div",
|
|
864
|
+
return p(), D("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
|
-
(p(!0), D(ie, null, de(e.options, (i, $) => (p(),
|
|
878
|
+
(p(!0), D(ie, null, de(e.options, (i, $) => (p(), 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 ? (p(), D("div",
|
|
906
|
+
k.$slots.header ? (p(), D("div", mt, [
|
|
906
907
|
W(k.$slots, "header", {}, void 0, !0)
|
|
907
|
-
])) : (p(), D("div",
|
|
908
|
-
t(w) ? (p(),
|
|
908
|
+
])) : (p(), D("div", ft, [
|
|
909
|
+
t(w) ? (p(), E(m, {
|
|
909
910
|
key: 0,
|
|
910
911
|
type: "primary",
|
|
911
912
|
size: "default",
|
|
@@ -915,7 +916,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
915
916
|
ne(I(k.$l("Cancel All")), 1)
|
|
916
917
|
]),
|
|
917
918
|
_: 1
|
|
918
|
-
})) : (p(),
|
|
919
|
+
})) : (p(), E(m, {
|
|
919
920
|
key: 1,
|
|
920
921
|
size: "default",
|
|
921
922
|
onClick: x
|
|
@@ -925,10 +926,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
925
926
|
]),
|
|
926
927
|
_: 1
|
|
927
928
|
})),
|
|
928
|
-
c("div",
|
|
929
|
-
c("span",
|
|
929
|
+
c("div", gt, [
|
|
930
|
+
c("span", yt, I(t(o).v.length), 1),
|
|
930
931
|
u[1] || (u[1] = c("span", { class: "txt-dark3" }, "/", -1)),
|
|
931
|
-
c("span",
|
|
932
|
+
c("span", ht, I(t(f) || e.options.length), 1)
|
|
932
933
|
])
|
|
933
934
|
]))
|
|
934
935
|
]),
|
|
@@ -946,19 +947,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
946
947
|
key: 0,
|
|
947
948
|
class: K(["countArea abs flexMode vc p4 fs12", t(r) && "nowrap"])
|
|
948
949
|
}, [
|
|
949
|
-
c("span",
|
|
950
|
+
c("span", _t, I(t(o).v.length), 1),
|
|
950
951
|
u[2] || (u[2] = c("span", { class: "txt-dark3" }, "/", -1)),
|
|
951
|
-
c("span",
|
|
952
|
+
c("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 V = M, s = g(() => Number(V.size)), e = g(() => V.txt ? window.$l(V.txt) : window.$l(
|
|
979
|
-
return (o,
|
|
979
|
+
const V = M, s = g(() => Number(V.size)), e = g(() => V.txt ? window.$l(V.txt) : window.$l(Oe[V.type]));
|
|
980
|
+
return (o, h) => {
|
|
980
981
|
const a = N("el-empty");
|
|
981
|
-
return p(), D("div",
|
|
982
|
+
return p(), D("div", St, [
|
|
982
983
|
z(a, {
|
|
983
984
|
"image-size": t(s),
|
|
984
985
|
description: t(e)
|
|
@@ -986,15 +987,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
986
987
|
]);
|
|
987
988
|
};
|
|
988
989
|
}
|
|
989
|
-
}),
|
|
990
|
+
}), xt = /* @__PURE__ */ ue(kt, [["__scopeId", "data-v-0714983f"]]), Vt = { class: "Page relative yscroll vh100" }, Ot = {
|
|
990
991
|
key: 1,
|
|
991
992
|
class: "title fw700 fs24"
|
|
992
|
-
},
|
|
993
|
+
}, Tt = {
|
|
993
994
|
class: "PageFooter flexMode vc g8 fs14",
|
|
994
995
|
style: { padding: "14px 30px 24px 30px" }
|
|
995
|
-
},
|
|
996
|
+
}, At = { class: "txt-dark5" }, Dt = { class: "txt-primary" }, Mt = { class: "txt-dark5" }, Nt = P({
|
|
996
997
|
name: "Page"
|
|
997
|
-
}),
|
|
998
|
+
}), It = /* @__PURE__ */ Object.assign(Nt, {
|
|
998
999
|
props: {
|
|
999
1000
|
loading: {
|
|
1000
1001
|
type: Boolean,
|
|
@@ -1017,9 +1018,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1017
1018
|
const V = M, s = g(() => window.global.config.meta), e = g(() => ({
|
|
1018
1019
|
minHeight: window.global.config.options.pageHeight + "px"
|
|
1019
1020
|
}));
|
|
1020
|
-
return (o,
|
|
1021
|
+
return (o, h) => {
|
|
1021
1022
|
const a = N("Loading");
|
|
1022
|
-
return p(), D("div",
|
|
1023
|
+
return p(), D("div", Vt, [
|
|
1023
1024
|
z(a, {
|
|
1024
1025
|
loading: V.loading
|
|
1025
1026
|
}, null, 8, ["loading"]),
|
|
@@ -1027,7 +1028,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1027
1028
|
key: 0,
|
|
1028
1029
|
class: K(["PageHeader h80 p0-30 flexMode vc hb z9 xscroll nobar", V.headerClass])
|
|
1029
1030
|
}, [
|
|
1030
|
-
o.$slots.title ? W(o.$slots, "title", { key: 0 }, void 0, !0) : V.title ? (p(), D("div",
|
|
1031
|
+
o.$slots.title ? W(o.$slots, "title", { key: 0 }, void 0, !0) : V.title ? (p(), D("div", Ot, I(o.$l(V.title)), 1)) : Y("", !0),
|
|
1031
1032
|
W(o.$slots, "tool", {}, void 0, !0)
|
|
1032
1033
|
], 2)),
|
|
1033
1034
|
c("div", {
|
|
@@ -1036,18 +1037,18 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1036
1037
|
}, [
|
|
1037
1038
|
W(o.$slots, "default", {}, void 0, !0)
|
|
1038
1039
|
], 4),
|
|
1039
|
-
c("div",
|
|
1040
|
-
c("span",
|
|
1041
|
-
c("span",
|
|
1042
|
-
c("span",
|
|
1040
|
+
c("div", Tt, [
|
|
1041
|
+
c("span", At, I(t(s).copyright), 1),
|
|
1042
|
+
c("span", Dt, I(t(s).campany), 1),
|
|
1043
|
+
c("span", Mt, I(t(s).email), 1)
|
|
1043
1044
|
])
|
|
1044
1045
|
]);
|
|
1045
1046
|
};
|
|
1046
1047
|
}
|
|
1047
|
-
}),
|
|
1048
|
+
}), zt = /* @__PURE__ */ ue(It, [["__scopeId", "data-v-9aa531a1"]]), Bt = { class: "MvcTableHeaderTool" }, jt = { class: "ToolArea" }, Yt = P({
|
|
1048
1049
|
name: "MvcTableHeaderTool",
|
|
1049
1050
|
inheritAttrs: !1
|
|
1050
|
-
}),
|
|
1051
|
+
}), Et = /* @__PURE__ */ Object.assign(Yt, {
|
|
1051
1052
|
props: {
|
|
1052
1053
|
tableName: {
|
|
1053
1054
|
type: String,
|
|
@@ -1091,16 +1092,16 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1091
1092
|
}
|
|
1092
1093
|
},
|
|
1093
1094
|
setup(M, { emit: V }) {
|
|
1094
|
-
const s =
|
|
1095
|
+
const s = be(() => Promise.resolve().then(() => na)), e = be(() => Promise.resolve().then(() => Ca)), o = M, h = H({
|
|
1095
1096
|
drawer: [
|
|
1096
1097
|
{
|
|
1097
1098
|
title: window.$l("Table Column Customization"),
|
|
1098
1099
|
size: 1024,
|
|
1099
|
-
cpt:
|
|
1100
|
+
cpt: ke(s)
|
|
1100
1101
|
},
|
|
1101
1102
|
{
|
|
1102
1103
|
title: window.$l("Download from Current Table"),
|
|
1103
|
-
cpt:
|
|
1104
|
+
cpt: ke(e)
|
|
1104
1105
|
}
|
|
1105
1106
|
],
|
|
1106
1107
|
groupby: [],
|
|
@@ -1110,28 +1111,28 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1110
1111
|
filterTop: 0,
|
|
1111
1112
|
loading: !1,
|
|
1112
1113
|
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)),
|
|
1114
|
+
}), { proxy: a } = se(), y = V, x = (d) => {
|
|
1115
|
+
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
1116
|
}, O = () => {
|
|
1116
|
-
|
|
1117
|
+
h.drawer[0].params = { tableName: o.tableName }, h.current = 0;
|
|
1117
1118
|
}, A = () => {
|
|
1118
|
-
|
|
1119
|
+
h.drawer[1].params = {
|
|
1119
1120
|
showTotalChosen: o.showTotalChosen,
|
|
1120
1121
|
tableName: o.tableName,
|
|
1121
1122
|
list: o.list,
|
|
1122
1123
|
selection: o.selection,
|
|
1123
1124
|
remote: o.remote
|
|
1124
|
-
},
|
|
1125
|
+
}, h.current = 1;
|
|
1125
1126
|
}, w = (d) => {
|
|
1126
|
-
d === "column" ?
|
|
1127
|
+
d === "column" ? y("to-init-table") : d === "download" && y("to-download");
|
|
1127
1128
|
}, f = async () => {
|
|
1128
1129
|
if (o.loadData) {
|
|
1129
|
-
|
|
1130
|
+
h.loading = !0;
|
|
1130
1131
|
const d = await o.loadData({ pageStart: 1, pageSize: o.total });
|
|
1131
|
-
|
|
1132
|
+
h.loading = !1, d && (h.dt = d, h.drawer[1].params.list = h.dt.list);
|
|
1132
1133
|
}
|
|
1133
1134
|
}, r = () => {
|
|
1134
|
-
|
|
1135
|
+
h.drawer[1].params.list = o.list;
|
|
1135
1136
|
}, k = g(() => {
|
|
1136
1137
|
var d;
|
|
1137
1138
|
return ((d = o.tool) == null ? void 0 : d.download) === void 0;
|
|
@@ -1143,7 +1144,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1143
1144
|
return ((d = o.tool) == null ? void 0 : d.refresh) === void 0;
|
|
1144
1145
|
});
|
|
1145
1146
|
g(() => {
|
|
1146
|
-
const d =
|
|
1147
|
+
const d = h.searchGroupBy.toLowerCase();
|
|
1147
1148
|
return S.map((i) => (i.label.toLowerCase().includes(d) ? i.hide = !1 : i.hide = !0, i));
|
|
1148
1149
|
});
|
|
1149
1150
|
const S = [
|
|
@@ -1174,10 +1175,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1174
1175
|
}
|
|
1175
1176
|
];
|
|
1176
1177
|
return (d, i) => {
|
|
1177
|
-
const $ = N("el-button"),
|
|
1178
|
-
return p(), D("div",
|
|
1179
|
-
c("div",
|
|
1180
|
-
t(m) ? (p(),
|
|
1178
|
+
const $ = N("el-button"), _ = N("Drawer");
|
|
1179
|
+
return p(), D("div", Bt, [
|
|
1180
|
+
c("div", jt, [
|
|
1181
|
+
t(m) ? (p(), E($, {
|
|
1181
1182
|
key: 0,
|
|
1182
1183
|
plain: "",
|
|
1183
1184
|
onClick: i[0] || (i[0] = (B) => x(B))
|
|
@@ -1190,7 +1191,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1190
1191
|
]),
|
|
1191
1192
|
_: 1
|
|
1192
1193
|
})) : Y("", !0),
|
|
1193
|
-
t(u) ? (p(),
|
|
1194
|
+
t(u) ? (p(), E($, {
|
|
1194
1195
|
key: 1,
|
|
1195
1196
|
plain: "",
|
|
1196
1197
|
onClick: O
|
|
@@ -1203,7 +1204,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1203
1204
|
]),
|
|
1204
1205
|
_: 1
|
|
1205
1206
|
})) : Y("", !0),
|
|
1206
|
-
t(k) ? (p(),
|
|
1207
|
+
t(k) ? (p(), E($, {
|
|
1207
1208
|
key: 2,
|
|
1208
1209
|
plain: "",
|
|
1209
1210
|
onClick: A
|
|
@@ -1217,12 +1218,12 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1217
1218
|
_: 1
|
|
1218
1219
|
})) : Y("", !0)
|
|
1219
1220
|
]),
|
|
1220
|
-
z(
|
|
1221
|
-
current: t(
|
|
1222
|
-
"onUpdate:current": i[1] || (i[1] = (B) => t(
|
|
1223
|
-
drawer: t(
|
|
1224
|
-
loading: t(
|
|
1225
|
-
dt: t(
|
|
1221
|
+
z(_, {
|
|
1222
|
+
current: t(h).current,
|
|
1223
|
+
"onUpdate:current": i[1] || (i[1] = (B) => t(h).current = B),
|
|
1224
|
+
drawer: t(h).drawer,
|
|
1225
|
+
loading: t(h).loading,
|
|
1226
|
+
dt: t(h).dt,
|
|
1226
1227
|
onFetchAllData: f,
|
|
1227
1228
|
onRecoverCurrentData: r,
|
|
1228
1229
|
onSubmit: w
|
|
@@ -1230,19 +1231,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1230
1231
|
]);
|
|
1231
1232
|
};
|
|
1232
1233
|
}
|
|
1233
|
-
}), Lt = /* @__PURE__ */ ue(
|
|
1234
|
+
}), Lt = /* @__PURE__ */ ue(Et, [["__scopeId", "data-v-85db0009"]]), Rt = { class: "HeaderArea" }, Pt = {
|
|
1234
1235
|
key: 0,
|
|
1235
1236
|
class: "flexGrow xscroll nobar"
|
|
1236
|
-
},
|
|
1237
|
+
}, Ft = {
|
|
1237
1238
|
key: 1,
|
|
1238
1239
|
class: "titleArea"
|
|
1239
|
-
},
|
|
1240
|
+
}, Ut = { key: 2 }, Gt = {
|
|
1240
1241
|
key: 0,
|
|
1241
1242
|
class: "filterRowArea"
|
|
1242
|
-
},
|
|
1243
|
+
}, Ht = P({
|
|
1243
1244
|
name: "MvcTableHeader",
|
|
1244
1245
|
inheritAttrs: !1
|
|
1245
|
-
}),
|
|
1246
|
+
}), Jt = /* @__PURE__ */ Object.assign(Ht, {
|
|
1246
1247
|
props: {
|
|
1247
1248
|
title: {
|
|
1248
1249
|
type: String,
|
|
@@ -1275,22 +1276,22 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1275
1276
|
class: "MvcTableHeader",
|
|
1276
1277
|
style: me(s.filterTagShow ? "padding-bottom: 2px !important" : "")
|
|
1277
1278
|
}, [
|
|
1278
|
-
c("div",
|
|
1279
|
-
e.$slots.default ? (p(), D("div",
|
|
1279
|
+
c("div", Rt, [
|
|
1280
|
+
e.$slots.default ? (p(), D("div", Pt, [
|
|
1280
1281
|
W(e.$slots, "default", {}, void 0, !0)
|
|
1281
|
-
])) : s.title ? (p(), D("div",
|
|
1282
|
-
e.$attrs.tool !== !1 ? (p(),
|
|
1282
|
+
])) : s.title ? (p(), D("div", Ft, I(s.title), 1)) : (p(), D("div", Ut)),
|
|
1283
|
+
e.$attrs.tool !== !1 ? (p(), E(Lt, Z({ key: 3 }, e.$attrs, {
|
|
1283
1284
|
"table-name": s.tableName,
|
|
1284
1285
|
total: s.total,
|
|
1285
1286
|
"show-total-chosen": s.showTotalChosen
|
|
1286
1287
|
}), null, 16, ["table-name", "total", "show-total-chosen"])) : Y("", !0)
|
|
1287
1288
|
]),
|
|
1288
|
-
e.$slots.filterRow ? (p(), D("div",
|
|
1289
|
+
e.$slots.filterRow ? (p(), D("div", Gt, [
|
|
1289
1290
|
W(e.$slots, "filterRow", {}, void 0, !0)
|
|
1290
1291
|
])) : Y("", !0)
|
|
1291
1292
|
], 4));
|
|
1292
1293
|
}
|
|
1293
|
-
}),
|
|
1294
|
+
}), Kt = /* @__PURE__ */ ue(Jt, [["__scopeId", "data-v-93f064e2"]]), Wt = P({
|
|
1294
1295
|
name: "MvcTableColumnFilter",
|
|
1295
1296
|
props: {
|
|
1296
1297
|
tableName: {
|
|
@@ -1303,7 +1304,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1303
1304
|
}
|
|
1304
1305
|
},
|
|
1305
1306
|
setup: (M, V) => {
|
|
1306
|
-
var
|
|
1307
|
+
var y;
|
|
1307
1308
|
const s = H({
|
|
1308
1309
|
options: [],
|
|
1309
1310
|
slots: []
|
|
@@ -1349,7 +1350,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1349
1350
|
let a = [];
|
|
1350
1351
|
if (o.forEach((x) => {
|
|
1351
1352
|
window.$getType(x) !== "String" && x.props.visible && a.push(x);
|
|
1352
|
-
}), (
|
|
1353
|
+
}), (y = M.group) != null && y.label) {
|
|
1353
1354
|
const x = {
|
|
1354
1355
|
label: "Group By " + M.group.label,
|
|
1355
1356
|
// prop: props.group.value,
|
|
@@ -1368,15 +1369,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1368
1369
|
}
|
|
1369
1370
|
return a = a.sort((x, O) => x.props.sort - O.props.sort), () => a;
|
|
1370
1371
|
}
|
|
1371
|
-
}),
|
|
1372
|
+
}), qt = { class: "MvcTableFooter" }, Zt = { class: "FooterArea xscroll nobar" }, Qt = { class: "flexMode vc g8" }, Xt = {
|
|
1372
1373
|
key: 1,
|
|
1373
1374
|
class: "flexMode vc g4 fs14"
|
|
1374
|
-
},
|
|
1375
|
+
}, eo = { class: "txt-dark3" }, to = { class: "flexMode vc" }, oo = { class: "txt-blue" }, lo = {
|
|
1375
1376
|
key: 2,
|
|
1376
1377
|
class: "flexMode vc g4 fs14"
|
|
1377
|
-
},
|
|
1378
|
+
}, ao = { class: "txt-dark3" }, no = { class: "flexMode vc" }, so = { class: "txt-blue" }, ro = { class: "txt-dark7" }, io = { class: "flexMode vc g4 fs14" }, uo = { class: "txt-dark3" }, co = { class: "txt-dark7" }, po = P({
|
|
1378
1379
|
name: "MvcTableFooter"
|
|
1379
|
-
}),
|
|
1380
|
+
}), mo = /* @__PURE__ */ Object.assign(po, {
|
|
1380
1381
|
props: {
|
|
1381
1382
|
pageNum: {
|
|
1382
1383
|
type: Number,
|
|
@@ -1430,11 +1431,11 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1430
1431
|
setup(M, { emit: V }) {
|
|
1431
1432
|
const s = M, e = H({
|
|
1432
1433
|
summaryMode: 1
|
|
1433
|
-
}), o = V,
|
|
1434
|
+
}), o = V, h = (r) => {
|
|
1434
1435
|
o("size-change", r);
|
|
1435
1436
|
}, a = (r) => {
|
|
1436
1437
|
o("page-change", r);
|
|
1437
|
-
},
|
|
1438
|
+
}, y = (r) => {
|
|
1438
1439
|
o("summary-mode-change", r);
|
|
1439
1440
|
}, x = g(() => s.staticTotal ? !1 : s.filterTotal !== s.total), O = g(() => Number(s.pageCount) || 7), A = g(() => window.$getType(s.remoteData) === "String"), w = g(() => A.value ? "slot, ->, prev, pager, next, sizes" : "slot, ->"), f = [
|
|
1440
1441
|
{
|
|
@@ -1448,8 +1449,8 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1448
1449
|
];
|
|
1449
1450
|
return (r, k) => {
|
|
1450
1451
|
const u = N("el-option"), m = N("el-select"), S = N("el-pagination");
|
|
1451
|
-
return p(), D("div",
|
|
1452
|
-
c("div",
|
|
1452
|
+
return p(), D("div", qt, [
|
|
1453
|
+
c("div", Zt, [
|
|
1453
1454
|
z(S, {
|
|
1454
1455
|
ref: "pagination",
|
|
1455
1456
|
background: "",
|
|
@@ -1460,20 +1461,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1460
1461
|
"page-size": s.pageSize,
|
|
1461
1462
|
"page-sizes": s.pageSizes,
|
|
1462
1463
|
"pager-count": t(O),
|
|
1463
|
-
onSizeChange:
|
|
1464
|
+
onSizeChange: h,
|
|
1464
1465
|
onCurrentChange: a,
|
|
1465
1466
|
class: "wp100"
|
|
1466
1467
|
}, {
|
|
1467
1468
|
default: b(() => [
|
|
1468
|
-
c("div",
|
|
1469
|
-
s.nosummary ? Y("", !0) : (p(),
|
|
1469
|
+
c("div", Qt, [
|
|
1470
|
+
s.nosummary ? Y("", !0) : (p(), E(m, {
|
|
1470
1471
|
key: 0,
|
|
1471
1472
|
modelValue: t(e).summaryMode,
|
|
1472
1473
|
"onUpdate:modelValue": k[0] || (k[0] = (d) => t(e).summaryMode = d),
|
|
1473
1474
|
placeholder: " ",
|
|
1474
1475
|
class: "w160",
|
|
1475
1476
|
size: "normal",
|
|
1476
|
-
onChange:
|
|
1477
|
+
onChange: y
|
|
1477
1478
|
}, {
|
|
1478
1479
|
prefix: b(() => [
|
|
1479
1480
|
ne(I(r.$l("Sum")), 1)
|
|
@@ -1487,23 +1488,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1487
1488
|
]),
|
|
1488
1489
|
_: 1
|
|
1489
1490
|
}, 8, ["modelValue"])),
|
|
1490
|
-
s.selectionLength ? (p(), D("div",
|
|
1491
|
-
c("div",
|
|
1492
|
-
c("div",
|
|
1493
|
-
c("span",
|
|
1491
|
+
s.selectionLength ? (p(), D("div", Xt, [
|
|
1492
|
+
c("div", eo, I(r.$l("Selected")), 1),
|
|
1493
|
+
c("div", to, [
|
|
1494
|
+
c("span", oo, I(s.selectionLength), 1)
|
|
1494
1495
|
])
|
|
1495
1496
|
])) : Y("", !0),
|
|
1496
|
-
t(x) ? (p(), D("div",
|
|
1497
|
-
c("div",
|
|
1498
|
-
c("div",
|
|
1499
|
-
c("span",
|
|
1497
|
+
t(x) ? (p(), D("div", lo, [
|
|
1498
|
+
c("div", ao, I(r.$l("Current")), 1),
|
|
1499
|
+
c("div", no, [
|
|
1500
|
+
c("span", so, I(r.$fa(s.filterTotal, 0)), 1),
|
|
1500
1501
|
k[2] || (k[2] = c("span", { class: "p0-2 txt-dark3" }, "/", -1)),
|
|
1501
|
-
c("span",
|
|
1502
|
+
c("span", ro, I(r.$fa(s.rows, 0)), 1)
|
|
1502
1503
|
])
|
|
1503
1504
|
])) : Y("", !0),
|
|
1504
|
-
c("div",
|
|
1505
|
-
c("div",
|
|
1506
|
-
c("div",
|
|
1505
|
+
c("div", io, [
|
|
1506
|
+
c("div", uo, I(r.$l("Total")), 1),
|
|
1507
|
+
c("div", co, I(r.$fa(s.total, 0)), 1)
|
|
1507
1508
|
])
|
|
1508
1509
|
])
|
|
1509
1510
|
]),
|
|
@@ -1513,10 +1514,10 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1513
1514
|
]);
|
|
1514
1515
|
};
|
|
1515
1516
|
}
|
|
1516
|
-
}),
|
|
1517
|
+
}), Ie = /* @__PURE__ */ ue(mo, [["__scopeId", "data-v-1cd61412"]]), fo = ["id"], go = P({
|
|
1517
1518
|
name: "MvcTableGroupMain",
|
|
1518
1519
|
inheritAttrs: !1
|
|
1519
|
-
}),
|
|
1520
|
+
}), yo = /* @__PURE__ */ Object.assign(go, {
|
|
1520
1521
|
props: {
|
|
1521
1522
|
loading: {
|
|
1522
1523
|
type: Boolean,
|
|
@@ -1614,20 +1615,20 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1614
1615
|
summaryMode: 1,
|
|
1615
1616
|
tableId: "",
|
|
1616
1617
|
sizeChanged: !1
|
|
1617
|
-
}), { proxy:
|
|
1618
|
+
}), { proxy: h } = se();
|
|
1618
1619
|
pe("store").table();
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1620
|
+
const y = _e();
|
|
1621
|
+
Ae(() => {
|
|
1621
1622
|
o.tableId = `Table${+/* @__PURE__ */ new Date()}_${window.$rn(9999)}`;
|
|
1622
1623
|
});
|
|
1623
1624
|
const x = s, O = async (j = {}) => {
|
|
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:
|
|
1625
|
+
const { refresh: G, remote: L } = j;
|
|
1626
|
+
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 }));
|
|
1626
1627
|
}, A = (j) => {
|
|
1627
1628
|
j || o.tableKey++;
|
|
1628
1629
|
}, w = async (j = {}, G) => {
|
|
1629
1630
|
var ee;
|
|
1630
|
-
const { remote:
|
|
1631
|
+
const { remote: L } = j;
|
|
1631
1632
|
if (e.loadData !== void 0) {
|
|
1632
1633
|
o.loading = !0;
|
|
1633
1634
|
let oe;
|
|
@@ -1637,62 +1638,62 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1637
1638
|
pageSize: oe,
|
|
1638
1639
|
...o.search
|
|
1639
1640
|
};
|
|
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,
|
|
1641
|
+
o.pageSize = le.pageSize, o.pageStart = le.pageStart, (ee = e.groupInfo) != null && ee.value && (le.groupBy = e.groupInfo.value), L && (le.remote = !0);
|
|
1642
|
+
const ye = await e.loadData(le);
|
|
1643
|
+
o.loading = !1, ye ? (o.dt = ye, o.filter = JSON.parse(JSON.stringify(ye)), x("update:total", o.dt.total)) : (o.dt = {
|
|
1643
1644
|
total: 0,
|
|
1644
1645
|
list: []
|
|
1645
1646
|
}, o.filter = {
|
|
1646
1647
|
total: 0,
|
|
1647
1648
|
list: []
|
|
1648
|
-
}), Q.value ? k() : x("list-change",
|
|
1649
|
+
}), Q.value ? k() : x("list-change", ye.list || []);
|
|
1649
1650
|
}
|
|
1650
1651
|
C();
|
|
1651
1652
|
}, f = (j) => {
|
|
1652
1653
|
o.summaryMode = j;
|
|
1653
|
-
}, r = ({ columns: j, data: G }) =>
|
|
1654
|
+
}, r = ({ columns: j, data: G }) => Ee({ columns: j, data: G, currency: window.currency }), k = (j = {}) => {
|
|
1654
1655
|
let { v: G = e.filter } = j;
|
|
1655
1656
|
G || (G = j);
|
|
1656
|
-
const
|
|
1657
|
-
return
|
|
1657
|
+
const L = Object.keys(G), ee = [];
|
|
1658
|
+
return L.forEach((oe) => {
|
|
1658
1659
|
const le = G[oe];
|
|
1659
1660
|
le && le.length && ee.push(oe);
|
|
1660
1661
|
}), ee.length ? u(ee, G) : (o.dt.list = [...o.filter.list], o.filter.total = o.dt.total, x("list-change", o.dt.list), o.filter.list);
|
|
1661
1662
|
}, u = (j, G) => {
|
|
1662
|
-
const
|
|
1663
|
+
const L = [];
|
|
1663
1664
|
return o.filter.list.forEach((ee) => {
|
|
1664
1665
|
let oe = !1;
|
|
1665
1666
|
j.forEach((le) => {
|
|
1666
|
-
const
|
|
1667
|
-
let
|
|
1668
|
-
if (window.$getType(
|
|
1667
|
+
const ye = String(ee[le]).toLowerCase();
|
|
1668
|
+
let we = G[le];
|
|
1669
|
+
if (window.$getType(we) === "Array")
|
|
1669
1670
|
try {
|
|
1670
|
-
|
|
1671
|
-
if (
|
|
1671
|
+
we.forEach(($e) => {
|
|
1672
|
+
if ($e && ye.includes(String($e).toLowerCase()))
|
|
1672
1673
|
throw oe = !0, new Error();
|
|
1673
1674
|
});
|
|
1674
1675
|
} catch {
|
|
1675
1676
|
}
|
|
1676
|
-
else
|
|
1677
|
-
}), oe &&
|
|
1678
|
-
}), o.dt.list =
|
|
1677
|
+
else ye.includes(we.toLowerCase()) && (oe = !0);
|
|
1678
|
+
}), oe && L.push(ee);
|
|
1679
|
+
}), o.dt.list = L, o.filter.total = L.length, x("list-change", L), L;
|
|
1679
1680
|
}, m = () => {
|
|
1680
1681
|
o.dt = {
|
|
1681
1682
|
list: e.list,
|
|
1682
1683
|
total: e.list.length
|
|
1683
1684
|
}, o.filter = JSON.parse(JSON.stringify(o.dt)), x("list-change", e.list);
|
|
1684
1685
|
}, S = ({ row: j = {}, id: G }) => {
|
|
1685
|
-
G === void 0 ? o.dt.list.unshift(j) : o.dt.list = o.dt.list.map((
|
|
1686
|
-
...
|
|
1686
|
+
G === void 0 ? o.dt.list.unshift(j) : o.dt.list = o.dt.list.map((L) => L.id === G ? {
|
|
1687
|
+
...L,
|
|
1687
1688
|
...j
|
|
1688
|
-
} :
|
|
1689
|
+
} : L);
|
|
1689
1690
|
}, d = (j, G) => {
|
|
1690
|
-
o.dt.list = o.dt.list.filter((
|
|
1691
|
+
o.dt.list = o.dt.list.filter((L) => L[j] !== G), o.filter.list = o.filter.list.filter((L) => L[j] !== G);
|
|
1691
1692
|
}, i = (j) => {
|
|
1692
|
-
|
|
1693
|
+
y.value.toggleRowExpansion(j);
|
|
1693
1694
|
}, $ = (j, G) => {
|
|
1694
|
-
|
|
1695
|
-
},
|
|
1695
|
+
y.value.toggleRowSelection(j, G);
|
|
1696
|
+
}, _ = (j) => {
|
|
1696
1697
|
o.selection = j, x("selection-change", j);
|
|
1697
1698
|
}, B = (j) => {
|
|
1698
1699
|
x("sort-change", j);
|
|
@@ -1700,15 +1701,15 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1700
1701
|
o.pageSize = j, o.sizeChanged = !0, w();
|
|
1701
1702
|
}, l = (j) => {
|
|
1702
1703
|
o.pageStart = j, w();
|
|
1703
|
-
}, n = (j, G,
|
|
1704
|
+
}, n = (j, G, L) => {
|
|
1704
1705
|
let ee = localStorage.getItem(q.value);
|
|
1705
1706
|
if (ee) {
|
|
1706
1707
|
ee = JSON.parse(ee);
|
|
1707
|
-
const { data: oe } = ee.filter1((le) => le.prop ===
|
|
1708
|
-
oe && (oe.width =
|
|
1708
|
+
const { data: oe } = ee.filter1((le) => le.prop === L.property);
|
|
1709
|
+
oe && (oe.width = L.width, localStorage.setItem(q.value, JSON.stringify(ee)));
|
|
1709
1710
|
}
|
|
1710
1711
|
}, C = () => {
|
|
1711
|
-
|
|
1712
|
+
y.value && y.value.setScrollTop(0);
|
|
1712
1713
|
}, R = () => {
|
|
1713
1714
|
o.loading = !1;
|
|
1714
1715
|
}, F = (j) => {
|
|
@@ -1718,9 +1719,9 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1718
1719
|
options: { tableHeight: j },
|
|
1719
1720
|
page: G
|
|
1720
1721
|
} = 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"),
|
|
1722
|
+
let L = e.height || j;
|
|
1723
|
+
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;
|
|
1724
|
+
}), 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
1725
|
X(
|
|
1725
1726
|
() => U.value,
|
|
1726
1727
|
(j) => {
|
|
@@ -1743,23 +1744,23 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1743
1744
|
toStop: R,
|
|
1744
1745
|
toAdd: F
|
|
1745
1746
|
});
|
|
1746
|
-
const
|
|
1747
|
+
const ve = {
|
|
1747
1748
|
"popper-class": "maxw300"
|
|
1748
1749
|
};
|
|
1749
1750
|
return (j, G) => {
|
|
1750
1751
|
var oe, le;
|
|
1751
|
-
const
|
|
1752
|
+
const L = N("Loading"), ee = N("el-table");
|
|
1752
1753
|
return p(), D("div", {
|
|
1753
1754
|
class: K(["MvcTableGroupMain", t(ce) && "PagiTable"]),
|
|
1754
1755
|
id: t(o).tableId
|
|
1755
1756
|
}, [
|
|
1756
|
-
z(
|
|
1757
|
+
z(L, {
|
|
1757
1758
|
loading: t(J),
|
|
1758
1759
|
class: "loadingRect"
|
|
1759
1760
|
}, null, 8, ["loading"]),
|
|
1760
|
-
(p(),
|
|
1761
|
+
(p(), E(ee, {
|
|
1761
1762
|
ref_key: "table",
|
|
1762
|
-
ref:
|
|
1763
|
+
ref: y,
|
|
1763
1764
|
key: t(o).tableKey,
|
|
1764
1765
|
data: t(o).dt.list,
|
|
1765
1766
|
"row-key": e.rowKey,
|
|
@@ -1768,16 +1769,16 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1768
1769
|
border: "",
|
|
1769
1770
|
"default-sort": M.defaultSort,
|
|
1770
1771
|
"show-summary": e.showSummary,
|
|
1771
|
-
"summary-method": t(
|
|
1772
|
-
"tooltip-options":
|
|
1772
|
+
"summary-method": t(xe),
|
|
1773
|
+
"tooltip-options": ve,
|
|
1773
1774
|
"cell-class-name": e.cellClassName,
|
|
1774
1775
|
onHeaderDragend: n,
|
|
1775
|
-
onSelectionChange:
|
|
1776
|
+
onSelectionChange: _,
|
|
1776
1777
|
onSortChange: B,
|
|
1777
1778
|
onToggleRowSelection: $
|
|
1778
1779
|
}, {
|
|
1779
1780
|
default: b(() => [
|
|
1780
|
-
z(t(
|
|
1781
|
+
z(t(Wt), {
|
|
1781
1782
|
"table-name": e.tableName,
|
|
1782
1783
|
group: e.groupInfo
|
|
1783
1784
|
}, {
|
|
@@ -1789,7 +1790,7 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1789
1790
|
]),
|
|
1790
1791
|
_: 3
|
|
1791
1792
|
}, 8, ["data", "row-key", "height", "default-sort", "show-summary", "summary-method", "cell-class-name"])),
|
|
1792
|
-
e.nofooter ? Y("", !0) : (p(),
|
|
1793
|
+
e.nofooter ? Y("", !0) : (p(), E(Ie, Z({
|
|
1793
1794
|
key: 0,
|
|
1794
1795
|
ref: "footer"
|
|
1795
1796
|
}, j.$attrs, {
|
|
@@ -1807,13 +1808,13 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1807
1808
|
onPageChange: l,
|
|
1808
1809
|
onSummaryModeChange: f
|
|
1809
1810
|
}), null, 16, ["nosummary", "page-num", "page-size", "rows", "filter-rows", "total", "filter-total", "selection-length", "remote-data", "static-total"]))
|
|
1810
|
-
], 10,
|
|
1811
|
+
], 10, fo);
|
|
1811
1812
|
};
|
|
1812
1813
|
}
|
|
1813
|
-
}),
|
|
1814
|
+
}), ho = /* @__PURE__ */ ue(yo, [["__scopeId", "data-v-b05a08f4"]]), _o = P({
|
|
1814
1815
|
name: "Table",
|
|
1815
1816
|
inheritAttrs: !1
|
|
1816
|
-
}),
|
|
1817
|
+
}), bo = /* @__PURE__ */ Object.assign(_o, {
|
|
1817
1818
|
props: {
|
|
1818
1819
|
showTotalChosen: {
|
|
1819
1820
|
type: Boolean,
|
|
@@ -1841,44 +1842,44 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1841
1842
|
}
|
|
1842
1843
|
},
|
|
1843
1844
|
setup(M, { expose: V, emit: s }) {
|
|
1844
|
-
const e = s, o = M,
|
|
1845
|
+
const e = s, o = M, h = H({
|
|
1845
1846
|
columnInfo: {},
|
|
1846
1847
|
selection: [],
|
|
1847
1848
|
list: [],
|
|
1848
1849
|
total: 0,
|
|
1849
1850
|
groupInfo: {}
|
|
1850
|
-
}), a =
|
|
1851
|
-
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1851
|
+
}), a = _e();
|
|
1852
|
+
_e();
|
|
1853
|
+
const y = _e(), { proxy: x } = se(), O = (l) => {
|
|
1854
|
+
y.value.toFilter(l);
|
|
1854
1855
|
}, A = (l) => {
|
|
1855
|
-
|
|
1856
|
+
y.value.initTable(l);
|
|
1856
1857
|
}, w = (l) => {
|
|
1857
|
-
|
|
1858
|
+
y.value.editRow(l);
|
|
1858
1859
|
}, f = () => {
|
|
1859
|
-
|
|
1860
|
+
y.value.refreshTable();
|
|
1860
1861
|
}, r = (l) => {
|
|
1861
|
-
|
|
1862
|
+
h.list = l;
|
|
1862
1863
|
}, k = (l) => {
|
|
1863
|
-
|
|
1864
|
+
h.selection = l;
|
|
1864
1865
|
}, u = (l) => {
|
|
1865
|
-
|
|
1866
|
+
y.value.toggleRowExpansion(l);
|
|
1866
1867
|
}, m = (l, n) => {
|
|
1867
|
-
|
|
1868
|
+
y.value.toggleRowSelection(l, n);
|
|
1868
1869
|
}, S = () => {
|
|
1869
|
-
x.$attrs.list ||
|
|
1870
|
+
x.$attrs.list || y.value.initTable({ refresh: !0, remote: o.remote }), o.customRefresh && e("customRefreshFunc");
|
|
1870
1871
|
}, d = (l) => {
|
|
1871
|
-
|
|
1872
|
-
|
|
1872
|
+
h.groupInfo = l, fe(() => {
|
|
1873
|
+
y.value.initTable();
|
|
1873
1874
|
});
|
|
1874
1875
|
}, i = () => {
|
|
1875
|
-
|
|
1876
|
+
y.value.$refs.table.clearSelection();
|
|
1876
1877
|
}, $ = () => {
|
|
1877
|
-
|
|
1878
|
-
},
|
|
1879
|
-
|
|
1878
|
+
y.value.toStop();
|
|
1879
|
+
}, _ = (l) => {
|
|
1880
|
+
y.value.toAdd(l);
|
|
1880
1881
|
}, B = (l, n) => {
|
|
1881
|
-
|
|
1882
|
+
y.value.removeRow(l, n);
|
|
1882
1883
|
}, T = g(() => x.$attrs["table-name"]);
|
|
1883
1884
|
return g(() => `${T.value}_Column`), V({
|
|
1884
1885
|
initTable: A,
|
|
@@ -1890,19 +1891,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1890
1891
|
toInitTable: f,
|
|
1891
1892
|
clearSelection: i,
|
|
1892
1893
|
toStop: $,
|
|
1893
|
-
toAdd:
|
|
1894
|
+
toAdd: _
|
|
1894
1895
|
}), (l, n) => (p(), D("div", {
|
|
1895
1896
|
class: K(["Table", o.tableClass])
|
|
1896
1897
|
}, [
|
|
1897
|
-
o.noheader ? Y("", !0) : (p(),
|
|
1898
|
+
o.noheader ? Y("", !0) : (p(), E(Kt, Z({
|
|
1898
1899
|
key: 0,
|
|
1899
1900
|
ref_key: "header",
|
|
1900
1901
|
ref: a
|
|
1901
1902
|
}, l.$attrs, {
|
|
1902
1903
|
filterTagShow: o.filterTagShow,
|
|
1903
|
-
list: t(
|
|
1904
|
-
selection: t(
|
|
1905
|
-
total: t(
|
|
1904
|
+
list: t(h).list,
|
|
1905
|
+
selection: t(h).selection,
|
|
1906
|
+
total: t(h).total,
|
|
1906
1907
|
showTotalChosen: o.showTotalChosen,
|
|
1907
1908
|
onToInitTable: f,
|
|
1908
1909
|
onGroupChange: d,
|
|
@@ -1921,13 +1922,13 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1921
1922
|
key: "0"
|
|
1922
1923
|
} : void 0
|
|
1923
1924
|
]), 1040, ["filterTagShow", "list", "selection", "total", "showTotalChosen"])),
|
|
1924
|
-
z(
|
|
1925
|
+
z(ho, Z({
|
|
1925
1926
|
ref_key: "main",
|
|
1926
|
-
ref:
|
|
1927
|
+
ref: y
|
|
1927
1928
|
}, l.$attrs, {
|
|
1928
|
-
"group-info": t(
|
|
1929
|
-
total: t(
|
|
1930
|
-
"onUpdate:total": n[0] || (n[0] = (C) => t(
|
|
1929
|
+
"group-info": t(h).groupInfo,
|
|
1930
|
+
total: t(h).total,
|
|
1931
|
+
"onUpdate:total": n[0] || (n[0] = (C) => t(h).total = C),
|
|
1931
1932
|
onSelectionChange: k,
|
|
1932
1933
|
onListChange: r
|
|
1933
1934
|
}), {
|
|
@@ -1938,12 +1939,12 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1938
1939
|
}, 16, ["group-info", "total"])
|
|
1939
1940
|
], 2));
|
|
1940
1941
|
}
|
|
1941
|
-
}),
|
|
1942
|
+
}), vo = /* @__PURE__ */ ue(bo, [["__scopeId", "data-v-22eb1590"]]), wo = { class: "SuperTextarea relative" }, $o = {
|
|
1942
1943
|
key: 0,
|
|
1943
1944
|
class: "absFull flexMode hc vc z9"
|
|
1944
|
-
},
|
|
1945
|
+
}, So = P({
|
|
1945
1946
|
name: "SuperTextarea"
|
|
1946
|
-
}),
|
|
1947
|
+
}), Co = /* @__PURE__ */ Object.assign(So, {
|
|
1947
1948
|
props: {
|
|
1948
1949
|
modelValue: {
|
|
1949
1950
|
type: [String, Array],
|
|
@@ -1985,21 +1986,21 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
1985
1986
|
},
|
|
1986
1987
|
emits: ["total", "update:modelValue", "blur"],
|
|
1987
1988
|
setup(M, { expose: V, emit: s }) {
|
|
1988
|
-
const e = M, o = H({ v: "", total: 0, mounted: !1 }), { proxy:
|
|
1989
|
+
const e = M, o = H({ v: "", total: 0, mounted: !1 }), { proxy: h } = se();
|
|
1989
1990
|
re(() => {
|
|
1990
|
-
e.focus &&
|
|
1991
|
+
e.focus && y(v);
|
|
1991
1992
|
});
|
|
1992
|
-
const a = s,
|
|
1993
|
+
const a = s, y = (S) => {
|
|
1993
1994
|
fe(() => {
|
|
1994
|
-
|
|
1995
|
+
h.$refs.input.focus(), S && h.$refs.input.select();
|
|
1995
1996
|
});
|
|
1996
1997
|
}, x = (S) => {
|
|
1997
1998
|
let d = 0, i = [];
|
|
1998
1999
|
const $ = [];
|
|
1999
2000
|
if (S) {
|
|
2000
2001
|
if (i = S.split(`
|
|
2001
|
-
`), i.forEach((
|
|
2002
|
-
|
|
2002
|
+
`), i.forEach((_) => {
|
|
2003
|
+
_.trim() && (d++, $.push(_));
|
|
2003
2004
|
}), !w.value) {
|
|
2004
2005
|
o.v = r.value ? [] : "";
|
|
2005
2006
|
return;
|
|
@@ -2009,19 +2010,19 @@ const Re = { class: "fw700" }, Pe = P({
|
|
|
2009
2010
|
a("update:modelValue", r.value ? [] : "");
|
|
2010
2011
|
o.total = d, a("total", d);
|
|
2011
2012
|
}, O = () => {
|
|
2012
|
-
o.v = "", o.total = 0, a("update:modelValue", ""), a("change", ""),
|
|
2013
|
+
o.v = "", o.total = 0, a("update:modelValue", ""), a("change", ""), y();
|
|
2013
2014
|
}, A = () => {
|
|
2014
2015
|
a("blur");
|
|
2015
2016
|
}, 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
2017
|
${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.modelValue);
|
|
2017
|
-
return
|
|
2018
|
+
return Ne(() => {
|
|
2018
2019
|
m.value && w.value ? m.value !== o.v && (o.v = m.value, x(m.value)) : (o.v = "", o.total = 0);
|
|
2019
2020
|
}), V({
|
|
2020
|
-
toFocus:
|
|
2021
|
+
toFocus: y
|
|
2021
2022
|
}), (S, d) => {
|
|
2022
2023
|
const i = N("el-input");
|
|
2023
|
-
return p(), D("div",
|
|
2024
|
-
e.loading ? (p(), D("div",
|
|
2024
|
+
return p(), D("div", wo, [
|
|
2025
|
+
e.loading ? (p(), D("div", $o, [...d[1] || (d[1] = [
|
|
2025
2026
|
c("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
2026
2027
|
])])) : Y("", !0),
|
|
2027
2028
|
z(i, {
|
|
@@ -2057,16 +2058,16 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2057
2058
|
key: 2,
|
|
2058
2059
|
class: "prefix abs l t",
|
|
2059
2060
|
style: { padding: "6px 11px" },
|
|
2060
|
-
onClick:
|
|
2061
|
+
onClick: he(($) => null, ["stop"])
|
|
2061
2062
|
}, [
|
|
2062
2063
|
W(S.$slots, "prefix", {}, void 0, !0)
|
|
2063
2064
|
])) : Y("", !0)
|
|
2064
2065
|
]);
|
|
2065
2066
|
};
|
|
2066
2067
|
}
|
|
2067
|
-
}),
|
|
2068
|
+
}), ko = /* @__PURE__ */ ue(Co, [["__scopeId", "data-v-005d323b"]]), xo = { class: "SuperAiApp relative" }, Vo = { class: "flexMode vc g8" }, Oo = { class: "txt-nowrap" }, To = { class: "txt-dark5" }, Ao = P({
|
|
2068
2069
|
name: "SuperAiApp"
|
|
2069
|
-
}),
|
|
2070
|
+
}), Do = /* @__PURE__ */ Object.assign(Ao, {
|
|
2070
2071
|
props: {
|
|
2071
2072
|
modelValue: {
|
|
2072
2073
|
type: Number,
|
|
@@ -2097,21 +2098,21 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2097
2098
|
single: "",
|
|
2098
2099
|
multiple: [],
|
|
2099
2100
|
options: []
|
|
2100
|
-
}),
|
|
2101
|
+
}), h = pe("store").ai();
|
|
2101
2102
|
re(() => {
|
|
2102
|
-
|
|
2103
|
+
y();
|
|
2103
2104
|
});
|
|
2104
|
-
const a = V,
|
|
2105
|
+
const a = V, y = async () => {
|
|
2105
2106
|
if (O.value.length) {
|
|
2106
2107
|
a("success");
|
|
2107
2108
|
return;
|
|
2108
2109
|
}
|
|
2109
|
-
e.loading = !0, await
|
|
2110
|
+
e.loading = !0, await h.getAppOptions(), e.loading = !1, a("success");
|
|
2110
2111
|
}, x = (f) => {
|
|
2111
2112
|
a("update:modelValue", f);
|
|
2112
|
-
const { data: r } =
|
|
2113
|
+
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2113
2114
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs));
|
|
2114
|
-
}, O = g(() =>
|
|
2115
|
+
}, O = g(() => h.appOptions), A = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), w = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2115
2116
|
return X(
|
|
2116
2117
|
() => s.modelValue,
|
|
2117
2118
|
(f) => {
|
|
@@ -2130,8 +2131,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2130
2131
|
}
|
|
2131
2132
|
), (f, r) => {
|
|
2132
2133
|
const k = N("IconLoading"), u = N("Image"), m = N("el-option"), S = N("el-select");
|
|
2133
|
-
return p(), D("div",
|
|
2134
|
-
t(e).loading ? (p(),
|
|
2134
|
+
return p(), D("div", xo, [
|
|
2135
|
+
t(e).loading ? (p(), E(k, { key: 0 })) : Y("", !0),
|
|
2135
2136
|
z(S, Z({
|
|
2136
2137
|
modelValue: t(e).single,
|
|
2137
2138
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => t(e).single = d),
|
|
@@ -2142,19 +2143,19 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2142
2143
|
"fit-input-width": ""
|
|
2143
2144
|
}, f.$attrs, { onChange: x }), ae({
|
|
2144
2145
|
default: b(() => [
|
|
2145
|
-
(p(!0), D(ie, null, de(t(O), (d, i) => (p(),
|
|
2146
|
+
(p(!0), D(ie, null, de(t(O), (d, i) => (p(), E(m, {
|
|
2146
2147
|
key: i,
|
|
2147
2148
|
label: d.label,
|
|
2148
2149
|
value: d.id
|
|
2149
2150
|
}, {
|
|
2150
2151
|
default: b(() => [
|
|
2151
|
-
c("div",
|
|
2152
|
+
c("div", Vo, [
|
|
2152
2153
|
z(u, {
|
|
2153
2154
|
src: d.icon,
|
|
2154
2155
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2155
2156
|
}, null, 8, ["src"]),
|
|
2156
|
-
c("span",
|
|
2157
|
-
c("span",
|
|
2157
|
+
c("span", Oo, I(d.name), 1),
|
|
2158
|
+
c("span", To, "(" + I(d.id) + ")", 1)
|
|
2158
2159
|
])
|
|
2159
2160
|
]),
|
|
2160
2161
|
_: 2
|
|
@@ -2176,9 +2177,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2176
2177
|
]);
|
|
2177
2178
|
};
|
|
2178
2179
|
}
|
|
2179
|
-
}),
|
|
2180
|
+
}), Mo = { class: "SuperAsaOrg relative" }, No = { class: "inputGroup" }, Io = { class: "inputGroupLeft noShrink" }, zo = { class: "flexMode vc g4" }, Bo = { class: "txt-dark5" }, jo = P({
|
|
2180
2181
|
name: "SuperAsaOrg"
|
|
2181
|
-
}),
|
|
2182
|
+
}), Yo = /* @__PURE__ */ Object.assign(jo, {
|
|
2182
2183
|
props: {
|
|
2183
2184
|
app: {
|
|
2184
2185
|
type: Number,
|
|
@@ -2216,11 +2217,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2216
2217
|
single: "",
|
|
2217
2218
|
multiple: [],
|
|
2218
2219
|
options: []
|
|
2219
|
-
}),
|
|
2220
|
+
}), h = pe("store").ai();
|
|
2220
2221
|
re(() => {
|
|
2221
|
-
|
|
2222
|
+
y();
|
|
2222
2223
|
});
|
|
2223
|
-
const a = V,
|
|
2224
|
+
const a = V, y = async () => {
|
|
2224
2225
|
f.value.length ? (e.single || x(f.value[0].id), a("success")) : a("error");
|
|
2225
2226
|
}, x = (u) => {
|
|
2226
2227
|
var m, S, d, i;
|
|
@@ -2228,10 +2229,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2228
2229
|
}, O = () => {
|
|
2229
2230
|
var m;
|
|
2230
2231
|
let u = r.value;
|
|
2231
|
-
|
|
2232
|
+
h.saveData("accountTimezone", {
|
|
2232
2233
|
timezoneName: u == null ? void 0 : u.timezone,
|
|
2233
2234
|
tip: "Account",
|
|
2234
|
-
timezone: (m =
|
|
2235
|
+
timezone: (m = ge("common.timezone").filter1(
|
|
2235
2236
|
(S) => S.label === (u == null ? void 0 : u.timezone)
|
|
2236
2237
|
).data) == null ? void 0 : m.value
|
|
2237
2238
|
});
|
|
@@ -2239,7 +2240,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2239
2240
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
2240
2241
|
}, w = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
2241
2242
|
var u;
|
|
2242
|
-
return s.app ? ((u =
|
|
2243
|
+
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
2243
2244
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
2244
2245
|
return X(
|
|
2245
2246
|
() => s.modelValue,
|
|
@@ -2251,13 +2252,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2251
2252
|
}
|
|
2252
2253
|
), (u, m) => {
|
|
2253
2254
|
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), $ = N("el-select");
|
|
2254
|
-
return p(), D("div",
|
|
2255
|
-
t(e).loading ? (p(),
|
|
2256
|
-
c("div",
|
|
2257
|
-
c("div",
|
|
2255
|
+
return p(), D("div", Mo, [
|
|
2256
|
+
t(e).loading ? (p(), E(S, { key: 0 })) : Y("", !0),
|
|
2257
|
+
c("div", No, [
|
|
2258
|
+
c("div", Io, [
|
|
2258
2259
|
z(d, {
|
|
2259
2260
|
circle: "",
|
|
2260
|
-
onClick: m[0] || (m[0] = (
|
|
2261
|
+
onClick: m[0] || (m[0] = (_) => u.$copy(t(e).single, "ID"))
|
|
2261
2262
|
}, {
|
|
2262
2263
|
icon: b(() => [...m[2] || (m[2] = [
|
|
2263
2264
|
c("i", { class: "imicon im-copy" }, null, -1)
|
|
@@ -2267,7 +2268,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2267
2268
|
]),
|
|
2268
2269
|
z($, Z({
|
|
2269
2270
|
modelValue: t(e).single,
|
|
2270
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
2271
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
2271
2272
|
placeholder: t(w),
|
|
2272
2273
|
disabled: t(k),
|
|
2273
2274
|
filterable: ""
|
|
@@ -2276,19 +2277,19 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2276
2277
|
onChange: x
|
|
2277
2278
|
}), {
|
|
2278
2279
|
default: b(() => [
|
|
2279
|
-
(p(!0), D(ie, null, de(t(f), (
|
|
2280
|
+
(p(!0), D(ie, null, de(t(f), (_, B) => (p(), E(i, {
|
|
2280
2281
|
key: B,
|
|
2281
|
-
label: `${
|
|
2282
|
-
value:
|
|
2283
|
-
disabled: s.readonly &&
|
|
2282
|
+
label: `${_.name} (${_.id})`,
|
|
2283
|
+
value: _.id,
|
|
2284
|
+
disabled: s.readonly && _.readonly
|
|
2284
2285
|
}, {
|
|
2285
2286
|
default: b(() => [
|
|
2286
|
-
c("div",
|
|
2287
|
+
c("div", zo, [
|
|
2287
2288
|
c("i", {
|
|
2288
|
-
class: K(["imicon",
|
|
2289
|
+
class: K(["imicon", _.readonly ? "" : "im-writing"])
|
|
2289
2290
|
}, null, 2),
|
|
2290
|
-
c("span", null, I(
|
|
2291
|
-
c("span",
|
|
2291
|
+
c("span", null, I(_.name), 1),
|
|
2292
|
+
c("span", Bo, "(" + I(_.id) + ")", 1)
|
|
2292
2293
|
])
|
|
2293
2294
|
]),
|
|
2294
2295
|
_: 2
|
|
@@ -2300,12 +2301,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2300
2301
|
]);
|
|
2301
2302
|
};
|
|
2302
2303
|
}
|
|
2303
|
-
}),
|
|
2304
|
+
}), Eo = { class: "SuperAsaAdGroup relative" }, Lo = { class: "outsideIgnore" }, Ro = { class: "flexMode vc g8" }, Po = { class: "flexMode hr outsideIgnore" }, Fo = {
|
|
2304
2305
|
key: 2,
|
|
2305
2306
|
class: "inputGroup"
|
|
2306
|
-
},
|
|
2307
|
+
}, Uo = { class: "inputGroupLeft noShrink" }, Go = { class: "flexMode vc g8" }, Ho = P({
|
|
2307
2308
|
name: "SuperAsaAdGroup"
|
|
2308
|
-
}),
|
|
2309
|
+
}), Jo = /* @__PURE__ */ Object.assign(Ho, {
|
|
2309
2310
|
props: {
|
|
2310
2311
|
modelValue: {
|
|
2311
2312
|
type: [Number, Array],
|
|
@@ -2357,26 +2358,26 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2357
2358
|
multiple: [],
|
|
2358
2359
|
options: [],
|
|
2359
2360
|
filterTxt: ""
|
|
2360
|
-
}), { proxy:
|
|
2361
|
+
}), { proxy: h } = se(), a = s, y = async () => {
|
|
2361
2362
|
const i = window.$getType(e.campaign);
|
|
2362
2363
|
let $;
|
|
2363
2364
|
if (i === "Array" ? $ = e.campaign.join(",") : $ = e.campaign.toString(), !$)
|
|
2364
2365
|
return;
|
|
2365
|
-
let
|
|
2366
|
+
let _ = {
|
|
2366
2367
|
data: {
|
|
2367
2368
|
appId: e.app,
|
|
2368
2369
|
orgId: e.org,
|
|
2369
2370
|
campaignId: $
|
|
2370
2371
|
}
|
|
2371
2372
|
};
|
|
2372
|
-
e.needNew && (
|
|
2373
|
+
e.needNew && (_.ex = +/* @__PURE__ */ new Date()), o.loading = !0;
|
|
2373
2374
|
const { code: B, data: T } = await window.$post({
|
|
2374
2375
|
url: window.$api.asa.adGroupOptions,
|
|
2375
|
-
...
|
|
2376
|
+
..._
|
|
2376
2377
|
});
|
|
2377
2378
|
if (o.loading = !1, B === 200) {
|
|
2378
2379
|
let l;
|
|
2379
|
-
e.permission ? l = T.filter((n) => n.permission === e.permission) : l = T, o.options = l.map((n) => (n.sort =
|
|
2380
|
+
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
2381
|
}
|
|
2381
2382
|
if (e.multiple && e.modelValue && e.modelValue.length > 0) {
|
|
2382
2383
|
const l = e.modelValue.map((n) => {
|
|
@@ -2389,11 +2390,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2389
2390
|
}, x = (i) => {
|
|
2390
2391
|
o.filterTxt = i;
|
|
2391
2392
|
}, O = () => {
|
|
2392
|
-
|
|
2393
|
+
h.$refs.multipleSelect.blur(), e.confirmAction && a("confirm");
|
|
2393
2394
|
}, A = (i) => {
|
|
2394
|
-
const $ = i.map((
|
|
2395
|
-
const { data: B } = m.value.filter1((T) => T[e.value] ===
|
|
2396
|
-
return B ? B.name : `Unknown Name ${
|
|
2395
|
+
const $ = i.map((_) => {
|
|
2396
|
+
const { data: B } = m.value.filter1((T) => T[e.value] === _);
|
|
2397
|
+
return B ? B.name : `Unknown Name ${_}`;
|
|
2397
2398
|
});
|
|
2398
2399
|
a("update:modelValue", o.multiple), a("update:name", $), a("change", i);
|
|
2399
2400
|
}, w = () => {
|
|
@@ -2404,20 +2405,20 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2404
2405
|
return i;
|
|
2405
2406
|
}).map((i) => i[e.value]), a("update:modelValue", o.multiple);
|
|
2406
2407
|
}, r = () => {
|
|
2407
|
-
|
|
2408
|
+
y();
|
|
2408
2409
|
}, 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
2410
|
g(() => e.app && e.org && e.campaign);
|
|
2410
2411
|
const d = g(() => {
|
|
2411
|
-
var
|
|
2412
|
+
var _, B;
|
|
2412
2413
|
let i = !1;
|
|
2413
2414
|
const $ = window.$getType(e.campaign);
|
|
2414
|
-
return e.multiple && $ === "Array" ? i = e.special ? ((
|
|
2415
|
+
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
2416
|
});
|
|
2416
2417
|
return X(
|
|
2417
2418
|
() => e.campaign,
|
|
2418
2419
|
(i, $) => {
|
|
2419
|
-
const
|
|
2420
|
-
e.multiple ? (
|
|
2420
|
+
const _ = window.$getType(i);
|
|
2421
|
+
e.multiple ? (_ === "Array" && i.length || _ === "Number" && i) && y() : i && i !== $ && y();
|
|
2421
2422
|
},
|
|
2422
2423
|
{
|
|
2423
2424
|
immediate: !0
|
|
@@ -2433,10 +2434,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2433
2434
|
), V({
|
|
2434
2435
|
reload: r
|
|
2435
2436
|
}), (i, $) => {
|
|
2436
|
-
const
|
|
2437
|
-
return p(), D("div",
|
|
2438
|
-
t(o).loading ? (p(),
|
|
2439
|
-
e.multiple ? (p(),
|
|
2437
|
+
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");
|
|
2438
|
+
return p(), D("div", Eo, [
|
|
2439
|
+
t(o).loading ? (p(), E(_, { key: 0 })) : Y("", !0),
|
|
2440
|
+
e.multiple ? (p(), E(n, Z({
|
|
2440
2441
|
key: 1,
|
|
2441
2442
|
ref: "multipleSelect",
|
|
2442
2443
|
modelValue: t(o).multiple,
|
|
@@ -2454,7 +2455,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2454
2455
|
}, i.$attrs, { onChange: A }), {
|
|
2455
2456
|
header: b(() => [
|
|
2456
2457
|
c("div", Lo, [
|
|
2457
|
-
t(o).filterTxt ? (p(),
|
|
2458
|
+
t(o).filterTxt ? (p(), E(B, {
|
|
2458
2459
|
key: 0,
|
|
2459
2460
|
onClick: f,
|
|
2460
2461
|
class: "outsideIgnore"
|
|
@@ -2479,7 +2480,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2479
2480
|
})
|
|
2480
2481
|
]),
|
|
2481
2482
|
default: b(({ it: F }) => [
|
|
2482
|
-
c("div",
|
|
2483
|
+
c("div", Ro, [
|
|
2483
2484
|
z(l, {
|
|
2484
2485
|
status: F.status,
|
|
2485
2486
|
nolabel: ""
|
|
@@ -2488,10 +2489,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2488
2489
|
])
|
|
2489
2490
|
]),
|
|
2490
2491
|
footer: b(() => [
|
|
2491
|
-
c("div",
|
|
2492
|
+
c("div", Po, [
|
|
2492
2493
|
z(B, {
|
|
2493
2494
|
type: "primary",
|
|
2494
|
-
onClick:
|
|
2495
|
+
onClick: he(O, ["stop"])
|
|
2495
2496
|
}, {
|
|
2496
2497
|
default: b(() => [
|
|
2497
2498
|
ne(I(i.$l("Confirm")), 1)
|
|
@@ -2501,8 +2502,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2501
2502
|
])
|
|
2502
2503
|
]),
|
|
2503
2504
|
_: 1
|
|
2504
|
-
}, 16, ["modelValue", "options", "placeholder", "label", "value", "disabled"])) : (p(), D("div",
|
|
2505
|
-
c("div",
|
|
2505
|
+
}, 16, ["modelValue", "options", "placeholder", "label", "value", "disabled"])) : (p(), D("div", Fo, [
|
|
2506
|
+
c("div", Uo, [
|
|
2506
2507
|
z(B, {
|
|
2507
2508
|
circle: "",
|
|
2508
2509
|
onClick: $[1] || ($[1] = (F) => i.$copy(t(o).single, "ID"))
|
|
@@ -2525,13 +2526,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2525
2526
|
onChange: w
|
|
2526
2527
|
}), ae({
|
|
2527
2528
|
default: b(() => [
|
|
2528
|
-
(p(!0), D(ie, null, de(t(o).options, (F, J) => (p(),
|
|
2529
|
+
(p(!0), D(ie, null, de(t(o).options, (F, J) => (p(), E(C, {
|
|
2529
2530
|
key: J,
|
|
2530
2531
|
label: i.$l(F.name),
|
|
2531
2532
|
value: F[e.value]
|
|
2532
2533
|
}, {
|
|
2533
2534
|
default: b(() => [
|
|
2534
|
-
c("div",
|
|
2535
|
+
c("div", Go, [
|
|
2535
2536
|
z(l, {
|
|
2536
2537
|
status: F.status,
|
|
2537
2538
|
nolabel: ""
|
|
@@ -2559,9 +2560,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2559
2560
|
]);
|
|
2560
2561
|
};
|
|
2561
2562
|
}
|
|
2562
|
-
}),
|
|
2563
|
+
}), Ko = { class: "SuperAsaApp relative" }, Wo = { class: "flexMode vc g8" }, qo = { class: "txt-nowrap" }, Zo = { class: "txt-dark5" }, Qo = P({
|
|
2563
2564
|
name: "SuperAsaApp"
|
|
2564
|
-
}),
|
|
2565
|
+
}), Xo = /* @__PURE__ */ Object.assign(Qo, {
|
|
2565
2566
|
props: {
|
|
2566
2567
|
modelValue: {
|
|
2567
2568
|
type: Number,
|
|
@@ -2597,21 +2598,21 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2597
2598
|
single: "",
|
|
2598
2599
|
multiple: [],
|
|
2599
2600
|
options: []
|
|
2600
|
-
}),
|
|
2601
|
+
}), h = pe("store").asa();
|
|
2601
2602
|
re(() => {
|
|
2602
|
-
|
|
2603
|
+
y();
|
|
2603
2604
|
});
|
|
2604
|
-
const a = V,
|
|
2605
|
+
const a = V, y = async () => {
|
|
2605
2606
|
if (O.value.length) {
|
|
2606
2607
|
a("success");
|
|
2607
2608
|
return;
|
|
2608
2609
|
}
|
|
2609
|
-
e.loading = !0, await
|
|
2610
|
+
e.loading = !0, await h.getAppOptions(), e.loading = !1, a("success");
|
|
2610
2611
|
}, x = (f) => {
|
|
2611
2612
|
a("update:modelValue", f);
|
|
2612
|
-
const { data: r } =
|
|
2613
|
+
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2613
2614
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs)), a("change", f);
|
|
2614
|
-
}, O = g(() =>
|
|
2615
|
+
}, O = g(() => h.appOptions), A = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), w = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2615
2616
|
return X(
|
|
2616
2617
|
() => s.modelValue,
|
|
2617
2618
|
(f) => {
|
|
@@ -2630,8 +2631,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2630
2631
|
}
|
|
2631
2632
|
), (f, r) => {
|
|
2632
2633
|
const k = N("IconLoading"), u = N("Image"), m = N("el-option"), S = N("el-select");
|
|
2633
|
-
return p(), D("div",
|
|
2634
|
-
t(e).loading ? (p(),
|
|
2634
|
+
return p(), D("div", Ko, [
|
|
2635
|
+
t(e).loading ? (p(), E(k, { key: 0 })) : Y("", !0),
|
|
2635
2636
|
z(S, Z({
|
|
2636
2637
|
modelValue: t(e).single,
|
|
2637
2638
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => t(e).single = d),
|
|
@@ -2642,19 +2643,19 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2642
2643
|
"fit-input-width": ""
|
|
2643
2644
|
}, f.$attrs, { onChange: x }), ae({
|
|
2644
2645
|
default: b(() => [
|
|
2645
|
-
(p(!0), D(ie, null, de(t(O), (d, i) => (p(),
|
|
2646
|
+
(p(!0), D(ie, null, de(t(O), (d, i) => (p(), E(m, {
|
|
2646
2647
|
key: i,
|
|
2647
2648
|
label: d.label,
|
|
2648
2649
|
value: d.id
|
|
2649
2650
|
}, {
|
|
2650
2651
|
default: b(() => [
|
|
2651
|
-
c("div",
|
|
2652
|
+
c("div", Wo, [
|
|
2652
2653
|
z(u, {
|
|
2653
2654
|
src: d.icon,
|
|
2654
2655
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2655
2656
|
}, null, 8, ["src"]),
|
|
2656
|
-
c("span",
|
|
2657
|
-
c("span",
|
|
2657
|
+
c("span", qo, I(d.name), 1),
|
|
2658
|
+
c("span", Zo, "(" + I(d.id) + ")", 1)
|
|
2658
2659
|
])
|
|
2659
2660
|
]),
|
|
2660
2661
|
_: 2
|
|
@@ -2676,18 +2677,18 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2676
2677
|
]);
|
|
2677
2678
|
};
|
|
2678
2679
|
}
|
|
2679
|
-
}),
|
|
2680
|
+
}), el = { class: "SuperAsaCampaign relative" }, tl = { class: "outsideIgnore" }, ol = { class: "flexMode vc g8" }, ll = {
|
|
2680
2681
|
key: 0,
|
|
2681
2682
|
class: "imicon im-writing"
|
|
2682
|
-
},
|
|
2683
|
+
}, al = { class: "txt-nowrap" }, nl = { class: "flexMode hr outsideIgnore" }, sl = {
|
|
2683
2684
|
key: 2,
|
|
2684
2685
|
class: "inputGroup"
|
|
2685
|
-
},
|
|
2686
|
+
}, rl = { class: "inputGroupLeft noShrink" }, il = { class: "flexMode vc g8" }, dl = {
|
|
2686
2687
|
key: 0,
|
|
2687
2688
|
class: "imicon im-writing"
|
|
2688
|
-
},
|
|
2689
|
+
}, ul = { class: "txt-nowrap" }, cl = P({
|
|
2689
2690
|
name: "SuperAsaCampaign"
|
|
2690
|
-
}),
|
|
2691
|
+
}), pl = /* @__PURE__ */ Object.assign(cl, {
|
|
2691
2692
|
props: {
|
|
2692
2693
|
modelValue: {
|
|
2693
2694
|
type: [Array, Number],
|
|
@@ -2737,9 +2738,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2737
2738
|
multiple: [],
|
|
2738
2739
|
options: [],
|
|
2739
2740
|
filterTxt: ""
|
|
2740
|
-
}), { proxy:
|
|
2741
|
+
}), { proxy: h } = se();
|
|
2741
2742
|
pe("store").common();
|
|
2742
|
-
const
|
|
2743
|
+
const y = s, x = async (T) => {
|
|
2743
2744
|
o.loading = !0;
|
|
2744
2745
|
const { code: l, data: n } = await window.$post({
|
|
2745
2746
|
url: window.$api.asa.campaignOptions,
|
|
@@ -2749,11 +2750,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2749
2750
|
},
|
|
2750
2751
|
ex: e.useex ? e.org : +/* @__PURE__ */ new Date()
|
|
2751
2752
|
});
|
|
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)),
|
|
2753
|
+
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
2754
|
}, O = () => {
|
|
2754
|
-
|
|
2755
|
+
h.$refs.multipleSelect.blur(), y("confirm");
|
|
2755
2756
|
}, A = (T) => {
|
|
2756
|
-
|
|
2757
|
+
y("update:modelValue", T), y("change", T);
|
|
2757
2758
|
const l = {};
|
|
2758
2759
|
d.value.filter((C) => T.indexOf(C.id) > -1).forEach((C) => {
|
|
2759
2760
|
l[C.adChannelType] = !0;
|
|
@@ -2762,24 +2763,24 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2762
2763
|
const { data: R } = d.value.filter1((F) => F[e.value] === C);
|
|
2763
2764
|
return R ? R.name : `Unknown Name ${C}`;
|
|
2764
2765
|
});
|
|
2765
|
-
|
|
2766
|
+
y("update:name", n), y("update:ad-type", Object.keys(l));
|
|
2766
2767
|
}, w = (T) => {
|
|
2767
2768
|
var l, n;
|
|
2768
|
-
|
|
2769
|
+
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
2770
|
}, f = (T) => {
|
|
2770
2771
|
var l, n;
|
|
2771
|
-
|
|
2772
|
+
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
2773
|
}, r = () => {
|
|
2773
2774
|
o.multiple = d.value.filter((T) => {
|
|
2774
2775
|
if (T.hide === !1)
|
|
2775
2776
|
return T;
|
|
2776
|
-
}).map((T) => T[e.value]),
|
|
2777
|
+
}).map((T) => T[e.value]), y("update:modelValue", o.multiple);
|
|
2777
2778
|
}, k = (T) => {
|
|
2778
2779
|
o.filterTxt = T;
|
|
2779
2780
|
}, u = () => {
|
|
2780
2781
|
x();
|
|
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} ${
|
|
2782
|
+
}, 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);
|
|
2783
|
+
g(() => `${$.value} ${_.value}`), g(() => e.app && e.org);
|
|
2783
2784
|
const B = g(() => !e.org);
|
|
2784
2785
|
return X(
|
|
2785
2786
|
() => e.org,
|
|
@@ -2809,9 +2810,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2809
2810
|
reload: u
|
|
2810
2811
|
}), (T, l) => {
|
|
2811
2812
|
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 p(), D("div",
|
|
2813
|
-
t(o).loading ? (p(),
|
|
2814
|
-
e.multiple ? (p(),
|
|
2813
|
+
return p(), D("div", el, [
|
|
2814
|
+
t(o).loading ? (p(), E(n, { key: 0 })) : Y("", !0),
|
|
2815
|
+
e.multiple ? (p(), E(J, Z({
|
|
2815
2816
|
key: 1,
|
|
2816
2817
|
ref: "multipleSelect",
|
|
2817
2818
|
modelValue: t(o).multiple,
|
|
@@ -2828,8 +2829,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2828
2829
|
"collapse-tags-tooltip": ""
|
|
2829
2830
|
}, T.$attrs, { onChange: A }), {
|
|
2830
2831
|
header: b(() => [
|
|
2831
|
-
c("div",
|
|
2832
|
-
t(o).filterTxt ? (p(),
|
|
2832
|
+
c("div", tl, [
|
|
2833
|
+
t(o).filterTxt ? (p(), E(C, {
|
|
2833
2834
|
key: 0,
|
|
2834
2835
|
onClick: r,
|
|
2835
2836
|
class: "outsideIgnore"
|
|
@@ -2854,21 +2855,21 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2854
2855
|
})
|
|
2855
2856
|
]),
|
|
2856
2857
|
default: b(({ it: U }) => [
|
|
2857
|
-
c("div",
|
|
2858
|
+
c("div", ol, [
|
|
2858
2859
|
z(F, {
|
|
2859
2860
|
status: U.status,
|
|
2860
2861
|
nolabel: "",
|
|
2861
2862
|
class: "noShrink"
|
|
2862
2863
|
}, null, 8, ["status"]),
|
|
2863
|
-
U.readonly === !1 ? (p(), D("i",
|
|
2864
|
-
c("span",
|
|
2864
|
+
U.readonly === !1 ? (p(), D("i", ll)) : Y("", !0),
|
|
2865
|
+
c("span", al, I(U.name), 1)
|
|
2865
2866
|
])
|
|
2866
2867
|
]),
|
|
2867
2868
|
footer: b(() => [
|
|
2868
|
-
c("div",
|
|
2869
|
+
c("div", nl, [
|
|
2869
2870
|
z(C, {
|
|
2870
2871
|
type: "primary",
|
|
2871
|
-
onClick:
|
|
2872
|
+
onClick: he(O, ["stop"])
|
|
2872
2873
|
}, {
|
|
2873
2874
|
default: b(() => [
|
|
2874
2875
|
ne(I(T.$l("Confirm")), 1)
|
|
@@ -2878,8 +2879,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2878
2879
|
])
|
|
2879
2880
|
]),
|
|
2880
2881
|
_: 1
|
|
2881
|
-
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (p(), D("div",
|
|
2882
|
-
c("div",
|
|
2882
|
+
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (p(), D("div", sl, [
|
|
2883
|
+
c("div", rl, [
|
|
2883
2884
|
z(C, {
|
|
2884
2885
|
circle: "",
|
|
2885
2886
|
onClick: l[1] || (l[1] = (U) => T.$copy(t(o).single, "ID"))
|
|
@@ -2902,20 +2903,20 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2902
2903
|
onChange: w
|
|
2903
2904
|
}), ae({
|
|
2904
2905
|
default: b(() => [
|
|
2905
|
-
(p(!0), D(ie, null, de(t(d), (U, ce) => (p(),
|
|
2906
|
+
(p(!0), D(ie, null, de(t(d), (U, ce) => (p(), E(te, {
|
|
2906
2907
|
key: ce,
|
|
2907
2908
|
label: U.name,
|
|
2908
2909
|
value: U[e.value]
|
|
2909
2910
|
}, {
|
|
2910
2911
|
default: b(() => [
|
|
2911
|
-
c("div",
|
|
2912
|
+
c("div", il, [
|
|
2912
2913
|
z(F, {
|
|
2913
2914
|
status: U.status,
|
|
2914
2915
|
nolabel: "",
|
|
2915
2916
|
class: "noShrink"
|
|
2916
2917
|
}, null, 8, ["status"]),
|
|
2917
|
-
U.readonly === !1 ? (p(), D("i",
|
|
2918
|
-
c("span",
|
|
2918
|
+
U.readonly === !1 ? (p(), D("i", dl)) : Y("", !0),
|
|
2919
|
+
c("span", ul, I(U.name), 1)
|
|
2919
2920
|
])
|
|
2920
2921
|
]),
|
|
2921
2922
|
_: 2
|
|
@@ -2939,9 +2940,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2939
2940
|
]);
|
|
2940
2941
|
};
|
|
2941
2942
|
}
|
|
2942
|
-
}),
|
|
2943
|
+
}), ml = { class: "SuperAsaOrg relative" }, fl = { class: "inputGroup" }, gl = { class: "inputGroupLeft noShrink" }, yl = { class: "flexMode vc g4" }, hl = { class: "txt-dark5" }, _l = P({
|
|
2943
2944
|
name: "SuperAsaOrg"
|
|
2944
|
-
}),
|
|
2945
|
+
}), bl = /* @__PURE__ */ Object.assign(_l, {
|
|
2945
2946
|
props: {
|
|
2946
2947
|
app: {
|
|
2947
2948
|
type: Number,
|
|
@@ -2979,11 +2980,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2979
2980
|
single: "",
|
|
2980
2981
|
multiple: [],
|
|
2981
2982
|
options: []
|
|
2982
|
-
}),
|
|
2983
|
+
}), h = pe("store").asa();
|
|
2983
2984
|
re(() => {
|
|
2984
|
-
|
|
2985
|
+
y();
|
|
2985
2986
|
});
|
|
2986
|
-
const a = V,
|
|
2987
|
+
const a = V, y = async () => {
|
|
2987
2988
|
f.value.length ? (e.single || x(f.value[0].id), a("success")) : a("error");
|
|
2988
2989
|
}, x = (u) => {
|
|
2989
2990
|
var m, S, d, i;
|
|
@@ -2991,10 +2992,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2991
2992
|
}, O = () => {
|
|
2992
2993
|
var m;
|
|
2993
2994
|
let u = r.value;
|
|
2994
|
-
|
|
2995
|
+
h.saveData("accountTimezone", {
|
|
2995
2996
|
timezoneName: u == null ? void 0 : u.timezone,
|
|
2996
2997
|
tip: "Account",
|
|
2997
|
-
timezone: (m =
|
|
2998
|
+
timezone: (m = ge("common.timezone").filter1(
|
|
2998
2999
|
(S) => S.label === (u == null ? void 0 : u.timezone)
|
|
2999
3000
|
).data) == null ? void 0 : m.value
|
|
3000
3001
|
});
|
|
@@ -3002,7 +3003,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3002
3003
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
3003
3004
|
}, w = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
3004
3005
|
var u;
|
|
3005
|
-
return s.app ? ((u =
|
|
3006
|
+
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
3006
3007
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
3007
3008
|
return X(
|
|
3008
3009
|
() => s.modelValue,
|
|
@@ -3014,13 +3015,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3014
3015
|
}
|
|
3015
3016
|
), (u, m) => {
|
|
3016
3017
|
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), $ = N("el-select");
|
|
3017
|
-
return p(), D("div",
|
|
3018
|
-
t(e).loading ? (p(),
|
|
3019
|
-
c("div",
|
|
3020
|
-
c("div",
|
|
3018
|
+
return p(), D("div", ml, [
|
|
3019
|
+
t(e).loading ? (p(), E(S, { key: 0 })) : Y("", !0),
|
|
3020
|
+
c("div", fl, [
|
|
3021
|
+
c("div", gl, [
|
|
3021
3022
|
z(d, {
|
|
3022
3023
|
circle: "",
|
|
3023
|
-
onClick: m[0] || (m[0] = (
|
|
3024
|
+
onClick: m[0] || (m[0] = (_) => u.$copy(t(e).single, "ID"))
|
|
3024
3025
|
}, {
|
|
3025
3026
|
icon: b(() => [...m[2] || (m[2] = [
|
|
3026
3027
|
c("i", { class: "imicon im-copy" }, null, -1)
|
|
@@ -3030,7 +3031,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3030
3031
|
]),
|
|
3031
3032
|
z($, Z({
|
|
3032
3033
|
modelValue: t(e).single,
|
|
3033
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
3034
|
+
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
3034
3035
|
placeholder: t(w),
|
|
3035
3036
|
disabled: t(k),
|
|
3036
3037
|
filterable: ""
|
|
@@ -3039,19 +3040,19 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3039
3040
|
onChange: x
|
|
3040
3041
|
}), {
|
|
3041
3042
|
default: b(() => [
|
|
3042
|
-
(p(!0), D(ie, null, de(t(f), (
|
|
3043
|
+
(p(!0), D(ie, null, de(t(f), (_, B) => (p(), E(i, {
|
|
3043
3044
|
key: B,
|
|
3044
|
-
label: `${
|
|
3045
|
-
value:
|
|
3046
|
-
disabled: s.readonly &&
|
|
3045
|
+
label: `${_.name} (${_.id})`,
|
|
3046
|
+
value: _.id,
|
|
3047
|
+
disabled: s.readonly && _.readonly
|
|
3047
3048
|
}, {
|
|
3048
3049
|
default: b(() => [
|
|
3049
|
-
c("div",
|
|
3050
|
+
c("div", yl, [
|
|
3050
3051
|
c("i", {
|
|
3051
|
-
class: K(["imicon",
|
|
3052
|
+
class: K(["imicon", _.readonly ? "" : "im-writing"])
|
|
3052
3053
|
}, null, 2),
|
|
3053
|
-
c("span", null, I(
|
|
3054
|
-
c("span",
|
|
3054
|
+
c("span", null, I(_.name), 1),
|
|
3055
|
+
c("span", hl, "(" + I(_.id) + ")", 1)
|
|
3055
3056
|
])
|
|
3056
3057
|
]),
|
|
3057
3058
|
_: 2
|
|
@@ -3063,9 +3064,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3063
3064
|
]);
|
|
3064
3065
|
};
|
|
3065
3066
|
}
|
|
3066
|
-
}),
|
|
3067
|
+
}), vl = P({
|
|
3067
3068
|
name: "SuperCountry"
|
|
3068
|
-
}),
|
|
3069
|
+
}), wl = /* @__PURE__ */ Object.assign(vl, {
|
|
3069
3070
|
props: {
|
|
3070
3071
|
type: {
|
|
3071
3072
|
type: String,
|
|
@@ -3077,25 +3078,25 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3077
3078
|
}
|
|
3078
3079
|
},
|
|
3079
3080
|
setup(M) {
|
|
3080
|
-
const V =
|
|
3081
|
+
const V = be(() => Promise.resolve().then(() => Ta)), s = be(() => Promise.resolve().then(() => Ia)), e = {
|
|
3081
3082
|
CountryAso: V,
|
|
3082
3083
|
CountryDiy: s
|
|
3083
|
-
}, o = M,
|
|
3084
|
-
return (
|
|
3084
|
+
}, o = M, h = g(() => e["Country" + window.$toUpperCamel(o.type)]), a = g(() => o.nowrap);
|
|
3085
|
+
return (y, x) => (p(), D("div", {
|
|
3085
3086
|
class: K(["SuperCountry", o.nowrap && "nowrap"])
|
|
3086
3087
|
}, [
|
|
3087
|
-
(p(),
|
|
3088
|
+
(p(), E(ze(t(h)), Z(y.$attrs, {
|
|
3088
3089
|
"collapse-tags": t(a),
|
|
3089
3090
|
"collapse-tags-tooltip": t(a)
|
|
3090
3091
|
}), null, 16, ["collapse-tags", "collapse-tags-tooltip"]))
|
|
3091
3092
|
], 2));
|
|
3092
3093
|
}
|
|
3093
|
-
}),
|
|
3094
|
+
}), $l = ["title"], Sl = {
|
|
3094
3095
|
key: 0,
|
|
3095
3096
|
class: "pl4"
|
|
3096
|
-
},
|
|
3097
|
+
}, Cl = P({
|
|
3097
3098
|
name: "SuperCountryItem"
|
|
3098
|
-
}),
|
|
3099
|
+
}), kl = /* @__PURE__ */ Object.assign(Cl, {
|
|
3099
3100
|
props: {
|
|
3100
3101
|
name: {
|
|
3101
3102
|
type: String,
|
|
@@ -3119,31 +3120,31 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3119
3120
|
H({});
|
|
3120
3121
|
const e = pe("store").common(), o = g(() => {
|
|
3121
3122
|
const O = V.name.toLowerCase();
|
|
3122
|
-
return e.countryObj[O] ||
|
|
3123
|
-
}),
|
|
3123
|
+
return e.countryObj[O] || ge("country.countryAllObj")[O] || {};
|
|
3124
|
+
}), h = g(() => `fi-${o.value.value_lower}`);
|
|
3124
3125
|
g(() => window.$getLang());
|
|
3125
|
-
const a = g(() => window.$l(o.value.label)),
|
|
3126
|
+
const a = g(() => window.$l(o.value.label)), y = g(() => {
|
|
3126
3127
|
const O = parseInt(V.size);
|
|
3127
3128
|
return {
|
|
3128
3129
|
width: O + "px",
|
|
3129
3130
|
height: O + "px"
|
|
3130
3131
|
};
|
|
3131
3132
|
}), x = g(() => `radius${Number(V.radius) || 2}`);
|
|
3132
|
-
return
|
|
3133
|
+
return ge("country.countryAllObj"), (O, A) => (p(), D("div", {
|
|
3133
3134
|
class: "SuperCountryItem flexMode vc g4",
|
|
3134
3135
|
title: t(a)
|
|
3135
3136
|
}, [
|
|
3136
3137
|
c("span", {
|
|
3137
|
-
class: K(["box-shadow-gray3 fi fis noShrink", [t(
|
|
3138
|
-
style: me(t(
|
|
3138
|
+
class: K(["box-shadow-gray3 fi fis noShrink", [t(h), t(x)]]),
|
|
3139
|
+
style: me(t(y))
|
|
3139
3140
|
}, null, 6),
|
|
3140
|
-
V.nolabel ? Y("", !0) : (p(), D("span",
|
|
3141
|
-
], 8,
|
|
3141
|
+
V.nolabel ? Y("", !0) : (p(), D("span", Sl, I(t(a)), 1))
|
|
3142
|
+
], 8, $l));
|
|
3142
3143
|
}
|
|
3143
|
-
}),
|
|
3144
|
+
}), xl = { class: "SuperOrg relative wp100" }, Vl = P({
|
|
3144
3145
|
name: "SuperOrg",
|
|
3145
3146
|
inheritAttrs: !1
|
|
3146
|
-
}),
|
|
3147
|
+
}), Ol = /* @__PURE__ */ Object.assign(Vl, {
|
|
3147
3148
|
props: {
|
|
3148
3149
|
modelValue: {
|
|
3149
3150
|
type: [Number, String],
|
|
@@ -3160,13 +3161,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3160
3161
|
loading: !1,
|
|
3161
3162
|
v: "",
|
|
3162
3163
|
orgOptions: []
|
|
3163
|
-
}),
|
|
3164
|
+
}), h = pe("store").asa();
|
|
3164
3165
|
re(() => {
|
|
3165
|
-
|
|
3166
|
+
y();
|
|
3166
3167
|
});
|
|
3167
|
-
const a = V,
|
|
3168
|
-
if (
|
|
3169
|
-
e.orgOptions =
|
|
3168
|
+
const a = V, y = async () => {
|
|
3169
|
+
if (h.orgOptions.length > 0) {
|
|
3170
|
+
e.orgOptions = h.orgOptions, a("success", e.orgOptions), fe(() => {
|
|
3170
3171
|
const f = e.orgOptions.filter1(
|
|
3171
3172
|
(r) => r.orgId === e.v
|
|
3172
3173
|
).data;
|
|
@@ -3178,7 +3179,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3178
3179
|
const { code: A, data: w } = await window.$post({
|
|
3179
3180
|
url: window.$api.asa.orgOptions
|
|
3180
3181
|
});
|
|
3181
|
-
e.loading = !1, A === 200 && (e.orgOptions = w.map((f) => (f.label = `${f.orgName} (${f.orgId})`, f)),
|
|
3182
|
+
e.loading = !1, A === 200 && (e.orgOptions = w.map((f) => (f.label = `${f.orgName} (${f.orgId})`, f)), h.saveData("orgOptions", e.orgOptions), fe(() => {
|
|
3182
3183
|
const f = e.orgOptions.filter1(
|
|
3183
3184
|
(r) => r.orgId === e.v
|
|
3184
3185
|
).data;
|
|
@@ -3211,8 +3212,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3211
3212
|
}
|
|
3212
3213
|
), (A, w) => {
|
|
3213
3214
|
const f = N("IconLoading"), r = N("el-option"), k = N("el-select");
|
|
3214
|
-
return p(), D("div",
|
|
3215
|
-
t(e).loading ? (p(),
|
|
3215
|
+
return p(), D("div", xl, [
|
|
3216
|
+
t(e).loading ? (p(), E(f, { key: 0 })) : Y("", !0),
|
|
3216
3217
|
z(k, {
|
|
3217
3218
|
modelValue: t(e).v,
|
|
3218
3219
|
"onUpdate:modelValue": w[0] || (w[0] = (u) => t(e).v = u),
|
|
@@ -3223,7 +3224,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3223
3224
|
onChange: x
|
|
3224
3225
|
}, {
|
|
3225
3226
|
default: b(() => [
|
|
3226
|
-
(p(!0), D(ie, null, de(t(O), (u, m) => (p(),
|
|
3227
|
+
(p(!0), D(ie, null, de(t(O), (u, m) => (p(), E(r, {
|
|
3227
3228
|
key: m,
|
|
3228
3229
|
label: u.label,
|
|
3229
3230
|
value: u.orgId
|
|
@@ -3234,9 +3235,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3234
3235
|
]);
|
|
3235
3236
|
};
|
|
3236
3237
|
}
|
|
3237
|
-
}),
|
|
3238
|
+
}), Tl = { class: "SuperStatusItem flexMode vc g8" }, Al = P({
|
|
3238
3239
|
name: "SuperStatusItem"
|
|
3239
|
-
}),
|
|
3240
|
+
}), Dl = /* @__PURE__ */ Object.assign(Al, {
|
|
3240
3241
|
props: {
|
|
3241
3242
|
status: {
|
|
3242
3243
|
type: String,
|
|
@@ -3275,32 +3276,30 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3275
3276
|
setup(M, { emit: V }) {
|
|
3276
3277
|
const s = M, e = V, o = () => {
|
|
3277
3278
|
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 = {
|
|
3279
|
+
}, h = g(() => ge("statusMap")[s.status] || !1), a = g(() => window.$toUpperCamel(s.status)), y = g(() => x[s.size] || "fs12"), x = {
|
|
3281
3280
|
small: "fs12",
|
|
3282
3281
|
default: "fs16",
|
|
3283
3282
|
large: "fs24"
|
|
3284
3283
|
};
|
|
3285
|
-
return (O, A) => (p(), D("div",
|
|
3286
|
-
t(
|
|
3284
|
+
return (O, A) => (p(), D("div", Tl, [
|
|
3285
|
+
t(h) ? (p(), D("i", {
|
|
3287
3286
|
key: 0,
|
|
3288
3287
|
class: K(["imicon", [
|
|
3289
|
-
t(
|
|
3290
|
-
t(
|
|
3291
|
-
s.isButton && s.status !== "DELETED" ? t(
|
|
3288
|
+
t(h).class,
|
|
3289
|
+
t(y),
|
|
3290
|
+
s.isButton && s.status !== "DELETED" ? t(h).button_class : ""
|
|
3292
3291
|
]]),
|
|
3293
3292
|
onClick: o
|
|
3294
3293
|
}, null, 2)) : Y("", !0),
|
|
3295
3294
|
s.nolabel ? Y("", !0) : (p(), D("span", {
|
|
3296
3295
|
key: 1,
|
|
3297
|
-
class: K(["txt-h1", t(
|
|
3298
|
-
}, I(O.$l(t(
|
|
3296
|
+
class: K(["txt-h1", t(y)])
|
|
3297
|
+
}, I(O.$l(t(h) ? t(h).label : t(a))), 3))
|
|
3299
3298
|
]));
|
|
3300
3299
|
}
|
|
3301
|
-
}),
|
|
3300
|
+
}), Ml = { class: "SuperStatusSelect" }, Nl = P({
|
|
3302
3301
|
name: "SuperStatusSelect"
|
|
3303
|
-
}),
|
|
3302
|
+
}), Il = /* @__PURE__ */ Object.assign(Nl, {
|
|
3304
3303
|
props: {
|
|
3305
3304
|
modelValue: {
|
|
3306
3305
|
type: String,
|
|
@@ -3318,28 +3317,28 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3318
3317
|
setup(M) {
|
|
3319
3318
|
const V = M, s = H({
|
|
3320
3319
|
v: ""
|
|
3321
|
-
}), { proxy: e } = se(), o = g(() => window.$getLang()),
|
|
3320
|
+
}), { proxy: e } = se(), o = g(() => window.$getLang()), h = g(() => e.$slots), a = g(() => V.options.length ? V.options : ["RUNNING", "PAUSED"]), y = g(() => {
|
|
3322
3321
|
const O = V.placeholder || "Status";
|
|
3323
3322
|
return window.$l(O);
|
|
3324
3323
|
});
|
|
3325
|
-
|
|
3324
|
+
Be(() => {
|
|
3326
3325
|
s.v = V.modelValue;
|
|
3327
3326
|
});
|
|
3328
|
-
const x =
|
|
3327
|
+
const x = ge("statusMap");
|
|
3329
3328
|
return (O, A) => {
|
|
3330
3329
|
const w = N("StatusItem"), f = N("el-option"), r = N("el-select");
|
|
3331
|
-
return p(), D("div",
|
|
3330
|
+
return p(), D("div", Ml, [
|
|
3332
3331
|
z(r, Z({
|
|
3333
3332
|
modelValue: t(s).v,
|
|
3334
3333
|
"onUpdate:modelValue": A[0] || (A[0] = (k) => t(s).v = k),
|
|
3335
3334
|
"collapse-tags": "",
|
|
3336
3335
|
"collapse-tags-tooltip": ""
|
|
3337
3336
|
}, O.$attrs, {
|
|
3338
|
-
placeholder: t(
|
|
3337
|
+
placeholder: t(y),
|
|
3339
3338
|
onChange: O.change
|
|
3340
3339
|
}), ae({
|
|
3341
3340
|
default: b(() => [
|
|
3342
|
-
(p(!0), D(ie, null, de(t(a), (k, u) => (p(),
|
|
3341
|
+
(p(!0), D(ie, null, de(t(a), (k, u) => (p(), E(f, {
|
|
3343
3342
|
key: k,
|
|
3344
3343
|
label: O.$l(t(x)[k].label),
|
|
3345
3344
|
value: k
|
|
@@ -3358,7 +3357,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3358
3357
|
t(s).v ? {
|
|
3359
3358
|
name: "prefix",
|
|
3360
3359
|
fn: b(() => [
|
|
3361
|
-
t(
|
|
3360
|
+
t(h).prefix ? W(O.$slots, "prefix", { key: 0 }) : (p(), E(w, {
|
|
3362
3361
|
key: 1,
|
|
3363
3362
|
status: t(s).v,
|
|
3364
3363
|
nolabel: "",
|
|
@@ -3371,36 +3370,36 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3371
3370
|
]);
|
|
3372
3371
|
};
|
|
3373
3372
|
}
|
|
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 V in
|
|
3400
|
-
M.component(V,
|
|
3401
|
-
},
|
|
3373
|
+
}), Te = {
|
|
3374
|
+
Card: Ge,
|
|
3375
|
+
DatePicker: Ke,
|
|
3376
|
+
EChart: Xe,
|
|
3377
|
+
Icon: lt,
|
|
3378
|
+
Image: it,
|
|
3379
|
+
Input: ct,
|
|
3380
|
+
MultipleSelect: $t,
|
|
3381
|
+
Nodata: xt,
|
|
3382
|
+
Page: zt,
|
|
3383
|
+
Table: vo,
|
|
3384
|
+
TableFooter: Ie,
|
|
3385
|
+
Textarea: ko,
|
|
3386
|
+
AiApp: Do,
|
|
3387
|
+
AiOrg: Yo,
|
|
3388
|
+
AsaAdGroup: Jo,
|
|
3389
|
+
AsaApp: Xo,
|
|
3390
|
+
AsaCampaign: pl,
|
|
3391
|
+
AsaOrg: bl,
|
|
3392
|
+
Country: wl,
|
|
3393
|
+
CountryItem: kl,
|
|
3394
|
+
Org: Ol,
|
|
3395
|
+
StatusItem: Dl,
|
|
3396
|
+
StatusSelect: Il
|
|
3397
|
+
}, Fa = (M) => {
|
|
3398
|
+
for (let V in Te)
|
|
3399
|
+
M.component(V, Te[V]);
|
|
3400
|
+
}, zl = { class: "dragCenter flexMode vc flexGrow txt-nowrap" }, Bl = { class: "pl10 fs14 txt-h2" }, jl = { class: "pb5 fs12 txt-primary3" }, Yl = P({
|
|
3402
3401
|
name: "ColumnConfigDragItem"
|
|
3403
|
-
}),
|
|
3402
|
+
}), El = /* @__PURE__ */ Object.assign(Yl, {
|
|
3404
3403
|
props: {
|
|
3405
3404
|
modelValue: {
|
|
3406
3405
|
type: Object,
|
|
@@ -3432,11 +3431,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3432
3431
|
re(() => {
|
|
3433
3432
|
e.form = s.it;
|
|
3434
3433
|
});
|
|
3435
|
-
const o = V,
|
|
3434
|
+
const o = V, h = () => {
|
|
3436
3435
|
o("add-left", s);
|
|
3437
3436
|
}, a = () => {
|
|
3438
3437
|
o("add-right", s);
|
|
3439
|
-
},
|
|
3438
|
+
}, y = (A) => {
|
|
3440
3439
|
o("change", { it: e.form, index: s.index, type: s.type });
|
|
3441
3440
|
};
|
|
3442
3441
|
g(() => e.form.align ? " " : O[0].label);
|
|
@@ -3467,24 +3466,24 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3467
3466
|
}, [
|
|
3468
3467
|
c("div", {
|
|
3469
3468
|
class: "arrowLeft ml4 mr8 circle24 hover-txt-primary",
|
|
3470
|
-
onClick:
|
|
3469
|
+
onClick: he(h, ["stop"])
|
|
3471
3470
|
}, [...w[1] || (w[1] = [
|
|
3472
3471
|
c("i", { class: "imicon im-arrow-left" }, null, -1)
|
|
3473
3472
|
])]),
|
|
3474
|
-
c("div",
|
|
3473
|
+
c("div", zl, [
|
|
3475
3474
|
z(f, {
|
|
3476
3475
|
modelValue: t(e).form.visible,
|
|
3477
3476
|
"onUpdate:modelValue": w[0] || (w[0] = (r) => t(e).form.visible = r),
|
|
3478
3477
|
disabled: t(e).form.nomove,
|
|
3479
3478
|
size: "default",
|
|
3480
|
-
onChange:
|
|
3479
|
+
onChange: y
|
|
3481
3480
|
}, null, 8, ["modelValue", "disabled"]),
|
|
3482
|
-
c("span",
|
|
3481
|
+
c("span", Bl, I(t(e).form.label || t(e).form.type), 1)
|
|
3483
3482
|
]),
|
|
3484
|
-
c("span",
|
|
3483
|
+
c("span", jl, I(t(e).form.tips), 1),
|
|
3485
3484
|
c("div", {
|
|
3486
3485
|
class: "arrowRight mr4 ml8 circle24 hover-txt-primary",
|
|
3487
|
-
onClick:
|
|
3486
|
+
onClick: he(a, ["stop"])
|
|
3488
3487
|
}, [...w[2] || (w[2] = [
|
|
3489
3488
|
c("i", { class: "imicon im-arrow-right" }, null, -1)
|
|
3490
3489
|
])])
|
|
@@ -3492,28 +3491,28 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3492
3491
|
], 2);
|
|
3493
3492
|
};
|
|
3494
3493
|
}
|
|
3495
|
-
}),
|
|
3494
|
+
}), Ce = /* @__PURE__ */ ue(El, [["__scopeId", "data-v-34f8430d"]]), Ll = { class: "flexMode vs p16 g16" }, Rl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Pl = { class: "fs12 txt-primary" }, Fl = { class: "fs12 txt-dark5" }, Ul = {
|
|
3496
3495
|
key: 0,
|
|
3497
3496
|
class: "fs12 txt-dark3"
|
|
3498
|
-
},
|
|
3497
|
+
}, Gl = {
|
|
3499
3498
|
key: 0,
|
|
3500
3499
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3501
|
-
},
|
|
3500
|
+
}, Hl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Jl = { class: "fs12 txt-primary" }, Kl = { class: "fs12 txt-dark5" }, Wl = {
|
|
3502
3501
|
key: 0,
|
|
3503
3502
|
class: "fs12 txt-dark3"
|
|
3504
|
-
},
|
|
3503
|
+
}, ql = {
|
|
3505
3504
|
key: 0,
|
|
3506
3505
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3507
|
-
},
|
|
3506
|
+
}, Zl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Ql = { class: "fs12 txt-primary" }, Xl = { class: "fs12 txt-dark5" }, ea = {
|
|
3508
3507
|
key: 0,
|
|
3509
3508
|
class: "fs12 txt-dark3"
|
|
3510
|
-
},
|
|
3509
|
+
}, ta = {
|
|
3511
3510
|
key: 0,
|
|
3512
3511
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3513
|
-
},
|
|
3512
|
+
}, oa = P({
|
|
3514
3513
|
name: "TableHeaderColumnConfig",
|
|
3515
3514
|
inheritAttrs: !1
|
|
3516
|
-
}),
|
|
3515
|
+
}), la = /* @__PURE__ */ Object.assign(oa, {
|
|
3517
3516
|
props: {
|
|
3518
3517
|
params: {
|
|
3519
3518
|
type: Object,
|
|
@@ -3529,78 +3528,78 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3529
3528
|
total: 0
|
|
3530
3529
|
});
|
|
3531
3530
|
re(() => {
|
|
3532
|
-
|
|
3531
|
+
h();
|
|
3533
3532
|
});
|
|
3534
|
-
const o = V,
|
|
3533
|
+
const o = V, h = () => {
|
|
3535
3534
|
a();
|
|
3536
3535
|
}, a = () => {
|
|
3537
3536
|
let $ = localStorage.getItem(k.value);
|
|
3538
3537
|
if ($) {
|
|
3539
3538
|
$ = JSON.parse($);
|
|
3540
|
-
let
|
|
3539
|
+
let _ = 0;
|
|
3541
3540
|
$.forEach((B) => {
|
|
3542
|
-
B.label && !B.nomove && (
|
|
3543
|
-
}), e.total =
|
|
3541
|
+
B.label && !B.nomove && (_++, B.fixed ? e[B.fixed].push(B) : e.center.push(B));
|
|
3542
|
+
}), e.total = _;
|
|
3544
3543
|
}
|
|
3545
|
-
},
|
|
3546
|
-
e.left.unshift($), e.center.splice(
|
|
3547
|
-
}, x = ({ it: $, index:
|
|
3548
|
-
e.right.unshift($), e.center.splice(
|
|
3549
|
-
}, O = ({ it: $, index:
|
|
3550
|
-
e.center.unshift($), e.left.splice(
|
|
3551
|
-
}, A = ({ it: $, index:
|
|
3552
|
-
e.center.unshift($), e.right.splice(
|
|
3553
|
-
}, w = ({ it: $, index:
|
|
3554
|
-
e[B][
|
|
3544
|
+
}, y = ({ it: $, index: _, type: B }) => {
|
|
3545
|
+
e.left.unshift($), e.center.splice(_, 1);
|
|
3546
|
+
}, x = ({ it: $, index: _, type: B }) => {
|
|
3547
|
+
e.right.unshift($), e.center.splice(_, 1);
|
|
3548
|
+
}, O = ({ it: $, index: _, type: B }) => {
|
|
3549
|
+
e.center.unshift($), e.left.splice(_, 1);
|
|
3550
|
+
}, A = ({ it: $, index: _, type: B }) => {
|
|
3551
|
+
e.center.unshift($), e.right.splice(_, 1);
|
|
3552
|
+
}, w = ({ it: $, index: _, type: B }) => {
|
|
3553
|
+
e[B][_] = $;
|
|
3555
3554
|
}, f = async () => {
|
|
3556
3555
|
e.loading = !0, localStorage.removeItem(k.value), window.$promise(() => {
|
|
3557
3556
|
e.loading = !1, o("submit", "column"), o("close");
|
|
3558
3557
|
});
|
|
3559
3558
|
}, r = async () => {
|
|
3560
3559
|
e.loading = !0, await window.$promise(() => {
|
|
3561
|
-
const { left: $, center:
|
|
3560
|
+
const { left: $, center: _, right: B } = e;
|
|
3562
3561
|
$.forEach((l, n) => {
|
|
3563
3562
|
l.fixed = "left", l.sort = n;
|
|
3564
|
-
}),
|
|
3563
|
+
}), _.forEach((l, n) => {
|
|
3565
3564
|
l.fixed = !1, l.sort = n;
|
|
3566
3565
|
}), B.forEach((l, n) => {
|
|
3567
3566
|
l.fixed = "right", l.sort = n;
|
|
3568
3567
|
});
|
|
3569
|
-
const T = [...$, ...
|
|
3568
|
+
const T = [...$, ..._, ...B].sort(
|
|
3570
3569
|
(l, n) => l.sort - n.sort
|
|
3571
3570
|
);
|
|
3572
3571
|
localStorage.setItem(k.value, JSON.stringify(T));
|
|
3573
3572
|
}, 10), e.loading = !1, o("submit", "column"), o("close");
|
|
3574
3573
|
}, k = g(() => `${s.params.tableName}_Column`), u = g(() => ({
|
|
3575
|
-
height: window.global.config.options.drawerHeight -
|
|
3574
|
+
height: window.global.config.options.drawerHeight - 80 + "px"
|
|
3576
3575
|
})), m = g(() => {
|
|
3577
|
-
let $ = 0,
|
|
3576
|
+
let $ = 0, _ = 0;
|
|
3578
3577
|
return e.left.forEach((B) => {
|
|
3579
|
-
B.visible ? $++ :
|
|
3578
|
+
B.visible ? $++ : _++;
|
|
3580
3579
|
}), {
|
|
3581
3580
|
visible: $,
|
|
3582
|
-
hide:
|
|
3581
|
+
hide: _
|
|
3583
3582
|
};
|
|
3584
3583
|
}), S = g(() => {
|
|
3585
|
-
let $ = 0,
|
|
3584
|
+
let $ = 0, _ = 0;
|
|
3586
3585
|
return e.center.forEach((B) => {
|
|
3587
|
-
B.visible ? $++ :
|
|
3586
|
+
B.visible ? $++ : _++;
|
|
3588
3587
|
}), {
|
|
3589
3588
|
visible: $,
|
|
3590
|
-
hide:
|
|
3589
|
+
hide: _
|
|
3591
3590
|
};
|
|
3592
3591
|
}), d = g(() => {
|
|
3593
|
-
let $ = 0,
|
|
3592
|
+
let $ = 0, _ = 0;
|
|
3594
3593
|
return e.right.forEach((B) => {
|
|
3595
|
-
B.visible ? $++ :
|
|
3594
|
+
B.visible ? $++ : _++;
|
|
3596
3595
|
}), {
|
|
3597
3596
|
visible: $,
|
|
3598
|
-
hide:
|
|
3597
|
+
hide: _
|
|
3599
3598
|
};
|
|
3600
3599
|
}), i = g(() => window.$getLang());
|
|
3601
|
-
return ($,
|
|
3600
|
+
return ($, _) => {
|
|
3602
3601
|
const B = N("Card"), T = N("el-button"), l = N("DrawerArea");
|
|
3603
|
-
return p(),
|
|
3602
|
+
return p(), E(l, {
|
|
3604
3603
|
class: "TableHeaderColumnConfig",
|
|
3605
3604
|
loading: t(e).loading,
|
|
3606
3605
|
noscroll: "",
|
|
@@ -3611,7 +3610,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3611
3610
|
plain: "",
|
|
3612
3611
|
onClick: f
|
|
3613
3612
|
}, {
|
|
3614
|
-
icon: b(() => [...
|
|
3613
|
+
icon: b(() => [..._[0] || (_[0] = [
|
|
3615
3614
|
c("i", { class: "imicon im-reset" }, null, -1)
|
|
3616
3615
|
])]),
|
|
3617
3616
|
default: b(() => [
|
|
@@ -3627,9 +3626,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3627
3626
|
class: "flex1"
|
|
3628
3627
|
}, ae({
|
|
3629
3628
|
default: b(() => [
|
|
3630
|
-
t(e).left.length === 0 ? (p(), D("div",
|
|
3631
|
-
|
|
3632
|
-
z(t($e), {
|
|
3629
|
+
t(e).left.length === 0 ? (p(), D("div", Gl, I($.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3630
|
+
z(t(Se), {
|
|
3633
3631
|
list: t(e).left,
|
|
3634
3632
|
group: "columnFilter",
|
|
3635
3633
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3638,7 +3636,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3638
3636
|
"item-key": (n) => n
|
|
3639
3637
|
}, {
|
|
3640
3638
|
item: b(({ element: n, index: C }) => [
|
|
3641
|
-
z(
|
|
3639
|
+
z(Ce, {
|
|
3642
3640
|
it: n,
|
|
3643
3641
|
index: C,
|
|
3644
3642
|
lang: t(i),
|
|
@@ -3655,10 +3653,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3655
3653
|
t(m) ? {
|
|
3656
3654
|
name: "header",
|
|
3657
3655
|
fn: b(() => [
|
|
3658
|
-
c("div",
|
|
3659
|
-
c("span",
|
|
3660
|
-
c("span",
|
|
3661
|
-
t(m).hide ? (p(), D("span",
|
|
3656
|
+
c("div", Rl, [
|
|
3657
|
+
c("span", Pl, I(t(m).visible), 1),
|
|
3658
|
+
c("span", Fl, " / " + I(t(e).total), 1),
|
|
3659
|
+
t(m).hide ? (p(), D("span", Ul, "(" + I(t(m).hide) + ")", 1)) : Y("", !0)
|
|
3662
3660
|
])
|
|
3663
3661
|
]),
|
|
3664
3662
|
key: "0"
|
|
@@ -3669,9 +3667,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3669
3667
|
class: "flex1"
|
|
3670
3668
|
}, ae({
|
|
3671
3669
|
default: b(() => [
|
|
3672
|
-
t(e).center.length === 0 ? (p(), D("div",
|
|
3673
|
-
|
|
3674
|
-
z(t($e), {
|
|
3670
|
+
t(e).center.length === 0 ? (p(), D("div", ql, I($.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3671
|
+
z(t(Se), {
|
|
3675
3672
|
list: t(e).center,
|
|
3676
3673
|
group: "columnFilter",
|
|
3677
3674
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3680,10 +3677,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3680
3677
|
"item-key": (n) => n
|
|
3681
3678
|
}, {
|
|
3682
3679
|
item: b(({ element: n, index: C }) => [
|
|
3683
|
-
z(
|
|
3680
|
+
z(Ce, {
|
|
3684
3681
|
it: n,
|
|
3685
3682
|
index: C,
|
|
3686
|
-
onAddLeft:
|
|
3683
|
+
onAddLeft: y,
|
|
3687
3684
|
lang: t(i),
|
|
3688
3685
|
onAddRight: x,
|
|
3689
3686
|
onChange: w
|
|
@@ -3697,10 +3694,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3697
3694
|
t(S) ? {
|
|
3698
3695
|
name: "header",
|
|
3699
3696
|
fn: b(() => [
|
|
3700
|
-
c("div",
|
|
3701
|
-
c("span",
|
|
3702
|
-
c("span",
|
|
3703
|
-
t(S).hide ? (p(), D("span",
|
|
3697
|
+
c("div", Hl, [
|
|
3698
|
+
c("span", Jl, I(t(S).visible), 1),
|
|
3699
|
+
c("span", Kl, " / " + I(t(e).total), 1),
|
|
3700
|
+
t(S).hide ? (p(), D("span", Wl, "(" + I(t(S).hide) + ")", 1)) : Y("", !0)
|
|
3704
3701
|
])
|
|
3705
3702
|
]),
|
|
3706
3703
|
key: "0"
|
|
@@ -3711,9 +3708,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3711
3708
|
class: "flex1"
|
|
3712
3709
|
}, ae({
|
|
3713
3710
|
default: b(() => [
|
|
3714
|
-
t(e).right.length === 0 ? (p(), D("div",
|
|
3715
|
-
|
|
3716
|
-
z(t($e), {
|
|
3711
|
+
t(e).right.length === 0 ? (p(), D("div", ta, I($.$l("No Column Fixed on Right")), 1)) : Y("", !0),
|
|
3712
|
+
z(t(Se), {
|
|
3717
3713
|
list: t(e).right,
|
|
3718
3714
|
group: "columnFilter",
|
|
3719
3715
|
class: "dragBody p4-0 yscroll nobar",
|
|
@@ -3722,7 +3718,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3722
3718
|
"item-key": (n) => n
|
|
3723
3719
|
}, {
|
|
3724
3720
|
item: b(({ element: n, index: C }) => [
|
|
3725
|
-
z(
|
|
3721
|
+
z(Ce, {
|
|
3726
3722
|
it: n,
|
|
3727
3723
|
index: C,
|
|
3728
3724
|
type: "right",
|
|
@@ -3739,10 +3735,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3739
3735
|
t(d) ? {
|
|
3740
3736
|
name: "header",
|
|
3741
3737
|
fn: b(() => [
|
|
3742
|
-
c("div",
|
|
3743
|
-
c("span",
|
|
3744
|
-
c("span",
|
|
3745
|
-
t(d).hide ? (p(), D("span",
|
|
3738
|
+
c("div", Zl, [
|
|
3739
|
+
c("span", Ql, I(t(d).visible), 1),
|
|
3740
|
+
c("span", Xl, " / " + I(t(e).total), 1),
|
|
3741
|
+
t(d).hide ? (p(), D("span", ea, "(" + I(t(d).hide) + ")", 1)) : Y("", !0)
|
|
3746
3742
|
])
|
|
3747
3743
|
]),
|
|
3748
3744
|
key: "0"
|
|
@@ -3754,21 +3750,21 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3754
3750
|
}, 8, ["loading"]);
|
|
3755
3751
|
};
|
|
3756
3752
|
}
|
|
3757
|
-
}),
|
|
3753
|
+
}), aa = /* @__PURE__ */ ue(la, [["__scopeId", "data-v-8d33c87a"]]), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3758
3754
|
__proto__: null,
|
|
3759
|
-
default:
|
|
3760
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3755
|
+
default: aa
|
|
3756
|
+
}, Symbol.toStringTag, { value: "Module" })), sa = { class: "p16 wp100 sticky bg-white9 border-b backdrop z2" }, ra = { class: "p8" }, ia = { class: "txt-dark5" }, da = { class: "pl8 txt-dark9" }, ua = {
|
|
3761
3757
|
key: 0,
|
|
3762
3758
|
class: "flexMode vc p8"
|
|
3763
|
-
},
|
|
3759
|
+
}, ca = {
|
|
3764
3760
|
key: 1,
|
|
3765
3761
|
class: "flexMode vc p8"
|
|
3766
|
-
},
|
|
3762
|
+
}, pa = { class: "txt-dark5" }, ma = { class: "pl8 pr16 txt-dark9" }, fa = {
|
|
3767
3763
|
key: 2,
|
|
3768
3764
|
class: "flexMode vc p8"
|
|
3769
|
-
},
|
|
3765
|
+
}, ga = { class: "flexMode hr vc g16" }, ya = { class: "pr8" }, ha = { class: "relative wp100 pb8 border-b z1" }, _a = { class: "p16 txt-dark9" }, ba = { class: "pr8" }, va = { class: "inputGroup flexMode vc flexGrow" }, wa = { class: "inputGroupRight" }, $a = P({
|
|
3770
3766
|
name: "TableDownload"
|
|
3771
|
-
}),
|
|
3767
|
+
}), Sa = /* @__PURE__ */ Object.assign($a, {
|
|
3772
3768
|
props: {
|
|
3773
3769
|
params: {
|
|
3774
3770
|
type: Object,
|
|
@@ -3789,11 +3785,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3789
3785
|
useCountryName: !1,
|
|
3790
3786
|
// 使用国家名称
|
|
3791
3787
|
widthTableHead: !0
|
|
3792
|
-
}), { proxy: o } = se(),
|
|
3788
|
+
}), { proxy: o } = se(), h = Re();
|
|
3793
3789
|
re(() => {
|
|
3794
3790
|
x();
|
|
3795
3791
|
});
|
|
3796
|
-
const a = V,
|
|
3792
|
+
const a = V, y = () => {
|
|
3797
3793
|
e.downloadAll ? a("fetch-all-data") : a("recover-current-data");
|
|
3798
3794
|
}, x = () => {
|
|
3799
3795
|
O(), A();
|
|
@@ -3808,7 +3804,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3808
3804
|
}, f = (l = ",", n) => {
|
|
3809
3805
|
const C = e.items.map((J) => $.value[J].label);
|
|
3810
3806
|
let R = [];
|
|
3811
|
-
e.onlySelection ? R = B.value : R =
|
|
3807
|
+
e.onlySelection ? R = B.value : R = _.value;
|
|
3812
3808
|
const F = R.map((J) => {
|
|
3813
3809
|
const te = [];
|
|
3814
3810
|
return e.items.forEach((Q) => {
|
|
@@ -3816,7 +3812,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3816
3812
|
if (e.useCountryName) {
|
|
3817
3813
|
const U = window.$getType(J[Q]);
|
|
3818
3814
|
let ce;
|
|
3819
|
-
U === "Array" ? ce = J[Q] : ce = J[Q].split(","), ce = ce.map((q) =>
|
|
3815
|
+
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
3816
|
} else
|
|
3821
3817
|
te.push(`"${J[Q]}"`);
|
|
3822
3818
|
else if (["spendOrigin"].includes(Q)) {
|
|
@@ -3833,7 +3829,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3833
3829
|
}, r = () => {
|
|
3834
3830
|
var n;
|
|
3835
3831
|
let l = !1;
|
|
3836
|
-
if ((e.onlySelection && ((n = s.params.selection) != null && n.length) ||
|
|
3832
|
+
if ((e.onlySelection && ((n = s.params.selection) != null && n.length) || _.value.length) && (l = !0), l) {
|
|
3837
3833
|
const C = f(" ", e.withTableHead);
|
|
3838
3834
|
window.$copy(C);
|
|
3839
3835
|
} else
|
|
@@ -3846,12 +3842,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3846
3842
|
name: n,
|
|
3847
3843
|
data: l
|
|
3848
3844
|
}), 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(() => `${
|
|
3845
|
+
}, 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
3846
|
const l = {};
|
|
3851
3847
|
return e.columns.forEach((n) => {
|
|
3852
3848
|
l[n.prop] = n;
|
|
3853
3849
|
}), l;
|
|
3854
|
-
}),
|
|
3850
|
+
}), _ = g(() => {
|
|
3855
3851
|
var l;
|
|
3856
3852
|
return ((l = s.params) == null ? void 0 : l.list) || [];
|
|
3857
3853
|
}), B = g(() => {
|
|
@@ -3859,13 +3855,13 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3859
3855
|
return ((l = s.params) == null ? void 0 : l.selection) || [];
|
|
3860
3856
|
}), T = g(() => {
|
|
3861
3857
|
var l;
|
|
3862
|
-
return e.items.length === 0 ||
|
|
3858
|
+
return e.items.length === 0 || _.value.length === 0 || !!((l = s.params) != null && l.loading);
|
|
3863
3859
|
});
|
|
3864
3860
|
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 p(),
|
|
3861
|
+
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");
|
|
3862
|
+
return p(), E(U, { onSubmit: k }, {
|
|
3867
3863
|
footer: b(() => [
|
|
3868
|
-
c("div",
|
|
3864
|
+
c("div", va, [
|
|
3869
3865
|
z(Q, {
|
|
3870
3866
|
modelValue: t(e).filename,
|
|
3871
3867
|
"onUpdate:modelValue": n[6] || (n[6] = (q) => t(e).filename = q),
|
|
@@ -3878,7 +3874,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3878
3874
|
])]),
|
|
3879
3875
|
_: 1
|
|
3880
3876
|
}, 8, ["modelValue", "placeholder"]),
|
|
3881
|
-
c("div",
|
|
3877
|
+
c("div", wa, [
|
|
3882
3878
|
z(R, {
|
|
3883
3879
|
disabled: t(T),
|
|
3884
3880
|
plain: "",
|
|
@@ -3897,26 +3893,26 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3897
3893
|
])
|
|
3898
3894
|
]),
|
|
3899
3895
|
default: b(() => [
|
|
3900
|
-
|
|
3896
|
+
Me((p(), D("div", sa, [
|
|
3901
3897
|
z(F, null, {
|
|
3902
3898
|
default: b(() => [
|
|
3903
|
-
c("div",
|
|
3904
|
-
c("span",
|
|
3899
|
+
c("div", ra, [
|
|
3900
|
+
c("span", ia, I(t(e).downloadAll ? l.$l("Total in All Pages") : l.$l("Total in Current Page")), 1),
|
|
3905
3901
|
n[7] || (n[7] = c("span", { class: "pr4" }, ":", -1)),
|
|
3906
|
-
c("span",
|
|
3902
|
+
c("span", da, I(t(_).length), 1)
|
|
3907
3903
|
]),
|
|
3908
|
-
s.params.showTotalChosen ? (p(), D("div",
|
|
3904
|
+
s.params.showTotalChosen ? (p(), D("div", ua, [
|
|
3909
3905
|
z(C, {
|
|
3910
3906
|
modelValue: t(e).downloadAll,
|
|
3911
3907
|
"onUpdate:modelValue": n[0] || (n[0] = (q) => t(e).downloadAll = q),
|
|
3912
3908
|
label: l.$l("Download All Data"),
|
|
3913
3909
|
class: "h24-i",
|
|
3914
|
-
onChange:
|
|
3910
|
+
onChange: y
|
|
3915
3911
|
}, null, 8, ["modelValue", "label"])
|
|
3916
3912
|
])) : Y("", !0),
|
|
3917
|
-
t(B).length ? (p(), D("div",
|
|
3918
|
-
c("span",
|
|
3919
|
-
c("span",
|
|
3913
|
+
t(B).length ? (p(), D("div", ca, [
|
|
3914
|
+
c("span", pa, I(l.$l("Selected")), 1),
|
|
3915
|
+
c("span", ma, I(t(B).length), 1),
|
|
3920
3916
|
z(C, {
|
|
3921
3917
|
modelValue: t(e).onlySelection,
|
|
3922
3918
|
"onUpdate:modelValue": n[1] || (n[1] = (q) => t(e).onlySelection = q),
|
|
@@ -3924,14 +3920,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3924
3920
|
class: "h24-i"
|
|
3925
3921
|
}, null, 8, ["modelValue", "label"])
|
|
3926
3922
|
])) : Y("", !0),
|
|
3927
|
-
s.params.remote ? (p(), D("div",
|
|
3923
|
+
s.params.remote ? (p(), D("div", fa, [
|
|
3928
3924
|
z(C, {
|
|
3929
3925
|
modelValue: t(e).remoteDownload,
|
|
3930
3926
|
"onUpdate:modelValue": n[2] || (n[2] = (q) => t(e).remoteDownload = q),
|
|
3931
3927
|
label: l.$l("Download all data using remote download")
|
|
3932
3928
|
}, null, 8, ["modelValue", "label"])
|
|
3933
3929
|
])) : Y("", !0),
|
|
3934
|
-
c("div",
|
|
3930
|
+
c("div", ga, [
|
|
3935
3931
|
z(R, {
|
|
3936
3932
|
plain: "",
|
|
3937
3933
|
size: "default",
|
|
@@ -3941,12 +3937,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3941
3937
|
c("i", { class: "imicon im-copy" }, null, -1)
|
|
3942
3938
|
])]),
|
|
3943
3939
|
default: b(() => [
|
|
3944
|
-
c("span",
|
|
3940
|
+
c("span", ya, I(l.$l("Copy to Clipboard")), 1),
|
|
3945
3941
|
z(C, {
|
|
3946
3942
|
modelValue: t(e).withTableHead,
|
|
3947
3943
|
"onUpdate:modelValue": n[3] || (n[3] = (q) => t(e).withTableHead = q),
|
|
3948
3944
|
label: l.$l("With Table Head"),
|
|
3949
|
-
onClick:
|
|
3945
|
+
onClick: he((q) => null, ["stop"])
|
|
3950
3946
|
}, null, 8, ["modelValue", "label"])
|
|
3951
3947
|
]),
|
|
3952
3948
|
_: 1
|
|
@@ -3958,24 +3954,24 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3958
3954
|
])), [
|
|
3959
3955
|
[ce, s.params.loading]
|
|
3960
3956
|
]),
|
|
3961
|
-
c("div",
|
|
3962
|
-
c("div",
|
|
3957
|
+
c("div", ha, [
|
|
3958
|
+
c("div", _a, I(l.$l("What do you want to Download?")), 1),
|
|
3963
3959
|
z(te, {
|
|
3964
3960
|
modelValue: t(e).items,
|
|
3965
3961
|
"onUpdate:modelValue": n[5] || (n[5] = (q) => t(e).items = q)
|
|
3966
3962
|
}, {
|
|
3967
3963
|
default: b(() => [
|
|
3968
|
-
(p(!0), D(ie, null, de(t(e).columns, (q,
|
|
3964
|
+
(p(!0), D(ie, null, de(t(e).columns, (q, xe) => (p(), E(C, {
|
|
3969
3965
|
key: q.prop,
|
|
3970
3966
|
value: q.prop,
|
|
3971
3967
|
class: "wp100 p0-16 h36-i hover-bg-gray1"
|
|
3972
3968
|
}, {
|
|
3973
3969
|
default: b(() => [
|
|
3974
|
-
c("span",
|
|
3975
|
-
q.prop === "country" ? (p(),
|
|
3970
|
+
c("span", ba, I(q.label), 1),
|
|
3971
|
+
q.prop === "country" ? (p(), E(J, {
|
|
3976
3972
|
key: 0,
|
|
3977
3973
|
modelValue: t(e).useCountryName,
|
|
3978
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
3974
|
+
"onUpdate:modelValue": n[4] || (n[4] = (ve) => t(e).useCountryName = ve),
|
|
3979
3975
|
"inline-prompt": "",
|
|
3980
3976
|
"active-text": " Use name ",
|
|
3981
3977
|
"inactive-text": " Use Alpha-2 code ",
|
|
@@ -3994,12 +3990,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3994
3990
|
});
|
|
3995
3991
|
};
|
|
3996
3992
|
}
|
|
3997
|
-
}),
|
|
3993
|
+
}), Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3998
3994
|
__proto__: null,
|
|
3999
|
-
default:
|
|
4000
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3995
|
+
default: Sa
|
|
3996
|
+
}, Symbol.toStringTag, { value: "Module" })), ka = { class: "SuperCountryAso relative" }, xa = { class: "flexMode hr" }, Va = P({
|
|
4001
3997
|
name: "SuperCountryAso"
|
|
4002
|
-
}),
|
|
3998
|
+
}), Oa = /* @__PURE__ */ Object.assign(Va, {
|
|
4003
3999
|
props: {
|
|
4004
4000
|
modelValue: {
|
|
4005
4001
|
type: [String, Array],
|
|
@@ -4037,22 +4033,22 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4037
4033
|
"update:name"
|
|
4038
4034
|
],
|
|
4039
4035
|
setup(M, { emit: V }) {
|
|
4040
|
-
const s = M, { proxy: e } = se(),
|
|
4036
|
+
const s = M, { proxy: e } = se(), h = pe("store").common(), a = H({
|
|
4041
4037
|
loading: !1,
|
|
4042
4038
|
v: "",
|
|
4043
4039
|
arr: []
|
|
4044
|
-
}),
|
|
4045
|
-
|
|
4040
|
+
}), y = V, x = (r) => {
|
|
4041
|
+
y("update:modelValue", r), y("to-change", r);
|
|
4046
4042
|
}, O = (r) => {
|
|
4047
4043
|
let k = [];
|
|
4048
|
-
|
|
4044
|
+
h.countryOptions.forEach((u) => {
|
|
4049
4045
|
r.forEach((m) => {
|
|
4050
4046
|
u.value === m && k.push(u.label);
|
|
4051
4047
|
});
|
|
4052
|
-
}),
|
|
4048
|
+
}), y("update:modelValue", r), y("update:name", k.join(", ")), y("to-change", r);
|
|
4053
4049
|
}, A = () => {
|
|
4054
|
-
|
|
4055
|
-
}, w = g(() =>
|
|
4050
|
+
y("update:modelValue", a.arr), y("confirm", a.arr), e.$refs.multiple.blur();
|
|
4051
|
+
}, w = g(() => h.countryOptions), f = g(() => window.$l("Countries or Regions"));
|
|
4056
4052
|
return X(
|
|
4057
4053
|
() => s.modelValue,
|
|
4058
4054
|
(r, k) => {
|
|
@@ -4063,22 +4059,22 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4063
4059
|
}
|
|
4064
4060
|
), (r, k) => {
|
|
4065
4061
|
const u = N("IconLoading"), m = N("CountryItem"), S = N("el-option"), d = N("el-select"), i = N("el-button"), $ = N("MultipleSelect");
|
|
4066
|
-
return p(), D("div",
|
|
4067
|
-
t(a).loading ? (p(),
|
|
4068
|
-
s.multiple ? (p(),
|
|
4062
|
+
return p(), D("div", ka, [
|
|
4063
|
+
t(a).loading ? (p(), E(u, { key: 0 })) : Y("", !0),
|
|
4064
|
+
s.multiple ? (p(), E($, Z({
|
|
4069
4065
|
key: 2,
|
|
4070
4066
|
ref: "multiple",
|
|
4071
4067
|
modelValue: t(a).arr,
|
|
4072
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
4068
|
+
"onUpdate:modelValue": k[1] || (k[1] = (_) => t(a).arr = _),
|
|
4073
4069
|
options: t(w),
|
|
4074
4070
|
placeholder: t(f)
|
|
4075
4071
|
}, r.$attrs, {
|
|
4076
4072
|
"multiple-limit": s.limit,
|
|
4077
4073
|
onChange: O
|
|
4078
4074
|
}), ae({
|
|
4079
|
-
default: b(({ it:
|
|
4075
|
+
default: b(({ it: _ }) => [
|
|
4080
4076
|
z(m, {
|
|
4081
|
-
name:
|
|
4077
|
+
name: _.value_lower
|
|
4082
4078
|
}, null, 8, ["name"])
|
|
4083
4079
|
]),
|
|
4084
4080
|
_: 2
|
|
@@ -4086,7 +4082,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4086
4082
|
s.useFooter ? {
|
|
4087
4083
|
name: "footer",
|
|
4088
4084
|
fn: b(() => [
|
|
4089
|
-
c("div",
|
|
4085
|
+
c("div", xa, [
|
|
4090
4086
|
z(i, {
|
|
4091
4087
|
type: "primary",
|
|
4092
4088
|
onClick: A
|
|
@@ -4103,28 +4099,28 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4103
4099
|
]),
|
|
4104
4100
|
key: "0"
|
|
4105
4101
|
} : void 0
|
|
4106
|
-
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (p(),
|
|
4102
|
+
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (p(), E(d, Z({
|
|
4107
4103
|
key: 1,
|
|
4108
4104
|
modelValue: t(a).v,
|
|
4109
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
4105
|
+
"onUpdate:modelValue": k[0] || (k[0] = (_) => t(a).v = _),
|
|
4110
4106
|
filterable: "",
|
|
4111
4107
|
placeholder: t(f),
|
|
4112
4108
|
class: "wp100"
|
|
4113
4109
|
}, r.$attrs, { onChange: x }), ae({
|
|
4114
4110
|
default: b(() => [
|
|
4115
|
-
s.useAll ? (p(),
|
|
4111
|
+
s.useAll ? (p(), E(S, {
|
|
4116
4112
|
key: 0,
|
|
4117
4113
|
label: r.$l("All"),
|
|
4118
4114
|
value: s.allValue
|
|
4119
4115
|
}, null, 8, ["label", "value"])) : Y("", !0),
|
|
4120
|
-
(p(!0), D(ie, null, de(t(w), (
|
|
4121
|
-
key:
|
|
4122
|
-
label: r.$l(
|
|
4123
|
-
value:
|
|
4116
|
+
(p(!0), D(ie, null, de(t(w), (_, B) => (p(), E(S, {
|
|
4117
|
+
key: _.value,
|
|
4118
|
+
label: r.$l(_.label),
|
|
4119
|
+
value: _.value_lower
|
|
4124
4120
|
}, {
|
|
4125
4121
|
default: b(() => [
|
|
4126
4122
|
z(m, {
|
|
4127
|
-
name:
|
|
4123
|
+
name: _.value_lower
|
|
4128
4124
|
}, null, 8, ["name"])
|
|
4129
4125
|
]),
|
|
4130
4126
|
_: 2
|
|
@@ -4146,12 +4142,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4146
4142
|
]);
|
|
4147
4143
|
};
|
|
4148
4144
|
}
|
|
4149
|
-
}),
|
|
4145
|
+
}), Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4150
4146
|
__proto__: null,
|
|
4151
|
-
default:
|
|
4152
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4147
|
+
default: Oa
|
|
4148
|
+
}, Symbol.toStringTag, { value: "Module" })), Aa = { class: "SuperCountryDiy" }, Da = { class: "flexMode hr" }, Ma = P({
|
|
4153
4149
|
name: "SuperCountryDiy"
|
|
4154
|
-
}),
|
|
4150
|
+
}), Na = /* @__PURE__ */ Object.assign(Ma, {
|
|
4155
4151
|
props: {
|
|
4156
4152
|
modelValue: {
|
|
4157
4153
|
tupe: [Array, String],
|
|
@@ -4179,10 +4175,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4179
4175
|
const s = M, e = H({
|
|
4180
4176
|
single: "",
|
|
4181
4177
|
multiple: []
|
|
4182
|
-
}), { proxy: o } = se(),
|
|
4178
|
+
}), { proxy: o } = se(), h = V, a = () => {
|
|
4183
4179
|
o.$refs.multiple.blur();
|
|
4184
|
-
},
|
|
4185
|
-
|
|
4180
|
+
}, y = (A) => {
|
|
4181
|
+
h("update:modelValue", A), h("change", A);
|
|
4186
4182
|
}, x = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("Country or Region")), O = g(() => s.options.sort((A, w) => A.label.localeCompare(w.label)));
|
|
4187
4183
|
return X(
|
|
4188
4184
|
() => s.modelValue,
|
|
@@ -4194,8 +4190,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4194
4190
|
}
|
|
4195
4191
|
), (A, w) => {
|
|
4196
4192
|
const f = N("CountryItem"), r = N("el-button"), k = N("MultipleSelect"), u = N("el-option"), m = N("el-select");
|
|
4197
|
-
return p(), D("div",
|
|
4198
|
-
s.multiple ? (p(),
|
|
4193
|
+
return p(), D("div", Aa, [
|
|
4194
|
+
s.multiple ? (p(), E(k, Z({
|
|
4199
4195
|
key: 0,
|
|
4200
4196
|
ref: "multiple",
|
|
4201
4197
|
modelValue: t(e).multiple,
|
|
@@ -4203,7 +4199,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4203
4199
|
placeholder: t(x)
|
|
4204
4200
|
}, A.$attrs, {
|
|
4205
4201
|
options: t(O),
|
|
4206
|
-
onChange:
|
|
4202
|
+
onChange: y
|
|
4207
4203
|
}), ae({
|
|
4208
4204
|
default: b(({ it: S }) => [
|
|
4209
4205
|
z(f, {
|
|
@@ -4215,7 +4211,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4215
4211
|
s.useFooter ? {
|
|
4216
4212
|
name: "footer",
|
|
4217
4213
|
fn: b(() => [
|
|
4218
|
-
c("div",
|
|
4214
|
+
c("div", Da, [
|
|
4219
4215
|
z(r, {
|
|
4220
4216
|
type: "primary",
|
|
4221
4217
|
onClick: a
|
|
@@ -4235,14 +4231,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4235
4231
|
]),
|
|
4236
4232
|
key: "1"
|
|
4237
4233
|
} : void 0
|
|
4238
|
-
]), 1040, ["modelValue", "placeholder", "options"])) : (p(),
|
|
4234
|
+
]), 1040, ["modelValue", "placeholder", "options"])) : (p(), E(m, Z({
|
|
4239
4235
|
key: 1,
|
|
4240
4236
|
modelValue: t(e).single,
|
|
4241
4237
|
"onUpdate:modelValue": w[1] || (w[1] = (S) => t(e).single = S),
|
|
4242
4238
|
placeholder: t(x)
|
|
4243
|
-
}, A.$attrs, { onChange:
|
|
4239
|
+
}, A.$attrs, { onChange: y }), ae({
|
|
4244
4240
|
default: b(() => [
|
|
4245
|
-
(p(!0), D(ie, null, de(t(O), (S, d) => (p(),
|
|
4241
|
+
(p(!0), D(ie, null, de(t(O), (S, d) => (p(), E(u, {
|
|
4246
4242
|
key: d,
|
|
4247
4243
|
label: A.$l(S.label),
|
|
4248
4244
|
value: S.value
|
|
@@ -4271,10 +4267,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4271
4267
|
]);
|
|
4272
4268
|
};
|
|
4273
4269
|
}
|
|
4274
|
-
}),
|
|
4270
|
+
}), Ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4275
4271
|
__proto__: null,
|
|
4276
|
-
default:
|
|
4272
|
+
default: Na
|
|
4277
4273
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4278
4274
|
export {
|
|
4279
|
-
|
|
4275
|
+
Fa as c
|
|
4280
4276
|
};
|