@vancone/console-component 0.2.0-beta.0 → 0.2.0-beta.1
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.
|
@@ -26,23 +26,23 @@ var Ne = (e, o, n) => new Promise((t, s) => {
|
|
|
26
26
|
}, l = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, c);
|
|
27
27
|
l((n = n.apply(e, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { openBlock as
|
|
29
|
+
import { openBlock as d, createElementBlock as E, createElementVNode as _, defineComponent as Ce, reactive as fe, resolveComponent as $, createVNode as h, withCtx as p, unref as w, Fragment as ne, renderList as me, toDisplayString as A, normalizeStyle as He, shallowRef as he, ref as j, onMounted as wt, createBlock as I, createTextVNode as B, createCommentVNode as L, normalizeClass as Ct, withModifiers as Po, resolveDynamicComponent as it, effectScope as Wt, markRaw as Te, toRaw as We, hasInjectionContext as Io, inject as Vo, getCurrentInstance as Mo, watch as Me, isRef as Ze, isReactive as kt, toRef as mt, nextTick as ct, computed as Re, getCurrentScope as No, onScopeDispose as Uo, toRefs as Ut, onUnmounted as To, createStaticVNode as Ao, resolveDirective as Yt, withDirectives as Jt } from "vue";
|
|
30
30
|
import { useRoute as tt, useRouter as ft } from "vue-router";
|
|
31
31
|
import Do from "axios";
|
|
32
32
|
import { ElMessage as ht, ElMessageBox as Tt } from "element-plus";
|
|
33
33
|
import { createI18n as Ro, useI18n as St } from "vue-i18n";
|
|
34
34
|
import { Search as Kt, ArrowDown as Qt, ArrowRight as Fo, Check as At, Refresh as xt, Delete as Lo, Upload as Go, Download as Dt, Document as jo, Printer as zo, Setting as qo, MoreFilled as Bo, QuestionFilled as Ho } from "@element-plus/icons-vue";
|
|
35
35
|
import { cloneDeep as Be } from "lodash";
|
|
36
|
-
const
|
|
36
|
+
const ke = (e, o) => {
|
|
37
37
|
const n = e.__vccOpts || e;
|
|
38
38
|
for (const [t, s] of o)
|
|
39
39
|
n[t] = s;
|
|
40
40
|
return n;
|
|
41
41
|
}, Wo = {}, Yo = { class: "building" };
|
|
42
42
|
function Jo(e, o) {
|
|
43
|
-
return
|
|
43
|
+
return d(), E("div", Yo);
|
|
44
44
|
}
|
|
45
|
-
const Ko = /* @__PURE__ */
|
|
45
|
+
const Ko = /* @__PURE__ */ ke(Wo, [["render", Jo], ["__scopeId", "data-v-07bd45d2"]]), we = Do.create({
|
|
46
46
|
timeout: 2 * 60 * 1e3,
|
|
47
47
|
withCredentials: !0
|
|
48
48
|
});
|
|
@@ -164,17 +164,17 @@ const Qo = {
|
|
|
164
164
|
yes: "是"
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
},
|
|
167
|
+
}, ut = Ro({
|
|
168
168
|
legacy: !1,
|
|
169
169
|
locale: localStorage.getItem("locale") || navigator.language.slice(0, 2),
|
|
170
170
|
messages: {
|
|
171
171
|
en: Qo,
|
|
172
172
|
zh: Xo
|
|
173
173
|
}
|
|
174
|
-
}), { t: Zo } =
|
|
174
|
+
}), { t: Zo } = ut.global, en = (e) => e.filter(({ meta: o }) => !o || !o.hidden), Xt = () => {
|
|
175
175
|
const { origin: e } = window.location;
|
|
176
176
|
return e.includes("beta") || e.includes("localhost") ? "passport.beta.vancone.com" : "passport.vancone.com";
|
|
177
|
-
},
|
|
177
|
+
}, dr = (e, o) => {
|
|
178
178
|
let n = window.URL || window.webkitURL || window, t = new Blob([e]), s = document.createElement("a");
|
|
179
179
|
s.href = n.createObjectURL(t), s.download = o, s.click();
|
|
180
180
|
};
|
|
@@ -217,23 +217,23 @@ const rn = {
|
|
|
217
217
|
viewBox: "0 0 1024 1024"
|
|
218
218
|
};
|
|
219
219
|
function ln(e, o) {
|
|
220
|
-
return
|
|
220
|
+
return d(), E("svg", rn, o[0] || (o[0] = [
|
|
221
221
|
_("path", { d: "M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z" }, null, -1)
|
|
222
222
|
]));
|
|
223
223
|
}
|
|
224
|
-
const cn = { render: ln },
|
|
224
|
+
const cn = { render: ln }, un = {
|
|
225
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
226
|
width: "32",
|
|
227
227
|
height: "32",
|
|
228
228
|
class: "icon",
|
|
229
229
|
viewBox: "0 0 1024 1024"
|
|
230
230
|
};
|
|
231
|
-
function
|
|
232
|
-
return
|
|
231
|
+
function dn(e, o) {
|
|
232
|
+
return d(), E("svg", un, o[0] || (o[0] = [
|
|
233
233
|
_("path", { d: "M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z" }, null, -1)
|
|
234
234
|
]));
|
|
235
235
|
}
|
|
236
|
-
const pn = { render:
|
|
236
|
+
const pn = { render: dn }, fn = {
|
|
237
237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
238
|
width: "32",
|
|
239
239
|
height: "32",
|
|
@@ -241,14 +241,14 @@ const pn = { render: un }, fn = {
|
|
|
241
241
|
viewBox: "0 0 1024 1024"
|
|
242
242
|
};
|
|
243
243
|
function mn(e, o) {
|
|
244
|
-
return
|
|
244
|
+
return d(), E("svg", fn, o[0] || (o[0] = [
|
|
245
245
|
_("path", { d: "M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z" }, null, -1)
|
|
246
246
|
]));
|
|
247
247
|
}
|
|
248
248
|
const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class: "catalog-wrapper" }, gn = { class: "service-list" }, bn = { class: "app-icon-container" }, yn = ["href"], wn = ["innerHTML"], Cn = {
|
|
249
249
|
key: 1,
|
|
250
250
|
class: "app-icon"
|
|
251
|
-
}, kn = /* @__PURE__ */
|
|
251
|
+
}, kn = /* @__PURE__ */ Ce({
|
|
252
252
|
__name: "AppCatalog",
|
|
253
253
|
props: {
|
|
254
254
|
visible: { type: Boolean }
|
|
@@ -267,18 +267,18 @@ const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class:
|
|
|
267
267
|
}
|
|
268
268
|
return n(), (t, s) => {
|
|
269
269
|
const a = $("el-input"), c = $("el-scrollbar"), l = $("el-tab-pane"), i = $("el-tabs");
|
|
270
|
-
return
|
|
270
|
+
return d(), E("div", vn, [
|
|
271
271
|
h(i, { "tab-position": "left" }, {
|
|
272
272
|
default: p(() => [
|
|
273
273
|
h(l, null, {
|
|
274
274
|
label: p(() => [
|
|
275
|
-
h(
|
|
275
|
+
h(w(cn), { class: "left-icon" })
|
|
276
276
|
]),
|
|
277
277
|
default: p(() => [
|
|
278
278
|
s[0] || (s[0] = _("h1", { class: "catalog-title" }, "Apps", -1)),
|
|
279
279
|
h(a, {
|
|
280
280
|
class: "search-box",
|
|
281
|
-
"prefix-icon":
|
|
281
|
+
"prefix-icon": w(Kt),
|
|
282
282
|
placeholder: "Search apps"
|
|
283
283
|
}, null, 8, ["prefix-icon"]),
|
|
284
284
|
h(c, {
|
|
@@ -287,23 +287,23 @@ const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class:
|
|
|
287
287
|
}, {
|
|
288
288
|
default: p(() => [
|
|
289
289
|
_("div", _n, [
|
|
290
|
-
(
|
|
290
|
+
(d(!0), E(ne, null, me(o, (f) => (d(), E("div", gn, [
|
|
291
291
|
_("h1", null, A(f.name), 1),
|
|
292
292
|
_("div", bn, [
|
|
293
|
-
(
|
|
294
|
-
var
|
|
295
|
-
return
|
|
296
|
-
style: He([{ "text-decoration": "none" }, { pointerEvents: ((
|
|
293
|
+
(d(!0), E(ne, null, me(f.apps, (b) => {
|
|
294
|
+
var y, V;
|
|
295
|
+
return d(), E("a", {
|
|
296
|
+
style: He([{ "text-decoration": "none" }, { pointerEvents: ((y = b.homepageUrl) == null ? void 0 : y.length) > 0 ? "auto" : "none" }]),
|
|
297
297
|
target: "_blank",
|
|
298
298
|
href: b.homepageUrl
|
|
299
299
|
}, [
|
|
300
|
-
b.iconSvg !== void 0 ? (
|
|
300
|
+
b.iconSvg !== void 0 ? (d(), E("div", {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: "app-icon",
|
|
303
303
|
innerHTML: b.iconSvg
|
|
304
|
-
}, null, 8, wn)) : (
|
|
304
|
+
}, null, 8, wn)) : (d(), E("div", Cn, " ")),
|
|
305
305
|
_("h2", {
|
|
306
|
-
style: He({ color: ((
|
|
306
|
+
style: He({ color: ((V = b.homepageUrl) == null ? void 0 : V.length) > 0 ? "#555" : "#bbb" })
|
|
307
307
|
}, A(b.name), 5)
|
|
308
308
|
], 12, yn);
|
|
309
309
|
}), 256))
|
|
@@ -318,7 +318,7 @@ const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class:
|
|
|
318
318
|
}),
|
|
319
319
|
h(l, null, {
|
|
320
320
|
label: p(() => [
|
|
321
|
-
h(
|
|
321
|
+
h(w(pn), { class: "left-icon" })
|
|
322
322
|
]),
|
|
323
323
|
default: p(() => [
|
|
324
324
|
s[1] || (s[1] = _("h1", { class: "catalog-title" }, "Favorites", -1))
|
|
@@ -327,7 +327,7 @@ const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class:
|
|
|
327
327
|
}),
|
|
328
328
|
h(l, null, {
|
|
329
329
|
label: p(() => [
|
|
330
|
-
h(
|
|
330
|
+
h(w(hn), { class: "left-icon" })
|
|
331
331
|
]),
|
|
332
332
|
default: p(() => [
|
|
333
333
|
s[2] || (s[2] = _("h1", { class: "catalog-title" }, "Recently", -1))
|
|
@@ -340,13 +340,13 @@ const hn = { render: mn }, vn = { class: "app-catalog-wrapper" }, _n = { class:
|
|
|
340
340
|
]);
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
}), Sn = /* @__PURE__ */
|
|
343
|
+
}), Sn = /* @__PURE__ */ ke(kn, [["__scopeId", "data-v-fcfb021b"]]), xn = {
|
|
344
344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
345
345
|
"xml:space": "preserve",
|
|
346
346
|
viewBox: "0 0 32 32"
|
|
347
347
|
};
|
|
348
348
|
function $n(e, o) {
|
|
349
|
-
return
|
|
349
|
+
return d(), E("svg", xn, o[0] || (o[0] = [
|
|
350
350
|
_("path", { d: "M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z" }, null, -1)
|
|
351
351
|
]));
|
|
352
352
|
}
|
|
@@ -358,7 +358,7 @@ const En = { render: $n }, On = {
|
|
|
358
358
|
viewBox: "0 0 1024 1024"
|
|
359
359
|
};
|
|
360
360
|
function Pn(e, o) {
|
|
361
|
-
return
|
|
361
|
+
return d(), E("svg", On, o[0] || (o[0] = [
|
|
362
362
|
_("path", { d: "M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906" }, null, -1)
|
|
363
363
|
]));
|
|
364
364
|
}
|
|
@@ -370,7 +370,7 @@ const In = { render: Pn }, Vn = {
|
|
|
370
370
|
viewBox: "0 0 1024 1024"
|
|
371
371
|
};
|
|
372
372
|
function Mn(e, o) {
|
|
373
|
-
return
|
|
373
|
+
return d(), E("svg", Vn, o[0] || (o[0] = [
|
|
374
374
|
_("path", { d: "M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z" }, null, -1)
|
|
375
375
|
]));
|
|
376
376
|
}
|
|
@@ -380,7 +380,7 @@ const Nn = { render: Mn }, Un = {
|
|
|
380
380
|
viewBox: "0 0 32 32"
|
|
381
381
|
};
|
|
382
382
|
function Tn(e, o) {
|
|
383
|
-
return
|
|
383
|
+
return d(), E("svg", Un, o[0] || (o[0] = [
|
|
384
384
|
_("path", {
|
|
385
385
|
d: "M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",
|
|
386
386
|
style: { fill: "none", "stroke-width": "3", "stroke-miterlimit": "10" }
|
|
@@ -388,7 +388,7 @@ function Tn(e, o) {
|
|
|
388
388
|
]));
|
|
389
389
|
}
|
|
390
390
|
const An = { render: Tn };
|
|
391
|
-
function
|
|
391
|
+
function Oe(e, o, n) {
|
|
392
392
|
switch (o) {
|
|
393
393
|
case "POST":
|
|
394
394
|
return we.post(e, n);
|
|
@@ -412,7 +412,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
412
412
|
}, Xn = ["onClick"], Zn = { class: "message-checkbox" }, es = { class: "message-body" }, ts = { class: "message-header" }, os = { class: "message-title" }, ns = {
|
|
413
413
|
key: 0,
|
|
414
414
|
class: "unread-badge"
|
|
415
|
-
}, ss = { class: "message-content" }, as = { class: "message-footer" }, rs = { class: "message-sender" }, ls = { class: "message-time" }, is = /* @__PURE__ */
|
|
415
|
+
}, ss = { class: "message-content" }, as = { class: "message-footer" }, rs = { class: "message-sender" }, ls = { class: "message-time" }, is = /* @__PURE__ */ Ce({
|
|
416
416
|
__name: "Header",
|
|
417
417
|
props: {
|
|
418
418
|
title: {},
|
|
@@ -420,7 +420,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
420
420
|
helpDocUrl: {}
|
|
421
421
|
},
|
|
422
422
|
setup(e) {
|
|
423
|
-
const { t: o } = St(), n = he(), t = he(), s = he(), a = he(), c =
|
|
423
|
+
const { t: o } = St(), n = he(), t = he(), s = he(), a = he(), c = j(!1), l = j([
|
|
424
424
|
{
|
|
425
425
|
id: "1",
|
|
426
426
|
title: "系统通知",
|
|
@@ -453,12 +453,12 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
453
453
|
sendTime: "2025-12-25 14:00:00",
|
|
454
454
|
isRead: !0
|
|
455
455
|
}
|
|
456
|
-
]), i =
|
|
456
|
+
]), i = j([]), f = j(!1), b = e, y = he(), V = fe(
|
|
457
457
|
{
|
|
458
458
|
id: "",
|
|
459
459
|
name: ""
|
|
460
460
|
}
|
|
461
|
-
),
|
|
461
|
+
), M = j(""), K = j(ut.global.locale), H = fe([
|
|
462
462
|
{
|
|
463
463
|
id: "en",
|
|
464
464
|
name: "English"
|
|
@@ -470,12 +470,12 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
470
470
|
]);
|
|
471
471
|
wt(() => {
|
|
472
472
|
var r, v, S;
|
|
473
|
-
|
|
473
|
+
M.value = decodeURIComponent(Z("passport_username").replace(/\+/g, " ")), M.value === "" && on().then(({ data: P }) => {
|
|
474
474
|
var R;
|
|
475
|
-
P.code == 0 && (
|
|
476
|
-
}), (r = b.headerProjectConfig) != null && r.api ?
|
|
477
|
-
|
|
478
|
-
}) : (S = b.headerProjectConfig) != null && S.items && (
|
|
475
|
+
P.code == 0 && (M.value = (R = P.data.name) != null ? R : P.data.displayId);
|
|
476
|
+
}), (r = b.headerProjectConfig) != null && r.api ? Oe((v = b.headerProjectConfig) == null ? void 0 : v.api, "GET", {}).then(({ data: P }) => {
|
|
477
|
+
y.value = P.data;
|
|
478
|
+
}) : (S = b.headerProjectConfig) != null && S.items && (y.value = b.headerProjectConfig.items);
|
|
479
479
|
});
|
|
480
480
|
function Z(r) {
|
|
481
481
|
let v = r + "=", S = document.cookie.split(";");
|
|
@@ -487,14 +487,14 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
487
487
|
}
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function z() {
|
|
491
491
|
nn().then(() => {
|
|
492
492
|
const r = encodeURIComponent(window.location.href);
|
|
493
493
|
window.location.href = `//${Xt()}/?from=${r}#login`;
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
function te(r) {
|
|
497
|
-
|
|
497
|
+
ut.global.locale.value = r, K.value = r, localStorage.setItem("locale", r);
|
|
498
498
|
}
|
|
499
499
|
function se() {
|
|
500
500
|
window.open("https://passport.vancone.com/#/account/profile", "_blank");
|
|
@@ -506,18 +506,18 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
506
506
|
if (r === "allProjects")
|
|
507
507
|
console.log("show all projects");
|
|
508
508
|
else
|
|
509
|
-
for (let v of
|
|
509
|
+
for (let v of y.value)
|
|
510
510
|
if (v.id === r) {
|
|
511
|
-
Object.assign(
|
|
511
|
+
Object.assign(V, v);
|
|
512
512
|
break;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Se() {
|
|
516
516
|
}
|
|
517
517
|
function U() {
|
|
518
518
|
i.value.length !== 0 && (l.value = l.value.filter((r) => !i.value.includes(r.id)), i.value = []);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function C() {
|
|
521
521
|
i.value.length !== 0 && (l.value.forEach((r) => {
|
|
522
522
|
i.value.includes(r.id) && (r.isRead = !0);
|
|
523
523
|
}), i.value = []);
|
|
@@ -525,12 +525,12 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
525
525
|
function T(r) {
|
|
526
526
|
r ? i.value = l.value.map((v) => v.id) : i.value = [];
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function u(r) {
|
|
529
529
|
return r;
|
|
530
530
|
}
|
|
531
531
|
return (r, v) => {
|
|
532
|
-
const S = $("el-icon"), P = $("el-dropdown-item"), R = $("el-dropdown-menu"), D = $("el-dropdown"), O = $("el-popover"), F = $("el-tooltip"), G = $("el-avatar"), g = $("el-menu-item"), x = $("el-menu"), m = $("el-button"),
|
|
533
|
-
return
|
|
532
|
+
const S = $("el-icon"), P = $("el-dropdown-item"), R = $("el-dropdown-menu"), D = $("el-dropdown"), O = $("el-popover"), F = $("el-tooltip"), G = $("el-avatar"), g = $("el-menu-item"), x = $("el-menu"), m = $("el-button"), q = $("el-empty"), k = $("el-checkbox"), ee = $("el-drawer");
|
|
533
|
+
return d(), E(ne, null, [
|
|
534
534
|
_("div", Dn, [
|
|
535
535
|
_("div", Rn, [
|
|
536
536
|
_("div", {
|
|
@@ -539,10 +539,10 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
539
539
|
class: "icon-wrapper",
|
|
540
540
|
style: { "margin-left": "8px" }
|
|
541
541
|
}, [
|
|
542
|
-
h(
|
|
542
|
+
h(w(En))
|
|
543
543
|
], 512),
|
|
544
544
|
_("h1", null, A(r.title), 1),
|
|
545
|
-
b.headerProjectConfig ? (
|
|
545
|
+
b.headerProjectConfig ? (d(), I(D, {
|
|
546
546
|
key: 0,
|
|
547
547
|
placement: "bottom-start",
|
|
548
548
|
onCommand: W
|
|
@@ -550,7 +550,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
550
550
|
dropdown: p(() => [
|
|
551
551
|
h(R, { style: { width: "300px" } }, {
|
|
552
552
|
default: p(() => [
|
|
553
|
-
(
|
|
553
|
+
(d(!0), E(ne, null, me(y.value, (N) => (d(), I(P, {
|
|
554
554
|
key: N.id,
|
|
555
555
|
command: N.id
|
|
556
556
|
}, {
|
|
@@ -574,10 +574,10 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
574
574
|
]),
|
|
575
575
|
default: p(() => [
|
|
576
576
|
_("span", null, [
|
|
577
|
-
B(A(
|
|
577
|
+
B(A(V.name) + " ", 1),
|
|
578
578
|
h(S, { class: "el-icon--right" }, {
|
|
579
579
|
default: p(() => [
|
|
580
|
-
h(
|
|
580
|
+
h(w(Qt))
|
|
581
581
|
]),
|
|
582
582
|
_: 1
|
|
583
583
|
})
|
|
@@ -601,35 +601,35 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
601
601
|
_("div", Fn, [
|
|
602
602
|
h(F, {
|
|
603
603
|
effect: "dark",
|
|
604
|
-
content:
|
|
604
|
+
content: w(o)("common.header.workbench"),
|
|
605
605
|
placement: "bottom"
|
|
606
606
|
}, {
|
|
607
607
|
default: p(() => [
|
|
608
608
|
_("div", Ln, [
|
|
609
|
-
h(
|
|
609
|
+
h(w(An))
|
|
610
610
|
])
|
|
611
611
|
]),
|
|
612
612
|
_: 1
|
|
613
613
|
}, 8, ["content"]),
|
|
614
614
|
h(F, {
|
|
615
615
|
effect: "dark",
|
|
616
|
-
content:
|
|
616
|
+
content: w(o)("common.header.help"),
|
|
617
617
|
placement: "bottom"
|
|
618
618
|
}, {
|
|
619
619
|
default: p(() => [
|
|
620
|
-
b.helpDocUrl !== void 0 ? (
|
|
620
|
+
b.helpDocUrl !== void 0 ? (d(), E("div", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "icon-wrapper",
|
|
623
623
|
onClick: ve
|
|
624
624
|
}, [
|
|
625
|
-
h(
|
|
625
|
+
h(w(In))
|
|
626
626
|
])) : L("", !0)
|
|
627
627
|
]),
|
|
628
628
|
_: 1
|
|
629
629
|
}, 8, ["content"]),
|
|
630
630
|
h(F, {
|
|
631
631
|
effect: "dark",
|
|
632
|
-
content:
|
|
632
|
+
content: w(o)("common.header.notification"),
|
|
633
633
|
placement: "bottom"
|
|
634
634
|
}, {
|
|
635
635
|
default: p(() => [
|
|
@@ -637,7 +637,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
637
637
|
class: "icon-wrapper",
|
|
638
638
|
onClick: v[0] || (v[0] = (N) => c.value = !0)
|
|
639
639
|
}, [
|
|
640
|
-
h(
|
|
640
|
+
h(w(Nn))
|
|
641
641
|
])
|
|
642
642
|
]),
|
|
643
643
|
_: 1
|
|
@@ -650,7 +650,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
650
650
|
ref: n
|
|
651
651
|
}, {
|
|
652
652
|
default: p(() => [
|
|
653
|
-
_("span", jn, A(
|
|
653
|
+
_("span", jn, A(M.value.substring(0, 2)), 1)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
656
|
}, 512),
|
|
@@ -671,17 +671,17 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
671
671
|
src: ""
|
|
672
672
|
}, {
|
|
673
673
|
default: p(() => [
|
|
674
|
-
_("span", qn, A(
|
|
674
|
+
_("span", qn, A(M.value.substring(0, 2)), 1)
|
|
675
675
|
]),
|
|
676
676
|
_: 1
|
|
677
677
|
}),
|
|
678
|
-
_("span", null, A(
|
|
678
|
+
_("span", null, A(M.value), 1)
|
|
679
679
|
]),
|
|
680
680
|
h(x, { class: "user-menu" }, {
|
|
681
681
|
default: p(() => [
|
|
682
682
|
h(g, { onClick: se }, {
|
|
683
683
|
default: p(() => [
|
|
684
|
-
B(A(
|
|
684
|
+
B(A(w(o)("common.header.userCenter")), 1)
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
687
687
|
}),
|
|
@@ -691,10 +691,10 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
691
691
|
style: { display: "flex", "justify-content": "space-between" }
|
|
692
692
|
}, {
|
|
693
693
|
default: p(() => [
|
|
694
|
-
_("span", null, A(
|
|
694
|
+
_("span", null, A(w(o)("common.header.switchLanguage")), 1),
|
|
695
695
|
h(S, { style: { left: "15px" } }, {
|
|
696
696
|
default: p(() => [
|
|
697
|
-
h(
|
|
697
|
+
h(w(Fo))
|
|
698
698
|
]),
|
|
699
699
|
_: 1
|
|
700
700
|
})
|
|
@@ -713,18 +713,18 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
713
713
|
"popper-style": "height: 80px; left: -165px"
|
|
714
714
|
}, {
|
|
715
715
|
default: p(() => [
|
|
716
|
-
(
|
|
716
|
+
(d(!0), E(ne, null, me(H, (N) => (d(), E("div", {
|
|
717
717
|
class: "select-list",
|
|
718
718
|
key: N.id,
|
|
719
719
|
onClick: (ae) => te(N.id)
|
|
720
720
|
}, [
|
|
721
721
|
_("span", null, A(N.name), 1),
|
|
722
|
-
N.id === K.value ? (
|
|
722
|
+
N.id === K.value ? (d(), I(S, {
|
|
723
723
|
key: 0,
|
|
724
724
|
style: { color: "#8ba74f" }
|
|
725
725
|
}, {
|
|
726
726
|
default: p(() => [
|
|
727
|
-
h(
|
|
727
|
+
h(w(At))
|
|
728
728
|
]),
|
|
729
729
|
_: 1
|
|
730
730
|
})) : L("", !0)
|
|
@@ -732,9 +732,9 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
732
732
|
]),
|
|
733
733
|
_: 1
|
|
734
734
|
}, 8, ["virtual-ref"]),
|
|
735
|
-
h(g, { onClick:
|
|
735
|
+
h(g, { onClick: z }, {
|
|
736
736
|
default: p(() => [
|
|
737
|
-
B(A(
|
|
737
|
+
B(A(w(o)("common.header.signOut")), 1)
|
|
738
738
|
]),
|
|
739
739
|
_: 1
|
|
740
740
|
})
|
|
@@ -751,19 +751,19 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
751
751
|
modelValue: c.value,
|
|
752
752
|
"onUpdate:modelValue": v[3] || (v[3] = (N) => c.value = N),
|
|
753
753
|
direction: "rtl",
|
|
754
|
-
title:
|
|
754
|
+
title: w(o)("common.header.messageCenter"),
|
|
755
755
|
size: "500px"
|
|
756
756
|
}, {
|
|
757
757
|
header: p(() => [
|
|
758
758
|
_("div", Hn, [
|
|
759
|
-
_("span", null, A(
|
|
759
|
+
_("span", null, A(w(o)("common.header.messageCenter")), 1),
|
|
760
760
|
h(m, {
|
|
761
|
-
icon:
|
|
761
|
+
icon: w(xt),
|
|
762
762
|
link: "",
|
|
763
|
-
onClick:
|
|
763
|
+
onClick: Se
|
|
764
764
|
}, {
|
|
765
765
|
default: p(() => [
|
|
766
|
-
B(A(
|
|
766
|
+
B(A(w(o)("common.header.refresh")), 1)
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
769
769
|
}, 8, ["icon"])
|
|
@@ -771,36 +771,36 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
771
771
|
]),
|
|
772
772
|
default: p(() => [
|
|
773
773
|
_("div", Wn, [
|
|
774
|
-
i.value.length > 0 ? (
|
|
774
|
+
i.value.length > 0 ? (d(), E("div", Yn, [
|
|
775
775
|
h(m, {
|
|
776
|
-
icon:
|
|
776
|
+
icon: w(At),
|
|
777
777
|
type: "primary",
|
|
778
778
|
size: "small",
|
|
779
|
-
onClick:
|
|
779
|
+
onClick: C
|
|
780
780
|
}, {
|
|
781
781
|
default: p(() => [
|
|
782
|
-
B(A(
|
|
782
|
+
B(A(w(o)("common.header.markAsRead")), 1)
|
|
783
783
|
]),
|
|
784
784
|
_: 1
|
|
785
785
|
}, 8, ["icon"]),
|
|
786
786
|
h(m, {
|
|
787
|
-
icon:
|
|
787
|
+
icon: w(Lo),
|
|
788
788
|
type: "danger",
|
|
789
789
|
size: "small",
|
|
790
790
|
onClick: U
|
|
791
791
|
}, {
|
|
792
792
|
default: p(() => [
|
|
793
|
-
B(A(
|
|
793
|
+
B(A(w(o)("common.header.delete")), 1)
|
|
794
794
|
]),
|
|
795
795
|
_: 1
|
|
796
796
|
}, 8, ["icon"])
|
|
797
797
|
])) : L("", !0),
|
|
798
798
|
_("div", Jn, [
|
|
799
|
-
l.value.length === 0 ? (
|
|
800
|
-
h(
|
|
801
|
-
description:
|
|
799
|
+
l.value.length === 0 ? (d(), E("div", Kn, [
|
|
800
|
+
h(q, {
|
|
801
|
+
description: w(o)("common.header.noMessages")
|
|
802
802
|
}, null, 8, ["description"])
|
|
803
|
-
])) : (
|
|
803
|
+
])) : (d(), E("div", Qn, [
|
|
804
804
|
h(k, {
|
|
805
805
|
indeterminate: i.value.length > 0 && i.value.length < l.value.length,
|
|
806
806
|
modelValue: f.value,
|
|
@@ -808,12 +808,12 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
808
808
|
onChange: T
|
|
809
809
|
}, {
|
|
810
810
|
default: p(() => [
|
|
811
|
-
B(A(
|
|
811
|
+
B(A(w(o)("common.header.selectAll")), 1)
|
|
812
812
|
]),
|
|
813
813
|
_: 1
|
|
814
814
|
}, 8, ["indeterminate", "modelValue"])
|
|
815
815
|
])),
|
|
816
|
-
(
|
|
816
|
+
(d(!0), E(ne, null, me(l.value, (N) => (d(), E("div", {
|
|
817
817
|
key: N.id,
|
|
818
818
|
class: Ct(["message-item", { unread: !N.isRead, selected: i.value.includes(N.id) }]),
|
|
819
819
|
onClick: (ae) => i.value = i.value.includes(N.id) ? i.value.filter((Q) => Q !== N.id) : [...i.value, N.id]
|
|
@@ -831,7 +831,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
831
831
|
_("div", es, [
|
|
832
832
|
_("div", ts, [
|
|
833
833
|
_("span", os, A(N.title), 1),
|
|
834
|
-
N.isRead ? L("", !0) : (
|
|
834
|
+
N.isRead ? L("", !0) : (d(), E("span", ns))
|
|
835
835
|
]),
|
|
836
836
|
_("div", ss, A(N.content), 1),
|
|
837
837
|
_("div", as, [
|
|
@@ -848,49 +848,49 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
848
848
|
], 64);
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
|
-
}), eo = /* @__PURE__ */
|
|
851
|
+
}), eo = /* @__PURE__ */ ke(is, [["__scopeId", "data-v-d52604c1"]]), Rt = j([]), cs = {
|
|
852
852
|
class: "menu-icon-wrapper",
|
|
853
853
|
style: { "margin-left": "3px" }
|
|
854
|
-
},
|
|
854
|
+
}, us = ["innerHTML"], ds = { class: "menu-icon-wrapper" }, ps = ["innerHTML"], fs = /* @__PURE__ */ Ce({
|
|
855
855
|
__name: "SideMenuItem",
|
|
856
856
|
props: {
|
|
857
857
|
menu: {}
|
|
858
858
|
},
|
|
859
859
|
setup(e) {
|
|
860
860
|
const o = e;
|
|
861
|
-
return
|
|
861
|
+
return (n, t) => {
|
|
862
862
|
var l;
|
|
863
863
|
const s = $("SideMenuItem", !0), a = $("el-sub-menu"), c = $("el-menu-item");
|
|
864
|
-
return n.menu.children && n.menu.children.length > 0 ? (
|
|
864
|
+
return n.menu.children && n.menu.children.length > 0 ? (d(), I(a, {
|
|
865
865
|
key: 0,
|
|
866
866
|
index: (l = n.menu.path) != null ? l : Math.random().toString(36)
|
|
867
867
|
}, {
|
|
868
868
|
title: p(() => {
|
|
869
|
-
var i, f, b,
|
|
869
|
+
var i, f, b, y;
|
|
870
870
|
return [
|
|
871
871
|
_("div", cs, [
|
|
872
|
-
(i = o.menu.meta) != null && i.icon ? (
|
|
872
|
+
(i = o.menu.meta) != null && i.icon ? (d(), I(it((f = n.menu.meta) == null ? void 0 : f.icon), {
|
|
873
873
|
key: 0,
|
|
874
874
|
class: "menu-icon"
|
|
875
875
|
})) : L("", !0),
|
|
876
|
-
(b = o.menu.meta) != null && b.svgXml ? (
|
|
876
|
+
(b = o.menu.meta) != null && b.svgXml ? (d(), E("div", {
|
|
877
877
|
key: 1,
|
|
878
878
|
class: "svg-xml-icon",
|
|
879
879
|
innerHTML: o.menu.meta.svgXml
|
|
880
|
-
}, null, 8,
|
|
880
|
+
}, null, 8, us)) : L("", !0)
|
|
881
881
|
]),
|
|
882
|
-
_("span", null, A(
|
|
882
|
+
_("span", null, A(w(oe)((y = n.menu.meta) == null ? void 0 : y.title)), 1)
|
|
883
883
|
];
|
|
884
884
|
}),
|
|
885
885
|
default: p(() => [
|
|
886
|
-
(
|
|
886
|
+
(d(!0), E(ne, null, me(n.menu.children, (i) => (d(), I(s, {
|
|
887
887
|
key: i.path,
|
|
888
888
|
route: i,
|
|
889
889
|
menu: i
|
|
890
890
|
}, null, 8, ["route", "menu"]))), 128))
|
|
891
891
|
]),
|
|
892
892
|
_: 1
|
|
893
|
-
}, 8, ["index"])) : (
|
|
893
|
+
}, 8, ["index"])) : (d(), I(c, {
|
|
894
894
|
key: 1,
|
|
895
895
|
index: o.menu.path,
|
|
896
896
|
style: { height: "40px" }
|
|
@@ -898,18 +898,18 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
898
898
|
title: p(() => {
|
|
899
899
|
var i;
|
|
900
900
|
return [
|
|
901
|
-
_("span", null, A(
|
|
901
|
+
_("span", null, A(w(oe)((i = n.menu.meta) == null ? void 0 : i.title)), 1)
|
|
902
902
|
];
|
|
903
903
|
}),
|
|
904
904
|
default: p(() => {
|
|
905
905
|
var i, f, b;
|
|
906
906
|
return [
|
|
907
|
-
_("div",
|
|
908
|
-
(i = o.menu.meta) != null && i.icon ? (
|
|
907
|
+
_("div", ds, [
|
|
908
|
+
(i = o.menu.meta) != null && i.icon ? (d(), I(it((f = n.$props.menu.meta) == null ? void 0 : f.icon), {
|
|
909
909
|
key: 0,
|
|
910
910
|
class: "menu-icon"
|
|
911
911
|
})) : L("", !0),
|
|
912
|
-
((b = o.menu.meta) == null ? void 0 : b.svgXml) !== void 0 ? (
|
|
912
|
+
((b = o.menu.meta) == null ? void 0 : b.svgXml) !== void 0 ? (d(), E("div", {
|
|
913
913
|
key: 1,
|
|
914
914
|
class: "svg-xml-icon",
|
|
915
915
|
innerHTML: o.menu.meta.svgXml
|
|
@@ -921,7 +921,7 @@ const Dn = { class: "header" }, Rn = { class: "title" }, Fn = { class: "right" }
|
|
|
921
921
|
}, 8, ["index"]));
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
}), ms = /* @__PURE__ */
|
|
924
|
+
}), ms = /* @__PURE__ */ ke(fs, [["__scopeId", "data-v-8edb6880"]]), Ee = j({}), hs = {}, fr = he([]);
|
|
925
925
|
var to = !1;
|
|
926
926
|
function nt(e, o, n) {
|
|
927
927
|
return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, n), n) : (e[o] = n, n);
|
|
@@ -1206,7 +1206,7 @@ function uo(e, o) {
|
|
|
1206
1206
|
t ? Object.assign(t, o[n]) : e.state.value[n] = o[n];
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function $e(e) {
|
|
1210
1210
|
return {
|
|
1211
1211
|
_custom: {
|
|
1212
1212
|
display: e
|
|
@@ -1266,8 +1266,8 @@ function Us(e) {
|
|
|
1266
1266
|
operations: [],
|
|
1267
1267
|
newValue: {}
|
|
1268
1268
|
}) : {
|
|
1269
|
-
operation:
|
|
1270
|
-
key:
|
|
1269
|
+
operation: $e(e.type),
|
|
1270
|
+
key: $e(e.key),
|
|
1271
1271
|
oldValue: e.oldValue,
|
|
1272
1272
|
newValue: e.newValue
|
|
1273
1273
|
} : {};
|
|
@@ -1285,7 +1285,7 @@ function Ts(e) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
let qe = !0;
|
|
1288
|
-
const lt = [], Fe = "pinia:mutations",
|
|
1288
|
+
const lt = [], Fe = "pinia:mutations", de = "pinia", { assign: As } = Object, dt = (e) => "🍍 " + e;
|
|
1289
1289
|
function Ds(e, o) {
|
|
1290
1290
|
no({
|
|
1291
1291
|
id: "dev.esm.pinia",
|
|
@@ -1301,7 +1301,7 @@ function Ds(e, o) {
|
|
|
1301
1301
|
label: "Pinia 🍍",
|
|
1302
1302
|
color: 15064968
|
|
1303
1303
|
}), n.addInspector({
|
|
1304
|
-
id:
|
|
1304
|
+
id: de,
|
|
1305
1305
|
label: "Pinia 🍍",
|
|
1306
1306
|
icon: "storage",
|
|
1307
1307
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -1316,7 +1316,7 @@ function Ds(e, o) {
|
|
|
1316
1316
|
{
|
|
1317
1317
|
icon: "content_paste",
|
|
1318
1318
|
action: () => Ne(this, null, function* () {
|
|
1319
|
-
yield Os(o), n.sendInspectorTree(
|
|
1319
|
+
yield Os(o), n.sendInspectorTree(de), n.sendInspectorState(de);
|
|
1320
1320
|
}),
|
|
1321
1321
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1322
1322
|
},
|
|
@@ -1330,7 +1330,7 @@ function Ds(e, o) {
|
|
|
1330
1330
|
{
|
|
1331
1331
|
icon: "folder_open",
|
|
1332
1332
|
action: () => Ne(this, null, function* () {
|
|
1333
|
-
yield Vs(o), n.sendInspectorTree(
|
|
1333
|
+
yield Vs(o), n.sendInspectorTree(de), n.sendInspectorState(de);
|
|
1334
1334
|
}),
|
|
1335
1335
|
tooltip: "Import the state from a JSON file"
|
|
1336
1336
|
}
|
|
@@ -1351,7 +1351,7 @@ function Ds(e, o) {
|
|
|
1351
1351
|
const c = t.componentInstance.proxy._pStores;
|
|
1352
1352
|
Object.values(c).forEach((l) => {
|
|
1353
1353
|
t.instanceData.state.push({
|
|
1354
|
-
type:
|
|
1354
|
+
type: dt(l.$id),
|
|
1355
1355
|
key: "state",
|
|
1356
1356
|
editable: !0,
|
|
1357
1357
|
value: l._isOptionsAPI ? {
|
|
@@ -1370,7 +1370,7 @@ function Ds(e, o) {
|
|
|
1370
1370
|
Object.keys(l.$state).reduce((i, f) => (i[f] = l.$state[f], i), {})
|
|
1371
1371
|
)
|
|
1372
1372
|
}), l._getters && l._getters.length && t.instanceData.state.push({
|
|
1373
|
-
type:
|
|
1373
|
+
type: dt(l.$id),
|
|
1374
1374
|
key: "getters",
|
|
1375
1375
|
editable: !1,
|
|
1376
1376
|
value: l._getters.reduce((i, f) => {
|
|
@@ -1385,19 +1385,19 @@ function Ds(e, o) {
|
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
}), n.on.getInspectorTree((t) => {
|
|
1388
|
-
if (t.app === e && t.inspectorId ===
|
|
1388
|
+
if (t.app === e && t.inspectorId === de) {
|
|
1389
1389
|
let s = [o];
|
|
1390
1390
|
s = s.concat(Array.from(o._s.values())), t.rootNodes = (t.filter ? s.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(t.filter.toLowerCase()) : po.toLowerCase().includes(t.filter.toLowerCase())) : s).map(Ms);
|
|
1391
1391
|
}
|
|
1392
1392
|
}), globalThis.$pinia = o, n.on.getInspectorState((t) => {
|
|
1393
|
-
if (t.app === e && t.inspectorId ===
|
|
1393
|
+
if (t.app === e && t.inspectorId === de) {
|
|
1394
1394
|
const s = t.nodeId === rt ? o : o._s.get(t.nodeId);
|
|
1395
1395
|
if (!s)
|
|
1396
1396
|
return;
|
|
1397
1397
|
s && (t.nodeId !== rt && (globalThis.$store = We(s)), t.state = Ns(s));
|
|
1398
1398
|
}
|
|
1399
1399
|
}), n.on.editInspectorState((t, s) => {
|
|
1400
|
-
if (t.app === e && t.inspectorId ===
|
|
1400
|
+
if (t.app === e && t.inspectorId === de) {
|
|
1401
1401
|
const a = t.nodeId === rt ? o : o._s.get(t.nodeId);
|
|
1402
1402
|
if (!a)
|
|
1403
1403
|
return ce(`store "${t.nodeId}" not found`, "error");
|
|
@@ -1420,7 +1420,7 @@ Only state can be modified.`);
|
|
|
1420
1420
|
});
|
|
1421
1421
|
}
|
|
1422
1422
|
function Rs(e, o) {
|
|
1423
|
-
lt.includes(
|
|
1423
|
+
lt.includes(dt(o.$id)) || lt.push(dt(o.$id)), no({
|
|
1424
1424
|
id: "dev.esm.pinia",
|
|
1425
1425
|
label: "Pinia 🍍",
|
|
1426
1426
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
@@ -1451,13 +1451,13 @@ function Rs(e, o) {
|
|
|
1451
1451
|
title: "🛫 " + i,
|
|
1452
1452
|
subtitle: "start",
|
|
1453
1453
|
data: {
|
|
1454
|
-
store:
|
|
1455
|
-
action:
|
|
1454
|
+
store: $e(o.$id),
|
|
1455
|
+
action: $e(i),
|
|
1456
1456
|
args: f
|
|
1457
1457
|
},
|
|
1458
1458
|
groupId: b
|
|
1459
1459
|
}
|
|
1460
|
-
}), c((
|
|
1460
|
+
}), c((y) => {
|
|
1461
1461
|
De = void 0, n.addTimelineEvent({
|
|
1462
1462
|
layerId: Fe,
|
|
1463
1463
|
event: {
|
|
@@ -1465,15 +1465,15 @@ function Rs(e, o) {
|
|
|
1465
1465
|
title: "🛬 " + i,
|
|
1466
1466
|
subtitle: "end",
|
|
1467
1467
|
data: {
|
|
1468
|
-
store:
|
|
1469
|
-
action:
|
|
1468
|
+
store: $e(o.$id),
|
|
1469
|
+
action: $e(i),
|
|
1470
1470
|
args: f,
|
|
1471
|
-
result:
|
|
1471
|
+
result: y
|
|
1472
1472
|
},
|
|
1473
1473
|
groupId: b
|
|
1474
1474
|
}
|
|
1475
1475
|
});
|
|
1476
|
-
}), l((
|
|
1476
|
+
}), l((y) => {
|
|
1477
1477
|
De = void 0, n.addTimelineEvent({
|
|
1478
1478
|
layerId: Fe,
|
|
1479
1479
|
event: {
|
|
@@ -1482,18 +1482,18 @@ function Rs(e, o) {
|
|
|
1482
1482
|
title: "💥 " + i,
|
|
1483
1483
|
subtitle: "end",
|
|
1484
1484
|
data: {
|
|
1485
|
-
store:
|
|
1486
|
-
action:
|
|
1485
|
+
store: $e(o.$id),
|
|
1486
|
+
action: $e(i),
|
|
1487
1487
|
args: f,
|
|
1488
|
-
error:
|
|
1488
|
+
error: y
|
|
1489
1489
|
},
|
|
1490
1490
|
groupId: b
|
|
1491
1491
|
}
|
|
1492
1492
|
});
|
|
1493
1493
|
});
|
|
1494
1494
|
}, !0), o._customProperties.forEach((c) => {
|
|
1495
|
-
Me(() =>
|
|
1496
|
-
n.notifyComponentUpdate(), n.sendInspectorState(
|
|
1495
|
+
Me(() => w(o[c]), (l, i) => {
|
|
1496
|
+
n.notifyComponentUpdate(), n.sendInspectorState(de), qe && n.addTimelineEvent({
|
|
1497
1497
|
layerId: Fe,
|
|
1498
1498
|
event: {
|
|
1499
1499
|
time: t(),
|
|
@@ -1508,12 +1508,12 @@ function Rs(e, o) {
|
|
|
1508
1508
|
});
|
|
1509
1509
|
}, { deep: !0 });
|
|
1510
1510
|
}), o.$subscribe(({ events: c, type: l }, i) => {
|
|
1511
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(
|
|
1511
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(de), !qe)
|
|
1512
1512
|
return;
|
|
1513
1513
|
const f = {
|
|
1514
1514
|
time: t(),
|
|
1515
1515
|
title: Ts(l),
|
|
1516
|
-
data: As({ store:
|
|
1516
|
+
data: As({ store: $e(o.$id) }, Us(c)),
|
|
1517
1517
|
groupId: De
|
|
1518
1518
|
};
|
|
1519
1519
|
l === Ve.patchFunction ? f.subtitle = "⤵️" : l === Ve.patchObject ? f.subtitle = "🧩" : c && !Array.isArray(c) && (f.subtitle = c.type), c && (f.data["rawEvent(s)"] = {
|
|
@@ -1537,16 +1537,16 @@ function Rs(e, o) {
|
|
|
1537
1537
|
title: "🔥 " + o.$id,
|
|
1538
1538
|
subtitle: "HMR update",
|
|
1539
1539
|
data: {
|
|
1540
|
-
store:
|
|
1541
|
-
info:
|
|
1540
|
+
store: $e(o.$id),
|
|
1541
|
+
info: $e("HMR update")
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
}), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1544
|
+
}), n.notifyComponentUpdate(), n.sendInspectorTree(de), n.sendInspectorState(de);
|
|
1545
1545
|
});
|
|
1546
1546
|
const { $dispose: a } = o;
|
|
1547
1547
|
o.$dispose = () => {
|
|
1548
|
-
a(), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1549
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
1548
|
+
a(), n.notifyComponentUpdate(), n.sendInspectorTree(de), n.sendInspectorState(de), n.getSettings().logStoreChanges && ce(`Disposed "${o.$id}" store 🗑`);
|
|
1549
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(de), n.sendInspectorState(de), n.getSettings().logStoreChanges && ce(`"${o.$id}" store installed 🆕`);
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
1552
|
let fo = 0, De;
|
|
@@ -1584,7 +1584,7 @@ function Fs({ app: e, store: o, options: n }) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
function Ls() {
|
|
1587
|
-
const e = Wt(!0), o = e.run(() =>
|
|
1587
|
+
const e = Wt(!0), o = e.run(() => j({}));
|
|
1588
1588
|
let n = [], t = [];
|
|
1589
1589
|
const s = Te({
|
|
1590
1590
|
install(a) {
|
|
@@ -1657,13 +1657,13 @@ function qt(e, o, n, t) {
|
|
|
1657
1657
|
!l && (process.env.NODE_ENV === "production" || !t) && (n.state.value[e] = s ? s() : {});
|
|
1658
1658
|
const b = process.env.NODE_ENV !== "production" && t ? (
|
|
1659
1659
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1660
|
-
Ut(
|
|
1660
|
+
Ut(j(s ? s() : {}).value)
|
|
1661
1661
|
) : Ut(n.state.value[e]);
|
|
1662
|
-
return ye(b, a, Object.keys(c || {}).reduce((
|
|
1662
|
+
return ye(b, a, Object.keys(c || {}).reduce((y, V) => (process.env.NODE_ENV !== "production" && V in b && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${V}" in store "${e}".`), y[V] = Te(Re(() => {
|
|
1663
1663
|
et(n);
|
|
1664
|
-
const
|
|
1665
|
-
return c[
|
|
1666
|
-
})),
|
|
1664
|
+
const M = n._s.get(e);
|
|
1665
|
+
return c[V].call(M, M);
|
|
1666
|
+
})), y), {}));
|
|
1667
1667
|
}
|
|
1668
1668
|
return i = yt(e, f, o, n, t, !0), i;
|
|
1669
1669
|
}
|
|
@@ -1673,30 +1673,30 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1673
1673
|
if (process.env.NODE_ENV !== "production" && !t._e.active)
|
|
1674
1674
|
throw new Error("Pinia destroyed");
|
|
1675
1675
|
const i = { deep: !0 };
|
|
1676
|
-
process.env.NODE_ENV !== "production" && !to && (i.onTrigger = (
|
|
1677
|
-
f ?
|
|
1676
|
+
process.env.NODE_ENV !== "production" && !to && (i.onTrigger = (u) => {
|
|
1677
|
+
f ? M = u : f == !1 && !U._hotUpdating && (Array.isArray(M) ? M.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1678
1678
|
});
|
|
1679
|
-
let f, b,
|
|
1679
|
+
let f, b, y = [], V = [], M;
|
|
1680
1680
|
const K = t.state.value[e];
|
|
1681
1681
|
!a && !K && (process.env.NODE_ENV === "production" || !s) && (t.state.value[e] = {});
|
|
1682
|
-
const H =
|
|
1682
|
+
const H = j({});
|
|
1683
1683
|
let Z;
|
|
1684
|
-
function
|
|
1684
|
+
function z(u) {
|
|
1685
1685
|
let r;
|
|
1686
|
-
f = b = !1, process.env.NODE_ENV !== "production" && (
|
|
1686
|
+
f = b = !1, process.env.NODE_ENV !== "production" && (M = []), typeof u == "function" ? (u(t.state.value[e]), r = {
|
|
1687
1687
|
type: Ve.patchFunction,
|
|
1688
1688
|
storeId: e,
|
|
1689
|
-
events:
|
|
1690
|
-
}) : (bt(t.state.value[e],
|
|
1689
|
+
events: M
|
|
1690
|
+
}) : (bt(t.state.value[e], u), r = {
|
|
1691
1691
|
type: Ve.patchObject,
|
|
1692
|
-
payload:
|
|
1692
|
+
payload: u,
|
|
1693
1693
|
storeId: e,
|
|
1694
|
-
events:
|
|
1694
|
+
events: M
|
|
1695
1695
|
});
|
|
1696
1696
|
const v = Z = Symbol();
|
|
1697
1697
|
ct().then(() => {
|
|
1698
1698
|
Z === v && (f = !0);
|
|
1699
|
-
}), b = !0, ze(
|
|
1699
|
+
}), b = !0, ze(y, r, t.state.value[e]);
|
|
1700
1700
|
}
|
|
1701
1701
|
const te = a ? function() {
|
|
1702
1702
|
const { state: r } = n, v = r ? r() : {};
|
|
@@ -1710,11 +1710,11 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1710
1710
|
} : ho
|
|
1711
1711
|
);
|
|
1712
1712
|
function se() {
|
|
1713
|
-
c.stop(),
|
|
1713
|
+
c.stop(), y = [], V = [], t._s.delete(e);
|
|
1714
1714
|
}
|
|
1715
|
-
const ve = (
|
|
1716
|
-
if (jt in
|
|
1717
|
-
return
|
|
1715
|
+
const ve = (u, r = "") => {
|
|
1716
|
+
if (jt in u)
|
|
1717
|
+
return u[_t] = r, u;
|
|
1718
1718
|
const v = function() {
|
|
1719
1719
|
et(t);
|
|
1720
1720
|
const S = Array.from(arguments), P = [], R = [];
|
|
@@ -1724,7 +1724,7 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1724
1724
|
function O(G) {
|
|
1725
1725
|
R.push(G);
|
|
1726
1726
|
}
|
|
1727
|
-
ze(
|
|
1727
|
+
ze(V, {
|
|
1728
1728
|
args: S,
|
|
1729
1729
|
name: v[_t],
|
|
1730
1730
|
store: U,
|
|
@@ -1733,7 +1733,7 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1733
1733
|
});
|
|
1734
1734
|
let F;
|
|
1735
1735
|
try {
|
|
1736
|
-
F =
|
|
1736
|
+
F = u.apply(this && this.$id === e ? this : U, S);
|
|
1737
1737
|
} catch (G) {
|
|
1738
1738
|
throw ze(R, G), G;
|
|
1739
1739
|
}
|
|
@@ -1745,19 +1745,19 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1745
1745
|
getters: {},
|
|
1746
1746
|
state: [],
|
|
1747
1747
|
hotState: H
|
|
1748
|
-
}),
|
|
1748
|
+
}), Se = {
|
|
1749
1749
|
_p: t,
|
|
1750
1750
|
// _s: scope,
|
|
1751
1751
|
$id: e,
|
|
1752
|
-
$onAction: Gt.bind(null,
|
|
1753
|
-
$patch:
|
|
1752
|
+
$onAction: Gt.bind(null, V),
|
|
1753
|
+
$patch: z,
|
|
1754
1754
|
$reset: te,
|
|
1755
|
-
$subscribe(
|
|
1756
|
-
const v = Gt(
|
|
1757
|
-
(r.flush === "sync" ? b : f) &&
|
|
1755
|
+
$subscribe(u, r = {}) {
|
|
1756
|
+
const v = Gt(y, u, r.detached, () => S()), S = c.run(() => Me(() => t.state.value[e], (P) => {
|
|
1757
|
+
(r.flush === "sync" ? b : f) && u({
|
|
1758
1758
|
storeId: e,
|
|
1759
1759
|
type: Ve.direct,
|
|
1760
|
-
events:
|
|
1760
|
+
events: M
|
|
1761
1761
|
}, P);
|
|
1762
1762
|
}, ye({}, i, r)));
|
|
1763
1763
|
return v;
|
|
@@ -1769,76 +1769,76 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1769
1769
|
_customProperties: Te(/* @__PURE__ */ new Set())
|
|
1770
1770
|
// devtools custom properties
|
|
1771
1771
|
},
|
|
1772
|
-
|
|
1772
|
+
Se
|
|
1773
1773
|
// must be added later
|
|
1774
1774
|
// setupStore
|
|
1775
|
-
) :
|
|
1775
|
+
) : Se);
|
|
1776
1776
|
t._s.set(e, U);
|
|
1777
1777
|
const T = (t._a && t._a.runWithContext || Gs)(() => t._e.run(() => (c = Wt()).run(() => o({ action: ve }))));
|
|
1778
|
-
for (const
|
|
1779
|
-
const r = T[
|
|
1778
|
+
for (const u in T) {
|
|
1779
|
+
const r = T[u];
|
|
1780
1780
|
if (Ze(r) && !zt(r) || kt(r))
|
|
1781
|
-
process.env.NODE_ENV !== "production" && s ? nt(H.value,
|
|
1781
|
+
process.env.NODE_ENV !== "production" && s ? nt(H.value, u, mt(T, u)) : a || (K && zs(r) && (Ze(r) ? r.value = K[u] : bt(r, K[u])), t.state.value[e][u] = r), process.env.NODE_ENV !== "production" && W.state.push(u);
|
|
1782
1782
|
else if (typeof r == "function") {
|
|
1783
|
-
const v = process.env.NODE_ENV !== "production" && s ? r : ve(r,
|
|
1784
|
-
T[
|
|
1785
|
-
} else process.env.NODE_ENV !== "production" && zt(r) && (W.getters[
|
|
1783
|
+
const v = process.env.NODE_ENV !== "production" && s ? r : ve(r, u);
|
|
1784
|
+
T[u] = v, process.env.NODE_ENV !== "production" && (W.actions[u] = r), l.actions[u] = r;
|
|
1785
|
+
} else process.env.NODE_ENV !== "production" && zt(r) && (W.getters[u] = a ? (
|
|
1786
1786
|
// @ts-expect-error
|
|
1787
|
-
n.getters[
|
|
1787
|
+
n.getters[u]
|
|
1788
1788
|
) : r, Le && (T._getters || // @ts-expect-error: same
|
|
1789
|
-
(T._getters = Te([]))).push(
|
|
1789
|
+
(T._getters = Te([]))).push(u));
|
|
1790
1790
|
}
|
|
1791
1791
|
if (ye(U, T), ye(We(U), T), Object.defineProperty(U, "$state", {
|
|
1792
1792
|
get: () => process.env.NODE_ENV !== "production" && s ? H.value : t.state.value[e],
|
|
1793
|
-
set: (
|
|
1793
|
+
set: (u) => {
|
|
1794
1794
|
if (process.env.NODE_ENV !== "production" && s)
|
|
1795
1795
|
throw new Error("cannot set hotState");
|
|
1796
|
-
|
|
1797
|
-
ye(r,
|
|
1796
|
+
z((r) => {
|
|
1797
|
+
ye(r, u);
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
|
-
}), process.env.NODE_ENV !== "production" && (U._hotUpdate = Te((
|
|
1801
|
-
U._hotUpdating = !0,
|
|
1800
|
+
}), process.env.NODE_ENV !== "production" && (U._hotUpdate = Te((u) => {
|
|
1801
|
+
U._hotUpdating = !0, u._hmrPayload.state.forEach((r) => {
|
|
1802
1802
|
if (r in U.$state) {
|
|
1803
|
-
const v =
|
|
1804
|
-
typeof v == "object" && Ge(v) && Ge(S) ? mo(v, S) :
|
|
1803
|
+
const v = u.$state[r], S = U.$state[r];
|
|
1804
|
+
typeof v == "object" && Ge(v) && Ge(S) ? mo(v, S) : u.$state[r] = S;
|
|
1805
1805
|
}
|
|
1806
|
-
nt(U, r, mt(
|
|
1806
|
+
nt(U, r, mt(u.$state, r));
|
|
1807
1807
|
}), Object.keys(U.$state).forEach((r) => {
|
|
1808
|
-
r in
|
|
1809
|
-
}), f = !1, b = !1, t.state.value[e] = mt(
|
|
1808
|
+
r in u.$state || vt(U, r);
|
|
1809
|
+
}), f = !1, b = !1, t.state.value[e] = mt(u._hmrPayload, "hotState"), b = !0, ct().then(() => {
|
|
1810
1810
|
f = !0;
|
|
1811
1811
|
});
|
|
1812
|
-
for (const r in
|
|
1813
|
-
const v =
|
|
1812
|
+
for (const r in u._hmrPayload.actions) {
|
|
1813
|
+
const v = u[r];
|
|
1814
1814
|
nt(U, r, ve(v, r));
|
|
1815
1815
|
}
|
|
1816
|
-
for (const r in
|
|
1817
|
-
const v =
|
|
1816
|
+
for (const r in u._hmrPayload.getters) {
|
|
1817
|
+
const v = u._hmrPayload.getters[r], S = a ? (
|
|
1818
1818
|
// special handling of options api
|
|
1819
1819
|
Re(() => (et(t), v.call(U, U)))
|
|
1820
1820
|
) : v;
|
|
1821
1821
|
nt(U, r, S);
|
|
1822
1822
|
}
|
|
1823
1823
|
Object.keys(U._hmrPayload.getters).forEach((r) => {
|
|
1824
|
-
r in
|
|
1824
|
+
r in u._hmrPayload.getters || vt(U, r);
|
|
1825
1825
|
}), Object.keys(U._hmrPayload.actions).forEach((r) => {
|
|
1826
|
-
r in
|
|
1827
|
-
}), U._hmrPayload =
|
|
1826
|
+
r in u._hmrPayload.actions || vt(U, r);
|
|
1827
|
+
}), U._hmrPayload = u._hmrPayload, U._getters = u._getters, U._hotUpdating = !1;
|
|
1828
1828
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Le) {
|
|
1829
|
-
const
|
|
1829
|
+
const u = {
|
|
1830
1830
|
writable: !0,
|
|
1831
1831
|
configurable: !0,
|
|
1832
1832
|
// avoid warning on devtools trying to display this property
|
|
1833
1833
|
enumerable: !1
|
|
1834
1834
|
};
|
|
1835
1835
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((r) => {
|
|
1836
|
-
Object.defineProperty(U, r, ye({ value: U[r] },
|
|
1836
|
+
Object.defineProperty(U, r, ye({ value: U[r] }, u));
|
|
1837
1837
|
});
|
|
1838
1838
|
}
|
|
1839
|
-
return t._p.forEach((
|
|
1839
|
+
return t._p.forEach((u) => {
|
|
1840
1840
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Le) {
|
|
1841
|
-
const r = c.run(() =>
|
|
1841
|
+
const r = c.run(() => u({
|
|
1842
1842
|
store: U,
|
|
1843
1843
|
app: t._a,
|
|
1844
1844
|
pinia: t,
|
|
@@ -1846,7 +1846,7 @@ function yt(e, o, n = {}, t, s, a) {
|
|
|
1846
1846
|
}));
|
|
1847
1847
|
Object.keys(r || {}).forEach((v) => U._customProperties.add(v)), ye(U, r);
|
|
1848
1848
|
} else
|
|
1849
|
-
ye(U, c.run(() =>
|
|
1849
|
+
ye(U, c.run(() => u({
|
|
1850
1850
|
store: U,
|
|
1851
1851
|
app: t._a,
|
|
1852
1852
|
pinia: t,
|
|
@@ -1873,15 +1873,15 @@ This will fail in production.`);
|
|
|
1873
1873
|
l = Xe, l._s.has(t) || (a ? yt(t, o, s, l) : qt(t, s, l), process.env.NODE_ENV !== "production" && (c._pinia = l));
|
|
1874
1874
|
const b = l._s.get(t);
|
|
1875
1875
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
1876
|
-
const
|
|
1877
|
-
i._hotUpdate(
|
|
1876
|
+
const y = "__hot:" + t, V = a ? yt(y, o, s, l, !0) : qt(y, ye({}, s), l, !0);
|
|
1877
|
+
i._hotUpdate(V), delete l.state.value[y], l._s.delete(y);
|
|
1878
1878
|
}
|
|
1879
1879
|
if (process.env.NODE_ENV !== "production" && Le) {
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1880
|
+
const y = Mo();
|
|
1881
|
+
if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1882
1882
|
!i) {
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1883
|
+
const V = y.proxy, M = "_pStores" in V ? V._pStores : V._pStores = {};
|
|
1884
|
+
M[t] = b;
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
1887
|
return b;
|
|
@@ -2012,14 +2012,14 @@ function Bt(e, {
|
|
|
2012
2012
|
}, f, b = !0) {
|
|
2013
2013
|
try {
|
|
2014
2014
|
b && (l == null || l(f));
|
|
2015
|
-
const
|
|
2016
|
-
if (
|
|
2017
|
-
const
|
|
2015
|
+
const y = o.getItem(t);
|
|
2016
|
+
if (y) {
|
|
2017
|
+
const V = n.deserialize(y), M = a ? _o(V, a) : V, K = c ? go(M, c) : M;
|
|
2018
2018
|
e.$patch(K);
|
|
2019
2019
|
}
|
|
2020
2020
|
b && (i == null || i(f));
|
|
2021
|
-
} catch (
|
|
2022
|
-
s && console.error("[pinia-plugin-persistedstate]",
|
|
2021
|
+
} catch (y) {
|
|
2022
|
+
s && console.error("[pinia-plugin-persistedstate]", y);
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
2025
|
function Ht(e, {
|
|
@@ -2070,11 +2070,11 @@ function Zs(e = {}) {
|
|
|
2070
2070
|
(t) => {
|
|
2071
2071
|
var s, a, c, l, i, f, b;
|
|
2072
2072
|
return {
|
|
2073
|
-
key: (e.key ? e.key : (
|
|
2073
|
+
key: (e.key ? e.key : (y) => y)((s = t.key) != null ? s : o.store.$id),
|
|
2074
2074
|
debug: (c = (a = t.debug) != null ? a : e.debug) != null ? c : !1,
|
|
2075
2075
|
serializer: (i = (l = t.serializer) != null ? l : e.serializer) != null ? i : {
|
|
2076
|
-
serialize: (
|
|
2077
|
-
deserialize: (
|
|
2076
|
+
serialize: (y) => JSON.stringify(y),
|
|
2077
|
+
deserialize: (y) => Ks(y)
|
|
2078
2078
|
},
|
|
2079
2079
|
storage: (b = (f = t.storage) != null ? f : e.storage) != null ? b : window.localStorage,
|
|
2080
2080
|
beforeHydrate: t.beforeHydrate,
|
|
@@ -2115,23 +2115,23 @@ const bo = /* @__PURE__ */ qs("console", {
|
|
|
2115
2115
|
}, sa = {
|
|
2116
2116
|
key: 1,
|
|
2117
2117
|
points: "15 18 9 12 15 6"
|
|
2118
|
-
}, aa = /* @__PURE__ */
|
|
2118
|
+
}, aa = /* @__PURE__ */ Ce({
|
|
2119
2119
|
__name: "SideMenu",
|
|
2120
2120
|
props: {
|
|
2121
2121
|
menuCollapsed: { type: Boolean }
|
|
2122
2122
|
},
|
|
2123
2123
|
emits: ["update:menuCollapsed"],
|
|
2124
2124
|
setup(e, { emit: o }) {
|
|
2125
|
-
const n = bo(Pt), t = e, s = o, a = tt(), c = en(Rt.value), l =
|
|
2125
|
+
const n = bo(Pt), t = e, s = o, a = tt(), c = en(Rt.value), l = j(window.innerWidth);
|
|
2126
2126
|
console.log("routes", Rt), console.log("menus", c);
|
|
2127
2127
|
const i = Re(() => {
|
|
2128
|
-
var
|
|
2129
|
-
const
|
|
2130
|
-
if (
|
|
2131
|
-
let
|
|
2132
|
-
return "/" + ((
|
|
2128
|
+
var V;
|
|
2129
|
+
const y = a.meta.activeMenu;
|
|
2130
|
+
if (y === "{model}") {
|
|
2131
|
+
let M = a.params.app ? `${a.params.app}/${a.params.model}` : a.params.model;
|
|
2132
|
+
return "/" + ((V = hs[a.params.model]) != null ? V : M);
|
|
2133
2133
|
} else
|
|
2134
|
-
return
|
|
2134
|
+
return y;
|
|
2135
2135
|
}), f = () => {
|
|
2136
2136
|
l.value = window.innerWidth, l.value < 768 && (t.menuCollapsed || (s("update:menuCollapsed", !0), n.menu.collapsed = !0));
|
|
2137
2137
|
};
|
|
@@ -2141,20 +2141,20 @@ const bo = /* @__PURE__ */ qs("console", {
|
|
|
2141
2141
|
window.removeEventListener("resize", f);
|
|
2142
2142
|
});
|
|
2143
2143
|
function b() {
|
|
2144
|
-
const
|
|
2145
|
-
s("update:menuCollapsed", !
|
|
2144
|
+
const y = t.menuCollapsed;
|
|
2145
|
+
s("update:menuCollapsed", !y), n.menu.collapsed = !y;
|
|
2146
2146
|
}
|
|
2147
|
-
return (
|
|
2148
|
-
const
|
|
2149
|
-
return
|
|
2150
|
-
h(
|
|
2147
|
+
return (y, V) => {
|
|
2148
|
+
const M = $("el-menu");
|
|
2149
|
+
return d(), E("div", ta, [
|
|
2150
|
+
h(M, {
|
|
2151
2151
|
class: "menu",
|
|
2152
2152
|
"default-active": i.value,
|
|
2153
|
-
collapse:
|
|
2153
|
+
collapse: y.menuCollapsed,
|
|
2154
2154
|
router: ""
|
|
2155
2155
|
}, {
|
|
2156
2156
|
default: p(() => [
|
|
2157
|
-
(
|
|
2157
|
+
(d(!0), E(ne, null, me(w(c), (K) => (d(), I(ms, {
|
|
2158
2158
|
key: K.path,
|
|
2159
2159
|
menu: K
|
|
2160
2160
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -2165,14 +2165,14 @@ const bo = /* @__PURE__ */ qs("console", {
|
|
|
2165
2165
|
class: "collapse-button",
|
|
2166
2166
|
onClick: b
|
|
2167
2167
|
}, [
|
|
2168
|
-
(
|
|
2169
|
-
|
|
2168
|
+
(d(), E("svg", oa, [
|
|
2169
|
+
y.menuCollapsed ? (d(), E("polyline", na)) : (d(), E("polyline", sa))
|
|
2170
2170
|
]))
|
|
2171
2171
|
])
|
|
2172
2172
|
]);
|
|
2173
2173
|
};
|
|
2174
2174
|
}
|
|
2175
|
-
}), yo = /* @__PURE__ */
|
|
2175
|
+
}), yo = /* @__PURE__ */ ke(aa, [["__scopeId", "data-v-c5fc0a54"]]), ra = { class: "container" }, la = { class: "main-wrapper" }, ia = /* @__PURE__ */ Ce({
|
|
2176
2176
|
__name: "ConsoleApp",
|
|
2177
2177
|
props: {
|
|
2178
2178
|
title: {},
|
|
@@ -2180,18 +2180,18 @@ const bo = /* @__PURE__ */ qs("console", {
|
|
|
2180
2180
|
helpDocUrl: {}
|
|
2181
2181
|
},
|
|
2182
2182
|
setup(e) {
|
|
2183
|
-
const o = bo(Pt), n = tt(), t =
|
|
2183
|
+
const o = bo(Pt), n = tt(), t = j(o.menu.collapsed), s = e;
|
|
2184
2184
|
return (a, c) => {
|
|
2185
2185
|
const l = $("router-view"), i = $("el-scrollbar");
|
|
2186
|
-
return
|
|
2187
|
-
|
|
2186
|
+
return d(), E(ne, null, [
|
|
2187
|
+
w(n).query.embedded !== "true" ? (d(), I(eo, {
|
|
2188
2188
|
key: 0,
|
|
2189
2189
|
title: s.title,
|
|
2190
2190
|
helpDocUrl: s.helpDocUrl,
|
|
2191
2191
|
headerProjectConfig: s.headerProjectConfig
|
|
2192
2192
|
}, null, 8, ["title", "helpDocUrl", "headerProjectConfig"])) : L("", !0),
|
|
2193
2193
|
_("div", ra, [
|
|
2194
|
-
|
|
2194
|
+
w(n).query.embedded !== "true" ? (d(), I(yo, {
|
|
2195
2195
|
key: 0,
|
|
2196
2196
|
menuCollapsed: t.value,
|
|
2197
2197
|
"onUpdate:menuCollapsed": c[0] || (c[0] = (f) => t.value = f)
|
|
@@ -2213,16 +2213,16 @@ const bo = /* @__PURE__ */ qs("console", {
|
|
|
2213
2213
|
width: "800",
|
|
2214
2214
|
height: "800"
|
|
2215
2215
|
};
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2216
|
+
function ua(e, o) {
|
|
2217
|
+
return d(), E("svg", ca, o[0] || (o[0] = [
|
|
2218
2218
|
Ao('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>', 33)
|
|
2219
2219
|
]));
|
|
2220
2220
|
}
|
|
2221
|
-
const
|
|
2221
|
+
const da = { render: ua }, pa = {}, fa = { class: "wrapper" }, ma = { class: "content" };
|
|
2222
2222
|
function ha(e, o) {
|
|
2223
2223
|
const n = $("el-button");
|
|
2224
|
-
return
|
|
2225
|
-
o[4] || (o[4] = _("img", { src:
|
|
2224
|
+
return d(), E("div", fa, [
|
|
2225
|
+
o[4] || (o[4] = _("img", { src: da }, null, -1)),
|
|
2226
2226
|
_("div", ma, [
|
|
2227
2227
|
o[3] || (o[3] = _("h1", null, "You have no permission to access the page.", -1)),
|
|
2228
2228
|
h(n, { type: "primary" }, {
|
|
@@ -2242,19 +2242,19 @@ function ha(e, o) {
|
|
|
2242
2242
|
])
|
|
2243
2243
|
]);
|
|
2244
2244
|
}
|
|
2245
|
-
const va = /* @__PURE__ */
|
|
2245
|
+
const va = /* @__PURE__ */ ke(pa, [["render", ha], ["__scopeId", "data-v-0155b361"]]), _a = {};
|
|
2246
2246
|
function ga(e, o) {
|
|
2247
2247
|
const n = $("router-view");
|
|
2248
|
-
return
|
|
2248
|
+
return d(), I(n);
|
|
2249
2249
|
}
|
|
2250
|
-
const ba = /* @__PURE__ */
|
|
2250
|
+
const ba = /* @__PURE__ */ ke(_a, [["render", ga]]), ya = { class: "card-wrapper" }, wa = ["onClick"], Ca = { class: "card-inner-wrapper" }, ka = { class: "card-title" }, Sa = { class: "icon" }, xa = /* @__PURE__ */ Ce({
|
|
2251
2251
|
__name: "TabCard",
|
|
2252
2252
|
props: {
|
|
2253
2253
|
cards: {},
|
|
2254
2254
|
tableRef: {}
|
|
2255
2255
|
},
|
|
2256
2256
|
setup(e) {
|
|
2257
|
-
const o = tt(), n = ft(), t = e, s =
|
|
2257
|
+
const o = tt(), n = ft(), t = e, s = j(t.cards[0].key);
|
|
2258
2258
|
function a(c) {
|
|
2259
2259
|
c.disabled || (s.value = c.key, t.tableRef.updateConfigAndRefresh(c.model), n.push({
|
|
2260
2260
|
path: o.path,
|
|
@@ -2288,29 +2288,29 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2288
2288
|
{
|
|
2289
2289
|
deep: !0
|
|
2290
2290
|
}
|
|
2291
|
-
), (c, l) => (
|
|
2292
|
-
(
|
|
2291
|
+
), (c, l) => (d(), E("div", ya, [
|
|
2292
|
+
(d(!0), E(ne, null, me(t.cards, (i) => (d(), E("div", {
|
|
2293
2293
|
class: Ct(["card", { "card-selected": s.value === i.key }]),
|
|
2294
2294
|
onClick: (f) => a(i)
|
|
2295
2295
|
}, [
|
|
2296
2296
|
_("div", Ca, [
|
|
2297
2297
|
_("div", ka, [
|
|
2298
2298
|
_("div", Sa, [
|
|
2299
|
-
i.icon ? (
|
|
2299
|
+
i.icon ? (d(), I(it(Te(i.icon)), {
|
|
2300
2300
|
key: 0,
|
|
2301
2301
|
class: "svg-icon"
|
|
2302
2302
|
})) : L("", !0)
|
|
2303
2303
|
]),
|
|
2304
2304
|
_("span", {
|
|
2305
2305
|
style: He({ color: i.disabled ? "#aaa" : "black" })
|
|
2306
|
-
}, A(
|
|
2306
|
+
}, A(w(oe)(i.label)), 5)
|
|
2307
2307
|
]),
|
|
2308
2308
|
_("span", null, A(i.count), 1)
|
|
2309
2309
|
])
|
|
2310
2310
|
], 10, wa))), 256))
|
|
2311
2311
|
]));
|
|
2312
2312
|
}
|
|
2313
|
-
}), wo = /* @__PURE__ */
|
|
2313
|
+
}), wo = /* @__PURE__ */ ke(xa, [["__scopeId", "data-v-def6f4dd"]]), $a = {
|
|
2314
2314
|
key: 1,
|
|
2315
2315
|
class: "view-span"
|
|
2316
2316
|
}, Ea = {
|
|
@@ -2319,7 +2319,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2319
2319
|
}, Oa = ["innerHTML"], Pa = {
|
|
2320
2320
|
key: 9,
|
|
2321
2321
|
class: "svg-field view-mode"
|
|
2322
|
-
}, Ia = ["innerHTML"], Va = /* @__PURE__ */
|
|
2322
|
+
}, Ia = ["innerHTML"], Va = /* @__PURE__ */ Ce({
|
|
2323
2323
|
__name: "FormView",
|
|
2324
2324
|
props: {
|
|
2325
2325
|
id: {},
|
|
@@ -2332,22 +2332,22 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2332
2332
|
},
|
|
2333
2333
|
emits: ["update:id"],
|
|
2334
2334
|
setup(e, { expose: o, emit: n }) {
|
|
2335
|
-
const t = e, s = fe({}), a =
|
|
2336
|
-
(
|
|
2335
|
+
const t = e, s = fe({}), a = j(!1), c = j(), l = fe({}), i = j(!1), f = j(""), b = j(null), y = (C) => t.mode === "view" && (W(C, void 0) || W(C, "input") || W(C, "select") || W(C, "password") || W(C, "input-number") || W(C, "date") || W(C, "time") || W(C, "datetime")), V = Re(() => t.model.fields ? t.model.fields.filter(
|
|
2336
|
+
(C) => {
|
|
2337
2337
|
var r, v, S, P;
|
|
2338
|
-
let T =
|
|
2339
|
-
if (t.mode !== "view" && ((v =
|
|
2338
|
+
let T = C.visible !== !1 && ((r = C.formItem) == null ? void 0 : r.visible) !== !1;
|
|
2339
|
+
if (t.mode !== "view" && ((v = C.formItem) == null ? void 0 : v.editable) === !1 || t.mode === "view" && ((S = C.formItem) == null ? void 0 : S.type) === "password")
|
|
2340
2340
|
return !1;
|
|
2341
|
-
let
|
|
2342
|
-
if (
|
|
2343
|
-
if (
|
|
2344
|
-
return s[
|
|
2345
|
-
if (
|
|
2346
|
-
return s[
|
|
2347
|
-
if (
|
|
2348
|
-
return s[
|
|
2349
|
-
if (
|
|
2350
|
-
return s[
|
|
2341
|
+
let u = (P = C.formItem) == null ? void 0 : P.showCondition;
|
|
2342
|
+
if (u && u.field && u.value !== void 0) {
|
|
2343
|
+
if (u.operator === void 0 || u.operator === "==")
|
|
2344
|
+
return s[u.field] === u.value;
|
|
2345
|
+
if (u.operator === "!=")
|
|
2346
|
+
return s[u.field] !== u.value;
|
|
2347
|
+
if (u.operator === ">")
|
|
2348
|
+
return s[u.field] > u.value;
|
|
2349
|
+
if (u.operator === "<")
|
|
2350
|
+
return s[u.field] < u.value;
|
|
2351
2351
|
}
|
|
2352
2352
|
return T;
|
|
2353
2353
|
}
|
|
@@ -2357,26 +2357,26 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2357
2357
|
}, {
|
|
2358
2358
|
immediate: !0
|
|
2359
2359
|
});
|
|
2360
|
-
function
|
|
2361
|
-
const
|
|
2360
|
+
function M() {
|
|
2361
|
+
const C = t.model.fields;
|
|
2362
2362
|
let T = {};
|
|
2363
|
-
|
|
2364
|
-
var r, v, S, P, R, D, O, F, G, g, x, m,
|
|
2365
|
-
if (s[
|
|
2366
|
-
if (((v =
|
|
2367
|
-
let le = (P =
|
|
2368
|
-
le !== void 0 && (T[
|
|
2363
|
+
C == null || C.forEach((u) => {
|
|
2364
|
+
var r, v, S, P, R, D, O, F, G, g, x, m, q;
|
|
2365
|
+
if (s[u.prop] = null, u.visible !== !1 && ((r = u.formItem) == null ? void 0 : r.visible) !== !1) {
|
|
2366
|
+
if (((v = u.formItem) == null ? void 0 : v.defaultValue) !== void 0 ? s[u.prop] = (S = u.formItem) == null ? void 0 : S.defaultValue : s[u.prop] = void 0, t.mode !== "view") {
|
|
2367
|
+
let le = (P = u.formItem) == null ? void 0 : P.validationRule;
|
|
2368
|
+
le !== void 0 && (T[u.prop] = le), Ye(l), Object.assign(l, T);
|
|
2369
2369
|
}
|
|
2370
|
-
const k =
|
|
2370
|
+
const k = u.formItem, ee = k == null ? void 0 : k.type, N = (R = k == null ? void 0 : k.select) == null ? void 0 : R.useDatableDict, ae = (D = k == null ? void 0 : k.select) == null ? void 0 : D.dictId, Q = (O = k == null ? void 0 : k.select) == null ? void 0 : O.api, Y = (F = k == null ? void 0 : k.select) == null ? void 0 : F.valueMappingField, re = (G = k == null ? void 0 : k.select) == null ? void 0 : G.labelMappingField;
|
|
2371
2371
|
if (ee === "select") {
|
|
2372
2372
|
if (N) {
|
|
2373
2373
|
let ie = `${Re(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${ae}`;
|
|
2374
2374
|
const _e = (g = k == null ? void 0 : k.select) == null ? void 0 : g.queryParamName, pe = (x = k == null ? void 0 : k.select) == null ? void 0 : x.queryParamValueField;
|
|
2375
|
-
_e && (ie = `${ie}?${_e}=${t.id}`), pe ||
|
|
2376
|
-
var
|
|
2377
|
-
if ((
|
|
2375
|
+
_e && (ie = `${ie}?${_e}=${t.id}`), pe || Oe(ie, "GET", {}).then(({ data: ge }) => {
|
|
2376
|
+
var xe;
|
|
2377
|
+
if ((xe = u.formItem) != null && xe.select) {
|
|
2378
2378
|
let be = [];
|
|
2379
|
-
Array.isArray(ge.data) ? be = ge.data : ge.data.list && Array.isArray(ge.data.list) && (be = ge.data.list),
|
|
2379
|
+
Array.isArray(ge.data) ? be = ge.data : ge.data.list && Array.isArray(ge.data.list) && (be = ge.data.list), u.formItem.select.options = be.map((Ae) => ({
|
|
2380
2380
|
value: Ae.dbOrdinal,
|
|
2381
2381
|
label: oe(Ae.value)
|
|
2382
2382
|
}));
|
|
@@ -2384,12 +2384,12 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2384
2384
|
});
|
|
2385
2385
|
} else if (Q) {
|
|
2386
2386
|
let le = Q;
|
|
2387
|
-
const ie = (m = k == null ? void 0 : k.select) == null ? void 0 : m.queryParamName, _e = (
|
|
2388
|
-
ie && (le = `${le}?${ie}=${t.id}`), _e ||
|
|
2387
|
+
const ie = (m = k == null ? void 0 : k.select) == null ? void 0 : m.queryParamName, _e = (q = k == null ? void 0 : k.select) == null ? void 0 : q.queryParamValueField;
|
|
2388
|
+
ie && (le = `${le}?${ie}=${t.id}`), _e || Oe(le, "GET", {}).then(({ data: pe }) => {
|
|
2389
2389
|
var ge;
|
|
2390
|
-
if ((ge =
|
|
2391
|
-
let
|
|
2392
|
-
Array.isArray(pe.data) ?
|
|
2390
|
+
if ((ge = u.formItem) != null && ge.select) {
|
|
2391
|
+
let xe = [];
|
|
2392
|
+
Array.isArray(pe.data) ? xe = pe.data : pe.data.list && Array.isArray(pe.data.list) && (xe = pe.data.list), u.formItem.select.options = xe.map((be) => ({
|
|
2393
2393
|
value: Y ? be[Y] : be.value,
|
|
2394
2394
|
label: oe(re ? be[re] : be.label)
|
|
2395
2395
|
}));
|
|
@@ -2401,60 +2401,60 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2401
2401
|
});
|
|
2402
2402
|
}
|
|
2403
2403
|
function K() {
|
|
2404
|
-
Z(),
|
|
2405
|
-
Ye(s), Object.assign(s,
|
|
2406
|
-
T.formItem && T.formItem.type === "select" && s[T.prop] !== void 0 &&
|
|
2404
|
+
Z(), M(), (t.mode === "update" || t.mode === "view") && t.id !== void 0 && t.id !== "" && t.model.api !== "" && (a.value = !0, Oe(`${t.model.api}/${t.id}`, "GET", {}).then(({ data: C }) => {
|
|
2405
|
+
Ye(s), Object.assign(s, C.data), t.model.fields.forEach((T) => {
|
|
2406
|
+
T.formItem && T.formItem.type === "select" && s[T.prop] !== void 0 && Se(T);
|
|
2407
2407
|
}), a.value = !1;
|
|
2408
2408
|
}));
|
|
2409
2409
|
}
|
|
2410
2410
|
function H() {
|
|
2411
|
-
return new Promise((
|
|
2411
|
+
return new Promise((C, T) => {
|
|
2412
2412
|
var r, v, S, P;
|
|
2413
2413
|
((v = (r = t.model.formConfig) == null ? void 0 : r.functions) == null ? void 0 : v.beforeSubmit) !== void 0 && Object.assign(s, (P = (S = t.model.formConfig) == null ? void 0 : S.functions) == null ? void 0 : P.beforeSubmit(s));
|
|
2414
|
-
let
|
|
2415
|
-
t.model.api &&
|
|
2414
|
+
let u = t.mode === "create" ? "POST" : "PUT";
|
|
2415
|
+
t.model.api && Oe(t.model.api, u, s).then(({ data: R }) => {
|
|
2416
2416
|
var D, O, F, G;
|
|
2417
|
-
R.code === 0 && (t.closeDialogFunc && t.closeDialogFunc(), ((O = (D = t.model.formConfig) == null ? void 0 : D.functions) == null ? void 0 : O.afterSubmit) !== void 0 && ((G = (F = t.model.formConfig) == null ? void 0 : F.functions) == null || G.afterSubmit(R.data)), t.afterSubmitFunc && t.afterSubmitFunc(),
|
|
2417
|
+
R.code === 0 && (t.closeDialogFunc && t.closeDialogFunc(), ((O = (D = t.model.formConfig) == null ? void 0 : D.functions) == null ? void 0 : O.afterSubmit) !== void 0 && ((G = (F = t.model.formConfig) == null ? void 0 : F.functions) == null || G.afterSubmit(R.data)), t.afterSubmitFunc && t.afterSubmitFunc(), C());
|
|
2418
2418
|
});
|
|
2419
2419
|
});
|
|
2420
2420
|
}
|
|
2421
2421
|
function Z() {
|
|
2422
|
-
var
|
|
2423
|
-
(
|
|
2422
|
+
var C;
|
|
2423
|
+
(C = c.value) == null || C.resetFields();
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2426
|
-
return
|
|
2425
|
+
function z(C) {
|
|
2426
|
+
return C != null && C.prop ? C.label ? oe(C.label) : C.prop.slice(0, 1).toUpperCase() + C.prop.slice(1).toLowerCase() : "";
|
|
2427
2427
|
}
|
|
2428
|
-
function te(
|
|
2429
|
-
var T,
|
|
2430
|
-
if (
|
|
2431
|
-
if (W(
|
|
2432
|
-
const R = (
|
|
2428
|
+
function te(C) {
|
|
2429
|
+
var T, u, r, v, S, P;
|
|
2430
|
+
if (C) {
|
|
2431
|
+
if (W(C, "select")) {
|
|
2432
|
+
const R = (u = (T = C.tableColumn) == null ? void 0 : T.functions) == null ? void 0 : u.transformValue;
|
|
2433
2433
|
if (R)
|
|
2434
|
-
return R(s[
|
|
2435
|
-
const D = (v = (r =
|
|
2434
|
+
return R(s[C.prop]);
|
|
2435
|
+
const D = (v = (r = C.formItem) == null ? void 0 : r.select) == null ? void 0 : v.viewModeLabelField;
|
|
2436
2436
|
if (D)
|
|
2437
2437
|
return oe(s[D]);
|
|
2438
|
-
const O = (P = (S =
|
|
2438
|
+
const O = (P = (S = C.formItem) == null ? void 0 : S.select) == null ? void 0 : P.options;
|
|
2439
2439
|
if (O) {
|
|
2440
2440
|
for (let F of O)
|
|
2441
|
-
if (F.value === s[
|
|
2441
|
+
if (F.value === s[C.prop])
|
|
2442
2442
|
return oe(F.label);
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
|
-
return oe(s[
|
|
2445
|
+
return oe(s[C.prop]);
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
|
-
function se(
|
|
2448
|
+
function se(C) {
|
|
2449
2449
|
var T;
|
|
2450
|
-
return ((T =
|
|
2450
|
+
return ((T = C.formItem) == null ? void 0 : T.updatable) === !1 && t.mode === "update";
|
|
2451
2451
|
}
|
|
2452
|
-
function ve(
|
|
2452
|
+
function ve(C, T) {
|
|
2453
2453
|
var r, v;
|
|
2454
|
-
const
|
|
2455
|
-
switch (
|
|
2454
|
+
const u = (v = (r = T.formItem) == null ? void 0 : r.type) != null ? v : "input";
|
|
2455
|
+
switch (C) {
|
|
2456
2456
|
case "input":
|
|
2457
|
-
return t.mode === "view" ? !1 :
|
|
2457
|
+
return t.mode === "view" ? !1 : u === "input" || u === "password";
|
|
2458
2458
|
case "select":
|
|
2459
2459
|
return !0;
|
|
2460
2460
|
case "input-number":
|
|
@@ -2465,23 +2465,23 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2465
2465
|
case "svg":
|
|
2466
2466
|
return !0;
|
|
2467
2467
|
default:
|
|
2468
|
-
return console.log("Error: unrecognized form component type: ",
|
|
2468
|
+
return console.log("Error: unrecognized form component type: ", C), !0;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
function W(
|
|
2472
|
-
var
|
|
2473
|
-
return ((
|
|
2471
|
+
function W(C, T) {
|
|
2472
|
+
var u;
|
|
2473
|
+
return ((u = C.formItem) == null ? void 0 : u.type) === T;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Se(C) {
|
|
2476
2476
|
var T;
|
|
2477
|
-
for (let
|
|
2478
|
-
const r = (T =
|
|
2479
|
-
if (!(!
|
|
2477
|
+
for (let u of t.model.fields) {
|
|
2478
|
+
const r = (T = u.formItem) == null ? void 0 : T.select;
|
|
2479
|
+
if (!(!u.formItem || u.formItem.type !== "select" || !r || !r.queryParamValueField) && r.queryParamValueField === C.prop) {
|
|
2480
2480
|
const v = r.api;
|
|
2481
2481
|
if (v) {
|
|
2482
2482
|
let S = v;
|
|
2483
2483
|
const P = r.queryParamName;
|
|
2484
|
-
P && (S = `${S}?${P}=${s[r.queryParamValueField]}`),
|
|
2484
|
+
P && (S = `${S}?${P}=${s[r.queryParamValueField]}`), Oe(S, "GET", {}).then(({ data: R }) => {
|
|
2485
2485
|
if (r) {
|
|
2486
2486
|
let D = [];
|
|
2487
2487
|
Array.isArray(R.data) ? D = R.data : R.data.list && Array.isArray(R.data.list) && (D = R.data.list), r.options = D.map((O) => ({
|
|
@@ -2494,20 +2494,20 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
|
-
function U(
|
|
2498
|
-
b.value =
|
|
2497
|
+
function U(C) {
|
|
2498
|
+
b.value = C, f.value = s[C.prop], i.value = !0;
|
|
2499
2499
|
}
|
|
2500
|
-
return Me(f, (
|
|
2501
|
-
b.value && (s[b.value.prop] =
|
|
2500
|
+
return Me(f, (C) => {
|
|
2501
|
+
b.value && (s[b.value.prop] = C);
|
|
2502
2502
|
}), o({
|
|
2503
2503
|
refresh: K,
|
|
2504
2504
|
reset: Z,
|
|
2505
2505
|
submit: H,
|
|
2506
2506
|
formData: s
|
|
2507
|
-
}), (
|
|
2508
|
-
const
|
|
2509
|
-
return
|
|
2510
|
-
Jt((
|
|
2507
|
+
}), (C, T) => {
|
|
2508
|
+
const u = $("el-input"), r = $("el-switch"), v = $("el-date-picker"), S = $("el-time-picker"), P = $("el-option"), R = $("el-select"), D = $("el-input-number"), O = $("el-button"), F = $("el-form-item"), G = $("el-form"), g = $("el-dialog"), x = Yt("loading");
|
|
2509
|
+
return d(), E(ne, null, [
|
|
2510
|
+
Jt((d(), I(G, {
|
|
2511
2511
|
ref_key: "formRef",
|
|
2512
2512
|
ref: c,
|
|
2513
2513
|
model: s,
|
|
@@ -2519,31 +2519,31 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2519
2519
|
inline: !t.disableInline
|
|
2520
2520
|
}, {
|
|
2521
2521
|
default: p(() => [
|
|
2522
|
-
(
|
|
2522
|
+
(d(!0), E(ne, null, me(V.value, (m) => (d(), I(F, {
|
|
2523
2523
|
class: "form-item",
|
|
2524
2524
|
style: He({ width: t.disableInline ? "100%" : "calc(50% - 32px)" }),
|
|
2525
2525
|
prop: m.prop,
|
|
2526
|
-
label:
|
|
2526
|
+
label: z(m)
|
|
2527
2527
|
}, {
|
|
2528
2528
|
default: p(() => {
|
|
2529
|
-
var
|
|
2529
|
+
var q, k, ee, N, ae, Q, Y, re, le, ie, _e, pe, ge, xe, be, Ae, Je, Ke, ue, J;
|
|
2530
2530
|
return [
|
|
2531
|
-
ve("input", m) ? (
|
|
2531
|
+
ve("input", m) ? (d(), I(u, {
|
|
2532
2532
|
key: 0,
|
|
2533
2533
|
type: W(m, "password") ? "password" : "text",
|
|
2534
2534
|
modelValue: s[m.prop],
|
|
2535
2535
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2536
|
-
placeholder: (
|
|
2536
|
+
placeholder: (q = m.formItem) == null ? void 0 : q.placeholder,
|
|
2537
2537
|
disabled: se(m)
|
|
2538
2538
|
}, null, 8, ["type", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : L("", !0),
|
|
2539
|
-
|
|
2540
|
-
W(m, "switch") ? (
|
|
2539
|
+
y(m) ? (d(), E("span", $a, A(te(m)), 1)) : L("", !0),
|
|
2540
|
+
W(m, "switch") ? (d(), I(r, {
|
|
2541
2541
|
key: 2,
|
|
2542
2542
|
modelValue: s[m.prop],
|
|
2543
2543
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2544
2544
|
disabled: t.mode === "view"
|
|
2545
2545
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : L("", !0),
|
|
2546
|
-
W(m, "date") && t.mode !== "view" ? (
|
|
2546
|
+
W(m, "date") && t.mode !== "view" ? (d(), I(v, {
|
|
2547
2547
|
key: 3,
|
|
2548
2548
|
style: { width: "100%" },
|
|
2549
2549
|
type: "date",
|
|
@@ -2552,14 +2552,14 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2552
2552
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2553
2553
|
disabled: t.mode === "view"
|
|
2554
2554
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : L("", !0),
|
|
2555
|
-
W(m, "time") && t.mode !== "view" ? (
|
|
2555
|
+
W(m, "time") && t.mode !== "view" ? (d(), I(S, {
|
|
2556
2556
|
key: 4,
|
|
2557
2557
|
style: { width: "100%" },
|
|
2558
2558
|
modelValue: s[m.prop],
|
|
2559
2559
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2560
2560
|
disabled: t.mode === "view"
|
|
2561
2561
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : L("", !0),
|
|
2562
|
-
W(m, "datetime") && t.mode !== "view" ? (
|
|
2562
|
+
W(m, "datetime") && t.mode !== "view" ? (d(), I(v, {
|
|
2563
2563
|
key: 5,
|
|
2564
2564
|
style: { width: "100%" },
|
|
2565
2565
|
type: "datetime",
|
|
@@ -2568,7 +2568,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2568
2568
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2569
2569
|
disabled: t.mode === "view"
|
|
2570
2570
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : L("", !0),
|
|
2571
|
-
W(m, "select") && t.mode !== "view" ? (
|
|
2571
|
+
W(m, "select") && t.mode !== "view" ? (d(), I(R, {
|
|
2572
2572
|
key: 6,
|
|
2573
2573
|
multiple: (ee = (k = m.formItem) == null ? void 0 : k.select) == null ? void 0 : ee.multiple,
|
|
2574
2574
|
"collapse-tags": (ae = (N = m.formItem) == null ? void 0 : N.select) == null ? void 0 : ae.multiple,
|
|
@@ -2578,30 +2578,30 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2578
2578
|
modelValue: s[m.prop],
|
|
2579
2579
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2580
2580
|
disabled: se(m),
|
|
2581
|
-
onChange: (X) =>
|
|
2581
|
+
onChange: (X) => Se(m)
|
|
2582
2582
|
}, {
|
|
2583
2583
|
default: p(() => {
|
|
2584
2584
|
var X, Pe;
|
|
2585
2585
|
return [
|
|
2586
|
-
(
|
|
2586
|
+
(d(!0), E(ne, null, me((Pe = (X = m.formItem) == null ? void 0 : X.select) == null ? void 0 : Pe.options, (Ie) => (d(), I(P, {
|
|
2587
2587
|
value: Ie.value,
|
|
2588
|
-
label:
|
|
2588
|
+
label: w(oe)(Ie.label)
|
|
2589
2589
|
}, null, 8, ["value", "label"]))), 256))
|
|
2590
2590
|
];
|
|
2591
2591
|
}),
|
|
2592
2592
|
_: 2
|
|
2593
2593
|
}, 1032, ["multiple", "collapse-tags", "filterable", "allow-create", "default-first-option", "modelValue", "onUpdate:modelValue", "disabled", "onChange"])) : L("", !0),
|
|
2594
|
-
W(m, "input-number") && t.mode !== "view" ? (
|
|
2594
|
+
W(m, "input-number") && t.mode !== "view" ? (d(), I(D, {
|
|
2595
2595
|
key: 7,
|
|
2596
2596
|
style: { width: "100%" },
|
|
2597
2597
|
modelValue: s[m.prop],
|
|
2598
2598
|
"onUpdate:modelValue": (X) => s[m.prop] = X,
|
|
2599
|
-
min: (
|
|
2599
|
+
min: (xe = (ge = (pe = m.formItem) == null ? void 0 : pe.inputNumber) == null ? void 0 : ge.min) != null ? xe : Number.NEGATIVE_INFINITY,
|
|
2600
2600
|
max: (Je = (Ae = (be = m.formItem) == null ? void 0 : be.inputNumber) == null ? void 0 : Ae.max) != null ? Je : Number.POSITIVE_INFINITY,
|
|
2601
|
-
step: (J = (
|
|
2601
|
+
step: (J = (ue = (Ke = m.formItem) == null ? void 0 : Ke.inputNumber) == null ? void 0 : ue.step) != null ? J : 1,
|
|
2602
2602
|
"value-on-clear": -10
|
|
2603
2603
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step"])) : L("", !0),
|
|
2604
|
-
W(m, "svg") && t.mode !== "view" ? (
|
|
2604
|
+
W(m, "svg") && t.mode !== "view" ? (d(), E("div", Ea, [
|
|
2605
2605
|
_("div", {
|
|
2606
2606
|
class: "svg-icon",
|
|
2607
2607
|
innerHTML: s[m.prop]
|
|
@@ -2618,7 +2618,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2618
2618
|
_: 2
|
|
2619
2619
|
}, 1032, ["onClick"])
|
|
2620
2620
|
])) : L("", !0),
|
|
2621
|
-
W(m, "svg") && t.mode === "view" ? (
|
|
2621
|
+
W(m, "svg") && t.mode === "view" ? (d(), E("div", Pa, [
|
|
2622
2622
|
_("div", {
|
|
2623
2623
|
class: "svg-icon",
|
|
2624
2624
|
innerHTML: s[m.prop]
|
|
@@ -2653,7 +2653,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2653
2653
|
"close-on-click-modal": !1
|
|
2654
2654
|
}, {
|
|
2655
2655
|
default: p(() => [
|
|
2656
|
-
h(
|
|
2656
|
+
h(u, {
|
|
2657
2657
|
type: "textarea",
|
|
2658
2658
|
rows: 15,
|
|
2659
2659
|
modelValue: f.value,
|
|
@@ -2666,10 +2666,10 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2666
2666
|
], 64);
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
}), Co = /* @__PURE__ */
|
|
2669
|
+
}), Co = /* @__PURE__ */ ke(Va, [["__scopeId", "data-v-c2a11be0"]]), Ma = { class: "console-dialog__body" }, Na = {
|
|
2670
2670
|
key: 0,
|
|
2671
2671
|
class: "process-view"
|
|
2672
|
-
}, Ua = { class: "operation-button-wrapper" }, ko = /* @__PURE__ */
|
|
2672
|
+
}, Ua = { class: "operation-button-wrapper" }, ko = /* @__PURE__ */ Ce({
|
|
2673
2673
|
__name: "FormDialog",
|
|
2674
2674
|
props: {
|
|
2675
2675
|
id: {},
|
|
@@ -2681,7 +2681,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2681
2681
|
},
|
|
2682
2682
|
emits: ["update:visible", "update:id"],
|
|
2683
2683
|
setup(e, { expose: o, emit: n }) {
|
|
2684
|
-
const { t } = St(), s = e, a =
|
|
2684
|
+
const { t } = St(), s = e, a = j(0), c = n, l = he();
|
|
2685
2685
|
Me(() => s.visible, () => {
|
|
2686
2686
|
s.visible && a.value++;
|
|
2687
2687
|
});
|
|
@@ -2697,9 +2697,9 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2697
2697
|
return o({
|
|
2698
2698
|
close: f,
|
|
2699
2699
|
refresh: i
|
|
2700
|
-
}), (
|
|
2701
|
-
const
|
|
2702
|
-
return
|
|
2700
|
+
}), (y, V) => {
|
|
2701
|
+
const M = $("el-step"), K = $("el-steps"), H = $("el-button"), Z = $("el-dialog");
|
|
2702
|
+
return d(), I(Z, {
|
|
2703
2703
|
class: "console-dialog",
|
|
2704
2704
|
title: "Edit",
|
|
2705
2705
|
"align-center": "",
|
|
@@ -2708,18 +2708,18 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2708
2708
|
onClose: f
|
|
2709
2709
|
}, {
|
|
2710
2710
|
footer: p(() => {
|
|
2711
|
-
var
|
|
2711
|
+
var z;
|
|
2712
2712
|
return [
|
|
2713
2713
|
_("div", {
|
|
2714
2714
|
class: "dialog-footer",
|
|
2715
2715
|
style: He({ width: s.showProcess ? "calc(100% - 350px)" : "auto" })
|
|
2716
2716
|
}, [
|
|
2717
2717
|
_("div", Ua, [
|
|
2718
|
-
(
|
|
2718
|
+
(d(!0), E(ne, null, me((z = s.model.formConfig) == null ? void 0 : z.dialogButtons, (te) => (d(), I(H, {
|
|
2719
2719
|
onClick: (se) => te.function(l.value.formData)
|
|
2720
2720
|
}, {
|
|
2721
2721
|
default: p(() => [
|
|
2722
|
-
B(A(
|
|
2722
|
+
B(A(w(t)(te.label)), 1)
|
|
2723
2723
|
]),
|
|
2724
2724
|
_: 2
|
|
2725
2725
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -2727,7 +2727,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2727
2727
|
_("div", null, [
|
|
2728
2728
|
h(H, { onClick: f }, {
|
|
2729
2729
|
default: p(() => [
|
|
2730
|
-
B(A(
|
|
2730
|
+
B(A(w(t)("common.basic.cancel")), 1)
|
|
2731
2731
|
]),
|
|
2732
2732
|
_: 1
|
|
2733
2733
|
}),
|
|
@@ -2736,7 +2736,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2736
2736
|
onClick: b
|
|
2737
2737
|
}, {
|
|
2738
2738
|
default: p(() => [
|
|
2739
|
-
B(A(
|
|
2739
|
+
B(A(w(t)("common.basic.save")), 1)
|
|
2740
2740
|
]),
|
|
2741
2741
|
_: 1
|
|
2742
2742
|
})
|
|
@@ -2748,7 +2748,7 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2748
2748
|
_("div", Ma, [
|
|
2749
2749
|
h(Co, {
|
|
2750
2750
|
class: "form-view",
|
|
2751
|
-
style: He({ width:
|
|
2751
|
+
style: He({ width: y.showProcess ? "calc(100% - 280px)" : "100%" }),
|
|
2752
2752
|
ref_key: "formViewRef",
|
|
2753
2753
|
ref: l,
|
|
2754
2754
|
id: s.id,
|
|
@@ -2759,16 +2759,16 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2759
2759
|
closeDialogFunc: f,
|
|
2760
2760
|
disableInline: s.showProcess
|
|
2761
2761
|
}, null, 8, ["style", "id", "sessionId", "mode", "model", "afterSubmitFunc", "disableInline"]),
|
|
2762
|
-
|
|
2763
|
-
|
|
2762
|
+
y.showProcess ? (d(), E("div", Na, [
|
|
2763
|
+
V[0] || (V[0] = _("h1", null, "流程动态", -1)),
|
|
2764
2764
|
h(K, {
|
|
2765
2765
|
style: { height: "90%" },
|
|
2766
2766
|
direction: "vertical",
|
|
2767
2767
|
active: 1
|
|
2768
2768
|
}, {
|
|
2769
2769
|
default: p(() => [
|
|
2770
|
-
h(
|
|
2771
|
-
h(
|
|
2770
|
+
h(M, { title: "Step 1" }),
|
|
2771
|
+
h(M, { title: "Step 2" })
|
|
2772
2772
|
]),
|
|
2773
2773
|
_: 1
|
|
2774
2774
|
})
|
|
@@ -2787,20 +2787,20 @@ const ba = /* @__PURE__ */ Ce(_a, [["render", ga]]), ya = { class: "card-wrapper
|
|
|
2787
2787
|
viewBox: "0 0 1024 1024"
|
|
2788
2788
|
};
|
|
2789
2789
|
function Aa(e, o) {
|
|
2790
|
-
return
|
|
2790
|
+
return d(), E("svg", Ta, o[0] || (o[0] = [
|
|
2791
2791
|
_("path", {
|
|
2792
2792
|
fill: "#888a8d",
|
|
2793
2793
|
d: "M192 672a16 16 0 0 1 16 16v128h604.992V688a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v160a64 64 0 0 1-56.512 63.552l-7.488.448H176a64 64 0 0 1-64-64V688a16 16 0 0 1 16-16zm268.032-505.664v2.56l-.128 13.248v89.024l.064 46.08V718.72A18.176 18.176 0 0 1 443.2 736h-62.08a18.176 18.176 0 0 1-17.216-16.768V334.464h-1.28l-130.432 129.28a16 16 0 0 1-22.592-.128l-.32-.256L164.544 416a16 16 0 0 1 .448-22.4l86.08-84.736a18.2 18.2 0 0 1 2.688-3.2l142.72-139.648c7.04-6.784 56.512-6.656 63.488.32zm184.832-5.312c9.152.448 16.512 7.68 17.216 16.768v384.704h1.344L793.792 433.28a16 16 0 0 1 22.592.128l.256.256 44.736 47.36a16 16 0 0 1-.448 22.4l-86.08 84.736a18.2 18.2 0 0 1-2.624 3.2l-142.72 139.648c-7.104 6.784-56.512 6.656-63.488-.32v-2.56l.064-13.312V579.84l-.064-17.28V178.304a18.176 18.176 0 0 1 16.768-17.216h62.08z"
|
|
2794
2794
|
}, null, -1)
|
|
2795
2795
|
]));
|
|
2796
2796
|
}
|
|
2797
|
-
const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-buttons" }, La = { class: "tool-buttons" }, Ga = { key: 2 }, ja = /* @__PURE__ */
|
|
2797
|
+
const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-buttons" }, La = { class: "tool-buttons" }, Ga = { key: 2 }, ja = /* @__PURE__ */ Ce({
|
|
2798
2798
|
__name: "TableView",
|
|
2799
2799
|
props: {
|
|
2800
2800
|
model: {}
|
|
2801
2801
|
},
|
|
2802
2802
|
setup(e, { expose: o }) {
|
|
2803
|
-
const { t: n } =
|
|
2803
|
+
const { t: n } = ut.global, t = e, s = fe([]), a = fe({}), c = j(""), l = j(!1), i = ft(), f = j(""), b = fe([]), y = fe([]), V = he(), M = he([]), K = j("create"), H = j(!0), Z = j(!1), z = j(""), te = fe({
|
|
2804
2804
|
pageSize: 10,
|
|
2805
2805
|
pageNo: 1,
|
|
2806
2806
|
totalElements: 0
|
|
@@ -2815,9 +2815,9 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2815
2815
|
function W(g, x) {
|
|
2816
2816
|
var ee, N, ae, Q;
|
|
2817
2817
|
let m = x.row[g.prop];
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2820
|
-
m =
|
|
2818
|
+
const q = (N = (ee = g.tableColumn) == null ? void 0 : ee.functions) == null ? void 0 : N.transformValue, k = (ae = g.tableColumn) == null ? void 0 : ae.transformValueMappings;
|
|
2819
|
+
if (q)
|
|
2820
|
+
m = q(m);
|
|
2821
2821
|
else if (k && k.length > 0) {
|
|
2822
2822
|
for (let Y of k)
|
|
2823
2823
|
if (m === Y.value) {
|
|
@@ -2838,7 +2838,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2838
2838
|
} else if (Y.useDatableDict && Y.dictId) {
|
|
2839
2839
|
if (se[Y.dictId] === void 0) {
|
|
2840
2840
|
let le = `${Re(() => window.location.href.indexOf("localhost") > 0 ? "http://localhost.vancone.com:8080" : "https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${Y.dictId}`;
|
|
2841
|
-
|
|
2841
|
+
Oe(le, "GET", {}).then(({ data: ie }) => {
|
|
2842
2842
|
let _e = [];
|
|
2843
2843
|
Array.isArray(ie.data) ? _e = ie.data : ie.data.list && Array.isArray(ie.data.list) && (_e = ie.data.list), se[Y.dictId] = _e;
|
|
2844
2844
|
for (let pe of se[Y.dictId])
|
|
@@ -2858,37 +2858,37 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2858
2858
|
}
|
|
2859
2859
|
return oe(m);
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2862
|
-
var m,
|
|
2863
|
-
return g.label ? oe(g.label) : oe((
|
|
2861
|
+
function Se(g, x) {
|
|
2862
|
+
var m, q;
|
|
2863
|
+
return g.label ? oe(g.label) : oe((q = (m = g.functions) == null ? void 0 : m.transformLabel) == null ? void 0 : q.call(m, x.$index, x.row));
|
|
2864
2864
|
}
|
|
2865
2865
|
function U(g) {
|
|
2866
2866
|
Ye(t.model), Object.assign(t.model, g);
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2869
|
-
var x, m,
|
|
2868
|
+
function C() {
|
|
2869
|
+
var x, m, q;
|
|
2870
2870
|
if (H.value = !0, !t.model || !t.model.api)
|
|
2871
2871
|
return;
|
|
2872
|
-
Ye(a), Object.assign(a, (x = t.model.tableConfig) != null ? x : {}), a.display = (m = a.display) != null ? m : {}, a.display.advancedSearch !== !0 && (a.display.advancedSearch = !1), a.display.fileTaskButton !== !0 && (a.display.fileTaskButton = !1), a.display.pagination !== !1 && (a.display.pagination = !0), a.display.pane !== !1 && (a.display.pane = !0), a.display.searchBox !== !1 && (a.display.searchBox = !0), s.splice(0, s.length, ...t.model.fields), c.value = (
|
|
2872
|
+
Ye(a), Object.assign(a, (x = t.model.tableConfig) != null ? x : {}), a.display = (m = a.display) != null ? m : {}, a.display.advancedSearch !== !0 && (a.display.advancedSearch = !1), a.display.fileTaskButton !== !0 && (a.display.fileTaskButton = !1), a.display.pagination !== !1 && (a.display.pagination = !0), a.display.pane !== !1 && (a.display.pane = !0), a.display.searchBox !== !1 && (a.display.searchBox = !0), s.splice(0, s.length, ...t.model.fields), c.value = (q = t.model.route) != null ? q : "";
|
|
2873
2873
|
let g = ot({}, a.queryParams);
|
|
2874
|
-
g.pageSize = te.pageSize, g.pageNo = te.pageNo, g.search = f.value,
|
|
2874
|
+
g.pageSize = te.pageSize, g.pageNo = te.pageNo, g.search = f.value, Oe(t.model.api, "GET", g).then(({ data: k }) => {
|
|
2875
2875
|
const { list: ee, totalCount: N } = k.data;
|
|
2876
2876
|
b.splice(0, b.length, ...ee), te.totalElements = N, H.value = !1;
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
2879
2879
|
function T() {
|
|
2880
2880
|
var g, x;
|
|
2881
|
-
a.createPageRoutePath !== void 0 ? i.push(a.createPageRoutePath) : ((g = a.functions) == null ? void 0 : g.create) !== void 0 ? (x = a.functions) == null || x.create() : (K.value = "create",
|
|
2881
|
+
a.createPageRoutePath !== void 0 ? i.push(a.createPageRoutePath) : ((g = a.functions) == null ? void 0 : g.create) !== void 0 ? (x = a.functions) == null || x.create() : (K.value = "create", z.value = "", l.value = !0);
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2884
|
-
var m,
|
|
2883
|
+
function u(g, x) {
|
|
2884
|
+
var m, q;
|
|
2885
2885
|
if (t.model.api) {
|
|
2886
2886
|
if (x.id === void 0) {
|
|
2887
|
-
const k = (
|
|
2887
|
+
const k = (q = (m = t.model.formConfig) == null ? void 0 : m.functions) == null ? void 0 : q.beforeSubmit;
|
|
2888
2888
|
k !== void 0 && k(x);
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2891
|
-
k.code === 0 && (l.value = !1,
|
|
2890
|
+
Oe(t.model.api, "DELETE", x.id).then(({ data: k }) => {
|
|
2891
|
+
k.code === 0 && (l.value = !1, C());
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
@@ -2904,23 +2904,23 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2904
2904
|
).then(() => {
|
|
2905
2905
|
var g, x;
|
|
2906
2906
|
if (((g = a.functions) == null ? void 0 : g.batchDelete) !== void 0)
|
|
2907
|
-
(x = a.functions) == null || x.batchDelete(
|
|
2907
|
+
(x = a.functions) == null || x.batchDelete(M.value);
|
|
2908
2908
|
else {
|
|
2909
|
-
const m =
|
|
2910
|
-
we.delete(`${t.model.api}/${m.join(",")}`).then(({ data:
|
|
2911
|
-
|
|
2909
|
+
const m = M.value.map((q) => q.id);
|
|
2910
|
+
we.delete(`${t.model.api}/${m.join(",")}`).then(({ data: q }) => {
|
|
2911
|
+
q.code === 0 && (l.value = !1, C());
|
|
2912
2912
|
});
|
|
2913
2913
|
}
|
|
2914
|
-
|
|
2914
|
+
V.value.clearSelection();
|
|
2915
2915
|
}).catch(() => {
|
|
2916
|
-
|
|
2916
|
+
V.value.clearSelection();
|
|
2917
2917
|
});
|
|
2918
2918
|
}
|
|
2919
2919
|
function v(g) {
|
|
2920
|
-
te.pageSize = g,
|
|
2920
|
+
te.pageSize = g, C();
|
|
2921
2921
|
}
|
|
2922
2922
|
function S(g) {
|
|
2923
|
-
te.pageNo = g,
|
|
2923
|
+
te.pageNo = g, C();
|
|
2924
2924
|
}
|
|
2925
2925
|
function P(g, x) {
|
|
2926
2926
|
a.editPageRoutePath !== void 0 ? i.push({
|
|
@@ -2928,28 +2928,28 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2928
2928
|
query: {
|
|
2929
2929
|
id: x.id
|
|
2930
2930
|
}
|
|
2931
|
-
}) : (
|
|
2931
|
+
}) : (z.value = x.id, K.value = "update", l.value = !0);
|
|
2932
2932
|
}
|
|
2933
2933
|
function R() {
|
|
2934
2934
|
var m;
|
|
2935
2935
|
let g = ((m = t.model.api) != null && m.startsWith("http") ? "" : window.location.origin) + t.model.api + "/export";
|
|
2936
2936
|
const x = a.queryParams;
|
|
2937
|
-
x !== void 0 && Object.keys(x).length > 0 && (g += "?", Object.entries(a.queryParams).map((
|
|
2938
|
-
g += `${
|
|
2937
|
+
x !== void 0 && Object.keys(x).length > 0 && (g += "?", Object.entries(a.queryParams).map((q) => {
|
|
2938
|
+
g += `${q[0]}=${q[1]}&`;
|
|
2939
2939
|
})), window.open(g);
|
|
2940
2940
|
}
|
|
2941
2941
|
function D(g) {
|
|
2942
|
-
|
|
2942
|
+
M.value = g;
|
|
2943
2943
|
}
|
|
2944
2944
|
function O(g) {
|
|
2945
2945
|
return g != null && g.prop ? g.label ? oe(g.label) : g.prop.slice(0, 1).toUpperCase() + g.prop.slice(1).toLowerCase() : "";
|
|
2946
2946
|
}
|
|
2947
2947
|
function F(g) {
|
|
2948
|
-
g ? (Z.value = !0,
|
|
2948
|
+
g ? (Z.value = !0, y.splice(0, y.length, ...b), b.splice(0, b.length, ...M.value)) : (Z.value = !1, b.splice(0, b.length, ...y));
|
|
2949
2949
|
}
|
|
2950
2950
|
function G() {
|
|
2951
2951
|
var ee;
|
|
2952
|
-
if (
|
|
2952
|
+
if (M.value.length === 0) {
|
|
2953
2953
|
Tt.alert("Select rows before printing", "Print", {
|
|
2954
2954
|
confirmButtonText: "OK"
|
|
2955
2955
|
});
|
|
@@ -2960,15 +2960,15 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
2960
2960
|
g += `<th>${O(N)}</th>`;
|
|
2961
2961
|
});
|
|
2962
2962
|
let x = "";
|
|
2963
|
-
|
|
2963
|
+
M.value.forEach((N) => {
|
|
2964
2964
|
x += "<tr>", ve.value.forEach((ae) => {
|
|
2965
2965
|
x += `<td>${N[ae.prop]}</td>`;
|
|
2966
2966
|
}), x += "</tr>";
|
|
2967
2967
|
});
|
|
2968
2968
|
let m = `<table><tr>${g}</tr>${x}</table>`;
|
|
2969
|
-
const
|
|
2970
|
-
|
|
2971
|
-
const k =
|
|
2969
|
+
const q = document.createElement("iframe");
|
|
2970
|
+
q.style.display = "none", document.body.appendChild(q);
|
|
2971
|
+
const k = q.contentDocument || ((ee = q.contentWindow) == null ? void 0 : ee.document);
|
|
2972
2972
|
k == null || k.open(), k == null || k.write(`
|
|
2973
2973
|
<!DOCTYPE html>
|
|
2974
2974
|
<html>
|
|
@@ -3021,25 +3021,25 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3021
3021
|
`), k == null || k.close();
|
|
3022
3022
|
}
|
|
3023
3023
|
return Me(() => t.model, () => {
|
|
3024
|
-
|
|
3024
|
+
C();
|
|
3025
3025
|
}, {
|
|
3026
3026
|
deep: !0,
|
|
3027
3027
|
immediate: !0
|
|
3028
3028
|
}), o({
|
|
3029
|
-
multipleSelection:
|
|
3030
|
-
refresh:
|
|
3029
|
+
multipleSelection: M,
|
|
3030
|
+
refresh: C,
|
|
3031
3031
|
updateConfigAndRefresh: U
|
|
3032
3032
|
}), (g, x) => {
|
|
3033
3033
|
var Ae, Je, Ke;
|
|
3034
|
-
const m = $("el-checkbox"),
|
|
3035
|
-
return
|
|
3034
|
+
const m = $("el-checkbox"), q = $("el-badge"), k = $("el-button"), ee = $("el-dropdown-item"), N = $("el-dropdown-menu"), ae = $("el-dropdown"), Q = $("el-icon"), Y = $("el-tooltip"), re = $("el-input"), le = $("el-table-column"), ie = $("router-link"), _e = $("el-tag"), pe = $("el-popconfirm"), ge = $("el-table"), xe = $("el-pagination"), be = Yt("loading");
|
|
3035
|
+
return d(), E("div", {
|
|
3036
3036
|
class: Ct({ "table-view-wrapper": (Ae = a.display) == null ? void 0 : Ae.pane })
|
|
3037
3037
|
}, [
|
|
3038
3038
|
_("div", Ra, [
|
|
3039
3039
|
_("div", Fa, [
|
|
3040
|
-
a.selectMode ? (
|
|
3040
|
+
a.selectMode ? (d(), I(q, {
|
|
3041
3041
|
key: 0,
|
|
3042
|
-
value:
|
|
3042
|
+
value: M.value.length,
|
|
3043
3043
|
type: "primary",
|
|
3044
3044
|
class: "selected-badge"
|
|
3045
3045
|
}, {
|
|
@@ -3047,46 +3047,46 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3047
3047
|
h(m, {
|
|
3048
3048
|
class: "selected-checkbox",
|
|
3049
3049
|
border: !0,
|
|
3050
|
-
label:
|
|
3050
|
+
label: w(n)("common.table.viewSelected"),
|
|
3051
3051
|
onChange: F
|
|
3052
3052
|
}, null, 8, ["label"])
|
|
3053
3053
|
]),
|
|
3054
3054
|
_: 1
|
|
3055
3055
|
}, 8, ["value"])) : L("", !0),
|
|
3056
|
-
!a.selectMode && !a.readOnly && a.creatable !== !1 ? (
|
|
3056
|
+
!a.selectMode && !a.readOnly && a.creatable !== !1 ? (d(), I(k, {
|
|
3057
3057
|
key: 1,
|
|
3058
3058
|
type: "primary",
|
|
3059
3059
|
onClick: T
|
|
3060
3060
|
}, {
|
|
3061
3061
|
default: p(() => {
|
|
3062
|
-
var
|
|
3062
|
+
var ue, J;
|
|
3063
3063
|
return [
|
|
3064
|
-
B(A(((
|
|
3064
|
+
B(A(((ue = a.labels) == null ? void 0 : ue.create) != null ? w(n)((J = a.labels) == null ? void 0 : J.create) : w(n)("common.table.create")), 1)
|
|
3065
3065
|
];
|
|
3066
3066
|
}),
|
|
3067
3067
|
_: 1
|
|
3068
3068
|
})) : L("", !0),
|
|
3069
|
-
!a.selectMode && !a.readOnly && a.deletable !== !1 ? (
|
|
3069
|
+
!a.selectMode && !a.readOnly && a.deletable !== !1 ? (d(), I(k, {
|
|
3070
3070
|
key: 2,
|
|
3071
|
-
disabled:
|
|
3071
|
+
disabled: M.value.length == 0,
|
|
3072
3072
|
type: "danger",
|
|
3073
3073
|
plain: "",
|
|
3074
3074
|
onClick: r
|
|
3075
3075
|
}, {
|
|
3076
3076
|
default: p(() => {
|
|
3077
|
-
var
|
|
3077
|
+
var ue, J;
|
|
3078
3078
|
return [
|
|
3079
|
-
B(A(((
|
|
3079
|
+
B(A(((ue = a.labels) == null ? void 0 : ue.delete) != null ? w(n)((J = a.labels) == null ? void 0 : J.delete) : w(n)("common.table.delete")), 1)
|
|
3080
3080
|
];
|
|
3081
3081
|
}),
|
|
3082
3082
|
_: 1
|
|
3083
3083
|
}, 8, ["disabled"])) : L("", !0),
|
|
3084
3084
|
h(k, {
|
|
3085
|
-
icon:
|
|
3085
|
+
icon: w(xt),
|
|
3086
3086
|
style: { width: "28px" },
|
|
3087
|
-
onClick:
|
|
3087
|
+
onClick: C
|
|
3088
3088
|
}, null, 8, ["icon"]),
|
|
3089
|
-
(Je = a.display) != null && Je.fileTaskButton ? (
|
|
3089
|
+
(Je = a.display) != null && Je.fileTaskButton ? (d(), I(ae, {
|
|
3090
3090
|
key: 3,
|
|
3091
3091
|
placement: "bottom-start",
|
|
3092
3092
|
trigger: "click"
|
|
@@ -3095,7 +3095,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3095
3095
|
h(N, null, {
|
|
3096
3096
|
default: p(() => [
|
|
3097
3097
|
h(ee, {
|
|
3098
|
-
icon:
|
|
3098
|
+
icon: w(Go),
|
|
3099
3099
|
disabled: !0
|
|
3100
3100
|
}, {
|
|
3101
3101
|
default: p(() => x[3] || (x[3] = [
|
|
@@ -3104,7 +3104,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3104
3104
|
_: 1
|
|
3105
3105
|
}, 8, ["icon"]),
|
|
3106
3106
|
h(ee, {
|
|
3107
|
-
icon:
|
|
3107
|
+
icon: w(Dt),
|
|
3108
3108
|
divided: "",
|
|
3109
3109
|
disabled: !0
|
|
3110
3110
|
}, {
|
|
@@ -3114,7 +3114,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3114
3114
|
_: 1
|
|
3115
3115
|
}, 8, ["icon"]),
|
|
3116
3116
|
h(ee, {
|
|
3117
|
-
icon:
|
|
3117
|
+
icon: w(Dt),
|
|
3118
3118
|
onClick: R
|
|
3119
3119
|
}, {
|
|
3120
3120
|
default: p(() => x[5] || (x[5] = [
|
|
@@ -3123,7 +3123,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3123
3123
|
_: 1
|
|
3124
3124
|
}, 8, ["icon"]),
|
|
3125
3125
|
h(ee, {
|
|
3126
|
-
icon:
|
|
3126
|
+
icon: w(jo),
|
|
3127
3127
|
divided: "",
|
|
3128
3128
|
disabled: !0
|
|
3129
3129
|
}, {
|
|
@@ -3139,7 +3139,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3139
3139
|
default: p(() => [
|
|
3140
3140
|
h(k, { style: { width: "28px" } }, {
|
|
3141
3141
|
icon: p(() => [
|
|
3142
|
-
h(
|
|
3142
|
+
h(w(Da))
|
|
3143
3143
|
]),
|
|
3144
3144
|
_: 1
|
|
3145
3145
|
})
|
|
@@ -3154,7 +3154,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3154
3154
|
h(N, null, {
|
|
3155
3155
|
default: p(() => [
|
|
3156
3156
|
h(ee, {
|
|
3157
|
-
icon:
|
|
3157
|
+
icon: w(zo),
|
|
3158
3158
|
onClick: G
|
|
3159
3159
|
}, {
|
|
3160
3160
|
default: p(() => x[7] || (x[7] = [
|
|
@@ -3163,7 +3163,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3163
3163
|
_: 1
|
|
3164
3164
|
}, 8, ["icon"]),
|
|
3165
3165
|
h(ee, {
|
|
3166
|
-
icon:
|
|
3166
|
+
icon: w(qo),
|
|
3167
3167
|
disabled: !0
|
|
3168
3168
|
}, {
|
|
3169
3169
|
default: p(() => x[8] || (x[8] = [
|
|
@@ -3177,22 +3177,22 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3177
3177
|
]),
|
|
3178
3178
|
default: p(() => [
|
|
3179
3179
|
h(k, {
|
|
3180
|
-
icon:
|
|
3180
|
+
icon: w(Bo),
|
|
3181
3181
|
style: { width: "28px" }
|
|
3182
3182
|
}, null, 8, ["icon"])
|
|
3183
3183
|
]),
|
|
3184
3184
|
_: 1
|
|
3185
3185
|
}),
|
|
3186
|
-
a.tooltip ? (
|
|
3186
|
+
a.tooltip ? (d(), I(Y, {
|
|
3187
3187
|
key: 4,
|
|
3188
3188
|
effect: "dark",
|
|
3189
|
-
content:
|
|
3189
|
+
content: w(n)(a.tooltip),
|
|
3190
3190
|
placement: "right"
|
|
3191
3191
|
}, {
|
|
3192
3192
|
default: p(() => [
|
|
3193
3193
|
h(Q, { style: { color: "#8ba74f" } }, {
|
|
3194
3194
|
default: p(() => [
|
|
3195
|
-
h(
|
|
3195
|
+
h(w(Ho))
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 1
|
|
3198
3198
|
})
|
|
@@ -3202,20 +3202,20 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3202
3202
|
]),
|
|
3203
3203
|
_("div", La, [
|
|
3204
3204
|
h(re, {
|
|
3205
|
-
placeholder: `${
|
|
3205
|
+
placeholder: `${w(n)("common.table.search")}...`,
|
|
3206
3206
|
modelValue: f.value,
|
|
3207
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
3207
|
+
"onUpdate:modelValue": x[0] || (x[0] = (ue) => f.value = ue)
|
|
3208
3208
|
}, {
|
|
3209
3209
|
append: p(() => [
|
|
3210
3210
|
h(k, {
|
|
3211
3211
|
style: { "margin-left": "-20px" },
|
|
3212
|
-
icon:
|
|
3213
|
-
onClick:
|
|
3212
|
+
icon: w(Kt),
|
|
3213
|
+
onClick: C
|
|
3214
3214
|
}, null, 8, ["icon"])
|
|
3215
3215
|
]),
|
|
3216
3216
|
_: 1
|
|
3217
3217
|
}, 8, ["placeholder", "modelValue"]),
|
|
3218
|
-
(Ke = a.display) != null && Ke.advancedSearch ? (
|
|
3218
|
+
(Ke = a.display) != null && Ke.advancedSearch ? (d(), I(k, {
|
|
3219
3219
|
key: 0,
|
|
3220
3220
|
type: "text"
|
|
3221
3221
|
}, {
|
|
@@ -3226,25 +3226,25 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3226
3226
|
})) : L("", !0)
|
|
3227
3227
|
])
|
|
3228
3228
|
]),
|
|
3229
|
-
Jt((
|
|
3229
|
+
Jt((d(), I(ge, {
|
|
3230
3230
|
border: !0,
|
|
3231
3231
|
ref_key: "tableRef",
|
|
3232
|
-
ref:
|
|
3232
|
+
ref: V,
|
|
3233
3233
|
data: b,
|
|
3234
3234
|
onSelectionChange: D,
|
|
3235
3235
|
class: "table"
|
|
3236
3236
|
}, {
|
|
3237
3237
|
default: p(() => {
|
|
3238
|
-
var
|
|
3238
|
+
var ue;
|
|
3239
3239
|
return [
|
|
3240
|
-
a.readOnly ? L("", !0) : (
|
|
3240
|
+
a.readOnly ? L("", !0) : (d(), I(le, {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
type: "selection",
|
|
3243
3243
|
width: "50"
|
|
3244
3244
|
})),
|
|
3245
|
-
(
|
|
3245
|
+
(d(!0), E(ne, null, me(ve.value, (J) => {
|
|
3246
3246
|
var X;
|
|
3247
|
-
return
|
|
3247
|
+
return d(), I(le, {
|
|
3248
3248
|
prop: J.prop,
|
|
3249
3249
|
label: O(J),
|
|
3250
3250
|
width: (X = J.tableColumn) == null ? void 0 : X.width,
|
|
@@ -3253,7 +3253,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3253
3253
|
default: p((Pe) => {
|
|
3254
3254
|
var Ie, Qe, It;
|
|
3255
3255
|
return [
|
|
3256
|
-
(Ie = J.tableColumn) != null && Ie.link ? (
|
|
3256
|
+
(Ie = J.tableColumn) != null && Ie.link ? (d(), I(ie, {
|
|
3257
3257
|
key: 0,
|
|
3258
3258
|
class: "router-link",
|
|
3259
3259
|
to: `/${c.value}/detail?id=${Pe.row.id}`
|
|
@@ -3262,7 +3262,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3262
3262
|
_("span", null, A(W(J, Pe)), 1)
|
|
3263
3263
|
]),
|
|
3264
3264
|
_: 2
|
|
3265
|
-
}, 1032, ["to"])) : (Qe = J.tableColumn) != null && Qe.routerLink ? (
|
|
3265
|
+
}, 1032, ["to"])) : (Qe = J.tableColumn) != null && Qe.routerLink ? (d(), I(ie, {
|
|
3266
3266
|
key: 1,
|
|
3267
3267
|
class: "router-link",
|
|
3268
3268
|
to: J.tableColumn.routerLink.replace("{id}", Pe.row.id)
|
|
@@ -3271,8 +3271,8 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3271
3271
|
_("span", null, A(W(J, Pe)), 1)
|
|
3272
3272
|
]),
|
|
3273
3273
|
_: 2
|
|
3274
|
-
}, 1032, ["to"])) : (
|
|
3275
|
-
((It = J.tableColumn) == null ? void 0 : It.type) === "tag" ? (
|
|
3274
|
+
}, 1032, ["to"])) : (d(), E("span", Ga, A(W(J, Pe)), 1)),
|
|
3275
|
+
((It = J.tableColumn) == null ? void 0 : It.type) === "tag" ? (d(), I(_e, { key: 3 }, {
|
|
3276
3276
|
default: p(() => [
|
|
3277
3277
|
B(A(Pe.row[J.prop]), 1)
|
|
3278
3278
|
]),
|
|
@@ -3283,13 +3283,13 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3283
3283
|
_: 2
|
|
3284
3284
|
}, 1032, ["prop", "label", "width"]);
|
|
3285
3285
|
}), 256)),
|
|
3286
|
-
a.operations === void 0 && !((
|
|
3286
|
+
a.operations === void 0 && !((ue = a.selectMode) != null && ue) && !a.readOnly ? (d(), I(le, {
|
|
3287
3287
|
key: 1,
|
|
3288
|
-
label:
|
|
3288
|
+
label: w(n)("common.table.operation"),
|
|
3289
3289
|
width: "120"
|
|
3290
3290
|
}, {
|
|
3291
3291
|
default: p((J) => [
|
|
3292
|
-
a.updatable !== !1 ? (
|
|
3292
|
+
a.updatable !== !1 ? (d(), I(k, {
|
|
3293
3293
|
key: 0,
|
|
3294
3294
|
link: "",
|
|
3295
3295
|
type: "primary",
|
|
@@ -3297,23 +3297,23 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3297
3297
|
onClick: (X) => P(J.$index, J.row)
|
|
3298
3298
|
}, {
|
|
3299
3299
|
default: p(() => [
|
|
3300
|
-
B(A(
|
|
3300
|
+
B(A(w(n)("common.table.edit")), 1)
|
|
3301
3301
|
]),
|
|
3302
3302
|
_: 2
|
|
3303
3303
|
}, 1032, ["onClick"])) : L("", !0),
|
|
3304
3304
|
h(pe, {
|
|
3305
3305
|
title: "Are you sure to delete this?",
|
|
3306
|
-
onConfirm: (X) =>
|
|
3306
|
+
onConfirm: (X) => u(J.$index, J.row)
|
|
3307
3307
|
}, {
|
|
3308
3308
|
reference: p(() => [
|
|
3309
|
-
a.deletable !== !1 ? (
|
|
3309
|
+
a.deletable !== !1 ? (d(), I(k, {
|
|
3310
3310
|
key: 0,
|
|
3311
3311
|
link: "",
|
|
3312
3312
|
type: "primary",
|
|
3313
3313
|
class: "operation-button"
|
|
3314
3314
|
}, {
|
|
3315
3315
|
default: p(() => [
|
|
3316
|
-
B(A(
|
|
3316
|
+
B(A(w(n)("common.table.delete")), 1)
|
|
3317
3317
|
]),
|
|
3318
3318
|
_: 1
|
|
3319
3319
|
})) : L("", !0)
|
|
@@ -3323,24 +3323,24 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3323
3323
|
]),
|
|
3324
3324
|
_: 1
|
|
3325
3325
|
}, 8, ["label"])) : L("", !0),
|
|
3326
|
-
a.operations !== void 0 && !a.readOnly ? (
|
|
3326
|
+
a.operations !== void 0 && !a.readOnly ? (d(), I(le, {
|
|
3327
3327
|
key: 2,
|
|
3328
|
-
label:
|
|
3328
|
+
label: w(n)("common.table.operation"),
|
|
3329
3329
|
width: "120"
|
|
3330
3330
|
}, {
|
|
3331
3331
|
default: p((J) => [
|
|
3332
|
-
(
|
|
3332
|
+
(d(!0), E(ne, null, me(a.operations, (X) => (d(), I(k, {
|
|
3333
3333
|
class: "operation-button",
|
|
3334
3334
|
link: "",
|
|
3335
3335
|
type: "primary",
|
|
3336
3336
|
key: X.label,
|
|
3337
3337
|
onClick: (Pe) => {
|
|
3338
3338
|
var Ie, Qe;
|
|
3339
|
-
return ((Qe = (Ie = X.functions) == null ? void 0 : Ie.click) == null ? void 0 : Qe.call(Ie, J.$index, J.row)) &&
|
|
3339
|
+
return ((Qe = (Ie = X.functions) == null ? void 0 : Ie.click) == null ? void 0 : Qe.call(Ie, J.$index, J.row)) && C();
|
|
3340
3340
|
}
|
|
3341
3341
|
}, {
|
|
3342
3342
|
default: p(() => [
|
|
3343
|
-
B(A(
|
|
3343
|
+
B(A(Se(X, J)), 1)
|
|
3344
3344
|
]),
|
|
3345
3345
|
_: 2
|
|
3346
3346
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -3353,14 +3353,14 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3353
3353
|
}, 8, ["data"])), [
|
|
3354
3354
|
[be, H.value]
|
|
3355
3355
|
]),
|
|
3356
|
-
Z.value ? L("", !0) : (
|
|
3356
|
+
Z.value ? L("", !0) : (d(), I(xe, {
|
|
3357
3357
|
key: 0,
|
|
3358
3358
|
size: "small",
|
|
3359
3359
|
background: "",
|
|
3360
3360
|
onSizeChange: v,
|
|
3361
3361
|
onCurrentChange: S,
|
|
3362
3362
|
currentPage: te.pageNo,
|
|
3363
|
-
"onUpdate:currentPage": x[1] || (x[1] = (
|
|
3363
|
+
"onUpdate:currentPage": x[1] || (x[1] = (ue) => te.pageNo = ue),
|
|
3364
3364
|
"page-sizes": [10, 20, 50, 100],
|
|
3365
3365
|
"page-size": te.pageSize,
|
|
3366
3366
|
layout: "total, sizes, prev, pager, next",
|
|
@@ -3369,53 +3369,86 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3369
3369
|
h(ko, {
|
|
3370
3370
|
model: g.model,
|
|
3371
3371
|
mode: K.value,
|
|
3372
|
-
id:
|
|
3373
|
-
afterSubmitFunc:
|
|
3372
|
+
id: z.value,
|
|
3373
|
+
afterSubmitFunc: C,
|
|
3374
3374
|
visible: l.value,
|
|
3375
|
-
"onUpdate:visible": x[2] || (x[2] = (
|
|
3375
|
+
"onUpdate:visible": x[2] || (x[2] = (ue) => l.value = ue)
|
|
3376
3376
|
}, null, 8, ["model", "mode", "id", "visible"])
|
|
3377
3377
|
], 2);
|
|
3378
3378
|
};
|
|
3379
3379
|
}
|
|
3380
|
-
}), pt = /* @__PURE__ */
|
|
3380
|
+
}), pt = /* @__PURE__ */ ke(ja, [["__scopeId", "data-v-676ef8b1"]]), mr = /* @__PURE__ */ Ce({
|
|
3381
|
+
__name: "VcPagination",
|
|
3382
|
+
props: {
|
|
3383
|
+
totalElements: { default: 0 }
|
|
3384
|
+
},
|
|
3385
|
+
emits: ["refresh"],
|
|
3386
|
+
setup(e, { expose: o, emit: n }) {
|
|
3387
|
+
const t = e, s = n, a = j(1), c = j(10);
|
|
3388
|
+
function l(f) {
|
|
3389
|
+
c.value = f, s("refresh");
|
|
3390
|
+
}
|
|
3391
|
+
function i(f) {
|
|
3392
|
+
a.value = f, s("refresh");
|
|
3393
|
+
}
|
|
3394
|
+
return o({
|
|
3395
|
+
pageNo: a,
|
|
3396
|
+
pageSize: c
|
|
3397
|
+
}), (f, b) => {
|
|
3398
|
+
const y = $("el-pagination");
|
|
3399
|
+
return d(), I(y, {
|
|
3400
|
+
size: "small",
|
|
3401
|
+
background: "",
|
|
3402
|
+
onSizeChange: l,
|
|
3403
|
+
onCurrentChange: i,
|
|
3404
|
+
currentPage: a.value,
|
|
3405
|
+
"onUpdate:currentPage": b[0] || (b[0] = (V) => a.value = V),
|
|
3406
|
+
"page-sizes": [10, 20, 50, 100],
|
|
3407
|
+
"page-size": c.value,
|
|
3408
|
+
layout: "total, sizes, prev, pager, next",
|
|
3409
|
+
total: t.totalElements
|
|
3410
|
+
}, null, 8, ["currentPage", "page-size", "total"]);
|
|
3411
|
+
};
|
|
3412
|
+
}
|
|
3413
|
+
}), za = { class: "nav-bar" }, qa = { style: { "font-size": "16px" } }, Ba = {
|
|
3381
3414
|
key: 0,
|
|
3382
3415
|
class: "info-card-wrapper"
|
|
3383
|
-
}, Ha = { class: "icon-wrapper" }, Wa = { class: "info-wrapper" }, Ya = { class: "title-wrapper" }, Ja = { class: "tabs-wrapper" }, Ka = { class: "dialog-footer" }, Qa = /* @__PURE__ */
|
|
3416
|
+
}, Ha = { class: "icon-wrapper" }, Wa = { class: "info-wrapper" }, Ya = { class: "title-wrapper" }, Ja = { class: "tabs-wrapper" }, Ka = { class: "dialog-footer" }, Qa = /* @__PURE__ */ Ce({
|
|
3384
3417
|
__name: "DetailPage",
|
|
3385
3418
|
setup(e) {
|
|
3386
|
-
const { t: o } = St(), n = tt(), t = ft(), s = Re(() => n.query.id), a =
|
|
3419
|
+
const { t: o } = St(), n = tt(), t = ft(), s = Re(() => n.query.id), a = j(!1), c = j(!1), l = j("view"), i = he(), f = j(-1), b = he(), y = he(), V = j("summary"), M = j(""), K = j(""), H = j(""), Z = j(0), z = fe({
|
|
3387
3420
|
api: "",
|
|
3388
3421
|
fields: []
|
|
3389
3422
|
}), te = fe([]);
|
|
3390
3423
|
let se = [];
|
|
3391
3424
|
Me([
|
|
3392
3425
|
() => t.currentRoute.value,
|
|
3393
|
-
|
|
3426
|
+
Ee
|
|
3394
3427
|
], () => {
|
|
3395
3428
|
U();
|
|
3396
3429
|
}, {
|
|
3397
3430
|
immediate: !0,
|
|
3398
3431
|
deep: !0
|
|
3399
3432
|
});
|
|
3400
|
-
function ve(
|
|
3401
|
-
f.value = parseInt(
|
|
3433
|
+
function ve(u) {
|
|
3434
|
+
f.value = parseInt(u.index) - 1;
|
|
3402
3435
|
}
|
|
3403
3436
|
function W() {
|
|
3404
3437
|
var S;
|
|
3405
|
-
let
|
|
3406
|
-
|
|
3407
|
-
const r =
|
|
3408
|
-
|
|
3438
|
+
let u = (S = se[f.value].api) == null ? void 0 : S.replace("/select", "");
|
|
3439
|
+
u = u == null ? void 0 : u.substring(u.lastIndexOf("/"));
|
|
3440
|
+
const r = z.api + "/" + s.value + u, v = y.value.multipleSelection.map((P) => P.id);
|
|
3441
|
+
Oe(r, "POST", v).then(() => {
|
|
3409
3442
|
b.value.refresh(), c.value = !1;
|
|
3410
3443
|
});
|
|
3411
3444
|
}
|
|
3412
|
-
function
|
|
3445
|
+
function Se(u, r, v) {
|
|
3413
3446
|
var R;
|
|
3414
3447
|
v.functions || (v.functions = {}), v.functions.create = () => {
|
|
3415
|
-
c.value = !0,
|
|
3448
|
+
c.value = !0, y.value && y.value.refresh();
|
|
3416
3449
|
};
|
|
3417
3450
|
let S = Be(r);
|
|
3418
|
-
S.tableConfig || (S.tableConfig = {}), S.tableConfig.selectMode = !0, S.tableConfig.queryParams = {},
|
|
3451
|
+
S.tableConfig || (S.tableConfig = {}), S.tableConfig.selectMode = !0, S.tableConfig.queryParams = {}, u.queryParamName && (S.tableConfig.queryParams[u.queryParamName] = s.value);
|
|
3419
3452
|
for (var P in S.fields)
|
|
3420
3453
|
S.fields[P].tableColumn && (R = S.fields[P].tableColumn) != null && R.link && (S.fields[P].tableColumn.link = !1);
|
|
3421
3454
|
se.push(S), v.labels = {
|
|
@@ -3425,7 +3458,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3425
3458
|
var g;
|
|
3426
3459
|
let O = (g = se[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3427
3460
|
O = O == null ? void 0 : O.substring(O.lastIndexOf("/"));
|
|
3428
|
-
const F =
|
|
3461
|
+
const F = z.api + "/" + s.value + O, G = D.map((x) => x.id);
|
|
3429
3462
|
we.delete(`${F}/${G.join(",")}`).then(({ data: x }) => {
|
|
3430
3463
|
x.code === 0 && b.value.refresh();
|
|
3431
3464
|
});
|
|
@@ -3437,8 +3470,8 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3437
3470
|
var g;
|
|
3438
3471
|
let F = (g = se[f.value].api) == null ? void 0 : g.replace("/select", "");
|
|
3439
3472
|
F = F == null ? void 0 : F.substring(F.lastIndexOf("/"));
|
|
3440
|
-
const G =
|
|
3441
|
-
|
|
3473
|
+
const G = z.api + "/" + s.value + F;
|
|
3474
|
+
Oe(G, "DELETE", O.id).then(() => {
|
|
3442
3475
|
b.value.refresh();
|
|
3443
3476
|
});
|
|
3444
3477
|
}
|
|
@@ -3449,26 +3482,26 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3449
3482
|
function U() {
|
|
3450
3483
|
var S, P, R;
|
|
3451
3484
|
te.splice(0);
|
|
3452
|
-
const
|
|
3453
|
-
if (
|
|
3454
|
-
console.warn("Detail page model not exist:",
|
|
3485
|
+
const u = n.params.model;
|
|
3486
|
+
if (Ee.value[u] === void 0) {
|
|
3487
|
+
console.warn("Detail page model not exist:", u);
|
|
3455
3488
|
return;
|
|
3456
3489
|
} else
|
|
3457
|
-
console.debug("Detail page model found:",
|
|
3458
|
-
Ye(
|
|
3459
|
-
const r = Be(
|
|
3460
|
-
Object.assign(
|
|
3461
|
-
const v = (P = (S =
|
|
3490
|
+
console.debug("Detail page model found:", u, Ee.value[u]);
|
|
3491
|
+
Ye(z);
|
|
3492
|
+
const r = Be(Ee.value[u]);
|
|
3493
|
+
Object.assign(z, r), Z.value++, f.value = -1, V.value = "summary";
|
|
3494
|
+
const v = (P = (S = z.pageConfig) == null ? void 0 : S.detailPage) == null ? void 0 : P.tabs;
|
|
3462
3495
|
if (v)
|
|
3463
3496
|
for (let D of v) {
|
|
3464
|
-
const O = Be(
|
|
3497
|
+
const O = Be(Ee.value[D.modelKey]);
|
|
3465
3498
|
if (te.push(O), D.type === "table") {
|
|
3466
3499
|
O.tableConfig || (O.tableConfig = {});
|
|
3467
3500
|
let F = O.tableConfig;
|
|
3468
3501
|
if (F.display = {
|
|
3469
3502
|
pane: !1
|
|
3470
3503
|
}, D.modelRelationType === "associated")
|
|
3471
|
-
|
|
3504
|
+
Se(D, O, F);
|
|
3472
3505
|
else if (D.modelRelationType === "child") {
|
|
3473
3506
|
se.push({
|
|
3474
3507
|
fields: []
|
|
@@ -3491,19 +3524,19 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3491
3524
|
Me(
|
|
3492
3525
|
[
|
|
3493
3526
|
() => {
|
|
3494
|
-
var
|
|
3495
|
-
return (r = (
|
|
3527
|
+
var u, r;
|
|
3528
|
+
return (r = (u = z.pageConfig) == null ? void 0 : u.detailPage) == null ? void 0 : r.infoCard;
|
|
3496
3529
|
},
|
|
3497
3530
|
() => {
|
|
3498
|
-
var
|
|
3499
|
-
return (
|
|
3531
|
+
var u;
|
|
3532
|
+
return (u = i.value) == null ? void 0 : u.formData;
|
|
3500
3533
|
}
|
|
3501
3534
|
],
|
|
3502
|
-
(
|
|
3535
|
+
(u) => {
|
|
3503
3536
|
ct(() => {
|
|
3504
3537
|
var v, S, P;
|
|
3505
|
-
const r = (S = (v =
|
|
3506
|
-
r && (
|
|
3538
|
+
const r = (S = (v = z.pageConfig) == null ? void 0 : v.detailPage) == null ? void 0 : S.infoCard;
|
|
3539
|
+
r && (M.value = r.titleFieldProp ? i.value.formData[r.titleFieldProp] : "", K.value = r.subtitleFieldProp ? i.value.formData[r.subtitleFieldProp] : "", H.value = r.tagFieldProp ? i.value.formData[r.tagFieldProp] : "", (P = z.fields) == null || P.forEach((R) => {
|
|
3507
3540
|
var D, O;
|
|
3508
3541
|
if (R.prop === r.tagFieldProp) {
|
|
3509
3542
|
const F = (O = (D = R.tableColumn) == null ? void 0 : D.functions) == null ? void 0 : O.transformValue;
|
|
@@ -3517,49 +3550,49 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3517
3550
|
deep: !0
|
|
3518
3551
|
}
|
|
3519
3552
|
);
|
|
3520
|
-
function
|
|
3553
|
+
function C() {
|
|
3521
3554
|
a.value = !0;
|
|
3522
3555
|
}
|
|
3523
3556
|
function T() {
|
|
3524
3557
|
i.value.refresh();
|
|
3525
3558
|
}
|
|
3526
|
-
return (
|
|
3527
|
-
var m,
|
|
3559
|
+
return (u, r) => {
|
|
3560
|
+
var m, q, k, ee, N, ae;
|
|
3528
3561
|
const v = $("el-page-header"), S = $("el-button"), P = $("el-icon"), R = $("el-dropdown-item"), D = $("el-dropdown-menu"), O = $("el-dropdown"), F = $("el-tag"), G = $("el-tab-pane"), g = $("el-tabs"), x = $("el-dialog");
|
|
3529
|
-
return
|
|
3562
|
+
return d(), E(ne, null, [
|
|
3530
3563
|
_("div", za, [
|
|
3531
3564
|
h(v, {
|
|
3532
|
-
onClick: r[0] || (r[0] = (Q) =>
|
|
3565
|
+
onClick: r[0] || (r[0] = (Q) => w(t).back())
|
|
3533
3566
|
}, {
|
|
3534
3567
|
title: p(() => r[5] || (r[5] = [
|
|
3535
3568
|
_("span", null, null, -1)
|
|
3536
3569
|
])),
|
|
3537
3570
|
content: p(() => [
|
|
3538
|
-
_("span", qa, A(
|
|
3571
|
+
_("span", qa, A(w(oe)(z == null ? void 0 : z.name)), 1)
|
|
3539
3572
|
]),
|
|
3540
3573
|
_: 1
|
|
3541
3574
|
}),
|
|
3542
3575
|
_("div", null, [
|
|
3543
3576
|
h(S, {
|
|
3544
3577
|
type: "primary",
|
|
3545
|
-
onClick:
|
|
3578
|
+
onClick: C
|
|
3546
3579
|
}, {
|
|
3547
3580
|
default: p(() => [
|
|
3548
|
-
B(A(
|
|
3581
|
+
B(A(w(o)("common.table.edit")), 1)
|
|
3549
3582
|
]),
|
|
3550
3583
|
_: 1
|
|
3551
3584
|
}),
|
|
3552
|
-
((
|
|
3585
|
+
((q = (m = z.pageConfig) == null ? void 0 : m.detailPage) == null ? void 0 : q.operationButtons) !== void 0 ? (d(), I(O, { key: 0 }, {
|
|
3553
3586
|
dropdown: p(() => [
|
|
3554
3587
|
h(D, null, {
|
|
3555
3588
|
default: p(() => {
|
|
3556
3589
|
var Q, Y;
|
|
3557
3590
|
return [
|
|
3558
|
-
(
|
|
3591
|
+
(d(!0), E(ne, null, me((Y = (Q = z.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : Y.operationButtons, (re) => (d(), I(R, {
|
|
3559
3592
|
onClick: (le) => re.function(i.value.formData)
|
|
3560
3593
|
}, {
|
|
3561
3594
|
default: p(() => [
|
|
3562
|
-
B(A(
|
|
3595
|
+
B(A(w(oe)(re.label)), 1)
|
|
3563
3596
|
]),
|
|
3564
3597
|
_: 2
|
|
3565
3598
|
}, 1032, ["onClick"]))), 256))
|
|
@@ -3571,10 +3604,10 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3571
3604
|
default: p(() => [
|
|
3572
3605
|
h(S, { style: { margin: "0 10px" } }, {
|
|
3573
3606
|
default: p(() => [
|
|
3574
|
-
B(A(
|
|
3607
|
+
B(A(w(o)("common.basic.more")), 1),
|
|
3575
3608
|
h(P, { class: "el-icon--right" }, {
|
|
3576
3609
|
default: p(() => [
|
|
3577
|
-
h(
|
|
3610
|
+
h(w(Qt))
|
|
3578
3611
|
]),
|
|
3579
3612
|
_: 1
|
|
3580
3613
|
})
|
|
@@ -3591,7 +3624,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3591
3624
|
default: p(() => [
|
|
3592
3625
|
h(P, null, {
|
|
3593
3626
|
default: p(() => [
|
|
3594
|
-
h(
|
|
3627
|
+
h(w(xt))
|
|
3595
3628
|
]),
|
|
3596
3629
|
_: 1
|
|
3597
3630
|
})
|
|
@@ -3600,14 +3633,14 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3600
3633
|
})
|
|
3601
3634
|
])
|
|
3602
3635
|
]),
|
|
3603
|
-
(ee = (k =
|
|
3636
|
+
(ee = (k = z.pageConfig) == null ? void 0 : k.detailPage) != null && ee.infoCard ? (d(), E("div", Ba, [
|
|
3604
3637
|
_("div", Ha, [
|
|
3605
|
-
(
|
|
3638
|
+
(d(), I(it((N = z.pageConfig.detailPage.infoCard.icon) != null ? N : ""), { class: "icon" }))
|
|
3606
3639
|
]),
|
|
3607
3640
|
_("div", Wa, [
|
|
3608
3641
|
_("div", Ya, [
|
|
3609
|
-
_("h1", null, A(
|
|
3610
|
-
((ae = H.value) == null ? void 0 : ae.length) > 0 ? (
|
|
3642
|
+
_("h1", null, A(M.value), 1),
|
|
3643
|
+
((ae = H.value) == null ? void 0 : ae.length) > 0 ? (d(), I(F, {
|
|
3611
3644
|
key: 0,
|
|
3612
3645
|
size: "small"
|
|
3613
3646
|
}, {
|
|
@@ -3622,15 +3655,15 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3622
3655
|
])) : L("", !0),
|
|
3623
3656
|
_("div", Ja, [
|
|
3624
3657
|
h(g, {
|
|
3625
|
-
modelValue:
|
|
3626
|
-
"onUpdate:modelValue": r[1] || (r[1] = (Q) =>
|
|
3658
|
+
modelValue: V.value,
|
|
3659
|
+
"onUpdate:modelValue": r[1] || (r[1] = (Q) => V.value = Q),
|
|
3627
3660
|
onTabClick: ve
|
|
3628
3661
|
}, {
|
|
3629
3662
|
default: p(() => {
|
|
3630
3663
|
var Q, Y;
|
|
3631
3664
|
return [
|
|
3632
3665
|
h(G, {
|
|
3633
|
-
label:
|
|
3666
|
+
label: w(o)("common.basic.summary"),
|
|
3634
3667
|
name: "summary"
|
|
3635
3668
|
}, {
|
|
3636
3669
|
default: p(() => [
|
|
@@ -3640,19 +3673,19 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3640
3673
|
id: s.value,
|
|
3641
3674
|
sessionId: Z.value,
|
|
3642
3675
|
mode: l.value,
|
|
3643
|
-
model:
|
|
3676
|
+
model: z
|
|
3644
3677
|
}, null, 8, ["id", "sessionId", "mode", "model"])
|
|
3645
3678
|
]),
|
|
3646
3679
|
_: 1
|
|
3647
3680
|
}, 8, ["label"]),
|
|
3648
|
-
(
|
|
3649
|
-
label:
|
|
3681
|
+
(d(!0), E(ne, null, me((Y = (Q = z.pageConfig) == null ? void 0 : Q.detailPage) == null ? void 0 : Y.tabs, (re) => (d(), I(G, {
|
|
3682
|
+
label: w(oe)(re.name)
|
|
3650
3683
|
}, null, 8, ["label"]))), 256))
|
|
3651
3684
|
];
|
|
3652
3685
|
}),
|
|
3653
3686
|
_: 1
|
|
3654
3687
|
}, 8, ["modelValue"]),
|
|
3655
|
-
f.value >= 0 ? (
|
|
3688
|
+
f.value >= 0 ? (d(), I(pt, {
|
|
3656
3689
|
key: 0,
|
|
3657
3690
|
ref_key: "tabPaneTableRef",
|
|
3658
3691
|
ref: b,
|
|
@@ -3661,7 +3694,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3661
3694
|
h(x, {
|
|
3662
3695
|
modelValue: c.value,
|
|
3663
3696
|
"onUpdate:modelValue": r[3] || (r[3] = (Q) => c.value = Q),
|
|
3664
|
-
title:
|
|
3697
|
+
title: w(o)("common.table.select"),
|
|
3665
3698
|
width: "800px"
|
|
3666
3699
|
}, {
|
|
3667
3700
|
footer: p(() => [
|
|
@@ -3670,7 +3703,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3670
3703
|
onClick: r[2] || (r[2] = (Q) => c.value = !1)
|
|
3671
3704
|
}, {
|
|
3672
3705
|
default: p(() => [
|
|
3673
|
-
B(A(
|
|
3706
|
+
B(A(w(o)("common.basic.cancel")), 1)
|
|
3674
3707
|
]),
|
|
3675
3708
|
_: 1
|
|
3676
3709
|
}),
|
|
@@ -3679,18 +3712,18 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3679
3712
|
onClick: W
|
|
3680
3713
|
}, {
|
|
3681
3714
|
default: p(() => [
|
|
3682
|
-
B(A(
|
|
3715
|
+
B(A(w(o)("common.basic.save")), 1)
|
|
3683
3716
|
]),
|
|
3684
3717
|
_: 1
|
|
3685
3718
|
})
|
|
3686
3719
|
])
|
|
3687
3720
|
]),
|
|
3688
3721
|
default: p(() => [
|
|
3689
|
-
f.value >= 0 ? (
|
|
3722
|
+
f.value >= 0 ? (d(), I(pt, {
|
|
3690
3723
|
key: 0,
|
|
3691
3724
|
ref_key: "selectTableRef",
|
|
3692
|
-
ref:
|
|
3693
|
-
model:
|
|
3725
|
+
ref: y,
|
|
3726
|
+
model: w(se)[f.value]
|
|
3694
3727
|
}, null, 8, ["model"])) : L("", !0)
|
|
3695
3728
|
]),
|
|
3696
3729
|
_: 1
|
|
@@ -3701,13 +3734,13 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3701
3734
|
mode: "update",
|
|
3702
3735
|
visible: a.value,
|
|
3703
3736
|
"onUpdate:visible": r[4] || (r[4] = (Q) => a.value = Q),
|
|
3704
|
-
model:
|
|
3737
|
+
model: z,
|
|
3705
3738
|
afterSubmitFunc: T
|
|
3706
3739
|
}, null, 8, ["id", "visible", "model"])
|
|
3707
3740
|
], 64);
|
|
3708
3741
|
};
|
|
3709
3742
|
}
|
|
3710
|
-
}), Xa = /* @__PURE__ */
|
|
3743
|
+
}), Xa = /* @__PURE__ */ ke(Qa, [["__scopeId", "data-v-5fe1d5fa"]]), Za = { class: "page-title" }, er = /* @__PURE__ */ Ce({
|
|
3711
3744
|
__name: "TablePage",
|
|
3712
3745
|
setup(e) {
|
|
3713
3746
|
const o = tt(), n = ft(), t = he(), s = he([]), a = fe({
|
|
@@ -3715,49 +3748,49 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3715
3748
|
fields: []
|
|
3716
3749
|
}), c = fe(ot({}, a));
|
|
3717
3750
|
function l() {
|
|
3718
|
-
var f, b,
|
|
3719
|
-
s.value = [], a.pageConfig && ((b = (f = a.pageConfig) == null ? void 0 : f.tablePage) != null && b.tabViewAttributes) && (s.value = (
|
|
3751
|
+
var f, b, y, V, M;
|
|
3752
|
+
s.value = [], a.pageConfig && ((b = (f = a.pageConfig) == null ? void 0 : f.tablePage) != null && b.tabViewAttributes) && (s.value = (M = (V = (y = a.pageConfig) == null ? void 0 : y.tablePage) == null ? void 0 : V.tabViewAttributes) == null ? void 0 : M.map((K) => {
|
|
3720
3753
|
const H = We(K);
|
|
3721
3754
|
let Z;
|
|
3722
|
-
H.modelKey &&
|
|
3723
|
-
const
|
|
3755
|
+
H.modelKey && Ee.value[H.modelKey] ? Z = Be(Ee.value[H.modelKey]) : Z = Be(a), H.queryParams && (Z.tableConfig || (Z.tableConfig = {}), Z.tableConfig.queryParams = H.queryParams), H.fields && (Z.fields = H.fields), H.modelKey && (Z.breadcrumbRoute = a.route);
|
|
3756
|
+
const z = H.icon;
|
|
3724
3757
|
return {
|
|
3725
3758
|
key: H.key,
|
|
3726
3759
|
label: H.label,
|
|
3727
|
-
icon:
|
|
3760
|
+
icon: z ? Te(z) : void 0,
|
|
3728
3761
|
disabled: H.disabled,
|
|
3729
3762
|
model: Z
|
|
3730
3763
|
};
|
|
3731
3764
|
}));
|
|
3732
3765
|
}
|
|
3733
3766
|
function i() {
|
|
3734
|
-
var
|
|
3767
|
+
var y, V;
|
|
3735
3768
|
const f = o.params.model;
|
|
3736
|
-
if (
|
|
3737
|
-
console.warn("TablePage.init: model not found", f,
|
|
3769
|
+
if (Ee.value[f] === void 0) {
|
|
3770
|
+
console.warn("TablePage.init: model not found", f, Ee.value);
|
|
3738
3771
|
return;
|
|
3739
3772
|
}
|
|
3740
3773
|
Ye(a);
|
|
3741
|
-
const b = Be(
|
|
3742
|
-
Object.assign(a, b), (
|
|
3774
|
+
const b = Be(Ee.value[f]);
|
|
3775
|
+
Object.assign(a, b), (V = (y = a.pageConfig) == null ? void 0 : y.tablePage) != null && V.tabViewAttributes || Object.assign(c, a), l();
|
|
3743
3776
|
}
|
|
3744
3777
|
return Me([
|
|
3745
3778
|
() => n.currentRoute.value,
|
|
3746
|
-
|
|
3779
|
+
Ee
|
|
3747
3780
|
], () => {
|
|
3748
3781
|
i();
|
|
3749
3782
|
}, {
|
|
3750
3783
|
immediate: !0,
|
|
3751
3784
|
deep: !0
|
|
3752
3785
|
}), (f, b) => {
|
|
3753
|
-
const
|
|
3754
|
-
return
|
|
3755
|
-
_("h1", Za, A(
|
|
3756
|
-
h(
|
|
3786
|
+
const y = $("el-scrollbar");
|
|
3787
|
+
return d(), E(ne, null, [
|
|
3788
|
+
_("h1", Za, A(w(oe)(a == null ? void 0 : a.name)), 1),
|
|
3789
|
+
h(y, null, {
|
|
3757
3790
|
default: p(() => {
|
|
3758
|
-
var
|
|
3791
|
+
var V, M;
|
|
3759
3792
|
return [
|
|
3760
|
-
(
|
|
3793
|
+
(M = (V = a.pageConfig) == null ? void 0 : V.tablePage) != null && M.tabViewAttributes ? (d(), I(wo, {
|
|
3761
3794
|
key: 0,
|
|
3762
3795
|
class: "tabs-wrapper",
|
|
3763
3796
|
cards: s.value,
|
|
@@ -3776,7 +3809,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3776
3809
|
], 64);
|
|
3777
3810
|
};
|
|
3778
3811
|
}
|
|
3779
|
-
}), tr = /* @__PURE__ */
|
|
3812
|
+
}), tr = /* @__PURE__ */ ke(er, [["__scopeId", "data-v-4c0b2381"]]), or = [
|
|
3780
3813
|
Ko,
|
|
3781
3814
|
ia,
|
|
3782
3815
|
eo,
|
|
@@ -3787,7 +3820,7 @@ const Da = { render: Aa }, Ra = { class: "toolbar" }, Fa = { class: "tool-button
|
|
|
3787
3820
|
pt,
|
|
3788
3821
|
Xa,
|
|
3789
3822
|
tr
|
|
3790
|
-
],
|
|
3823
|
+
], hr = (e) => {
|
|
3791
3824
|
e && e.component && or.forEach((o) => {
|
|
3792
3825
|
e.component(o.__name, o);
|
|
3793
3826
|
});
|
|
@@ -3803,17 +3836,19 @@ export {
|
|
|
3803
3836
|
wo as TabCard,
|
|
3804
3837
|
tr as TablePage,
|
|
3805
3838
|
pt as TableView,
|
|
3839
|
+
mr as VcPagination,
|
|
3806
3840
|
hs as activeMenuMapping,
|
|
3841
|
+
Ye as clearObject,
|
|
3807
3842
|
oe as convertI18n,
|
|
3808
|
-
|
|
3843
|
+
dr as createFile,
|
|
3809
3844
|
tn as deepMerge,
|
|
3810
|
-
|
|
3845
|
+
hr as default,
|
|
3811
3846
|
Qo as en,
|
|
3812
3847
|
Xt as getPassportOrigin,
|
|
3813
3848
|
pr as getUrlParam,
|
|
3814
|
-
|
|
3849
|
+
ut as i18n,
|
|
3815
3850
|
fr as menuList,
|
|
3816
|
-
|
|
3851
|
+
Ee as modelList,
|
|
3817
3852
|
Pt as pinia,
|
|
3818
3853
|
Rt as routes,
|
|
3819
3854
|
bo as useConsoleStore,
|