@das-fed/web 6.4.0-hot.35 → 6.4.0-hot.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-DeKFYMKY.js +10 -0
- package/{packages/main-app-framework/index-gbopgvrS.js → index-DgV7dEtR.js} +4 -3
- package/index-DgV7dEtR.js.gz +0 -0
- package/{index-pa8JpqiR.js → index-g3DWTus2.js} +5711 -5158
- package/index-g3DWTus2.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +199 -114
- package/packages/layout/index.js.gz +0 -0
- package/{index-CqHbFeJ4.js → packages/main-app-framework/index-CGXiI8Px.js} +4 -3
- package/packages/main-app-framework/index-CGXiI8Px.js.gz +0 -0
- package/packages/main-app-framework/index-CX-Rv9Hu.js +10 -0
- package/packages/main-app-framework/{index-PIgnnyL3.js → index-iFGtZyh-.js} +3434 -2985
- package/packages/main-app-framework/index-iFGtZyh-.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +111 -97
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/remote-control/apis.d.ts +2 -0
- package/types/main-app-framework/business/remote-control/utils.d.ts +7 -0
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +1 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
- package/types/main-app-framework/i18n/index.d.ts +20 -0
- package/types/main-app-framework/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +6 -4
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BR2K2L20.js +0 -10
- package/index-CqHbFeJ4.js.gz +0 -0
- package/index-pa8JpqiR.js.gz +0 -0
- package/packages/main-app-framework/index-D-yLFNAt.js +0 -10
- package/packages/main-app-framework/index-PIgnnyL3.js.gz +0 -0
- package/packages/main-app-framework/index-gbopgvrS.js.gz +0 -0
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-g3DWTus2.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-hot.
|
|
3
|
+
"version": "6.4.0-hot.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-hot.
|
|
8
|
-
"@das-fed/utils": "6.4.0-hot.
|
|
9
|
-
"@das-fed/web": "6.4.0-hot.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-hot.
|
|
7
|
+
"@das-fed/ui": "6.4.0-hot.37",
|
|
8
|
+
"@das-fed/utils": "6.4.0-hot.37",
|
|
9
|
+
"@das-fed/web": "6.4.0-hot.37",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-hot.37",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/cli": "6.4.0-hot.
|
|
22
|
+
"@das-fed/cli": "6.4.0-hot.37",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
package/packages/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as K, ref as O, defineComponent as z, computed as u, watch as Z,
|
|
2
|
+
import { reactive as K, ref as O, defineComponent as z, computed as u, watch as Z, createElementBlock as I, openBlock as g, Fragment as J, createBlock as V, createCommentVNode as b, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as U, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeStyle as pe, normalizeClass as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
|
|
3
3
|
import { useRouter as Le, useRoute as me } from "vue-router";
|
|
4
4
|
import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
5
|
import { createCeNav as Ie, createCeTabs as ke, createCeMenu as Te } from "@das-fed/web-components/das-web-app";
|
|
@@ -310,9 +310,9 @@ const h = K({
|
|
|
310
310
|
}, T = async () => {
|
|
311
311
|
var o, m;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const s = r.value.find((
|
|
313
|
+
const s = r.value.find((C) => C.meta.isShow);
|
|
314
314
|
s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
|
-
const a = r.value.find((
|
|
315
|
+
const a = r.value.find((C) => C.path === d.path);
|
|
316
316
|
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await oe(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let S = 0;
|
|
@@ -332,10 +332,43 @@ const h = K({
|
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
333
|
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (s, a) => (g(), I(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
}), (s, a) => (g(), I(
|
|
336
|
+
J,
|
|
337
|
+
null,
|
|
338
|
+
[
|
|
339
|
+
s.needTransition ? (g(), V(
|
|
340
|
+
he,
|
|
341
|
+
ee(ne({ key: 0 }, n.value)),
|
|
342
|
+
{
|
|
343
|
+
default: U(() => [
|
|
344
|
+
(g(!0), I(
|
|
345
|
+
J,
|
|
346
|
+
null,
|
|
347
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
348
|
+
class: "das-iframe-router-view",
|
|
349
|
+
key: m.key,
|
|
350
|
+
name: o
|
|
351
|
+
}, [
|
|
352
|
+
(g(), V(N(m.componentInstance), {
|
|
353
|
+
key: m.key
|
|
354
|
+
}))
|
|
355
|
+
], 8, Ve)), [
|
|
356
|
+
[M, m.componentInstance && o === w(d).path]
|
|
357
|
+
])),
|
|
358
|
+
128
|
|
359
|
+
/* KEYED_FRAGMENT */
|
|
360
|
+
))
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
/* STABLE */
|
|
364
|
+
},
|
|
365
|
+
16
|
|
366
|
+
/* FULL_PROPS */
|
|
367
|
+
)) : b("v-if", !0),
|
|
368
|
+
s.needTransition ? b("v-if", !0) : (g(!0), I(
|
|
369
|
+
J,
|
|
370
|
+
{ key: 1 },
|
|
371
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
339
372
|
class: "das-iframe-router-view",
|
|
340
373
|
key: m.key,
|
|
341
374
|
name: o
|
|
@@ -343,24 +376,16 @@ const h = K({
|
|
|
343
376
|
(g(), V(N(m.componentInstance), {
|
|
344
377
|
key: m.key
|
|
345
378
|
}))
|
|
346
|
-
], 8,
|
|
379
|
+
], 8, Pe)), [
|
|
347
380
|
[M, m.componentInstance && o === w(d).path]
|
|
348
|
-
])),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}, [
|
|
357
|
-
(g(), V(N(m.componentInstance), {
|
|
358
|
-
key: m.key
|
|
359
|
-
}))
|
|
360
|
-
], 8, Pe)), [
|
|
361
|
-
[M, m.componentInstance && o === w(d).path]
|
|
362
|
-
])), 128))
|
|
363
|
-
], 64));
|
|
381
|
+
])),
|
|
382
|
+
128
|
|
383
|
+
/* KEYED_FRAGMENT */
|
|
384
|
+
))
|
|
385
|
+
],
|
|
386
|
+
64
|
|
387
|
+
/* STABLE_FRAGMENT */
|
|
388
|
+
));
|
|
364
389
|
}
|
|
365
390
|
}), fe = (e, t) => {
|
|
366
391
|
const n = e.__vccOpts || e;
|
|
@@ -408,14 +433,14 @@ const h = K({
|
|
|
408
433
|
})), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
|
|
409
434
|
Z(
|
|
410
435
|
() => [n.meta, n.query],
|
|
411
|
-
([
|
|
412
|
-
const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout:
|
|
436
|
+
([_, j]) => {
|
|
437
|
+
const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: L = {} } = _, {
|
|
413
438
|
showLayout: x = !0,
|
|
414
439
|
showAside: E = !0,
|
|
415
440
|
showTabs: se = !0,
|
|
416
441
|
app: Xe
|
|
417
442
|
} = j;
|
|
418
|
-
Ce(
|
|
443
|
+
Ce(L);
|
|
419
444
|
let ae = !0, q = !0, G = !0;
|
|
420
445
|
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (p === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
|
|
421
446
|
}
|
|
@@ -425,86 +450,133 @@ const h = K({
|
|
|
425
450
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
426
451
|
...t.transitionConfig || {}
|
|
427
452
|
}));
|
|
428
|
-
let
|
|
429
|
-
const Q = (
|
|
453
|
+
let C = /* @__PURE__ */ new Map();
|
|
454
|
+
const Q = (_, j) => {
|
|
430
455
|
let R;
|
|
431
|
-
return
|
|
456
|
+
return C.has(j) ? R = C.get(j) : (R = {
|
|
432
457
|
name: j,
|
|
433
458
|
render() {
|
|
434
|
-
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(
|
|
459
|
+
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(_)]);
|
|
435
460
|
}
|
|
436
|
-
},
|
|
461
|
+
}, C.set(j, R)), Y(R);
|
|
437
462
|
}, B = u(() => H.visible.value);
|
|
438
|
-
return (
|
|
463
|
+
return (_, j) => {
|
|
439
464
|
const R = ge("router-view");
|
|
440
465
|
return g(), I("div", Me, [
|
|
441
|
-
D($(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
466
|
+
D($(
|
|
467
|
+
"div",
|
|
468
|
+
{
|
|
469
|
+
class: ye(["das-web-app-overlay", S.value]),
|
|
470
|
+
style: pe(s.value)
|
|
471
|
+
},
|
|
472
|
+
null,
|
|
473
|
+
6
|
|
474
|
+
/* CLASS, STYLE */
|
|
475
|
+
), [
|
|
445
476
|
[M, B.value]
|
|
446
477
|
]),
|
|
447
|
-
f.value ? D((g(), I(
|
|
448
|
-
|
|
449
|
-
|
|
478
|
+
f.value ? D((g(), I(
|
|
479
|
+
"div",
|
|
480
|
+
je,
|
|
481
|
+
[
|
|
482
|
+
F(_.$slots, "header", {}, void 0, !0)
|
|
483
|
+
],
|
|
484
|
+
512
|
|
485
|
+
/* NEED_PATCH */
|
|
486
|
+
)), [
|
|
450
487
|
[M, B.value]
|
|
451
|
-
]) :
|
|
488
|
+
]) : b("v-if", !0),
|
|
452
489
|
$("div", xe, [
|
|
453
|
-
y.value ? D((g(), I(
|
|
454
|
-
|
|
455
|
-
|
|
490
|
+
y.value ? D((g(), I(
|
|
491
|
+
"div",
|
|
492
|
+
$e,
|
|
493
|
+
[
|
|
494
|
+
F(_.$slots, "aside", {}, void 0, !0)
|
|
495
|
+
],
|
|
496
|
+
512
|
|
497
|
+
/* NEED_PATCH */
|
|
498
|
+
)), [
|
|
456
499
|
[M, B.value]
|
|
457
|
-
]) :
|
|
500
|
+
]) : b("v-if", !0),
|
|
458
501
|
$("div", Be, [
|
|
459
|
-
i.value ? D((g(), I(
|
|
460
|
-
|
|
461
|
-
|
|
502
|
+
i.value ? D((g(), I(
|
|
503
|
+
"div",
|
|
504
|
+
He,
|
|
505
|
+
[
|
|
506
|
+
F(_.$slots, "tab", {}, void 0, !0)
|
|
507
|
+
],
|
|
508
|
+
512
|
|
509
|
+
/* NEED_PATCH */
|
|
510
|
+
)), [
|
|
462
511
|
[M, B.value]
|
|
463
|
-
]) :
|
|
512
|
+
]) : b("v-if", !0),
|
|
464
513
|
$("div", Fe, [
|
|
465
|
-
D($(
|
|
466
|
-
|
|
467
|
-
|
|
514
|
+
D($(
|
|
515
|
+
"div",
|
|
516
|
+
Ne,
|
|
517
|
+
[
|
|
518
|
+
F(_.$slots, "banner", {}, void 0, !0)
|
|
519
|
+
],
|
|
520
|
+
512
|
|
521
|
+
/* NEED_PATCH */
|
|
522
|
+
), [
|
|
468
523
|
[M, B.value]
|
|
469
524
|
]),
|
|
470
525
|
$("div", Oe, [
|
|
471
526
|
D((g(), I("div", {
|
|
472
|
-
key:
|
|
527
|
+
key: _.pageKey,
|
|
473
528
|
style: { width: "100%", height: "100%" }
|
|
474
529
|
}, [
|
|
475
|
-
F(
|
|
476
|
-
b
|
|
530
|
+
F(_.$slots, "router-view", {}, () => [
|
|
531
|
+
b(" 有动画 "),
|
|
532
|
+
_.needTransition ? (g(), V(R, { key: 0 }, {
|
|
477
533
|
default: U(({ Component: c }) => [
|
|
478
|
-
X(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
534
|
+
X(
|
|
535
|
+
ie,
|
|
536
|
+
ee(le(m.value)),
|
|
537
|
+
{
|
|
538
|
+
default: U(() => {
|
|
539
|
+
var p;
|
|
540
|
+
return [
|
|
541
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
542
|
+
key: 0,
|
|
543
|
+
exclude: a.value
|
|
544
|
+
}, [
|
|
545
|
+
o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
|
|
546
|
+
key: w(n).path
|
|
547
|
+
})) : b("v-if", !0)
|
|
548
|
+
], 1032, ["exclude"])) : b("v-if", !0)
|
|
549
|
+
];
|
|
550
|
+
}),
|
|
551
|
+
_: 2
|
|
552
|
+
/* DYNAMIC */
|
|
553
|
+
},
|
|
554
|
+
1040
|
|
555
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
556
|
+
),
|
|
557
|
+
X(
|
|
558
|
+
ie,
|
|
559
|
+
ee(le(m.value)),
|
|
560
|
+
{
|
|
561
|
+
default: U(() => [
|
|
562
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
|
|
563
|
+
(g(), V(N(c), {
|
|
487
564
|
key: w(n).path
|
|
488
|
-
}))
|
|
489
|
-
]
|
|
490
|
-
]
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
(g(), V(N(c), {
|
|
498
|
-
key: w(n).path
|
|
499
|
-
}))
|
|
500
|
-
])) : C("", !0)
|
|
501
|
-
]),
|
|
502
|
-
_: 2
|
|
503
|
-
}, 1040)
|
|
565
|
+
}))
|
|
566
|
+
])) : b("v-if", !0)
|
|
567
|
+
]),
|
|
568
|
+
_: 2
|
|
569
|
+
/* DYNAMIC */
|
|
570
|
+
},
|
|
571
|
+
1040
|
|
572
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
573
|
+
)
|
|
504
574
|
]),
|
|
505
575
|
_: 1
|
|
506
|
-
|
|
507
|
-
|
|
576
|
+
/* STABLE */
|
|
577
|
+
})) : b("v-if", !0),
|
|
578
|
+
b(" 无动画 "),
|
|
579
|
+
_.needTransition ? b("v-if", !0) : (g(), V(R, { key: 1 }, {
|
|
508
580
|
default: U(({ Component: c }) => [
|
|
509
581
|
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
510
582
|
key: 0,
|
|
@@ -512,32 +584,45 @@ const h = K({
|
|
|
512
584
|
}, [
|
|
513
585
|
o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
|
|
514
586
|
key: w(n).path
|
|
515
|
-
})) :
|
|
516
|
-
], 1032, ["exclude"])) :
|
|
587
|
+
})) : b("v-if", !0)
|
|
588
|
+
], 1032, ["exclude"])) : b("v-if", !0),
|
|
517
589
|
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
|
|
518
590
|
(g(), V(N(c), {
|
|
519
591
|
key: w(n).path
|
|
520
592
|
}))
|
|
521
|
-
])) :
|
|
593
|
+
])) : b("v-if", !0)
|
|
522
594
|
]),
|
|
523
595
|
_: 1
|
|
596
|
+
/* STABLE */
|
|
524
597
|
})),
|
|
525
|
-
D($(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
598
|
+
D($(
|
|
599
|
+
"div",
|
|
600
|
+
Ke,
|
|
601
|
+
[
|
|
602
|
+
X(De, {
|
|
603
|
+
exclude: a.value,
|
|
604
|
+
transitionConfig: m.value,
|
|
605
|
+
needTransition: _.needTransition
|
|
606
|
+
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
|
+
],
|
|
608
|
+
512
|
|
609
|
+
/* NEED_PATCH */
|
|
610
|
+
), [
|
|
532
611
|
[M, w(n).meta.isIframe]
|
|
533
612
|
])
|
|
534
613
|
], !0)
|
|
535
614
|
])), [
|
|
536
615
|
[M, P.value]
|
|
537
616
|
]),
|
|
538
|
-
D($(
|
|
539
|
-
|
|
540
|
-
|
|
617
|
+
D($(
|
|
618
|
+
"div",
|
|
619
|
+
ze,
|
|
620
|
+
[
|
|
621
|
+
F(_.$slots, "default", {}, void 0, !0)
|
|
622
|
+
],
|
|
623
|
+
512
|
|
624
|
+
/* NEED_PATCH */
|
|
625
|
+
), [
|
|
541
626
|
[M, !P.value]
|
|
542
627
|
])
|
|
543
628
|
])
|
|
@@ -551,11 +636,11 @@ const h = K({
|
|
|
551
636
|
__name: "das-web-nav",
|
|
552
637
|
setup(e) {
|
|
553
638
|
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
|
|
554
|
-
var c, p,
|
|
639
|
+
var c, p, L, x;
|
|
555
640
|
return {
|
|
556
641
|
showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
|
|
557
642
|
showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
|
|
558
|
-
showSearch: ((
|
|
643
|
+
showSearch: ((L = t.config) == null ? void 0 : L.showSearch) ?? !0,
|
|
559
644
|
showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
|
|
560
645
|
subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
|
|
561
646
|
};
|
|
@@ -572,24 +657,24 @@ const h = K({
|
|
|
572
657
|
},
|
|
573
658
|
...t.projectConfig
|
|
574
659
|
})), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
|
|
575
|
-
const p = c.detail[0],
|
|
576
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
660
|
+
const p = c.detail[0], L = r.value.find((E) => p.value === E.value);
|
|
661
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
577
662
|
}, a = async (c) => {
|
|
578
|
-
const p = c.detail[0],
|
|
579
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
663
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
664
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
580
665
|
}, o = async (c) => {
|
|
581
|
-
const p = c.detail[0],
|
|
582
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
666
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
667
|
+
await v.nav.triggerEventListener("onItemRemove", L) && v.nav.removeItem(L.value);
|
|
583
668
|
}, m = async (c) => {
|
|
584
|
-
const [p,
|
|
585
|
-
!p || !await v.nav.triggerEventListener("onProjectChange",
|
|
586
|
-
},
|
|
669
|
+
const [p, L] = c.detail;
|
|
670
|
+
!p || !await v.nav.triggerEventListener("onProjectChange", L) || v.nav.setActiveProject(L);
|
|
671
|
+
}, C = (c) => {
|
|
587
672
|
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
588
673
|
}, Q = (c) => {
|
|
589
674
|
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
590
675
|
}, B = (c) => {
|
|
591
676
|
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
592
|
-
},
|
|
677
|
+
}, _ = (c) => {
|
|
593
678
|
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
594
679
|
}, j = () => {
|
|
595
680
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
@@ -611,14 +696,14 @@ const h = K({
|
|
|
611
696
|
searchConfig: S.value,
|
|
612
697
|
projectTreeConfig: P.value,
|
|
613
698
|
userInfoConfig: T.value,
|
|
614
|
-
"on:userCommandHandle":
|
|
699
|
+
"on:userCommandHandle": C,
|
|
615
700
|
"on:changeInnerPage": s,
|
|
616
701
|
"on:handleTabClick": a,
|
|
617
702
|
"on:handleTabDelete": o,
|
|
618
703
|
"on:changeTreeHandle": m,
|
|
619
704
|
"on:searchToPage": Q,
|
|
620
705
|
"on:clearSearchList": B,
|
|
621
|
-
"on:deleteSearchItem":
|
|
706
|
+
"on:deleteSearchItem": _,
|
|
622
707
|
"on:changeEnterpriseHandle": j,
|
|
623
708
|
"on:fullScreen": R
|
|
624
709
|
}, null, 40, qe));
|
|
@@ -630,7 +715,7 @@ const h = K({
|
|
|
630
715
|
},
|
|
631
716
|
setup(e) {
|
|
632
717
|
const { menu: t } = H, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
633
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
718
|
+
const a = s.detail[0], o = Ee(r.value).find((C) => a === C.id);
|
|
634
719
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
635
720
|
}, S = (s) => {
|
|
636
721
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
@@ -646,7 +731,7 @@ const h = K({
|
|
|
646
731
|
}, d.value, {
|
|
647
732
|
onChange: T,
|
|
648
733
|
"on:toggleCollapse": S
|
|
649
|
-
}), null, 16, Ge)) :
|
|
734
|
+
}), null, 16, Ge)) : b("v-if", !0);
|
|
650
735
|
}
|
|
651
736
|
}), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
|
|
652
737
|
__name: "das-web-tabs",
|
|
@@ -659,10 +744,10 @@ const h = K({
|
|
|
659
744
|
key: s.value,
|
|
660
745
|
tab: s.label
|
|
661
746
|
}))), f = u(() => t.activeItem || ""), y = async (s) => {
|
|
662
|
-
const a = s.detail[0], o = r.value.find((
|
|
747
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
663
748
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
664
749
|
}, i = async (s) => {
|
|
665
|
-
const a = s.detail[0], o = r.value.find((
|
|
750
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
666
751
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
667
752
|
}, P = async (s) => {
|
|
668
753
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -682,7 +767,7 @@ const h = K({
|
|
|
682
767
|
"on:menuClick": P,
|
|
683
768
|
"on:pageRefresh": T,
|
|
684
769
|
"on:toggleFullScreen": S
|
|
685
|
-
}), null, 16, Je)) :
|
|
770
|
+
}), null, 16, Je)) : b("v-if", !0);
|
|
686
771
|
}
|
|
687
772
|
});
|
|
688
773
|
O("@das-fed/web");
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as p, withDirectives as v,
|
|
1
|
+
import { defineComponent as k, computed as p, withDirectives as v, createBlock as U, openBlock as C, unref as c, withCtx as A, createVNode as S, vShow as I } from "vue";
|
|
2
2
|
import { layoutData as j } from "@das-fed/web/packages/layout/index";
|
|
3
3
|
import { t as D } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasAppContainer as $ } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-iFGtZyh-.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
@@ -59,7 +59,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
59
59
|
window.open(e, "_blank");
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
return (o, r) => v((
|
|
62
|
+
return (o, r) => v((C(), U(c(x), {
|
|
63
63
|
full: "",
|
|
64
64
|
spinning: c(q)
|
|
65
65
|
}, {
|
|
@@ -71,6 +71,7 @@ const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/
|
|
|
71
71
|
}, null, 8, ["theme", "appCategorys"])
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
+
/* STABLE */
|
|
74
75
|
}, 8, ["spinning"])), [
|
|
75
76
|
[I, !h.value]
|
|
76
77
|
]);
|
|
Binary file
|