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