magtool 1.5.28 → 1.5.29
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 +1437 -1358
- package/dist/css/magtool.css +1 -1
- package/package.json +1 -1
package/dist/component.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, getCurrentInstance as ee, onMounted as re, reactive as G, createElementBlock as M, openBlock as c, normalizeStyle as me, unref as o, createCommentVNode as Y, createElementVNode as u, normalizeClass as K, renderSlot as W, toDisplayString as N, computed as h, watch as Z, resolveComponent as I, createVNode as z, inject as pe, onBeforeMount as Ae, markRaw as xe, nextTick as ge, mergeProps as Q, withCtx as $, resolveDirective as Ie, withDirectives as ze, createBlock as L, withKeys as Ve, createSlots as ae, watchPostEffect as Te, Fragment as ie, renderList as de, createTextVNode as le, defineAsyncComponent as ve, ref as be, withModifiers as he, resolveDynamicComponent as je, watchEffect as Be } from "vue";
|
|
2
2
|
import { _ as ue } 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
5
|
import { useMap as fe } from "asamap";
|
|
6
6
|
import Ce from "vuedraggable";
|
|
7
7
|
import { useRoute as Fe } from "vue-router";
|
|
8
|
-
const Pe = { class: "fw700" }, Ue =
|
|
8
|
+
const Pe = { class: "fw700" }, Ue = E({
|
|
9
9
|
name: "MvcCard"
|
|
10
10
|
}), Ge = /* @__PURE__ */ Object.assign(Ue, {
|
|
11
11
|
props: {
|
|
@@ -40,41 +40,41 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
40
40
|
color: {
|
|
41
41
|
type: String,
|
|
42
42
|
default: "",
|
|
43
|
-
validate: (
|
|
43
|
+
validate: (T) => ["primary", "green", "red", "purple", "orange", "blue"].indexOf(T) > -1
|
|
44
44
|
},
|
|
45
45
|
headerHide: {
|
|
46
46
|
type: Boolean,
|
|
47
47
|
default: !1
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const V =
|
|
52
|
-
|
|
50
|
+
setup(T) {
|
|
51
|
+
const V = T, { proxy: n } = ee(), e = () => {
|
|
52
|
+
t.toggle = !t.toggle;
|
|
53
53
|
};
|
|
54
54
|
re(() => {
|
|
55
|
-
|
|
55
|
+
t.toggle = V.headerHide;
|
|
56
56
|
});
|
|
57
|
-
const
|
|
57
|
+
const t = G({
|
|
58
58
|
toggle: !1
|
|
59
59
|
});
|
|
60
|
-
return (S, l) => (c(),
|
|
60
|
+
return (S, l) => (c(), M("div", {
|
|
61
61
|
class: "MvcCard",
|
|
62
|
-
style: me(t
|
|
62
|
+
style: me(o(t).cardStyle)
|
|
63
63
|
}, [
|
|
64
|
-
V.noheader ? Y("", !0) : (c(),
|
|
64
|
+
V.noheader ? Y("", !0) : (c(), M("div", {
|
|
65
65
|
key: 0,
|
|
66
66
|
ref: "header",
|
|
67
67
|
class: K(["cardHeader flexMode vc fs18 txt-dark9", V.headerClass])
|
|
68
68
|
}, [
|
|
69
69
|
u("i", {
|
|
70
|
-
class: K(["mr4 block imicon im-arrow-right fw700 fs14 transition3 hover", !t
|
|
70
|
+
class: K(["mr4 block imicon im-arrow-right fw700 fs14 transition3 hover", !o(t).toggle && "rotateZ90"]),
|
|
71
71
|
onClick: e
|
|
72
72
|
}, null, 2),
|
|
73
|
-
u("div", Pe,
|
|
73
|
+
u("div", Pe, N(S.$l(V.title)), 1),
|
|
74
74
|
W(S.$slots, "header", {}, void 0, !0)
|
|
75
75
|
], 2)),
|
|
76
76
|
u("div", {
|
|
77
|
-
class: K(["cardArea transition3", [V.nobg && "nobg", t
|
|
77
|
+
class: K(["cardArea transition3", [V.nobg && "nobg", o(t).toggle && "miniArea"]])
|
|
78
78
|
}, [
|
|
79
79
|
u("div", {
|
|
80
80
|
class: K(["cardBody relative nobar", V.bodyClass]),
|
|
@@ -82,7 +82,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
82
82
|
}, [
|
|
83
83
|
W(S.$slots, "default", {}, void 0, !0)
|
|
84
84
|
], 6),
|
|
85
|
-
S.$slots.footer ? (c(),
|
|
85
|
+
S.$slots.footer ? (c(), M("div", {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: K(["cardFooter", V.footerClass])
|
|
88
88
|
}, [
|
|
@@ -91,7 +91,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
91
91
|
], 2)
|
|
92
92
|
], 4));
|
|
93
93
|
}
|
|
94
|
-
}), He = /* @__PURE__ */ ue(Ge, [["__scopeId", "data-v-348c485a"]]), Je = { class: "SuperDatePicker" }, Ke =
|
|
94
|
+
}), He = /* @__PURE__ */ ue(Ge, [["__scopeId", "data-v-348c485a"]]), Je = { class: "SuperDatePicker" }, Ke = E({
|
|
95
95
|
name: "SuperDatePicker"
|
|
96
96
|
}), We = /* @__PURE__ */ Object.assign(Ke, {
|
|
97
97
|
props: {
|
|
@@ -147,9 +147,9 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
emits: ["change", "update:modelValue"],
|
|
150
|
-
setup(
|
|
150
|
+
setup(T, { expose: V, emit: n }) {
|
|
151
151
|
Ye.en.weekStart = 7;
|
|
152
|
-
const e =
|
|
152
|
+
const e = T, t = G({
|
|
153
153
|
type: "",
|
|
154
154
|
date: [],
|
|
155
155
|
shortBtn: [],
|
|
@@ -158,49 +158,49 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
158
158
|
re(() => {
|
|
159
159
|
if (!C.value.length) {
|
|
160
160
|
const a = e.defaultDate[0], d = e.defaultDate[1];
|
|
161
|
-
|
|
161
|
+
t.date = [
|
|
162
162
|
window.$m().add(a, "days").format("YYYY-MM-DD"),
|
|
163
163
|
window.$m().add(d, "days").format("YYYY-MM-DD")
|
|
164
|
-
], O(
|
|
164
|
+
], O(t.date);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
A();
|
|
167
167
|
});
|
|
168
|
-
const S =
|
|
169
|
-
let { limit: d, range:
|
|
170
|
-
d = Number(d),
|
|
171
|
-
const { firstStamp: P } =
|
|
172
|
-
let ne = +window.$m().add(-
|
|
168
|
+
const S = n, l = (a) => {
|
|
169
|
+
let { limit: d, range: m } = e;
|
|
170
|
+
d = Number(d), m = Number(m);
|
|
171
|
+
const { firstStamp: P } = t, H = d * 864e5;
|
|
172
|
+
let ne = +window.$m().add(-m, "d"), q = +window.$m();
|
|
173
173
|
if (e.source === "report" && !P)
|
|
174
174
|
return a > q;
|
|
175
175
|
if (P) {
|
|
176
176
|
if (e.source !== "report") {
|
|
177
|
-
let
|
|
178
|
-
|
|
177
|
+
let R = P - H;
|
|
178
|
+
R > ne && (ne = R);
|
|
179
179
|
} else
|
|
180
180
|
ne = P - H;
|
|
181
181
|
let se = P + H;
|
|
182
182
|
se < q && (q = se);
|
|
183
183
|
}
|
|
184
184
|
return a < ne || a > q;
|
|
185
|
-
},
|
|
186
|
-
a[1] === null ?
|
|
185
|
+
}, g = (a) => {
|
|
186
|
+
a[1] === null ? t.firstStamp = +a[0] : t.firstStamp = 0;
|
|
187
187
|
}, O = (a) => {
|
|
188
|
-
const d =
|
|
188
|
+
const d = f(a);
|
|
189
189
|
S("change", d, "cpt");
|
|
190
|
-
},
|
|
190
|
+
}, A = () => {
|
|
191
191
|
const { shortcuts: a } = e;
|
|
192
192
|
let d = {};
|
|
193
193
|
if (a === !1)
|
|
194
|
-
|
|
194
|
+
t.shortBtn = [];
|
|
195
195
|
else {
|
|
196
|
-
a === !0 ? d =
|
|
197
|
-
...
|
|
196
|
+
a === !0 ? d = D : d = {
|
|
197
|
+
...D,
|
|
198
198
|
...a
|
|
199
199
|
};
|
|
200
|
-
const
|
|
201
|
-
d.today &&
|
|
200
|
+
const m = [];
|
|
201
|
+
d.today && m.push(k()), d.yesterday && m.push(w()), d.thisweek && m.push(p()), d.last7days && m.push(i()), d.todaylast7days && m.push(y()), d.thismonth && m.push(r()), d.last30days && m.push(s()), d.lastmonth && m.push(_()), t.shortBtn = m;
|
|
202
202
|
}
|
|
203
|
-
},
|
|
203
|
+
}, k = () => ({
|
|
204
204
|
text: window.$l("Today"),
|
|
205
205
|
value: () => {
|
|
206
206
|
const a = window.$m().format("YYYY-MM-DD");
|
|
@@ -216,11 +216,11 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
216
216
|
},
|
|
217
217
|
onClick: (a) => {
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), p = () => ({
|
|
220
220
|
text: window.$l("This Week"),
|
|
221
221
|
value: () => {
|
|
222
|
-
let a = 0, d = window.$m().weekday(0),
|
|
223
|
-
return +d > +
|
|
222
|
+
let a = 0, d = window.$m().weekday(0), m = window.$m().add(a, "days");
|
|
223
|
+
return +d > +m && (d = d.format("YYYY-MM-DD"), m = d), [d, m];
|
|
224
224
|
},
|
|
225
225
|
onClick: (a) => {
|
|
226
226
|
}
|
|
@@ -235,7 +235,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
235
235
|
},
|
|
236
236
|
onClick: (a) => {
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), y = () => ({
|
|
239
239
|
text: window.$l("Last 7 Days (with Today)"),
|
|
240
240
|
value: () => [
|
|
241
241
|
window.$m().add(-6, "days").format("YYYY-MM-DD"),
|
|
@@ -246,12 +246,12 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
246
246
|
}), r = () => ({
|
|
247
247
|
text: window.$l("This Month"),
|
|
248
248
|
value: () => {
|
|
249
|
-
let a = 0, d = window.$m().date(1),
|
|
250
|
-
return +d > +
|
|
249
|
+
let a = 0, d = window.$m().date(1), m = window.$m().add(a, "days");
|
|
250
|
+
return +d > +m && (d = d.format("YYYY-MM-DD"), m = d), [d, m];
|
|
251
251
|
},
|
|
252
252
|
onClick: (a) => {
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
254
|
+
}), s = () => ({
|
|
255
255
|
text: window.$l("Last 30 Days"),
|
|
256
256
|
value: () => {
|
|
257
257
|
let a = -30, d = -1;
|
|
@@ -270,24 +270,24 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
270
270
|
],
|
|
271
271
|
onClick: (a) => {
|
|
272
272
|
}
|
|
273
|
-
}),
|
|
274
|
-
d && (
|
|
275
|
-
let
|
|
276
|
-
return
|
|
273
|
+
}), f = (a, d = !1) => {
|
|
274
|
+
d && (t.date = a);
|
|
275
|
+
let m;
|
|
276
|
+
return x.value === "Array" ? m = a : x.value === "Object" ? m = {
|
|
277
277
|
startDate: a[0],
|
|
278
278
|
endDate: a[1]
|
|
279
|
-
} :
|
|
280
|
-
}, b = h(() => window.$getLang()),
|
|
279
|
+
} : m = a[0] + e.separator + a[1], S("update:modelValue", m), m;
|
|
280
|
+
}, b = h(() => window.$getLang()), x = h(() => window.$getType(e.modelValue)), C = h(() => x.value === "Array" ? e.modelValue : x.value === "Object" ? [e.modelValue.startDate, e.modelValue.endDate] : e.modelValue ? e.modelValue.split(e.separator) : []), j = h(() => ({
|
|
281
281
|
start: window.$l("Start Date"),
|
|
282
282
|
end: window.$l("End Date")
|
|
283
283
|
}));
|
|
284
284
|
h(() => {
|
|
285
|
-
let { disabledDate: a, offset: d } = e,
|
|
285
|
+
let { disabledDate: a, offset: d } = e, m = 0;
|
|
286
286
|
d = Number(d) || 0;
|
|
287
287
|
const P = window.$getType(a);
|
|
288
|
-
return P !== "Function" && P !== "Array" && (
|
|
288
|
+
return P !== "Function" && P !== "Array" && (m = parseInt(a) || 0, m > -1 && (m = -1), m > d && (m = d)), m;
|
|
289
289
|
});
|
|
290
|
-
const
|
|
290
|
+
const D = {
|
|
291
291
|
today: !0,
|
|
292
292
|
yesterday: !0,
|
|
293
293
|
thisweek: !1,
|
|
@@ -297,41 +297,41 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
297
297
|
last30days: !0,
|
|
298
298
|
lastmonth: !0
|
|
299
299
|
};
|
|
300
|
-
return
|
|
300
|
+
return Z(
|
|
301
301
|
() => C.value,
|
|
302
302
|
(a, d) => {
|
|
303
|
-
a.length && JSON.stringify(a) !== JSON.stringify(
|
|
303
|
+
a.length && JSON.stringify(a) !== JSON.stringify(t.date) && (t.date = a, O(a));
|
|
304
304
|
}
|
|
305
305
|
), V({
|
|
306
|
-
setDate:
|
|
306
|
+
setDate: f
|
|
307
307
|
}), (a, d) => {
|
|
308
|
-
const
|
|
309
|
-
return c(),
|
|
310
|
-
z(
|
|
311
|
-
modelValue: t
|
|
312
|
-
"onUpdate:modelValue": d[0] || (d[0] = (P) => t
|
|
308
|
+
const m = I("el-date-picker");
|
|
309
|
+
return c(), M("div", Je, [
|
|
310
|
+
z(m, {
|
|
311
|
+
modelValue: o(t).date,
|
|
312
|
+
"onUpdate:modelValue": d[0] || (d[0] = (P) => o(t).date = P),
|
|
313
313
|
class: "wp100",
|
|
314
|
-
"popper-class":
|
|
314
|
+
"popper-class": o(b),
|
|
315
315
|
type: "daterange",
|
|
316
316
|
"value-format": "YYYY-MM-DD",
|
|
317
317
|
editable: !1,
|
|
318
318
|
size: e.size,
|
|
319
319
|
clearable: !1,
|
|
320
320
|
"range-separator": e.separator,
|
|
321
|
-
shortcuts: t
|
|
322
|
-
"end-placeholder": a.$l(
|
|
323
|
-
"start-placeholder": a.$l(
|
|
321
|
+
shortcuts: o(t).shortBtn,
|
|
322
|
+
"end-placeholder": a.$l(o(j).end),
|
|
323
|
+
"start-placeholder": a.$l(o(j).start),
|
|
324
324
|
"disabled-date": l,
|
|
325
325
|
placement: e.placement,
|
|
326
326
|
disabled: e.disabled,
|
|
327
327
|
source: e.source,
|
|
328
328
|
onChange: O,
|
|
329
|
-
onCalendarChange:
|
|
329
|
+
onCalendarChange: g
|
|
330
330
|
}, null, 8, ["modelValue", "popper-class", "size", "range-separator", "shortcuts", "end-placeholder", "start-placeholder", "placement", "disabled", "source"])
|
|
331
331
|
]);
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
}), qe = { class: "EChart" }, Ze = ["id"], Qe =
|
|
334
|
+
}), qe = { class: "EChart" }, Ze = ["id"], Qe = E({
|
|
335
335
|
name: "EChart"
|
|
336
336
|
}), Xe = /* @__PURE__ */ Object.assign(Qe, {
|
|
337
337
|
props: {
|
|
@@ -365,8 +365,8 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
365
365
|
// default: false,
|
|
366
366
|
// },
|
|
367
367
|
},
|
|
368
|
-
setup(
|
|
369
|
-
const e =
|
|
368
|
+
setup(T, { expose: V, emit: n }) {
|
|
369
|
+
const e = T, { proxy: t } = ee();
|
|
370
370
|
pe("store").launch();
|
|
371
371
|
const l = G({
|
|
372
372
|
chart: {},
|
|
@@ -421,27 +421,27 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
421
421
|
l.chartID = `chart${+/* @__PURE__ */ new Date()}${parseInt(Math.random() * 1e4)}`, r.light.className += ` ${l.chartID}`, r.dark.className += ` ${l.chartID}`;
|
|
422
422
|
}), re(() => {
|
|
423
423
|
l.mounted = !0, l.chart = xe(
|
|
424
|
-
window.$ecs.init(
|
|
424
|
+
window.$ecs.init(t.$refs.chart, { renderer: "svg" })
|
|
425
425
|
);
|
|
426
426
|
});
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
},
|
|
427
|
+
const g = n, O = async () => {
|
|
428
|
+
A();
|
|
429
|
+
}, A = () => {
|
|
430
430
|
ge(() => {
|
|
431
|
-
var
|
|
431
|
+
var f;
|
|
432
432
|
l.optioning = !0, l.chart.clear();
|
|
433
|
-
let
|
|
434
|
-
["pie", "radar", "scatter"].indexOf(e.type) > -1 ? (
|
|
433
|
+
let s = window.$deepClone(e.options);
|
|
434
|
+
["pie", "radar", "scatter"].indexOf(e.type) > -1 ? (s = {
|
|
435
435
|
color: l.defaultOptions.color,
|
|
436
436
|
animationEasing: "cubicInOut",
|
|
437
437
|
animationDuration: 500,
|
|
438
|
-
...
|
|
439
|
-
},
|
|
438
|
+
...s
|
|
439
|
+
}, s.tooltip ? (s.tooltip.textStyle ? s.tooltip.textStyle.fontFamily = "Monaco" : s.tooltip.textStyle = {
|
|
440
440
|
fontFamily: "Monaco"
|
|
441
|
-
},
|
|
442
|
-
...
|
|
441
|
+
}, s.tooltip = {
|
|
442
|
+
...s.tooltip,
|
|
443
443
|
...r[e.theme]
|
|
444
|
-
}) :
|
|
444
|
+
}) : s.tooltip = {
|
|
445
445
|
textStyle: {
|
|
446
446
|
fontFamily: "Monaco"
|
|
447
447
|
},
|
|
@@ -488,56 +488,56 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
488
488
|
}), l.defaultOptions.tooltip = {
|
|
489
489
|
...l.defaultOptions.tooltip,
|
|
490
490
|
...r[e.theme]
|
|
491
|
-
},
|
|
492
|
-
b.animation = !0, b.animationDuration = 300, b.type === "line" ? (b.animationEasing = "cubicInOut", b.animationDelay = (
|
|
493
|
-
}), l.options =
|
|
494
|
-
|
|
491
|
+
}, s = k(l.defaultOptions, s)), (f = s.series) == null || f.forEach((b) => {
|
|
492
|
+
b.animation = !0, b.animationDuration = 300, b.type === "line" ? (b.animationEasing = "cubicInOut", b.animationDelay = (x) => x * 100) : (b.animationEasing = "cubicInOut", b.animationDelay = (x) => x * 100);
|
|
493
|
+
}), l.options = s, l.chart.setOption(s), e.type === "wordcloud" && l.chart.on("click", (...b) => {
|
|
494
|
+
g("chart-click", b);
|
|
495
495
|
}), l.optioning = !1;
|
|
496
496
|
});
|
|
497
|
-
},
|
|
498
|
-
const { yAxis:
|
|
499
|
-
let
|
|
500
|
-
window.$getType(
|
|
497
|
+
}, k = (s, _) => {
|
|
498
|
+
const { yAxis: f } = _, { yAxis: b } = s;
|
|
499
|
+
let x;
|
|
500
|
+
window.$getType(f) === "Array" ? x = f.map((D) => ({
|
|
501
501
|
...b,
|
|
502
|
-
...
|
|
503
|
-
})) :
|
|
502
|
+
...D
|
|
503
|
+
})) : x = {
|
|
504
504
|
...b,
|
|
505
|
-
...
|
|
505
|
+
...f
|
|
506
506
|
};
|
|
507
|
-
const C = { ..._, ...
|
|
508
|
-
return Object.keys(C).forEach((
|
|
509
|
-
const a = window.$getType(C[
|
|
507
|
+
const C = { ..._, ...s };
|
|
508
|
+
return Object.keys(C).forEach((D) => {
|
|
509
|
+
const a = window.$getType(C[D]);
|
|
510
510
|
if (a === "Array") {
|
|
511
|
-
const d =
|
|
512
|
-
C[
|
|
511
|
+
const d = s[D] || [], m = _[D] || [];
|
|
512
|
+
C[D] = d.length && !m.length ? d : m;
|
|
513
513
|
} else if (a === "Object") {
|
|
514
|
-
const d =
|
|
515
|
-
C[
|
|
514
|
+
const d = s[D] || {}, m = _[D] || {};
|
|
515
|
+
C[D] = { ...d, ...m };
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
518
|
-
}, w = () => l.chart,
|
|
519
|
-
const
|
|
520
|
-
let
|
|
521
|
-
return
|
|
517
|
+
}), x && (C.yAxis = x), C;
|
|
518
|
+
}, w = () => l.chart, p = h(() => window.global.config.options.cardWidth), i = h(() => {
|
|
519
|
+
const s = window.$getType(e.width), _ = Number(e.height);
|
|
520
|
+
let f = e.width;
|
|
521
|
+
return f ? s === "String" && (f.indexOf("%") > -1 ? f = parseInt(parseInt(f) * p.value / 100) : f = Number(f)) : f = p.value, {
|
|
522
522
|
height: _ + "px",
|
|
523
|
-
width:
|
|
523
|
+
width: f + "px"
|
|
524
524
|
};
|
|
525
|
-
}),
|
|
526
|
-
|
|
527
|
-
() =>
|
|
528
|
-
(
|
|
525
|
+
}), y = h(() => l.mounted && e.options && Object.keys(e.options).length ? +/* @__PURE__ */ new Date() : !1);
|
|
526
|
+
Z(
|
|
527
|
+
() => y.value,
|
|
528
|
+
(s) => {
|
|
529
529
|
var _;
|
|
530
|
-
|
|
530
|
+
s && (_ = e.options.series) != null && _.length && A();
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
immediate: !0,
|
|
534
534
|
deep: !0
|
|
535
535
|
}
|
|
536
|
-
),
|
|
536
|
+
), Z(
|
|
537
537
|
() => e.width,
|
|
538
|
-
(
|
|
539
|
-
|
|
540
|
-
width:
|
|
538
|
+
(s) => {
|
|
539
|
+
s && l.chart && l.optioning === !1 && l.chart.resize({
|
|
540
|
+
width: s,
|
|
541
541
|
height: e.height
|
|
542
542
|
});
|
|
543
543
|
}
|
|
@@ -614,18 +614,18 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
614
614
|
// },
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
|
-
return (
|
|
617
|
+
return (s, _) => (c(), M("div", qe, [
|
|
618
618
|
u("div", {
|
|
619
619
|
ref: "chart",
|
|
620
|
-
style: me(
|
|
621
|
-
id:
|
|
620
|
+
style: me(o(i)),
|
|
621
|
+
id: o(l).chartID
|
|
622
622
|
}, null, 12, Ze)
|
|
623
623
|
]));
|
|
624
624
|
}
|
|
625
625
|
}), et = /* @__PURE__ */ ue(Xe, [["__scopeId", "data-v-e57a751a"]]), tt = {
|
|
626
626
|
class: "MvcIcon",
|
|
627
627
|
"aria-hidden": "true"
|
|
628
|
-
}, ot = ["xlink:href"], lt =
|
|
628
|
+
}, ot = ["xlink:href"], lt = E({
|
|
629
629
|
name: "MvcIcon"
|
|
630
630
|
}), at = /* @__PURE__ */ Object.assign(lt, {
|
|
631
631
|
props: {
|
|
@@ -634,14 +634,14 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
634
634
|
default: "cloud"
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
|
-
setup(
|
|
638
|
-
return (V,
|
|
637
|
+
setup(T) {
|
|
638
|
+
return (V, n) => (c(), M("svg", tt, [
|
|
639
639
|
u("use", {
|
|
640
|
-
"xlink:href": `#imc-${
|
|
640
|
+
"xlink:href": `#imc-${T.name}`
|
|
641
641
|
}, null, 8, ot)
|
|
642
642
|
]));
|
|
643
643
|
}
|
|
644
|
-
}), nt = { class: "SuperImage" }, st = { class: "flexMode hc vc hp100 bg-gray1 radius4" }, rt = { class: "fs10-i lh1" }, it =
|
|
644
|
+
}), nt = { class: "SuperImage" }, st = { class: "flexMode hc vc hp100 bg-gray1 radius4" }, rt = { class: "fs10-i lh1" }, it = E({
|
|
645
645
|
name: "SuperImage"
|
|
646
646
|
}), dt = /* @__PURE__ */ Object.assign(it, {
|
|
647
647
|
props: {
|
|
@@ -654,38 +654,38 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
654
654
|
default: "icon"
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
|
-
setup(
|
|
658
|
-
const
|
|
657
|
+
setup(T, { emit: V }) {
|
|
658
|
+
const n = T, e = G({
|
|
659
659
|
style: {},
|
|
660
660
|
diyClass: "hp100"
|
|
661
|
-
}), { proxy:
|
|
661
|
+
}), { proxy: t } = ee();
|
|
662
662
|
re(() => {
|
|
663
663
|
l();
|
|
664
664
|
});
|
|
665
665
|
const S = V, l = async () => {
|
|
666
|
-
const
|
|
667
|
-
if (!
|
|
666
|
+
const g = await Le(t.$attrs.src);
|
|
667
|
+
if (!g)
|
|
668
668
|
return;
|
|
669
|
-
const { height: O, width:
|
|
670
|
-
O <
|
|
669
|
+
const { height: O, width: A } = g;
|
|
670
|
+
O < A && (e.diyClass = ""), S("load", A, O);
|
|
671
671
|
};
|
|
672
|
-
return (
|
|
673
|
-
const
|
|
674
|
-
return c(),
|
|
675
|
-
z(
|
|
672
|
+
return (g, O) => {
|
|
673
|
+
const A = I("el-image");
|
|
674
|
+
return c(), M("div", nt, [
|
|
675
|
+
z(A, Q({
|
|
676
676
|
"min-scale": 0.9,
|
|
677
677
|
"max-scale": 1.8,
|
|
678
678
|
"zoom-rate": 1.1
|
|
679
|
-
},
|
|
680
|
-
class: [
|
|
681
|
-
style:
|
|
679
|
+
}, g.$attrs, {
|
|
680
|
+
class: [o(e).diyClass, n.imageClass],
|
|
681
|
+
style: o(e).style
|
|
682
682
|
}), {
|
|
683
683
|
placeholder: $(() => [...O[0] || (O[0] = [
|
|
684
684
|
u("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
685
685
|
])]),
|
|
686
686
|
error: $(() => [
|
|
687
687
|
u("div", st, [
|
|
688
|
-
u("span", rt,
|
|
688
|
+
u("span", rt, N(g.$l("Fail")), 1)
|
|
689
689
|
])
|
|
690
690
|
]),
|
|
691
691
|
_: 1
|
|
@@ -693,7 +693,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
693
693
|
]);
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
}), ut = { class: "SuperInput" }, ct =
|
|
696
|
+
}), ut = { class: "SuperInput" }, ct = E({
|
|
697
697
|
name: "SuperInput"
|
|
698
698
|
}), pt = /* @__PURE__ */ Object.assign(ct, {
|
|
699
699
|
props: {
|
|
@@ -723,19 +723,19 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
723
723
|
}
|
|
724
724
|
},
|
|
725
725
|
emits: ["change", "enter", "update:modelValue"],
|
|
726
|
-
setup(
|
|
727
|
-
const e =
|
|
726
|
+
setup(T, { expose: V, emit: n }) {
|
|
727
|
+
const e = T, t = G({
|
|
728
728
|
composition: !1,
|
|
729
729
|
v: ""
|
|
730
|
-
}), { proxy: S } =
|
|
731
|
-
|
|
730
|
+
}), { proxy: S } = ee(), l = n, g = () => {
|
|
731
|
+
t.composition = !0;
|
|
732
732
|
}, O = () => {
|
|
733
|
-
|
|
734
|
-
}, D = () => {
|
|
735
|
-
o.composition || (l("update:modelValue", o.v), ge(() => {
|
|
736
|
-
l("enter", o.v);
|
|
737
|
-
}));
|
|
733
|
+
t.composition = !1;
|
|
738
734
|
}, A = () => {
|
|
735
|
+
t.composition || (l("update:modelValue", t.v), ge(() => {
|
|
736
|
+
l("enter", t.v);
|
|
737
|
+
}));
|
|
738
|
+
}, k = () => {
|
|
739
739
|
if (e.nobreak) {
|
|
740
740
|
const r = window.event || arguments[0];
|
|
741
741
|
if (r.key === "Enter" || r.code === "Enter" || r.keyCode === 13)
|
|
@@ -743,68 +743,68 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
743
743
|
}
|
|
744
744
|
}, w = (r) => {
|
|
745
745
|
e.nobreak ? l("update:modelValue", r.replace(/\n/g, "")) : l("update:modelValue", r), l("change", r);
|
|
746
|
-
},
|
|
746
|
+
}, p = (r) => {
|
|
747
747
|
ge(() => {
|
|
748
748
|
S.$refs.input.focus(), r && S.$refs.input.select();
|
|
749
749
|
});
|
|
750
|
-
}, i = h(() => S.$slots),
|
|
751
|
-
return
|
|
750
|
+
}, i = h(() => S.$slots), y = h(() => e.placeholder ? window.$l(e.placeholder) : " ");
|
|
751
|
+
return Z(
|
|
752
752
|
() => e.modelValue,
|
|
753
753
|
(r) => {
|
|
754
|
-
r !== void 0 && r !==
|
|
754
|
+
r !== void 0 && r !== t.v && (t.v = r);
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
757
|
immediate: !0
|
|
758
758
|
}
|
|
759
759
|
), V({
|
|
760
|
-
focus:
|
|
761
|
-
}), (r,
|
|
762
|
-
const _ = I("el-input"),
|
|
763
|
-
return c(),
|
|
764
|
-
ze((c(), L(_,
|
|
760
|
+
focus: p
|
|
761
|
+
}), (r, s) => {
|
|
762
|
+
const _ = I("el-input"), f = Ie("focus");
|
|
763
|
+
return c(), M("div", ut, [
|
|
764
|
+
ze((c(), L(_, Q({
|
|
765
765
|
ref: "input",
|
|
766
|
-
modelValue: t
|
|
767
|
-
"onUpdate:modelValue":
|
|
766
|
+
modelValue: o(t).v,
|
|
767
|
+
"onUpdate:modelValue": s[0] || (s[0] = (b) => o(t).v = b),
|
|
768
768
|
type: e.nobreak ? "textarea" : "text",
|
|
769
769
|
resize: "none",
|
|
770
770
|
clearable: "",
|
|
771
771
|
"input-style": e.center ? "text-align: center" : ""
|
|
772
772
|
}, r.$attrs, {
|
|
773
|
-
placeholder:
|
|
773
|
+
placeholder: o(y),
|
|
774
774
|
onChange: w,
|
|
775
|
-
onCompositionstart:
|
|
775
|
+
onCompositionstart: g,
|
|
776
776
|
onCompositionend: O,
|
|
777
777
|
onKeydown: [
|
|
778
|
-
Ve(
|
|
779
|
-
Ve(
|
|
778
|
+
Ve(A, ["enter"]),
|
|
779
|
+
Ve(k, ["enter", "native"])
|
|
780
780
|
],
|
|
781
781
|
class: "wp100"
|
|
782
782
|
}), ae({ _: 2 }, [
|
|
783
|
-
|
|
783
|
+
o(i).prefix || e.icon ? {
|
|
784
784
|
name: "prefix",
|
|
785
785
|
fn: $(() => [
|
|
786
|
-
|
|
786
|
+
o(i).prefix ? W(r.$slots, "prefix", { key: 0 }) : (c(), M("i", {
|
|
787
787
|
key: 1,
|
|
788
788
|
class: K(["imicon", `im-${e.icon}`])
|
|
789
789
|
}, null, 2))
|
|
790
790
|
]),
|
|
791
791
|
key: "0"
|
|
792
792
|
} : void 0,
|
|
793
|
-
|
|
793
|
+
o(i).append ? {
|
|
794
794
|
name: "append",
|
|
795
795
|
fn: $(() => [
|
|
796
796
|
W(r.$slots, "append")
|
|
797
797
|
]),
|
|
798
798
|
key: "1"
|
|
799
799
|
} : void 0,
|
|
800
|
-
|
|
800
|
+
o(i).prepend ? {
|
|
801
801
|
name: "prepend",
|
|
802
802
|
fn: $(() => [
|
|
803
803
|
W(r.$slots, "prepend")
|
|
804
804
|
]),
|
|
805
805
|
key: "2"
|
|
806
806
|
} : void 0,
|
|
807
|
-
|
|
807
|
+
o(i).suffix ? {
|
|
808
808
|
name: "suffix",
|
|
809
809
|
fn: $(() => [
|
|
810
810
|
W(r.$slots, "suffix")
|
|
@@ -812,7 +812,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
812
812
|
key: "3"
|
|
813
813
|
} : void 0
|
|
814
814
|
]), 1040, ["modelValue", "type", "input-style", "placeholder"])), [
|
|
815
|
-
[
|
|
815
|
+
[f, e.focus ? 300 : null, "time"]
|
|
816
816
|
])
|
|
817
817
|
]);
|
|
818
818
|
};
|
|
@@ -823,7 +823,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
823
823
|
}, gt = {
|
|
824
824
|
key: 1,
|
|
825
825
|
class: "flexMode vc hb h40 outsideIgnore"
|
|
826
|
-
}, yt = { class: "flexMode vc g4 fs14 noevent" }, ht = { class: "txt-primary" }, _t = { class: "txt-dark5" }, bt = { class: "txt-primary" }, vt = { class: "txt-dark5" }, $t =
|
|
826
|
+
}, yt = { class: "flexMode vc g4 fs14 noevent" }, ht = { class: "txt-primary" }, _t = { class: "txt-dark5" }, bt = { class: "txt-primary" }, vt = { class: "txt-dark5" }, $t = E({
|
|
827
827
|
name: "SuperMultipleSelect"
|
|
828
828
|
}), wt = /* @__PURE__ */ Object.assign($t, {
|
|
829
829
|
props: {
|
|
@@ -845,45 +845,45 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
847
|
emits: ["update:modelValue", "change"],
|
|
848
|
-
setup(
|
|
849
|
-
const e =
|
|
850
|
-
l("update:modelValue",
|
|
848
|
+
setup(T, { expose: V, emit: n }) {
|
|
849
|
+
const e = T, t = G({ v: [] }), { proxy: S } = ee(), l = n, g = () => {
|
|
850
|
+
l("update:modelValue", t.v), l("change", t.v);
|
|
851
851
|
}, O = () => {
|
|
852
|
-
|
|
853
|
-
}, D = () => {
|
|
854
|
-
o.v = [], y();
|
|
852
|
+
t.v = e.options.map((y) => y[e.value]), g();
|
|
855
853
|
}, A = () => {
|
|
854
|
+
t.v = [], g();
|
|
855
|
+
}, k = () => {
|
|
856
856
|
S.$refs.select.blur();
|
|
857
|
-
}, w = h(() => e.options.length <=
|
|
857
|
+
}, w = h(() => e.options.length <= t.v.length && e.options.length !== 0), p = h(() => S.$attrs["multiple-limit"]), i = h(() => S.$attrs["collapse-tags"] !== void 0);
|
|
858
858
|
return Te(() => {
|
|
859
|
-
JSON.stringify(e.modelValue) !== JSON.stringify(
|
|
859
|
+
JSON.stringify(e.modelValue) !== JSON.stringify(t.v) && (t.v = e.modelValue);
|
|
860
860
|
}), V({
|
|
861
|
-
blur:
|
|
862
|
-
}), (
|
|
863
|
-
const
|
|
864
|
-
return c(),
|
|
865
|
-
z(
|
|
861
|
+
blur: k
|
|
862
|
+
}), (y, r) => {
|
|
863
|
+
const s = I("el-button"), _ = I("el-option"), f = I("el-select");
|
|
864
|
+
return c(), M("div", mt, [
|
|
865
|
+
z(f, Q({
|
|
866
866
|
ref: "select",
|
|
867
|
-
modelValue: t
|
|
868
|
-
"onUpdate:modelValue": r[0] || (r[0] = (b) => t
|
|
867
|
+
modelValue: o(t).v,
|
|
868
|
+
"onUpdate:modelValue": r[0] || (r[0] = (b) => o(t).v = b),
|
|
869
869
|
clearable: "",
|
|
870
870
|
placeholder: " ",
|
|
871
871
|
placement: "top"
|
|
872
|
-
},
|
|
872
|
+
}, y.$attrs, {
|
|
873
873
|
multiple: "",
|
|
874
|
-
onChange:
|
|
875
|
-
class: ["wp100 MultipleSelect",
|
|
874
|
+
onChange: g,
|
|
875
|
+
class: ["wp100 MultipleSelect", o(i) && "nowrap"]
|
|
876
876
|
}), ae({
|
|
877
877
|
default: $(() => [
|
|
878
|
-
(c(!0),
|
|
879
|
-
key:
|
|
880
|
-
label:
|
|
878
|
+
(c(!0), M(ie, null, de(e.options, (b, x) => (c(), L(_, {
|
|
879
|
+
key: x,
|
|
880
|
+
label: y.$l(b[e.label]),
|
|
881
881
|
value: b[e.value],
|
|
882
882
|
disabled: b.disabled,
|
|
883
883
|
class: K(b.hide && "hide-i")
|
|
884
884
|
}, {
|
|
885
885
|
default: $(() => [
|
|
886
|
-
|
|
886
|
+
y.$slots.default ? W(y.$slots, "default", {
|
|
887
887
|
key: 0,
|
|
888
888
|
it: b
|
|
889
889
|
}, void 0, !0) : Y("", !0)
|
|
@@ -893,63 +893,63 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
893
893
|
]),
|
|
894
894
|
_: 2
|
|
895
895
|
}, [
|
|
896
|
-
|
|
896
|
+
y.$slots.prefix ? {
|
|
897
897
|
name: "prefix",
|
|
898
898
|
fn: $(() => [
|
|
899
|
-
W(
|
|
899
|
+
W(y.$slots, "prefix", {}, void 0, !0)
|
|
900
900
|
]),
|
|
901
901
|
key: "0"
|
|
902
902
|
} : void 0,
|
|
903
|
-
|
|
903
|
+
o(p) ? void 0 : {
|
|
904
904
|
name: "header",
|
|
905
905
|
fn: $(() => [
|
|
906
|
-
|
|
907
|
-
W(
|
|
908
|
-
])) : (c(),
|
|
909
|
-
|
|
906
|
+
y.$slots.header ? (c(), M("div", ft, [
|
|
907
|
+
W(y.$slots, "header", {}, void 0, !0)
|
|
908
|
+
])) : (c(), M("div", gt, [
|
|
909
|
+
o(w) ? (c(), L(s, {
|
|
910
910
|
key: 0,
|
|
911
911
|
type: "primary",
|
|
912
912
|
size: "default",
|
|
913
|
-
onClick:
|
|
913
|
+
onClick: A
|
|
914
914
|
}, {
|
|
915
915
|
default: $(() => [
|
|
916
|
-
|
|
916
|
+
le(N(y.$l("Cancel All")), 1)
|
|
917
917
|
]),
|
|
918
918
|
_: 1
|
|
919
|
-
})) : (c(), L(
|
|
919
|
+
})) : (c(), L(s, {
|
|
920
920
|
key: 1,
|
|
921
921
|
size: "default",
|
|
922
922
|
onClick: O
|
|
923
923
|
}, {
|
|
924
924
|
default: $(() => [
|
|
925
|
-
|
|
925
|
+
le(N(y.$l("Select All")), 1)
|
|
926
926
|
]),
|
|
927
927
|
_: 1
|
|
928
928
|
})),
|
|
929
929
|
u("div", yt, [
|
|
930
|
-
u("span", ht,
|
|
930
|
+
u("span", ht, N(o(t).v.length), 1),
|
|
931
931
|
r[1] || (r[1] = u("span", { class: "txt-dark3" }, "/", -1)),
|
|
932
|
-
u("span", _t,
|
|
932
|
+
u("span", _t, N(o(p) || e.options.length), 1)
|
|
933
933
|
])
|
|
934
934
|
]))
|
|
935
935
|
]),
|
|
936
936
|
key: "1"
|
|
937
937
|
},
|
|
938
|
-
|
|
938
|
+
y.$slots.footer ? {
|
|
939
939
|
name: "footer",
|
|
940
940
|
fn: $(() => [
|
|
941
|
-
W(
|
|
941
|
+
W(y.$slots, "footer", {}, void 0, !0)
|
|
942
942
|
]),
|
|
943
943
|
key: "2"
|
|
944
944
|
} : void 0
|
|
945
945
|
]), 1040, ["modelValue", "class"]),
|
|
946
|
-
|
|
946
|
+
o(p) ? (c(), M("div", {
|
|
947
947
|
key: 0,
|
|
948
|
-
class: K(["countArea abs flexMode vc p4 fs12",
|
|
948
|
+
class: K(["countArea abs flexMode vc p4 fs12", o(i) && "nowrap"])
|
|
949
949
|
}, [
|
|
950
|
-
u("span", bt,
|
|
950
|
+
u("span", bt, N(o(t).v.length), 1),
|
|
951
951
|
r[2] || (r[2] = u("span", { class: "txt-dark3" }, "/", -1)),
|
|
952
|
-
u("span", vt,
|
|
952
|
+
u("span", vt, N(o(p)), 1)
|
|
953
953
|
], 2)) : Y("", !0)
|
|
954
954
|
]);
|
|
955
955
|
};
|
|
@@ -957,7 +957,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
957
957
|
}), St = /* @__PURE__ */ ue(wt, [["__scopeId", "data-v-278f3960"]]), Ct = { class: "SuperNodata" }, Oe = {
|
|
958
958
|
data: "No Data",
|
|
959
959
|
selection: "Unselected"
|
|
960
|
-
}, kt =
|
|
960
|
+
}, kt = E({
|
|
961
961
|
name: "SuperNodata"
|
|
962
962
|
}), xt = /* @__PURE__ */ Object.assign(kt, {
|
|
963
963
|
props: {
|
|
@@ -968,21 +968,21 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
968
968
|
type: {
|
|
969
969
|
type: String,
|
|
970
970
|
default: "data",
|
|
971
|
-
validate: (
|
|
971
|
+
validate: (T) => Oe[T]
|
|
972
972
|
},
|
|
973
973
|
txt: {
|
|
974
974
|
type: String,
|
|
975
975
|
default: ""
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
|
-
setup(
|
|
979
|
-
const V =
|
|
980
|
-
return (
|
|
978
|
+
setup(T) {
|
|
979
|
+
const V = T, n = h(() => Number(V.size)), e = h(() => V.txt ? window.$l(V.txt) : window.$l(Oe[V.type]));
|
|
980
|
+
return (t, S) => {
|
|
981
981
|
const l = I("el-empty");
|
|
982
|
-
return c(),
|
|
982
|
+
return c(), M("div", Ct, [
|
|
983
983
|
z(l, {
|
|
984
|
-
"image-size":
|
|
985
|
-
description:
|
|
984
|
+
"image-size": o(n),
|
|
985
|
+
description: o(e)
|
|
986
986
|
}, null, 8, ["image-size", "description"])
|
|
987
987
|
]);
|
|
988
988
|
};
|
|
@@ -996,9 +996,9 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
996
996
|
}, Mt = {
|
|
997
997
|
class: "PageFooter flexMode vc g8 fs14",
|
|
998
998
|
style: { padding: "14px 30px 24px 30px" }
|
|
999
|
-
}, Nt = { class: "txt-dark5" }, It = { class: "txt-primary" }, zt = { class: "txt-dark5" },
|
|
999
|
+
}, Nt = { class: "txt-dark5" }, It = { class: "txt-primary" }, zt = { class: "txt-dark5" }, jt = E({
|
|
1000
1000
|
name: "Page"
|
|
1001
|
-
}),
|
|
1001
|
+
}), Bt = /* @__PURE__ */ Object.assign(jt, {
|
|
1002
1002
|
props: {
|
|
1003
1003
|
loading: {
|
|
1004
1004
|
type: Boolean,
|
|
@@ -1021,41 +1021,41 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1021
1021
|
default: !1
|
|
1022
1022
|
}
|
|
1023
1023
|
},
|
|
1024
|
-
setup(
|
|
1025
|
-
const V =
|
|
1024
|
+
setup(T) {
|
|
1025
|
+
const V = T, n = h(() => window.global.config.meta), e = h(() => ({
|
|
1026
1026
|
minHeight: window.global.config.options.pageHeight + "px"
|
|
1027
1027
|
}));
|
|
1028
|
-
return (
|
|
1028
|
+
return (t, S) => {
|
|
1029
1029
|
const l = I("Loading");
|
|
1030
|
-
return c(),
|
|
1030
|
+
return c(), M("div", Ot, [
|
|
1031
1031
|
z(l, {
|
|
1032
1032
|
loading: V.loading
|
|
1033
1033
|
}, null, 8, ["loading"]),
|
|
1034
|
-
V.noheader ? Y("", !0) : (c(),
|
|
1034
|
+
V.noheader ? Y("", !0) : (c(), M("div", {
|
|
1035
1035
|
key: 0,
|
|
1036
1036
|
class: K(["PageHeader h80 p0-30 flexMode vc hb z9 xscroll nobar", V.headerClass])
|
|
1037
1037
|
}, [
|
|
1038
|
-
|
|
1039
|
-
V.title ? (c(),
|
|
1040
|
-
V.subtitle ? (c(),
|
|
1038
|
+
t.$slots.title ? W(t.$slots, "title", { key: 0 }, void 0, !0) : (c(), M("div", Dt, [
|
|
1039
|
+
V.title ? (c(), M("div", At, N(t.$l(V.title)), 1)) : Y("", !0),
|
|
1040
|
+
V.subtitle ? (c(), M("div", Tt, N(t.$l(V.subtitle)), 1)) : Y("", !0)
|
|
1041
1041
|
])),
|
|
1042
|
-
W(
|
|
1042
|
+
W(t.$slots, "tool", {}, void 0, !0)
|
|
1043
1043
|
], 2)),
|
|
1044
1044
|
u("div", {
|
|
1045
1045
|
class: "PageBody relative p0-30 z1",
|
|
1046
|
-
style: me(
|
|
1046
|
+
style: me(o(e))
|
|
1047
1047
|
}, [
|
|
1048
|
-
W(
|
|
1048
|
+
W(t.$slots, "default", {}, void 0, !0)
|
|
1049
1049
|
], 4),
|
|
1050
1050
|
u("div", Mt, [
|
|
1051
|
-
u("span", Nt,
|
|
1052
|
-
u("span", It,
|
|
1053
|
-
u("span", zt,
|
|
1051
|
+
u("span", Nt, N(o(n).copyright), 1),
|
|
1052
|
+
u("span", It, N(o(n).campany), 1),
|
|
1053
|
+
u("span", zt, N(o(n).email), 1)
|
|
1054
1054
|
])
|
|
1055
1055
|
]);
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
}), Yt = /* @__PURE__ */ ue(
|
|
1058
|
+
}), Yt = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-fb447dc9"]]), Lt = { class: "MvcTableHeaderTool" }, Et = { class: "ToolArea" }, Rt = E({
|
|
1059
1059
|
name: "MvcTableHeaderTool",
|
|
1060
1060
|
inheritAttrs: !1
|
|
1061
1061
|
}), Ft = /* @__PURE__ */ Object.assign(Rt, {
|
|
@@ -1097,13 +1097,13 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1097
1097
|
default: ""
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
|
-
setup(
|
|
1101
|
-
const
|
|
1100
|
+
setup(T, { emit: V }) {
|
|
1101
|
+
const n = ve(() => Promise.resolve().then(() => va)), e = ve(() => Promise.resolve().then(() => Ra)), t = T, S = G({
|
|
1102
1102
|
drawer: [
|
|
1103
1103
|
{
|
|
1104
1104
|
title: window.$l("Table Column Customization"),
|
|
1105
1105
|
size: 1024,
|
|
1106
|
-
cpt: xe(
|
|
1106
|
+
cpt: xe(n)
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
1109
|
title: window.$l("Download from Current Table"),
|
|
@@ -1116,33 +1116,33 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1116
1116
|
filterVisible: !1,
|
|
1117
1117
|
filterTop: 0,
|
|
1118
1118
|
dt: []
|
|
1119
|
-
}), { proxy: l } =
|
|
1120
|
-
|
|
1121
|
-
}, D = () => {
|
|
1122
|
-
S.drawer[0].params = { tableName: o.tableName }, S.current = 0;
|
|
1119
|
+
}), { proxy: l } = ee(), g = V, O = (s) => {
|
|
1120
|
+
t.type === "drawer" || (s.target.localName === "span" ? window.$pageScrollTo(s.target.parentNode) : s.target.localName === "i" ? s.target.parentNode.localName === "button" ? window.$pageScrollTo(s.target.parentNode) : window.$pageScrollTo(s.target.parentNode.parentNode) : window.$pageScrollTo(s.target)), g("refresh");
|
|
1123
1121
|
}, A = () => {
|
|
1122
|
+
S.drawer[0].params = { tableName: t.tableName }, S.current = 0;
|
|
1123
|
+
}, k = () => {
|
|
1124
1124
|
S.drawer[1].params = {
|
|
1125
|
-
useAll:
|
|
1126
|
-
tableName:
|
|
1127
|
-
list:
|
|
1128
|
-
selection:
|
|
1129
|
-
remote:
|
|
1125
|
+
useAll: t.useAll,
|
|
1126
|
+
tableName: t.tableName,
|
|
1127
|
+
list: t.list,
|
|
1128
|
+
selection: t.selection,
|
|
1129
|
+
remote: t.remote
|
|
1130
1130
|
}, S.current = 1;
|
|
1131
|
-
}, w = (
|
|
1132
|
-
|
|
1133
|
-
},
|
|
1134
|
-
var
|
|
1135
|
-
return ((
|
|
1131
|
+
}, w = (s) => {
|
|
1132
|
+
s === "column" ? g("to-init-table") : s === "download" && g("to-download");
|
|
1133
|
+
}, p = h(() => {
|
|
1134
|
+
var s;
|
|
1135
|
+
return ((s = t.tool) == null ? void 0 : s.download) === void 0;
|
|
1136
1136
|
}), i = h(() => {
|
|
1137
|
-
var
|
|
1138
|
-
return ((
|
|
1139
|
-
}),
|
|
1140
|
-
var
|
|
1141
|
-
return ((
|
|
1137
|
+
var s;
|
|
1138
|
+
return ((s = t.tool) == null ? void 0 : s.column) === void 0;
|
|
1139
|
+
}), y = h(() => {
|
|
1140
|
+
var s;
|
|
1141
|
+
return ((s = t.tool) == null ? void 0 : s.refresh) === void 0;
|
|
1142
1142
|
});
|
|
1143
1143
|
h(() => {
|
|
1144
|
-
const
|
|
1145
|
-
return r.map((_) => (_.label.toLowerCase().includes(
|
|
1144
|
+
const s = S.searchGroupBy.toLowerCase();
|
|
1145
|
+
return r.map((_) => (_.label.toLowerCase().includes(s) ? _.hide = !1 : _.hide = !0, _));
|
|
1146
1146
|
});
|
|
1147
1147
|
const r = [
|
|
1148
1148
|
{
|
|
@@ -1171,58 +1171,58 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1171
1171
|
width: 100
|
|
1172
1172
|
}
|
|
1173
1173
|
];
|
|
1174
|
-
return (
|
|
1175
|
-
const
|
|
1176
|
-
return c(),
|
|
1174
|
+
return (s, _) => {
|
|
1175
|
+
const f = I("el-button"), b = I("Drawer");
|
|
1176
|
+
return c(), M("div", Lt, [
|
|
1177
1177
|
u("div", Et, [
|
|
1178
|
-
|
|
1178
|
+
o(y) ? (c(), L(f, {
|
|
1179
1179
|
key: 0,
|
|
1180
1180
|
plain: "",
|
|
1181
|
-
onClick: _[0] || (_[0] = (
|
|
1181
|
+
onClick: _[0] || (_[0] = (x) => O(x))
|
|
1182
1182
|
}, {
|
|
1183
1183
|
icon: $(() => [..._[2] || (_[2] = [
|
|
1184
1184
|
u("i", { class: "imicon im-reset" }, null, -1)
|
|
1185
1185
|
])]),
|
|
1186
1186
|
default: $(() => [
|
|
1187
|
-
|
|
1187
|
+
le(" " + N(s.$l("Refresh")), 1)
|
|
1188
1188
|
]),
|
|
1189
1189
|
_: 1
|
|
1190
1190
|
})) : Y("", !0),
|
|
1191
|
-
|
|
1191
|
+
o(i) ? (c(), L(f, {
|
|
1192
1192
|
key: 1,
|
|
1193
1193
|
plain: "",
|
|
1194
|
-
onClick:
|
|
1194
|
+
onClick: A
|
|
1195
1195
|
}, {
|
|
1196
1196
|
icon: $(() => [..._[3] || (_[3] = [
|
|
1197
1197
|
u("i", { class: "imicon im-columns1" }, null, -1)
|
|
1198
1198
|
])]),
|
|
1199
1199
|
default: $(() => [
|
|
1200
|
-
|
|
1200
|
+
le(" " + N(s.$l("Columns")), 1)
|
|
1201
1201
|
]),
|
|
1202
1202
|
_: 1
|
|
1203
1203
|
})) : Y("", !0),
|
|
1204
|
-
|
|
1204
|
+
o(p) ? (c(), L(f, {
|
|
1205
1205
|
key: 2,
|
|
1206
1206
|
plain: "",
|
|
1207
|
-
onClick:
|
|
1207
|
+
onClick: k
|
|
1208
1208
|
}, {
|
|
1209
1209
|
icon: $(() => [..._[4] || (_[4] = [
|
|
1210
1210
|
u("i", { class: "imicon im-download1" }, null, -1)
|
|
1211
1211
|
])]),
|
|
1212
1212
|
default: $(() => [
|
|
1213
|
-
|
|
1213
|
+
le(" " + N(s.$l("Download")), 1)
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
})) : Y("", !0)
|
|
1217
1217
|
]),
|
|
1218
1218
|
z(b, {
|
|
1219
|
-
current:
|
|
1220
|
-
"onUpdate:current": _[1] || (_[1] = (
|
|
1221
|
-
drawer:
|
|
1222
|
-
dt:
|
|
1223
|
-
"load-data":
|
|
1224
|
-
onFetchAllData:
|
|
1225
|
-
onRecoverCurrentData:
|
|
1219
|
+
current: o(S).current,
|
|
1220
|
+
"onUpdate:current": _[1] || (_[1] = (x) => o(S).current = x),
|
|
1221
|
+
drawer: o(S).drawer,
|
|
1222
|
+
dt: o(S).dt,
|
|
1223
|
+
"load-data": t.loadData,
|
|
1224
|
+
onFetchAllData: s.fetchAllData,
|
|
1225
|
+
onRecoverCurrentData: s.recoverCurrentData,
|
|
1226
1226
|
onSubmit: w
|
|
1227
1227
|
}, null, 8, ["current", "drawer", "dt", "load-data", "onFetchAllData", "onRecoverCurrentData"])
|
|
1228
1228
|
]);
|
|
@@ -1237,7 +1237,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1237
1237
|
}, Kt = { key: 2 }, Wt = {
|
|
1238
1238
|
key: 0,
|
|
1239
1239
|
class: "filterRowArea"
|
|
1240
|
-
}, qt =
|
|
1240
|
+
}, qt = E({
|
|
1241
1241
|
name: "MvcTableHeader",
|
|
1242
1242
|
inheritAttrs: !1
|
|
1243
1243
|
}), Zt = /* @__PURE__ */ Object.assign(qt, {
|
|
@@ -1255,23 +1255,23 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1255
1255
|
default: !1
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
1258
|
-
setup(
|
|
1259
|
-
const
|
|
1260
|
-
return (e,
|
|
1258
|
+
setup(T, { emit: V }) {
|
|
1259
|
+
const n = T;
|
|
1260
|
+
return (e, t) => (c(), M("div", Ut, [
|
|
1261
1261
|
u("div", Gt, [
|
|
1262
|
-
e.$slots.default ? (c(),
|
|
1262
|
+
e.$slots.default ? (c(), M("div", Ht, [
|
|
1263
1263
|
W(e.$slots, "default", {}, void 0, !0)
|
|
1264
|
-
])) :
|
|
1265
|
-
e.$attrs.tool !== !1 ? (c(), L(Pt,
|
|
1266
|
-
"table-name":
|
|
1264
|
+
])) : n.title ? (c(), M("div", Jt, N(n.title), 1)) : (c(), M("div", Kt)),
|
|
1265
|
+
e.$attrs.tool !== !1 ? (c(), L(Pt, Q({ key: 3 }, e.$attrs, {
|
|
1266
|
+
"table-name": n.tableName
|
|
1267
1267
|
}), null, 16, ["table-name"])) : Y("", !0)
|
|
1268
1268
|
]),
|
|
1269
|
-
e.$slots.filterRow ? (c(),
|
|
1269
|
+
e.$slots.filterRow ? (c(), M("div", Wt, [
|
|
1270
1270
|
W(e.$slots, "filterRow", {}, void 0, !0)
|
|
1271
1271
|
])) : Y("", !0)
|
|
1272
1272
|
]));
|
|
1273
1273
|
}
|
|
1274
|
-
}), Qt = /* @__PURE__ */ ue(Zt, [["__scopeId", "data-v-1b2ed487"]]), Xt =
|
|
1274
|
+
}), Qt = /* @__PURE__ */ ue(Zt, [["__scopeId", "data-v-1b2ed487"]]), Xt = E({
|
|
1275
1275
|
name: "MvcTableColumnFilter",
|
|
1276
1276
|
props: {
|
|
1277
1277
|
tableName: {
|
|
@@ -1283,58 +1283,58 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1283
1283
|
default: /* @__PURE__ */ Object.create(null)
|
|
1284
1284
|
}
|
|
1285
1285
|
},
|
|
1286
|
-
setup: (
|
|
1287
|
-
var
|
|
1288
|
-
const
|
|
1286
|
+
setup: (T, V) => {
|
|
1287
|
+
var g;
|
|
1288
|
+
const n = G({
|
|
1289
1289
|
options: [],
|
|
1290
1290
|
slots: []
|
|
1291
|
-
}), e =
|
|
1292
|
-
let
|
|
1291
|
+
}), e = T.tableName + "_Column";
|
|
1292
|
+
let t = [];
|
|
1293
1293
|
(() => {
|
|
1294
|
-
const O = V.slots.default()[0].children[0].children,
|
|
1294
|
+
const O = V.slots.default()[0].children[0].children, A = {
|
|
1295
1295
|
left: [],
|
|
1296
1296
|
center: [],
|
|
1297
1297
|
right: []
|
|
1298
|
-
},
|
|
1298
|
+
}, k = T.tableName ? JSON.parse(localStorage.getItem(e)) : {}, w = [void 0];
|
|
1299
1299
|
O.forEach((i) => {
|
|
1300
|
-
window.$getType(i.type) === "Symbol" ?
|
|
1301
|
-
}),
|
|
1302
|
-
var
|
|
1300
|
+
window.$getType(i.type) === "Symbol" ? t = t.concat(i.children) : t.push(i);
|
|
1301
|
+
}), t.forEach((i, y) => {
|
|
1302
|
+
var s;
|
|
1303
1303
|
const r = window.$getType(i.type);
|
|
1304
|
-
if (((
|
|
1304
|
+
if (((s = i.type) == null ? void 0 : s.name) === "ElTableColumn") {
|
|
1305
1305
|
let _ = {
|
|
1306
1306
|
...i.props,
|
|
1307
1307
|
labelKey: i.props.label,
|
|
1308
1308
|
label: window.$l(i.props.label),
|
|
1309
|
-
sort:
|
|
1309
|
+
sort: y,
|
|
1310
1310
|
nomove: i.props.nomove || i.props.nomove === "" || i.props.label === "-" || i.props.type === "selection" || i.props.label === "Operation",
|
|
1311
1311
|
resizable: !0,
|
|
1312
1312
|
visible: i.props.visible !== !1
|
|
1313
1313
|
};
|
|
1314
|
-
if (
|
|
1315
|
-
const { data:
|
|
1314
|
+
if (k != null && k.length && w.indexOf(i.props.prop) === -1) {
|
|
1315
|
+
const { data: f } = k.filter1(
|
|
1316
1316
|
(b) => b.prop === i.props.prop
|
|
1317
1317
|
);
|
|
1318
|
-
|
|
1318
|
+
f && (_.sort = f.sort, _.fixed = f.fixed, _.visible = f.visible);
|
|
1319
1319
|
}
|
|
1320
|
-
i.props.fixed ?
|
|
1320
|
+
i.props.fixed ? A[i.props.fixed].push(_) : A.center.push(_), i.props = _;
|
|
1321
1321
|
} else r === "Symbol" && i.children;
|
|
1322
|
-
}),
|
|
1323
|
-
const
|
|
1324
|
-
...
|
|
1325
|
-
...
|
|
1326
|
-
...
|
|
1322
|
+
}), n.columnInfo = A;
|
|
1323
|
+
const p = [
|
|
1324
|
+
...A.left,
|
|
1325
|
+
...A.center.sort((i, y) => i.sort - y.sort),
|
|
1326
|
+
...A.right
|
|
1327
1327
|
];
|
|
1328
|
-
|
|
1328
|
+
T.tableName && localStorage.setItem(e, JSON.stringify(p));
|
|
1329
1329
|
})();
|
|
1330
1330
|
let l = [];
|
|
1331
|
-
if (
|
|
1331
|
+
if (t.forEach((O) => {
|
|
1332
1332
|
window.$getType(O) !== "String" && O.props.visible && l.push(O);
|
|
1333
|
-
}), (
|
|
1333
|
+
}), (g = T.group) != null && g.label) {
|
|
1334
1334
|
const O = {
|
|
1335
|
-
label: "Group By " +
|
|
1335
|
+
label: "Group By " + T.group.label,
|
|
1336
1336
|
// prop: props.group.value,
|
|
1337
|
-
width:
|
|
1337
|
+
width: T.group.width,
|
|
1338
1338
|
fixed: "left",
|
|
1339
1339
|
visible: !0,
|
|
1340
1340
|
resizable: !0
|
|
@@ -1347,7 +1347,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1347
1347
|
props: O
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
|
-
return l = l.sort((O,
|
|
1350
|
+
return l = l.sort((O, A) => O.props.sort - A.props.sort), () => l;
|
|
1351
1351
|
}
|
|
1352
1352
|
}), eo = { class: "MvcTableFooter" }, to = { class: "FooterArea xscroll nobar" }, oo = { class: "flexMode vc g8" }, lo = {
|
|
1353
1353
|
key: 1,
|
|
@@ -1355,7 +1355,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1355
1355
|
}, ao = { class: "txt-dark3" }, no = { class: "flexMode vc" }, so = { class: "txt-blue" }, ro = {
|
|
1356
1356
|
key: 2,
|
|
1357
1357
|
class: "flexMode vc g4 fs14"
|
|
1358
|
-
}, io = { class: "txt-dark3" }, uo = { class: "flexMode vc" }, co = { class: "txt-blue" }, po = { class: "txt-dark7" }, mo = { class: "flexMode vc g4 fs14" }, fo = { class: "txt-dark3" }, go = { class: "txt-dark7" }, yo =
|
|
1358
|
+
}, io = { class: "txt-dark3" }, uo = { class: "flexMode vc" }, co = { class: "txt-blue" }, po = { class: "txt-dark7" }, mo = { class: "flexMode vc g4 fs14" }, fo = { class: "txt-dark3" }, go = { class: "txt-dark7" }, yo = E({
|
|
1359
1359
|
name: "MvcTableFooter"
|
|
1360
1360
|
}), ho = /* @__PURE__ */ Object.assign(yo, {
|
|
1361
1361
|
props: {
|
|
@@ -1408,16 +1408,16 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1408
1408
|
default: !1
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
|
-
setup(
|
|
1412
|
-
const
|
|
1411
|
+
setup(T, { emit: V }) {
|
|
1412
|
+
const n = T, e = G({
|
|
1413
1413
|
summaryMode: 1
|
|
1414
|
-
}),
|
|
1415
|
-
|
|
1414
|
+
}), t = V, S = (i) => {
|
|
1415
|
+
t("size-change", i);
|
|
1416
1416
|
}, l = (i) => {
|
|
1417
|
-
|
|
1418
|
-
},
|
|
1419
|
-
|
|
1420
|
-
}, O = h(() =>
|
|
1417
|
+
t("page-change", i);
|
|
1418
|
+
}, g = (i) => {
|
|
1419
|
+
t("summary-mode-change", i);
|
|
1420
|
+
}, O = h(() => n.staticTotal ? !1 : n.filterTotal !== n.total), A = h(() => Number(n.pageCount) || 7), k = h(() => window.$getType(n.remoteData) === "String"), w = h(() => k.value ? "slot, ->, prev, pager, next, sizes" : "slot, ->"), p = [
|
|
1421
1421
|
{
|
|
1422
1422
|
label: window.$l("Current Page"),
|
|
1423
1423
|
value: 0
|
|
@@ -1427,64 +1427,64 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1427
1427
|
value: 1
|
|
1428
1428
|
}
|
|
1429
1429
|
];
|
|
1430
|
-
return (i,
|
|
1431
|
-
const r = I("el-option"),
|
|
1432
|
-
return c(),
|
|
1430
|
+
return (i, y) => {
|
|
1431
|
+
const r = I("el-option"), s = I("el-select"), _ = I("el-pagination");
|
|
1432
|
+
return c(), M("div", eo, [
|
|
1433
1433
|
u("div", to, [
|
|
1434
1434
|
z(_, {
|
|
1435
1435
|
ref: "pagination",
|
|
1436
1436
|
background: "",
|
|
1437
|
-
layout:
|
|
1438
|
-
total:
|
|
1439
|
-
"current-page":
|
|
1440
|
-
"onUpdate:currentPage":
|
|
1441
|
-
"page-size":
|
|
1442
|
-
"page-sizes":
|
|
1443
|
-
"pager-count":
|
|
1437
|
+
layout: o(w),
|
|
1438
|
+
total: n.total,
|
|
1439
|
+
"current-page": n.pageNum,
|
|
1440
|
+
"onUpdate:currentPage": y[1] || (y[1] = (f) => n.pageNum = f),
|
|
1441
|
+
"page-size": n.pageSize,
|
|
1442
|
+
"page-sizes": n.pageSizes,
|
|
1443
|
+
"pager-count": o(A),
|
|
1444
1444
|
onSizeChange: S,
|
|
1445
1445
|
onCurrentChange: l,
|
|
1446
1446
|
class: "wp100"
|
|
1447
1447
|
}, {
|
|
1448
1448
|
default: $(() => [
|
|
1449
1449
|
u("div", oo, [
|
|
1450
|
-
|
|
1450
|
+
n.nosummary ? Y("", !0) : (c(), L(s, {
|
|
1451
1451
|
key: 0,
|
|
1452
|
-
modelValue:
|
|
1453
|
-
"onUpdate:modelValue":
|
|
1452
|
+
modelValue: o(e).summaryMode,
|
|
1453
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => o(e).summaryMode = f),
|
|
1454
1454
|
placeholder: " ",
|
|
1455
1455
|
class: "w160",
|
|
1456
1456
|
size: "normal",
|
|
1457
|
-
onChange:
|
|
1457
|
+
onChange: g
|
|
1458
1458
|
}, {
|
|
1459
1459
|
prefix: $(() => [
|
|
1460
|
-
|
|
1460
|
+
le(N(i.$l("Sum")), 1)
|
|
1461
1461
|
]),
|
|
1462
1462
|
default: $(() => [
|
|
1463
|
-
(c(),
|
|
1463
|
+
(c(), M(ie, null, de(p, (f, b) => z(r, {
|
|
1464
1464
|
key: b,
|
|
1465
|
-
label:
|
|
1466
|
-
value:
|
|
1465
|
+
label: f.label,
|
|
1466
|
+
value: f.value
|
|
1467
1467
|
}, null, 8, ["label", "value"])), 64))
|
|
1468
1468
|
]),
|
|
1469
1469
|
_: 1
|
|
1470
1470
|
}, 8, ["modelValue"])),
|
|
1471
|
-
|
|
1472
|
-
u("div", ao,
|
|
1471
|
+
n.selectionLength ? (c(), M("div", lo, [
|
|
1472
|
+
u("div", ao, N(i.$l("Selected")), 1),
|
|
1473
1473
|
u("div", no, [
|
|
1474
|
-
u("span", so,
|
|
1474
|
+
u("span", so, N(n.selectionLength), 1)
|
|
1475
1475
|
])
|
|
1476
1476
|
])) : Y("", !0),
|
|
1477
|
-
|
|
1478
|
-
u("div", io,
|
|
1477
|
+
o(O) ? (c(), M("div", ro, [
|
|
1478
|
+
u("div", io, N(i.$l("Current")), 1),
|
|
1479
1479
|
u("div", uo, [
|
|
1480
|
-
u("span", co,
|
|
1481
|
-
|
|
1482
|
-
u("span", po,
|
|
1480
|
+
u("span", co, N(i.$fa(n.filterTotal, 0)), 1),
|
|
1481
|
+
y[2] || (y[2] = u("span", { class: "p0-2 txt-dark3" }, "/", -1)),
|
|
1482
|
+
u("span", po, N(i.$fa(n.rows, 0)), 1)
|
|
1483
1483
|
])
|
|
1484
1484
|
])) : Y("", !0),
|
|
1485
1485
|
u("div", mo, [
|
|
1486
|
-
u("div", fo,
|
|
1487
|
-
u("div", go,
|
|
1486
|
+
u("div", fo, N(i.$l("Total")), 1),
|
|
1487
|
+
u("div", go, N(i.$fa(n.total, 0)), 1)
|
|
1488
1488
|
])
|
|
1489
1489
|
])
|
|
1490
1490
|
]),
|
|
@@ -1494,7 +1494,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1494
1494
|
]);
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
}), Me = /* @__PURE__ */ ue(ho, [["__scopeId", "data-v-1cd61412"]]), _o = ["id"], bo =
|
|
1497
|
+
}), Me = /* @__PURE__ */ ue(ho, [["__scopeId", "data-v-1cd61412"]]), _o = ["id"], bo = E({
|
|
1498
1498
|
name: "MvcTableGroupMain",
|
|
1499
1499
|
inheritAttrs: !1
|
|
1500
1500
|
}), vo = /* @__PURE__ */ Object.assign(bo, {
|
|
@@ -1580,8 +1580,8 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1580
1580
|
default: /* @__PURE__ */ Object.create(null)
|
|
1581
1581
|
}
|
|
1582
1582
|
},
|
|
1583
|
-
setup(
|
|
1584
|
-
const e =
|
|
1583
|
+
setup(T, { expose: V, emit: n }) {
|
|
1584
|
+
const e = T, t = G({
|
|
1585
1585
|
loading: !0,
|
|
1586
1586
|
tableKey: 0,
|
|
1587
1587
|
pageStart: 1,
|
|
@@ -1595,203 +1595,203 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1595
1595
|
summaryMode: 1,
|
|
1596
1596
|
tableId: "",
|
|
1597
1597
|
sizeChanged: !1
|
|
1598
|
-
}), { proxy: S } =
|
|
1598
|
+
}), { proxy: S } = ee();
|
|
1599
1599
|
pe("store").table();
|
|
1600
|
-
const
|
|
1600
|
+
const g = be();
|
|
1601
1601
|
Ae(() => {
|
|
1602
|
-
|
|
1602
|
+
t.tableId = `Table${+/* @__PURE__ */ new Date()}_${window.$rn(9999)}`;
|
|
1603
1603
|
});
|
|
1604
|
-
const O =
|
|
1605
|
-
const { refresh: U, remote:
|
|
1606
|
-
ne.value && U || (
|
|
1607
|
-
},
|
|
1608
|
-
|
|
1609
|
-
}, w = async (
|
|
1604
|
+
const O = n, A = async (B = {}) => {
|
|
1605
|
+
const { refresh: U, remote: F } = B;
|
|
1606
|
+
ne.value && U || (B ? (t.pageStart = B.pageStart || 1, B.pageSize && (t.pageSize = B.pageSize), delete B.pageStart, delete B.pageSize, delete B.refresh, delete B.remote, t.search = B) : t.pageStart = 1, await w({ remote: F }));
|
|
1607
|
+
}, k = (B) => {
|
|
1608
|
+
B || t.tableKey++;
|
|
1609
|
+
}, w = async (B = {}, U) => {
|
|
1610
1610
|
var X;
|
|
1611
|
-
const { remote:
|
|
1611
|
+
const { remote: F } = B;
|
|
1612
1612
|
if (e.loadData !== void 0) {
|
|
1613
|
-
|
|
1614
|
-
let
|
|
1615
|
-
e.pageSize &&
|
|
1616
|
-
const
|
|
1617
|
-
pageStart:
|
|
1618
|
-
pageSize:
|
|
1619
|
-
...
|
|
1613
|
+
t.loading = !0;
|
|
1614
|
+
let te;
|
|
1615
|
+
e.pageSize && t.sizeChanged === !1 ? te = e.pageSize : te = t.pageSize;
|
|
1616
|
+
const oe = {
|
|
1617
|
+
pageStart: t.pageStart,
|
|
1618
|
+
pageSize: te,
|
|
1619
|
+
...t.search
|
|
1620
1620
|
};
|
|
1621
|
-
|
|
1622
|
-
const ye = await e.loadData(
|
|
1623
|
-
|
|
1621
|
+
t.pageSize = oe.pageSize, t.pageStart = oe.pageStart, (X = e.groupInfo) != null && X.value && (oe.groupBy = e.groupInfo.value), F && (oe.remote = !0);
|
|
1622
|
+
const ye = await e.loadData(oe);
|
|
1623
|
+
t.loading = !1, ye ? (t.dt = ye, t.filter = JSON.parse(JSON.stringify(ye))) : (t.dt = {
|
|
1624
1624
|
total: 0,
|
|
1625
1625
|
list: []
|
|
1626
|
-
},
|
|
1626
|
+
}, t.filter = {
|
|
1627
1627
|
total: 0,
|
|
1628
1628
|
list: []
|
|
1629
|
-
}), se.value ?
|
|
1629
|
+
}), se.value ? y() : O("list-change", ye.list || []);
|
|
1630
1630
|
}
|
|
1631
|
-
|
|
1632
|
-
},
|
|
1633
|
-
|
|
1634
|
-
}, i = ({ columns:
|
|
1635
|
-
let { v: U = e.filter } =
|
|
1636
|
-
U || (U =
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
}), X.length ? r(X, U) : (
|
|
1642
|
-
}, r = (
|
|
1643
|
-
const
|
|
1644
|
-
return
|
|
1645
|
-
let
|
|
1646
|
-
|
|
1647
|
-
const ye = String(X[
|
|
1648
|
-
let we = U[
|
|
1631
|
+
m();
|
|
1632
|
+
}, p = (B) => {
|
|
1633
|
+
t.summaryMode = B;
|
|
1634
|
+
}, i = ({ columns: B, data: U }) => Ee({ columns: B, data: U, currency: window.currency }), y = (B = {}) => {
|
|
1635
|
+
let { v: U = e.filter } = B;
|
|
1636
|
+
U || (U = B);
|
|
1637
|
+
const F = Object.keys(U), X = [];
|
|
1638
|
+
return F.forEach((te) => {
|
|
1639
|
+
const oe = U[te];
|
|
1640
|
+
oe && oe.length && X.push(te);
|
|
1641
|
+
}), X.length ? r(X, U) : (t.dt.list = [...t.filter.list], t.filter.total = t.dt.total, O("list-change", t.dt.list), t.filter.list);
|
|
1642
|
+
}, r = (B, U) => {
|
|
1643
|
+
const F = [];
|
|
1644
|
+
return t.filter.list.forEach((X) => {
|
|
1645
|
+
let te = !1;
|
|
1646
|
+
B.forEach((oe) => {
|
|
1647
|
+
const ye = String(X[oe]).toLowerCase();
|
|
1648
|
+
let we = U[oe];
|
|
1649
1649
|
if (window.$getType(we) === "Array")
|
|
1650
1650
|
try {
|
|
1651
1651
|
we.forEach((Se) => {
|
|
1652
1652
|
if (Se && ye.includes(String(Se).toLowerCase()))
|
|
1653
|
-
throw
|
|
1653
|
+
throw te = !0, new Error();
|
|
1654
1654
|
});
|
|
1655
1655
|
} catch {
|
|
1656
1656
|
}
|
|
1657
|
-
else ye.includes(we.toLowerCase()) && (
|
|
1658
|
-
}),
|
|
1659
|
-
}),
|
|
1660
|
-
},
|
|
1661
|
-
|
|
1657
|
+
else ye.includes(we.toLowerCase()) && (te = !0);
|
|
1658
|
+
}), te && F.push(X);
|
|
1659
|
+
}), t.dt.list = F, t.filter.total = F.length, O("list-change", F), F;
|
|
1660
|
+
}, s = () => {
|
|
1661
|
+
t.dt = {
|
|
1662
1662
|
list: e.list,
|
|
1663
1663
|
total: e.list.length
|
|
1664
|
-
},
|
|
1665
|
-
}, _ = ({ row:
|
|
1666
|
-
U === void 0 ?
|
|
1667
|
-
...
|
|
1668
|
-
...
|
|
1669
|
-
} :
|
|
1670
|
-
},
|
|
1671
|
-
|
|
1672
|
-
}, b = (
|
|
1673
|
-
|
|
1674
|
-
},
|
|
1675
|
-
|
|
1676
|
-
}, C = (
|
|
1677
|
-
|
|
1678
|
-
},
|
|
1679
|
-
O("sort-change",
|
|
1680
|
-
},
|
|
1681
|
-
|
|
1682
|
-
}, a = (
|
|
1683
|
-
|
|
1684
|
-
}, d = (
|
|
1664
|
+
}, t.filter = JSON.parse(JSON.stringify(t.dt)), O("list-change", e.list);
|
|
1665
|
+
}, _ = ({ row: B = {}, id: U }) => {
|
|
1666
|
+
U === void 0 ? t.dt.list.unshift(B) : t.dt.list = t.dt.list.map((F) => F.id === U ? {
|
|
1667
|
+
...F,
|
|
1668
|
+
...B
|
|
1669
|
+
} : F);
|
|
1670
|
+
}, f = (B, U) => {
|
|
1671
|
+
t.dt.list = t.dt.list.filter((F) => F[B] !== U), t.filter.list = t.filter.list.filter((F) => F[B] !== U);
|
|
1672
|
+
}, b = (B) => {
|
|
1673
|
+
g.value.toggleRowExpansion(B);
|
|
1674
|
+
}, x = (B, U) => {
|
|
1675
|
+
g.value.toggleRowSelection(B, U);
|
|
1676
|
+
}, C = (B) => {
|
|
1677
|
+
t.selection = B, O("selection-change", B);
|
|
1678
|
+
}, j = (B) => {
|
|
1679
|
+
O("sort-change", B);
|
|
1680
|
+
}, D = (B) => {
|
|
1681
|
+
t.pageSize = B, t.sizeChanged = !0, w();
|
|
1682
|
+
}, a = (B) => {
|
|
1683
|
+
t.pageStart = B, w();
|
|
1684
|
+
}, d = (B, U, F) => {
|
|
1685
1685
|
let X = localStorage.getItem(J.value);
|
|
1686
1686
|
if (X) {
|
|
1687
1687
|
X = JSON.parse(X);
|
|
1688
|
-
const { data:
|
|
1689
|
-
|
|
1688
|
+
const { data: te } = X.filter1((oe) => oe.prop === F.property);
|
|
1689
|
+
te && (te.width = F.width, localStorage.setItem(J.value, JSON.stringify(X)));
|
|
1690
1690
|
}
|
|
1691
|
-
},
|
|
1692
|
-
|
|
1691
|
+
}, m = () => {
|
|
1692
|
+
g.value && g.value.setScrollTop(0);
|
|
1693
1693
|
}, P = () => {
|
|
1694
|
-
|
|
1695
|
-
}, H = (
|
|
1696
|
-
|
|
1697
|
-
}, ne = h(() => e.loading ||
|
|
1694
|
+
t.loading = !1;
|
|
1695
|
+
}, H = (B) => {
|
|
1696
|
+
t.dt.list.unshift(B);
|
|
1697
|
+
}, ne = h(() => e.loading || t.loading), q = h(() => {
|
|
1698
1698
|
const {
|
|
1699
|
-
options: { tableHeight:
|
|
1699
|
+
options: { tableHeight: B },
|
|
1700
1700
|
page: U
|
|
1701
1701
|
} = window.global.config;
|
|
1702
|
-
let
|
|
1703
|
-
return e.nofooter && (
|
|
1704
|
-
}), se = h(() => 0),
|
|
1705
|
-
|
|
1706
|
-
() =>
|
|
1707
|
-
(
|
|
1708
|
-
if (
|
|
1709
|
-
const U = window.$getType(
|
|
1710
|
-
U === "String" ? e.immediate && w() : U === "Number" && (
|
|
1702
|
+
let F = e.height || B;
|
|
1703
|
+
return e.nofooter && (F = F + U.footer), e.noheader && (F = F + U.header), e.minusHeight && (F = F - Number(e.minusHeight)), F < 200 && (F = 200), F;
|
|
1704
|
+
}), se = h(() => 0), R = h(() => e.list === void 0 ? String(+/* @__PURE__ */ new Date()) : +/* @__PURE__ */ new Date()), ce = h(() => window.$getType(R.value) === "String"), J = h(() => e.tableName + "_Column"), _e = h(() => t.summaryMode === 0 ? i : e.summaryMethod), $e = h(() => e.noheader ? { top: 0 } : { top: "56px" });
|
|
1705
|
+
Z(
|
|
1706
|
+
() => R.value,
|
|
1707
|
+
(B) => {
|
|
1708
|
+
if (B) {
|
|
1709
|
+
const U = window.$getType(B);
|
|
1710
|
+
U === "String" ? e.immediate && w() : U === "Number" && (t.loading = !1, s());
|
|
1711
1711
|
}
|
|
1712
1712
|
},
|
|
1713
1713
|
{
|
|
1714
1714
|
immediate: !0
|
|
1715
1715
|
}
|
|
1716
1716
|
), V({
|
|
1717
|
-
toFilter:
|
|
1718
|
-
initTable:
|
|
1717
|
+
toFilter: y,
|
|
1718
|
+
initTable: A,
|
|
1719
1719
|
editRow: _,
|
|
1720
|
-
removeRow:
|
|
1721
|
-
refreshTable:
|
|
1720
|
+
removeRow: f,
|
|
1721
|
+
refreshTable: k,
|
|
1722
1722
|
toggleRowExpansion: b,
|
|
1723
|
-
toggleRowSelection:
|
|
1723
|
+
toggleRowSelection: x,
|
|
1724
1724
|
toStop: P,
|
|
1725
1725
|
toAdd: H
|
|
1726
1726
|
});
|
|
1727
1727
|
const Ne = {
|
|
1728
1728
|
"popper-class": "maxw300"
|
|
1729
1729
|
};
|
|
1730
|
-
return (
|
|
1731
|
-
var
|
|
1732
|
-
const
|
|
1733
|
-
return c(),
|
|
1734
|
-
class: K(["MvcTableGroupMain",
|
|
1735
|
-
id: t
|
|
1730
|
+
return (B, U) => {
|
|
1731
|
+
var te, oe;
|
|
1732
|
+
const F = I("Loading"), X = I("el-table");
|
|
1733
|
+
return c(), M("div", {
|
|
1734
|
+
class: K(["MvcTableGroupMain", o(ce) && "PagiTable"]),
|
|
1735
|
+
id: o(t).tableId
|
|
1736
1736
|
}, [
|
|
1737
|
-
z(
|
|
1738
|
-
loading:
|
|
1739
|
-
style: me(
|
|
1737
|
+
z(F, {
|
|
1738
|
+
loading: o(ne),
|
|
1739
|
+
style: me(o($e))
|
|
1740
1740
|
}, null, 8, ["loading", "style"]),
|
|
1741
1741
|
(c(), L(X, {
|
|
1742
1742
|
ref_key: "table",
|
|
1743
|
-
ref:
|
|
1744
|
-
key: t
|
|
1745
|
-
data: t
|
|
1743
|
+
ref: g,
|
|
1744
|
+
key: o(t).tableKey,
|
|
1745
|
+
data: o(t).dt.list,
|
|
1746
1746
|
"row-key": e.rowKey,
|
|
1747
|
-
height:
|
|
1747
|
+
height: o(q),
|
|
1748
1748
|
stripe: "",
|
|
1749
1749
|
border: "",
|
|
1750
|
-
"default-sort":
|
|
1750
|
+
"default-sort": T.defaultSort,
|
|
1751
1751
|
"show-summary": e.showSummary,
|
|
1752
|
-
"summary-method":
|
|
1752
|
+
"summary-method": o(_e),
|
|
1753
1753
|
"tooltip-options": Ne,
|
|
1754
1754
|
"cell-class-name": e.cellClassName,
|
|
1755
1755
|
onHeaderDragend: d,
|
|
1756
1756
|
onSelectionChange: C,
|
|
1757
|
-
onSortChange:
|
|
1758
|
-
onToggleRowSelection:
|
|
1757
|
+
onSortChange: j,
|
|
1758
|
+
onToggleRowSelection: x
|
|
1759
1759
|
}, {
|
|
1760
1760
|
default: $(() => [
|
|
1761
|
-
z(
|
|
1761
|
+
z(o(Xt), {
|
|
1762
1762
|
"table-name": e.tableName,
|
|
1763
1763
|
group: e.groupInfo
|
|
1764
1764
|
}, {
|
|
1765
1765
|
default: $(() => [
|
|
1766
|
-
W(
|
|
1766
|
+
W(B.$slots, "default", {}, void 0, !0)
|
|
1767
1767
|
]),
|
|
1768
1768
|
_: 3
|
|
1769
1769
|
}, 8, ["table-name", "group"])
|
|
1770
1770
|
]),
|
|
1771
1771
|
_: 3
|
|
1772
1772
|
}, 8, ["data", "row-key", "height", "default-sort", "show-summary", "summary-method", "cell-class-name"])),
|
|
1773
|
-
e.nofooter ? Y("", !0) : (c(), L(Me,
|
|
1773
|
+
e.nofooter ? Y("", !0) : (c(), L(Me, Q({
|
|
1774
1774
|
key: 0,
|
|
1775
1775
|
ref: "footer"
|
|
1776
|
-
},
|
|
1776
|
+
}, B.$attrs, {
|
|
1777
1777
|
nosummary: !e.showSummary,
|
|
1778
|
-
"page-num": t
|
|
1779
|
-
"page-size": t
|
|
1780
|
-
rows: (
|
|
1781
|
-
"filter-rows": (
|
|
1782
|
-
total: e.total || t
|
|
1783
|
-
"filter-total": t
|
|
1784
|
-
"selection-length": t
|
|
1785
|
-
"remote-data":
|
|
1778
|
+
"page-num": o(t).pageStart,
|
|
1779
|
+
"page-size": o(t).pageSize,
|
|
1780
|
+
rows: (te = o(t).filter.list) == null ? void 0 : te.length,
|
|
1781
|
+
"filter-rows": (oe = o(t).dt.list) == null ? void 0 : oe.length,
|
|
1782
|
+
total: e.total || o(t).dt.total,
|
|
1783
|
+
"filter-total": o(t).filter.total,
|
|
1784
|
+
"selection-length": o(t).selection.length,
|
|
1785
|
+
"remote-data": o(R),
|
|
1786
1786
|
"static-total": !!e.total,
|
|
1787
|
-
onSizeChange:
|
|
1787
|
+
onSizeChange: D,
|
|
1788
1788
|
onPageChange: a,
|
|
1789
|
-
onSummaryModeChange:
|
|
1789
|
+
onSummaryModeChange: p
|
|
1790
1790
|
}), null, 16, ["nosummary", "page-num", "page-size", "rows", "filter-rows", "total", "filter-total", "selection-length", "remote-data", "static-total"]))
|
|
1791
1791
|
], 10, _o);
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
|
-
}), $o = /* @__PURE__ */ ue(vo, [["__scopeId", "data-v-7ba6549a"]]), wo =
|
|
1794
|
+
}), $o = /* @__PURE__ */ ue(vo, [["__scopeId", "data-v-7ba6549a"]]), wo = E({
|
|
1795
1795
|
name: "Table",
|
|
1796
1796
|
inheritAttrs: !1
|
|
1797
1797
|
}), So = /* @__PURE__ */ Object.assign(wo, {
|
|
@@ -1813,68 +1813,68 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1813
1813
|
default: !0
|
|
1814
1814
|
}
|
|
1815
1815
|
},
|
|
1816
|
-
setup(
|
|
1817
|
-
const e =
|
|
1816
|
+
setup(T, { expose: V, emit: n }) {
|
|
1817
|
+
const e = n, t = T, S = G({
|
|
1818
1818
|
columnInfo: {},
|
|
1819
1819
|
selection: [],
|
|
1820
1820
|
list: [],
|
|
1821
1821
|
groupInfo: {}
|
|
1822
1822
|
}), l = be();
|
|
1823
1823
|
be();
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1827
|
-
|
|
1824
|
+
const g = be(), { proxy: O } = ee(), A = (a) => {
|
|
1825
|
+
g.value.toFilter(a);
|
|
1826
|
+
}, k = (a) => {
|
|
1827
|
+
g.value.initTable(a);
|
|
1828
1828
|
}, w = (a) => {
|
|
1829
|
-
|
|
1830
|
-
},
|
|
1831
|
-
|
|
1829
|
+
g.value.editRow(a);
|
|
1830
|
+
}, p = () => {
|
|
1831
|
+
g.value.refreshTable();
|
|
1832
1832
|
}, i = (a) => {
|
|
1833
1833
|
S.list = a;
|
|
1834
|
-
},
|
|
1834
|
+
}, y = (a) => {
|
|
1835
1835
|
S.selection = a;
|
|
1836
1836
|
}, r = (a) => {
|
|
1837
|
-
|
|
1838
|
-
},
|
|
1839
|
-
|
|
1837
|
+
g.value.toggleRowExpansion(a);
|
|
1838
|
+
}, s = (a, d) => {
|
|
1839
|
+
g.value.toggleRowSelection(a, d);
|
|
1840
1840
|
}, _ = () => {
|
|
1841
|
-
O.$attrs.list ||
|
|
1842
|
-
},
|
|
1841
|
+
O.$attrs.list || g.value.initTable({ refresh: !0, remote: t.remote }), t.customRefresh && e("customRefreshFunc");
|
|
1842
|
+
}, f = (a) => {
|
|
1843
1843
|
S.groupInfo = a, ge(() => {
|
|
1844
|
-
|
|
1844
|
+
g.value.initTable();
|
|
1845
1845
|
});
|
|
1846
1846
|
}, b = () => {
|
|
1847
|
-
|
|
1848
|
-
},
|
|
1849
|
-
|
|
1847
|
+
g.value.$refs.table.clearSelection();
|
|
1848
|
+
}, x = () => {
|
|
1849
|
+
g.value.toStop();
|
|
1850
1850
|
}, C = (a) => {
|
|
1851
|
-
|
|
1852
|
-
},
|
|
1853
|
-
|
|
1854
|
-
},
|
|
1855
|
-
return h(() => `${
|
|
1856
|
-
initTable:
|
|
1851
|
+
g.value.toAdd(a);
|
|
1852
|
+
}, j = (a, d) => {
|
|
1853
|
+
g.value.removeRow(a, d);
|
|
1854
|
+
}, D = h(() => O.$attrs["table-name"]);
|
|
1855
|
+
return h(() => `${D.value}_Column`), V({
|
|
1856
|
+
initTable: k,
|
|
1857
1857
|
editRow: w,
|
|
1858
|
-
removeRow:
|
|
1859
|
-
toFilter:
|
|
1858
|
+
removeRow: j,
|
|
1859
|
+
toFilter: A,
|
|
1860
1860
|
toggleRowExpansion: r,
|
|
1861
|
-
toggleRowSelection:
|
|
1862
|
-
toInitTable:
|
|
1861
|
+
toggleRowSelection: s,
|
|
1862
|
+
toInitTable: p,
|
|
1863
1863
|
clearSelection: b,
|
|
1864
|
-
toStop:
|
|
1864
|
+
toStop: x,
|
|
1865
1865
|
toAdd: C
|
|
1866
|
-
}), (a, d) => (c(),
|
|
1867
|
-
class: K(["Table",
|
|
1866
|
+
}), (a, d) => (c(), M("div", {
|
|
1867
|
+
class: K(["Table", t.tableClass])
|
|
1868
1868
|
}, [
|
|
1869
|
-
|
|
1869
|
+
t.noheader ? Y("", !0) : (c(), L(Qt, Q({
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
ref_key: "header",
|
|
1872
1872
|
ref: l
|
|
1873
1873
|
}, a.$attrs, {
|
|
1874
|
-
list:
|
|
1875
|
-
selection:
|
|
1876
|
-
onToInitTable:
|
|
1877
|
-
onGroupChange:
|
|
1874
|
+
list: o(S).list,
|
|
1875
|
+
selection: o(S).selection,
|
|
1876
|
+
onToInitTable: p,
|
|
1877
|
+
onGroupChange: f,
|
|
1878
1878
|
onRefresh: _
|
|
1879
1879
|
}), {
|
|
1880
1880
|
default: $(() => [
|
|
@@ -1883,13 +1883,13 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1883
1883
|
]),
|
|
1884
1884
|
_: 3
|
|
1885
1885
|
}, 16, ["list", "selection"])),
|
|
1886
|
-
z($o,
|
|
1886
|
+
z($o, Q({
|
|
1887
1887
|
ref_key: "main",
|
|
1888
|
-
ref:
|
|
1888
|
+
ref: g
|
|
1889
1889
|
}, a.$attrs, {
|
|
1890
|
-
noheader:
|
|
1891
|
-
"group-info":
|
|
1892
|
-
onSelectionChange:
|
|
1890
|
+
noheader: t.noheader,
|
|
1891
|
+
"group-info": o(S).groupInfo,
|
|
1892
|
+
onSelectionChange: y,
|
|
1893
1893
|
onListChange: i
|
|
1894
1894
|
}), {
|
|
1895
1895
|
default: $(() => [
|
|
@@ -1902,7 +1902,7 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1902
1902
|
}), Co = /* @__PURE__ */ ue(So, [["__scopeId", "data-v-33f857f8"]]), ko = { class: "SuperTextarea relative" }, xo = {
|
|
1903
1903
|
key: 0,
|
|
1904
1904
|
class: "absFull flexMode hc vc z9"
|
|
1905
|
-
}, Vo =
|
|
1905
|
+
}, Vo = E({
|
|
1906
1906
|
name: "SuperTextarea"
|
|
1907
1907
|
}), Oo = /* @__PURE__ */ Object.assign(Vo, {
|
|
1908
1908
|
props: {
|
|
@@ -1945,89 +1945,167 @@ const Pe = { class: "fw700" }, Ue = F({
|
|
|
1945
1945
|
}
|
|
1946
1946
|
},
|
|
1947
1947
|
emits: ["total", "update:modelValue", "blur"],
|
|
1948
|
-
setup(
|
|
1949
|
-
const e =
|
|
1948
|
+
setup(T, { expose: V, emit: n }) {
|
|
1949
|
+
const e = T, t = G({ v: "", total: 0, mounted: !1 }), { proxy: S } = ee();
|
|
1950
1950
|
re(() => {
|
|
1951
|
-
e.focus &&
|
|
1951
|
+
e.focus && g(v);
|
|
1952
1952
|
});
|
|
1953
|
-
const l =
|
|
1953
|
+
const l = n, g = (_) => {
|
|
1954
1954
|
ge(() => {
|
|
1955
1955
|
S.$refs.input.focus(), _ && S.$refs.input.select();
|
|
1956
1956
|
});
|
|
1957
1957
|
}, O = (_) => {
|
|
1958
|
-
let
|
|
1959
|
-
const
|
|
1958
|
+
let f = 0, b = [];
|
|
1959
|
+
const x = [];
|
|
1960
1960
|
if (_) {
|
|
1961
1961
|
if (b = _.split(`
|
|
1962
1962
|
`), b.forEach((C) => {
|
|
1963
|
-
C.trim() && (
|
|
1963
|
+
C.trim() && (f++, x.push(C));
|
|
1964
1964
|
}), !w.value) {
|
|
1965
|
-
|
|
1965
|
+
t.v = i.value ? [] : "";
|
|
1966
1966
|
return;
|
|
1967
1967
|
}
|
|
1968
|
-
w.value > -1 &&
|
|
1968
|
+
w.value > -1 && f > w.value && (b = x.slice(0, w.value), t.v = b.join(e.sep), f = w.value), l("update:modelValue", i.value ? b : t.v);
|
|
1969
1969
|
} else
|
|
1970
1970
|
l("update:modelValue", i.value ? [] : "");
|
|
1971
|
-
|
|
1972
|
-
}, D = () => {
|
|
1973
|
-
o.v = "", o.total = 0, l("update:modelValue", ""), l("change", ""), y();
|
|
1971
|
+
t.total = f, l("total", f);
|
|
1974
1972
|
}, A = () => {
|
|
1973
|
+
t.v = "", t.total = 0, l("update:modelValue", ""), l("change", ""), g();
|
|
1974
|
+
}, k = () => {
|
|
1975
1975
|
l("blur");
|
|
1976
|
-
}, w = h(() => Number(e.max) || 0),
|
|
1977
|
-
${
|
|
1976
|
+
}, w = h(() => Number(e.max) || 0), p = h(() => t.total === w.value ? "txt-red" : "txt-blue"), i = h(() => window.$getType(e.modelValue) === "Array"), y = h(() => window.$l("One per Line")), r = h(() => e.placeholder ? `${window.$l(e.placeholder)}
|
|
1977
|
+
${y.value}` : `${y.value}`), s = h(() => i.value ? e.modelValue.join(e.sep) : e.modelValue);
|
|
1978
1978
|
return Te(() => {
|
|
1979
|
-
|
|
1979
|
+
s.value && w.value ? s.value !== t.v && (t.v = s.value, O(s.value)) : (t.v = "", t.total = 0);
|
|
1980
1980
|
}), V({
|
|
1981
|
-
toFocus:
|
|
1982
|
-
}), (_,
|
|
1981
|
+
toFocus: g
|
|
1982
|
+
}), (_, f) => {
|
|
1983
1983
|
const b = I("el-input");
|
|
1984
|
-
return c(),
|
|
1985
|
-
e.loading ? (c(),
|
|
1984
|
+
return c(), M("div", ko, [
|
|
1985
|
+
e.loading ? (c(), M("div", xo, [...f[1] || (f[1] = [
|
|
1986
1986
|
u("i", { class: "imicon im-loading ani-rotate" }, null, -1)
|
|
1987
1987
|
])])) : Y("", !0),
|
|
1988
1988
|
z(b, {
|
|
1989
1989
|
ref: "input",
|
|
1990
|
-
modelValue: t
|
|
1991
|
-
"onUpdate:modelValue":
|
|
1990
|
+
modelValue: o(t).v,
|
|
1991
|
+
"onUpdate:modelValue": f[0] || (f[0] = (x) => o(t).v = x),
|
|
1992
1992
|
rows: e.rows,
|
|
1993
1993
|
resize: e.resize,
|
|
1994
1994
|
type: "textarea",
|
|
1995
|
-
placeholder: _.$l(
|
|
1995
|
+
placeholder: _.$l(o(r)),
|
|
1996
1996
|
class: K(["fullTextArea", _.$slots.prefix && "prefix"]),
|
|
1997
1997
|
disabled: e.loading || e.disabled,
|
|
1998
1998
|
onInput: O,
|
|
1999
|
-
onBlur:
|
|
1999
|
+
onBlur: k
|
|
2000
2000
|
}, null, 8, ["modelValue", "rows", "resize", "placeholder", "class", "disabled"]),
|
|
2001
|
-
|
|
2001
|
+
o(w) > -1 ? (c(), M("div", {
|
|
2002
2002
|
key: 1,
|
|
2003
2003
|
class: K(["countArea abs fs12 txt-blue", e.rows > 1 && "lh20"])
|
|
2004
2004
|
}, [
|
|
2005
2005
|
u("span", {
|
|
2006
|
-
class: K(
|
|
2007
|
-
},
|
|
2008
|
-
|
|
2009
|
-
u("span", null,
|
|
2006
|
+
class: K(o(p))
|
|
2007
|
+
}, N(o(t).total), 3),
|
|
2008
|
+
f[2] || (f[2] = u("span", null, " / ", -1)),
|
|
2009
|
+
u("span", null, N(o(w)), 1)
|
|
2010
2010
|
], 2)) : Y("", !0),
|
|
2011
2011
|
u("div", {
|
|
2012
|
-
class: K(["clearArea abs txt-dark3 hover-txt-red5", [t
|
|
2013
|
-
onClick:
|
|
2014
|
-
}, [...
|
|
2012
|
+
class: K(["clearArea abs txt-dark3 hover-txt-red5", [o(t).v && "content"]]),
|
|
2013
|
+
onClick: A
|
|
2014
|
+
}, [...f[3] || (f[3] = [
|
|
2015
2015
|
u("i", { class: "imicon im-close-circle" }, null, -1)
|
|
2016
2016
|
])], 2),
|
|
2017
|
-
_.$slots.prefix ? (c(),
|
|
2017
|
+
_.$slots.prefix ? (c(), M("div", {
|
|
2018
2018
|
key: 2,
|
|
2019
2019
|
class: "prefix abs l t",
|
|
2020
2020
|
style: { padding: "6px 11px" },
|
|
2021
|
-
onClick: he((
|
|
2021
|
+
onClick: he((x) => null, ["stop"])
|
|
2022
2022
|
}, [
|
|
2023
2023
|
W(_.$slots, "prefix", {}, void 0, !0)
|
|
2024
2024
|
])) : Y("", !0)
|
|
2025
2025
|
]);
|
|
2026
2026
|
};
|
|
2027
2027
|
}
|
|
2028
|
-
}), Do = /* @__PURE__ */ ue(Oo, [["__scopeId", "data-v-005d323b"]]), Ao =
|
|
2028
|
+
}), Do = /* @__PURE__ */ ue(Oo, [["__scopeId", "data-v-005d323b"]]), Ao = E({
|
|
2029
|
+
name: "MvcFormItemFilter",
|
|
2030
|
+
setup: (T, V) => {
|
|
2031
|
+
const n = (e) => Array.isArray(e) ? e.filter((t) => t.children !== "v-if").map((t) => {
|
|
2032
|
+
var l, g;
|
|
2033
|
+
return t && (window.$getType(t.children) === "Array" ? t.children = n(t.children) : ((l = t.type) == null ? void 0 : l.name) === "ElFormItem" && (g = t.props) != null && g.label && (t.props.label = t.props.label.$l()), t);
|
|
2034
|
+
}) : [];
|
|
2035
|
+
return () => n(V.slots.default()[0].children);
|
|
2036
|
+
}
|
|
2037
|
+
}), To = { class: "MvcForm" }, Mo = E({
|
|
2038
|
+
name: "MvcForm"
|
|
2039
|
+
}), No = /* @__PURE__ */ Object.assign(Mo, {
|
|
2040
|
+
props: {
|
|
2041
|
+
modelValue: {
|
|
2042
|
+
type: Object,
|
|
2043
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
2044
|
+
},
|
|
2045
|
+
rules: {
|
|
2046
|
+
type: Object,
|
|
2047
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
2048
|
+
},
|
|
2049
|
+
size: {
|
|
2050
|
+
type: String,
|
|
2051
|
+
default: "large"
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
setup(T, { expose: V, emit: n }) {
|
|
2055
|
+
const e = T, t = G({
|
|
2056
|
+
form: {}
|
|
2057
|
+
}), { proxy: S } = ee(), l = n, g = async () => await S.$refs.form.validate() ? O() : !1, O = () => t.form, A = h(() => {
|
|
2058
|
+
const k = {};
|
|
2059
|
+
for (let w in e.rules)
|
|
2060
|
+
k[w] = e.rules[w].map((p) => (p.message && (p.message = window.$l(p.message)), p));
|
|
2061
|
+
return k;
|
|
2062
|
+
});
|
|
2063
|
+
return Z(
|
|
2064
|
+
() => t.form,
|
|
2065
|
+
(k) => {
|
|
2066
|
+
k && JSON.stringify(k) !== JSON.stringify(e.modelValue) && l("update:modelValue", k);
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
deep: !0
|
|
2070
|
+
}
|
|
2071
|
+
), Z(
|
|
2072
|
+
() => e.modelValue,
|
|
2073
|
+
(k) => {
|
|
2074
|
+
k && JSON.stringify(k) !== JSON.stringify(t.form) && (t.form = k);
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
immediate: !0,
|
|
2078
|
+
deep: !0
|
|
2079
|
+
}
|
|
2080
|
+
), V({
|
|
2081
|
+
validate: g
|
|
2082
|
+
}), (k, w) => {
|
|
2083
|
+
const p = I("el-form");
|
|
2084
|
+
return c(), M("div", To, [
|
|
2085
|
+
z(p, {
|
|
2086
|
+
ref: "form",
|
|
2087
|
+
model: o(t).form,
|
|
2088
|
+
rules: o(A),
|
|
2089
|
+
size: e.size,
|
|
2090
|
+
"validate-on-rule-change": !1,
|
|
2091
|
+
"label-position": "top"
|
|
2092
|
+
}, {
|
|
2093
|
+
default: $(() => [
|
|
2094
|
+
z(o(Ao), null, {
|
|
2095
|
+
default: $(() => [
|
|
2096
|
+
W(k.$slots, "default")
|
|
2097
|
+
]),
|
|
2098
|
+
_: 3
|
|
2099
|
+
})
|
|
2100
|
+
]),
|
|
2101
|
+
_: 3
|
|
2102
|
+
}, 8, ["model", "rules", "size"])
|
|
2103
|
+
]);
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
}), Io = { class: "SuperAiApp relative" }, zo = { class: "flexMode vc g8" }, jo = { class: "txt-nowrap" }, Bo = { class: "txt-dark5" }, Yo = E({
|
|
2029
2107
|
name: "SuperAiApp"
|
|
2030
|
-
}),
|
|
2108
|
+
}), Lo = /* @__PURE__ */ Object.assign(Yo, {
|
|
2031
2109
|
props: {
|
|
2032
2110
|
modelValue: {
|
|
2033
2111
|
type: Number,
|
|
@@ -2052,70 +2130,70 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2052
2130
|
"update:orgs",
|
|
2053
2131
|
"update:name"
|
|
2054
2132
|
],
|
|
2055
|
-
setup(
|
|
2056
|
-
const
|
|
2133
|
+
setup(T, { emit: V }) {
|
|
2134
|
+
const n = T, e = G({
|
|
2057
2135
|
loading: !1,
|
|
2058
2136
|
single: "",
|
|
2059
2137
|
multiple: [],
|
|
2060
2138
|
options: []
|
|
2061
2139
|
}), S = pe("store").ai();
|
|
2062
2140
|
re(() => {
|
|
2063
|
-
|
|
2141
|
+
g();
|
|
2064
2142
|
});
|
|
2065
|
-
const l = V,
|
|
2066
|
-
if (
|
|
2143
|
+
const l = V, g = async () => {
|
|
2144
|
+
if (A.value.length) {
|
|
2067
2145
|
l("success");
|
|
2068
2146
|
return;
|
|
2069
2147
|
}
|
|
2070
2148
|
e.loading = !0, await S.getAppOptions(), e.loading = !1, l("success");
|
|
2071
|
-
}, O = (
|
|
2072
|
-
l("update:modelValue",
|
|
2073
|
-
const { data: i } = S.appOptions.filter1((
|
|
2149
|
+
}, O = (p) => {
|
|
2150
|
+
l("update:modelValue", p);
|
|
2151
|
+
const { data: i } = S.appOptions.filter1((y) => y.id === e.single);
|
|
2074
2152
|
i && (l("update:name", i.name), l("update:icon", i.icon), l("update:orgs", i.orgs));
|
|
2075
|
-
},
|
|
2076
|
-
return
|
|
2077
|
-
() =>
|
|
2078
|
-
(
|
|
2079
|
-
|
|
2153
|
+
}, A = h(() => S.appOptions), k = h(() => n.placeholder ? window.$l(n.placeholder) : window.$l("App")), w = h(() => A.value.filter1((i) => i.id === e.single).data);
|
|
2154
|
+
return Z(
|
|
2155
|
+
() => n.modelValue,
|
|
2156
|
+
(p) => {
|
|
2157
|
+
p && p !== e.v && (e.single = p, O(p));
|
|
2080
2158
|
},
|
|
2081
2159
|
{
|
|
2082
2160
|
immediate: !0
|
|
2083
2161
|
}
|
|
2084
|
-
),
|
|
2085
|
-
() =>
|
|
2086
|
-
(
|
|
2087
|
-
|
|
2162
|
+
), Z(
|
|
2163
|
+
() => A.value,
|
|
2164
|
+
(p) => {
|
|
2165
|
+
n.useDefault && (p == null ? void 0 : p.length) === 1 && (e.single = p[0].id, O(p[0].id));
|
|
2088
2166
|
},
|
|
2089
2167
|
{
|
|
2090
2168
|
immediate: !0
|
|
2091
2169
|
}
|
|
2092
|
-
), (
|
|
2093
|
-
const
|
|
2094
|
-
return c(),
|
|
2095
|
-
|
|
2096
|
-
z(_,
|
|
2097
|
-
modelValue:
|
|
2098
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2099
|
-
placeholder:
|
|
2170
|
+
), (p, i) => {
|
|
2171
|
+
const y = I("IconLoading"), r = I("Image"), s = I("el-option"), _ = I("el-select");
|
|
2172
|
+
return c(), M("div", Io, [
|
|
2173
|
+
o(e).loading ? (c(), L(y, { key: 0 })) : Y("", !0),
|
|
2174
|
+
z(_, Q({
|
|
2175
|
+
modelValue: o(e).single,
|
|
2176
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => o(e).single = f),
|
|
2177
|
+
placeholder: o(k),
|
|
2100
2178
|
filterable: "",
|
|
2101
2179
|
clearable: "",
|
|
2102
2180
|
"default-first-option": "",
|
|
2103
2181
|
"fit-input-width": ""
|
|
2104
|
-
},
|
|
2182
|
+
}, p.$attrs, { onChange: O }), ae({
|
|
2105
2183
|
default: $(() => [
|
|
2106
|
-
(c(!0),
|
|
2184
|
+
(c(!0), M(ie, null, de(o(A), (f, b) => (c(), L(s, {
|
|
2107
2185
|
key: b,
|
|
2108
|
-
label:
|
|
2109
|
-
value:
|
|
2186
|
+
label: f.label,
|
|
2187
|
+
value: f.id
|
|
2110
2188
|
}, {
|
|
2111
2189
|
default: $(() => [
|
|
2112
|
-
u("div",
|
|
2190
|
+
u("div", zo, [
|
|
2113
2191
|
z(r, {
|
|
2114
|
-
src:
|
|
2192
|
+
src: f.icon,
|
|
2115
2193
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2116
2194
|
}, null, 8, ["src"]),
|
|
2117
|
-
u("span",
|
|
2118
|
-
u("span",
|
|
2195
|
+
u("span", jo, N(f.name), 1),
|
|
2196
|
+
u("span", Bo, "(" + N(f.id) + ")", 1)
|
|
2119
2197
|
])
|
|
2120
2198
|
]),
|
|
2121
2199
|
_: 2
|
|
@@ -2123,11 +2201,11 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2123
2201
|
]),
|
|
2124
2202
|
_: 2
|
|
2125
2203
|
}, [
|
|
2126
|
-
|
|
2204
|
+
o(w) ? {
|
|
2127
2205
|
name: "prefix",
|
|
2128
2206
|
fn: $(() => [
|
|
2129
2207
|
z(r, {
|
|
2130
|
-
src:
|
|
2208
|
+
src: o(w).icon,
|
|
2131
2209
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2132
2210
|
}, null, 8, ["src"])
|
|
2133
2211
|
]),
|
|
@@ -2137,9 +2215,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2137
2215
|
]);
|
|
2138
2216
|
};
|
|
2139
2217
|
}
|
|
2140
|
-
}),
|
|
2218
|
+
}), Eo = { class: "SuperAsaOrg relative" }, Ro = { class: "inputGroup" }, Fo = { class: "inputGroupLeft noShrink" }, Po = { class: "flexMode vc g4" }, Uo = { class: "txt-dark5" }, Go = E({
|
|
2141
2219
|
name: "SuperAsaOrg"
|
|
2142
|
-
}),
|
|
2220
|
+
}), Ho = /* @__PURE__ */ Object.assign(Go, {
|
|
2143
2221
|
props: {
|
|
2144
2222
|
app: {
|
|
2145
2223
|
type: Number,
|
|
@@ -2171,85 +2249,85 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2171
2249
|
"error",
|
|
2172
2250
|
"change"
|
|
2173
2251
|
],
|
|
2174
|
-
setup(
|
|
2175
|
-
const
|
|
2252
|
+
setup(T, { emit: V }) {
|
|
2253
|
+
const n = T, e = G({
|
|
2176
2254
|
loading: !1,
|
|
2177
2255
|
single: "",
|
|
2178
2256
|
multiple: [],
|
|
2179
2257
|
options: []
|
|
2180
2258
|
}), S = pe("store").ai();
|
|
2181
2259
|
re(() => {
|
|
2182
|
-
|
|
2260
|
+
g();
|
|
2183
2261
|
});
|
|
2184
|
-
const l = V,
|
|
2185
|
-
|
|
2262
|
+
const l = V, g = async () => {
|
|
2263
|
+
p.value.length ? (e.single || O(p.value[0].id), l("success")) : l("error");
|
|
2186
2264
|
}, O = (r) => {
|
|
2187
|
-
var
|
|
2188
|
-
l("update:modelValue", r), l("update:name", (
|
|
2189
|
-
},
|
|
2190
|
-
var
|
|
2265
|
+
var s, _, f, b;
|
|
2266
|
+
l("update:modelValue", r), l("update:name", (s = i.value) == null ? void 0 : s.name), l("update:currency", (_ = i.value) == null ? void 0 : _.currency), l("update:timezone", (f = i.value) == null ? void 0 : f.timezone), l("update:readonly", (b = i.value) == null ? void 0 : b.readonly), n.changeImmediately && l("change", r), n.unTimezone || A();
|
|
2267
|
+
}, A = () => {
|
|
2268
|
+
var s;
|
|
2191
2269
|
let r = i.value;
|
|
2192
2270
|
S.saveData("accountTimezone", {
|
|
2193
2271
|
timezoneName: r == null ? void 0 : r.timezone,
|
|
2194
2272
|
tip: "Account",
|
|
2195
|
-
timezone: (
|
|
2273
|
+
timezone: (s = fe("common.timezone").filter1(
|
|
2196
2274
|
(_) => _.label === (r == null ? void 0 : r.timezone)
|
|
2197
|
-
).data) == null ? void 0 :
|
|
2275
|
+
).data) == null ? void 0 : s.value
|
|
2198
2276
|
});
|
|
2199
|
-
},
|
|
2277
|
+
}, k = () => {
|
|
2200
2278
|
e.single = "", l("update:modelValue", ""), l("update:name", ""), l("update:currency", ""), l("update:timezone", ""), l("update:readonly", !1);
|
|
2201
|
-
}, w = h(() => window.$l("Campaign Group")),
|
|
2279
|
+
}, w = h(() => window.$l("Campaign Group")), p = h(() => {
|
|
2202
2280
|
var r;
|
|
2203
|
-
return
|
|
2204
|
-
}), i = h(() =>
|
|
2205
|
-
return
|
|
2206
|
-
() =>
|
|
2281
|
+
return n.app ? ((r = S.appOptions.filter1((s) => s.id === n.app).data) == null ? void 0 : r.orgs) || [] : [];
|
|
2282
|
+
}), i = h(() => p.value.filter1((r) => r.id === e.single).data), y = h(() => !n.app);
|
|
2283
|
+
return Z(
|
|
2284
|
+
() => n.modelValue,
|
|
2207
2285
|
(r) => {
|
|
2208
|
-
r ? r !== e.single && (e.single = r, O(r)) :
|
|
2286
|
+
r ? r !== e.single && (e.single = r, O(r)) : k();
|
|
2209
2287
|
},
|
|
2210
2288
|
{
|
|
2211
2289
|
immediate: !0
|
|
2212
2290
|
}
|
|
2213
|
-
), (r,
|
|
2214
|
-
const _ = I("IconLoading"),
|
|
2215
|
-
return c(),
|
|
2216
|
-
|
|
2217
|
-
u("div",
|
|
2218
|
-
u("div",
|
|
2219
|
-
z(
|
|
2291
|
+
), (r, s) => {
|
|
2292
|
+
const _ = I("IconLoading"), f = I("el-button"), b = I("el-option"), x = I("el-select");
|
|
2293
|
+
return c(), M("div", Eo, [
|
|
2294
|
+
o(e).loading ? (c(), L(_, { key: 0 })) : Y("", !0),
|
|
2295
|
+
u("div", Ro, [
|
|
2296
|
+
u("div", Fo, [
|
|
2297
|
+
z(f, {
|
|
2220
2298
|
circle: "",
|
|
2221
|
-
onClick:
|
|
2299
|
+
onClick: s[0] || (s[0] = (C) => r.$copy(o(e).single, "ID"))
|
|
2222
2300
|
}, {
|
|
2223
|
-
icon: $(() => [...
|
|
2301
|
+
icon: $(() => [...s[2] || (s[2] = [
|
|
2224
2302
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
2225
2303
|
])]),
|
|
2226
2304
|
_: 1
|
|
2227
2305
|
})
|
|
2228
2306
|
]),
|
|
2229
|
-
z(
|
|
2230
|
-
modelValue:
|
|
2231
|
-
"onUpdate:modelValue":
|
|
2232
|
-
placeholder:
|
|
2233
|
-
disabled:
|
|
2307
|
+
z(x, Q({
|
|
2308
|
+
modelValue: o(e).single,
|
|
2309
|
+
"onUpdate:modelValue": s[1] || (s[1] = (C) => o(e).single = C),
|
|
2310
|
+
placeholder: o(w),
|
|
2311
|
+
disabled: o(y),
|
|
2234
2312
|
filterable: ""
|
|
2235
2313
|
}, r.$attrs, {
|
|
2236
2314
|
class: "inputGroupRight",
|
|
2237
2315
|
onChange: O
|
|
2238
2316
|
}), {
|
|
2239
2317
|
default: $(() => [
|
|
2240
|
-
(c(!0),
|
|
2241
|
-
key:
|
|
2318
|
+
(c(!0), M(ie, null, de(o(p), (C, j) => (c(), L(b, {
|
|
2319
|
+
key: j,
|
|
2242
2320
|
label: `${C.name} (${C.id})`,
|
|
2243
2321
|
value: C.id,
|
|
2244
|
-
disabled:
|
|
2322
|
+
disabled: n.readonly && C.readonly
|
|
2245
2323
|
}, {
|
|
2246
2324
|
default: $(() => [
|
|
2247
|
-
u("div",
|
|
2325
|
+
u("div", Po, [
|
|
2248
2326
|
u("i", {
|
|
2249
2327
|
class: K(["imicon", C.readonly ? "" : "im-writing"])
|
|
2250
2328
|
}, null, 2),
|
|
2251
|
-
u("span", null,
|
|
2252
|
-
u("span",
|
|
2329
|
+
u("span", null, N(C.name), 1),
|
|
2330
|
+
u("span", Uo, "(" + N(C.id) + ")", 1)
|
|
2253
2331
|
])
|
|
2254
2332
|
]),
|
|
2255
2333
|
_: 2
|
|
@@ -2261,12 +2339,12 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2261
2339
|
]);
|
|
2262
2340
|
};
|
|
2263
2341
|
}
|
|
2264
|
-
}),
|
|
2342
|
+
}), Jo = { class: "SuperAsaAdGroup relative" }, Ko = { class: "flexMode vc g8" }, Wo = { class: "flexMode vc hb h30" }, qo = { class: "outsideIgnore" }, Zo = { class: "flexMode hr outsideIgnore" }, Qo = {
|
|
2265
2343
|
key: 2,
|
|
2266
2344
|
class: "inputGroup"
|
|
2267
|
-
},
|
|
2345
|
+
}, Xo = { class: "inputGroupLeft noShrink" }, el = { class: "flexMode vc g8" }, tl = E({
|
|
2268
2346
|
name: "SuperAsaAdGroup"
|
|
2269
|
-
}),
|
|
2347
|
+
}), ol = /* @__PURE__ */ Object.assign(tl, {
|
|
2270
2348
|
props: {
|
|
2271
2349
|
modelValue: {
|
|
2272
2350
|
type: [Number, Array],
|
|
@@ -2311,125 +2389,125 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2311
2389
|
"update:modelValue",
|
|
2312
2390
|
"update:name"
|
|
2313
2391
|
],
|
|
2314
|
-
setup(
|
|
2315
|
-
const e =
|
|
2392
|
+
setup(T, { expose: V, emit: n }) {
|
|
2393
|
+
const e = T, t = G({
|
|
2316
2394
|
loading: !1,
|
|
2317
2395
|
single: "",
|
|
2318
2396
|
multiple: [],
|
|
2319
2397
|
options: [],
|
|
2320
2398
|
filterTxt: ""
|
|
2321
|
-
}), { proxy: S } =
|
|
2399
|
+
}), { proxy: S } = ee(), l = n, g = async () => {
|
|
2322
2400
|
const b = window.$getType(e.campaign);
|
|
2323
|
-
let
|
|
2324
|
-
if (b === "Array" ?
|
|
2401
|
+
let x;
|
|
2402
|
+
if (b === "Array" ? x = e.campaign.join(",") : x = e.campaign.toString(), !x)
|
|
2325
2403
|
return;
|
|
2326
|
-
|
|
2327
|
-
const { code: C, data:
|
|
2404
|
+
t.loading = !0;
|
|
2405
|
+
const { code: C, data: j } = await window.$post({
|
|
2328
2406
|
url: window.$api.asa.adGroupOptions,
|
|
2329
2407
|
data: {
|
|
2330
2408
|
appId: e.app,
|
|
2331
2409
|
orgId: e.org,
|
|
2332
|
-
campaignId:
|
|
2410
|
+
campaignId: x
|
|
2333
2411
|
},
|
|
2334
2412
|
ex: e.useex ? +/* @__PURE__ */ new Date() : null
|
|
2335
2413
|
});
|
|
2336
|
-
if (
|
|
2337
|
-
let
|
|
2338
|
-
e.permission ?
|
|
2414
|
+
if (t.loading = !1, C === 200) {
|
|
2415
|
+
let D;
|
|
2416
|
+
e.permission ? D = j.filter((a) => a.permission === e.permission) : D = j, t.options = D.map((a) => (a.sort = fe("statusMap")[a.status].sort, a.ca = `${a.campaignId}_${a.id}`, a.oca = `${a.orgId}_${a.valueCA}`, a)).sort((a, d) => a.sort - d.sort);
|
|
2339
2417
|
}
|
|
2340
2418
|
if (e.multiple && e.modelValue && e.modelValue.length > 0) {
|
|
2341
|
-
const
|
|
2342
|
-
const { data: d } =
|
|
2419
|
+
const D = e.modelValue.map((a) => {
|
|
2420
|
+
const { data: d } = t.options.filter1((m) => m[e.value] === a);
|
|
2343
2421
|
return d ? d.name : `Unknown Name ${a}`;
|
|
2344
2422
|
});
|
|
2345
|
-
l("update:name",
|
|
2423
|
+
l("update:name", D);
|
|
2346
2424
|
}
|
|
2347
2425
|
!e.multiple && r.value && l("update:name", r.value.name);
|
|
2348
2426
|
}, O = (b) => {
|
|
2349
|
-
|
|
2350
|
-
},
|
|
2427
|
+
t.filterTxt = b;
|
|
2428
|
+
}, A = () => {
|
|
2351
2429
|
S.$refs.multipleSelect.blur(), e.confirmAction && l("confirm");
|
|
2352
|
-
},
|
|
2353
|
-
const
|
|
2354
|
-
const { data:
|
|
2355
|
-
return
|
|
2430
|
+
}, k = (b) => {
|
|
2431
|
+
const x = b.map((C) => {
|
|
2432
|
+
const { data: j } = t.options.filter1((D) => D[e.value] === C);
|
|
2433
|
+
return j ? j.name : `Unknown Name ${C}`;
|
|
2356
2434
|
});
|
|
2357
|
-
l("update:modelValue",
|
|
2435
|
+
l("update:modelValue", t.multiple), l("update:name", x), l("change", b);
|
|
2358
2436
|
}, w = () => {
|
|
2359
|
-
l("update:modelValue",
|
|
2360
|
-
},
|
|
2361
|
-
|
|
2437
|
+
l("update:modelValue", t.single), l("update:name", r.value.name), l("change", t.single);
|
|
2438
|
+
}, p = () => {
|
|
2439
|
+
t.multiple = t.multiple.concat(s.value.map((b) => b[e.value])), l("update:modelValue", t.multiple);
|
|
2362
2440
|
}, i = () => {
|
|
2363
|
-
|
|
2364
|
-
},
|
|
2365
|
-
var C,
|
|
2441
|
+
g();
|
|
2442
|
+
}, y = h(() => window.$l("Ad Group")), r = h(() => t.single ? t.options.filter1((b) => b[e.value] === t.single).data : ""), s = h(() => t.filterTxt ? t.options.filter((b) => b.name.includes(t.filterTxt)) : t.options), _ = h(() => s.value.length), f = h(() => {
|
|
2443
|
+
var C, j;
|
|
2366
2444
|
let b = !1;
|
|
2367
|
-
const
|
|
2368
|
-
return e.multiple &&
|
|
2445
|
+
const x = window.$getType(e.campaign);
|
|
2446
|
+
return e.multiple && x === "Array" ? b = e.special ? ((C = e.campaign) == null ? void 0 : C.length) !== 1 : !((j = e.campaign) != null && j.length) : b = !e.campaign, b;
|
|
2369
2447
|
});
|
|
2370
|
-
return
|
|
2448
|
+
return Z(
|
|
2371
2449
|
() => e.campaign,
|
|
2372
|
-
(b,
|
|
2450
|
+
(b, x) => {
|
|
2373
2451
|
const C = window.$getType(b);
|
|
2374
|
-
e.multiple ? (C === "Array" && b.length || C === "Number" && b) &&
|
|
2452
|
+
e.multiple ? (C === "Array" && b.length || C === "Number" && b) && g() : b && b !== x && g();
|
|
2375
2453
|
},
|
|
2376
2454
|
{
|
|
2377
2455
|
immediate: !0
|
|
2378
2456
|
}
|
|
2379
|
-
),
|
|
2457
|
+
), Z(
|
|
2380
2458
|
() => e.modelValue,
|
|
2381
2459
|
(b) => {
|
|
2382
|
-
e.multiple ? JSON.stringify(
|
|
2460
|
+
e.multiple ? JSON.stringify(t.single) !== JSON.stringify(b) && (t.multiple = b) : b ? t.single !== b && (t.single = b) : t.single = "";
|
|
2383
2461
|
},
|
|
2384
2462
|
{
|
|
2385
2463
|
immediate: !0
|
|
2386
2464
|
}
|
|
2387
2465
|
), V({
|
|
2388
2466
|
reload: i
|
|
2389
|
-
}), (b,
|
|
2390
|
-
const C = I("IconLoading"),
|
|
2391
|
-
return c(),
|
|
2392
|
-
t
|
|
2393
|
-
e.multiple ? (c(), L(d,
|
|
2467
|
+
}), (b, x) => {
|
|
2468
|
+
const C = I("IconLoading"), j = I("StatusItem"), D = I("el-button"), a = I("el-tag"), d = I("el-select-v2");
|
|
2469
|
+
return c(), M("div", Jo, [
|
|
2470
|
+
o(t).loading ? (c(), L(C, { key: 0 })) : Y("", !0),
|
|
2471
|
+
e.multiple ? (c(), L(d, Q({
|
|
2394
2472
|
key: 1,
|
|
2395
2473
|
ref: "multipleSelect",
|
|
2396
|
-
modelValue: t
|
|
2397
|
-
"onUpdate:modelValue":
|
|
2398
|
-
placeholder:
|
|
2474
|
+
modelValue: o(t).multiple,
|
|
2475
|
+
"onUpdate:modelValue": x[0] || (x[0] = (m) => o(t).multiple = m),
|
|
2476
|
+
placeholder: o(y),
|
|
2399
2477
|
clearable: "",
|
|
2400
2478
|
filterable: "",
|
|
2401
2479
|
multiple: "",
|
|
2402
2480
|
"collapse-tags": "",
|
|
2403
2481
|
"collapse-tags-tooltip": ""
|
|
2404
2482
|
}, b.$attrs, {
|
|
2405
|
-
options:
|
|
2406
|
-
disabled:
|
|
2483
|
+
options: o(s),
|
|
2484
|
+
disabled: o(f),
|
|
2407
2485
|
"filter-method": O,
|
|
2408
2486
|
props: {
|
|
2409
2487
|
label: "name",
|
|
2410
2488
|
value: e.value
|
|
2411
2489
|
},
|
|
2412
|
-
onChange:
|
|
2490
|
+
onChange: k
|
|
2413
2491
|
}), {
|
|
2414
|
-
default: $(({ item:
|
|
2415
|
-
u("div",
|
|
2416
|
-
z(
|
|
2417
|
-
status:
|
|
2492
|
+
default: $(({ item: m }) => [
|
|
2493
|
+
u("div", Ko, [
|
|
2494
|
+
z(j, {
|
|
2495
|
+
status: m.status,
|
|
2418
2496
|
nolabel: ""
|
|
2419
2497
|
}, null, 8, ["status"]),
|
|
2420
|
-
u("span", null,
|
|
2498
|
+
u("span", null, N(m.name), 1)
|
|
2421
2499
|
])
|
|
2422
2500
|
]),
|
|
2423
2501
|
header: $(() => [
|
|
2424
|
-
u("div",
|
|
2425
|
-
u("div",
|
|
2426
|
-
z(
|
|
2427
|
-
onClick:
|
|
2502
|
+
u("div", Wo, [
|
|
2503
|
+
u("div", qo, [
|
|
2504
|
+
z(D, {
|
|
2505
|
+
onClick: p,
|
|
2428
2506
|
size: "small",
|
|
2429
2507
|
class: "outsideIgnore"
|
|
2430
2508
|
}, {
|
|
2431
2509
|
default: $(() => [
|
|
2432
|
-
|
|
2510
|
+
le(N(b.$l("Select All")), 1)
|
|
2433
2511
|
]),
|
|
2434
2512
|
_: 1
|
|
2435
2513
|
})
|
|
@@ -2442,67 +2520,67 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2442
2520
|
class: "noevent"
|
|
2443
2521
|
}, {
|
|
2444
2522
|
default: $(() => [
|
|
2445
|
-
|
|
2523
|
+
le(N(o(_)), 1)
|
|
2446
2524
|
]),
|
|
2447
2525
|
_: 1
|
|
2448
2526
|
})
|
|
2449
2527
|
])
|
|
2450
2528
|
]),
|
|
2451
2529
|
footer: $(() => [
|
|
2452
|
-
u("div",
|
|
2453
|
-
z(
|
|
2530
|
+
u("div", Zo, [
|
|
2531
|
+
z(D, {
|
|
2454
2532
|
type: "primary",
|
|
2455
|
-
onClick: he(
|
|
2533
|
+
onClick: he(A, ["stop"])
|
|
2456
2534
|
}, {
|
|
2457
2535
|
default: $(() => [
|
|
2458
|
-
|
|
2536
|
+
le(N(b.$l("Confirm")), 1)
|
|
2459
2537
|
]),
|
|
2460
2538
|
_: 1
|
|
2461
2539
|
})
|
|
2462
2540
|
])
|
|
2463
2541
|
]),
|
|
2464
2542
|
_: 1
|
|
2465
|
-
}, 16, ["modelValue", "placeholder", "options", "disabled", "props"])) : (c(),
|
|
2466
|
-
u("div",
|
|
2467
|
-
z(
|
|
2543
|
+
}, 16, ["modelValue", "placeholder", "options", "disabled", "props"])) : (c(), M("div", Qo, [
|
|
2544
|
+
u("div", Xo, [
|
|
2545
|
+
z(D, {
|
|
2468
2546
|
circle: "",
|
|
2469
|
-
onClick:
|
|
2547
|
+
onClick: x[1] || (x[1] = (m) => b.$copy(o(t).single, "ID"))
|
|
2470
2548
|
}, {
|
|
2471
|
-
icon: $(() => [...
|
|
2549
|
+
icon: $(() => [...x[3] || (x[3] = [
|
|
2472
2550
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
2473
2551
|
])]),
|
|
2474
2552
|
_: 1
|
|
2475
2553
|
})
|
|
2476
2554
|
]),
|
|
2477
|
-
z(d,
|
|
2478
|
-
modelValue: t
|
|
2479
|
-
"onUpdate:modelValue":
|
|
2480
|
-
placeholder:
|
|
2555
|
+
z(d, Q({
|
|
2556
|
+
modelValue: o(t).single,
|
|
2557
|
+
"onUpdate:modelValue": x[2] || (x[2] = (m) => o(t).single = m),
|
|
2558
|
+
placeholder: o(y),
|
|
2481
2559
|
clearable: "",
|
|
2482
2560
|
filterable: ""
|
|
2483
2561
|
}, b.$attrs, {
|
|
2484
|
-
options:
|
|
2485
|
-
disabled:
|
|
2562
|
+
options: o(s),
|
|
2563
|
+
disabled: o(f),
|
|
2486
2564
|
value: b.it[e.value],
|
|
2487
2565
|
class: "inputGroupRight",
|
|
2488
2566
|
onChange: w
|
|
2489
2567
|
}), ae({
|
|
2490
|
-
default: $(({ item:
|
|
2491
|
-
u("div",
|
|
2492
|
-
z(
|
|
2493
|
-
status:
|
|
2568
|
+
default: $(({ item: m }) => [
|
|
2569
|
+
u("div", el, [
|
|
2570
|
+
z(j, {
|
|
2571
|
+
status: m.status,
|
|
2494
2572
|
nolabel: ""
|
|
2495
2573
|
}, null, 8, ["status"]),
|
|
2496
|
-
u("span", null,
|
|
2574
|
+
u("span", null, N(m.name), 1)
|
|
2497
2575
|
])
|
|
2498
2576
|
]),
|
|
2499
2577
|
_: 2
|
|
2500
2578
|
}, [
|
|
2501
|
-
|
|
2579
|
+
o(r) ? {
|
|
2502
2580
|
name: "prefix",
|
|
2503
2581
|
fn: $(() => [
|
|
2504
|
-
z(
|
|
2505
|
-
status:
|
|
2582
|
+
z(j, {
|
|
2583
|
+
status: o(r).status,
|
|
2506
2584
|
nolabel: ""
|
|
2507
2585
|
}, null, 8, ["status"])
|
|
2508
2586
|
]),
|
|
@@ -2513,9 +2591,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2513
2591
|
]);
|
|
2514
2592
|
};
|
|
2515
2593
|
}
|
|
2516
|
-
}),
|
|
2594
|
+
}), ll = { class: "SuperAsaApp relative" }, al = { class: "flexMode vc g8" }, nl = { class: "txt-nowrap" }, sl = { class: "txt-dark5" }, rl = E({
|
|
2517
2595
|
name: "SuperAsaApp"
|
|
2518
|
-
}),
|
|
2596
|
+
}), il = /* @__PURE__ */ Object.assign(rl, {
|
|
2519
2597
|
props: {
|
|
2520
2598
|
modelValue: {
|
|
2521
2599
|
type: Number,
|
|
@@ -2545,70 +2623,70 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2545
2623
|
"update:orgs",
|
|
2546
2624
|
"update:name"
|
|
2547
2625
|
],
|
|
2548
|
-
setup(
|
|
2549
|
-
const
|
|
2626
|
+
setup(T, { emit: V }) {
|
|
2627
|
+
const n = T, e = G({
|
|
2550
2628
|
loading: !1,
|
|
2551
2629
|
single: "",
|
|
2552
2630
|
multiple: [],
|
|
2553
2631
|
options: []
|
|
2554
2632
|
}), S = pe("store").asa();
|
|
2555
2633
|
re(() => {
|
|
2556
|
-
|
|
2634
|
+
g();
|
|
2557
2635
|
});
|
|
2558
|
-
const l = V,
|
|
2559
|
-
if (
|
|
2636
|
+
const l = V, g = async () => {
|
|
2637
|
+
if (A.value.length) {
|
|
2560
2638
|
l("success");
|
|
2561
2639
|
return;
|
|
2562
2640
|
}
|
|
2563
2641
|
e.loading = !0, await S.getAppOptions(), e.loading = !1, l("success");
|
|
2564
|
-
}, O = (
|
|
2565
|
-
l("update:modelValue",
|
|
2566
|
-
const { data: i } = S.appOptions.filter1((
|
|
2567
|
-
i && (l("update:name", i.name), l("update:icon", i.icon), l("update:orgs", i.orgs)), l("change",
|
|
2568
|
-
},
|
|
2569
|
-
return
|
|
2570
|
-
() =>
|
|
2571
|
-
(
|
|
2572
|
-
|
|
2642
|
+
}, O = (p) => {
|
|
2643
|
+
l("update:modelValue", p);
|
|
2644
|
+
const { data: i } = S.appOptions.filter1((y) => y.id === e.single);
|
|
2645
|
+
i && (l("update:name", i.name), l("update:icon", i.icon), l("update:orgs", i.orgs)), l("change", p);
|
|
2646
|
+
}, A = h(() => S.appOptions), k = h(() => n.placeholder ? window.$l(n.placeholder) : window.$l("App")), w = h(() => A.value.filter1((i) => i.id === e.single).data);
|
|
2647
|
+
return Z(
|
|
2648
|
+
() => n.modelValue,
|
|
2649
|
+
(p) => {
|
|
2650
|
+
p && p !== e.v && (e.single = p, O(p));
|
|
2573
2651
|
},
|
|
2574
2652
|
{
|
|
2575
2653
|
immediate: !0
|
|
2576
2654
|
}
|
|
2577
|
-
),
|
|
2578
|
-
() =>
|
|
2579
|
-
(
|
|
2580
|
-
(
|
|
2655
|
+
), Z(
|
|
2656
|
+
() => A.value,
|
|
2657
|
+
(p) => {
|
|
2658
|
+
(n.useDefault && (p == null ? void 0 : p.length) === 1 || n.aiDefault && p.length > 0) && (e.single = p[0].id, O(p[0].id));
|
|
2581
2659
|
},
|
|
2582
2660
|
{
|
|
2583
2661
|
immediate: !0
|
|
2584
2662
|
}
|
|
2585
|
-
), (
|
|
2586
|
-
const
|
|
2587
|
-
return c(),
|
|
2588
|
-
|
|
2589
|
-
z(_,
|
|
2590
|
-
modelValue:
|
|
2591
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2592
|
-
placeholder:
|
|
2663
|
+
), (p, i) => {
|
|
2664
|
+
const y = I("IconLoading"), r = I("Image"), s = I("el-option"), _ = I("el-select");
|
|
2665
|
+
return c(), M("div", ll, [
|
|
2666
|
+
o(e).loading ? (c(), L(y, { key: 0 })) : Y("", !0),
|
|
2667
|
+
z(_, Q({
|
|
2668
|
+
modelValue: o(e).single,
|
|
2669
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => o(e).single = f),
|
|
2670
|
+
placeholder: o(k),
|
|
2593
2671
|
filterable: "",
|
|
2594
2672
|
clearable: "",
|
|
2595
2673
|
"default-first-option": "",
|
|
2596
2674
|
"fit-input-width": ""
|
|
2597
|
-
},
|
|
2675
|
+
}, p.$attrs, { onChange: O }), ae({
|
|
2598
2676
|
default: $(() => [
|
|
2599
|
-
(c(!0),
|
|
2677
|
+
(c(!0), M(ie, null, de(o(A), (f, b) => (c(), L(s, {
|
|
2600
2678
|
key: b,
|
|
2601
|
-
label:
|
|
2602
|
-
value:
|
|
2679
|
+
label: f.label,
|
|
2680
|
+
value: f.id
|
|
2603
2681
|
}, {
|
|
2604
2682
|
default: $(() => [
|
|
2605
|
-
u("div",
|
|
2683
|
+
u("div", al, [
|
|
2606
2684
|
z(r, {
|
|
2607
|
-
src:
|
|
2685
|
+
src: f.icon,
|
|
2608
2686
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2609
2687
|
}, null, 8, ["src"]),
|
|
2610
|
-
u("span",
|
|
2611
|
-
u("span",
|
|
2688
|
+
u("span", nl, N(f.name), 1),
|
|
2689
|
+
u("span", sl, "(" + N(f.id) + ")", 1)
|
|
2612
2690
|
])
|
|
2613
2691
|
]),
|
|
2614
2692
|
_: 2
|
|
@@ -2616,11 +2694,11 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2616
2694
|
]),
|
|
2617
2695
|
_: 2
|
|
2618
2696
|
}, [
|
|
2619
|
-
|
|
2697
|
+
o(w) ? {
|
|
2620
2698
|
name: "prefix",
|
|
2621
2699
|
fn: $(() => [
|
|
2622
2700
|
z(r, {
|
|
2623
|
-
src:
|
|
2701
|
+
src: o(w).icon,
|
|
2624
2702
|
class: "noShrink w24 h24 radius radius4 border-dark1"
|
|
2625
2703
|
}, null, 8, ["src"])
|
|
2626
2704
|
]),
|
|
@@ -2630,18 +2708,18 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2630
2708
|
]);
|
|
2631
2709
|
};
|
|
2632
2710
|
}
|
|
2633
|
-
}),
|
|
2711
|
+
}), dl = { class: "SuperAsaCampaign relative" }, ul = { class: "outsideIgnore" }, cl = { class: "flexMode vc g8" }, pl = {
|
|
2634
2712
|
key: 0,
|
|
2635
2713
|
class: "imicon im-writing"
|
|
2636
|
-
},
|
|
2714
|
+
}, ml = { class: "txt-nowrap" }, fl = { class: "flexMode hr outsideIgnore" }, gl = {
|
|
2637
2715
|
key: 2,
|
|
2638
2716
|
class: "inputGroup"
|
|
2639
|
-
},
|
|
2717
|
+
}, yl = { class: "inputGroupLeft noShrink" }, hl = { class: "flexMode vc g8" }, _l = {
|
|
2640
2718
|
key: 0,
|
|
2641
2719
|
class: "imicon im-writing"
|
|
2642
|
-
},
|
|
2720
|
+
}, bl = { class: "txt-nowrap" }, vl = E({
|
|
2643
2721
|
name: "SuperAsaCampaign"
|
|
2644
|
-
}),
|
|
2722
|
+
}), $l = /* @__PURE__ */ Object.assign(vl, {
|
|
2645
2723
|
props: {
|
|
2646
2724
|
modelValue: {
|
|
2647
2725
|
type: [Array, Number],
|
|
@@ -2684,17 +2762,17 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2684
2762
|
"update:adplacement",
|
|
2685
2763
|
"success"
|
|
2686
2764
|
],
|
|
2687
|
-
setup(
|
|
2688
|
-
const e =
|
|
2765
|
+
setup(T, { expose: V, emit: n }) {
|
|
2766
|
+
const e = T, t = G({
|
|
2689
2767
|
loading: !1,
|
|
2690
2768
|
single: "",
|
|
2691
2769
|
multiple: [],
|
|
2692
2770
|
options: [],
|
|
2693
2771
|
filterTxt: ""
|
|
2694
|
-
}), { proxy: S } =
|
|
2772
|
+
}), { proxy: S } = ee();
|
|
2695
2773
|
pe("store").common();
|
|
2696
|
-
const
|
|
2697
|
-
|
|
2774
|
+
const g = n, O = async (D) => {
|
|
2775
|
+
t.loading = !0;
|
|
2698
2776
|
const { code: a, data: d } = await window.$post({
|
|
2699
2777
|
url: window.$api.asa.campaignOptions,
|
|
2700
2778
|
data: {
|
|
@@ -2703,93 +2781,93 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2703
2781
|
},
|
|
2704
2782
|
ex: e.useex ? e.org : +/* @__PURE__ */ new Date()
|
|
2705
2783
|
});
|
|
2706
|
-
|
|
2707
|
-
},
|
|
2708
|
-
S.$refs.multipleSelect.blur(),
|
|
2709
|
-
},
|
|
2710
|
-
|
|
2784
|
+
t.loading = !1, a === 200 && (t.options = d.map((m) => (m.oc = `${m.orgId}_${m.id}`, m)).filter((m) => e.type.includes(m.adPlacement)), g("success", t.options));
|
|
2785
|
+
}, A = () => {
|
|
2786
|
+
S.$refs.multipleSelect.blur(), g("confirm");
|
|
2787
|
+
}, k = (D) => {
|
|
2788
|
+
g("update:modelValue", D), g("change", D);
|
|
2711
2789
|
const a = {};
|
|
2712
|
-
|
|
2713
|
-
a[
|
|
2790
|
+
f.value.filter((m) => D.indexOf(m.id) > -1).forEach((m) => {
|
|
2791
|
+
a[m.adChannelType] = !0;
|
|
2714
2792
|
});
|
|
2715
|
-
const d =
|
|
2716
|
-
const { data: P } =
|
|
2717
|
-
return P ? P.name : `Unknown Name ${
|
|
2793
|
+
const d = D.map((m) => {
|
|
2794
|
+
const { data: P } = f.value.filter1((H) => H[e.value] === m);
|
|
2795
|
+
return P ? P.name : `Unknown Name ${m}`;
|
|
2718
2796
|
});
|
|
2719
|
-
|
|
2720
|
-
}, w = (
|
|
2797
|
+
g("update:name", d), g("update:ad-type", Object.keys(a));
|
|
2798
|
+
}, w = (D) => {
|
|
2721
2799
|
var a, d;
|
|
2722
|
-
|
|
2723
|
-
},
|
|
2800
|
+
g("update:modelValue", D), g("update:adplacement", (a = _.value) == null ? void 0 : a.adPlacement), g("update:name", (d = _.value) == null ? void 0 : d.name), g("change", D);
|
|
2801
|
+
}, p = (D) => {
|
|
2724
2802
|
var a, d;
|
|
2725
|
-
|
|
2803
|
+
g("update:modelValue", D), g("update:adplacement", (a = _.value) == null ? void 0 : a.adPlacement), g("update:name", (d = _.value) == null ? void 0 : d.name);
|
|
2726
2804
|
}, i = () => {
|
|
2727
|
-
|
|
2728
|
-
if (
|
|
2729
|
-
return
|
|
2730
|
-
}).map((
|
|
2731
|
-
},
|
|
2732
|
-
|
|
2805
|
+
t.multiple = f.value.filter((D) => {
|
|
2806
|
+
if (D.hide === !1)
|
|
2807
|
+
return D;
|
|
2808
|
+
}).map((D) => D[e.value]), g("update:modelValue", t.multiple);
|
|
2809
|
+
}, y = (D) => {
|
|
2810
|
+
t.filterTxt = D;
|
|
2733
2811
|
}, r = () => {
|
|
2734
2812
|
O();
|
|
2735
|
-
},
|
|
2736
|
-
h(() => `${
|
|
2737
|
-
const
|
|
2738
|
-
return
|
|
2813
|
+
}, s = h(() => window.$l("Campaign")), _ = h(() => t.single ? t.options.filter1((D) => D[e.value] === t.single).data : ""), f = h(() => t.filterTxt ? t.options.map((D) => (D.name.includes(t.filterTxt) && e.type.includes(D.adPlacement) ? D.hide = !1 : D.hide = !0, D)) : t.options.map((a) => (e.type.includes(a.adPlacement) ? a.hide = !1 : a.hide = !0, a))), b = h(() => f.value.filter((D) => D.hide === !1).length), x = h(() => window.$getType(e.app) === "Array" ? e.app.join(",") : e.app), C = h(() => window.$getType(e.org) === "Array" ? e.org.join(",") : e.org);
|
|
2814
|
+
h(() => `${x.value} ${C.value}`), h(() => e.app && e.org);
|
|
2815
|
+
const j = h(() => !e.org);
|
|
2816
|
+
return Z(
|
|
2739
2817
|
() => e.org,
|
|
2740
|
-
(
|
|
2741
|
-
|
|
2818
|
+
(D, a) => {
|
|
2819
|
+
D && D !== a && O();
|
|
2742
2820
|
},
|
|
2743
2821
|
{
|
|
2744
2822
|
immediate: !0
|
|
2745
2823
|
}
|
|
2746
|
-
),
|
|
2824
|
+
), Z(
|
|
2747
2825
|
() => e.modelValue,
|
|
2748
|
-
(
|
|
2749
|
-
e.multiple ? JSON.stringify(
|
|
2826
|
+
(D) => {
|
|
2827
|
+
e.multiple ? JSON.stringify(t.multiple) !== JSON.stringify(D) && (t.multiple = D) : t.single !== D && (t.single = D, p(D));
|
|
2750
2828
|
},
|
|
2751
2829
|
{
|
|
2752
2830
|
immediate: !0
|
|
2753
2831
|
}
|
|
2754
|
-
),
|
|
2755
|
-
() =>
|
|
2756
|
-
(
|
|
2757
|
-
|
|
2832
|
+
), Z(
|
|
2833
|
+
() => t.options,
|
|
2834
|
+
(D) => {
|
|
2835
|
+
D != null && D.length && !e.multiple && p(e.modelValue);
|
|
2758
2836
|
},
|
|
2759
2837
|
{
|
|
2760
2838
|
immediate: !0
|
|
2761
2839
|
}
|
|
2762
2840
|
), V({
|
|
2763
2841
|
reload: r
|
|
2764
|
-
}), (
|
|
2765
|
-
const d = I("IconLoading"),
|
|
2766
|
-
return c(),
|
|
2767
|
-
t
|
|
2768
|
-
e.multiple ? (c(), L(ne,
|
|
2842
|
+
}), (D, a) => {
|
|
2843
|
+
const d = I("IconLoading"), m = I("el-button"), P = I("el-tag"), H = I("StatusItem"), ne = I("MultipleSelect"), q = I("el-option"), se = I("el-select");
|
|
2844
|
+
return c(), M("div", dl, [
|
|
2845
|
+
o(t).loading ? (c(), L(d, { key: 0 })) : Y("", !0),
|
|
2846
|
+
e.multiple ? (c(), L(ne, Q({
|
|
2769
2847
|
key: 1,
|
|
2770
2848
|
ref: "multipleSelect",
|
|
2771
|
-
modelValue: t
|
|
2772
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2773
|
-
options:
|
|
2774
|
-
placeholder:
|
|
2849
|
+
modelValue: o(t).multiple,
|
|
2850
|
+
"onUpdate:modelValue": a[0] || (a[0] = (R) => o(t).multiple = R),
|
|
2851
|
+
options: o(f),
|
|
2852
|
+
placeholder: D.$l(o(s)),
|
|
2775
2853
|
clearable: "",
|
|
2776
2854
|
label: "name",
|
|
2777
2855
|
value: e.value,
|
|
2778
|
-
disabled:
|
|
2856
|
+
disabled: o(j),
|
|
2779
2857
|
filterable: "",
|
|
2780
|
-
"filter-method":
|
|
2858
|
+
"filter-method": y,
|
|
2781
2859
|
"collapse-tags": "",
|
|
2782
2860
|
"collapse-tags-tooltip": ""
|
|
2783
|
-
},
|
|
2861
|
+
}, D.$attrs, { onChange: k }), {
|
|
2784
2862
|
header: $(() => [
|
|
2785
|
-
u("div",
|
|
2786
|
-
t
|
|
2863
|
+
u("div", ul, [
|
|
2864
|
+
o(t).filterTxt ? (c(), L(m, {
|
|
2787
2865
|
key: 0,
|
|
2788
2866
|
onClick: i,
|
|
2789
2867
|
class: "outsideIgnore"
|
|
2790
2868
|
}, {
|
|
2791
2869
|
default: $(() => [
|
|
2792
|
-
|
|
2870
|
+
le(N(D.$l("Select All")), 1)
|
|
2793
2871
|
]),
|
|
2794
2872
|
_: 1
|
|
2795
2873
|
})) : Y("", !0)
|
|
@@ -2802,41 +2880,41 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2802
2880
|
class: "noevent"
|
|
2803
2881
|
}, {
|
|
2804
2882
|
default: $(() => [
|
|
2805
|
-
|
|
2883
|
+
le(N(o(b)), 1)
|
|
2806
2884
|
]),
|
|
2807
2885
|
_: 1
|
|
2808
2886
|
})
|
|
2809
2887
|
]),
|
|
2810
|
-
default: $(({ it:
|
|
2811
|
-
u("div",
|
|
2888
|
+
default: $(({ it: R }) => [
|
|
2889
|
+
u("div", cl, [
|
|
2812
2890
|
z(H, {
|
|
2813
|
-
status:
|
|
2891
|
+
status: R.status,
|
|
2814
2892
|
nolabel: "",
|
|
2815
2893
|
class: "noShrink"
|
|
2816
2894
|
}, null, 8, ["status"]),
|
|
2817
|
-
|
|
2818
|
-
u("span",
|
|
2895
|
+
R.readonly === !1 ? (c(), M("i", pl)) : Y("", !0),
|
|
2896
|
+
u("span", ml, N(R.name), 1)
|
|
2819
2897
|
])
|
|
2820
2898
|
]),
|
|
2821
2899
|
footer: $(() => [
|
|
2822
|
-
u("div",
|
|
2823
|
-
z(
|
|
2900
|
+
u("div", fl, [
|
|
2901
|
+
z(m, {
|
|
2824
2902
|
type: "primary",
|
|
2825
|
-
onClick: he(
|
|
2903
|
+
onClick: he(A, ["stop"])
|
|
2826
2904
|
}, {
|
|
2827
2905
|
default: $(() => [
|
|
2828
|
-
|
|
2906
|
+
le(N(D.$l("Confirm")), 1)
|
|
2829
2907
|
]),
|
|
2830
2908
|
_: 1
|
|
2831
2909
|
})
|
|
2832
2910
|
])
|
|
2833
2911
|
]),
|
|
2834
2912
|
_: 1
|
|
2835
|
-
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (c(),
|
|
2836
|
-
u("div",
|
|
2837
|
-
z(
|
|
2913
|
+
}, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (c(), M("div", gl, [
|
|
2914
|
+
u("div", yl, [
|
|
2915
|
+
z(m, {
|
|
2838
2916
|
circle: "",
|
|
2839
|
-
onClick: a[1] || (a[1] = (
|
|
2917
|
+
onClick: a[1] || (a[1] = (R) => D.$copy(o(t).single, "ID"))
|
|
2840
2918
|
}, {
|
|
2841
2919
|
icon: $(() => [...a[3] || (a[3] = [
|
|
2842
2920
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
@@ -2844,32 +2922,32 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2844
2922
|
_: 1
|
|
2845
2923
|
})
|
|
2846
2924
|
]),
|
|
2847
|
-
z(se,
|
|
2848
|
-
modelValue: t
|
|
2849
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
2850
|
-
placeholder:
|
|
2925
|
+
z(se, Q({
|
|
2926
|
+
modelValue: o(t).single,
|
|
2927
|
+
"onUpdate:modelValue": a[2] || (a[2] = (R) => o(t).single = R),
|
|
2928
|
+
placeholder: o(s),
|
|
2851
2929
|
clearable: "",
|
|
2852
2930
|
filterable: "",
|
|
2853
|
-
disabled:
|
|
2854
|
-
},
|
|
2931
|
+
disabled: o(j)
|
|
2932
|
+
}, D.$attrs, {
|
|
2855
2933
|
class: "inputGroupRight",
|
|
2856
2934
|
onChange: w
|
|
2857
2935
|
}), ae({
|
|
2858
2936
|
default: $(() => [
|
|
2859
|
-
(c(!0),
|
|
2937
|
+
(c(!0), M(ie, null, de(o(f), (R, ce) => (c(), L(q, {
|
|
2860
2938
|
key: ce,
|
|
2861
|
-
label:
|
|
2862
|
-
value:
|
|
2939
|
+
label: R.name,
|
|
2940
|
+
value: R[e.value]
|
|
2863
2941
|
}, {
|
|
2864
2942
|
default: $(() => [
|
|
2865
|
-
u("div",
|
|
2943
|
+
u("div", hl, [
|
|
2866
2944
|
z(H, {
|
|
2867
|
-
status:
|
|
2945
|
+
status: R.status,
|
|
2868
2946
|
nolabel: "",
|
|
2869
2947
|
class: "noShrink"
|
|
2870
2948
|
}, null, 8, ["status"]),
|
|
2871
|
-
|
|
2872
|
-
u("span",
|
|
2949
|
+
R.readonly === !1 ? (c(), M("i", _l)) : Y("", !0),
|
|
2950
|
+
u("span", bl, N(R.name), 1)
|
|
2873
2951
|
])
|
|
2874
2952
|
]),
|
|
2875
2953
|
_: 2
|
|
@@ -2877,11 +2955,11 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2877
2955
|
]),
|
|
2878
2956
|
_: 2
|
|
2879
2957
|
}, [
|
|
2880
|
-
|
|
2958
|
+
o(_) ? {
|
|
2881
2959
|
name: "prefix",
|
|
2882
2960
|
fn: $(() => [
|
|
2883
2961
|
z(H, {
|
|
2884
|
-
status:
|
|
2962
|
+
status: o(_).status,
|
|
2885
2963
|
nolabel: "",
|
|
2886
2964
|
class: "noShrink"
|
|
2887
2965
|
}, null, 8, ["status"])
|
|
@@ -2893,9 +2971,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2893
2971
|
]);
|
|
2894
2972
|
};
|
|
2895
2973
|
}
|
|
2896
|
-
}),
|
|
2974
|
+
}), wl = { class: "SuperAsaOrg relative" }, Sl = { class: "inputGroup" }, Cl = { class: "inputGroupLeft noShrink" }, kl = { class: "flexMode vc g4" }, xl = { class: "txt-dark5" }, Vl = E({
|
|
2897
2975
|
name: "SuperAsaOrg"
|
|
2898
|
-
}),
|
|
2976
|
+
}), Ol = /* @__PURE__ */ Object.assign(Vl, {
|
|
2899
2977
|
props: {
|
|
2900
2978
|
app: {
|
|
2901
2979
|
type: Number,
|
|
@@ -2927,85 +3005,85 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
2927
3005
|
"error",
|
|
2928
3006
|
"change"
|
|
2929
3007
|
],
|
|
2930
|
-
setup(
|
|
2931
|
-
const
|
|
3008
|
+
setup(T, { emit: V }) {
|
|
3009
|
+
const n = T, e = G({
|
|
2932
3010
|
loading: !1,
|
|
2933
3011
|
single: "",
|
|
2934
3012
|
multiple: [],
|
|
2935
3013
|
options: []
|
|
2936
3014
|
}), S = pe("store").asa();
|
|
2937
3015
|
re(() => {
|
|
2938
|
-
|
|
3016
|
+
g();
|
|
2939
3017
|
});
|
|
2940
|
-
const l = V,
|
|
2941
|
-
|
|
3018
|
+
const l = V, g = async () => {
|
|
3019
|
+
p.value.length ? (e.single || O(p.value[0].id), l("success")) : l("error");
|
|
2942
3020
|
}, O = (r) => {
|
|
2943
|
-
var
|
|
2944
|
-
l("update:modelValue", r), l("update:name", (
|
|
2945
|
-
},
|
|
2946
|
-
var
|
|
3021
|
+
var s, _, f, b;
|
|
3022
|
+
l("update:modelValue", r), l("update:name", (s = i.value) == null ? void 0 : s.name), l("update:currency", (_ = i.value) == null ? void 0 : _.currency), l("update:timezone", (f = i.value) == null ? void 0 : f.timezone), l("update:readonly", (b = i.value) == null ? void 0 : b.readonly), n.changeImmediately && l("change", r), n.unTimezone || A();
|
|
3023
|
+
}, A = () => {
|
|
3024
|
+
var s;
|
|
2947
3025
|
let r = i.value;
|
|
2948
3026
|
S.saveData("accountTimezone", {
|
|
2949
3027
|
timezoneName: r == null ? void 0 : r.timezone,
|
|
2950
3028
|
tip: "Account",
|
|
2951
|
-
timezone: (
|
|
3029
|
+
timezone: (s = fe("common.timezone").filter1(
|
|
2952
3030
|
(_) => _.label === (r == null ? void 0 : r.timezone)
|
|
2953
|
-
).data) == null ? void 0 :
|
|
3031
|
+
).data) == null ? void 0 : s.value
|
|
2954
3032
|
});
|
|
2955
|
-
},
|
|
3033
|
+
}, k = () => {
|
|
2956
3034
|
e.single = "", l("update:modelValue", ""), l("update:name", ""), l("update:currency", ""), l("update:timezone", ""), l("update:readonly", !1);
|
|
2957
|
-
}, w = h(() => window.$l("Campaign Group")),
|
|
3035
|
+
}, w = h(() => window.$l("Campaign Group")), p = h(() => {
|
|
2958
3036
|
var r;
|
|
2959
|
-
return
|
|
2960
|
-
}), i = h(() =>
|
|
2961
|
-
return
|
|
2962
|
-
() =>
|
|
3037
|
+
return n.app ? ((r = S.appOptions.filter1((s) => s.id === n.app).data) == null ? void 0 : r.orgs) || [] : [];
|
|
3038
|
+
}), i = h(() => p.value.filter1((r) => r.id === e.single).data), y = h(() => !n.app);
|
|
3039
|
+
return Z(
|
|
3040
|
+
() => n.modelValue,
|
|
2963
3041
|
(r) => {
|
|
2964
|
-
r ? r !== e.single && (e.single = r, O(r)) :
|
|
3042
|
+
r ? r !== e.single && (e.single = r, O(r)) : k();
|
|
2965
3043
|
},
|
|
2966
3044
|
{
|
|
2967
3045
|
immediate: !0
|
|
2968
3046
|
}
|
|
2969
|
-
), (r,
|
|
2970
|
-
const _ = I("IconLoading"),
|
|
2971
|
-
return c(),
|
|
2972
|
-
|
|
2973
|
-
u("div",
|
|
2974
|
-
u("div",
|
|
2975
|
-
z(
|
|
3047
|
+
), (r, s) => {
|
|
3048
|
+
const _ = I("IconLoading"), f = I("el-button"), b = I("el-option"), x = I("el-select");
|
|
3049
|
+
return c(), M("div", wl, [
|
|
3050
|
+
o(e).loading ? (c(), L(_, { key: 0 })) : Y("", !0),
|
|
3051
|
+
u("div", Sl, [
|
|
3052
|
+
u("div", Cl, [
|
|
3053
|
+
z(f, {
|
|
2976
3054
|
circle: "",
|
|
2977
|
-
onClick:
|
|
3055
|
+
onClick: s[0] || (s[0] = (C) => r.$copy(o(e).single, "ID"))
|
|
2978
3056
|
}, {
|
|
2979
|
-
icon: $(() => [...
|
|
3057
|
+
icon: $(() => [...s[2] || (s[2] = [
|
|
2980
3058
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
2981
3059
|
])]),
|
|
2982
3060
|
_: 1
|
|
2983
3061
|
})
|
|
2984
3062
|
]),
|
|
2985
|
-
z(
|
|
2986
|
-
modelValue:
|
|
2987
|
-
"onUpdate:modelValue":
|
|
2988
|
-
placeholder:
|
|
2989
|
-
disabled:
|
|
3063
|
+
z(x, Q({
|
|
3064
|
+
modelValue: o(e).single,
|
|
3065
|
+
"onUpdate:modelValue": s[1] || (s[1] = (C) => o(e).single = C),
|
|
3066
|
+
placeholder: o(w),
|
|
3067
|
+
disabled: o(y),
|
|
2990
3068
|
filterable: ""
|
|
2991
3069
|
}, r.$attrs, {
|
|
2992
3070
|
class: "inputGroupRight",
|
|
2993
3071
|
onChange: O
|
|
2994
3072
|
}), {
|
|
2995
3073
|
default: $(() => [
|
|
2996
|
-
(c(!0),
|
|
2997
|
-
key:
|
|
3074
|
+
(c(!0), M(ie, null, de(o(p), (C, j) => (c(), L(b, {
|
|
3075
|
+
key: j,
|
|
2998
3076
|
label: `${C.name} (${C.id})`,
|
|
2999
3077
|
value: C.id,
|
|
3000
|
-
disabled:
|
|
3078
|
+
disabled: n.readonly && C.readonly
|
|
3001
3079
|
}, {
|
|
3002
3080
|
default: $(() => [
|
|
3003
|
-
u("div",
|
|
3081
|
+
u("div", kl, [
|
|
3004
3082
|
u("i", {
|
|
3005
3083
|
class: K(["imicon", C.readonly ? "" : "im-writing"])
|
|
3006
3084
|
}, null, 2),
|
|
3007
|
-
u("span", null,
|
|
3008
|
-
u("span",
|
|
3085
|
+
u("span", null, N(C.name), 1),
|
|
3086
|
+
u("span", xl, "(" + N(C.id) + ")", 1)
|
|
3009
3087
|
])
|
|
3010
3088
|
]),
|
|
3011
3089
|
_: 2
|
|
@@ -3017,9 +3095,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3017
3095
|
]);
|
|
3018
3096
|
};
|
|
3019
3097
|
}
|
|
3020
|
-
}),
|
|
3098
|
+
}), Dl = E({
|
|
3021
3099
|
name: "SuperCountry"
|
|
3022
|
-
}),
|
|
3100
|
+
}), Al = /* @__PURE__ */ Object.assign(Dl, {
|
|
3023
3101
|
props: {
|
|
3024
3102
|
type: {
|
|
3025
3103
|
type: String,
|
|
@@ -3030,26 +3108,26 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3030
3108
|
default: !1
|
|
3031
3109
|
}
|
|
3032
3110
|
},
|
|
3033
|
-
setup(
|
|
3034
|
-
const V = ve(() => Promise.resolve().then(() =>
|
|
3111
|
+
setup(T) {
|
|
3112
|
+
const V = ve(() => Promise.resolve().then(() => Ha)), n = ve(() => Promise.resolve().then(() => Za)), e = {
|
|
3035
3113
|
CountryAso: V,
|
|
3036
|
-
CountryDiy:
|
|
3037
|
-
},
|
|
3038
|
-
return (
|
|
3039
|
-
class: K(["SuperCountry",
|
|
3114
|
+
CountryDiy: n
|
|
3115
|
+
}, t = T, S = h(() => e["Country" + window.$toUpperCamel(t.type)]), l = h(() => t.nowrap);
|
|
3116
|
+
return (g, O) => (c(), M("div", {
|
|
3117
|
+
class: K(["SuperCountry", t.nowrap && "nowrap"])
|
|
3040
3118
|
}, [
|
|
3041
|
-
(c(), L(
|
|
3042
|
-
"collapse-tags":
|
|
3043
|
-
"collapse-tags-tooltip":
|
|
3119
|
+
(c(), L(je(o(S)), Q(g.$attrs, {
|
|
3120
|
+
"collapse-tags": o(l),
|
|
3121
|
+
"collapse-tags-tooltip": o(l)
|
|
3044
3122
|
}), null, 16, ["collapse-tags", "collapse-tags-tooltip"]))
|
|
3045
3123
|
], 2));
|
|
3046
3124
|
}
|
|
3047
|
-
}),
|
|
3125
|
+
}), Tl = ["title"], Ml = {
|
|
3048
3126
|
key: 0,
|
|
3049
3127
|
class: "pl4"
|
|
3050
|
-
},
|
|
3128
|
+
}, Nl = E({
|
|
3051
3129
|
name: "SuperCountryItem"
|
|
3052
|
-
}),
|
|
3130
|
+
}), Il = /* @__PURE__ */ Object.assign(Nl, {
|
|
3053
3131
|
props: {
|
|
3054
3132
|
name: {
|
|
3055
3133
|
type: String,
|
|
@@ -3068,36 +3146,36 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3068
3146
|
default: 8
|
|
3069
3147
|
}
|
|
3070
3148
|
},
|
|
3071
|
-
setup(
|
|
3072
|
-
const V =
|
|
3149
|
+
setup(T) {
|
|
3150
|
+
const V = T;
|
|
3073
3151
|
G({});
|
|
3074
|
-
const e = pe("store").common(),
|
|
3075
|
-
const
|
|
3076
|
-
return e.countryObj[
|
|
3077
|
-
}), S = h(() => `fi-${
|
|
3152
|
+
const e = pe("store").common(), t = h(() => {
|
|
3153
|
+
const A = V.name.toLowerCase();
|
|
3154
|
+
return e.countryObj[A] || fe("country.countryAllObj")[A] || {};
|
|
3155
|
+
}), S = h(() => `fi-${t.value.value_lower}`);
|
|
3078
3156
|
h(() => window.$getLang());
|
|
3079
|
-
const l = h(() => window.$l(
|
|
3080
|
-
const
|
|
3157
|
+
const l = h(() => window.$l(t.value.label)), g = h(() => {
|
|
3158
|
+
const A = parseInt(V.size);
|
|
3081
3159
|
return {
|
|
3082
|
-
width:
|
|
3083
|
-
height:
|
|
3160
|
+
width: A + "px",
|
|
3161
|
+
height: A + "px"
|
|
3084
3162
|
};
|
|
3085
3163
|
}), O = h(() => `radius${Number(V.radius) || 2}`);
|
|
3086
|
-
return fe("country.countryAllObj"), (
|
|
3164
|
+
return fe("country.countryAllObj"), (A, k) => (c(), M("div", {
|
|
3087
3165
|
class: "SuperCountryItem flexMode vc g4",
|
|
3088
|
-
title:
|
|
3166
|
+
title: o(l)
|
|
3089
3167
|
}, [
|
|
3090
3168
|
u("span", {
|
|
3091
|
-
class: K(["box-shadow-gray3 fi fis noShrink", [
|
|
3092
|
-
style: me(
|
|
3169
|
+
class: K(["box-shadow-gray3 fi fis noShrink", [o(S), o(O)]]),
|
|
3170
|
+
style: me(o(g))
|
|
3093
3171
|
}, null, 6),
|
|
3094
|
-
V.nolabel ? Y("", !0) : (c(),
|
|
3095
|
-
], 8,
|
|
3172
|
+
V.nolabel ? Y("", !0) : (c(), M("span", Ml, N(o(l)), 1))
|
|
3173
|
+
], 8, Tl));
|
|
3096
3174
|
}
|
|
3097
|
-
}),
|
|
3175
|
+
}), zl = { class: "SuperOrg relative wp100" }, jl = E({
|
|
3098
3176
|
name: "SuperOrg",
|
|
3099
3177
|
inheritAttrs: !1
|
|
3100
|
-
}),
|
|
3178
|
+
}), Bl = /* @__PURE__ */ Object.assign(jl, {
|
|
3101
3179
|
props: {
|
|
3102
3180
|
modelValue: {
|
|
3103
3181
|
type: [Number, String],
|
|
@@ -3109,53 +3187,53 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3109
3187
|
}
|
|
3110
3188
|
},
|
|
3111
3189
|
emits: "change",
|
|
3112
|
-
setup(
|
|
3113
|
-
const
|
|
3190
|
+
setup(T, { emit: V }) {
|
|
3191
|
+
const n = T, e = G({
|
|
3114
3192
|
loading: !1,
|
|
3115
3193
|
v: "",
|
|
3116
3194
|
orgOptions: []
|
|
3117
3195
|
}), S = pe("store").asa();
|
|
3118
3196
|
re(() => {
|
|
3119
|
-
|
|
3197
|
+
g();
|
|
3120
3198
|
});
|
|
3121
|
-
const l = V,
|
|
3199
|
+
const l = V, g = async () => {
|
|
3122
3200
|
if (S.orgOptions.length > 0) {
|
|
3123
3201
|
e.orgOptions = S.orgOptions, l("success", e.orgOptions), ge(() => {
|
|
3124
|
-
const
|
|
3202
|
+
const p = e.orgOptions.filter1(
|
|
3125
3203
|
(i) => i.orgId === e.v
|
|
3126
3204
|
).data;
|
|
3127
|
-
l("update:paymentModel",
|
|
3205
|
+
l("update:paymentModel", p == null ? void 0 : p.paymentModel);
|
|
3128
3206
|
});
|
|
3129
3207
|
return;
|
|
3130
3208
|
}
|
|
3131
3209
|
e.loading = !0;
|
|
3132
|
-
const { code:
|
|
3210
|
+
const { code: k, data: w } = await window.$post({
|
|
3133
3211
|
url: window.$api.asa.orgOptions
|
|
3134
3212
|
});
|
|
3135
|
-
e.loading = !1,
|
|
3136
|
-
const
|
|
3213
|
+
e.loading = !1, k === 200 && (e.orgOptions = w.map((p) => (p.label = `${p.orgName} (${p.orgId})`, p)), S.saveData("orgOptions", e.orgOptions), ge(() => {
|
|
3214
|
+
const p = e.orgOptions.filter1(
|
|
3137
3215
|
(i) => i.orgId === e.v
|
|
3138
3216
|
).data;
|
|
3139
|
-
l("update:paymentModel",
|
|
3217
|
+
l("update:paymentModel", p == null ? void 0 : p.paymentModel);
|
|
3140
3218
|
}), l("success", e.orgOptions));
|
|
3141
|
-
}, O = (
|
|
3142
|
-
l("update:modelValue",
|
|
3143
|
-
const w = e.orgOptions.filter1((
|
|
3144
|
-
l("update:currency", w == null ? void 0 : w.currency), l("update:name", w == null ? void 0 : w.orgName), l("update:timezone", w == null ? void 0 : w.timezone), l("update:paymentModel", w == null ? void 0 : w.paymentModel), l("change",
|
|
3145
|
-
},
|
|
3146
|
-
if (
|
|
3219
|
+
}, O = (k) => {
|
|
3220
|
+
l("update:modelValue", k);
|
|
3221
|
+
const w = e.orgOptions.filter1((p) => p.orgId === k).data;
|
|
3222
|
+
l("update:currency", w == null ? void 0 : w.currency), l("update:name", w == null ? void 0 : w.orgName), l("update:timezone", w == null ? void 0 : w.timezone), l("update:paymentModel", w == null ? void 0 : w.paymentModel), l("change", k);
|
|
3223
|
+
}, A = h(() => {
|
|
3224
|
+
if (n.permission === "all")
|
|
3147
3225
|
return e.orgOptions;
|
|
3148
3226
|
{
|
|
3149
|
-
const
|
|
3150
|
-
return e.orgOptions.filter((
|
|
3227
|
+
const k = n.permission === "readonly";
|
|
3228
|
+
return e.orgOptions.filter((p) => p.readonly === k);
|
|
3151
3229
|
}
|
|
3152
3230
|
});
|
|
3153
|
-
return
|
|
3154
|
-
() =>
|
|
3155
|
-
(
|
|
3156
|
-
|
|
3231
|
+
return Z(
|
|
3232
|
+
() => n.modelValue,
|
|
3233
|
+
(k) => {
|
|
3234
|
+
k ? k !== e.v && (e.v = k, ge(() => {
|
|
3157
3235
|
const w = e.orgOptions.filter1(
|
|
3158
|
-
(
|
|
3236
|
+
(p) => p.orgId === e.v
|
|
3159
3237
|
).data;
|
|
3160
3238
|
l("update:paymentModel", w == null ? void 0 : w.paymentModel);
|
|
3161
3239
|
})) : e.v = "";
|
|
@@ -3163,13 +3241,13 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3163
3241
|
{
|
|
3164
3242
|
immediate: !0
|
|
3165
3243
|
}
|
|
3166
|
-
), (
|
|
3167
|
-
const
|
|
3168
|
-
return c(),
|
|
3169
|
-
|
|
3170
|
-
z(
|
|
3171
|
-
modelValue:
|
|
3172
|
-
"onUpdate:modelValue": w[0] || (w[0] = (r) =>
|
|
3244
|
+
), (k, w) => {
|
|
3245
|
+
const p = I("IconLoading"), i = I("el-option"), y = I("el-select");
|
|
3246
|
+
return c(), M("div", zl, [
|
|
3247
|
+
o(e).loading ? (c(), L(p, { key: 0 })) : Y("", !0),
|
|
3248
|
+
z(y, {
|
|
3249
|
+
modelValue: o(e).v,
|
|
3250
|
+
"onUpdate:modelValue": w[0] || (w[0] = (r) => o(e).v = r),
|
|
3173
3251
|
filterable: "",
|
|
3174
3252
|
"collapse-tags": "",
|
|
3175
3253
|
placeholder: " ",
|
|
@@ -3177,8 +3255,8 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3177
3255
|
onChange: O
|
|
3178
3256
|
}, {
|
|
3179
3257
|
default: $(() => [
|
|
3180
|
-
(c(!0),
|
|
3181
|
-
key:
|
|
3258
|
+
(c(!0), M(ie, null, de(o(A), (r, s) => (c(), L(i, {
|
|
3259
|
+
key: s,
|
|
3182
3260
|
label: r.label,
|
|
3183
3261
|
value: r.orgId
|
|
3184
3262
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -3188,9 +3266,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3188
3266
|
]);
|
|
3189
3267
|
};
|
|
3190
3268
|
}
|
|
3191
|
-
}),
|
|
3269
|
+
}), Yl = { class: "SuperStatusItem flexMode vc g8" }, Ll = E({
|
|
3192
3270
|
name: "SuperStatusItem"
|
|
3193
|
-
}),
|
|
3271
|
+
}), El = /* @__PURE__ */ Object.assign(Ll, {
|
|
3194
3272
|
props: {
|
|
3195
3273
|
status: {
|
|
3196
3274
|
type: String,
|
|
@@ -3226,33 +3304,33 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3226
3304
|
}
|
|
3227
3305
|
},
|
|
3228
3306
|
emits: ["changeStatus"],
|
|
3229
|
-
setup(
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3232
|
-
}, S = h(() => fe("statusMap")[
|
|
3307
|
+
setup(T, { emit: V }) {
|
|
3308
|
+
const n = T, e = V, t = () => {
|
|
3309
|
+
n.isButton && e("changeStatus", n.status, n.id1, n.id2, n.id3);
|
|
3310
|
+
}, S = h(() => fe("statusMap")[n.status] || !1), l = h(() => window.$toUpperCamel(n.status)), g = h(() => O[n.size] || "fs12"), O = {
|
|
3233
3311
|
small: "fs12",
|
|
3234
3312
|
default: "fs16",
|
|
3235
3313
|
large: "fs24"
|
|
3236
3314
|
};
|
|
3237
|
-
return (
|
|
3238
|
-
|
|
3315
|
+
return (A, k) => (c(), M("div", Yl, [
|
|
3316
|
+
o(S) ? (c(), M("i", {
|
|
3239
3317
|
key: 0,
|
|
3240
3318
|
class: K(["imicon", [
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3319
|
+
o(S).class,
|
|
3320
|
+
o(g),
|
|
3321
|
+
n.isButton && n.status !== "DELETED" ? o(S).button_class : ""
|
|
3244
3322
|
]]),
|
|
3245
|
-
onClick:
|
|
3323
|
+
onClick: t
|
|
3246
3324
|
}, null, 2)) : Y("", !0),
|
|
3247
|
-
|
|
3325
|
+
n.nolabel ? Y("", !0) : (c(), M("span", {
|
|
3248
3326
|
key: 1,
|
|
3249
|
-
class: K(["txt-h1",
|
|
3250
|
-
},
|
|
3327
|
+
class: K(["txt-h1", o(g)])
|
|
3328
|
+
}, N(A.$l(o(S) ? o(S).label : o(l))), 3))
|
|
3251
3329
|
]));
|
|
3252
3330
|
}
|
|
3253
|
-
}),
|
|
3331
|
+
}), Rl = { class: "SuperStatusSelect" }, Fl = E({
|
|
3254
3332
|
name: "SuperStatusSelect"
|
|
3255
|
-
}),
|
|
3333
|
+
}), Pl = /* @__PURE__ */ Object.assign(Fl, {
|
|
3256
3334
|
props: {
|
|
3257
3335
|
modelValue: {
|
|
3258
3336
|
type: String,
|
|
@@ -3267,39 +3345,39 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3267
3345
|
default: ""
|
|
3268
3346
|
}
|
|
3269
3347
|
},
|
|
3270
|
-
setup(
|
|
3271
|
-
const V =
|
|
3348
|
+
setup(T) {
|
|
3349
|
+
const V = T, n = G({
|
|
3272
3350
|
v: ""
|
|
3273
|
-
}), { proxy: e } =
|
|
3274
|
-
const
|
|
3275
|
-
return window.$l(
|
|
3351
|
+
}), { proxy: e } = ee(), t = h(() => window.$getLang()), S = h(() => e.$slots), l = h(() => V.options.length ? V.options : ["RUNNING", "PAUSED"]), g = h(() => {
|
|
3352
|
+
const A = V.placeholder || "Status";
|
|
3353
|
+
return window.$l(A);
|
|
3276
3354
|
});
|
|
3277
|
-
|
|
3278
|
-
|
|
3355
|
+
Be(() => {
|
|
3356
|
+
n.v = V.modelValue;
|
|
3279
3357
|
});
|
|
3280
3358
|
const O = fe("statusMap");
|
|
3281
|
-
return (
|
|
3282
|
-
const w = I("StatusItem"),
|
|
3283
|
-
return c(),
|
|
3284
|
-
z(i,
|
|
3285
|
-
modelValue:
|
|
3286
|
-
"onUpdate:modelValue":
|
|
3359
|
+
return (A, k) => {
|
|
3360
|
+
const w = I("StatusItem"), p = I("el-option"), i = I("el-select");
|
|
3361
|
+
return c(), M("div", Rl, [
|
|
3362
|
+
z(i, Q({
|
|
3363
|
+
modelValue: o(n).v,
|
|
3364
|
+
"onUpdate:modelValue": k[0] || (k[0] = (y) => o(n).v = y),
|
|
3287
3365
|
"collapse-tags": "",
|
|
3288
3366
|
"collapse-tags-tooltip": ""
|
|
3289
|
-
},
|
|
3290
|
-
placeholder:
|
|
3291
|
-
onChange:
|
|
3367
|
+
}, A.$attrs, {
|
|
3368
|
+
placeholder: o(g),
|
|
3369
|
+
onChange: A.change
|
|
3292
3370
|
}), ae({
|
|
3293
3371
|
default: $(() => [
|
|
3294
|
-
(c(!0),
|
|
3295
|
-
key:
|
|
3296
|
-
label:
|
|
3297
|
-
value:
|
|
3372
|
+
(c(!0), M(ie, null, de(o(l), (y, r) => (c(), L(p, {
|
|
3373
|
+
key: y,
|
|
3374
|
+
label: A.$l(o(O)[y].label),
|
|
3375
|
+
value: y
|
|
3298
3376
|
}, {
|
|
3299
3377
|
default: $(() => [
|
|
3300
3378
|
z(w, {
|
|
3301
|
-
status:
|
|
3302
|
-
lang: t
|
|
3379
|
+
status: y,
|
|
3380
|
+
lang: o(t)
|
|
3303
3381
|
}, null, 8, ["status", "lang"])
|
|
3304
3382
|
]),
|
|
3305
3383
|
_: 2
|
|
@@ -3307,14 +3385,14 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3307
3385
|
]),
|
|
3308
3386
|
_: 2
|
|
3309
3387
|
}, [
|
|
3310
|
-
|
|
3388
|
+
o(n).v ? {
|
|
3311
3389
|
name: "prefix",
|
|
3312
3390
|
fn: $(() => [
|
|
3313
|
-
|
|
3391
|
+
o(S).prefix ? W(A.$slots, "prefix", { key: 0 }) : (c(), L(w, {
|
|
3314
3392
|
key: 1,
|
|
3315
|
-
status:
|
|
3393
|
+
status: o(n).v,
|
|
3316
3394
|
nolabel: "",
|
|
3317
|
-
lang: t
|
|
3395
|
+
lang: o(t)
|
|
3318
3396
|
}, null, 8, ["status", "lang"]))
|
|
3319
3397
|
]),
|
|
3320
3398
|
key: "0"
|
|
@@ -3323,9 +3401,9 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3323
3401
|
]);
|
|
3324
3402
|
};
|
|
3325
3403
|
}
|
|
3326
|
-
}),
|
|
3404
|
+
}), Ul = { class: "SuperTimezone" }, Gl = { class: "flexMode vc hb g16" }, Hl = { class: "flexMode vc" }, Jl = { key: 0 }, Kl = E({
|
|
3327
3405
|
name: "SuperTimezone"
|
|
3328
|
-
}),
|
|
3406
|
+
}), Wl = /* @__PURE__ */ Object.assign(Kl, {
|
|
3329
3407
|
props: {
|
|
3330
3408
|
modelValue: {
|
|
3331
3409
|
type: String,
|
|
@@ -3349,22 +3427,22 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3349
3427
|
}
|
|
3350
3428
|
},
|
|
3351
3429
|
emits: ["change", "update:modelValue", "update:timezone"],
|
|
3352
|
-
setup(
|
|
3353
|
-
const
|
|
3430
|
+
setup(T, { emit: V }) {
|
|
3431
|
+
const n = T, e = G({
|
|
3354
3432
|
v: "",
|
|
3355
3433
|
timezone: "",
|
|
3356
3434
|
name: "",
|
|
3357
3435
|
options: [],
|
|
3358
3436
|
filterTxt: ""
|
|
3359
|
-
}), { proxy:
|
|
3437
|
+
}), { proxy: t } = ee(), S = pe("store");
|
|
3360
3438
|
S.common();
|
|
3361
|
-
const l = S.asa(),
|
|
3362
|
-
|
|
3363
|
-
},
|
|
3364
|
-
e.filterTxt =
|
|
3365
|
-
},
|
|
3366
|
-
if (
|
|
3367
|
-
const
|
|
3439
|
+
const l = S.asa(), g = V, O = (y) => {
|
|
3440
|
+
p.value ? (g("update:modelValue", p.value.label), g("update:timezone", p.value.value)) : (g("update:modelValue", ""), g("update:timezone", "")), g("change");
|
|
3441
|
+
}, A = (y) => {
|
|
3442
|
+
e.filterTxt = y.toLowerCase();
|
|
3443
|
+
}, k = h(() => fe("common.timezone").map((y) => (y.v = y.value.toString(), y.des_en_us = y.label_en_us.toLowerCase(), y.des_zh_cn = y.label_zh_cn.toLowerCase(), y.hide = !1, y))), w = h(() => {
|
|
3444
|
+
if (n.usePreTimezone) {
|
|
3445
|
+
const y = [
|
|
3368
3446
|
{
|
|
3369
3447
|
label: "UTC",
|
|
3370
3448
|
value: 0,
|
|
@@ -3378,55 +3456,55 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3378
3456
|
},
|
|
3379
3457
|
{ ...i.value }
|
|
3380
3458
|
], r = [];
|
|
3381
|
-
return
|
|
3382
|
-
|
|
3383
|
-
}), [...
|
|
3459
|
+
return k.value.forEach((s) => {
|
|
3460
|
+
y.filter1((_) => _.label === s.label).data || r.push(s);
|
|
3461
|
+
}), [...y, ...r];
|
|
3384
3462
|
} else
|
|
3385
|
-
return
|
|
3386
|
-
}),
|
|
3387
|
-
const
|
|
3463
|
+
return k.value;
|
|
3464
|
+
}), p = h(() => w.value.filter1((y) => y.label === e.v).data), i = h(() => {
|
|
3465
|
+
const y = Intl.DateTimeFormat().resolvedOptions().timeZone, r = (/* @__PURE__ */ new Date()).getTimezoneOffset(), s = Math.floor(Math.abs(r) / 60);
|
|
3388
3466
|
return {
|
|
3389
|
-
label:
|
|
3467
|
+
label: y,
|
|
3390
3468
|
tip: "Local",
|
|
3391
|
-
value:
|
|
3469
|
+
value: s,
|
|
3392
3470
|
hide: !1
|
|
3393
3471
|
};
|
|
3394
3472
|
});
|
|
3395
|
-
return
|
|
3396
|
-
() =>
|
|
3397
|
-
(
|
|
3398
|
-
|
|
3473
|
+
return Z(
|
|
3474
|
+
() => n.modelValue,
|
|
3475
|
+
(y, r) => {
|
|
3476
|
+
y !== void 0 && y !== r && (e.v = y);
|
|
3399
3477
|
},
|
|
3400
3478
|
{
|
|
3401
3479
|
immediate: !0
|
|
3402
3480
|
}
|
|
3403
|
-
), (
|
|
3404
|
-
const
|
|
3405
|
-
return c(),
|
|
3406
|
-
z(_,
|
|
3407
|
-
modelValue:
|
|
3408
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3481
|
+
), (y, r) => {
|
|
3482
|
+
const s = I("el-option"), _ = I("el-select");
|
|
3483
|
+
return c(), M("div", Ul, [
|
|
3484
|
+
z(_, Q({
|
|
3485
|
+
modelValue: o(e).v,
|
|
3486
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => o(e).v = f),
|
|
3409
3487
|
filterable: "",
|
|
3410
|
-
placeholder:
|
|
3411
|
-
"filter-method":
|
|
3412
|
-
},
|
|
3488
|
+
placeholder: y.$l("Timezone"),
|
|
3489
|
+
"filter-method": A
|
|
3490
|
+
}, y.$attrs, {
|
|
3413
3491
|
onChange: O,
|
|
3414
3492
|
class: "wp100"
|
|
3415
3493
|
}), ae({
|
|
3416
3494
|
default: $(() => [
|
|
3417
|
-
(c(!0),
|
|
3418
|
-
key:
|
|
3419
|
-
label:
|
|
3420
|
-
value:
|
|
3421
|
-
class: K(
|
|
3495
|
+
(c(!0), M(ie, null, de(o(w), (f, b) => (c(), L(s, {
|
|
3496
|
+
key: f.label,
|
|
3497
|
+
label: f.label,
|
|
3498
|
+
value: f.label,
|
|
3499
|
+
class: K(f.hide && "hide")
|
|
3422
3500
|
}, {
|
|
3423
3501
|
default: $(() => [
|
|
3424
|
-
u("div",
|
|
3425
|
-
u("div",
|
|
3426
|
-
u("span", null,
|
|
3427
|
-
|
|
3502
|
+
u("div", Gl, [
|
|
3503
|
+
u("div", Hl, [
|
|
3504
|
+
u("span", null, N(f.label), 1),
|
|
3505
|
+
f.tip ? (c(), M("span", Jl, "(" + N(f.tip) + ")", 1)) : Y("", !0)
|
|
3428
3506
|
]),
|
|
3429
|
-
u("span", null,
|
|
3507
|
+
u("span", null, N(f.value < 1 ? f.value : "+" + f.value), 1)
|
|
3430
3508
|
])
|
|
3431
3509
|
]),
|
|
3432
3510
|
_: 2
|
|
@@ -3434,10 +3512,10 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3434
3512
|
]),
|
|
3435
3513
|
_: 2
|
|
3436
3514
|
}, [
|
|
3437
|
-
|
|
3515
|
+
o(p) ? {
|
|
3438
3516
|
name: "prefix",
|
|
3439
3517
|
fn: $(() => [
|
|
3440
|
-
|
|
3518
|
+
le(" [" + N(o(p).value) + "] ", 1)
|
|
3441
3519
|
]),
|
|
3442
3520
|
key: "0"
|
|
3443
3521
|
} : void 0
|
|
@@ -3458,24 +3536,25 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3458
3536
|
Table: Co,
|
|
3459
3537
|
TableFooter: Me,
|
|
3460
3538
|
Textarea: Do,
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3539
|
+
Form: No,
|
|
3540
|
+
AiApp: Lo,
|
|
3541
|
+
AiOrg: Ho,
|
|
3542
|
+
AsaAdGroup: ol,
|
|
3543
|
+
AsaApp: il,
|
|
3544
|
+
AsaCampaign: $l,
|
|
3545
|
+
AsaOrg: Ol,
|
|
3546
|
+
Country: Al,
|
|
3547
|
+
CountryItem: Il,
|
|
3548
|
+
Org: Bl,
|
|
3549
|
+
StatusItem: El,
|
|
3550
|
+
StatusSelect: Pl,
|
|
3551
|
+
Timezone: Wl
|
|
3552
|
+
}, sn = (T) => {
|
|
3474
3553
|
for (let V in De)
|
|
3475
|
-
|
|
3476
|
-
},
|
|
3554
|
+
T.component(V, De[V]);
|
|
3555
|
+
}, ql = { class: "dragCenter flexMode vc flexGrow txt-nowrap" }, Zl = { class: "pl10 fs14 txt-h2" }, Ql = { class: "pb5 fs12 txt-primary3" }, Xl = E({
|
|
3477
3556
|
name: "ColumnConfigDragItem"
|
|
3478
|
-
}),
|
|
3557
|
+
}), ea = /* @__PURE__ */ Object.assign(Xl, {
|
|
3479
3558
|
props: {
|
|
3480
3559
|
modelValue: {
|
|
3481
3560
|
type: Object,
|
|
@@ -3498,24 +3577,24 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3498
3577
|
default: "en_us"
|
|
3499
3578
|
}
|
|
3500
3579
|
},
|
|
3501
|
-
setup(
|
|
3502
|
-
const
|
|
3580
|
+
setup(T, { emit: V }) {
|
|
3581
|
+
const n = T, e = G({
|
|
3503
3582
|
editMode: !1,
|
|
3504
3583
|
form: {},
|
|
3505
3584
|
info: {}
|
|
3506
3585
|
});
|
|
3507
3586
|
re(() => {
|
|
3508
|
-
e.form =
|
|
3587
|
+
e.form = n.it;
|
|
3509
3588
|
});
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3589
|
+
const t = V, S = () => {
|
|
3590
|
+
t("add-left", n);
|
|
3512
3591
|
}, l = () => {
|
|
3513
|
-
|
|
3514
|
-
},
|
|
3515
|
-
|
|
3592
|
+
t("add-right", n);
|
|
3593
|
+
}, g = (k) => {
|
|
3594
|
+
t("change", { it: e.form, index: n.index, type: n.type });
|
|
3516
3595
|
};
|
|
3517
|
-
h(() => e.form.align ? " " :
|
|
3518
|
-
const O = h(() =>
|
|
3596
|
+
h(() => e.form.align ? " " : A[0].label);
|
|
3597
|
+
const O = h(() => n.it.nomove || e.editMode), A = [
|
|
3519
3598
|
{
|
|
3520
3599
|
label: "Left",
|
|
3521
3600
|
value: "left"
|
|
@@ -3529,15 +3608,15 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3529
3608
|
value: "right"
|
|
3530
3609
|
}
|
|
3531
3610
|
];
|
|
3532
|
-
return (
|
|
3533
|
-
const
|
|
3534
|
-
return c(),
|
|
3535
|
-
class: K(["ColumnConfigDragItem", [!
|
|
3611
|
+
return (k, w) => {
|
|
3612
|
+
const p = I("el-switch");
|
|
3613
|
+
return c(), M("div", {
|
|
3614
|
+
class: K(["ColumnConfigDragItem", [!o(O) && "drag", n.type]])
|
|
3536
3615
|
}, [
|
|
3537
3616
|
u("div", {
|
|
3538
3617
|
class: K(["itemArea relative flexMode vc p4", [
|
|
3539
|
-
|
|
3540
|
-
|
|
3618
|
+
o(e).editMode && "edit",
|
|
3619
|
+
o(O) ? "cursor-disabled hover-bg-gray1" : "cursor-grab hover-bg-primary1"
|
|
3541
3620
|
]])
|
|
3542
3621
|
}, [
|
|
3543
3622
|
u("div", {
|
|
@@ -3546,17 +3625,17 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3546
3625
|
}, [...w[1] || (w[1] = [
|
|
3547
3626
|
u("i", { class: "imicon im-arrow-left" }, null, -1)
|
|
3548
3627
|
])]),
|
|
3549
|
-
u("div",
|
|
3550
|
-
z(
|
|
3551
|
-
modelValue:
|
|
3552
|
-
"onUpdate:modelValue": w[0] || (w[0] = (i) =>
|
|
3553
|
-
disabled:
|
|
3628
|
+
u("div", ql, [
|
|
3629
|
+
z(p, {
|
|
3630
|
+
modelValue: o(e).form.visible,
|
|
3631
|
+
"onUpdate:modelValue": w[0] || (w[0] = (i) => o(e).form.visible = i),
|
|
3632
|
+
disabled: o(e).form.nomove,
|
|
3554
3633
|
size: "default",
|
|
3555
|
-
onChange:
|
|
3634
|
+
onChange: g
|
|
3556
3635
|
}, null, 8, ["modelValue", "disabled"]),
|
|
3557
|
-
u("span",
|
|
3636
|
+
u("span", Zl, N(o(e).form.label || o(e).form.type), 1)
|
|
3558
3637
|
]),
|
|
3559
|
-
u("span",
|
|
3638
|
+
u("span", Ql, N(o(e).form.tips), 1),
|
|
3560
3639
|
u("div", {
|
|
3561
3640
|
class: "arrowRight mr4 ml8 circle24 hover-txt-primary point",
|
|
3562
3641
|
onClick: he(l, ["stop"])
|
|
@@ -3567,36 +3646,36 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3567
3646
|
], 2);
|
|
3568
3647
|
};
|
|
3569
3648
|
}
|
|
3570
|
-
}), ke = /* @__PURE__ */ ue(
|
|
3649
|
+
}), ke = /* @__PURE__ */ ue(ea, [["__scopeId", "data-v-b1d63462"]]), ta = { class: "flexMode vs p16 g16" }, oa = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, la = { class: "fs12 txt-primary" }, aa = { class: "fs12 txt-dark5" }, na = {
|
|
3571
3650
|
key: 0,
|
|
3572
3651
|
class: "fs12 txt-dark3"
|
|
3573
|
-
},
|
|
3652
|
+
}, sa = {
|
|
3574
3653
|
key: 0,
|
|
3575
3654
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3576
|
-
},
|
|
3655
|
+
}, ra = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, ia = { class: "fs12 txt-primary" }, da = { class: "fs12 txt-dark5" }, ua = {
|
|
3577
3656
|
key: 0,
|
|
3578
3657
|
class: "fs12 txt-dark3"
|
|
3579
|
-
},
|
|
3658
|
+
}, ca = {
|
|
3580
3659
|
key: 0,
|
|
3581
3660
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3582
|
-
},
|
|
3661
|
+
}, pa = { class: "ml16 p2-4 bg-gary3 radius4 lh12" }, ma = { class: "fs12 txt-primary" }, fa = { class: "fs12 txt-dark5" }, ga = {
|
|
3583
3662
|
key: 0,
|
|
3584
3663
|
class: "fs12 txt-dark3"
|
|
3585
|
-
},
|
|
3664
|
+
}, ya = {
|
|
3586
3665
|
key: 0,
|
|
3587
3666
|
class: "absCenter txt-nowrap txt-dark7 fs12"
|
|
3588
|
-
},
|
|
3667
|
+
}, ha = E({
|
|
3589
3668
|
name: "TableHeaderColumnConfig",
|
|
3590
3669
|
inheritAttrs: !1
|
|
3591
|
-
}),
|
|
3670
|
+
}), _a = /* @__PURE__ */ Object.assign(ha, {
|
|
3592
3671
|
props: {
|
|
3593
3672
|
params: {
|
|
3594
3673
|
type: Object,
|
|
3595
3674
|
default: /* @__PURE__ */ Object.create(null)
|
|
3596
3675
|
}
|
|
3597
3676
|
},
|
|
3598
|
-
setup(
|
|
3599
|
-
const
|
|
3677
|
+
setup(T, { emit: V }) {
|
|
3678
|
+
const n = T, e = G({
|
|
3600
3679
|
loading: !1,
|
|
3601
3680
|
left: [],
|
|
3602
3681
|
center: [],
|
|
@@ -3606,119 +3685,119 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3606
3685
|
re(() => {
|
|
3607
3686
|
S();
|
|
3608
3687
|
});
|
|
3609
|
-
const
|
|
3688
|
+
const t = V, S = () => {
|
|
3610
3689
|
l();
|
|
3611
3690
|
}, l = () => {
|
|
3612
|
-
let
|
|
3613
|
-
if (
|
|
3614
|
-
|
|
3691
|
+
let x = localStorage.getItem(y.value);
|
|
3692
|
+
if (x) {
|
|
3693
|
+
x = JSON.parse(x);
|
|
3615
3694
|
let C = 0;
|
|
3616
|
-
|
|
3617
|
-
|
|
3695
|
+
x.forEach((j) => {
|
|
3696
|
+
j.label && !j.nomove && (C++, j.fixed ? e[j.fixed].push(j) : e.center.push(j));
|
|
3618
3697
|
}), e.total = C;
|
|
3619
3698
|
}
|
|
3620
|
-
},
|
|
3621
|
-
e.left.unshift(
|
|
3622
|
-
}, O = ({ it:
|
|
3623
|
-
e.right.unshift(
|
|
3624
|
-
},
|
|
3625
|
-
e.center.unshift(
|
|
3626
|
-
},
|
|
3627
|
-
e.center.unshift(
|
|
3628
|
-
}, w = ({ it:
|
|
3629
|
-
e[
|
|
3630
|
-
},
|
|
3631
|
-
e.loading = !0, localStorage.removeItem(
|
|
3632
|
-
e.loading = !1,
|
|
3699
|
+
}, g = ({ it: x, index: C, type: j }) => {
|
|
3700
|
+
e.left.unshift(x), e.center.splice(C, 1);
|
|
3701
|
+
}, O = ({ it: x, index: C, type: j }) => {
|
|
3702
|
+
e.right.unshift(x), e.center.splice(C, 1);
|
|
3703
|
+
}, A = ({ it: x, index: C, type: j }) => {
|
|
3704
|
+
e.center.unshift(x), e.left.splice(C, 1);
|
|
3705
|
+
}, k = ({ it: x, index: C, type: j }) => {
|
|
3706
|
+
e.center.unshift(x), e.right.splice(C, 1);
|
|
3707
|
+
}, w = ({ it: x, index: C, type: j }) => {
|
|
3708
|
+
e[j][C] = x;
|
|
3709
|
+
}, p = async () => {
|
|
3710
|
+
e.loading = !0, localStorage.removeItem(y.value), window.$promise(() => {
|
|
3711
|
+
e.loading = !1, t("submit", "column"), t("close");
|
|
3633
3712
|
});
|
|
3634
3713
|
}, i = async () => {
|
|
3635
3714
|
e.loading = !0, await window.$promise(() => {
|
|
3636
|
-
const { left:
|
|
3637
|
-
|
|
3715
|
+
const { left: x, center: C, right: j } = e;
|
|
3716
|
+
x.forEach((a, d) => {
|
|
3638
3717
|
a.fixed = "left", a.sort = d;
|
|
3639
3718
|
}), C.forEach((a, d) => {
|
|
3640
3719
|
a.fixed = !1, a.sort = d;
|
|
3641
|
-
}),
|
|
3720
|
+
}), j.forEach((a, d) => {
|
|
3642
3721
|
a.fixed = "right", a.sort = d;
|
|
3643
3722
|
});
|
|
3644
|
-
const
|
|
3723
|
+
const D = [...x, ...C, ...j].sort(
|
|
3645
3724
|
(a, d) => a.sort - d.sort
|
|
3646
3725
|
);
|
|
3647
|
-
localStorage.setItem(
|
|
3648
|
-
}, 10), e.loading = !1,
|
|
3649
|
-
},
|
|
3726
|
+
localStorage.setItem(y.value, JSON.stringify(D));
|
|
3727
|
+
}, 10), e.loading = !1, t("submit", "column"), t("close");
|
|
3728
|
+
}, y = h(() => `${n.params.tableName}_Column`), r = h(() => ({
|
|
3650
3729
|
height: window.global.config.options.drawerHeight - 80 + "px"
|
|
3651
|
-
})),
|
|
3652
|
-
let
|
|
3653
|
-
return e.left.forEach((
|
|
3654
|
-
|
|
3730
|
+
})), s = h(() => {
|
|
3731
|
+
let x = 0, C = 0;
|
|
3732
|
+
return e.left.forEach((j) => {
|
|
3733
|
+
j.visible ? x++ : C++;
|
|
3655
3734
|
}), {
|
|
3656
|
-
visible:
|
|
3735
|
+
visible: x,
|
|
3657
3736
|
hide: C
|
|
3658
3737
|
};
|
|
3659
3738
|
}), _ = h(() => {
|
|
3660
|
-
let
|
|
3661
|
-
return e.center.forEach((
|
|
3662
|
-
|
|
3739
|
+
let x = 0, C = 0;
|
|
3740
|
+
return e.center.forEach((j) => {
|
|
3741
|
+
j.visible ? x++ : C++;
|
|
3663
3742
|
}), {
|
|
3664
|
-
visible:
|
|
3743
|
+
visible: x,
|
|
3665
3744
|
hide: C
|
|
3666
3745
|
};
|
|
3667
|
-
}),
|
|
3668
|
-
let
|
|
3669
|
-
return e.right.forEach((
|
|
3670
|
-
|
|
3746
|
+
}), f = h(() => {
|
|
3747
|
+
let x = 0, C = 0;
|
|
3748
|
+
return e.right.forEach((j) => {
|
|
3749
|
+
j.visible ? x++ : C++;
|
|
3671
3750
|
}), {
|
|
3672
|
-
visible:
|
|
3751
|
+
visible: x,
|
|
3673
3752
|
hide: C
|
|
3674
3753
|
};
|
|
3675
3754
|
}), b = h(() => window.$getLang());
|
|
3676
|
-
return (
|
|
3677
|
-
const
|
|
3755
|
+
return (x, C) => {
|
|
3756
|
+
const j = I("Card"), D = I("el-button"), a = I("DrawerArea");
|
|
3678
3757
|
return c(), L(a, {
|
|
3679
3758
|
class: "TableHeaderColumnConfig",
|
|
3680
|
-
loading:
|
|
3759
|
+
loading: o(e).loading,
|
|
3681
3760
|
noscroll: "",
|
|
3682
3761
|
onSubmit: i
|
|
3683
3762
|
}, {
|
|
3684
3763
|
cancel: $(() => [
|
|
3685
|
-
z(
|
|
3764
|
+
z(D, {
|
|
3686
3765
|
plain: "",
|
|
3687
|
-
onClick:
|
|
3766
|
+
onClick: p
|
|
3688
3767
|
}, {
|
|
3689
3768
|
icon: $(() => [...C[0] || (C[0] = [
|
|
3690
3769
|
u("i", { class: "imicon im-reset" }, null, -1)
|
|
3691
3770
|
])]),
|
|
3692
3771
|
default: $(() => [
|
|
3693
|
-
|
|
3772
|
+
le(" " + N(x.$l("Reset")), 1)
|
|
3694
3773
|
]),
|
|
3695
3774
|
_: 1
|
|
3696
3775
|
})
|
|
3697
3776
|
]),
|
|
3698
3777
|
default: $(() => [
|
|
3699
|
-
u("div",
|
|
3700
|
-
z(
|
|
3778
|
+
u("div", ta, [
|
|
3779
|
+
z(j, {
|
|
3701
3780
|
title: "Fixed on Left",
|
|
3702
3781
|
class: "flex1",
|
|
3703
3782
|
"body-class": "border"
|
|
3704
3783
|
}, ae({
|
|
3705
3784
|
default: $(() => [
|
|
3706
|
-
|
|
3707
|
-
z(
|
|
3708
|
-
list:
|
|
3785
|
+
o(e).left.length === 0 ? (c(), M("div", sa, N(x.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3786
|
+
z(o(Ce), {
|
|
3787
|
+
list: o(e).left,
|
|
3709
3788
|
group: "columnFilter",
|
|
3710
3789
|
class: "dragBody p4-0 yscroll nobar",
|
|
3711
3790
|
draggable: ".drag",
|
|
3712
|
-
style: me(
|
|
3791
|
+
style: me(o(r)),
|
|
3713
3792
|
"item-key": (d) => d
|
|
3714
3793
|
}, {
|
|
3715
|
-
item: $(({ element: d, index:
|
|
3794
|
+
item: $(({ element: d, index: m }) => [
|
|
3716
3795
|
z(ke, {
|
|
3717
3796
|
it: d,
|
|
3718
|
-
index:
|
|
3719
|
-
lang:
|
|
3797
|
+
index: m,
|
|
3798
|
+
lang: o(b),
|
|
3720
3799
|
type: "left",
|
|
3721
|
-
onAddRight:
|
|
3800
|
+
onAddRight: A,
|
|
3722
3801
|
onChange: w
|
|
3723
3802
|
}, null, 8, ["it", "index", "lang"])
|
|
3724
3803
|
]),
|
|
@@ -3727,39 +3806,39 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3727
3806
|
]),
|
|
3728
3807
|
_: 2
|
|
3729
3808
|
}, [
|
|
3730
|
-
|
|
3809
|
+
o(s) ? {
|
|
3731
3810
|
name: "header",
|
|
3732
3811
|
fn: $(() => [
|
|
3733
|
-
u("div",
|
|
3734
|
-
u("span",
|
|
3735
|
-
u("span",
|
|
3736
|
-
|
|
3812
|
+
u("div", oa, [
|
|
3813
|
+
u("span", la, N(o(s).visible), 1),
|
|
3814
|
+
u("span", aa, " / " + N(o(e).total), 1),
|
|
3815
|
+
o(s).hide ? (c(), M("span", na, "(" + N(o(s).hide) + ")", 1)) : Y("", !0)
|
|
3737
3816
|
])
|
|
3738
3817
|
]),
|
|
3739
3818
|
key: "0"
|
|
3740
3819
|
} : void 0
|
|
3741
3820
|
]), 1024),
|
|
3742
|
-
z(
|
|
3821
|
+
z(j, {
|
|
3743
3822
|
title: "In Center",
|
|
3744
3823
|
class: "flex1",
|
|
3745
3824
|
"body-class": "border"
|
|
3746
3825
|
}, ae({
|
|
3747
3826
|
default: $(() => [
|
|
3748
|
-
|
|
3749
|
-
z(
|
|
3750
|
-
list:
|
|
3827
|
+
o(e).center.length === 0 ? (c(), M("div", ca, N(x.$l("No Column Fixed on Left")), 1)) : Y("", !0),
|
|
3828
|
+
z(o(Ce), {
|
|
3829
|
+
list: o(e).center,
|
|
3751
3830
|
group: "columnFilter",
|
|
3752
3831
|
class: "dragBody p4-0 yscroll nobar",
|
|
3753
3832
|
draggable: ".drag",
|
|
3754
|
-
style: me(
|
|
3833
|
+
style: me(o(r)),
|
|
3755
3834
|
"item-key": (d) => d
|
|
3756
3835
|
}, {
|
|
3757
|
-
item: $(({ element: d, index:
|
|
3836
|
+
item: $(({ element: d, index: m }) => [
|
|
3758
3837
|
z(ke, {
|
|
3759
3838
|
it: d,
|
|
3760
|
-
index:
|
|
3761
|
-
onAddLeft:
|
|
3762
|
-
lang:
|
|
3839
|
+
index: m,
|
|
3840
|
+
onAddLeft: g,
|
|
3841
|
+
lang: o(b),
|
|
3763
3842
|
onAddRight: O,
|
|
3764
3843
|
onChange: w
|
|
3765
3844
|
}, null, 8, ["it", "index", "lang"])
|
|
@@ -3769,40 +3848,40 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3769
3848
|
]),
|
|
3770
3849
|
_: 2
|
|
3771
3850
|
}, [
|
|
3772
|
-
|
|
3851
|
+
o(_) ? {
|
|
3773
3852
|
name: "header",
|
|
3774
3853
|
fn: $(() => [
|
|
3775
|
-
u("div",
|
|
3776
|
-
u("span",
|
|
3777
|
-
u("span",
|
|
3778
|
-
|
|
3854
|
+
u("div", ra, [
|
|
3855
|
+
u("span", ia, N(o(_).visible), 1),
|
|
3856
|
+
u("span", da, " / " + N(o(e).total), 1),
|
|
3857
|
+
o(_).hide ? (c(), M("span", ua, "(" + N(o(_).hide) + ")", 1)) : Y("", !0)
|
|
3779
3858
|
])
|
|
3780
3859
|
]),
|
|
3781
3860
|
key: "0"
|
|
3782
3861
|
} : void 0
|
|
3783
3862
|
]), 1024),
|
|
3784
|
-
z(
|
|
3863
|
+
z(j, {
|
|
3785
3864
|
title: "Fixed on Right",
|
|
3786
3865
|
class: "flex1",
|
|
3787
3866
|
"body-class": "border"
|
|
3788
3867
|
}, ae({
|
|
3789
3868
|
default: $(() => [
|
|
3790
|
-
|
|
3791
|
-
z(
|
|
3792
|
-
list:
|
|
3869
|
+
o(e).right.length === 0 ? (c(), M("div", ya, N(x.$l("No Column Fixed on Right")), 1)) : Y("", !0),
|
|
3870
|
+
z(o(Ce), {
|
|
3871
|
+
list: o(e).right,
|
|
3793
3872
|
group: "columnFilter",
|
|
3794
3873
|
class: "dragBody p4-0 yscroll nobar",
|
|
3795
3874
|
draggable: ".drag",
|
|
3796
|
-
style: me(
|
|
3875
|
+
style: me(o(r)),
|
|
3797
3876
|
"item-key": (d) => d
|
|
3798
3877
|
}, {
|
|
3799
|
-
item: $(({ element: d, index:
|
|
3878
|
+
item: $(({ element: d, index: m }) => [
|
|
3800
3879
|
z(ke, {
|
|
3801
3880
|
it: d,
|
|
3802
|
-
index:
|
|
3881
|
+
index: m,
|
|
3803
3882
|
type: "right",
|
|
3804
|
-
lang:
|
|
3805
|
-
onAddLeft:
|
|
3883
|
+
lang: o(b),
|
|
3884
|
+
onAddLeft: k,
|
|
3806
3885
|
onChange: w
|
|
3807
3886
|
}, null, 8, ["it", "index", "lang"])
|
|
3808
3887
|
]),
|
|
@@ -3811,13 +3890,13 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3811
3890
|
]),
|
|
3812
3891
|
_: 2
|
|
3813
3892
|
}, [
|
|
3814
|
-
|
|
3893
|
+
o(f) ? {
|
|
3815
3894
|
name: "header",
|
|
3816
3895
|
fn: $(() => [
|
|
3817
|
-
u("div",
|
|
3818
|
-
u("span",
|
|
3819
|
-
u("span",
|
|
3820
|
-
|
|
3896
|
+
u("div", pa, [
|
|
3897
|
+
u("span", ma, N(o(f).visible), 1),
|
|
3898
|
+
u("span", fa, " / " + N(o(e).total), 1),
|
|
3899
|
+
o(f).hide ? (c(), M("span", ga, "(" + N(o(f).hide) + ")", 1)) : Y("", !0)
|
|
3821
3900
|
])
|
|
3822
3901
|
]),
|
|
3823
3902
|
key: "0"
|
|
@@ -3829,21 +3908,21 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3829
3908
|
}, 8, ["loading"]);
|
|
3830
3909
|
};
|
|
3831
3910
|
}
|
|
3832
|
-
}),
|
|
3911
|
+
}), ba = /* @__PURE__ */ ue(_a, [["__scopeId", "data-v-dec783ac"]]), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3833
3912
|
__proto__: null,
|
|
3834
|
-
default:
|
|
3835
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3913
|
+
default: ba
|
|
3914
|
+
}, Symbol.toStringTag, { value: "Module" })), $a = { class: "p16 wp100 sticky bg-white9 border-b backdrop z2" }, wa = { class: "flexMode vc g4 p8" }, Sa = { class: "txt-dark5" }, Ca = { class: "txt-dark" }, ka = {
|
|
3836
3915
|
key: 0,
|
|
3837
3916
|
class: "flexMode vc p8 g8"
|
|
3838
|
-
},
|
|
3917
|
+
}, xa = {
|
|
3839
3918
|
key: 0,
|
|
3840
3919
|
class: "flexMode vc g4"
|
|
3841
|
-
},
|
|
3920
|
+
}, Va = { class: "txt-dark5" }, Oa = { class: "txt-dark" }, Da = {
|
|
3842
3921
|
key: 1,
|
|
3843
3922
|
class: "flexMode vc p8"
|
|
3844
|
-
},
|
|
3923
|
+
}, Aa = { class: "txt-dark5" }, Ta = { class: "pl8 pr16 txt-dark" }, Ma = { class: "flexMode hr vc g16" }, Na = { class: "pr8" }, Ia = { class: "relative wp100 pb8 z1" }, za = { class: "p16 txt-dark9" }, ja = { class: "pr8" }, Ba = { class: "inputGroup flexMode vc flexGrow" }, Ya = { class: "inputGroupRight" }, La = E({
|
|
3845
3924
|
name: "TableDownload"
|
|
3846
|
-
}),
|
|
3925
|
+
}), Ea = /* @__PURE__ */ Object.assign(La, {
|
|
3847
3926
|
props: {
|
|
3848
3927
|
params: {
|
|
3849
3928
|
type: Object,
|
|
@@ -3854,8 +3933,8 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3854
3933
|
default: void 0
|
|
3855
3934
|
}
|
|
3856
3935
|
},
|
|
3857
|
-
setup(
|
|
3858
|
-
const
|
|
3936
|
+
setup(T, { emit: V }) {
|
|
3937
|
+
const n = T, e = G({
|
|
3859
3938
|
loading: !1,
|
|
3860
3939
|
columns: [],
|
|
3861
3940
|
items: [],
|
|
@@ -3871,114 +3950,114 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3871
3950
|
// 使用国家名称
|
|
3872
3951
|
widthTableHead: !0,
|
|
3873
3952
|
allData: []
|
|
3874
|
-
}), { proxy:
|
|
3953
|
+
}), { proxy: t } = ee(), S = Fe();
|
|
3875
3954
|
re(() => {
|
|
3876
3955
|
l();
|
|
3877
3956
|
});
|
|
3878
3957
|
const l = () => {
|
|
3879
|
-
|
|
3880
|
-
},
|
|
3881
|
-
|
|
3958
|
+
g(), O();
|
|
3959
|
+
}, g = () => {
|
|
3960
|
+
D.value.length && (e.onlySelection = !0);
|
|
3882
3961
|
}, O = () => {
|
|
3883
|
-
const d = JSON.parse(localStorage.getItem(
|
|
3962
|
+
const d = JSON.parse(localStorage.getItem(f.value)) || [], m = [], P = [];
|
|
3884
3963
|
d.forEach((H) => {
|
|
3885
|
-
H.prop && (
|
|
3886
|
-
}), e.columns =
|
|
3887
|
-
},
|
|
3888
|
-
d && !e.allData.length &&
|
|
3889
|
-
},
|
|
3964
|
+
H.prop && (m.push(H), H.visible && P.push(H.prop));
|
|
3965
|
+
}), e.columns = m, e.items = P;
|
|
3966
|
+
}, A = (d) => {
|
|
3967
|
+
d && !e.allData.length && k();
|
|
3968
|
+
}, k = async () => {
|
|
3890
3969
|
e.loading = !0;
|
|
3891
|
-
const { list: d, total:
|
|
3970
|
+
const { list: d, total: m } = await n.loadData({
|
|
3892
3971
|
pageStart: 1,
|
|
3893
3972
|
pageSize: 99999
|
|
3894
3973
|
});
|
|
3895
|
-
e.loading = !1,
|
|
3974
|
+
e.loading = !1, m && (e.allData = d);
|
|
3896
3975
|
}, w = () => {
|
|
3897
|
-
},
|
|
3976
|
+
}, p = (d = ",", m) => {
|
|
3898
3977
|
const P = e.items.map((q) => C.value[q].label);
|
|
3899
3978
|
let H = [];
|
|
3900
|
-
e.all ? H = e.allData : e.onlySelection ? H =
|
|
3979
|
+
e.all ? H = e.allData : e.onlySelection ? H = D.value : H = j.value;
|
|
3901
3980
|
const ne = H.map((q) => {
|
|
3902
3981
|
const se = [];
|
|
3903
|
-
return e.items.forEach((
|
|
3904
|
-
if (["country"].includes(
|
|
3982
|
+
return e.items.forEach((R) => {
|
|
3983
|
+
if (["country"].includes(R))
|
|
3905
3984
|
if (e.useCountryName) {
|
|
3906
|
-
const ce = window.$getType(q[
|
|
3985
|
+
const ce = window.$getType(q[R]);
|
|
3907
3986
|
let J;
|
|
3908
|
-
ce === "Array" ? J = q[
|
|
3987
|
+
ce === "Array" ? J = q[R] : J = q[R].split(","), J = J.map((_e) => fe("country.asaObj")[_e.toLowerCase()][`label_${r.value}`]), se.push(`"${J.join(",")}"`);
|
|
3909
3988
|
} else
|
|
3910
|
-
se.push(`"${q[
|
|
3911
|
-
else if (["spendOrigin"].includes(
|
|
3912
|
-
const ce = q.currency + " " + (q[`${
|
|
3989
|
+
se.push(`"${q[R]}"`);
|
|
3990
|
+
else if (["spendOrigin"].includes(R)) {
|
|
3991
|
+
const ce = q.currency + " " + (q[`${R}Format`] || q[R]);
|
|
3913
3992
|
se.push(`"${ce || "-"}"`);
|
|
3914
3993
|
} else {
|
|
3915
|
-
const ce = q[`${
|
|
3994
|
+
const ce = q[`${R}Format`] || q[R];
|
|
3916
3995
|
se.push(`"${ce || "-"}"`);
|
|
3917
3996
|
}
|
|
3918
3997
|
}), se.join(d);
|
|
3919
3998
|
});
|
|
3920
|
-
return
|
|
3999
|
+
return m && ne.unshift(P.join(d)), ne.join(`
|
|
3921
4000
|
`);
|
|
3922
4001
|
}, i = () => {
|
|
3923
|
-
var
|
|
4002
|
+
var m;
|
|
3924
4003
|
let d = !1;
|
|
3925
|
-
if ((e.onlySelection && ((
|
|
3926
|
-
const P =
|
|
4004
|
+
if ((e.onlySelection && ((m = n.params.selection) != null && m.length) || j.value.length) && (d = !0), d) {
|
|
4005
|
+
const P = p(" ", e.withTableHead);
|
|
3927
4006
|
window.$copy(P);
|
|
3928
4007
|
} else
|
|
3929
|
-
|
|
3930
|
-
},
|
|
3931
|
-
const d =
|
|
3932
|
-
let
|
|
3933
|
-
e.filename ?
|
|
4008
|
+
t.$message.info("No Data to Download");
|
|
4009
|
+
}, y = () => {
|
|
4010
|
+
const d = p(",", !0);
|
|
4011
|
+
let m = _.value;
|
|
4012
|
+
e.filename ? m ? m += `_${e.filename}` : m = e.filename : m || (m = b.value), Re({
|
|
3934
4013
|
type: "csv",
|
|
3935
|
-
name:
|
|
4014
|
+
name: m,
|
|
3936
4015
|
data: d
|
|
3937
4016
|
});
|
|
3938
|
-
}, r = h(() => window.$getLang()),
|
|
4017
|
+
}, r = h(() => window.$getLang()), s = h(() => n.params.tableName), _ = h(() => s.value ? `${window.$l(s.value)}_${window.$m().format("YYYYMMDD_hhmmss")}` : ""), f = h(() => n.params.tableName + "_Column"), b = h(() => `${S.name}_${window.$m().format("YYYYMMDD_hhmmss")}`), x = h(() => n.params.useAll && !!n.loadData), C = h(() => {
|
|
3939
4018
|
const d = {};
|
|
3940
|
-
return e.columns.forEach((
|
|
3941
|
-
d[
|
|
4019
|
+
return e.columns.forEach((m) => {
|
|
4020
|
+
d[m.prop] = m;
|
|
3942
4021
|
}), d;
|
|
3943
|
-
}),
|
|
4022
|
+
}), j = h(() => {
|
|
3944
4023
|
var d;
|
|
3945
|
-
return ((d =
|
|
3946
|
-
}),
|
|
4024
|
+
return ((d = n.params) == null ? void 0 : d.list) || [];
|
|
4025
|
+
}), D = h(() => {
|
|
3947
4026
|
var d;
|
|
3948
|
-
return ((d =
|
|
3949
|
-
}), a = h(() => e.loading ? !0 : e.all ? !e.allData.length : e.items.length === 0 ||
|
|
3950
|
-
return (d,
|
|
3951
|
-
const P = I("el-checkbox"), H = I("el-button"), ne = I("Alert"), q = I("el-switch"), se = I("el-checkbox-group"),
|
|
4027
|
+
return ((d = n.params) == null ? void 0 : d.selection) || [];
|
|
4028
|
+
}), a = h(() => e.loading ? !0 : e.all ? !e.allData.length : e.items.length === 0 || j.value.length === 0);
|
|
4029
|
+
return (d, m) => {
|
|
4030
|
+
const P = I("el-checkbox"), H = I("el-button"), ne = I("Alert"), q = I("el-switch"), se = I("el-checkbox-group"), R = I("el-input"), ce = I("DrawerArea");
|
|
3952
4031
|
return c(), L(ce, {
|
|
3953
|
-
loading:
|
|
3954
|
-
onSubmit:
|
|
4032
|
+
loading: o(e).loading,
|
|
4033
|
+
onSubmit: y
|
|
3955
4034
|
}, {
|
|
3956
4035
|
footer: $(() => [
|
|
3957
|
-
u("div",
|
|
3958
|
-
z(
|
|
3959
|
-
modelValue:
|
|
3960
|
-
"onUpdate:modelValue":
|
|
4036
|
+
u("div", Ba, [
|
|
4037
|
+
z(R, {
|
|
4038
|
+
modelValue: o(e).filename,
|
|
4039
|
+
"onUpdate:modelValue": m[5] || (m[5] = (J) => o(e).filename = J),
|
|
3961
4040
|
clearable: "",
|
|
3962
|
-
placeholder:
|
|
4041
|
+
placeholder: o(_),
|
|
3963
4042
|
class: "inputGroupLeft"
|
|
3964
4043
|
}, {
|
|
3965
|
-
prefix: $(() => [...
|
|
4044
|
+
prefix: $(() => [...m[7] || (m[7] = [
|
|
3966
4045
|
u("i", { class: "imicon im-file" }, null, -1)
|
|
3967
4046
|
])]),
|
|
3968
4047
|
_: 1
|
|
3969
4048
|
}, 8, ["modelValue", "placeholder"]),
|
|
3970
|
-
u("div",
|
|
4049
|
+
u("div", Ya, [
|
|
3971
4050
|
z(H, {
|
|
3972
|
-
disabled:
|
|
4051
|
+
disabled: o(a),
|
|
3973
4052
|
plain: "",
|
|
3974
4053
|
type: "primary",
|
|
3975
|
-
onClick:
|
|
4054
|
+
onClick: y
|
|
3976
4055
|
}, {
|
|
3977
|
-
icon: $(() => [...
|
|
4056
|
+
icon: $(() => [...m[8] || (m[8] = [
|
|
3978
4057
|
u("i", { class: "imicon im-download1" }, null, -1)
|
|
3979
4058
|
])]),
|
|
3980
4059
|
default: $(() => [
|
|
3981
|
-
u("span", null,
|
|
4060
|
+
u("span", null, N(d.$l("Download")), 1)
|
|
3982
4061
|
]),
|
|
3983
4062
|
_: 1
|
|
3984
4063
|
}, 8, ["disabled"])
|
|
@@ -3986,51 +4065,51 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
3986
4065
|
])
|
|
3987
4066
|
]),
|
|
3988
4067
|
default: $(() => [
|
|
3989
|
-
u("div",
|
|
4068
|
+
u("div", $a, [
|
|
3990
4069
|
z(ne, null, {
|
|
3991
4070
|
default: $(() => [
|
|
3992
|
-
u("div",
|
|
3993
|
-
u("span",
|
|
3994
|
-
u("span",
|
|
4071
|
+
u("div", wa, [
|
|
4072
|
+
u("span", Sa, N(d.$l("Total in Current Page")) + ": ", 1),
|
|
4073
|
+
u("span", Ca, N(o(j).length), 1)
|
|
3995
4074
|
]),
|
|
3996
|
-
|
|
4075
|
+
o(x) ? (c(), M("div", ka, [
|
|
3997
4076
|
z(P, {
|
|
3998
|
-
modelValue:
|
|
3999
|
-
"onUpdate:modelValue":
|
|
4077
|
+
modelValue: o(e).all,
|
|
4078
|
+
"onUpdate:modelValue": m[0] || (m[0] = (J) => o(e).all = J),
|
|
4000
4079
|
label: d.$l("Download All Data"),
|
|
4001
4080
|
class: "h24",
|
|
4002
|
-
onChange:
|
|
4081
|
+
onChange: A
|
|
4003
4082
|
}, null, 8, ["modelValue", "label"]),
|
|
4004
|
-
|
|
4005
|
-
u("span",
|
|
4006
|
-
u("span",
|
|
4083
|
+
o(e).allData.length ? (c(), M("div", xa, [
|
|
4084
|
+
u("span", Va, N(d.$l("Total in All Page")) + ":", 1),
|
|
4085
|
+
u("span", Oa, N(o(e).allData.length), 1)
|
|
4007
4086
|
])) : Y("", !0)
|
|
4008
4087
|
])) : Y("", !0),
|
|
4009
|
-
|
|
4010
|
-
u("span",
|
|
4011
|
-
u("span",
|
|
4088
|
+
o(D).length ? (c(), M("div", Da, [
|
|
4089
|
+
u("span", Aa, N(d.$l("Selected")), 1),
|
|
4090
|
+
u("span", Ta, N(o(D).length), 1),
|
|
4012
4091
|
z(P, {
|
|
4013
|
-
modelValue:
|
|
4014
|
-
"onUpdate:modelValue":
|
|
4092
|
+
modelValue: o(e).onlySelection,
|
|
4093
|
+
"onUpdate:modelValue": m[1] || (m[1] = (J) => o(e).onlySelection = J),
|
|
4015
4094
|
label: d.$l("Only Selection"),
|
|
4016
|
-
disabled:
|
|
4095
|
+
disabled: o(e).all,
|
|
4017
4096
|
class: "h24"
|
|
4018
4097
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
4019
4098
|
])) : Y("", !0),
|
|
4020
|
-
u("div",
|
|
4099
|
+
u("div", Ma, [
|
|
4021
4100
|
z(H, {
|
|
4022
4101
|
plain: "",
|
|
4023
4102
|
size: "default",
|
|
4024
4103
|
onClick: i
|
|
4025
4104
|
}, {
|
|
4026
|
-
icon: $(() => [...
|
|
4105
|
+
icon: $(() => [...m[6] || (m[6] = [
|
|
4027
4106
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
4028
4107
|
])]),
|
|
4029
4108
|
default: $(() => [
|
|
4030
|
-
u("span",
|
|
4109
|
+
u("span", Na, N(d.$l("Copy to Clipboard")), 1),
|
|
4031
4110
|
z(P, {
|
|
4032
|
-
modelValue:
|
|
4033
|
-
"onUpdate:modelValue":
|
|
4111
|
+
modelValue: o(e).withTableHead,
|
|
4112
|
+
"onUpdate:modelValue": m[2] || (m[2] = (J) => o(e).withTableHead = J),
|
|
4034
4113
|
label: d.$l("With Table Head"),
|
|
4035
4114
|
onClick: he((J) => null, ["stop"])
|
|
4036
4115
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -4042,24 +4121,24 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4042
4121
|
_: 1
|
|
4043
4122
|
})
|
|
4044
4123
|
]),
|
|
4045
|
-
u("div",
|
|
4046
|
-
u("div",
|
|
4124
|
+
u("div", Ia, [
|
|
4125
|
+
u("div", za, N(d.$l("What do you want to Download?")), 1),
|
|
4047
4126
|
z(se, {
|
|
4048
|
-
modelValue:
|
|
4049
|
-
"onUpdate:modelValue":
|
|
4127
|
+
modelValue: o(e).items,
|
|
4128
|
+
"onUpdate:modelValue": m[4] || (m[4] = (J) => o(e).items = J)
|
|
4050
4129
|
}, {
|
|
4051
4130
|
default: $(() => [
|
|
4052
|
-
(c(!0),
|
|
4131
|
+
(c(!0), M(ie, null, de(o(e).columns, (J, _e) => (c(), L(P, {
|
|
4053
4132
|
key: J.prop,
|
|
4054
4133
|
value: J.prop,
|
|
4055
4134
|
class: "wp100 p0-16 h36 hover-bg-gray1"
|
|
4056
4135
|
}, {
|
|
4057
4136
|
default: $(() => [
|
|
4058
|
-
u("span",
|
|
4137
|
+
u("span", ja, N(J.label), 1),
|
|
4059
4138
|
J.prop === "country" ? (c(), L(q, {
|
|
4060
4139
|
key: 0,
|
|
4061
|
-
modelValue:
|
|
4062
|
-
"onUpdate:modelValue":
|
|
4140
|
+
modelValue: o(e).useCountryName,
|
|
4141
|
+
"onUpdate:modelValue": m[3] || (m[3] = ($e) => o(e).useCountryName = $e),
|
|
4063
4142
|
"inline-prompt": "",
|
|
4064
4143
|
"active-text": " Use name ",
|
|
4065
4144
|
"inactive-text": " Use Alpha-2 code ",
|
|
@@ -4077,12 +4156,12 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4077
4156
|
}, 8, ["loading"]);
|
|
4078
4157
|
};
|
|
4079
4158
|
}
|
|
4080
|
-
}),
|
|
4159
|
+
}), Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4081
4160
|
__proto__: null,
|
|
4082
|
-
default:
|
|
4083
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4161
|
+
default: Ea
|
|
4162
|
+
}, Symbol.toStringTag, { value: "Module" })), Fa = { class: "SuperCountryAso relative" }, Pa = { class: "flexMode hr" }, Ua = E({
|
|
4084
4163
|
name: "SuperCountryAso"
|
|
4085
|
-
}),
|
|
4164
|
+
}), Ga = /* @__PURE__ */ Object.assign(Ua, {
|
|
4086
4165
|
props: {
|
|
4087
4166
|
modelValue: {
|
|
4088
4167
|
type: [String, Array],
|
|
@@ -4119,66 +4198,66 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4119
4198
|
"confirm",
|
|
4120
4199
|
"update:name"
|
|
4121
4200
|
],
|
|
4122
|
-
setup(
|
|
4123
|
-
const
|
|
4201
|
+
setup(T, { emit: V }) {
|
|
4202
|
+
const n = T, { proxy: e } = ee(), S = pe("store").common(), l = G({
|
|
4124
4203
|
loading: !1,
|
|
4125
4204
|
v: "",
|
|
4126
4205
|
arr: []
|
|
4127
|
-
}),
|
|
4128
|
-
|
|
4129
|
-
},
|
|
4130
|
-
let
|
|
4206
|
+
}), g = V, O = (i) => {
|
|
4207
|
+
g("update:modelValue", i), g("to-change", i);
|
|
4208
|
+
}, A = (i) => {
|
|
4209
|
+
let y = [];
|
|
4131
4210
|
S.countryOptions.forEach((r) => {
|
|
4132
|
-
i.forEach((
|
|
4133
|
-
r.value ===
|
|
4211
|
+
i.forEach((s) => {
|
|
4212
|
+
r.value === s && y.push(r.label);
|
|
4134
4213
|
});
|
|
4135
|
-
}),
|
|
4136
|
-
},
|
|
4137
|
-
|
|
4138
|
-
}, w = h(() => S.countryOptions),
|
|
4139
|
-
return
|
|
4140
|
-
() =>
|
|
4141
|
-
(i,
|
|
4142
|
-
i && JSON.stringify(i) !== JSON.stringify(
|
|
4214
|
+
}), g("update:modelValue", i), g("update:name", y.join(", ")), g("to-change", i);
|
|
4215
|
+
}, k = () => {
|
|
4216
|
+
g("update:modelValue", l.arr), g("confirm", l.arr), e.$refs.multiple.blur();
|
|
4217
|
+
}, w = h(() => S.countryOptions), p = h(() => window.$l("Countries or Regions"));
|
|
4218
|
+
return Z(
|
|
4219
|
+
() => n.modelValue,
|
|
4220
|
+
(i, y) => {
|
|
4221
|
+
i && JSON.stringify(i) !== JSON.stringify(y) && (n.multiple ? l.arr = i : l.v = i);
|
|
4143
4222
|
},
|
|
4144
4223
|
{
|
|
4145
4224
|
immediate: !0
|
|
4146
4225
|
}
|
|
4147
|
-
), (i,
|
|
4148
|
-
const r = I("IconLoading"),
|
|
4149
|
-
return c(),
|
|
4150
|
-
|
|
4151
|
-
|
|
4226
|
+
), (i, y) => {
|
|
4227
|
+
const r = I("IconLoading"), s = I("CountryItem"), _ = I("el-option"), f = I("el-select"), b = I("el-button"), x = I("MultipleSelect");
|
|
4228
|
+
return c(), M("div", Fa, [
|
|
4229
|
+
o(l).loading ? (c(), L(r, { key: 0 })) : Y("", !0),
|
|
4230
|
+
n.multiple ? (c(), L(x, Q({
|
|
4152
4231
|
key: 2,
|
|
4153
4232
|
ref: "multiple",
|
|
4154
|
-
modelValue:
|
|
4155
|
-
"onUpdate:modelValue":
|
|
4156
|
-
options:
|
|
4157
|
-
placeholder:
|
|
4233
|
+
modelValue: o(l).arr,
|
|
4234
|
+
"onUpdate:modelValue": y[1] || (y[1] = (C) => o(l).arr = C),
|
|
4235
|
+
options: o(w),
|
|
4236
|
+
placeholder: o(p)
|
|
4158
4237
|
}, i.$attrs, {
|
|
4159
|
-
"multiple-limit":
|
|
4160
|
-
onChange:
|
|
4238
|
+
"multiple-limit": n.limit,
|
|
4239
|
+
onChange: A
|
|
4161
4240
|
}), ae({
|
|
4162
4241
|
default: $(({ it: C }) => [
|
|
4163
|
-
z(
|
|
4242
|
+
z(s, {
|
|
4164
4243
|
name: C.value_lower
|
|
4165
4244
|
}, null, 8, ["name"])
|
|
4166
4245
|
]),
|
|
4167
4246
|
_: 2
|
|
4168
4247
|
}, [
|
|
4169
|
-
|
|
4248
|
+
n.useFooter ? {
|
|
4170
4249
|
name: "footer",
|
|
4171
4250
|
fn: $(() => [
|
|
4172
|
-
u("div",
|
|
4251
|
+
u("div", Pa, [
|
|
4173
4252
|
z(b, {
|
|
4174
4253
|
type: "primary",
|
|
4175
|
-
onClick:
|
|
4254
|
+
onClick: k
|
|
4176
4255
|
}, {
|
|
4177
|
-
icon: $(() => [...
|
|
4256
|
+
icon: $(() => [...y[2] || (y[2] = [
|
|
4178
4257
|
u("i", { class: "imicon im-search" }, null, -1)
|
|
4179
4258
|
])]),
|
|
4180
4259
|
default: $(() => [
|
|
4181
|
-
|
|
4260
|
+
le(" " + N(i.$l("Confirm")), 1)
|
|
4182
4261
|
]),
|
|
4183
4262
|
_: 1
|
|
4184
4263
|
})
|
|
@@ -4186,27 +4265,27 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4186
4265
|
]),
|
|
4187
4266
|
key: "0"
|
|
4188
4267
|
} : void 0
|
|
4189
|
-
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (c(), L(
|
|
4268
|
+
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (c(), L(f, Q({
|
|
4190
4269
|
key: 1,
|
|
4191
|
-
modelValue:
|
|
4192
|
-
"onUpdate:modelValue":
|
|
4270
|
+
modelValue: o(l).v,
|
|
4271
|
+
"onUpdate:modelValue": y[0] || (y[0] = (C) => o(l).v = C),
|
|
4193
4272
|
filterable: "",
|
|
4194
|
-
placeholder:
|
|
4273
|
+
placeholder: o(p),
|
|
4195
4274
|
class: "wp100"
|
|
4196
4275
|
}, i.$attrs, { onChange: O }), ae({
|
|
4197
4276
|
default: $(() => [
|
|
4198
|
-
|
|
4277
|
+
n.useAll ? (c(), L(_, {
|
|
4199
4278
|
key: 0,
|
|
4200
4279
|
label: i.$l("All"),
|
|
4201
|
-
value:
|
|
4280
|
+
value: n.allValue
|
|
4202
4281
|
}, null, 8, ["label", "value"])) : Y("", !0),
|
|
4203
|
-
(c(!0),
|
|
4282
|
+
(c(!0), M(ie, null, de(o(w), (C, j) => (c(), L(_, {
|
|
4204
4283
|
key: C.value,
|
|
4205
4284
|
label: i.$l(C.label),
|
|
4206
4285
|
value: C.value_lower
|
|
4207
4286
|
}, {
|
|
4208
4287
|
default: $(() => [
|
|
4209
|
-
z(
|
|
4288
|
+
z(s, {
|
|
4210
4289
|
name: C.value_lower
|
|
4211
4290
|
}, null, 8, ["name"])
|
|
4212
4291
|
]),
|
|
@@ -4215,11 +4294,11 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4215
4294
|
]),
|
|
4216
4295
|
_: 2
|
|
4217
4296
|
}, [
|
|
4218
|
-
|
|
4297
|
+
o(l).v ? {
|
|
4219
4298
|
name: "prefix",
|
|
4220
4299
|
fn: $(() => [
|
|
4221
|
-
z(
|
|
4222
|
-
name:
|
|
4300
|
+
z(s, {
|
|
4301
|
+
name: o(l).v,
|
|
4223
4302
|
nolabel: ""
|
|
4224
4303
|
}, null, 8, ["name"])
|
|
4225
4304
|
]),
|
|
@@ -4229,12 +4308,12 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4229
4308
|
]);
|
|
4230
4309
|
};
|
|
4231
4310
|
}
|
|
4232
|
-
}),
|
|
4311
|
+
}), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4233
4312
|
__proto__: null,
|
|
4234
|
-
default:
|
|
4235
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4313
|
+
default: Ga
|
|
4314
|
+
}, Symbol.toStringTag, { value: "Module" })), Ja = { class: "SuperCountryDiy" }, Ka = { class: "flexMode hr" }, Wa = E({
|
|
4236
4315
|
name: "SuperCountryDiy"
|
|
4237
|
-
}),
|
|
4316
|
+
}), qa = /* @__PURE__ */ Object.assign(Wa, {
|
|
4238
4317
|
props: {
|
|
4239
4318
|
modelValue: {
|
|
4240
4319
|
tupe: [Array, String],
|
|
@@ -4258,80 +4337,80 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4258
4337
|
}
|
|
4259
4338
|
},
|
|
4260
4339
|
emits: ["change", "update:modelValue"],
|
|
4261
|
-
setup(
|
|
4262
|
-
const
|
|
4340
|
+
setup(T, { emit: V }) {
|
|
4341
|
+
const n = T, e = G({
|
|
4263
4342
|
single: "",
|
|
4264
4343
|
multiple: []
|
|
4265
|
-
}), { proxy:
|
|
4266
|
-
|
|
4267
|
-
},
|
|
4268
|
-
S("update:modelValue",
|
|
4269
|
-
}, O = h(() =>
|
|
4270
|
-
return
|
|
4271
|
-
() =>
|
|
4272
|
-
(
|
|
4273
|
-
JSON.stringify(
|
|
4344
|
+
}), { proxy: t } = ee(), S = V, l = () => {
|
|
4345
|
+
t.$refs.multiple.blur();
|
|
4346
|
+
}, g = (k) => {
|
|
4347
|
+
S("update:modelValue", k), S("change", k);
|
|
4348
|
+
}, O = h(() => n.placeholder ? window.$l(n.placeholder) : window.$l("Country or Region")), A = h(() => n.options.sort((k, w) => k.label.localeCompare(w.label)));
|
|
4349
|
+
return Z(
|
|
4350
|
+
() => n.modelValue,
|
|
4351
|
+
(k, w) => {
|
|
4352
|
+
JSON.stringify(k) !== JSON.stringify(w) && (n.multiple ? e.multiple = k : e.single = k);
|
|
4274
4353
|
},
|
|
4275
4354
|
{
|
|
4276
4355
|
immediate: !0
|
|
4277
4356
|
}
|
|
4278
|
-
), (
|
|
4279
|
-
const
|
|
4280
|
-
return c(),
|
|
4281
|
-
|
|
4357
|
+
), (k, w) => {
|
|
4358
|
+
const p = I("CountryItem"), i = I("el-button"), y = I("MultipleSelect"), r = I("el-option"), s = I("el-select");
|
|
4359
|
+
return c(), M("div", Ja, [
|
|
4360
|
+
n.multiple ? (c(), L(y, Q({
|
|
4282
4361
|
key: 0,
|
|
4283
4362
|
ref: "multiple",
|
|
4284
|
-
modelValue:
|
|
4285
|
-
"onUpdate:modelValue": w[0] || (w[0] = (_) =>
|
|
4286
|
-
placeholder:
|
|
4287
|
-
},
|
|
4288
|
-
options:
|
|
4289
|
-
onChange:
|
|
4363
|
+
modelValue: o(e).multiple,
|
|
4364
|
+
"onUpdate:modelValue": w[0] || (w[0] = (_) => o(e).multiple = _),
|
|
4365
|
+
placeholder: o(O)
|
|
4366
|
+
}, k.$attrs, {
|
|
4367
|
+
options: o(A),
|
|
4368
|
+
onChange: g
|
|
4290
4369
|
}), ae({
|
|
4291
4370
|
default: $(({ it: _ }) => [
|
|
4292
|
-
z(
|
|
4371
|
+
z(p, {
|
|
4293
4372
|
name: _.value
|
|
4294
4373
|
}, null, 8, ["name"])
|
|
4295
4374
|
]),
|
|
4296
4375
|
_: 2
|
|
4297
4376
|
}, [
|
|
4298
|
-
|
|
4377
|
+
n.useFooter ? {
|
|
4299
4378
|
name: "footer",
|
|
4300
4379
|
fn: $(() => [
|
|
4301
|
-
u("div",
|
|
4380
|
+
u("div", Ka, [
|
|
4302
4381
|
z(i, {
|
|
4303
4382
|
type: "primary",
|
|
4304
4383
|
onClick: l
|
|
4305
4384
|
}, {
|
|
4306
4385
|
default: $(() => [
|
|
4307
|
-
|
|
4386
|
+
le(N(k.$l("Confirm")), 1)
|
|
4308
4387
|
]),
|
|
4309
4388
|
_: 1
|
|
4310
4389
|
})
|
|
4311
4390
|
])
|
|
4312
4391
|
]),
|
|
4313
4392
|
key: "0"
|
|
4314
|
-
} :
|
|
4393
|
+
} : k.$slots.footer ? {
|
|
4315
4394
|
name: "footer",
|
|
4316
4395
|
fn: $(() => [
|
|
4317
|
-
W(
|
|
4396
|
+
W(k.$slots, "footer")
|
|
4318
4397
|
]),
|
|
4319
4398
|
key: "1"
|
|
4320
4399
|
} : void 0
|
|
4321
|
-
]), 1040, ["modelValue", "placeholder", "options"])) : (c(), L(
|
|
4400
|
+
]), 1040, ["modelValue", "placeholder", "options"])) : (c(), L(s, Q({
|
|
4322
4401
|
key: 1,
|
|
4323
|
-
modelValue:
|
|
4324
|
-
"onUpdate:modelValue": w[1] || (w[1] = (_) =>
|
|
4325
|
-
placeholder:
|
|
4326
|
-
},
|
|
4402
|
+
modelValue: o(e).single,
|
|
4403
|
+
"onUpdate:modelValue": w[1] || (w[1] = (_) => o(e).single = _),
|
|
4404
|
+
placeholder: o(O)
|
|
4405
|
+
}, k.$attrs, { onChange: g }), ae({
|
|
4327
4406
|
default: $(() => [
|
|
4328
|
-
(c(!0),
|
|
4329
|
-
key:
|
|
4330
|
-
label:
|
|
4407
|
+
(c(!0), M(ie, null, de(o(A), (_, f) => (c(), L(r, {
|
|
4408
|
+
key: f,
|
|
4409
|
+
label: k.$l(_.label),
|
|
4331
4410
|
value: _.value
|
|
4332
4411
|
}, {
|
|
4333
4412
|
default: $(() => [
|
|
4334
|
-
z(
|
|
4413
|
+
z(p, {
|
|
4335
4414
|
name: _.value
|
|
4336
4415
|
}, null, 8, ["name"])
|
|
4337
4416
|
]),
|
|
@@ -4340,11 +4419,11 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4340
4419
|
]),
|
|
4341
4420
|
_: 2
|
|
4342
4421
|
}, [
|
|
4343
|
-
|
|
4422
|
+
o(e).single ? {
|
|
4344
4423
|
name: "prefix",
|
|
4345
4424
|
fn: $(() => [
|
|
4346
|
-
z(
|
|
4347
|
-
name:
|
|
4425
|
+
z(p, {
|
|
4426
|
+
name: o(e).single,
|
|
4348
4427
|
nolabel: ""
|
|
4349
4428
|
}, null, 8, ["name"])
|
|
4350
4429
|
]),
|
|
@@ -4354,10 +4433,10 @@ ${g.value}` : `${g.value}`), n = h(() => i.value ? e.modelValue.join(e.sep) : e.
|
|
|
4354
4433
|
]);
|
|
4355
4434
|
};
|
|
4356
4435
|
}
|
|
4357
|
-
}),
|
|
4436
|
+
}), Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4358
4437
|
__proto__: null,
|
|
4359
|
-
default:
|
|
4438
|
+
default: qa
|
|
4360
4439
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4361
4440
|
export {
|
|
4362
|
-
|
|
4441
|
+
sn as c
|
|
4363
4442
|
};
|