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