magtool 1.5.25 → 1.5.26
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 +15 -15
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as F, getCurrentInstance as le, onMounted as re, reacti
|
|
|
2
2
|
import { _ as ie } from "./vendor.js";
|
|
3
3
|
import { dayjs as Ye } from "element-plus";
|
|
4
4
|
import { loadImage as Le, useSummary as Ee, download as Re } from "./composition.js";
|
|
5
|
-
import { useMap as
|
|
5
|
+
import { useMap as ge } from "asamap";
|
|
6
6
|
import Ce from "vuedraggable";
|
|
7
7
|
import { useRoute as Fe } from "vue-router";
|
|
8
8
|
const Pe = { class: "fw700" }, Ue = F({
|
|
@@ -1619,14 +1619,14 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1619
1619
|
...o.search
|
|
1620
1620
|
};
|
|
1621
1621
|
o.pageSize = te.pageSize, o.pageStart = te.pageStart, (X = e.groupInfo) != null && X.value && (te.groupBy = e.groupInfo.value), R && (te.remote = !0);
|
|
1622
|
-
const
|
|
1623
|
-
o.loading = !1,
|
|
1622
|
+
const ye = await e.loadData(te);
|
|
1623
|
+
o.loading = !1, ye ? (o.dt = ye, o.filter = JSON.parse(JSON.stringify(ye))) : (o.dt = {
|
|
1624
1624
|
total: 0,
|
|
1625
1625
|
list: []
|
|
1626
1626
|
}, o.filter = {
|
|
1627
1627
|
total: 0,
|
|
1628
1628
|
list: []
|
|
1629
|
-
}), ne.value ? k() : D("list-change",
|
|
1629
|
+
}), ne.value ? k() : D("list-change", ye.list || []);
|
|
1630
1630
|
}
|
|
1631
1631
|
c();
|
|
1632
1632
|
}, f = (j) => {
|
|
@@ -1644,17 +1644,17 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1644
1644
|
return o.filter.list.forEach((X) => {
|
|
1645
1645
|
let ee = !1;
|
|
1646
1646
|
j.forEach((te) => {
|
|
1647
|
-
const
|
|
1647
|
+
const ye = String(X[te]).toLowerCase();
|
|
1648
1648
|
let we = U[te];
|
|
1649
1649
|
if (window.$getType(we) === "Array")
|
|
1650
1650
|
try {
|
|
1651
1651
|
we.forEach((Se) => {
|
|
1652
|
-
if (Se &&
|
|
1652
|
+
if (Se && ye.includes(String(Se).toLowerCase()))
|
|
1653
1653
|
throw ee = !0, new Error();
|
|
1654
1654
|
});
|
|
1655
1655
|
} catch {
|
|
1656
1656
|
}
|
|
1657
|
-
else
|
|
1657
|
+
else ye.includes(we.toLowerCase()) && (ee = !0);
|
|
1658
1658
|
}), ee && R.push(X);
|
|
1659
1659
|
}), o.dt.list = R, o.filter.total = R.length, D("list-change", R), R;
|
|
1660
1660
|
}, s = () => {
|
|
@@ -2192,7 +2192,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2192
2192
|
C.saveData("accountTimezone", {
|
|
2193
2193
|
timezoneName: d == null ? void 0 : d.timezone,
|
|
2194
2194
|
tip: "Account",
|
|
2195
|
-
timezone: (s =
|
|
2195
|
+
timezone: (s = ge("common.timezone").filter1(
|
|
2196
2196
|
(y) => y.label === (d == null ? void 0 : d.timezone)
|
|
2197
2197
|
).data) == null ? void 0 : s.value
|
|
2198
2198
|
});
|
|
@@ -2335,7 +2335,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2335
2335
|
});
|
|
2336
2336
|
if (o.loading = !1, w === 200) {
|
|
2337
2337
|
let x;
|
|
2338
|
-
e.permission ? x = B.filter((a) => a.permission === e.permission) : x = B, o.options = x.map((a) => (a.sort =
|
|
2338
|
+
e.permission ? x = B.filter((a) => a.permission === e.permission) : x = B, o.options = x.map((a) => (a.sort = ge("statusMap")[a.status].sort, a.ca = `${a.campaignId}_${a.id}`, a.oca = `${a.orgId}_${a.valueCA}`, a)).sort((a, r) => a.sort - r.sort);
|
|
2339
2339
|
}
|
|
2340
2340
|
if (e.multiple && e.modelValue && e.modelValue.length > 0) {
|
|
2341
2341
|
const x = e.modelValue.map((a) => {
|
|
@@ -2948,7 +2948,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2948
2948
|
C.saveData("accountTimezone", {
|
|
2949
2949
|
timezoneName: d == null ? void 0 : d.timezone,
|
|
2950
2950
|
tip: "Account",
|
|
2951
|
-
timezone: (s =
|
|
2951
|
+
timezone: (s = ge("common.timezone").filter1(
|
|
2952
2952
|
(y) => y.label === (d == null ? void 0 : d.timezone)
|
|
2953
2953
|
).data) == null ? void 0 : s.value
|
|
2954
2954
|
});
|
|
@@ -3073,7 +3073,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3073
3073
|
G({});
|
|
3074
3074
|
const e = pe("store").common(), o = m(() => {
|
|
3075
3075
|
const O = V.name.toLowerCase();
|
|
3076
|
-
return e.countryObj[O] ||
|
|
3076
|
+
return e.countryObj[O] || ge("country.countryAllObj")[O] || {};
|
|
3077
3077
|
}), C = m(() => `fi-${o.value.value_lower}`);
|
|
3078
3078
|
m(() => window.$getLang());
|
|
3079
3079
|
const l = m(() => window.$l(o.value.label)), g = m(() => {
|
|
@@ -3083,7 +3083,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3083
3083
|
height: O + "px"
|
|
3084
3084
|
};
|
|
3085
3085
|
}), D = m(() => `radius${Number(V.radius) || 2}`);
|
|
3086
|
-
return
|
|
3086
|
+
return ge("country.countryAllObj"), (O, A) => (p(), M("div", {
|
|
3087
3087
|
class: "SuperCountryItem flexMode vc g4",
|
|
3088
3088
|
title: t(l)
|
|
3089
3089
|
}, [
|
|
@@ -3229,7 +3229,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3229
3229
|
setup(T, { emit: V }) {
|
|
3230
3230
|
const n = T, e = V, o = () => {
|
|
3231
3231
|
n.isButton && e("changeStatus", n.status, n.id1, n.id2, n.id3);
|
|
3232
|
-
}, C = m(() =>
|
|
3232
|
+
}, C = m(() => ge("statusMap")[n.status] || !1), l = m(() => window.$toUpperCamel(n.status)), g = m(() => D[n.size] || "fs12"), D = {
|
|
3233
3233
|
small: "fs12",
|
|
3234
3234
|
default: "fs16",
|
|
3235
3235
|
large: "fs24"
|
|
@@ -3277,7 +3277,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3277
3277
|
je(() => {
|
|
3278
3278
|
n.v = V.modelValue;
|
|
3279
3279
|
});
|
|
3280
|
-
const D =
|
|
3280
|
+
const D = ge("statusMap");
|
|
3281
3281
|
return (O, A) => {
|
|
3282
3282
|
const $ = N("StatusItem"), f = N("el-option"), i = N("el-select");
|
|
3283
3283
|
return p(), M("div", jl, [
|
|
@@ -3782,7 +3782,7 @@ ${k.value}` : `${k.value}`), s = m(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3782
3782
|
if (e.useCountryName) {
|
|
3783
3783
|
const ce = window.$getType(q[E]);
|
|
3784
3784
|
let J;
|
|
3785
|
-
ce === "Array" ? J = q[E] : J = q[E].split(","), J = J.map((_e) =>
|
|
3785
|
+
ce === "Array" ? J = q[E] : J = q[E].split(","), J = J.map((_e) => ge("country.asaObj")[_e.toLowerCase()][`label_${d.value}`]), ne.push(`"${J.join(",")}"`);
|
|
3786
3786
|
} else
|
|
3787
3787
|
ne.push(`"${q[E]}"`);
|
|
3788
3788
|
else if (["spendOrigin"].includes(E)) {
|