magtool 1.5.18 → 1.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.js +174 -173
- package/dist/composition.js +107 -90
- package/dist/css/magtool.css +1 -1
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -198,7 +198,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
198
198
|
...l
|
|
199
199
|
};
|
|
200
200
|
const C = [];
|
|
201
|
-
n.today && C.push(D()), n.yesterday && C.push(
|
|
201
|
+
n.today && C.push(D()), n.yesterday && C.push($()), n.thisweek && C.push(f()), n.last7days && C.push(r()), n.todaylast7days && C.push(k()), n.thismonth && C.push(u()), n.last30days && C.push(m()), n.lastmonth && C.push(S()), o.shortBtn = C;
|
|
202
202
|
}
|
|
203
203
|
}, D = () => ({
|
|
204
204
|
text: window.$l("Today"),
|
|
@@ -208,7 +208,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
208
208
|
},
|
|
209
209
|
onClick: (l) => {
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), $ = () => ({
|
|
212
212
|
text: window.$l("Yesterday"),
|
|
213
213
|
value: () => {
|
|
214
214
|
const l = window.$m().add(-1, "days").format("YYYY-MM-DD");
|
|
@@ -273,11 +273,11 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
273
273
|
}), d = (l, n = !1) => {
|
|
274
274
|
n && (o.date = l);
|
|
275
275
|
let C;
|
|
276
|
-
return
|
|
276
|
+
return w.value === "Array" ? C = l : w.value === "Object" ? C = {
|
|
277
277
|
startDate: l[0],
|
|
278
278
|
endDate: l[1]
|
|
279
279
|
} : C = l[0] + e.separator + l[1], h("update:modelValue", C), C;
|
|
280
|
-
}, i = g(() => window.$getLang()),
|
|
280
|
+
}, i = g(() => window.$getLang()), w = g(() => window.$getType(e.modelValue)), _ = g(() => w.value === "Array" ? e.modelValue : w.value === "Object" ? [e.modelValue.startDate, e.modelValue.endDate] : e.modelValue ? e.modelValue.split(e.separator) : []), B = g(() => ({
|
|
281
281
|
start: window.$l("Start Date"),
|
|
282
282
|
end: window.$l("End Date")
|
|
283
283
|
}));
|
|
@@ -489,18 +489,18 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
489
489
|
...a.defaultOptions.tooltip,
|
|
490
490
|
...u[e.theme]
|
|
491
491
|
}, m = D(a.defaultOptions, m)), (d = m.series) == null || d.forEach((i) => {
|
|
492
|
-
i.animation = !0, i.animationDuration = 300, i.type === "line" ? (i.animationEasing = "cubicInOut", i.animationDelay = (
|
|
492
|
+
i.animation = !0, i.animationDuration = 300, i.type === "line" ? (i.animationEasing = "cubicInOut", i.animationDelay = (w) => w * 100) : (i.animationEasing = "cubicInOut", i.animationDelay = (w) => w * 100);
|
|
493
493
|
}), a.options = m, a.chart.setOption(m), e.type === "wordcloud" && a.chart.on("click", (...i) => {
|
|
494
494
|
y("chart-click", i);
|
|
495
495
|
}), a.optioning = !1;
|
|
496
496
|
});
|
|
497
497
|
}, D = (m, S) => {
|
|
498
498
|
const { yAxis: d } = S, { yAxis: i } = m;
|
|
499
|
-
let
|
|
500
|
-
window.$getType(d) === "Array" ?
|
|
499
|
+
let w;
|
|
500
|
+
window.$getType(d) === "Array" ? w = d.map((T) => ({
|
|
501
501
|
...i,
|
|
502
502
|
...T
|
|
503
|
-
})) :
|
|
503
|
+
})) : w = {
|
|
504
504
|
...i,
|
|
505
505
|
...d
|
|
506
506
|
};
|
|
@@ -514,8 +514,8 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
514
514
|
const n = m[T] || {}, C = S[T] || {};
|
|
515
515
|
_[T] = { ...n, ...C };
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
518
|
-
},
|
|
517
|
+
}), w && (_.yAxis = w), _;
|
|
518
|
+
}, $ = () => a.chart, f = g(() => window.global.config.options.cardWidth), r = g(() => {
|
|
519
519
|
const m = window.$getType(e.width), S = Number(e.height);
|
|
520
520
|
let d = e.width;
|
|
521
521
|
return d ? m === "String" && (d.indexOf("%") > -1 ? d = parseInt(parseInt(d) * f.value / 100) : d = Number(d)) : d = f.value, {
|
|
@@ -542,7 +542,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
), x({
|
|
545
|
-
getChart:
|
|
545
|
+
getChart: $,
|
|
546
546
|
initChart: V
|
|
547
547
|
});
|
|
548
548
|
const u = {
|
|
@@ -741,7 +741,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
741
741
|
if (u.key === "Enter" || u.code === "Enter" || u.keyCode === 13)
|
|
742
742
|
return u.returnValue = !1, !1;
|
|
743
743
|
}
|
|
744
|
-
},
|
|
744
|
+
}, $ = (u) => {
|
|
745
745
|
e.nobreak ? a("update:modelValue", u.replace(/\n/g, "")) : a("update:modelValue", u), a("change", u);
|
|
746
746
|
}, f = (u) => {
|
|
747
747
|
fe(() => {
|
|
@@ -771,7 +771,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
771
771
|
"input-style": e.center ? "text-align: center" : ""
|
|
772
772
|
}, u.$attrs, {
|
|
773
773
|
placeholder: t(k),
|
|
774
|
-
onChange:
|
|
774
|
+
onChange: $,
|
|
775
775
|
onCompositionstart: y,
|
|
776
776
|
onCompositionend: V,
|
|
777
777
|
onKeydown: [
|
|
@@ -825,7 +825,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
825
825
|
class: "flexMode vc hb h40 outsideIgnore"
|
|
826
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({
|
|
827
827
|
name: "SuperMultipleSelect"
|
|
828
|
-
}),
|
|
828
|
+
}), $t = /* @__PURE__ */ Object.assign(vt, {
|
|
829
829
|
props: {
|
|
830
830
|
modelValue: {
|
|
831
831
|
type: Array,
|
|
@@ -854,7 +854,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
854
854
|
o.v = [], y();
|
|
855
855
|
}, D = () => {
|
|
856
856
|
h.$refs.select.blur();
|
|
857
|
-
},
|
|
857
|
+
}, $ = 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
858
|
return Ne(() => {
|
|
859
859
|
JSON.stringify(e.modelValue) !== JSON.stringify(o.v) && (o.v = e.modelValue);
|
|
860
860
|
}), x({
|
|
@@ -875,8 +875,8 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
875
875
|
class: ["wp100 MultipleSelect", t(r) && "nowrap"]
|
|
876
876
|
}), ae({
|
|
877
877
|
default: b(() => [
|
|
878
|
-
(c(!0), A(ie, null, de(e.options, (i,
|
|
879
|
-
key:
|
|
878
|
+
(c(!0), A(ie, null, de(e.options, (i, w) => (c(), E(S, {
|
|
879
|
+
key: w,
|
|
880
880
|
label: k.$l(i[e.label]),
|
|
881
881
|
value: i[e.value],
|
|
882
882
|
disabled: i.disabled,
|
|
@@ -906,7 +906,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
906
906
|
k.$slots.header ? (c(), A("div", mt, [
|
|
907
907
|
W(k.$slots, "header", {}, void 0, !0)
|
|
908
908
|
])) : (c(), A("div", ft, [
|
|
909
|
-
t(
|
|
909
|
+
t($) ? (c(), E(m, {
|
|
910
910
|
key: 0,
|
|
911
911
|
type: "primary",
|
|
912
912
|
size: "default",
|
|
@@ -954,7 +954,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
954
954
|
]);
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
}),
|
|
957
|
+
}), wt = /* @__PURE__ */ ue($t, [["__scopeId", "data-v-278f3960"]]), St = { class: "SuperNodata" }, Oe = {
|
|
958
958
|
data: "No Data",
|
|
959
959
|
selection: "Unselected"
|
|
960
960
|
}, Ct = P({
|
|
@@ -992,7 +992,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
992
992
|
class: "title fw700 fs24"
|
|
993
993
|
}, At = {
|
|
994
994
|
key: 1,
|
|
995
|
-
class: "subtitle"
|
|
995
|
+
class: "subtitle fs14 txt-dark7"
|
|
996
996
|
}, Dt = {
|
|
997
997
|
class: "PageFooter flexMode vc g8 fs14",
|
|
998
998
|
style: { padding: "14px 30px 24px 30px" }
|
|
@@ -1055,7 +1055,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1055
1055
|
]);
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
}), jt = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-
|
|
1058
|
+
}), jt = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-fb447dc9"]]), Yt = { class: "MvcTableHeaderTool" }, Et = { class: "ToolArea" }, Lt = P({
|
|
1059
1059
|
name: "MvcTableHeaderTool",
|
|
1060
1060
|
inheritAttrs: !1
|
|
1061
1061
|
}), Rt = /* @__PURE__ */ Object.assign(Lt, {
|
|
@@ -1133,7 +1133,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1133
1133
|
selection: o.selection,
|
|
1134
1134
|
remote: o.remote
|
|
1135
1135
|
}, h.current = 1;
|
|
1136
|
-
},
|
|
1136
|
+
}, $ = (d) => {
|
|
1137
1137
|
d === "column" ? y("to-init-table") : d === "download" && y("to-download");
|
|
1138
1138
|
}, f = async () => {
|
|
1139
1139
|
if (o.loadData) {
|
|
@@ -1185,10 +1185,10 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1185
1185
|
}
|
|
1186
1186
|
];
|
|
1187
1187
|
return (d, i) => {
|
|
1188
|
-
const
|
|
1188
|
+
const w = N("el-button"), _ = N("Drawer");
|
|
1189
1189
|
return c(), A("div", Yt, [
|
|
1190
1190
|
p("div", Et, [
|
|
1191
|
-
t(m) ? (c(), E(
|
|
1191
|
+
t(m) ? (c(), E(w, {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
plain: "",
|
|
1194
1194
|
onClick: i[0] || (i[0] = (B) => V(B))
|
|
@@ -1201,7 +1201,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1201
1201
|
]),
|
|
1202
1202
|
_: 1
|
|
1203
1203
|
})) : Y("", !0),
|
|
1204
|
-
t(u) ? (c(), E(
|
|
1204
|
+
t(u) ? (c(), E(w, {
|
|
1205
1205
|
key: 1,
|
|
1206
1206
|
plain: "",
|
|
1207
1207
|
onClick: O
|
|
@@ -1214,7 +1214,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
})) : Y("", !0),
|
|
1217
|
-
t(k) ? (c(), E(
|
|
1217
|
+
t(k) ? (c(), E(w, {
|
|
1218
1218
|
key: 2,
|
|
1219
1219
|
plain: "",
|
|
1220
1220
|
onClick: D
|
|
@@ -1236,7 +1236,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1236
1236
|
dt: t(h).dt,
|
|
1237
1237
|
onFetchAllData: f,
|
|
1238
1238
|
onRecoverCurrentData: r,
|
|
1239
|
-
onSubmit:
|
|
1239
|
+
onSubmit: $
|
|
1240
1240
|
}, null, 8, ["current", "drawer", "loading", "dt"])
|
|
1241
1241
|
]);
|
|
1242
1242
|
};
|
|
@@ -1325,7 +1325,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1325
1325
|
left: [],
|
|
1326
1326
|
center: [],
|
|
1327
1327
|
right: []
|
|
1328
|
-
}, D = M.tableName ? JSON.parse(localStorage.getItem(e)) : {},
|
|
1328
|
+
}, D = M.tableName ? JSON.parse(localStorage.getItem(e)) : {}, $ = [void 0];
|
|
1329
1329
|
V.forEach((r) => {
|
|
1330
1330
|
window.$getType(r.type) === "Symbol" ? o = o.concat(r.children) : o.push(r);
|
|
1331
1331
|
}), o.forEach((r, k) => {
|
|
@@ -1341,7 +1341,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1341
1341
|
resizable: !0,
|
|
1342
1342
|
visible: r.props.visible !== !1
|
|
1343
1343
|
};
|
|
1344
|
-
if (D != null && D.length &&
|
|
1344
|
+
if (D != null && D.length && $.indexOf(r.props.prop) === -1) {
|
|
1345
1345
|
const { data: d } = D.filter1(
|
|
1346
1346
|
(i) => i.prop === r.props.prop
|
|
1347
1347
|
);
|
|
@@ -1447,7 +1447,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1447
1447
|
o("page-change", r);
|
|
1448
1448
|
}, y = (r) => {
|
|
1449
1449
|
o("summary-mode-change", r);
|
|
1450
|
-
}, V = g(() => s.staticTotal ? !1 : s.filterTotal !== s.total), O = g(() => Number(s.pageCount) || 7), D = g(() => window.$getType(s.remoteData) === "String"),
|
|
1450
|
+
}, V = g(() => s.staticTotal ? !1 : s.filterTotal !== s.total), O = g(() => Number(s.pageCount) || 7), D = g(() => window.$getType(s.remoteData) === "String"), $ = g(() => D.value ? "slot, ->, prev, pager, next, sizes" : "slot, ->"), f = [
|
|
1451
1451
|
{
|
|
1452
1452
|
label: window.$l("Current Page"),
|
|
1453
1453
|
value: 0
|
|
@@ -1464,7 +1464,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1464
1464
|
z(S, {
|
|
1465
1465
|
ref: "pagination",
|
|
1466
1466
|
background: "",
|
|
1467
|
-
layout: t(
|
|
1467
|
+
layout: t($),
|
|
1468
1468
|
total: s.total,
|
|
1469
1469
|
"current-page": s.pageNum,
|
|
1470
1470
|
"onUpdate:currentPage": k[1] || (k[1] = (d) => s.pageNum = d),
|
|
@@ -1633,10 +1633,10 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1633
1633
|
});
|
|
1634
1634
|
const V = s, O = async (j = {}) => {
|
|
1635
1635
|
const { refresh: G, remote: L } = j;
|
|
1636
|
-
J.value && G || (j ? (o.pageStart = j.pageStart || 1, j.pageSize && (o.pageSize = j.pageSize), delete j.pageStart, delete j.pageSize, delete j.refresh, delete j.remote, o.search = j) : o.pageStart = 1, await
|
|
1636
|
+
J.value && G || (j ? (o.pageStart = j.pageStart || 1, j.pageSize && (o.pageSize = j.pageSize), delete j.pageStart, delete j.pageSize, delete j.refresh, delete j.remote, o.search = j) : o.pageStart = 1, await $({ remote: L }));
|
|
1637
1637
|
}, D = (j) => {
|
|
1638
1638
|
j || o.tableKey++;
|
|
1639
|
-
},
|
|
1639
|
+
}, $ = async (j = {}, G) => {
|
|
1640
1640
|
var ee;
|
|
1641
1641
|
const { remote: L } = j;
|
|
1642
1642
|
if (e.loadData !== void 0) {
|
|
@@ -1675,16 +1675,16 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1675
1675
|
let oe = !1;
|
|
1676
1676
|
j.forEach((le) => {
|
|
1677
1677
|
const ye = String(ee[le]).toLowerCase();
|
|
1678
|
-
let
|
|
1679
|
-
if (window.$getType(
|
|
1678
|
+
let $e = G[le];
|
|
1679
|
+
if (window.$getType($e) === "Array")
|
|
1680
1680
|
try {
|
|
1681
|
-
|
|
1682
|
-
if (
|
|
1681
|
+
$e.forEach((we) => {
|
|
1682
|
+
if (we && ye.includes(String(we).toLowerCase()))
|
|
1683
1683
|
throw oe = !0, new Error();
|
|
1684
1684
|
});
|
|
1685
1685
|
} catch {
|
|
1686
1686
|
}
|
|
1687
|
-
else ye.includes(
|
|
1687
|
+
else ye.includes($e.toLowerCase()) && (oe = !0);
|
|
1688
1688
|
}), oe && L.push(ee);
|
|
1689
1689
|
}), o.dt.list = L, o.filter.total = L.length, V("list-change", L), L;
|
|
1690
1690
|
}, m = () => {
|
|
@@ -1701,16 +1701,16 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1701
1701
|
o.dt.list = o.dt.list.filter((L) => L[j] !== G), o.filter.list = o.filter.list.filter((L) => L[j] !== G);
|
|
1702
1702
|
}, i = (j) => {
|
|
1703
1703
|
y.value.toggleRowExpansion(j);
|
|
1704
|
-
},
|
|
1704
|
+
}, w = (j, G) => {
|
|
1705
1705
|
y.value.toggleRowSelection(j, G);
|
|
1706
1706
|
}, _ = (j) => {
|
|
1707
1707
|
o.selection = j, V("selection-change", j);
|
|
1708
1708
|
}, B = (j) => {
|
|
1709
1709
|
V("sort-change", j);
|
|
1710
1710
|
}, T = (j) => {
|
|
1711
|
-
o.pageSize = j, o.sizeChanged = !0,
|
|
1711
|
+
o.pageSize = j, o.sizeChanged = !0, $();
|
|
1712
1712
|
}, l = (j) => {
|
|
1713
|
-
o.pageStart = j,
|
|
1713
|
+
o.pageStart = j, $();
|
|
1714
1714
|
}, n = (j, G, L) => {
|
|
1715
1715
|
let ee = localStorage.getItem(q.value);
|
|
1716
1716
|
if (ee) {
|
|
@@ -1737,7 +1737,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1737
1737
|
(j) => {
|
|
1738
1738
|
if (j) {
|
|
1739
1739
|
const G = window.$getType(j);
|
|
1740
|
-
G === "String" ? e.immediate &&
|
|
1740
|
+
G === "String" ? e.immediate && $() : G === "Number" && (o.loading = !1, m());
|
|
1741
1741
|
}
|
|
1742
1742
|
},
|
|
1743
1743
|
{
|
|
@@ -1750,7 +1750,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1750
1750
|
removeRow: d,
|
|
1751
1751
|
refreshTable: D,
|
|
1752
1752
|
toggleRowExpansion: i,
|
|
1753
|
-
toggleRowSelection:
|
|
1753
|
+
toggleRowSelection: w,
|
|
1754
1754
|
toStop: R,
|
|
1755
1755
|
toAdd: F
|
|
1756
1756
|
});
|
|
@@ -1785,7 +1785,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1785
1785
|
onHeaderDragend: n,
|
|
1786
1786
|
onSelectionChange: _,
|
|
1787
1787
|
onSortChange: B,
|
|
1788
|
-
onToggleRowSelection:
|
|
1788
|
+
onToggleRowSelection: w
|
|
1789
1789
|
}, {
|
|
1790
1790
|
default: b(() => [
|
|
1791
1791
|
z(t(Zt), {
|
|
@@ -1824,7 +1824,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1824
1824
|
}), bo = /* @__PURE__ */ ue(_o, [["__scopeId", "data-v-b05a08f4"]]), vo = P({
|
|
1825
1825
|
name: "Table",
|
|
1826
1826
|
inheritAttrs: !1
|
|
1827
|
-
}),
|
|
1827
|
+
}), $o = /* @__PURE__ */ Object.assign(vo, {
|
|
1828
1828
|
props: {
|
|
1829
1829
|
showTotalChosen: {
|
|
1830
1830
|
type: Boolean,
|
|
@@ -1864,7 +1864,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1864
1864
|
y.value.toFilter(l);
|
|
1865
1865
|
}, D = (l) => {
|
|
1866
1866
|
y.value.initTable(l);
|
|
1867
|
-
},
|
|
1867
|
+
}, $ = (l) => {
|
|
1868
1868
|
y.value.editRow(l);
|
|
1869
1869
|
}, f = () => {
|
|
1870
1870
|
y.value.refreshTable();
|
|
@@ -1884,7 +1884,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1884
1884
|
});
|
|
1885
1885
|
}, i = () => {
|
|
1886
1886
|
y.value.$refs.table.clearSelection();
|
|
1887
|
-
},
|
|
1887
|
+
}, w = () => {
|
|
1888
1888
|
y.value.toStop();
|
|
1889
1889
|
}, _ = (l) => {
|
|
1890
1890
|
y.value.toAdd(l);
|
|
@@ -1893,14 +1893,14 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1893
1893
|
}, T = g(() => V.$attrs["table-name"]);
|
|
1894
1894
|
return g(() => `${T.value}_Column`), x({
|
|
1895
1895
|
initTable: D,
|
|
1896
|
-
editRow:
|
|
1896
|
+
editRow: $,
|
|
1897
1897
|
removeRow: B,
|
|
1898
1898
|
toFilter: O,
|
|
1899
1899
|
toggleRowExpansion: u,
|
|
1900
1900
|
toggleRowSelection: m,
|
|
1901
1901
|
toInitTable: f,
|
|
1902
1902
|
clearSelection: i,
|
|
1903
|
-
toStop:
|
|
1903
|
+
toStop: w,
|
|
1904
1904
|
toAdd: _
|
|
1905
1905
|
}), (l, n) => (c(), A("div", {
|
|
1906
1906
|
class: K(["Table", o.tableClass])
|
|
@@ -1949,7 +1949,7 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
1949
1949
|
}, 16, ["group-info", "total"])
|
|
1950
1950
|
], 2));
|
|
1951
1951
|
}
|
|
1952
|
-
}),
|
|
1952
|
+
}), wo = /* @__PURE__ */ ue($o, [["__scopeId", "data-v-22eb1590"]]), So = { class: "SuperTextarea relative" }, Co = {
|
|
1953
1953
|
key: 0,
|
|
1954
1954
|
class: "absFull flexMode hc vc z9"
|
|
1955
1955
|
}, ko = P({
|
|
@@ -2006,16 +2006,16 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
2006
2006
|
});
|
|
2007
2007
|
}, V = (S) => {
|
|
2008
2008
|
let d = 0, i = [];
|
|
2009
|
-
const
|
|
2009
|
+
const w = [];
|
|
2010
2010
|
if (S) {
|
|
2011
2011
|
if (i = S.split(`
|
|
2012
2012
|
`), i.forEach((_) => {
|
|
2013
|
-
_.trim() && (d++,
|
|
2014
|
-
}),
|
|
2013
|
+
_.trim() && (d++, w.push(_));
|
|
2014
|
+
}), !$.value) {
|
|
2015
2015
|
o.v = r.value ? [] : "";
|
|
2016
2016
|
return;
|
|
2017
2017
|
}
|
|
2018
|
-
|
|
2018
|
+
$.value > -1 && d > $.value && (i = w.slice(0, $.value), o.v = i.join(e.sep), d = $.value), a("update:modelValue", r.value ? i : o.v);
|
|
2019
2019
|
} else
|
|
2020
2020
|
a("update:modelValue", r.value ? [] : "");
|
|
2021
2021
|
o.total = d, a("total", d);
|
|
@@ -2023,10 +2023,10 @@ const Pe = { class: "fw700" }, Fe = P({
|
|
|
2023
2023
|
o.v = "", o.total = 0, a("update:modelValue", ""), a("change", ""), y();
|
|
2024
2024
|
}, D = () => {
|
|
2025
2025
|
a("blur");
|
|
2026
|
-
},
|
|
2026
|
+
}, $ = g(() => Number(e.max) || 0), f = g(() => o.total === $.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)}
|
|
2027
2027
|
${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.modelValue);
|
|
2028
2028
|
return Ne(() => {
|
|
2029
|
-
m.value &&
|
|
2029
|
+
m.value && $.value ? m.value !== o.v && (o.v = m.value, V(m.value)) : (o.v = "", o.total = 0);
|
|
2030
2030
|
}), x({
|
|
2031
2031
|
toFocus: y
|
|
2032
2032
|
}), (S, d) => {
|
|
@@ -2038,7 +2038,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2038
2038
|
z(i, {
|
|
2039
2039
|
ref: "input",
|
|
2040
2040
|
modelValue: t(o).v,
|
|
2041
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2041
|
+
"onUpdate:modelValue": d[0] || (d[0] = (w) => t(o).v = w),
|
|
2042
2042
|
rows: e.rows,
|
|
2043
2043
|
resize: e.resize,
|
|
2044
2044
|
type: "textarea",
|
|
@@ -2048,7 +2048,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2048
2048
|
onInput: V,
|
|
2049
2049
|
onBlur: D
|
|
2050
2050
|
}, null, 8, ["modelValue", "rows", "resize", "placeholder", "class", "disabled"]),
|
|
2051
|
-
t(
|
|
2051
|
+
t($) > -1 ? (c(), A("div", {
|
|
2052
2052
|
key: 1,
|
|
2053
2053
|
class: K(["countArea abs fs12 txt-blue", e.rows > 1 && "lh20"])
|
|
2054
2054
|
}, [
|
|
@@ -2056,7 +2056,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2056
2056
|
class: K(t(f))
|
|
2057
2057
|
}, I(t(o).total), 3),
|
|
2058
2058
|
d[2] || (d[2] = p("span", null, " / ", -1)),
|
|
2059
|
-
p("span", null, I(t(
|
|
2059
|
+
p("span", null, I(t($)), 1)
|
|
2060
2060
|
], 2)) : Y("", !0),
|
|
2061
2061
|
p("div", {
|
|
2062
2062
|
class: K(["clearArea abs txt-dark3 hover-txt-red5", [t(o).v && "content"]]),
|
|
@@ -2068,7 +2068,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2068
2068
|
key: 2,
|
|
2069
2069
|
class: "prefix abs l t",
|
|
2070
2070
|
style: { padding: "6px 11px" },
|
|
2071
|
-
onClick: he((
|
|
2071
|
+
onClick: he((w) => null, ["stop"])
|
|
2072
2072
|
}, [
|
|
2073
2073
|
W(S.$slots, "prefix", {}, void 0, !0)
|
|
2074
2074
|
])) : Y("", !0)
|
|
@@ -2122,7 +2122,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2122
2122
|
a("update:modelValue", f);
|
|
2123
2123
|
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2124
2124
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs));
|
|
2125
|
-
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")),
|
|
2125
|
+
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), $ = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2126
2126
|
return X(
|
|
2127
2127
|
() => s.modelValue,
|
|
2128
2128
|
(f) => {
|
|
@@ -2173,11 +2173,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2173
2173
|
]),
|
|
2174
2174
|
_: 2
|
|
2175
2175
|
}, [
|
|
2176
|
-
t(
|
|
2176
|
+
t($) ? {
|
|
2177
2177
|
name: "prefix",
|
|
2178
2178
|
fn: b(() => [
|
|
2179
2179
|
z(u, {
|
|
2180
|
-
src: t(
|
|
2180
|
+
src: t($).icon,
|
|
2181
2181
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2182
2182
|
}, null, 8, ["src"])
|
|
2183
2183
|
]),
|
|
@@ -2248,7 +2248,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2248
2248
|
});
|
|
2249
2249
|
}, D = () => {
|
|
2250
2250
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
2251
|
-
},
|
|
2251
|
+
}, $ = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
2252
2252
|
var u;
|
|
2253
2253
|
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
2254
2254
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
@@ -2261,7 +2261,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2261
2261
|
immediate: !0
|
|
2262
2262
|
}
|
|
2263
2263
|
), (u, m) => {
|
|
2264
|
-
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"),
|
|
2264
|
+
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), w = N("el-select");
|
|
2265
2265
|
return c(), A("div", Io, [
|
|
2266
2266
|
t(e).loading ? (c(), E(S, { key: 0 })) : Y("", !0),
|
|
2267
2267
|
p("div", zo, [
|
|
@@ -2276,10 +2276,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2276
2276
|
_: 1
|
|
2277
2277
|
})
|
|
2278
2278
|
]),
|
|
2279
|
-
z(
|
|
2279
|
+
z(w, Z({
|
|
2280
2280
|
modelValue: t(e).single,
|
|
2281
2281
|
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
2282
|
-
placeholder: t(
|
|
2282
|
+
placeholder: t($),
|
|
2283
2283
|
disabled: t(k),
|
|
2284
2284
|
filterable: ""
|
|
2285
2285
|
}, u.$attrs, {
|
|
@@ -2370,14 +2370,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2370
2370
|
filterTxt: ""
|
|
2371
2371
|
}), { proxy: h } = se(), a = s, y = async () => {
|
|
2372
2372
|
const i = window.$getType(e.campaign);
|
|
2373
|
-
let
|
|
2374
|
-
if (i === "Array" ?
|
|
2373
|
+
let w;
|
|
2374
|
+
if (i === "Array" ? w = e.campaign.join(",") : w = e.campaign.toString(), !w)
|
|
2375
2375
|
return;
|
|
2376
2376
|
let _ = {
|
|
2377
2377
|
data: {
|
|
2378
2378
|
appId: e.app,
|
|
2379
2379
|
orgId: e.org,
|
|
2380
|
-
campaignId:
|
|
2380
|
+
campaignId: w
|
|
2381
2381
|
}
|
|
2382
2382
|
};
|
|
2383
2383
|
e.needNew && (_.ex = +/* @__PURE__ */ new Date()), o.loading = !0;
|
|
@@ -2402,12 +2402,12 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2402
2402
|
}, O = () => {
|
|
2403
2403
|
h.$refs.multipleSelect.blur(), e.confirmAction && a("confirm");
|
|
2404
2404
|
}, D = (i) => {
|
|
2405
|
-
const
|
|
2405
|
+
const w = i.map((_) => {
|
|
2406
2406
|
const { data: B } = m.value.filter1((T) => T[e.value] === _);
|
|
2407
2407
|
return B ? B.name : `Unknown Name ${_}`;
|
|
2408
2408
|
});
|
|
2409
|
-
a("update:modelValue", o.multiple), a("update:name",
|
|
2410
|
-
},
|
|
2409
|
+
a("update:modelValue", o.multiple), a("update:name", w), a("change", i);
|
|
2410
|
+
}, $ = () => {
|
|
2411
2411
|
a("update:modelValue", o.single), a("update:name", u.value.name), a("change", o.single);
|
|
2412
2412
|
}, f = () => {
|
|
2413
2413
|
o.multiple = m.value.filter((i) => {
|
|
@@ -2421,14 +2421,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2421
2421
|
const d = g(() => {
|
|
2422
2422
|
var _, B;
|
|
2423
2423
|
let i = !1;
|
|
2424
|
-
const
|
|
2425
|
-
return e.multiple &&
|
|
2424
|
+
const w = window.$getType(e.campaign);
|
|
2425
|
+
return e.multiple && w === "Array" ? i = e.special ? ((_ = e.campaign) == null ? void 0 : _.length) !== 1 : !((B = e.campaign) != null && B.length) : i = !e.campaign, i;
|
|
2426
2426
|
});
|
|
2427
2427
|
return X(
|
|
2428
2428
|
() => e.campaign,
|
|
2429
|
-
(i,
|
|
2429
|
+
(i, w) => {
|
|
2430
2430
|
const _ = window.$getType(i);
|
|
2431
|
-
e.multiple ? (_ === "Array" && i.length || _ === "Number" && i) && y() : i && i !==
|
|
2431
|
+
e.multiple ? (_ === "Array" && i.length || _ === "Number" && i) && y() : i && i !== w && y();
|
|
2432
2432
|
},
|
|
2433
2433
|
{
|
|
2434
2434
|
immediate: !0
|
|
@@ -2443,7 +2443,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2443
2443
|
}
|
|
2444
2444
|
), x({
|
|
2445
2445
|
reload: r
|
|
2446
|
-
}), (i,
|
|
2446
|
+
}), (i, w) => {
|
|
2447
2447
|
const _ = N("IconLoading"), B = N("el-button"), T = N("el-tag"), l = N("StatusItem"), n = N("MultipleSelect"), C = N("el-option"), R = N("el-select");
|
|
2448
2448
|
return c(), A("div", Ro, [
|
|
2449
2449
|
t(o).loading ? (c(), E(_, { key: 0 })) : Y("", !0),
|
|
@@ -2451,7 +2451,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
ref: "multipleSelect",
|
|
2453
2453
|
modelValue: t(o).multiple,
|
|
2454
|
-
"onUpdate:modelValue":
|
|
2454
|
+
"onUpdate:modelValue": w[0] || (w[0] = (F) => t(o).multiple = F),
|
|
2455
2455
|
options: t(m),
|
|
2456
2456
|
placeholder: t(k),
|
|
2457
2457
|
label: i.$l("name"),
|
|
@@ -2516,9 +2516,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2516
2516
|
p("div", Ho, [
|
|
2517
2517
|
z(B, {
|
|
2518
2518
|
circle: "",
|
|
2519
|
-
onClick:
|
|
2519
|
+
onClick: w[1] || (w[1] = (F) => i.$copy(t(o).single, "ID"))
|
|
2520
2520
|
}, {
|
|
2521
|
-
icon: b(() => [
|
|
2521
|
+
icon: b(() => [...w[3] || (w[3] = [
|
|
2522
2522
|
p("i", { class: "imicon im-copy" }, null, -1)
|
|
2523
2523
|
])]),
|
|
2524
2524
|
_: 1
|
|
@@ -2526,14 +2526,14 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2526
2526
|
]),
|
|
2527
2527
|
z(R, Z({
|
|
2528
2528
|
modelValue: t(o).single,
|
|
2529
|
-
"onUpdate:modelValue":
|
|
2529
|
+
"onUpdate:modelValue": w[2] || (w[2] = (F) => t(o).single = F),
|
|
2530
2530
|
placeholder: t(k),
|
|
2531
2531
|
clearable: "",
|
|
2532
2532
|
filterable: ""
|
|
2533
2533
|
}, i.$attrs, {
|
|
2534
2534
|
disabled: t(d),
|
|
2535
2535
|
class: "inputGroupRight",
|
|
2536
|
-
onChange:
|
|
2536
|
+
onChange: $
|
|
2537
2537
|
}), ae({
|
|
2538
2538
|
default: b(() => [
|
|
2539
2539
|
(c(!0), A(ie, null, de(t(o).options, (F, J) => (c(), E(C, {
|
|
@@ -2622,7 +2622,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2622
2622
|
a("update:modelValue", f);
|
|
2623
2623
|
const { data: r } = h.appOptions.filter1((k) => k.id === e.single);
|
|
2624
2624
|
r && (a("update:name", r.name), a("update:icon", r.icon), a("update:orgs", r.orgs)), a("change", f);
|
|
2625
|
-
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")),
|
|
2625
|
+
}, O = g(() => h.appOptions), D = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), $ = g(() => O.value.filter1((r) => r.id === e.single).data);
|
|
2626
2626
|
return X(
|
|
2627
2627
|
() => s.modelValue,
|
|
2628
2628
|
(f) => {
|
|
@@ -2673,11 +2673,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2673
2673
|
]),
|
|
2674
2674
|
_: 2
|
|
2675
2675
|
}, [
|
|
2676
|
-
t(
|
|
2676
|
+
t($) ? {
|
|
2677
2677
|
name: "prefix",
|
|
2678
2678
|
fn: b(() => [
|
|
2679
2679
|
z(u, {
|
|
2680
|
-
src: t(
|
|
2680
|
+
src: t($).icon,
|
|
2681
2681
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2682
2682
|
}, null, 8, ["src"])
|
|
2683
2683
|
]),
|
|
@@ -2774,7 +2774,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2774
2774
|
return R ? R.name : `Unknown Name ${C}`;
|
|
2775
2775
|
});
|
|
2776
2776
|
y("update:name", n), y("update:ad-type", Object.keys(l));
|
|
2777
|
-
},
|
|
2777
|
+
}, $ = (T) => {
|
|
2778
2778
|
var l, n;
|
|
2779
2779
|
y("update:modelValue", T), y("update:adplacement", (l = S.value) == null ? void 0 : l.adPlacement), y("update:name", (n = S.value) == null ? void 0 : n.name), y("change", T);
|
|
2780
2780
|
}, f = (T) => {
|
|
@@ -2789,8 +2789,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2789
2789
|
o.filterTxt = T;
|
|
2790
2790
|
}, u = () => {
|
|
2791
2791
|
V();
|
|
2792
|
-
}, m = g(() => window.$l("Campaign")), S = g(() => o.single ? o.options.filter1((T) => T[e.value] === o.single).data : ""), d = g(() => o.filterTxt ? o.options.map((T) => (T.name.includes(o.filterTxt) && e.type.includes(T.adPlacement) ? T.hide = !1 : T.hide = !0, T)) : o.options.map((l) => (e.type.includes(l.adPlacement) ? l.hide = !1 : l.hide = !0, l))), i = g(() => d.value.filter((T) => T.hide === !1).length),
|
|
2793
|
-
g(() => `${
|
|
2792
|
+
}, m = g(() => window.$l("Campaign")), S = g(() => o.single ? o.options.filter1((T) => T[e.value] === o.single).data : ""), d = g(() => o.filterTxt ? o.options.map((T) => (T.name.includes(o.filterTxt) && e.type.includes(T.adPlacement) ? T.hide = !1 : T.hide = !0, T)) : o.options.map((l) => (e.type.includes(l.adPlacement) ? l.hide = !1 : l.hide = !0, l))), i = g(() => d.value.filter((T) => T.hide === !1).length), w = g(() => window.$getType(e.app) === "Array" ? e.app.join(",") : e.app), _ = g(() => window.$getType(e.org) === "Array" ? e.org.join(",") : e.org);
|
|
2793
|
+
g(() => `${w.value} ${_.value}`), g(() => e.app && e.org);
|
|
2794
2794
|
const B = g(() => !e.org);
|
|
2795
2795
|
return X(
|
|
2796
2796
|
() => e.org,
|
|
@@ -2910,7 +2910,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2910
2910
|
disabled: t(B)
|
|
2911
2911
|
}, T.$attrs, {
|
|
2912
2912
|
class: "inputGroupRight",
|
|
2913
|
-
onChange:
|
|
2913
|
+
onChange: $
|
|
2914
2914
|
}), ae({
|
|
2915
2915
|
default: b(() => [
|
|
2916
2916
|
(c(!0), A(ie, null, de(t(d), (U, ce) => (c(), E(te, {
|
|
@@ -2952,7 +2952,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
2952
2952
|
}
|
|
2953
2953
|
}), gl = { class: "SuperAsaOrg relative" }, yl = { class: "inputGroup" }, hl = { class: "inputGroupLeft noShrink" }, _l = { class: "flexMode vc g4" }, bl = { class: "txt-dark5" }, vl = P({
|
|
2954
2954
|
name: "SuperAsaOrg"
|
|
2955
|
-
}),
|
|
2955
|
+
}), $l = /* @__PURE__ */ Object.assign(vl, {
|
|
2956
2956
|
props: {
|
|
2957
2957
|
app: {
|
|
2958
2958
|
type: Number,
|
|
@@ -3011,7 +3011,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3011
3011
|
});
|
|
3012
3012
|
}, D = () => {
|
|
3013
3013
|
e.single = "", a("update:modelValue", ""), a("update:name", ""), a("update:currency", ""), a("update:timezone", ""), a("update:readonly", !1);
|
|
3014
|
-
},
|
|
3014
|
+
}, $ = g(() => window.$l("Campaign Group")), f = g(() => {
|
|
3015
3015
|
var u;
|
|
3016
3016
|
return s.app ? ((u = h.appOptions.filter1((m) => m.id === s.app).data) == null ? void 0 : u.orgs) || [] : [];
|
|
3017
3017
|
}), r = g(() => f.value.filter1((u) => u.id === e.single).data), k = g(() => !s.app);
|
|
@@ -3024,7 +3024,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3024
3024
|
immediate: !0
|
|
3025
3025
|
}
|
|
3026
3026
|
), (u, m) => {
|
|
3027
|
-
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"),
|
|
3027
|
+
const S = N("IconLoading"), d = N("el-button"), i = N("el-option"), w = N("el-select");
|
|
3028
3028
|
return c(), A("div", gl, [
|
|
3029
3029
|
t(e).loading ? (c(), E(S, { key: 0 })) : Y("", !0),
|
|
3030
3030
|
p("div", yl, [
|
|
@@ -3039,10 +3039,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3039
3039
|
_: 1
|
|
3040
3040
|
})
|
|
3041
3041
|
]),
|
|
3042
|
-
z(
|
|
3042
|
+
z(w, Z({
|
|
3043
3043
|
modelValue: t(e).single,
|
|
3044
3044
|
"onUpdate:modelValue": m[1] || (m[1] = (_) => t(e).single = _),
|
|
3045
|
-
placeholder: t(
|
|
3045
|
+
placeholder: t($),
|
|
3046
3046
|
disabled: t(k),
|
|
3047
3047
|
filterable: ""
|
|
3048
3048
|
}, u.$attrs, {
|
|
@@ -3074,9 +3074,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3074
3074
|
]);
|
|
3075
3075
|
};
|
|
3076
3076
|
}
|
|
3077
|
-
}),
|
|
3077
|
+
}), wl = P({
|
|
3078
3078
|
name: "SuperCountry"
|
|
3079
|
-
}), Sl = /* @__PURE__ */ Object.assign(
|
|
3079
|
+
}), Sl = /* @__PURE__ */ Object.assign(wl, {
|
|
3080
3080
|
props: {
|
|
3081
3081
|
type: {
|
|
3082
3082
|
type: String,
|
|
@@ -3186,10 +3186,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3186
3186
|
return;
|
|
3187
3187
|
}
|
|
3188
3188
|
e.loading = !0;
|
|
3189
|
-
const { code: D, data:
|
|
3189
|
+
const { code: D, data: $ } = await window.$post({
|
|
3190
3190
|
url: window.$api.asa.orgOptions
|
|
3191
3191
|
});
|
|
3192
|
-
e.loading = !1, D === 200 && (e.orgOptions =
|
|
3192
|
+
e.loading = !1, D === 200 && (e.orgOptions = $.map((f) => (f.label = `${f.orgName} (${f.orgId})`, f)), h.saveData("orgOptions", e.orgOptions), fe(() => {
|
|
3193
3193
|
const f = e.orgOptions.filter1(
|
|
3194
3194
|
(r) => r.orgId === e.v
|
|
3195
3195
|
).data;
|
|
@@ -3197,8 +3197,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3197
3197
|
}), a("success", e.orgOptions));
|
|
3198
3198
|
}, V = (D) => {
|
|
3199
3199
|
a("update:modelValue", D);
|
|
3200
|
-
const
|
|
3201
|
-
a("update:currency",
|
|
3200
|
+
const $ = e.orgOptions.filter1((f) => f.orgId === D).data;
|
|
3201
|
+
a("update:currency", $ == null ? void 0 : $.currency), a("update:name", $ == null ? void 0 : $.orgName), a("update:timezone", $ == null ? void 0 : $.timezone), a("update:paymentModel", $ == null ? void 0 : $.paymentModel), a("change", D);
|
|
3202
3202
|
}, O = g(() => {
|
|
3203
3203
|
if (s.permission === "all")
|
|
3204
3204
|
return e.orgOptions;
|
|
@@ -3211,22 +3211,22 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3211
3211
|
() => s.modelValue,
|
|
3212
3212
|
(D) => {
|
|
3213
3213
|
D ? D !== e.v && (e.v = D, fe(() => {
|
|
3214
|
-
const
|
|
3214
|
+
const $ = e.orgOptions.filter1(
|
|
3215
3215
|
(f) => f.orgId === e.v
|
|
3216
3216
|
).data;
|
|
3217
|
-
a("update:paymentModel",
|
|
3217
|
+
a("update:paymentModel", $ == null ? void 0 : $.paymentModel);
|
|
3218
3218
|
})) : e.v = "";
|
|
3219
3219
|
},
|
|
3220
3220
|
{
|
|
3221
3221
|
immediate: !0
|
|
3222
3222
|
}
|
|
3223
|
-
), (D,
|
|
3223
|
+
), (D, $) => {
|
|
3224
3224
|
const f = N("IconLoading"), r = N("el-option"), k = N("el-select");
|
|
3225
3225
|
return c(), A("div", Ol, [
|
|
3226
3226
|
t(e).loading ? (c(), E(f, { key: 0 })) : Y("", !0),
|
|
3227
3227
|
z(k, {
|
|
3228
3228
|
modelValue: t(e).v,
|
|
3229
|
-
"onUpdate:modelValue":
|
|
3229
|
+
"onUpdate:modelValue": $[0] || ($[0] = (u) => t(e).v = u),
|
|
3230
3230
|
filterable: "",
|
|
3231
3231
|
"collapse-tags": "",
|
|
3232
3232
|
placeholder: " ",
|
|
@@ -3336,7 +3336,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3336
3336
|
});
|
|
3337
3337
|
const V = ge("statusMap");
|
|
3338
3338
|
return (O, D) => {
|
|
3339
|
-
const
|
|
3339
|
+
const $ = N("StatusItem"), f = N("el-option"), r = N("el-select");
|
|
3340
3340
|
return c(), A("div", Il, [
|
|
3341
3341
|
z(r, Z({
|
|
3342
3342
|
modelValue: t(s).v,
|
|
@@ -3354,7 +3354,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3354
3354
|
value: k
|
|
3355
3355
|
}, {
|
|
3356
3356
|
default: b(() => [
|
|
3357
|
-
z(
|
|
3357
|
+
z($, {
|
|
3358
3358
|
status: k,
|
|
3359
3359
|
lang: t(o)
|
|
3360
3360
|
}, null, 8, ["status", "lang"])
|
|
@@ -3367,7 +3367,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3367
3367
|
t(s).v ? {
|
|
3368
3368
|
name: "prefix",
|
|
3369
3369
|
fn: b(() => [
|
|
3370
|
-
t(h).prefix ? W(O.$slots, "prefix", { key: 0 }) : (c(), E(
|
|
3370
|
+
t(h).prefix ? W(O.$slots, "prefix", { key: 0 }) : (c(), E($, {
|
|
3371
3371
|
key: 1,
|
|
3372
3372
|
status: t(s).v,
|
|
3373
3373
|
nolabel: "",
|
|
@@ -3387,10 +3387,10 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3387
3387
|
Icon: lt,
|
|
3388
3388
|
Image: it,
|
|
3389
3389
|
Input: ct,
|
|
3390
|
-
MultipleSelect:
|
|
3390
|
+
MultipleSelect: wt,
|
|
3391
3391
|
Nodata: xt,
|
|
3392
3392
|
Page: jt,
|
|
3393
|
-
Table:
|
|
3393
|
+
Table: wo,
|
|
3394
3394
|
TableFooter: Ie,
|
|
3395
3395
|
Textarea: Vo,
|
|
3396
3396
|
AiApp: No,
|
|
@@ -3398,7 +3398,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3398
3398
|
AsaAdGroup: Wo,
|
|
3399
3399
|
AsaApp: tl,
|
|
3400
3400
|
AsaCampaign: fl,
|
|
3401
|
-
AsaOrg:
|
|
3401
|
+
AsaOrg: $l,
|
|
3402
3402
|
Country: Sl,
|
|
3403
3403
|
CountryItem: Vl,
|
|
3404
3404
|
Org: Al,
|
|
@@ -3463,7 +3463,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3463
3463
|
value: "right"
|
|
3464
3464
|
}
|
|
3465
3465
|
];
|
|
3466
|
-
return (D,
|
|
3466
|
+
return (D, $) => {
|
|
3467
3467
|
const f = N("el-switch");
|
|
3468
3468
|
return c(), A("div", {
|
|
3469
3469
|
class: K(["ColumnConfigDragItem", [!t(V) && "drag", s.type]])
|
|
@@ -3475,15 +3475,15 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3475
3475
|
]])
|
|
3476
3476
|
}, [
|
|
3477
3477
|
p("div", {
|
|
3478
|
-
class: "arrowLeft ml4 mr8 circle24 hover-txt-primary",
|
|
3478
|
+
class: "arrowLeft ml4 mr8 circle24 hover-txt-primary point",
|
|
3479
3479
|
onClick: he(h, ["stop"])
|
|
3480
|
-
}, [
|
|
3480
|
+
}, [...$[1] || ($[1] = [
|
|
3481
3481
|
p("i", { class: "imicon im-arrow-left" }, null, -1)
|
|
3482
3482
|
])]),
|
|
3483
3483
|
p("div", jl, [
|
|
3484
3484
|
z(f, {
|
|
3485
3485
|
modelValue: t(e).form.visible,
|
|
3486
|
-
"onUpdate:modelValue":
|
|
3486
|
+
"onUpdate:modelValue": $[0] || ($[0] = (r) => t(e).form.visible = r),
|
|
3487
3487
|
disabled: t(e).form.nomove,
|
|
3488
3488
|
size: "default",
|
|
3489
3489
|
onChange: y
|
|
@@ -3492,16 +3492,16 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3492
3492
|
]),
|
|
3493
3493
|
p("span", El, I(t(e).form.tips), 1),
|
|
3494
3494
|
p("div", {
|
|
3495
|
-
class: "arrowRight mr4 ml8 circle24 hover-txt-primary",
|
|
3495
|
+
class: "arrowRight mr4 ml8 circle24 hover-txt-primary point",
|
|
3496
3496
|
onClick: he(a, ["stop"])
|
|
3497
|
-
}, [
|
|
3497
|
+
}, [...$[2] || ($[2] = [
|
|
3498
3498
|
p("i", { class: "imicon im-arrow-right" }, null, -1)
|
|
3499
3499
|
])])
|
|
3500
3500
|
], 2)
|
|
3501
3501
|
], 2);
|
|
3502
3502
|
};
|
|
3503
3503
|
}
|
|
3504
|
-
}), Ce = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-
|
|
3504
|
+
}), Ce = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-b1d63462"]]), Pl = { class: "flexMode vs p16 g16" }, Fl = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, Ul = { class: "fs12 txt-primary" }, Gl = { class: "fs12 txt-dark5" }, Hl = {
|
|
3505
3505
|
key: 0,
|
|
3506
3506
|
class: "fs12 txt-dark3"
|
|
3507
3507
|
}, Jl = {
|
|
@@ -3543,39 +3543,39 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3543
3543
|
const o = x, h = () => {
|
|
3544
3544
|
a();
|
|
3545
3545
|
}, a = () => {
|
|
3546
|
-
let
|
|
3547
|
-
if (
|
|
3548
|
-
|
|
3546
|
+
let w = localStorage.getItem(k.value);
|
|
3547
|
+
if (w) {
|
|
3548
|
+
w = JSON.parse(w);
|
|
3549
3549
|
let _ = 0;
|
|
3550
|
-
|
|
3550
|
+
w.forEach((B) => {
|
|
3551
3551
|
B.label && !B.nomove && (_++, B.fixed ? e[B.fixed].push(B) : e.center.push(B));
|
|
3552
3552
|
}), e.total = _;
|
|
3553
3553
|
}
|
|
3554
|
-
}, y = ({ it:
|
|
3555
|
-
e.left.unshift(
|
|
3556
|
-
}, V = ({ it:
|
|
3557
|
-
e.right.unshift(
|
|
3558
|
-
}, O = ({ it:
|
|
3559
|
-
e.center.unshift(
|
|
3560
|
-
}, D = ({ it:
|
|
3561
|
-
e.center.unshift(
|
|
3562
|
-
},
|
|
3563
|
-
e[B][_] =
|
|
3554
|
+
}, y = ({ it: w, index: _, type: B }) => {
|
|
3555
|
+
e.left.unshift(w), e.center.splice(_, 1);
|
|
3556
|
+
}, V = ({ it: w, index: _, type: B }) => {
|
|
3557
|
+
e.right.unshift(w), e.center.splice(_, 1);
|
|
3558
|
+
}, O = ({ it: w, index: _, type: B }) => {
|
|
3559
|
+
e.center.unshift(w), e.left.splice(_, 1);
|
|
3560
|
+
}, D = ({ it: w, index: _, type: B }) => {
|
|
3561
|
+
e.center.unshift(w), e.right.splice(_, 1);
|
|
3562
|
+
}, $ = ({ it: w, index: _, type: B }) => {
|
|
3563
|
+
e[B][_] = w;
|
|
3564
3564
|
}, f = async () => {
|
|
3565
3565
|
e.loading = !0, localStorage.removeItem(k.value), window.$promise(() => {
|
|
3566
3566
|
e.loading = !1, o("submit", "column"), o("close");
|
|
3567
3567
|
});
|
|
3568
3568
|
}, r = async () => {
|
|
3569
3569
|
e.loading = !0, await window.$promise(() => {
|
|
3570
|
-
const { left:
|
|
3571
|
-
|
|
3570
|
+
const { left: w, center: _, right: B } = e;
|
|
3571
|
+
w.forEach((l, n) => {
|
|
3572
3572
|
l.fixed = "left", l.sort = n;
|
|
3573
3573
|
}), _.forEach((l, n) => {
|
|
3574
3574
|
l.fixed = !1, l.sort = n;
|
|
3575
3575
|
}), B.forEach((l, n) => {
|
|
3576
3576
|
l.fixed = "right", l.sort = n;
|
|
3577
3577
|
});
|
|
3578
|
-
const T = [
|
|
3578
|
+
const T = [...w, ..._, ...B].sort(
|
|
3579
3579
|
(l, n) => l.sort - n.sort
|
|
3580
3580
|
);
|
|
3581
3581
|
localStorage.setItem(k.value, JSON.stringify(T));
|
|
@@ -3583,31 +3583,31 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3583
3583
|
}, k = g(() => `${s.params.tableName}_Column`), u = g(() => ({
|
|
3584
3584
|
height: window.global.config.options.drawerHeight - 80 + "px"
|
|
3585
3585
|
})), m = g(() => {
|
|
3586
|
-
let
|
|
3586
|
+
let w = 0, _ = 0;
|
|
3587
3587
|
return e.left.forEach((B) => {
|
|
3588
|
-
B.visible ?
|
|
3588
|
+
B.visible ? w++ : _++;
|
|
3589
3589
|
}), {
|
|
3590
|
-
visible:
|
|
3590
|
+
visible: w,
|
|
3591
3591
|
hide: _
|
|
3592
3592
|
};
|
|
3593
3593
|
}), S = g(() => {
|
|
3594
|
-
let
|
|
3594
|
+
let w = 0, _ = 0;
|
|
3595
3595
|
return e.center.forEach((B) => {
|
|
3596
|
-
B.visible ?
|
|
3596
|
+
B.visible ? w++ : _++;
|
|
3597
3597
|
}), {
|
|
3598
|
-
visible:
|
|
3598
|
+
visible: w,
|
|
3599
3599
|
hide: _
|
|
3600
3600
|
};
|
|
3601
3601
|
}), d = g(() => {
|
|
3602
|
-
let
|
|
3602
|
+
let w = 0, _ = 0;
|
|
3603
3603
|
return e.right.forEach((B) => {
|
|
3604
|
-
B.visible ?
|
|
3604
|
+
B.visible ? w++ : _++;
|
|
3605
3605
|
}), {
|
|
3606
|
-
visible:
|
|
3606
|
+
visible: w,
|
|
3607
3607
|
hide: _
|
|
3608
3608
|
};
|
|
3609
3609
|
}), i = g(() => window.$getLang());
|
|
3610
|
-
return (
|
|
3610
|
+
return (w, _) => {
|
|
3611
3611
|
const B = N("Card"), T = N("el-button"), l = N("DrawerArea");
|
|
3612
3612
|
return c(), E(l, {
|
|
3613
3613
|
class: "TableHeaderColumnConfig",
|
|
@@ -3624,7 +3624,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3624
3624
|
p("i", { class: "imicon im-reset" }, null, -1)
|
|
3625
3625
|
])]),
|
|
3626
3626
|
default: b(() => [
|
|
3627
|
-
ne(" " + I(
|
|
3627
|
+
ne(" " + I(w.$l("Reset")), 1)
|
|
3628
3628
|
]),
|
|
3629
3629
|
_: 1
|
|
3630
3630
|
})
|
|
@@ -3633,10 +3633,11 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3633
3633
|
p("div", Pl, [
|
|
3634
3634
|
z(B, {
|
|
3635
3635
|
title: "Fixed on Left",
|
|
3636
|
-
class: "flex1"
|
|
3636
|
+
class: "flex1",
|
|
3637
|
+
"body-class": "border"
|
|
3637
3638
|
}, ae({
|
|
3638
3639
|
default: b(() => [
|
|
3639
|
-
t(e).left.length === 0 ? (c(), A("div", Jl, I(
|
|
3640
|
+
t(e).left.length === 0 ? (c(), A("div", Jl, I(w.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3640
3641
|
z(t(Se), {
|
|
3641
3642
|
list: t(e).left,
|
|
3642
3643
|
group: "columnFilter",
|
|
@@ -3652,7 +3653,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3652
3653
|
lang: t(i),
|
|
3653
3654
|
type: "left",
|
|
3654
3655
|
onAddRight: O,
|
|
3655
|
-
onChange:
|
|
3656
|
+
onChange: $
|
|
3656
3657
|
}, null, 8, ["it", "index", "lang"])
|
|
3657
3658
|
]),
|
|
3658
3659
|
_: 1
|
|
@@ -3677,7 +3678,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3677
3678
|
class: "flex1"
|
|
3678
3679
|
}, ae({
|
|
3679
3680
|
default: b(() => [
|
|
3680
|
-
t(e).center.length === 0 ? (c(), A("div", Ql, I(
|
|
3681
|
+
t(e).center.length === 0 ? (c(), A("div", Ql, I(w.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3681
3682
|
z(t(Se), {
|
|
3682
3683
|
list: t(e).center,
|
|
3683
3684
|
group: "columnFilter",
|
|
@@ -3693,7 +3694,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3693
3694
|
onAddLeft: y,
|
|
3694
3695
|
lang: t(i),
|
|
3695
3696
|
onAddRight: V,
|
|
3696
|
-
onChange:
|
|
3697
|
+
onChange: $
|
|
3697
3698
|
}, null, 8, ["it", "index", "lang"])
|
|
3698
3699
|
]),
|
|
3699
3700
|
_: 1
|
|
@@ -3718,7 +3719,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3718
3719
|
class: "flex1"
|
|
3719
3720
|
}, ae({
|
|
3720
3721
|
default: b(() => [
|
|
3721
|
-
t(e).right.length === 0 ? (c(), A("div", la, I(
|
|
3722
|
+
t(e).right.length === 0 ? (c(), A("div", la, I(w.$l("No Column Fixed on Right")), 1)) : Y("", !0),
|
|
3722
3723
|
z(t(Se), {
|
|
3723
3724
|
list: t(e).right,
|
|
3724
3725
|
group: "columnFilter",
|
|
@@ -3734,7 +3735,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3734
3735
|
type: "right",
|
|
3735
3736
|
lang: t(i),
|
|
3736
3737
|
onAddLeft: D,
|
|
3737
|
-
onChange:
|
|
3738
|
+
onChange: $
|
|
3738
3739
|
}, null, 8, ["it", "index", "lang"])
|
|
3739
3740
|
]),
|
|
3740
3741
|
_: 1
|
|
@@ -3760,7 +3761,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3760
3761
|
}, 8, ["loading"]);
|
|
3761
3762
|
};
|
|
3762
3763
|
}
|
|
3763
|
-
}), sa = /* @__PURE__ */ ue(na, [["__scopeId", "data-v-
|
|
3764
|
+
}), sa = /* @__PURE__ */ ue(na, [["__scopeId", "data-v-dcb99857"]]), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3764
3765
|
__proto__: null,
|
|
3765
3766
|
default: sa
|
|
3766
3767
|
}, Symbol.toStringTag, { value: "Module" })), ia = { class: "p16 wp100 sticky bg-white9 border-b backdrop z2" }, da = { class: "p8" }, ua = { class: "txt-dark5" }, ca = { class: "pl8 txt-dark9" }, pa = {
|
|
@@ -3772,7 +3773,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3772
3773
|
}, fa = { class: "txt-dark5" }, ga = { class: "pl8 pr16 txt-dark9" }, ya = {
|
|
3773
3774
|
key: 2,
|
|
3774
3775
|
class: "flexMode vc p8"
|
|
3775
|
-
}, ha = { class: "flexMode hr vc g16" }, _a = { class: "pr8" }, ba = { class: "relative wp100 pb8 border-b z1" }, va = { class: "p16 txt-dark9" },
|
|
3776
|
+
}, ha = { class: "flexMode hr vc g16" }, _a = { class: "pr8" }, ba = { class: "relative wp100 pb8 border-b z1" }, va = { class: "p16 txt-dark9" }, $a = { class: "pr8" }, wa = { class: "inputGroup flexMode vc flexGrow" }, Sa = { class: "inputGroupRight" }, Ca = P({
|
|
3776
3777
|
name: "TableDownload"
|
|
3777
3778
|
}), ka = /* @__PURE__ */ Object.assign(Ca, {
|
|
3778
3779
|
props: {
|
|
@@ -3810,9 +3811,9 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3810
3811
|
l.forEach((R) => {
|
|
3811
3812
|
R.prop && (n.push(R), R.visible && C.push(R.prop));
|
|
3812
3813
|
}), e.columns = n, e.items = C;
|
|
3813
|
-
},
|
|
3814
|
+
}, $ = () => {
|
|
3814
3815
|
}, f = (l = ",", n) => {
|
|
3815
|
-
const C = e.items.map((J) =>
|
|
3816
|
+
const C = e.items.map((J) => w.value[J].label);
|
|
3816
3817
|
let R = [];
|
|
3817
3818
|
e.onlySelection ? R = B.value : R = _.value;
|
|
3818
3819
|
const F = R.map((J) => {
|
|
@@ -3851,8 +3852,8 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3851
3852
|
type: "csv",
|
|
3852
3853
|
name: n,
|
|
3853
3854
|
data: l
|
|
3854
|
-
})
|
|
3855
|
-
}, u = g(() => window.$getLang()), m = g(() => s.params.tableName), S = g(() => m.value ? `${window.$l(m.value)}_${window.$m().format("YYYYMMDD_hhmmss")}` : ""), d = g(() => s.params.tableName + "_Column"), i = g(() => `${h.name}_${window.$m().format("YYYYMMDD_hhmmss")}`),
|
|
3855
|
+
});
|
|
3856
|
+
}, 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")}`), w = g(() => {
|
|
3856
3857
|
const l = {};
|
|
3857
3858
|
return e.columns.forEach((n) => {
|
|
3858
3859
|
l[n.prop] = n;
|
|
@@ -3871,7 +3872,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3871
3872
|
const C = N("el-checkbox"), R = N("el-button"), F = N("Alert"), J = N("el-switch"), te = N("el-checkbox-group"), Q = N("el-input"), U = N("DrawerArea"), ce = De("loading");
|
|
3872
3873
|
return c(), E(U, { onSubmit: k }, {
|
|
3873
3874
|
footer: b(() => [
|
|
3874
|
-
p("div",
|
|
3875
|
+
p("div", wa, [
|
|
3875
3876
|
z(Q, {
|
|
3876
3877
|
modelValue: t(e).filename,
|
|
3877
3878
|
"onUpdate:modelValue": n[6] || (n[6] = (q) => t(e).filename = q),
|
|
@@ -3977,7 +3978,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3977
3978
|
class: "wp100 p0-16 h36-i hover-bg-gray1"
|
|
3978
3979
|
}, {
|
|
3979
3980
|
default: b(() => [
|
|
3980
|
-
p("span",
|
|
3981
|
+
p("span", $a, I(q.label), 1),
|
|
3981
3982
|
q.prop === "country" ? (c(), E(J, {
|
|
3982
3983
|
key: 0,
|
|
3983
3984
|
modelValue: t(e).useCountryName,
|
|
@@ -3985,7 +3986,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
3985
3986
|
"inline-prompt": "",
|
|
3986
3987
|
"active-text": " Use name ",
|
|
3987
3988
|
"inactive-text": " Use Alpha-2 code ",
|
|
3988
|
-
onChange:
|
|
3989
|
+
onChange: $
|
|
3989
3990
|
}, null, 8, ["modelValue"])) : Y("", !0)
|
|
3990
3991
|
]),
|
|
3991
3992
|
_: 2
|
|
@@ -4058,7 +4059,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4058
4059
|
}), y("update:modelValue", r), y("update:name", k.join(", ")), y("to-change", r);
|
|
4059
4060
|
}, D = () => {
|
|
4060
4061
|
y("update:modelValue", a.arr), y("confirm", a.arr), e.$refs.multiple.blur();
|
|
4061
|
-
},
|
|
4062
|
+
}, $ = g(() => h.countryOptions), f = g(() => window.$l("Countries or Regions"));
|
|
4062
4063
|
return X(
|
|
4063
4064
|
() => s.modelValue,
|
|
4064
4065
|
(r, k) => {
|
|
@@ -4068,15 +4069,15 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4068
4069
|
immediate: !0
|
|
4069
4070
|
}
|
|
4070
4071
|
), (r, k) => {
|
|
4071
|
-
const u = N("IconLoading"), m = N("CountryItem"), S = N("el-option"), d = N("el-select"), i = N("el-button"),
|
|
4072
|
+
const u = N("IconLoading"), m = N("CountryItem"), S = N("el-option"), d = N("el-select"), i = N("el-button"), w = N("MultipleSelect");
|
|
4072
4073
|
return c(), A("div", Va, [
|
|
4073
4074
|
t(a).loading ? (c(), E(u, { key: 0 })) : Y("", !0),
|
|
4074
|
-
s.multiple ? (c(), E(
|
|
4075
|
+
s.multiple ? (c(), E(w, Z({
|
|
4075
4076
|
key: 2,
|
|
4076
4077
|
ref: "multiple",
|
|
4077
4078
|
modelValue: t(a).arr,
|
|
4078
4079
|
"onUpdate:modelValue": k[1] || (k[1] = (_) => t(a).arr = _),
|
|
4079
|
-
options: t(
|
|
4080
|
+
options: t($),
|
|
4080
4081
|
placeholder: t(f)
|
|
4081
4082
|
}, r.$attrs, {
|
|
4082
4083
|
"multiple-limit": s.limit,
|
|
@@ -4123,7 +4124,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4123
4124
|
label: r.$l("All"),
|
|
4124
4125
|
value: s.allValue
|
|
4125
4126
|
}, null, 8, ["label", "value"])) : Y("", !0),
|
|
4126
|
-
(c(!0), A(ie, null, de(t(
|
|
4127
|
+
(c(!0), A(ie, null, de(t($), (_, B) => (c(), E(S, {
|
|
4127
4128
|
key: _.value,
|
|
4128
4129
|
label: r.$l(_.label),
|
|
4129
4130
|
value: _.value_lower
|
|
@@ -4189,23 +4190,23 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4189
4190
|
o.$refs.multiple.blur();
|
|
4190
4191
|
}, y = (D) => {
|
|
4191
4192
|
h("update:modelValue", D), h("change", D);
|
|
4192
|
-
}, V = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("Country or Region")), O = g(() => s.options.sort((D,
|
|
4193
|
+
}, V = g(() => s.placeholder ? window.$l(s.placeholder) : window.$l("Country or Region")), O = g(() => s.options.sort((D, $) => D.label.localeCompare($.label)));
|
|
4193
4194
|
return X(
|
|
4194
4195
|
() => s.modelValue,
|
|
4195
|
-
(D,
|
|
4196
|
-
JSON.stringify(D) !== JSON.stringify(
|
|
4196
|
+
(D, $) => {
|
|
4197
|
+
JSON.stringify(D) !== JSON.stringify($) && (s.multiple ? e.multiple = D : e.single = D);
|
|
4197
4198
|
},
|
|
4198
4199
|
{
|
|
4199
4200
|
immediate: !0
|
|
4200
4201
|
}
|
|
4201
|
-
), (D,
|
|
4202
|
+
), (D, $) => {
|
|
4202
4203
|
const f = N("CountryItem"), r = N("el-button"), k = N("MultipleSelect"), u = N("el-option"), m = N("el-select");
|
|
4203
4204
|
return c(), A("div", Ma, [
|
|
4204
4205
|
s.multiple ? (c(), E(k, Z({
|
|
4205
4206
|
key: 0,
|
|
4206
4207
|
ref: "multiple",
|
|
4207
4208
|
modelValue: t(e).multiple,
|
|
4208
|
-
"onUpdate:modelValue":
|
|
4209
|
+
"onUpdate:modelValue": $[0] || ($[0] = (S) => t(e).multiple = S),
|
|
4209
4210
|
placeholder: t(V)
|
|
4210
4211
|
}, D.$attrs, {
|
|
4211
4212
|
options: t(O),
|
|
@@ -4244,7 +4245,7 @@ ${k.value}` : `${k.value}`), m = g(() => r.value ? e.modelValue.join(e.sep) : e.
|
|
|
4244
4245
|
]), 1040, ["modelValue", "placeholder", "options"])) : (c(), E(m, Z({
|
|
4245
4246
|
key: 1,
|
|
4246
4247
|
modelValue: t(e).single,
|
|
4247
|
-
"onUpdate:modelValue":
|
|
4248
|
+
"onUpdate:modelValue": $[1] || ($[1] = (S) => t(e).single = S),
|
|
4248
4249
|
placeholder: t(V)
|
|
4249
4250
|
}, D.$attrs, { onChange: y }), ae({
|
|
4250
4251
|
default: b(() => [
|