@das-fed/web 7.0.2-beta.1 → 7.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-CHIJhK9A.js → index-C_grfTQZ.js} +1 -1
- package/{index-DeLwfYaO.js → index-Daq7bCIL.js} +889 -884
- package/index-Daq7bCIL.js.gz +0 -0
- package/{packages/main-app-framework/index-4nULXb-V.js → index-fgIF10qZ.js} +33 -32
- package/index-fgIF10qZ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-C933IWvF.js → index-B33l8Tr8.js} +511 -506
- package/packages/main-app-framework/index-B33l8Tr8.js.gz +0 -0
- package/packages/main-app-framework/{index-PcZYYf9m.js → index-D4IiPdL0.js} +1 -1
- package/{index-s2j-cJxA.js → packages/main-app-framework/index-DNhkfPVq.js} +33 -32
- package/packages/main-app-framework/index-DNhkfPVq.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-DeLwfYaO.js.gz +0 -0
- package/index-s2j-cJxA.js.gz +0 -0
- package/packages/main-app-framework/index-4nULXb-V.js.gz +0 -0
- package/packages/main-app-framework/index-C933IWvF.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as Z, createApp as tr, reactive as Xe, computed as vA, defineComponent as iA, watch as sA, createElementBlock as dA, openBlock as G, Fragment as ee, createBlock as tA, createCommentVNode as AA, TransitionGroup as Pr, normalizeProps as _f, mergeProps as x9, withCtx as Y, renderList as he, withDirectives as EA, resolveDynamicComponent as Ye, vShow as YA, unref as V, nextTick as ae, resolveComponent as ur, createElementVNode as B, normalizeStyle as $f, normalizeClass as i7, renderSlot as LA, createVNode as M, Transition as S7, guardReactiveProps as K7, KeepAlive as C7, h as RA, onBeforeMount as dr, onMounted as de, onUnmounted as Tv, getCurrentScope as zr, onScopeDispose as Xr, getCurrentInstance as cr, onActivated as br, createTextVNode as mA, toDisplayString as PA, render as c9, isRef as ne, onBeforeUnmount as O9, useCssVars as ar, withModifiers as oA, toRefs as ir, createSlots as sr } from "vue";
|
|
2
2
|
import { initTheme as qr, setThemeRule as Hr, getVar as _7 } from "@das-fed/web/packages/theme/index";
|
|
3
|
-
import { initI18n as pr, i18n as fA, t as
|
|
3
|
+
import { initI18n as pr, i18n as fA, t as k, currentLang as D9, setLang as mr, setI18nRule as lr } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as s7, DasWebTabs as Lv, DasWebMenu as yv, DasWebNav as wv, layout as S, layoutData as Wv } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as xr } from "pinia";
|
|
6
6
|
import Or from "pinia-plugin-persistedstate";
|
|
@@ -95,7 +95,7 @@ const qt = (f) => {
|
|
|
95
95
|
return v.keepAlive = v.keepAlive ?? (A == null ? void 0 : A.keepAlive) ?? !0, { ...e, meta: v };
|
|
96
96
|
}), lb = (f) => {
|
|
97
97
|
f || (f = {});
|
|
98
|
-
const A =
|
|
98
|
+
const A = Z(!0);
|
|
99
99
|
Promise.all([qr(f), pr(f)]).then(() => {
|
|
100
100
|
A.value = !1;
|
|
101
101
|
});
|
|
@@ -225,7 +225,7 @@ const qt = (f) => {
|
|
|
225
225
|
操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
|
|
226
226
|
}, Ge = Xe({}), Ue = Xe({}), b9 = Xe({});
|
|
227
227
|
var Zv;
|
|
228
|
-
const pt = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (Zv = navigator.language) != null && Zv.toLowerCase().startsWith("zh") ? "zh-CN" : "en", s9 =
|
|
228
|
+
const pt = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (Zv = navigator.language) != null && Zv.toLowerCase().startsWith("zh") ? "zh-CN" : "en", s9 = Z(pt), mt = "dasI18n", xb = (f = {}, A) => {
|
|
229
229
|
const e = A === "global", v = !e, r = {};
|
|
230
230
|
for (const n in f)
|
|
231
231
|
for (const P in f[n])
|
|
@@ -264,10 +264,10 @@ const pt = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("curre
|
|
|
264
264
|
}), P;
|
|
265
265
|
}), Ot = xt, Db = (f, ...A) => Ot(f, ...A).value, Vb = (f) => {
|
|
266
266
|
sessionStorage.setItem("currentLang", f), s9.value = f;
|
|
267
|
-
}, Nb = () => s9, Je =
|
|
267
|
+
}, Nb = () => s9, Je = Z("light"), d9 = Z({
|
|
268
268
|
light: {},
|
|
269
269
|
dark: {}
|
|
270
|
-
}), z9 =
|
|
270
|
+
}), z9 = Z({
|
|
271
271
|
light: {},
|
|
272
272
|
dark: {}
|
|
273
273
|
}), Dt = "dasTheme", a9 = "das-theme", Vt = (f) => {
|
|
@@ -569,7 +569,7 @@ const f3 = (f, A) => {
|
|
|
569
569
|
tab: FA,
|
|
570
570
|
overlay: t7,
|
|
571
571
|
iframeView: X9,
|
|
572
|
-
visible:
|
|
572
|
+
visible: Z(!0)
|
|
573
573
|
}, zA = {
|
|
574
574
|
nav: v3,
|
|
575
575
|
menu: n3,
|
|
@@ -595,7 +595,7 @@ const f3 = (f, A) => {
|
|
|
595
595
|
...A.transitionConfig || {}
|
|
596
596
|
};
|
|
597
597
|
return b;
|
|
598
|
-
}), v = Te(), r = $e(), n =
|
|
598
|
+
}), v = Te(), r = $e(), n = Z([]), P = vA(() => n.value.filter((X) => {
|
|
599
599
|
var b;
|
|
600
600
|
return (b = X.meta) == null ? void 0 : b.isOpen;
|
|
601
601
|
})), u = (X) => {
|
|
@@ -749,7 +749,7 @@ const f3 = (f, A) => {
|
|
|
749
749
|
setup(f) {
|
|
750
750
|
const A = f;
|
|
751
751
|
bt(), at(), it();
|
|
752
|
-
const e = $e(), v =
|
|
752
|
+
const e = $e(), v = Z(!1), r = Z(!1), n = Z(!1), P = vA(() => v.value && A.showLayout), u = vA(() => r.value && A.showLayout && A.showAside), d = vA(() => v.value && A.showLayout && A.showTabs), t = vA(() => A.routerViewVisible ?? !0), z = vA(() => Ve.overlay.visible ?? !1), p = vA(() => ({
|
|
753
753
|
"das-web-app-overlay-show": z.value === !0,
|
|
754
754
|
"das-web-app-overlay-hide": z.value === !1,
|
|
755
755
|
"das-web-app-overlay-destroy": z.value === "destroy"
|
|
@@ -757,15 +757,15 @@ const f3 = (f, A) => {
|
|
|
757
757
|
sA(
|
|
758
758
|
() => [e.meta, e.query],
|
|
759
759
|
([q, m]) => {
|
|
760
|
-
const { showLayout:
|
|
760
|
+
const { showLayout: O = !0, showAside: N = !0, showTabs: D = !0, layout: x = {} } = q, {
|
|
761
761
|
showLayout: j = !0,
|
|
762
|
-
showAside:
|
|
762
|
+
showAside: l = !0,
|
|
763
763
|
showTabs: R = !0,
|
|
764
764
|
app: o
|
|
765
765
|
} = m;
|
|
766
|
-
ct(
|
|
767
|
-
let
|
|
768
|
-
(
|
|
766
|
+
ct(x);
|
|
767
|
+
let T = !0, g = !0, h = !0;
|
|
768
|
+
(O === !1 || j === !1 || j === "false") && (T = !1, g = !1, h = !1), (N === !1 || l === !1 || l === "false") && (g = !1), (D === !1 || R === !1 || R === "false") && (h = !1), v.value = T, r.value = g, n.value = h;
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
const a = vA(() => ({
|
|
@@ -775,18 +775,18 @@ const f3 = (f, A) => {
|
|
|
775
775
|
}));
|
|
776
776
|
let i = /* @__PURE__ */ new Map();
|
|
777
777
|
const H = (q, m) => {
|
|
778
|
-
let
|
|
779
|
-
return i.has(m) ?
|
|
778
|
+
let O;
|
|
779
|
+
return i.has(m) ? O = i.get(m) : (O = {
|
|
780
780
|
name: m,
|
|
781
781
|
render() {
|
|
782
782
|
return RA("div", { style: { width: "100%", height: "100%" } }, [RA(q)]);
|
|
783
783
|
}
|
|
784
|
-
}, i.set(m,
|
|
784
|
+
}, i.set(m, O)), RA(O);
|
|
785
785
|
}, s = vA(() => Ve.visible.value);
|
|
786
786
|
return (q, m) => {
|
|
787
|
-
const
|
|
787
|
+
const O = ur("router-view");
|
|
788
788
|
return G(), dA("div", wt, [
|
|
789
|
-
EA(
|
|
789
|
+
EA(B(
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
792
|
class: i7(["das-web-app-overlay", p.value]),
|
|
@@ -809,7 +809,7 @@ const f3 = (f, A) => {
|
|
|
809
809
|
)), [
|
|
810
810
|
[YA, s.value]
|
|
811
811
|
]) : AA("v-if", !0),
|
|
812
|
-
|
|
812
|
+
B("div", Et, [
|
|
813
813
|
u.value ? EA((G(), dA(
|
|
814
814
|
"div",
|
|
815
815
|
It,
|
|
@@ -821,7 +821,7 @@ const f3 = (f, A) => {
|
|
|
821
821
|
)), [
|
|
822
822
|
[YA, s.value]
|
|
823
823
|
]) : AA("v-if", !0),
|
|
824
|
-
|
|
824
|
+
B("div", gt, [
|
|
825
825
|
d.value ? EA((G(), dA(
|
|
826
826
|
"div",
|
|
827
827
|
Mt,
|
|
@@ -833,8 +833,8 @@ const f3 = (f, A) => {
|
|
|
833
833
|
)), [
|
|
834
834
|
[YA, s.value]
|
|
835
835
|
]) : AA("v-if", !0),
|
|
836
|
-
|
|
837
|
-
EA(
|
|
836
|
+
B("div", Bt, [
|
|
837
|
+
EA(B(
|
|
838
838
|
"div",
|
|
839
839
|
kt,
|
|
840
840
|
[
|
|
@@ -845,16 +845,16 @@ const f3 = (f, A) => {
|
|
|
845
845
|
), [
|
|
846
846
|
[YA, s.value]
|
|
847
847
|
]),
|
|
848
|
-
|
|
848
|
+
B("div", Qt, [
|
|
849
849
|
EA((G(), dA("div", {
|
|
850
850
|
key: q.pageKey,
|
|
851
851
|
style: { width: "100%", height: "100%" }
|
|
852
852
|
}, [
|
|
853
853
|
LA(q.$slots, "router-view", {}, () => [
|
|
854
854
|
AA(" 有动画 "),
|
|
855
|
-
q.needTransition ? (G(), tA(
|
|
855
|
+
q.needTransition ? (G(), tA(O, { key: 0 }, {
|
|
856
856
|
default: Y(({ Component: N }) => [
|
|
857
|
-
|
|
857
|
+
M(
|
|
858
858
|
S7,
|
|
859
859
|
_f(K7(a.value)),
|
|
860
860
|
{
|
|
@@ -877,7 +877,7 @@ const f3 = (f, A) => {
|
|
|
877
877
|
1040
|
|
878
878
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
879
879
|
),
|
|
880
|
-
|
|
880
|
+
M(
|
|
881
881
|
S7,
|
|
882
882
|
_f(K7(a.value)),
|
|
883
883
|
{
|
|
@@ -899,7 +899,7 @@ const f3 = (f, A) => {
|
|
|
899
899
|
/* STABLE */
|
|
900
900
|
})) : AA("v-if", !0),
|
|
901
901
|
AA(" 无动画 "),
|
|
902
|
-
q.needTransition ? AA("v-if", !0) : (G(), tA(
|
|
902
|
+
q.needTransition ? AA("v-if", !0) : (G(), tA(O, { key: 1 }, {
|
|
903
903
|
default: Y(({ Component: N }) => [
|
|
904
904
|
V(e).meta.keepAlive ? (G(), tA(C7, {
|
|
905
905
|
key: 0,
|
|
@@ -918,11 +918,11 @@ const f3 = (f, A) => {
|
|
|
918
918
|
_: 1
|
|
919
919
|
/* STABLE */
|
|
920
920
|
})),
|
|
921
|
-
EA(
|
|
921
|
+
EA(B(
|
|
922
922
|
"div",
|
|
923
923
|
Ut,
|
|
924
924
|
[
|
|
925
|
-
|
|
925
|
+
M(yt, {
|
|
926
926
|
exclude: b.value,
|
|
927
927
|
transitionConfig: a.value,
|
|
928
928
|
needTransition: q.needTransition
|
|
@@ -937,7 +937,7 @@ const f3 = (f, A) => {
|
|
|
937
937
|
])), [
|
|
938
938
|
[YA, t.value]
|
|
939
939
|
]),
|
|
940
|
-
EA(
|
|
940
|
+
EA(B(
|
|
941
941
|
"div",
|
|
942
942
|
Jt,
|
|
943
943
|
[
|
|
@@ -958,21 +958,21 @@ const f3 = (f, A) => {
|
|
|
958
958
|
}), Tb = /* @__PURE__ */ ZA(ht, [["__scopeId", "data-v-e2af5217"]]), Ft = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], Lb = /* @__PURE__ */ iA({
|
|
959
959
|
__name: "das-web-nav",
|
|
960
960
|
setup(f) {
|
|
961
|
-
const { nav: A } = Ve, e = vA(() => A.theme), v = vA(() => A.logo || ""), r = vA(() => A.activeItem || ""), n = vA(() => (A.items || []).filter((
|
|
962
|
-
var D,
|
|
961
|
+
const { nav: A } = Ve, e = vA(() => A.theme), v = vA(() => A.logo || ""), r = vA(() => A.activeItem || ""), n = vA(() => (A.items || []).filter((x) => x.fixed)), P = vA(() => (A.items || []).filter((x) => !x.fixed)), u = vA(() => {
|
|
962
|
+
var D, x, j, l, R;
|
|
963
963
|
return {
|
|
964
964
|
showAIHelper: ((D = A.config) == null ? void 0 : D.showAIHelper) ?? !1,
|
|
965
|
-
showFullScreen: ((
|
|
965
|
+
showFullScreen: ((x = A.config) == null ? void 0 : x.showFullScreen) ?? !1,
|
|
966
966
|
showChangeEnterprise: ((j = A.config) == null ? void 0 : j.showChangeEnterprise) ?? !1,
|
|
967
|
-
showSearch: ((
|
|
967
|
+
showSearch: ((l = A.config) == null ? void 0 : l.showSearch) ?? !0,
|
|
968
968
|
showProjectTree: ((R = A.config) == null ? void 0 : R.showProjectTree) ?? !0,
|
|
969
969
|
subAppList: P.value.map((o) => ({ code: o.value, name: o.label, ...o }))
|
|
970
970
|
};
|
|
971
971
|
}), d = vA(() => {
|
|
972
|
-
const D = n.value.find((
|
|
972
|
+
const D = n.value.find((x) => x.value === A.activeItem);
|
|
973
973
|
return {
|
|
974
974
|
activeInnerPagePath: (D == null ? void 0 : D.path) || "",
|
|
975
|
-
innerPages: n.value.map((
|
|
975
|
+
innerPages: n.value.map((x) => ({ title: x.label, ...x }))
|
|
976
976
|
};
|
|
977
977
|
}), t = vA(() => ({
|
|
978
978
|
projectStore: {
|
|
@@ -981,17 +981,17 @@ const f3 = (f, A) => {
|
|
|
981
981
|
},
|
|
982
982
|
...A.projectConfig
|
|
983
983
|
})), z = vA(() => A.userInfo), p = vA(() => A.searchConfig), X = async (D) => {
|
|
984
|
-
const
|
|
984
|
+
const x = D.detail[0], j = n.value.find((R) => x.value === R.value);
|
|
985
985
|
await zA.nav.triggerEventListener("onItemClick", j) && zA.nav.setActiveItem(j.value);
|
|
986
986
|
}, b = async (D) => {
|
|
987
|
-
const
|
|
987
|
+
const x = D.detail[0], j = P.value.find((R) => x === R.value);
|
|
988
988
|
await zA.nav.triggerEventListener("onItemClick", j) && zA.nav.setActiveItem(j.value);
|
|
989
989
|
}, c = async (D) => {
|
|
990
|
-
const
|
|
990
|
+
const x = D.detail[0], j = P.value.find((R) => x === R.value);
|
|
991
991
|
await zA.nav.triggerEventListener("onItemRemove", j) && zA.nav.removeItem(j.value);
|
|
992
992
|
}, a = async (D) => {
|
|
993
|
-
const [
|
|
994
|
-
!
|
|
993
|
+
const [x, j] = D.detail;
|
|
994
|
+
!x || !await zA.nav.triggerEventListener("onProjectChange", j) || zA.nav.setActiveProject(j);
|
|
995
995
|
}, i = (D) => {
|
|
996
996
|
zA.nav.triggerEventListener("onUserCommandChange", D.detail[0]);
|
|
997
997
|
}, H = (D) => {
|
|
@@ -1002,7 +1002,7 @@ const f3 = (f, A) => {
|
|
|
1002
1002
|
zA.nav.triggerEventListener("deleteSearchItem", { value: D.detail[0], cb: D.detail[1] });
|
|
1003
1003
|
}, m = () => {
|
|
1004
1004
|
zA.nav.triggerEventListener("changeEnterpriseHandle");
|
|
1005
|
-
},
|
|
1005
|
+
}, O = () => {
|
|
1006
1006
|
zA.nav.triggerEventListener("fullScreenHandle");
|
|
1007
1007
|
}, N = () => {
|
|
1008
1008
|
zA.nav.triggerEventListener("openAI");
|
|
@@ -1013,7 +1013,7 @@ const f3 = (f, A) => {
|
|
|
1013
1013
|
zA.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
1014
1014
|
}), Tv(() => {
|
|
1015
1015
|
zA.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
1016
|
-
}), (D,
|
|
1016
|
+
}), (D, x) => (G(), dA("das-ce-nav", {
|
|
1017
1017
|
theme: e.value,
|
|
1018
1018
|
modelValue: r.value,
|
|
1019
1019
|
logoUrl: v.value,
|
|
@@ -1031,7 +1031,7 @@ const f3 = (f, A) => {
|
|
|
1031
1031
|
"on:clearSearchList": s,
|
|
1032
1032
|
"on:deleteSearchItem": q,
|
|
1033
1033
|
"on:changeEnterpriseHandle": m,
|
|
1034
|
-
"on:fullScreen":
|
|
1034
|
+
"on:fullScreen": O,
|
|
1035
1035
|
"on:openAI": N
|
|
1036
1036
|
}, null, 40, Ft));
|
|
1037
1037
|
}
|
|
@@ -1096,7 +1096,7 @@ const f3 = (f, A) => {
|
|
|
1096
1096
|
"on:toggleFullScreen": p
|
|
1097
1097
|
}), null, 16, Kt)) : AA("v-if", !0);
|
|
1098
1098
|
}
|
|
1099
|
-
}), t3 =
|
|
1099
|
+
}), t3 = Z("/das-micro-app"), WA = Z([]), W9 = Z(!1), T9 = Z([]), L9 = Z(!0);
|
|
1100
1100
|
let UA = null, JA = null, Be = null;
|
|
1101
1101
|
const Ct = (f) => new Promise((A) => {
|
|
1102
1102
|
const e = () => {
|
|
@@ -1322,7 +1322,7 @@ function dP(...f) {
|
|
|
1322
1322
|
return hv(t), t;
|
|
1323
1323
|
}
|
|
1324
1324
|
function zP(f, A = !1) {
|
|
1325
|
-
const e =
|
|
1325
|
+
const e = Z(), v = () => e.value = !!f();
|
|
1326
1326
|
return v(), tP(v, A), e;
|
|
1327
1327
|
}
|
|
1328
1328
|
const u3 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d3 = "__vueuse_ssr_handlers__";
|
|
@@ -1370,7 +1370,7 @@ const z3 = [
|
|
|
1370
1370
|
]
|
|
1371
1371
|
];
|
|
1372
1372
|
function e9(f, A = {}) {
|
|
1373
|
-
const { document: e = uP, autoExit: v = !1 } = A, r = f || (e == null ? void 0 : e.querySelector("html")), n =
|
|
1373
|
+
const { document: e = uP, autoExit: v = !1 } = A, r = f || (e == null ? void 0 : e.querySelector("html")), n = Z(!1);
|
|
1374
1374
|
let P = z3[0];
|
|
1375
1375
|
const u = zP(() => {
|
|
1376
1376
|
if (e) {
|
|
@@ -1471,7 +1471,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1471
1471
|
}), HP = /* @__PURE__ */ ZA(qP, [["__scopeId", "data-v-8ae871f6"]]), pP = /* @__PURE__ */ iA({
|
|
1472
1472
|
__name: "das-micro-apps",
|
|
1473
1473
|
setup(f) {
|
|
1474
|
-
const A =
|
|
1474
|
+
const A = Z(null), e = async (n, P) => {
|
|
1475
1475
|
const u = WA.value.find((X) => X.name === P);
|
|
1476
1476
|
if (!u) return;
|
|
1477
1477
|
u.dom = n.target, await ae(), await new Promise((X) => setTimeout(X, 50));
|
|
@@ -1562,21 +1562,21 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1562
1562
|
}, r.value), {
|
|
1563
1563
|
header: Y(() => [
|
|
1564
1564
|
LA(n.$slots, "header", {}, () => [
|
|
1565
|
-
|
|
1565
|
+
M(V(wv))
|
|
1566
1566
|
])
|
|
1567
1567
|
]),
|
|
1568
1568
|
aside: Y(() => [
|
|
1569
1569
|
LA(n.$slots, "aside", {}, () => [
|
|
1570
|
-
|
|
1570
|
+
M(V(yv), { menuAttr: n.menuAttr }, null, 8, ["menuAttr"])
|
|
1571
1571
|
])
|
|
1572
1572
|
]),
|
|
1573
1573
|
tab: Y(() => [
|
|
1574
1574
|
LA(n.$slots, "tab", {}, () => [
|
|
1575
|
-
|
|
1575
|
+
M(V(Lv), { tabsAttr: n.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1576
1576
|
])
|
|
1577
1577
|
]),
|
|
1578
1578
|
default: Y(() => [
|
|
1579
|
-
|
|
1579
|
+
M(mP)
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 3
|
|
1582
1582
|
/* FORWARDED */
|
|
@@ -1626,7 +1626,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1626
1626
|
component: Sv,
|
|
1627
1627
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1628
1628
|
});
|
|
1629
|
-
const v =
|
|
1629
|
+
const v = Z(!1), r = Z(!1), n = Z("");
|
|
1630
1630
|
sA(
|
|
1631
1631
|
() => A.currentRoute.value,
|
|
1632
1632
|
(P) => {
|
|
@@ -1696,7 +1696,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1696
1696
|
__name: "banner",
|
|
1697
1697
|
emits: ["close-tip"],
|
|
1698
1698
|
setup(f, { emit: A }) {
|
|
1699
|
-
const e = A, v =
|
|
1699
|
+
const e = A, v = Z(!0), r = Z(""), n = Z(0), P = Z({}), u = () => {
|
|
1700
1700
|
e("close-tip", !0), v.value = !0;
|
|
1701
1701
|
};
|
|
1702
1702
|
yA.sendMessageToMicroApp("iot/iot", "iot:banner-data-1", null, { awaitListener: !0 });
|
|
@@ -1707,8 +1707,8 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1707
1707
|
return Tv(() => {
|
|
1708
1708
|
d();
|
|
1709
1709
|
}), (t, z) => v.value ? AA("v-if", !0) : (G(), dA("div", OP, [
|
|
1710
|
-
|
|
1711
|
-
|
|
1710
|
+
B("div", DP, [
|
|
1711
|
+
M(V(Nr), {
|
|
1712
1712
|
class: "icons",
|
|
1713
1713
|
iconColor: "#fdaf1a"
|
|
1714
1714
|
}),
|
|
@@ -1718,7 +1718,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1718
1718
|
/* TEXT */
|
|
1719
1719
|
)
|
|
1720
1720
|
]),
|
|
1721
|
-
|
|
1721
|
+
M(V(Rr), {
|
|
1722
1722
|
class: "icons close-icon",
|
|
1723
1723
|
iconColor: "#999999",
|
|
1724
1724
|
onClick: u
|
|
@@ -1728,7 +1728,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1728
1728
|
}), NP = /* @__PURE__ */ ZA(VP, [["__scopeId", "data-v-2470d845"]]), RP = /* @__PURE__ */ iA({
|
|
1729
1729
|
__name: "index",
|
|
1730
1730
|
setup(f) {
|
|
1731
|
-
const A = $e(), e =
|
|
1731
|
+
const A = $e(), e = Z("");
|
|
1732
1732
|
return sA(
|
|
1733
1733
|
() => A.path,
|
|
1734
1734
|
(v) => {
|
|
@@ -1769,22 +1769,22 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1769
1769
|
}, v.value), {
|
|
1770
1770
|
header: Y(() => [
|
|
1771
1771
|
LA(r.$slots, "header", {}, () => [
|
|
1772
|
-
|
|
1772
|
+
M(V(wv))
|
|
1773
1773
|
])
|
|
1774
1774
|
]),
|
|
1775
1775
|
aside: Y(() => [
|
|
1776
1776
|
LA(r.$slots, "aside", {}, () => [
|
|
1777
|
-
|
|
1777
|
+
M(V(yv), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
1778
1778
|
])
|
|
1779
1779
|
]),
|
|
1780
1780
|
tab: Y(() => [
|
|
1781
1781
|
LA(r.$slots, "tab", {}, () => [
|
|
1782
|
-
|
|
1782
|
+
M(V(Lv), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
1783
1783
|
])
|
|
1784
1784
|
]),
|
|
1785
1785
|
banner: Y(() => [
|
|
1786
1786
|
LA(r.$slots, "banner", {}, () => [
|
|
1787
|
-
|
|
1787
|
+
M(RP)
|
|
1788
1788
|
])
|
|
1789
1789
|
]),
|
|
1790
1790
|
_: 3
|
|
@@ -1797,7 +1797,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1797
1797
|
platformInitNextTick: {}
|
|
1798
1798
|
},
|
|
1799
1799
|
setup(f) {
|
|
1800
|
-
const A = f, e =
|
|
1800
|
+
const A = f, e = Z({}), v = Z(120), r = Z(64), n = Z([]), P = Z([]), u = Xe({
|
|
1801
1801
|
color: "rgba(0,0,0,.15)",
|
|
1802
1802
|
fontSize: 16
|
|
1803
1803
|
}), d = (a, i) => {
|
|
@@ -1805,7 +1805,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1805
1805
|
H.innerHTML = a, H.style.fontSize = i + "px", H.style.fontFamily = "sans-serif", H.style.visibility = "hidden", document.body.appendChild(H);
|
|
1806
1806
|
const s = H.getBoundingClientRect();
|
|
1807
1807
|
v.value = Math.ceil(s.width) + i / 2, r.value = Math.ceil(s.height), document.body.removeChild(H);
|
|
1808
|
-
}, t =
|
|
1808
|
+
}, t = Z(!1), z = () => new Promise((a) => {
|
|
1809
1809
|
const i = () => {
|
|
1810
1810
|
if (t) return a(!0);
|
|
1811
1811
|
setTimeout(() => i(), 50);
|
|
@@ -1817,26 +1817,26 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1817
1817
|
const i = !!((H = e.value) != null && H.pageSwith);
|
|
1818
1818
|
P.value = a && i ? [...n.value] : [];
|
|
1819
1819
|
}, X = async () => {
|
|
1820
|
-
var s, q, m,
|
|
1820
|
+
var s, q, m, O, N, D, x;
|
|
1821
1821
|
t.value = !0, await (A == null ? void 0 : A.platformInitNextTick());
|
|
1822
1822
|
const [a, i] = await oP().run();
|
|
1823
1823
|
if (a) return null;
|
|
1824
1824
|
if (e.value = i, !!((s = e.value) != null && s.pageSwith)) {
|
|
1825
1825
|
n.value = [];
|
|
1826
|
-
const { name: j, phone:
|
|
1826
|
+
const { name: j, phone: l } = await $r();
|
|
1827
1827
|
let R = "";
|
|
1828
|
-
if ((q = e.value) != null && q.nameSwith && j && (n.value.push(j), R = R + `${j} `), (m = e.value) != null && m.phoneSwith &&
|
|
1829
|
-
const o =
|
|
1828
|
+
if ((q = e.value) != null && q.nameSwith && j && (n.value.push(j), R = R + `${j} `), (m = e.value) != null && m.phoneSwith && l) {
|
|
1829
|
+
const o = l.slice(-4);
|
|
1830
1830
|
n.value.push(o), R = R + `${o} `;
|
|
1831
1831
|
}
|
|
1832
|
-
if ((
|
|
1832
|
+
if ((O = e.value) != null && O.textSwith && ((N = e.value) != null && N.text)) {
|
|
1833
1833
|
n.value.push(e.value.text);
|
|
1834
1834
|
const o = e.value.text.replaceAll(`
|
|
1835
1835
|
`, "<br/>");
|
|
1836
1836
|
R = R + `${o}`;
|
|
1837
1837
|
}
|
|
1838
1838
|
n.value.length && (n.value = n.value.join(" ").split(`
|
|
1839
|
-
`)), u.color = (D = e.value) != null && D.textColor ? e.value.textColor : "rgba(0,0,0,.15)", u.fontSize = (
|
|
1839
|
+
`)), u.color = (D = e.value) != null && D.textColor ? e.value.textColor : "rgba(0,0,0,.15)", u.fontSize = (x = e.value) != null && x.textSize ? parseInt(e.value.textSize) : 16, d(R, u.fontSize);
|
|
1840
1840
|
}
|
|
1841
1841
|
return t.value = !1, i;
|
|
1842
1842
|
};
|
|
@@ -1845,9 +1845,9 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1845
1845
|
return sA(
|
|
1846
1846
|
() => b.currentRoute.value,
|
|
1847
1847
|
(a) => {
|
|
1848
|
-
var q, m,
|
|
1848
|
+
var q, m, O;
|
|
1849
1849
|
const i = !!((q = e.value) != null && q.pageSwith), H = ((m = a.meta) == null ? void 0 : m.showWatermark) ?? !0;
|
|
1850
|
-
let s = ((
|
|
1850
|
+
let s = ((O = a.query) == null ? void 0 : O.showWatermark) ?? !0;
|
|
1851
1851
|
s === "false" && (s = !1), p(i && !!(H && s));
|
|
1852
1852
|
},
|
|
1853
1853
|
{ immediate: !0 }
|
|
@@ -1885,7 +1885,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1885
1885
|
closeCallback: {}
|
|
1886
1886
|
},
|
|
1887
1887
|
setup(f) {
|
|
1888
|
-
const A =
|
|
1888
|
+
const A = Z(!0);
|
|
1889
1889
|
return (e, v) => (G(), tA(V(Fe), {
|
|
1890
1890
|
modelValue: A.value,
|
|
1891
1891
|
"onUpdate:modelValue": v[0] || (v[0] = (r) => A.value = r),
|
|
@@ -1898,15 +1898,15 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1898
1898
|
onClosed: e.closeCallback
|
|
1899
1899
|
}, {
|
|
1900
1900
|
footer: Y(() => [
|
|
1901
|
-
|
|
1902
|
-
|
|
1901
|
+
B("div", wP, [
|
|
1902
|
+
M(V(CA), {
|
|
1903
1903
|
btnType: "default",
|
|
1904
1904
|
size: "small",
|
|
1905
1905
|
onClick: e.closeCallback
|
|
1906
1906
|
}, {
|
|
1907
1907
|
default: Y(() => [
|
|
1908
1908
|
mA(
|
|
1909
|
-
PA(V(
|
|
1909
|
+
PA(V(k)("我知道了")),
|
|
1910
1910
|
1
|
|
1911
1911
|
/* TEXT */
|
|
1912
1912
|
)
|
|
@@ -1917,7 +1917,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1917
1917
|
])
|
|
1918
1918
|
]),
|
|
1919
1919
|
default: Y(() => [
|
|
1920
|
-
|
|
1920
|
+
B("div", {
|
|
1921
1921
|
class: "content",
|
|
1922
1922
|
innerHTML: e.content
|
|
1923
1923
|
}, null, 8, yP),
|
|
@@ -1925,7 +1925,7 @@ const sP = ["src", "entry", "name"], qP = /* @__PURE__ */ iA({
|
|
|
1925
1925
|
ee,
|
|
1926
1926
|
{ key: 0 },
|
|
1927
1927
|
[
|
|
1928
|
-
v[1] || (v[1] =
|
|
1928
|
+
v[1] || (v[1] = B(
|
|
1929
1929
|
"div",
|
|
1930
1930
|
{ class: "divide" },
|
|
1931
1931
|
null,
|
|
@@ -2094,8 +2094,8 @@ const IP = (f = {}) => {
|
|
|
2094
2094
|
const A = JSON.parse(sessionStorage.getItem(f) || "{}");
|
|
2095
2095
|
if (A && JSON.stringify(A) !== "{}" && A != null && A.exitConfirmPages && A.exitConfirmPages.length) {
|
|
2096
2096
|
const e = (A == null ? void 0 : A.currentPage) ?? "";
|
|
2097
|
-
if (A.exitConfirmPages.includes(e) && !window.confirm(
|
|
2098
|
-
throw new Error(
|
|
2097
|
+
if (A.exitConfirmPages.includes(e) && !window.confirm(k("切换后已录入的数据将会丢失且不可恢复,确定切换?")))
|
|
2098
|
+
throw new Error(k("取消切换"));
|
|
2099
2099
|
}
|
|
2100
2100
|
}, E9 = (f, A) => {
|
|
2101
2101
|
if (!A || !A.length) return;
|
|
@@ -2103,8 +2103,8 @@ const IP = (f = {}) => {
|
|
|
2103
2103
|
if (e && JSON.stringify(e) !== "{}" && e != null && e.closeTabPageConfirm && e.closeTabPageConfirm.length) {
|
|
2104
2104
|
const v = e.closeTabPageConfirm.map((n) => n.code), r = A.find((n) => v.includes(n));
|
|
2105
2105
|
if (r) {
|
|
2106
|
-
const n = e.closeTabPageConfirm.find((d) => d.code === r), P = (n == null ? void 0 : n.text) ??
|
|
2107
|
-
if (!window.confirm(P)) throw new Error(
|
|
2106
|
+
const n = e.closeTabPageConfirm.find((d) => d.code === r), P = (n == null ? void 0 : n.text) ?? k("确认关闭?");
|
|
2107
|
+
if (!window.confirm(P)) throw new Error(k("取消关闭"));
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
};
|
|
@@ -2303,15 +2303,15 @@ function XA() {
|
|
|
2303
2303
|
* wordArray1.concat(wordArray2);
|
|
2304
2304
|
*/
|
|
2305
2305
|
concat: function(s) {
|
|
2306
|
-
var q = this.words, m = s.words,
|
|
2307
|
-
if (this.clamp(),
|
|
2306
|
+
var q = this.words, m = s.words, O = this.sigBytes, N = s.sigBytes;
|
|
2307
|
+
if (this.clamp(), O % 4)
|
|
2308
2308
|
for (var D = 0; D < N; D++) {
|
|
2309
|
-
var
|
|
2310
|
-
q[
|
|
2309
|
+
var x = m[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
2310
|
+
q[O + D >>> 2] |= x << 24 - (O + D) % 4 * 8;
|
|
2311
2311
|
}
|
|
2312
2312
|
else
|
|
2313
2313
|
for (var j = 0; j < N; j += 4)
|
|
2314
|
-
q[
|
|
2314
|
+
q[O + j >>> 2] = m[j >>> 2];
|
|
2315
2315
|
return this.sigBytes += N, this;
|
|
2316
2316
|
},
|
|
2317
2317
|
/**
|
|
@@ -2371,11 +2371,11 @@ function XA() {
|
|
|
2371
2371
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
2372
2372
|
*/
|
|
2373
2373
|
stringify: function(s) {
|
|
2374
|
-
for (var q = s.words, m = s.sigBytes,
|
|
2374
|
+
for (var q = s.words, m = s.sigBytes, O = [], N = 0; N < m; N++) {
|
|
2375
2375
|
var D = q[N >>> 2] >>> 24 - N % 4 * 8 & 255;
|
|
2376
|
-
|
|
2376
|
+
O.push((D >>> 4).toString(16)), O.push((D & 15).toString(16));
|
|
2377
2377
|
}
|
|
2378
|
-
return
|
|
2378
|
+
return O.join("");
|
|
2379
2379
|
},
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Converts a hex string to a word array.
|
|
@@ -2391,8 +2391,8 @@ function XA() {
|
|
|
2391
2391
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
2392
2392
|
*/
|
|
2393
2393
|
parse: function(s) {
|
|
2394
|
-
for (var q = s.length, m = [],
|
|
2395
|
-
m[
|
|
2394
|
+
for (var q = s.length, m = [], O = 0; O < q; O += 2)
|
|
2395
|
+
m[O >>> 3] |= parseInt(s.substr(O, 2), 16) << 24 - O % 8 * 4;
|
|
2396
2396
|
return new p.init(m, q / 2);
|
|
2397
2397
|
}
|
|
2398
2398
|
}, c = X.Latin1 = {
|
|
@@ -2410,11 +2410,11 @@ function XA() {
|
|
|
2410
2410
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
2411
2411
|
*/
|
|
2412
2412
|
stringify: function(s) {
|
|
2413
|
-
for (var q = s.words, m = s.sigBytes,
|
|
2413
|
+
for (var q = s.words, m = s.sigBytes, O = [], N = 0; N < m; N++) {
|
|
2414
2414
|
var D = q[N >>> 2] >>> 24 - N % 4 * 8 & 255;
|
|
2415
|
-
|
|
2415
|
+
O.push(String.fromCharCode(D));
|
|
2416
2416
|
}
|
|
2417
|
-
return
|
|
2417
|
+
return O.join("");
|
|
2418
2418
|
},
|
|
2419
2419
|
/**
|
|
2420
2420
|
* Converts a Latin1 string to a word array.
|
|
@@ -2430,8 +2430,8 @@ function XA() {
|
|
|
2430
2430
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
2431
2431
|
*/
|
|
2432
2432
|
parse: function(s) {
|
|
2433
|
-
for (var q = s.length, m = [],
|
|
2434
|
-
m[
|
|
2433
|
+
for (var q = s.length, m = [], O = 0; O < q; O++)
|
|
2434
|
+
m[O >>> 2] |= (s.charCodeAt(O) & 255) << 24 - O % 4 * 8;
|
|
2435
2435
|
return new p.init(m, q);
|
|
2436
2436
|
}
|
|
2437
2437
|
}, a = X.Utf8 = {
|
|
@@ -2510,13 +2510,13 @@ function XA() {
|
|
|
2510
2510
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
2511
2511
|
*/
|
|
2512
2512
|
_process: function(s) {
|
|
2513
|
-
var q, m = this._data,
|
|
2513
|
+
var q, m = this._data, O = m.words, N = m.sigBytes, D = this.blockSize, x = D * 4, j = N / x;
|
|
2514
2514
|
s ? j = v.ceil(j) : j = v.max((j | 0) - this._minBufferSize, 0);
|
|
2515
|
-
var
|
|
2516
|
-
if (
|
|
2517
|
-
for (var o = 0; o <
|
|
2518
|
-
this._doProcessBlock(
|
|
2519
|
-
q =
|
|
2515
|
+
var l = j * D, R = v.min(l * 4, N);
|
|
2516
|
+
if (l) {
|
|
2517
|
+
for (var o = 0; o < l; o += D)
|
|
2518
|
+
this._doProcessBlock(O, o);
|
|
2519
|
+
q = O.splice(0, l), m.sigBytes -= R;
|
|
2520
2520
|
}
|
|
2521
2521
|
return new p.init(q, R);
|
|
2522
2522
|
},
|
|
@@ -3170,39 +3170,39 @@ function ye() {
|
|
|
3170
3170
|
var s = i + H, q = a[s];
|
|
3171
3171
|
a[s] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360;
|
|
3172
3172
|
}
|
|
3173
|
-
var m = this._hash.words,
|
|
3174
|
-
L = p(L, w, E, W,
|
|
3173
|
+
var m = this._hash.words, O = a[i + 0], N = a[i + 1], D = a[i + 2], x = a[i + 3], j = a[i + 4], l = a[i + 5], R = a[i + 6], o = a[i + 7], T = a[i + 8], g = a[i + 9], h = a[i + 10], $ = a[i + 11], J = a[i + 12], U = a[i + 13], K = a[i + 14], _ = a[i + 15], L = m[0], w = m[1], E = m[2], W = m[3];
|
|
3174
|
+
L = p(L, w, E, W, O, 7, t[0]), W = p(W, L, w, E, N, 12, t[1]), E = p(E, W, L, w, D, 17, t[2]), w = p(w, E, W, L, x, 22, t[3]), L = p(L, w, E, W, j, 7, t[4]), W = p(W, L, w, E, l, 12, t[5]), E = p(E, W, L, w, R, 17, t[6]), w = p(w, E, W, L, o, 22, t[7]), L = p(L, w, E, W, T, 7, t[8]), W = p(W, L, w, E, g, 12, t[9]), E = p(E, W, L, w, h, 17, t[10]), w = p(w, E, W, L, $, 22, t[11]), L = p(L, w, E, W, J, 7, t[12]), W = p(W, L, w, E, U, 12, t[13]), E = p(E, W, L, w, K, 17, t[14]), w = p(w, E, W, L, _, 22, t[15]), L = X(L, w, E, W, N, 5, t[16]), W = X(W, L, w, E, R, 9, t[17]), E = X(E, W, L, w, $, 14, t[18]), w = X(w, E, W, L, O, 20, t[19]), L = X(L, w, E, W, l, 5, t[20]), W = X(W, L, w, E, h, 9, t[21]), E = X(E, W, L, w, _, 14, t[22]), w = X(w, E, W, L, j, 20, t[23]), L = X(L, w, E, W, g, 5, t[24]), W = X(W, L, w, E, K, 9, t[25]), E = X(E, W, L, w, x, 14, t[26]), w = X(w, E, W, L, T, 20, t[27]), L = X(L, w, E, W, U, 5, t[28]), W = X(W, L, w, E, D, 9, t[29]), E = X(E, W, L, w, o, 14, t[30]), w = X(w, E, W, L, J, 20, t[31]), L = b(L, w, E, W, l, 4, t[32]), W = b(W, L, w, E, T, 11, t[33]), E = b(E, W, L, w, $, 16, t[34]), w = b(w, E, W, L, K, 23, t[35]), L = b(L, w, E, W, N, 4, t[36]), W = b(W, L, w, E, j, 11, t[37]), E = b(E, W, L, w, o, 16, t[38]), w = b(w, E, W, L, h, 23, t[39]), L = b(L, w, E, W, U, 4, t[40]), W = b(W, L, w, E, O, 11, t[41]), E = b(E, W, L, w, x, 16, t[42]), w = b(w, E, W, L, R, 23, t[43]), L = b(L, w, E, W, g, 4, t[44]), W = b(W, L, w, E, J, 11, t[45]), E = b(E, W, L, w, _, 16, t[46]), w = b(w, E, W, L, D, 23, t[47]), L = c(L, w, E, W, O, 6, t[48]), W = c(W, L, w, E, o, 10, t[49]), E = c(E, W, L, w, K, 15, t[50]), w = c(w, E, W, L, l, 21, t[51]), L = c(L, w, E, W, J, 6, t[52]), W = c(W, L, w, E, x, 10, t[53]), E = c(E, W, L, w, h, 15, t[54]), w = c(w, E, W, L, N, 21, t[55]), L = c(L, w, E, W, T, 6, t[56]), W = c(W, L, w, E, _, 10, t[57]), E = c(E, W, L, w, R, 15, t[58]), w = c(w, E, W, L, U, 21, t[59]), L = c(L, w, E, W, j, 6, t[60]), W = c(W, L, w, E, $, 10, t[61]), E = c(E, W, L, w, D, 15, t[62]), w = c(w, E, W, L, g, 21, t[63]), m[0] = m[0] + L | 0, m[1] = m[1] + w | 0, m[2] = m[2] + E | 0, m[3] = m[3] + W | 0;
|
|
3175
3175
|
},
|
|
3176
3176
|
_doFinalize: function() {
|
|
3177
3177
|
var a = this._data, i = a.words, H = this._nDataBytes * 8, s = a.sigBytes * 8;
|
|
3178
3178
|
i[s >>> 5] |= 128 << 24 - s % 32;
|
|
3179
3179
|
var q = v.floor(H / 4294967296), m = H;
|
|
3180
3180
|
i[(s + 64 >>> 9 << 4) + 15] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, i[(s + 64 >>> 9 << 4) + 14] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, a.sigBytes = (i.length + 1) * 4, this._process();
|
|
3181
|
-
for (var
|
|
3182
|
-
var
|
|
3183
|
-
N[D] = (
|
|
3181
|
+
for (var O = this._hash, N = O.words, D = 0; D < 4; D++) {
|
|
3182
|
+
var x = N[D];
|
|
3183
|
+
N[D] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
3184
3184
|
}
|
|
3185
|
-
return
|
|
3185
|
+
return O;
|
|
3186
3186
|
},
|
|
3187
3187
|
clone: function() {
|
|
3188
3188
|
var a = u.clone.call(this);
|
|
3189
3189
|
return a._hash = this._hash.clone(), a;
|
|
3190
3190
|
}
|
|
3191
3191
|
});
|
|
3192
|
-
function p(a, i, H, s, q, m,
|
|
3193
|
-
var N = a + (i & H | ~i & s) + q +
|
|
3192
|
+
function p(a, i, H, s, q, m, O) {
|
|
3193
|
+
var N = a + (i & H | ~i & s) + q + O;
|
|
3194
3194
|
return (N << m | N >>> 32 - m) + i;
|
|
3195
3195
|
}
|
|
3196
|
-
function X(a, i, H, s, q, m,
|
|
3197
|
-
var N = a + (i & s | H & ~s) + q +
|
|
3196
|
+
function X(a, i, H, s, q, m, O) {
|
|
3197
|
+
var N = a + (i & s | H & ~s) + q + O;
|
|
3198
3198
|
return (N << m | N >>> 32 - m) + i;
|
|
3199
3199
|
}
|
|
3200
|
-
function b(a, i, H, s, q, m,
|
|
3201
|
-
var N = a + (i ^ H ^ s) + q +
|
|
3200
|
+
function b(a, i, H, s, q, m, O) {
|
|
3201
|
+
var N = a + (i ^ H ^ s) + q + O;
|
|
3202
3202
|
return (N << m | N >>> 32 - m) + i;
|
|
3203
3203
|
}
|
|
3204
|
-
function c(a, i, H, s, q, m,
|
|
3205
|
-
var N = a + (H ^ (i | ~s)) + q +
|
|
3204
|
+
function c(a, i, H, s, q, m, O) {
|
|
3205
|
+
var N = a + (H ^ (i | ~s)) + q + O;
|
|
3206
3206
|
return (N << m | N >>> 32 - m) + i;
|
|
3207
3207
|
}
|
|
3208
3208
|
r.MD5 = u._createHelper(z), r.HmacMD5 = u._createHmacHelper(z);
|
|
@@ -3280,17 +3280,17 @@ function O7() {
|
|
|
3280
3280
|
this._hash = new P.init(t.slice(0));
|
|
3281
3281
|
},
|
|
3282
3282
|
_doProcessBlock: function(b, c) {
|
|
3283
|
-
for (var a = this._hash.words, i = a[0], H = a[1], s = a[2], q = a[3], m = a[4],
|
|
3284
|
-
if (
|
|
3285
|
-
p[
|
|
3283
|
+
for (var a = this._hash.words, i = a[0], H = a[1], s = a[2], q = a[3], m = a[4], O = a[5], N = a[6], D = a[7], x = 0; x < 64; x++) {
|
|
3284
|
+
if (x < 16)
|
|
3285
|
+
p[x] = b[c + x] | 0;
|
|
3286
3286
|
else {
|
|
3287
|
-
var j = p[
|
|
3288
|
-
p[
|
|
3287
|
+
var j = p[x - 15], l = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, R = p[x - 2], o = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
|
|
3288
|
+
p[x] = l + p[x - 7] + o + p[x - 16];
|
|
3289
3289
|
}
|
|
3290
|
-
var
|
|
3291
|
-
D = N, N =
|
|
3290
|
+
var T = m & O ^ ~m & N, g = i & H ^ i & s ^ H & s, h = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22), $ = (m << 26 | m >>> 6) ^ (m << 21 | m >>> 11) ^ (m << 7 | m >>> 25), J = D + $ + T + z[x] + p[x], U = h + g;
|
|
3291
|
+
D = N, N = O, O = m, m = q + J | 0, q = s, s = H, H = i, i = J + U | 0;
|
|
3292
3292
|
}
|
|
3293
|
-
a[0] = a[0] + i | 0, a[1] = a[1] + H | 0, a[2] = a[2] + s | 0, a[3] = a[3] + q | 0, a[4] = a[4] + m | 0, a[5] = a[5] +
|
|
3293
|
+
a[0] = a[0] + i | 0, a[1] = a[1] + H | 0, a[2] = a[2] + s | 0, a[3] = a[3] + q | 0, a[4] = a[4] + m | 0, a[5] = a[5] + O | 0, a[6] = a[6] + N | 0, a[7] = a[7] + D | 0;
|
|
3294
3294
|
},
|
|
3295
3295
|
_doFinalize: function() {
|
|
3296
3296
|
var b = this._data, c = b.words, a = this._nDataBytes * 8, i = b.sigBytes * 8;
|
|
@@ -3447,7 +3447,7 @@ function nn() {
|
|
|
3447
3447
|
]);
|
|
3448
3448
|
},
|
|
3449
3449
|
_doProcessBlock: function(c, a) {
|
|
3450
|
-
for (var i = this._hash.words, H = i[0], s = i[1], q = i[2], m = i[3],
|
|
3450
|
+
for (var i = this._hash.words, H = i[0], s = i[1], q = i[2], m = i[3], O = i[4], N = i[5], D = i[6], x = i[7], j = H.high, l = H.low, R = s.high, o = s.low, T = q.high, g = q.low, h = m.high, $ = m.low, J = O.high, U = O.low, K = N.high, _ = N.low, L = D.high, w = D.low, E = x.high, W = x.low, bA = j, aA = l, jA = R, C = o, eA = T, nA = g, Oe = h, F = $, I = J, Q = U, BA = K, ze = _, o9 = L, n9 = w, rf = E, r9 = W, ve = 0; ve < 80; ve++) {
|
|
3451
3451
|
var Ae, He, Z9 = X[ve];
|
|
3452
3452
|
if (ve < 16)
|
|
3453
3453
|
He = Z9.high = c[a + ve * 2] | 0, Ae = Z9.low = c[a + ve * 2 + 1] | 0;
|
|
@@ -3455,10 +3455,10 @@ function nn() {
|
|
|
3455
3455
|
var I7 = X[ve - 15], Ie = I7.high, t9 = I7.low, hn = (Ie >>> 1 | t9 << 31) ^ (Ie >>> 8 | t9 << 24) ^ Ie >>> 7, g7 = (t9 >>> 1 | Ie << 31) ^ (t9 >>> 8 | Ie << 24) ^ (t9 >>> 7 | Ie << 25), M7 = X[ve - 2], ge = M7.high, P9 = M7.low, Fn = (ge >>> 19 | P9 << 13) ^ (ge << 3 | P9 >>> 29) ^ ge >>> 6, B7 = (P9 >>> 19 | ge << 13) ^ (P9 << 3 | ge >>> 29) ^ (P9 >>> 6 | ge << 26), k7 = X[ve - 7], Sn = k7.high, Kn = k7.low, Q7 = X[ve - 16], Cn = Q7.high, Y7 = Q7.low;
|
|
3456
3456
|
Ae = g7 + Kn, He = hn + Sn + (Ae >>> 0 < g7 >>> 0 ? 1 : 0), Ae = Ae + B7, He = He + Fn + (Ae >>> 0 < B7 >>> 0 ? 1 : 0), Ae = Ae + Y7, He = He + Cn + (Ae >>> 0 < Y7 >>> 0 ? 1 : 0), Z9.high = He, Z9.low = Ae;
|
|
3457
3457
|
}
|
|
3458
|
-
var _n = I & BA ^ ~I & o9, G7 =
|
|
3459
|
-
rf = o9, r9 = n9, o9 = BA, n9 = ze, BA = I, ze =
|
|
3458
|
+
var _n = I & BA ^ ~I & o9, G7 = Q & ze ^ ~Q & n9, $n = bA & jA ^ bA & eA ^ jA & eA, Ar = aA & C ^ aA & nA ^ C & nA, er = (bA >>> 28 | aA << 4) ^ (bA << 30 | aA >>> 2) ^ (bA << 25 | aA >>> 7), U7 = (aA >>> 28 | bA << 4) ^ (aA << 30 | bA >>> 2) ^ (aA << 25 | bA >>> 7), fr = (I >>> 14 | Q << 18) ^ (I >>> 18 | Q << 14) ^ (I << 23 | Q >>> 9), vr = (Q >>> 14 | I << 18) ^ (Q >>> 18 | I << 14) ^ (Q << 23 | I >>> 9), J7 = p[ve], nr = J7.high, h7 = J7.low, KA = r9 + vr, pe = rf + fr + (KA >>> 0 < r9 >>> 0 ? 1 : 0), KA = KA + G7, pe = pe + _n + (KA >>> 0 < G7 >>> 0 ? 1 : 0), KA = KA + h7, pe = pe + nr + (KA >>> 0 < h7 >>> 0 ? 1 : 0), KA = KA + Ae, pe = pe + He + (KA >>> 0 < Ae >>> 0 ? 1 : 0), F7 = U7 + Ar, rr = er + $n + (F7 >>> 0 < U7 >>> 0 ? 1 : 0);
|
|
3459
|
+
rf = o9, r9 = n9, o9 = BA, n9 = ze, BA = I, ze = Q, Q = F + KA | 0, I = Oe + pe + (Q >>> 0 < F >>> 0 ? 1 : 0) | 0, Oe = eA, F = nA, eA = jA, nA = C, jA = bA, C = aA, aA = KA + F7 | 0, bA = pe + rr + (aA >>> 0 < KA >>> 0 ? 1 : 0) | 0;
|
|
3460
3460
|
}
|
|
3461
|
-
|
|
3461
|
+
l = H.low = l + aA, H.high = j + bA + (l >>> 0 < aA >>> 0 ? 1 : 0), o = s.low = o + C, s.high = R + jA + (o >>> 0 < C >>> 0 ? 1 : 0), g = q.low = g + nA, q.high = T + eA + (g >>> 0 < nA >>> 0 ? 1 : 0), $ = m.low = $ + F, m.high = h + Oe + ($ >>> 0 < F >>> 0 ? 1 : 0), U = O.low = U + Q, O.high = J + I + (U >>> 0 < Q >>> 0 ? 1 : 0), _ = N.low = _ + ze, N.high = K + BA + (_ >>> 0 < ze >>> 0 ? 1 : 0), w = D.low = w + n9, D.high = L + o9 + (w >>> 0 < n9 >>> 0 ? 1 : 0), W = x.low = W + r9, x.high = E + rf + (W >>> 0 < r9 >>> 0 ? 1 : 0);
|
|
3462
3462
|
},
|
|
3463
3463
|
_doFinalize: function() {
|
|
3464
3464
|
var c = this._data, a = c.words, i = this._nDataBytes * 8, H = c.sigBytes * 8;
|
|
@@ -3524,15 +3524,15 @@ function du() {
|
|
|
3524
3524
|
for (var i = 0; i < 5; i++)
|
|
3525
3525
|
for (var H = 0; H < 5; H++)
|
|
3526
3526
|
X[i + 5 * H] = H + (2 * i + 3 * H) % 5 * 5;
|
|
3527
|
-
for (var
|
|
3528
|
-
for (var D = 0,
|
|
3529
|
-
if (
|
|
3530
|
-
var
|
|
3531
|
-
|
|
3527
|
+
for (var O = 1, N = 0; N < 24; N++) {
|
|
3528
|
+
for (var D = 0, x = 0, j = 0; j < 7; j++) {
|
|
3529
|
+
if (O & 1) {
|
|
3530
|
+
var l = (1 << j) - 1;
|
|
3531
|
+
l < 32 ? x ^= 1 << l : D ^= 1 << l - 32;
|
|
3532
3532
|
}
|
|
3533
|
-
|
|
3533
|
+
O & 128 ? O = O << 1 ^ 113 : O <<= 1;
|
|
3534
3534
|
}
|
|
3535
|
-
b[N] = t.create(D,
|
|
3535
|
+
b[N] = t.create(D, x);
|
|
3536
3536
|
}
|
|
3537
3537
|
})();
|
|
3538
3538
|
var c = [];
|
|
@@ -3559,30 +3559,30 @@ function du() {
|
|
|
3559
3559
|
},
|
|
3560
3560
|
_doProcessBlock: function(i, H) {
|
|
3561
3561
|
for (var s = this._state, q = this.blockSize / 2, m = 0; m < q; m++) {
|
|
3562
|
-
var
|
|
3563
|
-
|
|
3562
|
+
var O = i[H + 2 * m], N = i[H + 2 * m + 1];
|
|
3563
|
+
O = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360, N = (N << 8 | N >>> 24) & 16711935 | (N << 24 | N >>> 8) & 4278255360;
|
|
3564
3564
|
var D = s[m];
|
|
3565
|
-
D.high ^= N, D.low ^=
|
|
3565
|
+
D.high ^= N, D.low ^= O;
|
|
3566
3566
|
}
|
|
3567
|
-
for (var
|
|
3567
|
+
for (var x = 0; x < 24; x++) {
|
|
3568
3568
|
for (var j = 0; j < 5; j++) {
|
|
3569
|
-
for (var
|
|
3569
|
+
for (var l = 0, R = 0, o = 0; o < 5; o++) {
|
|
3570
3570
|
var D = s[j + 5 * o];
|
|
3571
|
-
|
|
3571
|
+
l ^= D.high, R ^= D.low;
|
|
3572
3572
|
}
|
|
3573
|
-
var
|
|
3574
|
-
|
|
3573
|
+
var T = c[j];
|
|
3574
|
+
T.high = l, T.low = R;
|
|
3575
3575
|
}
|
|
3576
3576
|
for (var j = 0; j < 5; j++)
|
|
3577
|
-
for (var
|
|
3577
|
+
for (var g = c[(j + 4) % 5], h = c[(j + 1) % 5], $ = h.high, J = h.low, l = g.high ^ ($ << 1 | J >>> 31), R = g.low ^ (J << 1 | $ >>> 31), o = 0; o < 5; o++) {
|
|
3578
3578
|
var D = s[j + 5 * o];
|
|
3579
|
-
D.high ^=
|
|
3579
|
+
D.high ^= l, D.low ^= R;
|
|
3580
3580
|
}
|
|
3581
3581
|
for (var U = 1; U < 25; U++) {
|
|
3582
|
-
var
|
|
3583
|
-
L < 32 ? (
|
|
3582
|
+
var l, R, D = s[U], K = D.high, _ = D.low, L = p[U];
|
|
3583
|
+
L < 32 ? (l = K << L | _ >>> 32 - L, R = _ << L | K >>> 32 - L) : (l = _ << L - 32 | K >>> 64 - L, R = K << L - 32 | _ >>> 64 - L);
|
|
3584
3584
|
var w = c[X[U]];
|
|
3585
|
-
w.high =
|
|
3585
|
+
w.high = l, w.low = R;
|
|
3586
3586
|
}
|
|
3587
3587
|
var E = c[0], W = s[0];
|
|
3588
3588
|
E.high = W.high, E.low = W.low;
|
|
@@ -3591,7 +3591,7 @@ function du() {
|
|
|
3591
3591
|
var U = j + 5 * o, D = s[U], bA = c[U], aA = c[(j + 1) % 5 + 5 * o], jA = c[(j + 2) % 5 + 5 * o];
|
|
3592
3592
|
D.high = bA.high ^ ~aA.high & jA.high, D.low = bA.low ^ ~aA.low & jA.low;
|
|
3593
3593
|
}
|
|
3594
|
-
var D = s[0], C = b[
|
|
3594
|
+
var D = s[0], C = b[x];
|
|
3595
3595
|
D.high ^= C.high, D.low ^= C.low;
|
|
3596
3596
|
}
|
|
3597
3597
|
},
|
|
@@ -3600,11 +3600,11 @@ function du() {
|
|
|
3600
3600
|
this._nDataBytes * 8;
|
|
3601
3601
|
var s = i.sigBytes * 8, q = this.blockSize * 32;
|
|
3602
3602
|
H[s >>> 5] |= 1 << 24 - s % 32, H[(v.ceil((s + 1) / q) * q >>> 5) - 1] |= 128, i.sigBytes = H.length * 4, this._process();
|
|
3603
|
-
for (var m = this._state,
|
|
3604
|
-
var j = m[
|
|
3605
|
-
|
|
3603
|
+
for (var m = this._state, O = this.cfg.outputLength / 8, N = O / 8, D = [], x = 0; x < N; x++) {
|
|
3604
|
+
var j = m[x], l = j.high, R = j.low;
|
|
3605
|
+
l = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, D.push(R), D.push(l);
|
|
3606
3606
|
}
|
|
3607
|
-
return new P.init(D,
|
|
3607
|
+
return new P.init(D, O);
|
|
3608
3608
|
},
|
|
3609
3609
|
clone: function() {
|
|
3610
3610
|
for (var i = u.clone.call(this), H = i._state = this._state.slice(0), s = 0; s < 25; s++)
|
|
@@ -3963,46 +3963,46 @@ function zu() {
|
|
|
3963
3963
|
this._hash = P.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
3964
3964
|
},
|
|
3965
3965
|
_doProcessBlock: function(N, D) {
|
|
3966
|
-
for (var
|
|
3967
|
-
var j = D +
|
|
3968
|
-
N[j] = (
|
|
3966
|
+
for (var x = 0; x < 16; x++) {
|
|
3967
|
+
var j = D + x, l = N[j];
|
|
3968
|
+
N[j] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
|
|
3969
3969
|
}
|
|
3970
|
-
var R = this._hash.words, o = b.words,
|
|
3970
|
+
var R = this._hash.words, o = b.words, T = c.words, g = t.words, h = z.words, $ = p.words, J = X.words, U, K, _, L, w, E, W, bA, aA, jA;
|
|
3971
3971
|
E = U = R[0], W = K = R[1], bA = _ = R[2], aA = L = R[3], jA = w = R[4];
|
|
3972
|
-
for (var C,
|
|
3973
|
-
C = U + N[D +
|
|
3972
|
+
for (var C, x = 0; x < 80; x += 1)
|
|
3973
|
+
C = U + N[D + g[x]] | 0, x < 16 ? C += i(K, _, L) + o[0] : x < 32 ? C += H(K, _, L) + o[1] : x < 48 ? C += s(K, _, L) + o[2] : x < 64 ? C += q(K, _, L) + o[3] : C += m(K, _, L) + o[4], C = C | 0, C = O(C, $[x]), C = C + w | 0, U = w, w = L, L = O(_, 10), _ = K, K = C, C = E + N[D + h[x]] | 0, x < 16 ? C += m(W, bA, aA) + T[0] : x < 32 ? C += q(W, bA, aA) + T[1] : x < 48 ? C += s(W, bA, aA) + T[2] : x < 64 ? C += H(W, bA, aA) + T[3] : C += i(W, bA, aA) + T[4], C = C | 0, C = O(C, J[x]), C = C + jA | 0, E = jA, jA = aA, aA = O(bA, 10), bA = W, W = C;
|
|
3974
3974
|
C = R[1] + _ + aA | 0, R[1] = R[2] + L + jA | 0, R[2] = R[3] + w + E | 0, R[3] = R[4] + U + W | 0, R[4] = R[0] + K + bA | 0, R[0] = C;
|
|
3975
3975
|
},
|
|
3976
3976
|
_doFinalize: function() {
|
|
3977
|
-
var N = this._data, D = N.words,
|
|
3978
|
-
D[j >>> 5] |= 128 << 24 - j % 32, D[(j + 64 >>> 9 << 4) + 14] = (
|
|
3979
|
-
for (var
|
|
3980
|
-
var
|
|
3981
|
-
R[o] = (
|
|
3977
|
+
var N = this._data, D = N.words, x = this._nDataBytes * 8, j = N.sigBytes * 8;
|
|
3978
|
+
D[j >>> 5] |= 128 << 24 - j % 32, D[(j + 64 >>> 9 << 4) + 14] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, N.sigBytes = (D.length + 1) * 4, this._process();
|
|
3979
|
+
for (var l = this._hash, R = l.words, o = 0; o < 5; o++) {
|
|
3980
|
+
var T = R[o];
|
|
3981
|
+
R[o] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360;
|
|
3982
3982
|
}
|
|
3983
|
-
return
|
|
3983
|
+
return l;
|
|
3984
3984
|
},
|
|
3985
3985
|
clone: function() {
|
|
3986
3986
|
var N = u.clone.call(this);
|
|
3987
3987
|
return N._hash = this._hash.clone(), N;
|
|
3988
3988
|
}
|
|
3989
3989
|
});
|
|
3990
|
-
function i(N, D,
|
|
3991
|
-
return N ^ D ^
|
|
3990
|
+
function i(N, D, x) {
|
|
3991
|
+
return N ^ D ^ x;
|
|
3992
3992
|
}
|
|
3993
|
-
function H(N, D,
|
|
3994
|
-
return N & D | ~N &
|
|
3993
|
+
function H(N, D, x) {
|
|
3994
|
+
return N & D | ~N & x;
|
|
3995
3995
|
}
|
|
3996
|
-
function s(N, D,
|
|
3997
|
-
return (N | ~D) ^
|
|
3996
|
+
function s(N, D, x) {
|
|
3997
|
+
return (N | ~D) ^ x;
|
|
3998
3998
|
}
|
|
3999
|
-
function q(N, D,
|
|
4000
|
-
return N &
|
|
3999
|
+
function q(N, D, x) {
|
|
4000
|
+
return N & x | D & ~x;
|
|
4001
4001
|
}
|
|
4002
|
-
function m(N, D,
|
|
4003
|
-
return N ^ (D | ~
|
|
4002
|
+
function m(N, D, x) {
|
|
4003
|
+
return N ^ (D | ~x);
|
|
4004
4004
|
}
|
|
4005
|
-
function
|
|
4005
|
+
function O(N, D) {
|
|
4006
4006
|
return N << D | N >>> 32 - D;
|
|
4007
4007
|
}
|
|
4008
4008
|
r.RIPEMD160 = u._createHelper(a), r.HmacRIPEMD160 = u._createHmacHelper(a);
|
|
@@ -4136,14 +4136,14 @@ function Xu() {
|
|
|
4136
4136
|
*/
|
|
4137
4137
|
compute: function(p, X) {
|
|
4138
4138
|
for (var b = this.cfg, c = t.create(b.hasher, p), a = P.create(), i = P.create([1]), H = a.words, s = i.words, q = b.keySize, m = b.iterations; H.length < q; ) {
|
|
4139
|
-
var
|
|
4139
|
+
var O = c.update(X).finalize(i);
|
|
4140
4140
|
c.reset();
|
|
4141
|
-
for (var N =
|
|
4142
|
-
|
|
4143
|
-
for (var
|
|
4144
|
-
N[R] ^=
|
|
4141
|
+
for (var N = O.words, D = N.length, x = O, j = 1; j < m; j++) {
|
|
4142
|
+
x = c.finalize(x), c.reset();
|
|
4143
|
+
for (var l = x.words, R = 0; R < D; R++)
|
|
4144
|
+
N[R] ^= l[R];
|
|
4145
4145
|
}
|
|
4146
|
-
a.concat(
|
|
4146
|
+
a.concat(O), s[0]++;
|
|
4147
4147
|
}
|
|
4148
4148
|
return a.sigBytes = q * 4, a;
|
|
4149
4149
|
}
|
|
@@ -4248,8 +4248,8 @@ function TA() {
|
|
|
4248
4248
|
*
|
|
4249
4249
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
4250
4250
|
*/
|
|
4251
|
-
createEncryptor: function(
|
|
4252
|
-
return this.create(this._ENC_XFORM_MODE,
|
|
4251
|
+
createEncryptor: function(l, R) {
|
|
4252
|
+
return this.create(this._ENC_XFORM_MODE, l, R);
|
|
4253
4253
|
},
|
|
4254
4254
|
/**
|
|
4255
4255
|
* Creates this cipher in decryption mode.
|
|
@@ -4265,8 +4265,8 @@ function TA() {
|
|
|
4265
4265
|
*
|
|
4266
4266
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
4267
4267
|
*/
|
|
4268
|
-
createDecryptor: function(
|
|
4269
|
-
return this.create(this._DEC_XFORM_MODE,
|
|
4268
|
+
createDecryptor: function(l, R) {
|
|
4269
|
+
return this.create(this._DEC_XFORM_MODE, l, R);
|
|
4270
4270
|
},
|
|
4271
4271
|
/**
|
|
4272
4272
|
* Initializes a newly created cipher.
|
|
@@ -4279,8 +4279,8 @@ function TA() {
|
|
|
4279
4279
|
*
|
|
4280
4280
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
4281
4281
|
*/
|
|
4282
|
-
init: function(
|
|
4283
|
-
this.cfg = this.cfg.extend(o), this._xformMode =
|
|
4282
|
+
init: function(l, R, o) {
|
|
4283
|
+
this.cfg = this.cfg.extend(o), this._xformMode = l, this._key = R, this.reset();
|
|
4284
4284
|
},
|
|
4285
4285
|
/**
|
|
4286
4286
|
* Resets this cipher to its initial state.
|
|
@@ -4304,8 +4304,8 @@ function TA() {
|
|
|
4304
4304
|
* var encrypted = cipher.process('data');
|
|
4305
4305
|
* var encrypted = cipher.process(wordArray);
|
|
4306
4306
|
*/
|
|
4307
|
-
process: function(
|
|
4308
|
-
return this._append(
|
|
4307
|
+
process: function(l) {
|
|
4308
|
+
return this._append(l), this._process();
|
|
4309
4309
|
},
|
|
4310
4310
|
/**
|
|
4311
4311
|
* Finalizes the encryption or decryption process.
|
|
@@ -4321,8 +4321,8 @@ function TA() {
|
|
|
4321
4321
|
* var encrypted = cipher.finalize('data');
|
|
4322
4322
|
* var encrypted = cipher.finalize(wordArray);
|
|
4323
4323
|
*/
|
|
4324
|
-
finalize: function(
|
|
4325
|
-
|
|
4324
|
+
finalize: function(l) {
|
|
4325
|
+
l && this._append(l);
|
|
4326
4326
|
var R = this._doFinalize();
|
|
4327
4327
|
return R;
|
|
4328
4328
|
},
|
|
@@ -4344,16 +4344,16 @@ function TA() {
|
|
|
4344
4344
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
4345
4345
|
*/
|
|
4346
4346
|
_createHelper: /* @__PURE__ */ function() {
|
|
4347
|
-
function
|
|
4347
|
+
function l(R) {
|
|
4348
4348
|
return typeof R == "string" ? j : N;
|
|
4349
4349
|
}
|
|
4350
4350
|
return function(R) {
|
|
4351
4351
|
return {
|
|
4352
|
-
encrypt: function(o,
|
|
4353
|
-
return
|
|
4352
|
+
encrypt: function(o, T, g) {
|
|
4353
|
+
return l(T).encrypt(R, o, T, g);
|
|
4354
4354
|
},
|
|
4355
|
-
decrypt: function(o,
|
|
4356
|
-
return
|
|
4355
|
+
decrypt: function(o, T, g) {
|
|
4356
|
+
return l(T).decrypt(R, o, T, g);
|
|
4357
4357
|
}
|
|
4358
4358
|
};
|
|
4359
4359
|
};
|
|
@@ -4361,8 +4361,8 @@ function TA() {
|
|
|
4361
4361
|
});
|
|
4362
4362
|
n.StreamCipher = b.extend({
|
|
4363
4363
|
_doFinalize: function() {
|
|
4364
|
-
var
|
|
4365
|
-
return
|
|
4364
|
+
var l = this._process(!0);
|
|
4365
|
+
return l;
|
|
4366
4366
|
},
|
|
4367
4367
|
blockSize: 1
|
|
4368
4368
|
});
|
|
@@ -4379,8 +4379,8 @@ function TA() {
|
|
|
4379
4379
|
*
|
|
4380
4380
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
4381
4381
|
*/
|
|
4382
|
-
createEncryptor: function(
|
|
4383
|
-
return this.Encryptor.create(
|
|
4382
|
+
createEncryptor: function(l, R) {
|
|
4383
|
+
return this.Encryptor.create(l, R);
|
|
4384
4384
|
},
|
|
4385
4385
|
/**
|
|
4386
4386
|
* Creates this mode for decryption.
|
|
@@ -4394,8 +4394,8 @@ function TA() {
|
|
|
4394
4394
|
*
|
|
4395
4395
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
4396
4396
|
*/
|
|
4397
|
-
createDecryptor: function(
|
|
4398
|
-
return this.Decryptor.create(
|
|
4397
|
+
createDecryptor: function(l, R) {
|
|
4398
|
+
return this.Decryptor.create(l, R);
|
|
4399
4399
|
},
|
|
4400
4400
|
/**
|
|
4401
4401
|
* Initializes a newly created mode.
|
|
@@ -4407,12 +4407,12 @@ function TA() {
|
|
|
4407
4407
|
*
|
|
4408
4408
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
4409
4409
|
*/
|
|
4410
|
-
init: function(
|
|
4411
|
-
this._cipher =
|
|
4410
|
+
init: function(l, R) {
|
|
4411
|
+
this._cipher = l, this._iv = R;
|
|
4412
4412
|
}
|
|
4413
4413
|
}), i = c.CBC = function() {
|
|
4414
|
-
var
|
|
4415
|
-
|
|
4414
|
+
var l = a.extend();
|
|
4415
|
+
l.Encryptor = l.extend({
|
|
4416
4416
|
/**
|
|
4417
4417
|
* Processes the data block at offset.
|
|
4418
4418
|
*
|
|
@@ -4423,11 +4423,11 @@ function TA() {
|
|
|
4423
4423
|
*
|
|
4424
4424
|
* mode.processBlock(data.words, offset);
|
|
4425
4425
|
*/
|
|
4426
|
-
processBlock: function(o,
|
|
4427
|
-
var
|
|
4428
|
-
R.call(this, o,
|
|
4426
|
+
processBlock: function(o, T) {
|
|
4427
|
+
var g = this._cipher, h = g.blockSize;
|
|
4428
|
+
R.call(this, o, T, h), g.encryptBlock(o, T), this._prevBlock = o.slice(T, T + h);
|
|
4429
4429
|
}
|
|
4430
|
-
}),
|
|
4430
|
+
}), l.Decryptor = l.extend({
|
|
4431
4431
|
/**
|
|
4432
4432
|
* Processes the data block at offset.
|
|
4433
4433
|
*
|
|
@@ -4438,18 +4438,18 @@ function TA() {
|
|
|
4438
4438
|
*
|
|
4439
4439
|
* mode.processBlock(data.words, offset);
|
|
4440
4440
|
*/
|
|
4441
|
-
processBlock: function(o,
|
|
4442
|
-
var
|
|
4443
|
-
|
|
4441
|
+
processBlock: function(o, T) {
|
|
4442
|
+
var g = this._cipher, h = g.blockSize, $ = o.slice(T, T + h);
|
|
4443
|
+
g.decryptBlock(o, T), R.call(this, o, T, h), this._prevBlock = $;
|
|
4444
4444
|
}
|
|
4445
4445
|
});
|
|
4446
|
-
function R(o,
|
|
4446
|
+
function R(o, T, g) {
|
|
4447
4447
|
var h, $ = this._iv;
|
|
4448
4448
|
$ ? (h = $, this._iv = v) : h = this._prevBlock;
|
|
4449
|
-
for (var J = 0; J <
|
|
4450
|
-
o[
|
|
4449
|
+
for (var J = 0; J < g; J++)
|
|
4450
|
+
o[T + J] ^= h[J];
|
|
4451
4451
|
}
|
|
4452
|
-
return
|
|
4452
|
+
return l;
|
|
4453
4453
|
}(), H = r.pad = {}, s = H.Pkcs7 = {
|
|
4454
4454
|
/**
|
|
4455
4455
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
@@ -4463,11 +4463,11 @@ function TA() {
|
|
|
4463
4463
|
*
|
|
4464
4464
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
4465
4465
|
*/
|
|
4466
|
-
pad: function(
|
|
4467
|
-
for (var o = R * 4,
|
|
4468
|
-
h.push(
|
|
4469
|
-
var J = u.create(h,
|
|
4470
|
-
|
|
4466
|
+
pad: function(l, R) {
|
|
4467
|
+
for (var o = R * 4, T = o - l.sigBytes % o, g = T << 24 | T << 16 | T << 8 | T, h = [], $ = 0; $ < T; $ += 4)
|
|
4468
|
+
h.push(g);
|
|
4469
|
+
var J = u.create(h, T);
|
|
4470
|
+
l.concat(J);
|
|
4471
4471
|
},
|
|
4472
4472
|
/**
|
|
4473
4473
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -4480,9 +4480,9 @@ function TA() {
|
|
|
4480
4480
|
*
|
|
4481
4481
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
4482
4482
|
*/
|
|
4483
|
-
unpad: function(
|
|
4484
|
-
var R =
|
|
4485
|
-
|
|
4483
|
+
unpad: function(l) {
|
|
4484
|
+
var R = l.words[l.sigBytes - 1 >>> 2] & 255;
|
|
4485
|
+
l.sigBytes -= R;
|
|
4486
4486
|
}
|
|
4487
4487
|
};
|
|
4488
4488
|
n.BlockCipher = b.extend({
|
|
@@ -4497,17 +4497,17 @@ function TA() {
|
|
|
4497
4497
|
padding: s
|
|
4498
4498
|
}),
|
|
4499
4499
|
reset: function() {
|
|
4500
|
-
var
|
|
4500
|
+
var l;
|
|
4501
4501
|
b.reset.call(this);
|
|
4502
|
-
var R = this.cfg, o = R.iv,
|
|
4503
|
-
this._xformMode == this._ENC_XFORM_MODE ?
|
|
4502
|
+
var R = this.cfg, o = R.iv, T = R.mode;
|
|
4503
|
+
this._xformMode == this._ENC_XFORM_MODE ? l = T.createEncryptor : (l = T.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == l ? this._mode.init(this, o && o.words) : (this._mode = l.call(T, this, o && o.words), this._mode.__creator = l);
|
|
4504
4504
|
},
|
|
4505
|
-
_doProcessBlock: function(
|
|
4506
|
-
this._mode.processBlock(
|
|
4505
|
+
_doProcessBlock: function(l, R) {
|
|
4506
|
+
this._mode.processBlock(l, R);
|
|
4507
4507
|
},
|
|
4508
4508
|
_doFinalize: function() {
|
|
4509
|
-
var
|
|
4510
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (R.pad(this._data, this.blockSize),
|
|
4509
|
+
var l, R = this.cfg.padding;
|
|
4510
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (R.pad(this._data, this.blockSize), l = this._process(!0)) : (l = this._process(!0), R.unpad(l)), l;
|
|
4511
4511
|
},
|
|
4512
4512
|
blockSize: 128 / 32
|
|
4513
4513
|
});
|
|
@@ -4531,8 +4531,8 @@ function TA() {
|
|
|
4531
4531
|
* formatter: CryptoJS.format.OpenSSL
|
|
4532
4532
|
* });
|
|
4533
4533
|
*/
|
|
4534
|
-
init: function(
|
|
4535
|
-
this.mixIn(
|
|
4534
|
+
init: function(l) {
|
|
4535
|
+
this.mixIn(l);
|
|
4536
4536
|
},
|
|
4537
4537
|
/**
|
|
4538
4538
|
* Converts this cipher params object to a string.
|
|
@@ -4549,10 +4549,10 @@ function TA() {
|
|
|
4549
4549
|
* var string = cipherParams.toString();
|
|
4550
4550
|
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
4551
4551
|
*/
|
|
4552
|
-
toString: function(
|
|
4553
|
-
return (
|
|
4552
|
+
toString: function(l) {
|
|
4553
|
+
return (l || this.formatter).stringify(this);
|
|
4554
4554
|
}
|
|
4555
|
-
}), m = r.format = {},
|
|
4555
|
+
}), m = r.format = {}, O = m.OpenSSL = {
|
|
4556
4556
|
/**
|
|
4557
4557
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
4558
4558
|
*
|
|
@@ -4566,9 +4566,9 @@ function TA() {
|
|
|
4566
4566
|
*
|
|
4567
4567
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
4568
4568
|
*/
|
|
4569
|
-
stringify: function(
|
|
4570
|
-
var R, o =
|
|
4571
|
-
return
|
|
4569
|
+
stringify: function(l) {
|
|
4570
|
+
var R, o = l.ciphertext, T = l.salt;
|
|
4571
|
+
return T ? R = u.create([1398893684, 1701076831]).concat(T).concat(o) : R = o, R.toString(z);
|
|
4572
4572
|
},
|
|
4573
4573
|
/**
|
|
4574
4574
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -4583,9 +4583,9 @@ function TA() {
|
|
|
4583
4583
|
*
|
|
4584
4584
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
4585
4585
|
*/
|
|
4586
|
-
parse: function(
|
|
4587
|
-
var R, o = z.parse(
|
|
4588
|
-
return
|
|
4586
|
+
parse: function(l) {
|
|
4587
|
+
var R, o = z.parse(l), T = o.words;
|
|
4588
|
+
return T[0] == 1398893684 && T[1] == 1701076831 && (R = u.create(T.slice(2, 4)), T.splice(0, 4), o.sigBytes -= 16), q.create({ ciphertext: o, salt: R });
|
|
4589
4589
|
}
|
|
4590
4590
|
}, N = n.SerializableCipher = P.extend({
|
|
4591
4591
|
/**
|
|
@@ -4594,7 +4594,7 @@ function TA() {
|
|
|
4594
4594
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
4595
4595
|
*/
|
|
4596
4596
|
cfg: P.extend({
|
|
4597
|
-
format:
|
|
4597
|
+
format: O
|
|
4598
4598
|
}),
|
|
4599
4599
|
/**
|
|
4600
4600
|
* Encrypts a message.
|
|
@@ -4614,18 +4614,18 @@ function TA() {
|
|
|
4614
4614
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
4615
4615
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
4616
4616
|
*/
|
|
4617
|
-
encrypt: function(
|
|
4618
|
-
|
|
4619
|
-
var
|
|
4617
|
+
encrypt: function(l, R, o, T) {
|
|
4618
|
+
T = this.cfg.extend(T);
|
|
4619
|
+
var g = l.createEncryptor(o, T), h = g.finalize(R), $ = g.cfg;
|
|
4620
4620
|
return q.create({
|
|
4621
4621
|
ciphertext: h,
|
|
4622
4622
|
key: o,
|
|
4623
4623
|
iv: $.iv,
|
|
4624
|
-
algorithm:
|
|
4624
|
+
algorithm: l,
|
|
4625
4625
|
mode: $.mode,
|
|
4626
4626
|
padding: $.padding,
|
|
4627
|
-
blockSize:
|
|
4628
|
-
formatter:
|
|
4627
|
+
blockSize: l.blockSize,
|
|
4628
|
+
formatter: T.format
|
|
4629
4629
|
});
|
|
4630
4630
|
},
|
|
4631
4631
|
/**
|
|
@@ -4645,10 +4645,10 @@ function TA() {
|
|
|
4645
4645
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
4646
4646
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
4647
4647
|
*/
|
|
4648
|
-
decrypt: function(
|
|
4649
|
-
|
|
4650
|
-
var
|
|
4651
|
-
return
|
|
4648
|
+
decrypt: function(l, R, o, T) {
|
|
4649
|
+
T = this.cfg.extend(T), R = this._parse(R, T.format);
|
|
4650
|
+
var g = l.createDecryptor(o, T).finalize(R.ciphertext);
|
|
4651
|
+
return g;
|
|
4652
4652
|
},
|
|
4653
4653
|
/**
|
|
4654
4654
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -4665,10 +4665,10 @@ function TA() {
|
|
|
4665
4665
|
*
|
|
4666
4666
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
4667
4667
|
*/
|
|
4668
|
-
_parse: function(
|
|
4669
|
-
return typeof
|
|
4668
|
+
_parse: function(l, R) {
|
|
4669
|
+
return typeof l == "string" ? R.parse(l, this) : l;
|
|
4670
4670
|
}
|
|
4671
|
-
}), D = r.kdf = {},
|
|
4671
|
+
}), D = r.kdf = {}, x = D.OpenSSL = {
|
|
4672
4672
|
/**
|
|
4673
4673
|
* Derives a key and IV from a password.
|
|
4674
4674
|
*
|
|
@@ -4686,13 +4686,13 @@ function TA() {
|
|
|
4686
4686
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
4687
4687
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
4688
4688
|
*/
|
|
4689
|
-
execute: function(
|
|
4690
|
-
if (
|
|
4691
|
-
var h = X.create({ keySize: R + o, hasher:
|
|
4689
|
+
execute: function(l, R, o, T, g) {
|
|
4690
|
+
if (T || (T = u.random(64 / 8)), g)
|
|
4691
|
+
var h = X.create({ keySize: R + o, hasher: g }).compute(l, T);
|
|
4692
4692
|
else
|
|
4693
|
-
var h = X.create({ keySize: R + o }).compute(
|
|
4693
|
+
var h = X.create({ keySize: R + o }).compute(l, T);
|
|
4694
4694
|
var $ = u.create(h.words.slice(R), o * 4);
|
|
4695
|
-
return h.sigBytes = R * 4, q.create({ key: h, iv: $, salt:
|
|
4695
|
+
return h.sigBytes = R * 4, q.create({ key: h, iv: $, salt: T });
|
|
4696
4696
|
}
|
|
4697
4697
|
}, j = n.PasswordBasedCipher = N.extend({
|
|
4698
4698
|
/**
|
|
@@ -4701,7 +4701,7 @@ function TA() {
|
|
|
4701
4701
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
4702
4702
|
*/
|
|
4703
4703
|
cfg: N.cfg.extend({
|
|
4704
|
-
kdf:
|
|
4704
|
+
kdf: x
|
|
4705
4705
|
}),
|
|
4706
4706
|
/**
|
|
4707
4707
|
* Encrypts a message using a password.
|
|
@@ -4720,12 +4720,12 @@ function TA() {
|
|
|
4720
4720
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
4721
4721
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
4722
4722
|
*/
|
|
4723
|
-
encrypt: function(
|
|
4724
|
-
|
|
4725
|
-
var
|
|
4726
|
-
|
|
4727
|
-
var h = N.encrypt.call(this,
|
|
4728
|
-
return h.mixIn(
|
|
4723
|
+
encrypt: function(l, R, o, T) {
|
|
4724
|
+
T = this.cfg.extend(T);
|
|
4725
|
+
var g = T.kdf.execute(o, l.keySize, l.ivSize, T.salt, T.hasher);
|
|
4726
|
+
T.iv = g.iv;
|
|
4727
|
+
var h = N.encrypt.call(this, l, R, g.key, T);
|
|
4728
|
+
return h.mixIn(g), h;
|
|
4729
4729
|
},
|
|
4730
4730
|
/**
|
|
4731
4731
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -4744,11 +4744,11 @@ function TA() {
|
|
|
4744
4744
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
4745
4745
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
4746
4746
|
*/
|
|
4747
|
-
decrypt: function(
|
|
4748
|
-
|
|
4749
|
-
var
|
|
4750
|
-
|
|
4751
|
-
var h = N.decrypt.call(this,
|
|
4747
|
+
decrypt: function(l, R, o, T) {
|
|
4748
|
+
T = this.cfg.extend(T), R = this._parse(R, T.format);
|
|
4749
|
+
var g = T.kdf.execute(o, l.keySize, l.ivSize, R.salt, T.hasher);
|
|
4750
|
+
T.iv = g.iv;
|
|
4751
|
+
var h = N.decrypt.call(this, l, R, g.key, T);
|
|
4752
4752
|
return h;
|
|
4753
4753
|
}
|
|
4754
4754
|
});
|
|
@@ -5038,28 +5038,28 @@ function Ou() {
|
|
|
5038
5038
|
(function() {
|
|
5039
5039
|
for (var q = [], m = 0; m < 256; m++)
|
|
5040
5040
|
m < 128 ? q[m] = m << 1 : q[m] = m << 1 ^ 283;
|
|
5041
|
-
for (var
|
|
5041
|
+
for (var O = 0, N = 0, m = 0; m < 256; m++) {
|
|
5042
5042
|
var D = N ^ N << 1 ^ N << 2 ^ N << 3 ^ N << 4;
|
|
5043
|
-
D = D >>> 8 ^ D & 255 ^ 99, u[
|
|
5044
|
-
var
|
|
5045
|
-
t[
|
|
5046
|
-
var R =
|
|
5047
|
-
b[D] = R << 24 | R >>> 8, c[D] = R << 16 | R >>> 16, a[D] = R << 8 | R >>> 24, i[D] = R,
|
|
5043
|
+
D = D >>> 8 ^ D & 255 ^ 99, u[O] = D, d[D] = O;
|
|
5044
|
+
var x = q[O], j = q[x], l = q[j], R = q[D] * 257 ^ D * 16843008;
|
|
5045
|
+
t[O] = R << 24 | R >>> 8, z[O] = R << 16 | R >>> 16, p[O] = R << 8 | R >>> 24, X[O] = R;
|
|
5046
|
+
var R = l * 16843009 ^ j * 65537 ^ x * 257 ^ O * 16843008;
|
|
5047
|
+
b[D] = R << 24 | R >>> 8, c[D] = R << 16 | R >>> 16, a[D] = R << 8 | R >>> 24, i[D] = R, O ? (O = x ^ q[q[q[l ^ x]]], N ^= q[q[N]]) : O = N = 1;
|
|
5048
5048
|
}
|
|
5049
5049
|
})();
|
|
5050
5050
|
var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s = P.AES = n.extend({
|
|
5051
5051
|
_doReset: function() {
|
|
5052
5052
|
var q;
|
|
5053
5053
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
5054
|
-
for (var m = this._keyPriorReset = this._key,
|
|
5055
|
-
|
|
5056
|
-
for (var R = this._invKeySchedule = [], o = 0; o <
|
|
5057
|
-
var
|
|
5054
|
+
for (var m = this._keyPriorReset = this._key, O = m.words, N = m.sigBytes / 4, D = this._nRounds = N + 6, x = (D + 1) * 4, j = this._keySchedule = [], l = 0; l < x; l++)
|
|
5055
|
+
l < N ? j[l] = O[l] : (q = j[l - 1], l % N ? N > 6 && l % N == 4 && (q = u[q >>> 24] << 24 | u[q >>> 16 & 255] << 16 | u[q >>> 8 & 255] << 8 | u[q & 255]) : (q = q << 8 | q >>> 24, q = u[q >>> 24] << 24 | u[q >>> 16 & 255] << 16 | u[q >>> 8 & 255] << 8 | u[q & 255], q ^= H[l / N | 0] << 24), j[l] = j[l - N] ^ q);
|
|
5056
|
+
for (var R = this._invKeySchedule = [], o = 0; o < x; o++) {
|
|
5057
|
+
var l = x - o;
|
|
5058
5058
|
if (o % 4)
|
|
5059
|
-
var q = j[
|
|
5059
|
+
var q = j[l];
|
|
5060
5060
|
else
|
|
5061
|
-
var q = j[
|
|
5062
|
-
o < 4 ||
|
|
5061
|
+
var q = j[l - 4];
|
|
5062
|
+
o < 4 || l <= 4 ? R[o] = q : R[o] = b[u[q >>> 24]] ^ c[u[q >>> 16 & 255]] ^ a[u[q >>> 8 & 255]] ^ i[u[q & 255]];
|
|
5063
5063
|
}
|
|
5064
5064
|
}
|
|
5065
5065
|
},
|
|
@@ -5067,17 +5067,17 @@ function Ou() {
|
|
|
5067
5067
|
this._doCryptBlock(q, m, this._keySchedule, t, z, p, X, u);
|
|
5068
5068
|
},
|
|
5069
5069
|
decryptBlock: function(q, m) {
|
|
5070
|
-
var
|
|
5071
|
-
q[m + 1] = q[m + 3], q[m + 3] =
|
|
5072
|
-
var
|
|
5073
|
-
q[m + 1] = q[m + 3], q[m + 3] =
|
|
5070
|
+
var O = q[m + 1];
|
|
5071
|
+
q[m + 1] = q[m + 3], q[m + 3] = O, this._doCryptBlock(q, m, this._invKeySchedule, b, c, a, i, d);
|
|
5072
|
+
var O = q[m + 1];
|
|
5073
|
+
q[m + 1] = q[m + 3], q[m + 3] = O;
|
|
5074
5074
|
},
|
|
5075
|
-
_doCryptBlock: function(q, m,
|
|
5076
|
-
for (var R = this._nRounds, o = q[m] ^
|
|
5077
|
-
var U = N[o >>> 24] ^ D[
|
|
5078
|
-
o = U,
|
|
5075
|
+
_doCryptBlock: function(q, m, O, N, D, x, j, l) {
|
|
5076
|
+
for (var R = this._nRounds, o = q[m] ^ O[0], T = q[m + 1] ^ O[1], g = q[m + 2] ^ O[2], h = q[m + 3] ^ O[3], $ = 4, J = 1; J < R; J++) {
|
|
5077
|
+
var U = N[o >>> 24] ^ D[T >>> 16 & 255] ^ x[g >>> 8 & 255] ^ j[h & 255] ^ O[$++], K = N[T >>> 24] ^ D[g >>> 16 & 255] ^ x[h >>> 8 & 255] ^ j[o & 255] ^ O[$++], _ = N[g >>> 24] ^ D[h >>> 16 & 255] ^ x[o >>> 8 & 255] ^ j[T & 255] ^ O[$++], L = N[h >>> 24] ^ D[o >>> 16 & 255] ^ x[T >>> 8 & 255] ^ j[g & 255] ^ O[$++];
|
|
5078
|
+
o = U, T = K, g = _, h = L;
|
|
5079
5079
|
}
|
|
5080
|
-
var U = (
|
|
5080
|
+
var U = (l[o >>> 24] << 24 | l[T >>> 16 & 255] << 16 | l[g >>> 8 & 255] << 8 | l[h & 255]) ^ O[$++], K = (l[T >>> 24] << 24 | l[g >>> 16 & 255] << 16 | l[h >>> 8 & 255] << 8 | l[o & 255]) ^ O[$++], _ = (l[g >>> 24] << 24 | l[h >>> 16 & 255] << 16 | l[o >>> 8 & 255] << 8 | l[T & 255]) ^ O[$++], L = (l[h >>> 24] << 24 | l[o >>> 16 & 255] << 16 | l[T >>> 8 & 255] << 8 | l[g & 255]) ^ O[$++];
|
|
5081
5081
|
q[m] = U, q[m + 1] = K, q[m + 2] = _, q[m + 3] = L;
|
|
5082
5082
|
},
|
|
5083
5083
|
keySize: 256 / 32
|
|
@@ -5741,19 +5741,19 @@ function Du() {
|
|
|
5741
5741
|
], b = u.DES = P.extend({
|
|
5742
5742
|
_doReset: function() {
|
|
5743
5743
|
for (var H = this._key, s = H.words, q = [], m = 0; m < 56; m++) {
|
|
5744
|
-
var
|
|
5745
|
-
q[m] = s[
|
|
5744
|
+
var O = d[m] - 1;
|
|
5745
|
+
q[m] = s[O >>> 5] >>> 31 - O % 32 & 1;
|
|
5746
5746
|
}
|
|
5747
5747
|
for (var N = this._subKeys = [], D = 0; D < 16; D++) {
|
|
5748
|
-
for (var
|
|
5749
|
-
|
|
5750
|
-
|
|
5748
|
+
for (var x = N[D] = [], j = z[D], m = 0; m < 24; m++)
|
|
5749
|
+
x[m / 6 | 0] |= q[(t[m] - 1 + j) % 28] << 31 - m % 6, x[4 + (m / 6 | 0)] |= q[28 + (t[m + 24] - 1 + j) % 28] << 31 - m % 6;
|
|
5750
|
+
x[0] = x[0] << 1 | x[0] >>> 31;
|
|
5751
5751
|
for (var m = 1; m < 7; m++)
|
|
5752
|
-
|
|
5753
|
-
|
|
5752
|
+
x[m] = x[m] >>> (m - 1) * 4 + 3;
|
|
5753
|
+
x[7] = x[7] << 5 | x[7] >>> 27;
|
|
5754
5754
|
}
|
|
5755
|
-
for (var
|
|
5756
|
-
|
|
5755
|
+
for (var l = this._invSubKeys = [], m = 0; m < 16; m++)
|
|
5756
|
+
l[m] = N[15 - m];
|
|
5757
5757
|
},
|
|
5758
5758
|
encryptBlock: function(H, s) {
|
|
5759
5759
|
this._doCryptBlock(H, s, this._subKeys);
|
|
@@ -5764,12 +5764,12 @@ function Du() {
|
|
|
5764
5764
|
_doCryptBlock: function(H, s, q) {
|
|
5765
5765
|
this._lBlock = H[s], this._rBlock = H[s + 1], c.call(this, 4, 252645135), c.call(this, 16, 65535), a.call(this, 2, 858993459), a.call(this, 8, 16711935), c.call(this, 1, 1431655765);
|
|
5766
5766
|
for (var m = 0; m < 16; m++) {
|
|
5767
|
-
for (var
|
|
5768
|
-
|
|
5769
|
-
this._lBlock = D, this._rBlock = N ^
|
|
5767
|
+
for (var O = q[m], N = this._lBlock, D = this._rBlock, x = 0, j = 0; j < 8; j++)
|
|
5768
|
+
x |= p[j][((D ^ O[j]) & X[j]) >>> 0];
|
|
5769
|
+
this._lBlock = D, this._rBlock = N ^ x;
|
|
5770
5770
|
}
|
|
5771
|
-
var
|
|
5772
|
-
this._lBlock = this._rBlock, this._rBlock =
|
|
5771
|
+
var l = this._lBlock;
|
|
5772
|
+
this._lBlock = this._rBlock, this._rBlock = l, c.call(this, 1, 1431655765), a.call(this, 8, 16711935), a.call(this, 2, 858993459), c.call(this, 16, 65535), c.call(this, 4, 252645135), H[s] = this._lBlock, H[s + 1] = this._rBlock;
|
|
5773
5773
|
},
|
|
5774
5774
|
keySize: 64 / 32,
|
|
5775
5775
|
ivSize: 64 / 32,
|
|
@@ -5789,8 +5789,8 @@ function Du() {
|
|
|
5789
5789
|
var H = this._key, s = H.words;
|
|
5790
5790
|
if (s.length !== 2 && s.length !== 4 && s.length < 6)
|
|
5791
5791
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
5792
|
-
var q = s.slice(0, 2), m = s.length < 4 ? s.slice(0, 2) : s.slice(2, 4),
|
|
5793
|
-
this._des1 = b.createEncryptor(n.create(q)), this._des2 = b.createEncryptor(n.create(m)), this._des3 = b.createEncryptor(n.create(
|
|
5792
|
+
var q = s.slice(0, 2), m = s.length < 4 ? s.slice(0, 2) : s.slice(2, 4), O = s.length < 6 ? s.slice(0, 2) : s.slice(4, 6);
|
|
5793
|
+
this._des1 = b.createEncryptor(n.create(q)), this._des2 = b.createEncryptor(n.create(m)), this._des3 = b.createEncryptor(n.create(O));
|
|
5794
5794
|
},
|
|
5795
5795
|
encryptBlock: function(H, s) {
|
|
5796
5796
|
this._des1.encryptBlock(H, s), this._des2.decryptBlock(H, s), this._des3.encryptBlock(H, s);
|
|
@@ -5897,8 +5897,8 @@ function Nu() {
|
|
|
5897
5897
|
for (var c = 0; c < 8; c++)
|
|
5898
5898
|
i[c] ^= a[c + 4 & 7];
|
|
5899
5899
|
if (b) {
|
|
5900
|
-
var H = b.words, s = H[0], q = H[1], m = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360,
|
|
5901
|
-
i[0] ^= m, i[1] ^= N, i[2] ^=
|
|
5900
|
+
var H = b.words, s = H[0], q = H[1], m = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, O = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, N = m >>> 16 | O & 4294901760, D = O << 16 | m & 65535;
|
|
5901
|
+
i[0] ^= m, i[1] ^= N, i[2] ^= O, i[3] ^= D, i[4] ^= m, i[5] ^= N, i[6] ^= O, i[7] ^= D;
|
|
5902
5902
|
for (var c = 0; c < 4; c++)
|
|
5903
5903
|
p.call(this);
|
|
5904
5904
|
}
|
|
@@ -5961,8 +5961,8 @@ function Ru() {
|
|
|
5961
5961
|
for (var i = 0; i < 8; i++)
|
|
5962
5962
|
a[i] ^= c[i + 4 & 7];
|
|
5963
5963
|
if (b) {
|
|
5964
|
-
var H = b.words, s = H[0], q = H[1], m = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360,
|
|
5965
|
-
a[0] ^= m, a[1] ^= N, a[2] ^=
|
|
5964
|
+
var H = b.words, s = H[0], q = H[1], m = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, O = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, N = m >>> 16 | O & 4294901760, D = O << 16 | m & 65535;
|
|
5965
|
+
a[0] ^= m, a[1] ^= N, a[2] ^= O, a[3] ^= D, a[4] ^= m, a[5] ^= N, a[6] ^= O, a[7] ^= D;
|
|
5966
5966
|
for (var i = 0; i < 4; i++)
|
|
5967
5967
|
p.call(this);
|
|
5968
5968
|
}
|
|
@@ -7057,36 +7057,36 @@ function ju() {
|
|
|
7057
7057
|
sbox: []
|
|
7058
7058
|
};
|
|
7059
7059
|
function p(i, H) {
|
|
7060
|
-
let s = H >> 24 & 255, q = H >> 16 & 255, m = H >> 8 & 255,
|
|
7061
|
-
return N = N ^ i.sbox[2][m], N = N + i.sbox[3][
|
|
7060
|
+
let s = H >> 24 & 255, q = H >> 16 & 255, m = H >> 8 & 255, O = H & 255, N = i.sbox[0][s] + i.sbox[1][q];
|
|
7061
|
+
return N = N ^ i.sbox[2][m], N = N + i.sbox[3][O], N;
|
|
7062
7062
|
}
|
|
7063
7063
|
function X(i, H, s) {
|
|
7064
|
-
let q = H, m = s,
|
|
7064
|
+
let q = H, m = s, O;
|
|
7065
7065
|
for (let N = 0; N < u; ++N)
|
|
7066
|
-
q = q ^ i.pbox[N], m = p(i, q) ^ m,
|
|
7067
|
-
return
|
|
7066
|
+
q = q ^ i.pbox[N], m = p(i, q) ^ m, O = q, q = m, m = O;
|
|
7067
|
+
return O = q, q = m, m = O, m = m ^ i.pbox[u], q = q ^ i.pbox[u + 1], { left: q, right: m };
|
|
7068
7068
|
}
|
|
7069
7069
|
function b(i, H, s) {
|
|
7070
|
-
let q = H, m = s,
|
|
7070
|
+
let q = H, m = s, O;
|
|
7071
7071
|
for (let N = u + 1; N > 1; --N)
|
|
7072
|
-
q = q ^ i.pbox[N], m = p(i, q) ^ m,
|
|
7073
|
-
return
|
|
7072
|
+
q = q ^ i.pbox[N], m = p(i, q) ^ m, O = q, q = m, m = O;
|
|
7073
|
+
return O = q, q = m, m = O, m = m ^ i.pbox[1], q = q ^ i.pbox[0], { left: q, right: m };
|
|
7074
7074
|
}
|
|
7075
7075
|
function c(i, H, s) {
|
|
7076
7076
|
for (let D = 0; D < 4; D++) {
|
|
7077
7077
|
i.sbox[D] = [];
|
|
7078
|
-
for (let
|
|
7079
|
-
i.sbox[D][
|
|
7078
|
+
for (let x = 0; x < 256; x++)
|
|
7079
|
+
i.sbox[D][x] = t[D][x];
|
|
7080
7080
|
}
|
|
7081
7081
|
let q = 0;
|
|
7082
7082
|
for (let D = 0; D < u + 2; D++)
|
|
7083
7083
|
i.pbox[D] = d[D] ^ H[q], q++, q >= s && (q = 0);
|
|
7084
|
-
let m = 0,
|
|
7084
|
+
let m = 0, O = 0, N = 0;
|
|
7085
7085
|
for (let D = 0; D < u + 2; D += 2)
|
|
7086
|
-
N = X(i, m,
|
|
7086
|
+
N = X(i, m, O), m = N.left, O = N.right, i.pbox[D] = m, i.pbox[D + 1] = O;
|
|
7087
7087
|
for (let D = 0; D < 4; D++)
|
|
7088
|
-
for (let
|
|
7089
|
-
N = X(i, m,
|
|
7088
|
+
for (let x = 0; x < 256; x += 2)
|
|
7089
|
+
N = X(i, m, O), m = N.left, O = N.right, i.sbox[D][x] = m, i.sbox[D][x + 1] = O;
|
|
7090
7090
|
return !0;
|
|
7091
7091
|
}
|
|
7092
7092
|
var a = P.Blowfish = n.extend({
|
|
@@ -7994,7 +7994,10 @@ const k9 = (f, A = "") => {
|
|
|
7994
7994
|
GP(e, f);
|
|
7995
7995
|
const v = fe(e);
|
|
7996
7996
|
JP(v, f), FP(v, f);
|
|
7997
|
-
let r = yr(
|
|
7997
|
+
let r = yr(
|
|
7998
|
+
e,
|
|
7999
|
+
(P) => P.isMenu && P.code !== "aiPlatform.dasaiassistant" && P.originalCode !== "aiPlatform.dasaiassistant"
|
|
8000
|
+
);
|
|
7998
8001
|
const n = Ce(r);
|
|
7999
8002
|
return r.forEach((P) => {
|
|
8000
8003
|
P != null && P.children && P.children.length && (P.originalChildren = Ce(P.children)), (P != null && P.expired || P != null && P.disable) && (P.children = []);
|
|
@@ -8020,26 +8023,26 @@ const k9 = (f, A = "") => {
|
|
|
8020
8023
|
if (H) {
|
|
8021
8024
|
let s = !1;
|
|
8022
8025
|
d.forEach((m) => {
|
|
8023
|
-
m.routeUrl === "/deviceInstance" && (m.fixed = !0, m.divise = !0, m.menuCode = m.code, m.tagName = m.tabName =
|
|
8026
|
+
m.routeUrl === "/deviceInstance" && (m.fixed = !0, m.divise = !0, m.menuCode = m.code, m.tagName = m.tabName = k("实例"), m.name = H.instanceName, m.leftIcon = "change2", m.rightIcon = "change2");
|
|
8024
8027
|
});
|
|
8025
8028
|
const q = Lr(H.endTime) || H.endTime == 0 || H.endTime === 253370736e6 || H.endTime === "253370736000000" ? "-" : Number(H.endTime);
|
|
8026
8029
|
if (s = v7().endOf("day") > v7(q).endOf("day"), !e && !v && H.id && !s) {
|
|
8027
|
-
const
|
|
8028
|
-
|
|
8030
|
+
const O = fe(d).find((N) => N.routeUrl === "/statisticalReport");
|
|
8031
|
+
O && (e = O.code);
|
|
8029
8032
|
}
|
|
8030
8033
|
}
|
|
8031
8034
|
}
|
|
8032
8035
|
if (n && P) {
|
|
8033
8036
|
const H = fe(d), q = ((a = (IA().tabMap ?? {})[A.code]) == null ? void 0 : a.map((m) => {
|
|
8034
|
-
var
|
|
8037
|
+
var O, N;
|
|
8035
8038
|
return {
|
|
8036
8039
|
...m,
|
|
8037
|
-
name: ((
|
|
8040
|
+
name: ((O = H.find((D) => D.code === m.code)) == null ? void 0 : O.tabName) ?? ((N = H.find((D) => D.code === m.code)) == null ? void 0 : N.name) ?? m.name
|
|
8038
8041
|
};
|
|
8039
8042
|
})) ?? [];
|
|
8040
8043
|
if (q.length) {
|
|
8041
8044
|
const m = q.filter(
|
|
8042
|
-
(
|
|
8045
|
+
(O) => e && e === O.code || v && v === `/${O.applicationPath}${O.path}`.replace(/\/\//g, "/") || H.map((N) => N.code).includes(O.code)
|
|
8043
8046
|
);
|
|
8044
8047
|
hA([
|
|
8045
8048
|
{
|
|
@@ -8085,7 +8088,7 @@ const k9 = (f, A = "") => {
|
|
|
8085
8088
|
{ key: "currentSubAppCode", value: u },
|
|
8086
8089
|
{ key: "subAppList", value: m }
|
|
8087
8090
|
]);
|
|
8088
|
-
const
|
|
8091
|
+
const O = {
|
|
8089
8092
|
currentApplication: A.routeUrl,
|
|
8090
8093
|
applicationPath: p.applicationPath,
|
|
8091
8094
|
applicationCode: u,
|
|
@@ -8102,29 +8105,29 @@ const k9 = (f, A = "") => {
|
|
|
8102
8105
|
},
|
|
8103
8106
|
{
|
|
8104
8107
|
key: "currentTab",
|
|
8105
|
-
value:
|
|
8108
|
+
value: O
|
|
8106
8109
|
},
|
|
8107
8110
|
{
|
|
8108
8111
|
key: `tabMap:${u}`,
|
|
8109
|
-
value:
|
|
8112
|
+
value: O
|
|
8110
8113
|
},
|
|
8111
8114
|
{
|
|
8112
8115
|
key: `preTab:${u}`,
|
|
8113
|
-
value:
|
|
8116
|
+
value: O
|
|
8114
8117
|
}
|
|
8115
8118
|
]);
|
|
8116
8119
|
}
|
|
8117
8120
|
return { menuConfig: d, currentApp: A, currentMenu: p, query: q, microPath: s };
|
|
8118
8121
|
}
|
|
8119
8122
|
return { menuConfig: d, currentApp: A, currentMenu: null, query: { ...r.query, app: u } };
|
|
8120
|
-
}, W6 = se.get("/appcategory"), E6 = se.get("/app/common"), qv =
|
|
8123
|
+
}, W6 = se.get("/appcategory"), E6 = se.get("/app/common"), qv = Z(!1), b7 = Z([]), I6 = vA(() => {
|
|
8121
8124
|
var f;
|
|
8122
8125
|
return ((f = b7.value) == null ? void 0 : f.map((A) => A.apps).flat()) || [];
|
|
8123
8126
|
}), wn = async () => {
|
|
8124
8127
|
qv.value = !0;
|
|
8125
8128
|
const [f, A] = await W6().run({ userType: 1 });
|
|
8126
8129
|
return qv.value = !1, f ? (b7.value = [], { navConfig: [] }) : (b7.value = A, SA([{ key: "appcategorys", value: A }]), { navConfig: A });
|
|
8127
|
-
}, Hv =
|
|
8130
|
+
}, Hv = Z([]), g6 = async () => {
|
|
8128
8131
|
var P;
|
|
8129
8132
|
const [f, A] = await E6().run();
|
|
8130
8133
|
if (f)
|
|
@@ -8160,10 +8163,10 @@ const k9 = (f, A = "") => {
|
|
|
8160
8163
|
}, En = async () => {
|
|
8161
8164
|
const f = me() ? F6 : h6, [A, e] = await f().run();
|
|
8162
8165
|
return A ? { platformConfig: null } : { platformConfig: e };
|
|
8163
|
-
}, ie =
|
|
8166
|
+
}, ie = Z(null), o7 = async () => {
|
|
8164
8167
|
const [f, A] = await K6().run();
|
|
8165
8168
|
return f ? { homeConfig: null } : (A && (BP(A), ie.value = A), { homeConfig: A });
|
|
8166
|
-
}, te =
|
|
8169
|
+
}, te = Z({ style: 1, skinStyle: "default" }), In = async () => {
|
|
8167
8170
|
const [f, A] = await _6().run(), e = (A == null ? void 0 : A.style) ?? 1, v = (A == null ? void 0 : A.skinStyle) ?? "default";
|
|
8168
8171
|
te.value = {
|
|
8169
8172
|
style: e,
|
|
@@ -8185,7 +8188,7 @@ const k9 = (f, A = "") => {
|
|
|
8185
8188
|
isShow: { type: Boolean, default: !0 }
|
|
8186
8189
|
},
|
|
8187
8190
|
setup(f, { expose: A }) {
|
|
8188
|
-
const e =
|
|
8191
|
+
const e = Z(!1), v = Z(!1), r = Z(!1), n = Z(!1), P = Z(!1), u = Z(!1), d = () => {
|
|
8189
8192
|
e.value = te.value.style === 1, v.value = te.value.style === 2, r.value = te.value.skinStyle === "default", n.value = te.value.skinStyle === "kjl", P.value = te.value.skinStyle === "cjb", u.value = te.value.skinStyle === "ssl";
|
|
8190
8193
|
};
|
|
8191
8194
|
de(d);
|
|
@@ -8220,32 +8223,32 @@ const k9 = (f, A = "") => {
|
|
|
8220
8223
|
"div",
|
|
8221
8224
|
q1,
|
|
8222
8225
|
[
|
|
8223
|
-
|
|
8224
|
-
|
|
8226
|
+
B("section", H1, [
|
|
8227
|
+
B(
|
|
8225
8228
|
"p",
|
|
8226
8229
|
p1,
|
|
8227
|
-
PA(V(
|
|
8230
|
+
PA(V(k)("侧边菜单栏")),
|
|
8228
8231
|
1
|
|
8229
8232
|
/* TEXT */
|
|
8230
8233
|
),
|
|
8231
|
-
|
|
8232
|
-
|
|
8234
|
+
B("div", m1, [
|
|
8235
|
+
B("div", {
|
|
8233
8236
|
class: "item-content",
|
|
8234
8237
|
onClick: i[1] || (i[1] = (H) => t("menu", 1))
|
|
8235
8238
|
}, [
|
|
8236
|
-
|
|
8239
|
+
B("img", {
|
|
8237
8240
|
src: V(v1),
|
|
8238
8241
|
alt: "",
|
|
8239
8242
|
width: "180",
|
|
8240
8243
|
height: "120"
|
|
8241
8244
|
}, null, 8, l1),
|
|
8242
|
-
|
|
8245
|
+
M(V(Me), {
|
|
8243
8246
|
modelValue: e.value,
|
|
8244
8247
|
"onUpdate:modelValue": i[0] || (i[0] = (H) => e.value = H)
|
|
8245
8248
|
}, {
|
|
8246
8249
|
default: Y(() => [
|
|
8247
8250
|
mA(
|
|
8248
|
-
PA(V(
|
|
8251
|
+
PA(V(k)("弹出式菜单栏")),
|
|
8249
8252
|
1
|
|
8250
8253
|
/* TEXT */
|
|
8251
8254
|
)
|
|
@@ -8254,23 +8257,23 @@ const k9 = (f, A = "") => {
|
|
|
8254
8257
|
/* STABLE */
|
|
8255
8258
|
}, 8, ["modelValue"])
|
|
8256
8259
|
]),
|
|
8257
|
-
|
|
8260
|
+
B("div", {
|
|
8258
8261
|
class: "item-content",
|
|
8259
8262
|
onClick: i[3] || (i[3] = (H) => t("menu", 2))
|
|
8260
8263
|
}, [
|
|
8261
|
-
|
|
8264
|
+
B("img", {
|
|
8262
8265
|
src: V(n1),
|
|
8263
8266
|
alt: "",
|
|
8264
8267
|
width: "180",
|
|
8265
8268
|
height: "120"
|
|
8266
8269
|
}, null, 8, x1),
|
|
8267
|
-
|
|
8270
|
+
M(V(Me), {
|
|
8268
8271
|
modelValue: v.value,
|
|
8269
8272
|
"onUpdate:modelValue": i[2] || (i[2] = (H) => v.value = H)
|
|
8270
8273
|
}, {
|
|
8271
8274
|
default: Y(() => [
|
|
8272
8275
|
mA(
|
|
8273
|
-
PA(V(
|
|
8276
|
+
PA(V(k)("内嵌式菜单栏")),
|
|
8274
8277
|
1
|
|
8275
8278
|
/* TEXT */
|
|
8276
8279
|
)
|
|
@@ -8281,32 +8284,32 @@ const k9 = (f, A = "") => {
|
|
|
8281
8284
|
])
|
|
8282
8285
|
])
|
|
8283
8286
|
]),
|
|
8284
|
-
|
|
8285
|
-
|
|
8287
|
+
B("section", O1, [
|
|
8288
|
+
B(
|
|
8286
8289
|
"p",
|
|
8287
8290
|
D1,
|
|
8288
|
-
PA(V(
|
|
8291
|
+
PA(V(k)("皮肤风格设置")),
|
|
8289
8292
|
1
|
|
8290
8293
|
/* TEXT */
|
|
8291
8294
|
),
|
|
8292
|
-
|
|
8293
|
-
|
|
8295
|
+
B("div", V1, [
|
|
8296
|
+
B("div", {
|
|
8294
8297
|
class: "item-content",
|
|
8295
8298
|
onClick: i[5] || (i[5] = (H) => t("skin", 1))
|
|
8296
8299
|
}, [
|
|
8297
|
-
|
|
8300
|
+
B("img", {
|
|
8298
8301
|
src: V(r1),
|
|
8299
8302
|
alt: "",
|
|
8300
8303
|
width: "180",
|
|
8301
8304
|
height: "120"
|
|
8302
8305
|
}, null, 8, N1),
|
|
8303
|
-
|
|
8306
|
+
M(V(Me), {
|
|
8304
8307
|
modelValue: r.value,
|
|
8305
8308
|
"onUpdate:modelValue": i[4] || (i[4] = (H) => r.value = H)
|
|
8306
8309
|
}, {
|
|
8307
8310
|
default: Y(() => [
|
|
8308
8311
|
mA(
|
|
8309
|
-
PA(V(
|
|
8312
|
+
PA(V(k)("默认皮肤")),
|
|
8310
8313
|
1
|
|
8311
8314
|
/* TEXT */
|
|
8312
8315
|
)
|
|
@@ -8315,23 +8318,23 @@ const k9 = (f, A = "") => {
|
|
|
8315
8318
|
/* STABLE */
|
|
8316
8319
|
}, 8, ["modelValue"])
|
|
8317
8320
|
]),
|
|
8318
|
-
|
|
8321
|
+
B("div", {
|
|
8319
8322
|
class: "item-content",
|
|
8320
8323
|
onClick: i[7] || (i[7] = (H) => t("skin", 2))
|
|
8321
8324
|
}, [
|
|
8322
|
-
|
|
8325
|
+
B("img", {
|
|
8323
8326
|
src: V(t1),
|
|
8324
8327
|
alt: "",
|
|
8325
8328
|
width: "180",
|
|
8326
8329
|
height: "120"
|
|
8327
8330
|
}, null, 8, R1),
|
|
8328
|
-
|
|
8331
|
+
M(V(Me), {
|
|
8329
8332
|
modelValue: n.value,
|
|
8330
8333
|
"onUpdate:modelValue": i[6] || (i[6] = (H) => n.value = H)
|
|
8331
8334
|
}, {
|
|
8332
8335
|
default: Y(() => [
|
|
8333
8336
|
mA(
|
|
8334
|
-
PA(V(
|
|
8337
|
+
PA(V(k)("科技蓝")),
|
|
8335
8338
|
1
|
|
8336
8339
|
/* TEXT */
|
|
8337
8340
|
)
|
|
@@ -8341,24 +8344,24 @@ const k9 = (f, A = "") => {
|
|
|
8341
8344
|
}, 8, ["modelValue"])
|
|
8342
8345
|
])
|
|
8343
8346
|
]),
|
|
8344
|
-
|
|
8345
|
-
|
|
8347
|
+
B("div", j1, [
|
|
8348
|
+
B("div", {
|
|
8346
8349
|
class: "item-content",
|
|
8347
8350
|
onClick: i[9] || (i[9] = (H) => t("skin", 3))
|
|
8348
8351
|
}, [
|
|
8349
|
-
|
|
8352
|
+
B("img", {
|
|
8350
8353
|
src: V(P1),
|
|
8351
8354
|
alt: "",
|
|
8352
8355
|
width: "180",
|
|
8353
8356
|
height: "120"
|
|
8354
8357
|
}, null, 8, o1),
|
|
8355
|
-
|
|
8358
|
+
M(V(Me), {
|
|
8356
8359
|
modelValue: P.value,
|
|
8357
8360
|
"onUpdate:modelValue": i[8] || (i[8] = (H) => P.value = H)
|
|
8358
8361
|
}, {
|
|
8359
8362
|
default: Y(() => [
|
|
8360
8363
|
mA(
|
|
8361
|
-
PA(V(
|
|
8364
|
+
PA(V(k)("纯净白")),
|
|
8362
8365
|
1
|
|
8363
8366
|
/* TEXT */
|
|
8364
8367
|
)
|
|
@@ -8367,23 +8370,23 @@ const k9 = (f, A = "") => {
|
|
|
8367
8370
|
/* STABLE */
|
|
8368
8371
|
}, 8, ["modelValue"])
|
|
8369
8372
|
]),
|
|
8370
|
-
|
|
8373
|
+
B("div", {
|
|
8371
8374
|
class: "item-content",
|
|
8372
8375
|
onClick: i[11] || (i[11] = (H) => t("skin", 4))
|
|
8373
8376
|
}, [
|
|
8374
|
-
|
|
8377
|
+
B("img", {
|
|
8375
8378
|
src: V(u1),
|
|
8376
8379
|
alt: "",
|
|
8377
8380
|
width: "180",
|
|
8378
8381
|
height: "120"
|
|
8379
8382
|
}, null, 8, Z1),
|
|
8380
|
-
|
|
8383
|
+
M(V(Me), {
|
|
8381
8384
|
modelValue: u.value,
|
|
8382
8385
|
"onUpdate:modelValue": i[10] || (i[10] = (H) => u.value = H)
|
|
8383
8386
|
}, {
|
|
8384
8387
|
default: Y(() => [
|
|
8385
8388
|
mA(
|
|
8386
|
-
PA(V(
|
|
8389
|
+
PA(V(k)("深邃蓝")),
|
|
8387
8390
|
1
|
|
8388
8391
|
/* TEXT */
|
|
8389
8392
|
)
|
|
@@ -8394,16 +8397,16 @@ const k9 = (f, A = "") => {
|
|
|
8394
8397
|
])
|
|
8395
8398
|
])
|
|
8396
8399
|
]),
|
|
8397
|
-
|
|
8398
|
-
|
|
8400
|
+
B("section", T1, [
|
|
8401
|
+
B(
|
|
8399
8402
|
"p",
|
|
8400
8403
|
L1,
|
|
8401
|
-
PA(V(
|
|
8404
|
+
PA(V(k)("效果预览")),
|
|
8402
8405
|
1
|
|
8403
8406
|
/* TEXT */
|
|
8404
8407
|
),
|
|
8405
|
-
|
|
8406
|
-
|
|
8408
|
+
B("div", y1, [
|
|
8409
|
+
B("img", {
|
|
8407
8410
|
src: X.value,
|
|
8408
8411
|
alt: "",
|
|
8409
8412
|
width: "100%",
|
|
@@ -8425,10 +8428,10 @@ const k9 = (f, A = "") => {
|
|
|
8425
8428
|
isShow: { type: Boolean }
|
|
8426
8429
|
},
|
|
8427
8430
|
setup(f, { expose: A }) {
|
|
8428
|
-
const e =
|
|
8431
|
+
const e = Z([
|
|
8429
8432
|
{
|
|
8430
8433
|
code: 1,
|
|
8431
|
-
name:
|
|
8434
|
+
name: k("中文简体")
|
|
8432
8435
|
},
|
|
8433
8436
|
{
|
|
8434
8437
|
code: 2,
|
|
@@ -8441,16 +8444,16 @@ const k9 = (f, A = "") => {
|
|
|
8441
8444
|
"div",
|
|
8442
8445
|
I1,
|
|
8443
8446
|
[
|
|
8444
|
-
|
|
8447
|
+
M(V(m7), {
|
|
8445
8448
|
width: "100%",
|
|
8446
8449
|
"label-length": 6,
|
|
8447
8450
|
"align-type": "horizontal",
|
|
8448
8451
|
cols: 1
|
|
8449
8452
|
}, {
|
|
8450
8453
|
default: Y(() => [
|
|
8451
|
-
|
|
8454
|
+
M(V(kA), {
|
|
8452
8455
|
type: "select",
|
|
8453
|
-
label: V(
|
|
8456
|
+
label: V(k)("语言类型"),
|
|
8454
8457
|
modelValue: v.value.type,
|
|
8455
8458
|
"onUpdate:modelValue": P[0] || (P[0] = (u) => v.value.type = u),
|
|
8456
8459
|
options: e.value,
|
|
@@ -8470,7 +8473,7 @@ const k9 = (f, A = "") => {
|
|
|
8470
8473
|
]);
|
|
8471
8474
|
}
|
|
8472
8475
|
}), M1 = /* @__PURE__ */ ZA(g1, [["__scopeId", "data-v-b5871b7c"]]), j9 = "v1", B1 = `/api/portal/manager/${j9}`, Z7 = MA(B1), k1 = `/api/orchestration-engine/${j9}`, T7 = MA(`${k1}`), Q1 = `/api/workbench/workbench-server/${j9}`, Y1 = MA(Q1), G1 = `/workflow/form/form/${j9}`, U1 = MA(G1), J1 = `/api/portal/user/${j9}`, gn = MA(J1), h1 = gn.get("/home"), F1 = gn.delete("/home"), S1 = Z7.get("/basics/home/type"), K1 = Z7.get("/basics/tree-page"), C1 = Z7.get("/basics/list"), _1 = T7.get("/device-list/arrange/page"), $1 = T7.get("/drawingArrangement/list"), A8 = T7.get("/data/arrange/page"), e8 = Y1.get("/page/portal/list"), f8 = U1.post("/list"), v8 = (f) => {
|
|
8473
|
-
const { orgInfo: A, information: e, validate: v } = f, r =
|
|
8476
|
+
const { orgInfo: A, information: e, validate: v } = f, r = Z(!1), n = Z(""), P = Z(""), u = Z(""), d = Z([]), t = Z({
|
|
8474
8477
|
id: "0",
|
|
8475
8478
|
path: "",
|
|
8476
8479
|
code: "",
|
|
@@ -8484,9 +8487,9 @@ const k9 = (f, A = "") => {
|
|
|
8484
8487
|
levelType: 1
|
|
8485
8488
|
}), z = Pt();
|
|
8486
8489
|
let p = !0;
|
|
8487
|
-
const X =
|
|
8488
|
-
var
|
|
8489
|
-
p = !0, (
|
|
8490
|
+
const X = Z(!1), { run: b } = K1(), { run: c } = C1(), a = () => {
|
|
8491
|
+
var O;
|
|
8492
|
+
p = !0, (O = z.value) == null || O.resetLazyLoad();
|
|
8490
8493
|
};
|
|
8491
8494
|
return {
|
|
8492
8495
|
builtInDialog: r,
|
|
@@ -8496,10 +8499,10 @@ const k9 = (f, A = "") => {
|
|
|
8496
8499
|
keyword: u,
|
|
8497
8500
|
treeData: d,
|
|
8498
8501
|
openBuiltInDialog: () => {
|
|
8499
|
-
var
|
|
8500
|
-
n.value = ((
|
|
8502
|
+
var O, N, D;
|
|
8503
|
+
n.value = ((O = e.value) == null ? void 0 : O.urlId) ?? "", P.value = ((N = e.value) == null ? void 0 : N.urlPath) ?? ((D = e.value) == null ? void 0 : D.urlId) ?? "", u.value = "", r.value = !0, a();
|
|
8501
8504
|
},
|
|
8502
|
-
loadChildNode: async (
|
|
8505
|
+
loadChildNode: async (O) => {
|
|
8503
8506
|
const N = {
|
|
8504
8507
|
pageIndex: 1,
|
|
8505
8508
|
pageSize: 999,
|
|
@@ -8508,51 +8511,51 @@ const k9 = (f, A = "") => {
|
|
|
8508
8511
|
dataType: e.value.parentId === "-1" ? 2 : 3,
|
|
8509
8512
|
isTenant: A.type === 1
|
|
8510
8513
|
};
|
|
8511
|
-
p ? (p = !1, X.value = !0) : N.parentId =
|
|
8512
|
-
let [D,
|
|
8513
|
-
return X.value = !1, D ? { data: [] } : { data:
|
|
8514
|
+
p ? (p = !1, X.value = !0) : N.parentId = O.id;
|
|
8515
|
+
let [D, x] = await b(N);
|
|
8516
|
+
return X.value = !1, D ? { data: [] } : { data: x.data || [] };
|
|
8514
8517
|
},
|
|
8515
|
-
search: async (
|
|
8516
|
-
if (!
|
|
8518
|
+
search: async (O) => {
|
|
8519
|
+
if (!O) return {};
|
|
8517
8520
|
const [N, D] = await c({
|
|
8518
|
-
name:
|
|
8521
|
+
name: O,
|
|
8519
8522
|
orgId: A.id,
|
|
8520
8523
|
dataType: 2,
|
|
8521
8524
|
isTenant: A.type === 1
|
|
8522
8525
|
});
|
|
8523
8526
|
return N ? {} : D;
|
|
8524
8527
|
},
|
|
8525
|
-
toggleTree: (
|
|
8526
|
-
t.value =
|
|
8528
|
+
toggleTree: (O) => {
|
|
8529
|
+
t.value = O, P.value = (O == null ? void 0 : O.path) ?? O.id;
|
|
8527
8530
|
},
|
|
8528
8531
|
confirmFormBuiltIn: () => {
|
|
8529
8532
|
if (!n.value) {
|
|
8530
|
-
p7.warning(
|
|
8533
|
+
p7.warning(k("至少选择一个链接"));
|
|
8531
8534
|
return;
|
|
8532
8535
|
}
|
|
8533
|
-
const
|
|
8534
|
-
|
|
8536
|
+
const O = e.value, N = t.value;
|
|
8537
|
+
O.routeUrl = N.routeUrl, O.originalCode = N.code, O.originalId = N.id, O.urlId = N.id, O.urlPath = N.path, O.applicationPath = N.applicationPath, v.value.routeUrl = "", O.code || (O.code = N.code), r.value = !1;
|
|
8535
8538
|
}
|
|
8536
8539
|
};
|
|
8537
8540
|
}, n8 = "/enterpriseadmin/ioc-server/ioc-server/ws";
|
|
8538
8541
|
let y9 = null;
|
|
8539
8542
|
const r8 = (f) => {
|
|
8540
|
-
const { information: A, orgInfo: e } = f, v = vA(() => e.id), r =
|
|
8541
|
-
{ value: 0, label:
|
|
8542
|
-
{ value: 1, label:
|
|
8543
|
-
{ value: 2, label:
|
|
8544
|
-
{ value: 3, label:
|
|
8545
|
-
{ value: 4, label:
|
|
8546
|
-
]), u =
|
|
8547
|
-
const U = [], K = J[2], _ = K.displays, L = K.scenes, w = K[
|
|
8548
|
-
|
|
8543
|
+
const { information: A, orgInfo: e } = f, v = vA(() => e.id), r = Z(!1), n = Z(0), P = Z([
|
|
8544
|
+
{ value: 0, label: k("图纸") },
|
|
8545
|
+
{ value: 1, label: k("图纸编排") },
|
|
8546
|
+
{ value: 2, label: k("设备看板") },
|
|
8547
|
+
{ value: 3, label: k("数据编排") },
|
|
8548
|
+
{ value: 4, label: k("轻分析") }
|
|
8549
|
+
]), u = Z([]), d = Z(20), t = Z(1), z = Z(0), p = Z(""), X = Z(""), b = Z(""), c = Z(!1), { run: a } = _1(), { run: i } = $1(), { run: H } = A8(), { run: s } = e8(), { run: q } = f8(), m = (J) => {
|
|
8550
|
+
const U = [], K = J[2], _ = K.displays, L = K.scenes, w = K[k("2D3D集成根目录")];
|
|
8551
|
+
O(_, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", U), O(L, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", U), O(w, k("集成"), "/enterpriseadmin/ioc-server/?type=preview2d3d&tag=scenes", U);
|
|
8549
8552
|
const E = (t.value - 1) * d.value, W = E + d.value;
|
|
8550
8553
|
u.value = U.filter((bA) => bA.name.includes(p.value)).slice(E, W), z.value = U.length;
|
|
8551
|
-
},
|
|
8554
|
+
}, O = (J, U, K, _) => {
|
|
8552
8555
|
for (const L in J) {
|
|
8553
8556
|
const w = J[L];
|
|
8554
8557
|
if (w !== !0)
|
|
8555
|
-
|
|
8558
|
+
O(w, U, `${K}/${L}`, _);
|
|
8556
8559
|
else if (L.includes(".json")) {
|
|
8557
8560
|
const E = `${K}/${L}&showLayout=false`;
|
|
8558
8561
|
_.push({ id: E, name: L.slice(0, -5), type: U, url: E });
|
|
@@ -8563,29 +8566,29 @@ const r8 = (f) => {
|
|
|
8563
8566
|
}, D = () => {
|
|
8564
8567
|
var J, U, K;
|
|
8565
8568
|
N(), n.value = ((J = A.value) == null ? void 0 : J.urlType) ?? 0, X.value = ((U = A.value) == null ? void 0 : U.urlId) ?? "", b.value = ((K = A.value) == null ? void 0 : K.routeUrl) ?? "", y9.afterMsg = m, R(), r.value = !0;
|
|
8566
|
-
},
|
|
8569
|
+
}, x = (J, U, K) => {
|
|
8567
8570
|
b.value = U.url;
|
|
8568
8571
|
}, j = () => {
|
|
8569
8572
|
if (!X.value) {
|
|
8570
|
-
p7.warning(
|
|
8573
|
+
p7.warning(k("至少选择一个链接"));
|
|
8571
8574
|
return;
|
|
8572
8575
|
}
|
|
8573
8576
|
A.value.urlType = n.value, A.value.urlId = X.value, A.value.routeUrl = b.value, r.value = !1;
|
|
8574
|
-
},
|
|
8577
|
+
}, l = (J) => {
|
|
8575
8578
|
N(), n.value = J, X.value = "", b.value = "", R();
|
|
8576
8579
|
}, R = () => {
|
|
8577
8580
|
if (e.type !== 7) return;
|
|
8578
8581
|
({
|
|
8579
8582
|
0: o,
|
|
8580
|
-
1:
|
|
8581
|
-
2:
|
|
8583
|
+
1: T,
|
|
8584
|
+
2: g,
|
|
8582
8585
|
3: $,
|
|
8583
8586
|
4: h
|
|
8584
8587
|
})[n.value]();
|
|
8585
8588
|
}, o = async () => {
|
|
8586
8589
|
const J = ["explore", "explore-displays", `proj/${v.value}`];
|
|
8587
8590
|
y9.send(JSON.stringify(J));
|
|
8588
|
-
},
|
|
8591
|
+
}, T = async () => {
|
|
8589
8592
|
const J = {
|
|
8590
8593
|
project: v.value,
|
|
8591
8594
|
groupName: p.value,
|
|
@@ -8598,8 +8601,8 @@ const r8 = (f) => {
|
|
|
8598
8601
|
u.value = [];
|
|
8599
8602
|
return;
|
|
8600
8603
|
}
|
|
8601
|
-
u.value = K.data.map((_) => (_.type =
|
|
8602
|
-
},
|
|
8604
|
+
u.value = K.data.map((_) => (_.type = k("图纸编排"), _.name = _.groupName, _)) || [], z.value = K.totalCount;
|
|
8605
|
+
}, g = async () => {
|
|
8603
8606
|
const J = {
|
|
8604
8607
|
project: v.value,
|
|
8605
8608
|
name: p.value,
|
|
@@ -8612,7 +8615,7 @@ const r8 = (f) => {
|
|
|
8612
8615
|
u.value = [];
|
|
8613
8616
|
return;
|
|
8614
8617
|
}
|
|
8615
|
-
u.value = K.data.map((_) => (_.type =
|
|
8618
|
+
u.value = K.data.map((_) => (_.type = k("设备看板"), _)) || [], z.value = K.totalCount;
|
|
8616
8619
|
}, h = async () => {
|
|
8617
8620
|
const J = {
|
|
8618
8621
|
project: v.value,
|
|
@@ -8626,7 +8629,7 @@ const r8 = (f) => {
|
|
|
8626
8629
|
u.value = [];
|
|
8627
8630
|
return;
|
|
8628
8631
|
}
|
|
8629
|
-
u.value = K.data.map((_) => (_.type =
|
|
8632
|
+
u.value = K.data.map((_) => (_.type = k("轻分析"), _.name = _.pageName, _.url = _.uri, _)) || [], z.value = K.totalCount;
|
|
8630
8633
|
}, $ = async () => {
|
|
8631
8634
|
const J = {
|
|
8632
8635
|
project: v.value,
|
|
@@ -8640,7 +8643,7 @@ const r8 = (f) => {
|
|
|
8640
8643
|
u.value = [];
|
|
8641
8644
|
return;
|
|
8642
8645
|
}
|
|
8643
|
-
u.value = K.data.map((_) => (_.type =
|
|
8646
|
+
u.value = K.data.map((_) => (_.type = k("数据编排"), _)) || [], z.value = K.totalCount;
|
|
8644
8647
|
};
|
|
8645
8648
|
return de(() => {
|
|
8646
8649
|
y9 || (y9 = new S9({ url: n8, reconnectWhenClose: !0, message: m }));
|
|
@@ -8656,18 +8659,18 @@ const r8 = (f) => {
|
|
|
8656
8659
|
tableFilter: p,
|
|
8657
8660
|
urlId: X,
|
|
8658
8661
|
openUrlDialog: D,
|
|
8659
|
-
tableChange:
|
|
8662
|
+
tableChange: x,
|
|
8660
8663
|
confirmUrl: j,
|
|
8661
|
-
changeType:
|
|
8664
|
+
changeType: l,
|
|
8662
8665
|
getTable: R
|
|
8663
8666
|
};
|
|
8664
8667
|
}, t8 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAADICAYAAACgY4nwAAAUoUlEQVR4Xu2dW4xd1XnH154ZG4Z4EtsoIQElxqWVUGsk00AeUOMYVX3oQyNQlUZplBaeGlWVCn1qKrVAH0Lf4K30iUZpo6ZSBUof+lBVtKS5CKeyo5DihoSxITY3Mb7MwIw9l939eXziYWbO2XvPWf912fu3JUuRZp9vrfX71vll8Z211y4cFwQgAAEIBCVQBG2NxiAAAQhAwCFeJgEEIACBwAQQb2DgNAcBCEAA8TIHIAABCAQmgHgDA6c5CEAAAoiXOQABCEAgMAHEGxg4zUEAAhBAvMwBCEAAAoEJIN7AwGkOAhCAAOJlDkAAAhAITADxBgZOcxCAAAQQL3MAAhCAQGACiDcwcJqDAAQggHiZAxCAAAQCE0C8gYHTHAQgAAHEyxyAAAQgEJgA4g0MnOYgAAEIIF7mAAQgAIHABBBvYOA0BwEIQADxMgcgAAEIBCaAeAMDpzkIQAACiJc5AAEIQCAwAcQbGDjNQQACEEC8zAEIQAACgQkg3sDAaQ4CEIAA4mUOQAACEAhMAPEGBk5zEIAABBAvcwACEIBAYAKINzBwmoMABCCAeJkDEIAABAITQLyBgM/Onts7cd3EA8XE5AHnysOBmqUZCNQROF8U7kS5Vp5eXVp99uDBfefrPsDfxyeAeMdnWBvh1dcvPuCK4onqxr21N3MDBCISKNfWHj5w84eejNiFXjSNeMVpfvXsxfvcRPGMuBnCQ8AfgbXy/k/c/MFn/QUk0mYCiFc4J6y8MDU99VzpHKUFIWdCeydw/hMfndnnPSoBf0EA8Qonw+zPFw5PTpXHhU0QGgISAqulu/fgx2b+UxKcoA7xCifB1dru08ImCA0BCQFqvRKsrHi1WNejnz574aFiYsJ+VOOCQFYEqp0Oj378ppnHsup0Rp1lxStM1mtvzj9Slu5RYROEhoCEAOKVYGXFq8W6Hh3xhqBMGwoCiFdB9VpMVrxCvohXCJfQUgKIV4qXH9eUeBGvki6xlQQQr5KuQ7xKvIhXSZfYSgKIV0kX8UrpIl4pXoILCSBeIdwqNDVeIV/EK4RLaCkBxCvFi3iVeBGvki6xlQQQr5IuK14pXcQrxUtwIQHEK4RLqUELF/Fq+RJdRwDx6thaZGq8Qr6IVwiX0FICiFeKF/Eq8SJeJV1iKwkgXiVdVrxSuqmK94033mg17j179jj7x9UfAohXm2tKDUK+iFcIl9BSAohXipdSgxIv4lXSJbaSAOJV0qXUIKWLeKV4CS4kgHiFcNnVoIWLeLV8ia4jgHh1bC0yNV4hX8QrhEtoKQHEK8WLeJV4fYp3fn7eLS8ve+nu5cuXW8UZtqvhUhXn3YWFVrG4WUdg9+7d3nafIF5dnljxatl6fQPF3NycaytMX8MbJd5zVb+40iBg4t2/f7+XziBeLxiHBqHUIOTrc8WLeIWJ6khoxJtPIhGvMFeIVwiX0FsIIN58JgXiFeYK8QrhEhrxZjwHEK8weYhXCJfQiDfjOYB4hclDvEK4hEa8Gc8BxCtMHuIVwiU04s14DiBeYfIQrxAuoRFvxnMA8QqTh3iFcAmNeDOeA4hXmDzEK4RLaMSb8RxAvMLkIV4hXEIj3oznAOIVJs+neFM8q8HOjrB+caVBYNeuXW5mZsZLZ3hk2AvGoUEQr5CvT/H67Cav/vFJs5uxEK82r4hXyBfxCuESWkoA8UrxciykEi/iVdIltpIA4lXS5SB0KV3EK8VLcCEBxCuEW4Wm1CDki3iFcAktJYB4pXgRrxIv4lXSJbaSAOJV0mXFK6WbqnilgyZ4JwggXm0aKTUI+SJeIVxCSwkgXileSg1KvIhXSZfYSgKIV0mXUoOULuKV4iW4kADiFcJlV4MWLuLV8iW6jgDi1bG1yNR4hXwRrxAuoaUEEK8UL+JV4kW8SrrEVhJAvEq6rHildBGvFC/BhQQQrxAupQYtXMSr5Ut0HQHEq2NLjVfL1iFeMWDCywggXhnaK4H5cU3IF/EK4RJaSgDxSvEiXiVexKukS2wlAcSrpMuKV0q36+JdXV11i4uLrRhOT0+7ycnJVp/h5vAEEK+WOaUGId+ui/fS5cvu3NxcK4L79u931+3e3eoz3ByeAOLVMke8Qr6IdytcxCuccB5DI16PMLcJhXiFfBEv4hVOL2loxCvFy49rSryIN4x4J1YvuInl025q5VVlOnsVe/fyyX/a8/Zj31QPem3Vndp9rzuhbie1+Kx4hRlBvHrx7n7v2+7G17/gTL5ceRKoVtcnihV3f3GvO5XnCNr3GvG2Z9b4Ez7Fu7y87NbKsnHbIW5cqfo0Pz/fqqlhNV7bIbFS/WtzXb/4HffRt7/kJtaQbhtuid57fvKI25do37x3C/F6R3otoE/xzlW7By5Xuwhyv4aJd2Fhwdm/Ntdt7/2x27vy720+wr1pE3i4ku+TaXfRT+8Qrx+O20ZBvM1LDTsR76GFo+66tTPCDBLaK4GJG5xbe29oyEpGz04ccfd7bTPRYIhXmBjEqxXvJy/+ijB7hPZCoJJt8aHfdcUHPuNc9b/LS//r3NJLrrzwL1vCI14vxAmCeBFvr78FJt0bv+yK6bu2YDDxbpYv4u31bPE3eMSLeP3NpvwiFTO/7Yp9Xxra8bWzf+rcytu/+DvizS/HSfYY8SLeJCdmoE4VH/6zbVe7g+bLc1935fy/Id5A+ehNM4gX8fZmsm8z0Ctlhg8cGYqgfOcpV777POLt8yRRjB3xIl7FvMolpknX5DvsotSQSyYz6yfiRbyZTVm/3a1+XJu46S+d23VgS1wrMVipYeNFjdcv/t5GQ7yIt7eTfzDwzTsbqn28V6TLdrLeTw0ZAMSLeGWTK8fAtvKtDjMadrHizTGpCfYZ8SLeBKdlsl1CvMmmJq+O+RRviofkLFdnR7Q9X8HnITm/dOrGvCYEvR1JAPEyQbwQ8CleLx3yHCT2q39u+cmM5xERLiYBxBuTfofaRrzNSw07SfuHzz2+k4/xmQYEJtcuvDq18lbQk+XL8oYfTh7+2p806F72t3BIjjCFiFcr3o8v/aswe4SOQODZ4tbf53SyCOA71STiRbydmtD6wSBePePut4B4EW/3Z7nXESJerzh7Gqzr4rXX9SwuLrbK7vT0tJucnGz1mWE3U2rwgjGlIIg3pWzk2peuizd2XhBv7Ax4bx/xekfaw4CIV5t0xKvlGyE64o0AvXNNIl5tShGvlm+E6Ig3AvTONYl4tSntrXjnzzq3eM4v3P23OTd1vd+Y7aMh3vbM+MRmAohXOyc6I96BSOdecW7uZ87d8XvOzdw8HN5Pq1fa/8zja+0PfNq5239Hm6xm0RFvM07cNYoA4tXOj6zFuzjn3OnvrIvWxLvxuuehcOJNR7pGAPFqvzL9iI54tXnOUrwm2reqV5yfOVa96HFpe0ChxJuWdBGv9uvSn+iIV5vrrMRrq9of/fPW1e12iEKINz3pIl7t16U/0RGvNtdZiNdWtVaTHbXC3YxJLd40pYt4tV+X/kRHvNpcJy/eNqvcUDXedKWLeLVfl/5ER7zaXCct3jM/cO7kt4bXcUehUa14bbvYp6q3/o7aMaFNWV10flyrI8Tf6wkg3npG49yRrHhPf3u9vDDsx7O6QavEa+2mLV/EWzc3+Hs9gR+dfO25xaWlo/V3csdOCNy9t9oZkNo1jnRNivYgwx2fH/0ww7j7eKf3OXfPwyk8MLE5e4g3tfmcY38QrzZryYnXpHuy5eHsJttb7q7+fdK56f3NZDiueC0tacoX8Wq/Mv2Ijni1eU5KvLY/9/jXmpcXTLj2Q9dAuG1Q+RBvmvJFvG3mAfduTwDxamdGMuK1Wu4LTzXbo2tIrJxw6HPrK9ydXL7EO+jL3X+0k14oPoN4FVT7FhPxajOejHhtpfvWj5sN1la5v/xbzUoKwyLWiddW0Rdfb/5/BHf+oXMf+bVm/dfehXi1fPsRHfFq85yEeJvWda20cPtnq9LCXeNDGSXejft0j/3d+lkQdZf17Tf/uu6uEH9HvCEod70NxKvNcHTxWonhu080O6LxUHXimA/pGtJh4t3u4Yim8rVV8qFqN0XcC/HG5d+N1hGvNo/RxVv3n/yD4duRiyZFX9d27Y56Iq1pKaRu/7Cv/g+Pg3j1jLvfAuLV5jiqeJuudhUryc3irXsM2Pr6X1+t33FhT7SZfONdiDce++60jHi1uYwq3ia1XdVe2Y3irZPuIAX245+tfOuuI3++890WdbHr/4546xlxRx0BxFtHaLy/RxXv84/X13Z91nU3ohqIt6l0B59tUnLwXRZpl2LE244Xd29HAPFq50U08dqpY999cvTglP/ZPjgHou3reqzk8B9/Nbrftko/8hVt4qjxuiIW4T60i3i1WY4m3iZlBtVq15Daa4N2+vDFi9+szgb+n9GJiVduYMWr/cr0I/qLL732+HuXlqqiGZeCQDTx1v0nu6q26wNik1pvvHID4vWR477H+L9X5j594eI7z/edg2r8UcTbZIdA29qrCtCwuHX16XjlBsQbei50sb3Z2XN7Ly4tnLl0aemGLo4v9piiiNeeBLOHEkZd6TyCu30v7QQ1K5cMu+I9yYZ4Y3+putL+qVNzX3xn/vw/rK6udmVIyYwjinjtzRIvVi+tHHXFq5E2y02TcoM9QmwCDnsh3rC8u93a7M/nvjK/8O5Xl5aGvM6728OXjS6KeOt+WFPuZvBFssmujDhPsSFeXzkmzjoBKzssrS39bbXyvf3y8sqtXedSlmtT6jH++p7v71G3sSV+3a4AO/IxnWMWt8fTZFuZjcHGEvZCvGF501rXCLxw4uVSPaYoK966HQ2KR4QVIG0/76h3wsXZ2YB4FbkmZn8IdFa8dad9pb6jYTAF7QEQKzkMu26rzgy2c4PDXog3LG9a6xqB3oo3lxVv3ZYyxCv9SvLkmhRvf4N3Vrx1W7HsTQ62nSz1q67UoHzybjgbVrypzxv6ly6B7x1/6dbJYmpW3cMoNd468eawq8EeOX7+b0anJ85eZMSr/tIQv7sEvnf85aOThXtOPcIo4q07/DzewwfNcTfZThZnLzLibZ5F7oTA+wl8//jLD00UrnonjvaKIt4mDx/EkVZz2OmOAfE2zyJ3QuD9BI6d+OkzpSvvU3OJIt4mjwzH2YrVHHfdlrh4q3bE2zyL3AmBawSOH5/du1ysWH13r5pLFPE2OSQn5R/Y0u4/4lV/aYjfTQLHfvjyI2XpHg0xuijitYHVPb1mK8bP/EWMsw7qsTcpM8T5Yc36jnjrM8gdEHg/gZCrXWs5mnibHJQTZztW/ZSsewDEIsSrUSPe+gxyBwQ21XYDrnajirfJWQfx6qTDp2WT1W7csyYQL1KBQBsCoXYybOxTtBWvdaLJyjG1x4eb9DnOE2uDtCLeNl867u03gReO/+SwKwrbtyv/QS0Z8TZZPdqq91Nfds4eqoh91R1naf2z/tpxkDt9n9v4Y0S84zMkQh8IXH1Y4pnQ0o1aahgktu6gGbsv3mt0rk0/e2DihadGn0Zmd8dd7VoPEG8fpMEYxyNwtbzwSAzpJiHeJnt6raMx66b2eLCVGBbPjU52GjsxEO94X0k+3WUCV1e59mTa4ZjjjFrjHQy87mGEwX0x6r32I6D1z/4Pou6Kv9plxVuXI/7ePwK2VeySW3mgehTYjt6KKtwB/STE2+TAmUGHQ658rbxg0q1b6Q7KIfc8nMK+Y1a8/VMLIx4QsBVtdV7o4ckJd6B6GMIkaz+a3RqrpDAsM0mI1zpXd2LZxgHYD213/oH2Byxb4Zp0R71hYtAnKzHc8Xnn7Gm7+BfijZ8DehCagK1qV4rVp0Ocs+BjbMmI1wbTZKvWxkErHrAw0drpaWeONZOu9SetcyUQr48vBjHyIhBjL+44hJISr0nPdg6Mep3O5sHa6vfAbzh3y13jYFiXbFvhWosx6s6jR4p4x5sJfDpHAqFOFfPFJinx2qDa1Hs3QrAtZx85VP371eZv9jXZXjzj3NkfOPfmj5uvcAftmvRtj7GVGtK5EG86uaAnoQhUB9w8UdV0qx30eVzJidewNd1iNgqx1Vt3VUK8fv/6PuBd0+tSX65ka8K1VbVJt0kNd7t20pSu9RTx5vHVo5c+CVw95KZmw6fPFseLlaR4bUhtdhSMh6D9p21nhZ0+ltZKdzAOxNs+o3yiCwSu/MA2sWJHOyaxZWwU00q8R5Nl3mYPbahBWE3XXtmepnRZ8YaaB7QDgXEIlKe+UY7z+SCfbbPVTNUhE+3tnx3/RzxV/67FZcWrZ0wLEBiPQBbitSHagTonv9XsYYbxkGz9tJUWbMtYCgf11I8N8dYz4g4IxCWQjXgHmOyEsNP/HUbAeQmXGm/crxKtQ6A5gezEu1HAtu92p7sSRiEy4dre4DSeRGuezPU7WfG2Jcb9EAhNIFvxDkDZ1rO5V9ZLEW0evNgI2uq3H7zl2h7gPEoKw6YK4g39JaI9CLQlkL14Nw7YVr9vvrhehliq9uwunl/fuzs45MYEaweUX9nXW/3vqRuquu3HnLupevAi3V0KbVOKeNsS434IhCbQKfGGhpdme4g3zbzQKwhcI4B4OzcbEG/nUsqAOkcA8XYupYi3cyllQJ0jgHg7l1LE27mUMqDOEajEa+dKBH2zcecgpjSgovj74sAXHkypS6q+VC8a4IJAngQq8dor5Y/m2Xt6vYVAUTxaifexPpBBvH3IckfHWM5+/agrJk2+XPkTOOXKS3cWBx+s9tF1/0K83c9xp0dYzv7jA64onu70ILs/uBOuLB8sDn7xRPeHuj5CxNuXTHd8nOXsN+5zrqTem1+eK9lePtWXle4gPYg3v4lKjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwIIN78ckaPIQCBzAkg3swTSPchAIH8CCDe/HJGjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwIIN78ckaPIQCBzAkg3swTSPchAIH8CCDe/HJGjyEAgcwJIN7ME0j3IQCB/Agg3vxyRo8hAIHMCSDezBNI9yEAgfwI/D9uZuVB74JxeAAAAABJRU5ErkJggg==", P8 = ["src"], u8 = { class: "content" }, d8 = /* @__PURE__ */ iA({
|
|
8665
8668
|
__name: "index",
|
|
8666
8669
|
emits: ["confirm", "cancel"],
|
|
8667
8670
|
setup(f, { expose: A, emit: e }) {
|
|
8668
|
-
const v = e, r =
|
|
8671
|
+
const v = e, r = Z(!1), n = vA(() => {
|
|
8669
8672
|
var t;
|
|
8670
|
-
return (t = ie.value) != null && t.homeAlias ? ie.value.homeAlias :
|
|
8673
|
+
return (t = ie.value) != null && t.homeAlias ? ie.value.homeAlias : k("首页");
|
|
8671
8674
|
}), P = () => {
|
|
8672
8675
|
r.value = !0;
|
|
8673
8676
|
}, u = () => {
|
|
@@ -8690,13 +8693,13 @@ const r8 = (f) => {
|
|
|
8690
8693
|
}, {
|
|
8691
8694
|
header: Y(() => [
|
|
8692
8695
|
mA(
|
|
8693
|
-
PA(V(
|
|
8696
|
+
PA(V(k)("操作确认")),
|
|
8694
8697
|
1
|
|
8695
8698
|
/* TEXT */
|
|
8696
8699
|
)
|
|
8697
8700
|
]),
|
|
8698
8701
|
feedbackImg: Y(() => [
|
|
8699
|
-
|
|
8702
|
+
B("img", {
|
|
8700
8703
|
src: V(t8),
|
|
8701
8704
|
width: "168",
|
|
8702
8705
|
height: "96",
|
|
@@ -8704,10 +8707,10 @@ const r8 = (f) => {
|
|
|
8704
8707
|
}, null, 8, P8)
|
|
8705
8708
|
]),
|
|
8706
8709
|
default: Y(() => [
|
|
8707
|
-
|
|
8710
|
+
B(
|
|
8708
8711
|
"div",
|
|
8709
8712
|
u8,
|
|
8710
|
-
PA(V(
|
|
8713
|
+
PA(V(k)("framework-reset-home-confirm", n.value)),
|
|
8711
8714
|
1
|
|
8712
8715
|
/* TEXT */
|
|
8713
8716
|
)
|
|
@@ -8723,7 +8726,7 @@ const r8 = (f) => {
|
|
|
8723
8726
|
},
|
|
8724
8727
|
emits: ["reset-confirm"],
|
|
8725
8728
|
setup(f, { expose: A, emit: e }) {
|
|
8726
|
-
const v = e, r = $A(), n =
|
|
8729
|
+
const v = e, r = $A(), n = Z({}), P = Z([]), u = Z({
|
|
8727
8730
|
routeUrl: "",
|
|
8728
8731
|
homeAlias: ""
|
|
8729
8732
|
}), d = async () => {
|
|
@@ -8750,7 +8753,7 @@ const r8 = (f) => {
|
|
|
8750
8753
|
openBuiltInDialog: s,
|
|
8751
8754
|
loadChildNode: q,
|
|
8752
8755
|
search: m,
|
|
8753
|
-
toggleTree:
|
|
8756
|
+
toggleTree: O,
|
|
8754
8757
|
confirmFormBuiltIn: N
|
|
8755
8758
|
} = v8({
|
|
8756
8759
|
orgInfo: r,
|
|
@@ -8758,13 +8761,13 @@ const r8 = (f) => {
|
|
|
8758
8761
|
validate: u
|
|
8759
8762
|
}), {
|
|
8760
8763
|
loading: D,
|
|
8761
|
-
urlDialog:
|
|
8764
|
+
urlDialog: x,
|
|
8762
8765
|
urlType: j,
|
|
8763
|
-
urlTypeOptions:
|
|
8766
|
+
urlTypeOptions: l,
|
|
8764
8767
|
tableData: R,
|
|
8765
8768
|
pageSize: o,
|
|
8766
|
-
pageIndex:
|
|
8767
|
-
totalCount:
|
|
8769
|
+
pageIndex: T,
|
|
8770
|
+
totalCount: g,
|
|
8768
8771
|
tableFilter: h,
|
|
8769
8772
|
urlId: $,
|
|
8770
8773
|
openUrlDialog: J,
|
|
@@ -8777,13 +8780,13 @@ const r8 = (f) => {
|
|
|
8777
8780
|
information: n
|
|
8778
8781
|
}), w = () => {
|
|
8779
8782
|
!n.value.type || n.value.type === 3 || (n.value.type === 1 ? s() : J());
|
|
8780
|
-
}, E =
|
|
8783
|
+
}, E = Z(null), W = () => {
|
|
8781
8784
|
var C;
|
|
8782
8785
|
(C = E.value) == null || C.open();
|
|
8783
8786
|
}, bA = async (C) => {
|
|
8784
8787
|
const [eA, nA] = await F1().run();
|
|
8785
8788
|
eA || (await t(), await o7(), C(), v("reset-confirm"));
|
|
8786
|
-
}, aA = () => (n.value.type === 1 || n.value.type === 2) && !n.value.routeUrl ? (u.value.routeUrl =
|
|
8789
|
+
}, aA = () => (n.value.type === 1 || n.value.type === 2) && !n.value.routeUrl ? (u.value.routeUrl = k("必填"), !1) : (u.value.routeUrl = "", n.value.homeAlias && n.value.homeAlias.length > 50 ? (u.value.homeAlias = k("最多50个字符,可以是任意字符"), !1) : (u.value.homeAlias = "", !0)), jA = () => {
|
|
8787
8790
|
const C = n.value, eA = {
|
|
8788
8791
|
id: C.id,
|
|
8789
8792
|
type: C.type,
|
|
@@ -8801,11 +8804,11 @@ const r8 = (f) => {
|
|
|
8801
8804
|
ee,
|
|
8802
8805
|
null,
|
|
8803
8806
|
[
|
|
8804
|
-
EA(
|
|
8807
|
+
EA(B(
|
|
8805
8808
|
"div",
|
|
8806
8809
|
z8,
|
|
8807
8810
|
[
|
|
8808
|
-
|
|
8811
|
+
M(V(m7), {
|
|
8809
8812
|
width: "100%",
|
|
8810
8813
|
"label-length": 6,
|
|
8811
8814
|
"align-type": "horizontal",
|
|
@@ -8813,9 +8816,9 @@ const r8 = (f) => {
|
|
|
8813
8816
|
}, {
|
|
8814
8817
|
default: Y(() => [
|
|
8815
8818
|
AA(" 首页展示类型 1内置门户 2外置门户 3轻分析 "),
|
|
8816
|
-
|
|
8819
|
+
M(V(kA), {
|
|
8817
8820
|
type: "select",
|
|
8818
|
-
label: V(
|
|
8821
|
+
label: V(k)("展示类型"),
|
|
8819
8822
|
modelValue: n.value.type,
|
|
8820
8823
|
"onUpdate:modelValue": eA[0] || (eA[0] = (nA) => n.value.type = nA),
|
|
8821
8824
|
options: P.value,
|
|
@@ -8824,16 +8827,16 @@ const r8 = (f) => {
|
|
|
8824
8827
|
"margin-right": "0",
|
|
8825
8828
|
onChange: p
|
|
8826
8829
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
8827
|
-
|
|
8830
|
+
M(V(kA), {
|
|
8828
8831
|
type: "custom",
|
|
8829
|
-
label: V(
|
|
8832
|
+
label: V(k)("链接"),
|
|
8830
8833
|
error: u.value.routeUrl,
|
|
8831
8834
|
"onUpdate:error": eA[2] || (eA[2] = (nA) => u.value.routeUrl = nA),
|
|
8832
8835
|
"margin-right": "0",
|
|
8833
8836
|
required: n.value.type === 1 || n.value.type === 2
|
|
8834
8837
|
}, {
|
|
8835
8838
|
default: Y(() => [
|
|
8836
|
-
|
|
8839
|
+
M(V(n7), {
|
|
8837
8840
|
modelValue: n.value.routeUrl,
|
|
8838
8841
|
"onUpdate:modelValue": eA[1] || (eA[1] = (nA) => n.value.routeUrl = nA),
|
|
8839
8842
|
maxLength: 1e3,
|
|
@@ -8841,7 +8844,7 @@ const r8 = (f) => {
|
|
|
8841
8844
|
disabled: n.value.type !== 2
|
|
8842
8845
|
}, {
|
|
8843
8846
|
suffix: Y(() => [
|
|
8844
|
-
|
|
8847
|
+
M(V(tt), {
|
|
8845
8848
|
class: i7({ disabled: !n.value.type || n.value.type === 3 }),
|
|
8846
8849
|
"icon-color": !n.value.type || n.value.type === 3 ? V(_7)("--das-ui-portal-management-disabled-color") : V(_7)("--das-ui-color-secondary"),
|
|
8847
8850
|
onClick: w
|
|
@@ -8854,10 +8857,10 @@ const r8 = (f) => {
|
|
|
8854
8857
|
_: 1
|
|
8855
8858
|
/* STABLE */
|
|
8856
8859
|
}, 8, ["label", "error", "required"]),
|
|
8857
|
-
|
|
8860
|
+
M(V(kA), {
|
|
8858
8861
|
type: "input",
|
|
8859
8862
|
prop: "homeAlias",
|
|
8860
|
-
label: V(
|
|
8863
|
+
label: V(k)("别名"),
|
|
8861
8864
|
maxlength: 50,
|
|
8862
8865
|
modelValue: n.value.homeAlias,
|
|
8863
8866
|
"onUpdate:modelValue": eA[3] || (eA[3] = (nA) => n.value.homeAlias = nA),
|
|
@@ -8865,13 +8868,13 @@ const r8 = (f) => {
|
|
|
8865
8868
|
"onUpdate:error": eA[4] || (eA[4] = (nA) => u.value.homeAlias = nA),
|
|
8866
8869
|
"margin-right": "0"
|
|
8867
8870
|
}, null, 8, ["label", "modelValue", "error"]),
|
|
8868
|
-
|
|
8871
|
+
M(V(kA), {
|
|
8869
8872
|
type: "custom",
|
|
8870
|
-
label: V(
|
|
8873
|
+
label: V(k)("还原"),
|
|
8871
8874
|
"margin-right": "0"
|
|
8872
8875
|
}, {
|
|
8873
8876
|
default: Y(() => [
|
|
8874
|
-
|
|
8877
|
+
M(V(CA), {
|
|
8875
8878
|
btnType: "primary",
|
|
8876
8879
|
ghost: "",
|
|
8877
8880
|
size: "middle",
|
|
@@ -8880,7 +8883,7 @@ const r8 = (f) => {
|
|
|
8880
8883
|
}, {
|
|
8881
8884
|
default: Y(() => [
|
|
8882
8885
|
mA(
|
|
8883
|
-
PA(V(
|
|
8886
|
+
PA(V(k)("恢复项目初始设置")),
|
|
8884
8887
|
1
|
|
8885
8888
|
/* TEXT */
|
|
8886
8889
|
)
|
|
@@ -8903,23 +8906,23 @@ const r8 = (f) => {
|
|
|
8903
8906
|
[YA, C.isShow]
|
|
8904
8907
|
]),
|
|
8905
8908
|
AA(" 内置链接选择弹窗 "),
|
|
8906
|
-
|
|
8909
|
+
M(V(Fe), {
|
|
8907
8910
|
modelValue: V(X),
|
|
8908
8911
|
"onUpdate:modelValue": eA[9] || (eA[9] = (nA) => ne(X) ? X.value = nA : null),
|
|
8909
8912
|
"body-style": { padding: 0 },
|
|
8910
|
-
title: V(
|
|
8913
|
+
title: V(k)("选择内置门户菜单"),
|
|
8911
8914
|
width: "610px",
|
|
8912
8915
|
height: "580px"
|
|
8913
8916
|
}, {
|
|
8914
8917
|
footer: Y(() => [
|
|
8915
|
-
|
|
8916
|
-
|
|
8918
|
+
B("div", null, [
|
|
8919
|
+
M(V(CA), {
|
|
8917
8920
|
size: "middle",
|
|
8918
8921
|
onClick: eA[8] || (eA[8] = (nA) => X.value = !1)
|
|
8919
8922
|
}, {
|
|
8920
8923
|
default: Y(() => [
|
|
8921
8924
|
mA(
|
|
8922
|
-
PA(V(
|
|
8925
|
+
PA(V(k)("取消")),
|
|
8923
8926
|
1
|
|
8924
8927
|
/* TEXT */
|
|
8925
8928
|
)
|
|
@@ -8927,7 +8930,7 @@ const r8 = (f) => {
|
|
|
8927
8930
|
_: 1
|
|
8928
8931
|
/* STABLE */
|
|
8929
8932
|
}),
|
|
8930
|
-
|
|
8933
|
+
M(V(CA), {
|
|
8931
8934
|
btnType: "primary",
|
|
8932
8935
|
size: "middle",
|
|
8933
8936
|
style: { "margin-left": "12px" },
|
|
@@ -8935,7 +8938,7 @@ const r8 = (f) => {
|
|
|
8935
8938
|
}, {
|
|
8936
8939
|
default: Y(() => [
|
|
8937
8940
|
mA(
|
|
8938
|
-
PA(V(
|
|
8941
|
+
PA(V(k)("确定")),
|
|
8939
8942
|
1
|
|
8940
8943
|
/* TEXT */
|
|
8941
8944
|
)
|
|
@@ -8946,7 +8949,7 @@ const r8 = (f) => {
|
|
|
8946
8949
|
])
|
|
8947
8950
|
]),
|
|
8948
8951
|
default: Y(() => [
|
|
8949
|
-
|
|
8952
|
+
M(V(ut), {
|
|
8950
8953
|
"node-key": "id",
|
|
8951
8954
|
ref_key: "$typeTree",
|
|
8952
8955
|
ref: b,
|
|
@@ -8961,32 +8964,32 @@ const r8 = (f) => {
|
|
|
8961
8964
|
"default-expanded-keys": ["-1"],
|
|
8962
8965
|
load: V(q),
|
|
8963
8966
|
search: V(m),
|
|
8964
|
-
"input-options": { placeholder: V(
|
|
8965
|
-
onNodeClick: V(
|
|
8967
|
+
"input-options": { placeholder: V(k)("搜索门户名称") },
|
|
8968
|
+
onNodeClick: V(O)
|
|
8966
8969
|
}, null, 8, ["modelValue", "path", "filter-value", "data", "load", "search", "input-options", "onNodeClick"])
|
|
8967
8970
|
]),
|
|
8968
8971
|
_: 1
|
|
8969
8972
|
/* STABLE */
|
|
8970
8973
|
}, 8, ["modelValue", "title"]),
|
|
8971
8974
|
AA(" 非内置链接选择弹窗 "),
|
|
8972
|
-
|
|
8973
|
-
modelValue: V(
|
|
8974
|
-
"onUpdate:modelValue": eA[16] || (eA[16] = (nA) => ne(
|
|
8975
|
+
M(V(Fe), {
|
|
8976
|
+
modelValue: V(x),
|
|
8977
|
+
"onUpdate:modelValue": eA[16] || (eA[16] = (nA) => ne(x) ? x.value = nA : null),
|
|
8975
8978
|
"custom-class": "framework-portal-management-url-dialog",
|
|
8976
8979
|
"body-style": { padding: 0 },
|
|
8977
|
-
title: V(
|
|
8980
|
+
title: V(k)("选择URL链接"),
|
|
8978
8981
|
width: "960px",
|
|
8979
8982
|
height: "580px"
|
|
8980
8983
|
}, {
|
|
8981
8984
|
footer: Y(() => [
|
|
8982
|
-
|
|
8983
|
-
|
|
8985
|
+
B("div", null, [
|
|
8986
|
+
M(V(CA), {
|
|
8984
8987
|
size: "middle",
|
|
8985
|
-
onClick: eA[15] || (eA[15] = (nA) =>
|
|
8988
|
+
onClick: eA[15] || (eA[15] = (nA) => x.value = !1)
|
|
8986
8989
|
}, {
|
|
8987
8990
|
default: Y(() => [
|
|
8988
8991
|
mA(
|
|
8989
|
-
PA(V(
|
|
8992
|
+
PA(V(k)("取消")),
|
|
8990
8993
|
1
|
|
8991
8994
|
/* TEXT */
|
|
8992
8995
|
)
|
|
@@ -8994,7 +8997,7 @@ const r8 = (f) => {
|
|
|
8994
8997
|
_: 1
|
|
8995
8998
|
/* STABLE */
|
|
8996
8999
|
}),
|
|
8997
|
-
|
|
9000
|
+
M(V(CA), {
|
|
8998
9001
|
btnType: "primary",
|
|
8999
9002
|
size: "middle",
|
|
9000
9003
|
style: { "margin-left": "12px" },
|
|
@@ -9002,7 +9005,7 @@ const r8 = (f) => {
|
|
|
9002
9005
|
}, {
|
|
9003
9006
|
default: Y(() => [
|
|
9004
9007
|
mA(
|
|
9005
|
-
PA(V(
|
|
9008
|
+
PA(V(k)("确定")),
|
|
9006
9009
|
1
|
|
9007
9010
|
/* TEXT */
|
|
9008
9011
|
)
|
|
@@ -9013,69 +9016,69 @@ const r8 = (f) => {
|
|
|
9013
9016
|
])
|
|
9014
9017
|
]),
|
|
9015
9018
|
default: Y(() => [
|
|
9016
|
-
|
|
9019
|
+
M(V(F9), { spinning: V(D) }, {
|
|
9017
9020
|
default: Y(() => [
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
+
B("div", X8, [
|
|
9022
|
+
B("div", c8, [
|
|
9023
|
+
B(
|
|
9021
9024
|
"div",
|
|
9022
9025
|
b8,
|
|
9023
|
-
PA(V(
|
|
9026
|
+
PA(V(k)("类型")),
|
|
9024
9027
|
1
|
|
9025
9028
|
/* TEXT */
|
|
9026
9029
|
),
|
|
9027
|
-
|
|
9030
|
+
M(V(Uv), {
|
|
9028
9031
|
modelValue: V(j),
|
|
9029
9032
|
"onUpdate:modelValue": eA[10] || (eA[10] = (nA) => ne(j) ? j.value = nA : null),
|
|
9030
9033
|
size: "small",
|
|
9031
9034
|
width: "200px",
|
|
9032
|
-
options: V(
|
|
9035
|
+
options: V(l),
|
|
9033
9036
|
onChange: V(_)
|
|
9034
9037
|
}, null, 8, ["modelValue", "options", "onChange"])
|
|
9035
9038
|
]),
|
|
9036
|
-
|
|
9037
|
-
|
|
9039
|
+
B("div", a8, [
|
|
9040
|
+
M(V(dt), {
|
|
9038
9041
|
modelValue: V(h),
|
|
9039
9042
|
"onUpdate:modelValue": eA[11] || (eA[11] = (nA) => ne(h) ? h.value = nA : null),
|
|
9040
9043
|
clearable: "",
|
|
9041
9044
|
size: "small",
|
|
9042
|
-
placeholder: V(
|
|
9045
|
+
placeholder: V(k)("搜索名称"),
|
|
9043
9046
|
onChange: V(L),
|
|
9044
9047
|
"is-icon-left": "",
|
|
9045
9048
|
onSearch: V(L)
|
|
9046
9049
|
}, null, 8, ["modelValue", "placeholder", "onChange", "onSearch"])
|
|
9047
9050
|
])
|
|
9048
9051
|
]),
|
|
9049
|
-
|
|
9050
|
-
|
|
9052
|
+
B("div", i8, [
|
|
9053
|
+
M(V(rt), {
|
|
9051
9054
|
data: V(R),
|
|
9052
9055
|
currentRodioSelection: V($),
|
|
9053
9056
|
"onUpdate:currentRodioSelection": eA[12] || (eA[12] = (nA) => ne($) ? $.value = nA : null),
|
|
9054
9057
|
"radio-selection": { selectable: () => !0 },
|
|
9055
9058
|
"max-height": "100%",
|
|
9056
|
-
"current-page": V(
|
|
9057
|
-
"onUpdate:currentPage": eA[13] || (eA[13] = (nA) => ne(
|
|
9059
|
+
"current-page": V(T),
|
|
9060
|
+
"onUpdate:currentPage": eA[13] || (eA[13] = (nA) => ne(T) ? T.value = nA : null),
|
|
9058
9061
|
"page-size": V(o),
|
|
9059
9062
|
"onUpdate:pageSize": eA[14] || (eA[14] = (nA) => ne(o) ? o.value = nA : null),
|
|
9060
|
-
total: V(
|
|
9063
|
+
total: V(g),
|
|
9061
9064
|
"pagination-props": { layout: "prev,next,sizes" },
|
|
9062
9065
|
onRadioChange: V(U),
|
|
9063
9066
|
onCurrentPageChange: V(L),
|
|
9064
9067
|
onSizeChange: V(L)
|
|
9065
9068
|
}, {
|
|
9066
9069
|
default: Y(() => [
|
|
9067
|
-
|
|
9068
|
-
label: V(
|
|
9070
|
+
M(V(tf), {
|
|
9071
|
+
label: V(k)("名称"),
|
|
9069
9072
|
"min-width": "36px",
|
|
9070
9073
|
prop: "name"
|
|
9071
9074
|
}, null, 8, ["label"]),
|
|
9072
|
-
|
|
9073
|
-
label: V(
|
|
9075
|
+
M(V(tf), {
|
|
9076
|
+
label: V(k)("类型"),
|
|
9074
9077
|
"min-width": "36px",
|
|
9075
9078
|
prop: "type"
|
|
9076
9079
|
}, null, 8, ["label"]),
|
|
9077
|
-
|
|
9078
|
-
label: V(
|
|
9080
|
+
M(V(tf), {
|
|
9081
|
+
label: V(k)("URL链接地址"),
|
|
9079
9082
|
"min-width": "72px",
|
|
9080
9083
|
prop: "url"
|
|
9081
9084
|
}, null, 8, ["label"])
|
|
@@ -9093,7 +9096,7 @@ const r8 = (f) => {
|
|
|
9093
9096
|
/* STABLE */
|
|
9094
9097
|
}, 8, ["modelValue", "title"]),
|
|
9095
9098
|
AA(" 恢复项目初始设置 二次确认 "),
|
|
9096
|
-
|
|
9099
|
+
M(
|
|
9097
9100
|
d8,
|
|
9098
9101
|
{
|
|
9099
9102
|
ref_key: "resetDialogRef",
|
|
@@ -9112,25 +9115,25 @@ const r8 = (f) => {
|
|
|
9112
9115
|
}), q8 = /* @__PURE__ */ ZA(s8, [["__scopeId", "data-v-acf77da9"]]), H8 = "v1", p8 = `/api/portal/user/${H8}`, Mn = MA(p8), m8 = Yr.post("/menu/personal-setting"), l8 = Mn.put("/home"), x8 = Mn.put("/language"), O8 = { class: "preson-style-drawer" }, D8 = { class: "preson-style-footer" }, V8 = /* @__PURE__ */ iA({
|
|
9113
9116
|
__name: "index",
|
|
9114
9117
|
setup(f, { expose: A }) {
|
|
9115
|
-
const e =
|
|
9118
|
+
const e = Z(!1), v = Z(!1), r = Z(null), n = Z(null), P = Z(null), u = Z("theme"), d = Z(""), t = Z(!0), z = vA(() => [
|
|
9116
9119
|
{
|
|
9117
9120
|
key: "theme",
|
|
9118
|
-
tab:
|
|
9121
|
+
tab: k("主题设置")
|
|
9119
9122
|
},
|
|
9120
9123
|
{
|
|
9121
9124
|
key: "lang",
|
|
9122
|
-
tab:
|
|
9125
|
+
tab: k("语言设置"),
|
|
9123
9126
|
hidden: Number($7()) < 2
|
|
9124
9127
|
},
|
|
9125
9128
|
{
|
|
9126
9129
|
key: "home",
|
|
9127
|
-
tab:
|
|
9130
|
+
tab: k("home-set", d.value),
|
|
9128
9131
|
hidden: !t.value
|
|
9129
9132
|
}
|
|
9130
9133
|
]), p = () => {
|
|
9131
9134
|
var c, a;
|
|
9132
9135
|
const { flag: b } = G9();
|
|
9133
|
-
b === 4 && (t.value = (c = ie.value) == null ? void 0 : c.companyIsDisplayHome), d.value = (a = ie.value) != null && a.homeAlias ? ie.value.homeAlias :
|
|
9136
|
+
b === 4 && (t.value = (c = ie.value) == null ? void 0 : c.companyIsDisplayHome), d.value = (a = ie.value) != null && a.homeAlias ? ie.value.homeAlias : k("首页"), e.value = !0;
|
|
9134
9137
|
}, X = async () => {
|
|
9135
9138
|
var a, i, H, s;
|
|
9136
9139
|
const b = (a = r.value) == null ? void 0 : a.getResult(), [c] = await m8().run(b);
|
|
@@ -9154,7 +9157,7 @@ const r8 = (f) => {
|
|
|
9154
9157
|
u.value = "home";
|
|
9155
9158
|
return;
|
|
9156
9159
|
}
|
|
9157
|
-
p7.success(
|
|
9160
|
+
p7.success(k("保存成功")), e.value = !1, window.__isAutoCloseApp = !1, window.location.reload();
|
|
9158
9161
|
}
|
|
9159
9162
|
};
|
|
9160
9163
|
return A({
|
|
@@ -9169,8 +9172,8 @@ const r8 = (f) => {
|
|
|
9169
9172
|
direction: "rtl"
|
|
9170
9173
|
}, {
|
|
9171
9174
|
footer: Y(() => [
|
|
9172
|
-
|
|
9173
|
-
|
|
9175
|
+
B("div", D8, [
|
|
9176
|
+
M(V(CA), {
|
|
9174
9177
|
size: "middle",
|
|
9175
9178
|
onClick: c[2] || (c[2] = (a) => e.value = !1),
|
|
9176
9179
|
style: { "margin-right": "12px" }
|
|
@@ -9185,7 +9188,7 @@ const r8 = (f) => {
|
|
|
9185
9188
|
_: 1
|
|
9186
9189
|
/* STABLE */
|
|
9187
9190
|
}),
|
|
9188
|
-
|
|
9191
|
+
M(V(CA), {
|
|
9189
9192
|
btnType: "primary",
|
|
9190
9193
|
size: "middle",
|
|
9191
9194
|
loading: v.value,
|
|
@@ -9204,23 +9207,23 @@ const r8 = (f) => {
|
|
|
9204
9207
|
])
|
|
9205
9208
|
]),
|
|
9206
9209
|
default: Y(() => [
|
|
9207
|
-
|
|
9210
|
+
M(V(vt), {
|
|
9208
9211
|
options: z.value,
|
|
9209
9212
|
activeKey: u.value,
|
|
9210
9213
|
"onUpdate:activeKey": c[0] || (c[0] = (a) => u.value = a),
|
|
9211
9214
|
"tab-width": "110px"
|
|
9212
9215
|
}, null, 8, ["options", "activeKey"]),
|
|
9213
|
-
|
|
9216
|
+
M(V(E1), {
|
|
9214
9217
|
ref_key: "setThemeStyleRef",
|
|
9215
9218
|
ref: r,
|
|
9216
9219
|
isShow: u.value === "theme"
|
|
9217
9220
|
}, null, 8, ["isShow"]),
|
|
9218
|
-
|
|
9221
|
+
M(V(M1), {
|
|
9219
9222
|
ref_key: "setLangRef",
|
|
9220
9223
|
ref: P,
|
|
9221
9224
|
isShow: u.value === "lang"
|
|
9222
9225
|
}, null, 8, ["isShow"]),
|
|
9223
|
-
|
|
9226
|
+
M(V(q8), {
|
|
9224
9227
|
ref_key: "setHomeRef",
|
|
9225
9228
|
ref: n,
|
|
9226
9229
|
isShow: u.value === "home",
|
|
@@ -9232,13 +9235,13 @@ const r8 = (f) => {
|
|
|
9232
9235
|
}, 8, ["title", "modelValue"])) : AA("v-if", !0)
|
|
9233
9236
|
]));
|
|
9234
9237
|
}
|
|
9235
|
-
}), N8 = /* @__PURE__ */ ZA(V8, [["__scopeId", "data-v-b5afad5c"]]), R8 = () =>
|
|
9238
|
+
}), N8 = /* @__PURE__ */ ZA(V8, [["__scopeId", "data-v-b5afad5c"]]), R8 = () => Z(null), j8 = { class: "iframe-container" }, o8 = ["src"], Z8 = /* @__PURE__ */ iA({
|
|
9236
9239
|
__name: "index",
|
|
9237
9240
|
props: {
|
|
9238
9241
|
src: { default: "" }
|
|
9239
9242
|
},
|
|
9240
9243
|
setup(f) {
|
|
9241
|
-
const A = f, e =
|
|
9244
|
+
const A = f, e = Z(null), v = Z(!1), r = () => {
|
|
9242
9245
|
var P, u;
|
|
9243
9246
|
v.value && (P = e.value) != null && P.contentWindow && ((u = e.value.contentWindow) == null || u.postMessage(
|
|
9244
9247
|
{
|
|
@@ -9259,7 +9262,7 @@ const r8 = (f) => {
|
|
|
9259
9262
|
spinning: !v.value
|
|
9260
9263
|
}, {
|
|
9261
9264
|
default: Y(() => [
|
|
9262
|
-
EA(
|
|
9265
|
+
EA(B("iframe", {
|
|
9263
9266
|
id: "iframe-view",
|
|
9264
9267
|
ref_key: "iframeRef",
|
|
9265
9268
|
ref: e,
|
|
@@ -9284,21 +9287,21 @@ const r8 = (f) => {
|
|
|
9284
9287
|
const [P, u] = await T8().run({ userId: G9().id });
|
|
9285
9288
|
P || !u || JSON.stringify(u) === "{}" || (M9.open({
|
|
9286
9289
|
key: "loginTip",
|
|
9287
|
-
message:
|
|
9290
|
+
message: k("上次登录信息"),
|
|
9288
9291
|
placement: "bottomRight",
|
|
9289
9292
|
description: RA("div", { class: "last-login-info" }, [
|
|
9290
9293
|
RA(
|
|
9291
9294
|
"div",
|
|
9292
9295
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
9293
|
-
|
|
9296
|
+
k("时间:") + Wr(u.lastModificationTime)
|
|
9294
9297
|
),
|
|
9295
|
-
RA("div", { style: "font-size: 12px;color:#212121;" },
|
|
9298
|
+
RA("div", { style: "font-size: 12px;color:#212121;" }, k("IP地址:") + u.ip)
|
|
9296
9299
|
])
|
|
9297
9300
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
9298
9301
|
}, v = async () => {
|
|
9299
9302
|
const [{ loginConfig: P }, { platformConfig: u }] = await Promise.all([e1(), En()]);
|
|
9300
9303
|
return A(u), u != null && u.browserTitle && localStorage.setItem("browser-title", u.browserTitle || "AIoT智能物联网管控平台"), wr(), { loginConfig: P, platformConfig: u };
|
|
9301
|
-
}, r =
|
|
9304
|
+
}, r = Z(!1), n = () => new Promise((P) => {
|
|
9302
9305
|
const u = () => {
|
|
9303
9306
|
if (r.value) return P();
|
|
9304
9307
|
setTimeout(() => u(), 50);
|
|
@@ -9313,7 +9316,7 @@ const r8 = (f) => {
|
|
|
9313
9316
|
initNextTick: n
|
|
9314
9317
|
};
|
|
9315
9318
|
}, y8 = (f, A, e) => (A >= f.length || e < 0 || e >= f.length || ([f[A], f[e]] = [f[e], f[A]]), f), w8 = (f) => {
|
|
9316
|
-
const A = Te(), e = $e(), { getMenu: v } = kr(), { getHistoryList: r, getSearchList: n } = K8(), P =
|
|
9319
|
+
const A = Te(), e = $e(), { getMenu: v } = kr(), { getHistoryList: r, getSearchList: n } = K8(), P = Z("0"), u = Z(!0), d = Z([]), t = Z([]), z = Z(!1), p = Z(!1), X = Z(!1);
|
|
9317
9320
|
sA(
|
|
9318
9321
|
() => e.path,
|
|
9319
9322
|
(s) => {
|
|
@@ -9351,7 +9354,7 @@ const r8 = (f) => {
|
|
|
9351
9354
|
const s = ie.value;
|
|
9352
9355
|
let q = [...Kv].map((D) => ({
|
|
9353
9356
|
...D,
|
|
9354
|
-
label:
|
|
9357
|
+
label: k(D.label)
|
|
9355
9358
|
}));
|
|
9356
9359
|
q.forEach((D) => (s != null && s.appAlias && D.value === wA && (D.label = s.appAlias), s != null && s.homeAlias && D.value === Pe && (D.label = s.homeAlias), D));
|
|
9357
9360
|
const m = () => {
|
|
@@ -9359,37 +9362,39 @@ const r8 = (f) => {
|
|
|
9359
9362
|
return D === 4 ? s == null ? void 0 : s.companyIsDisplayHome : s == null ? void 0 : s.enable;
|
|
9360
9363
|
};
|
|
9361
9364
|
m() ? ((s == null ? void 0 : s.displayPosition) === 2 && (q = y8(q, 0, 1)), d.value = q) : (d.value = q.filter((D) => D.path === wA), e.path === Pe && await A.replace(wA));
|
|
9362
|
-
const
|
|
9363
|
-
sessionStorage.getItem("defalt-page") || e.path !==
|
|
9365
|
+
const O = m() && (s == null ? void 0 : s.displayPosition) !== 2 ? Pe : wA;
|
|
9366
|
+
sessionStorage.getItem("defalt-page") || e.path !== O && await A.replace(O), sessionStorage.setItem("defalt-page", O);
|
|
9364
9367
|
const N = S.nav.getItems().filter((D) => !D.fixed) ?? [];
|
|
9365
9368
|
S.nav.setItems([...d.value, ...N]);
|
|
9366
|
-
}, a =
|
|
9367
|
-
var
|
|
9369
|
+
}, a = Z(!1), i = async () => {
|
|
9370
|
+
var T;
|
|
9368
9371
|
await f();
|
|
9369
9372
|
const s = $A().id, q = await b();
|
|
9370
9373
|
if (!q) return;
|
|
9371
|
-
const { navConfig: m, projectConfig:
|
|
9372
|
-
s !=
|
|
9374
|
+
const { navConfig: m, projectConfig: O, currentProject: N, tenantList: D } = q, x = (N == null ? void 0 : N.id) || 0;
|
|
9375
|
+
s != x && (P.value = P.value === "0" ? "1" : "0"), X.value = ((T = Y9()) == null ? void 0 : T.flag) !== 4 && D && D.length > 1;
|
|
9376
|
+
const j = await v("aiPlatform", "aiPlatform.dasaiassistant", "", "enterpriseadmin", !0);
|
|
9377
|
+
z.value = !!j, c(), O && O.length && (S.nav.setProjectConfig({
|
|
9373
9378
|
treeProps: {
|
|
9374
|
-
disabled: (
|
|
9379
|
+
disabled: (g) => g.type !== 7
|
|
9375
9380
|
},
|
|
9376
9381
|
// 过滤的节点
|
|
9377
|
-
filterNodeMethod: (
|
|
9382
|
+
filterNodeMethod: (g) => g.type === 7,
|
|
9378
9383
|
// 树打平之后保留的数据
|
|
9379
|
-
filterFlatCondition: (
|
|
9380
|
-
}), S.nav.setProjects(
|
|
9381
|
-
const
|
|
9382
|
-
t.value = [...xP].map((
|
|
9383
|
-
...
|
|
9384
|
-
label:
|
|
9385
|
-
})), N && N.id !== 0 ? await v("personCenter",
|
|
9384
|
+
filterFlatCondition: (g) => g.type === 7
|
|
9385
|
+
}), S.nav.setProjects(O || []), N && S.nav.setActiveProject(N));
|
|
9386
|
+
const l = V9() ?? {}, R = l != null && l.headPicture ? U9(l.headPicture) : void 0;
|
|
9387
|
+
t.value = [...xP].map((g) => ({
|
|
9388
|
+
...g,
|
|
9389
|
+
label: k(g.label)
|
|
9390
|
+
})), N && N.id !== 0 ? await v("personCenter", null, "/userInfo") || (t.value = t.value.filter((h) => h.value !== "1")) : t.value = t.value.filter((g) => g.value !== "1"), S.nav.setUserInfo({ headPicture: R, commandList: t.value }), S.nav.setSearchConfig({
|
|
9386
9391
|
getHistoryList: r,
|
|
9387
9392
|
getSearchList: n
|
|
9388
9393
|
});
|
|
9389
|
-
const
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
}), SA([{ key: "subAppList", value:
|
|
9394
|
+
const o = cA().subAppList ?? [];
|
|
9395
|
+
o.length && (o.forEach((g) => {
|
|
9396
|
+
g.menus = [], g.originalMenus = [];
|
|
9397
|
+
}), SA([{ key: "subAppList", value: o }])), a.value = !0;
|
|
9393
9398
|
};
|
|
9394
9399
|
return S.nav.addEventListener("onBeforeMount", i), sA(
|
|
9395
9400
|
() => ie.value,
|
|
@@ -9400,8 +9405,8 @@ const r8 = (f) => {
|
|
|
9400
9405
|
), { loading: u, pageKey: P, innerPage: d, commandList: t, layoutInited: a, initNextTick: () => new Promise((s) => {
|
|
9401
9406
|
const q = async () => {
|
|
9402
9407
|
var N;
|
|
9403
|
-
let m = ((N = e.meta) == null ? void 0 : N.showLayout) ?? !0, { showLayout:
|
|
9404
|
-
if (
|
|
9408
|
+
let m = ((N = e.meta) == null ? void 0 : N.showLayout) ?? !0, { showLayout: O = !0 } = e.query;
|
|
9409
|
+
if (O === "false" && (O = !1), !m || !O || a.value) {
|
|
9405
9410
|
s();
|
|
9406
9411
|
return;
|
|
9407
9412
|
}
|
|
@@ -9443,7 +9448,7 @@ const r8 = (f) => {
|
|
|
9443
9448
|
const n = cA().currentSubAppCode ?? "";
|
|
9444
9449
|
if (n !== r.code) {
|
|
9445
9450
|
if (n && CP(n), !r.fixed && !await e(r))
|
|
9446
|
-
throw new Error(
|
|
9451
|
+
throw new Error(k("取消切换"));
|
|
9447
9452
|
f(r);
|
|
9448
9453
|
}
|
|
9449
9454
|
}), S.nav.addEventListener("onItemRemove", (r) => {
|
|
@@ -9456,14 +9461,14 @@ const r8 = (f) => {
|
|
|
9456
9461
|
const { enter: v } = e9();
|
|
9457
9462
|
return S.nav.addEventListener("fullScreenHandle", v), {};
|
|
9458
9463
|
}, g8 = () => {
|
|
9459
|
-
const f = Te(), A =
|
|
9464
|
+
const f = Te(), A = Z(""), e = Z(""), v = Z("");
|
|
9460
9465
|
let r = "", n = {};
|
|
9461
9466
|
sA(
|
|
9462
9467
|
() => f.currentRoute.value,
|
|
9463
9468
|
async (c) => {
|
|
9464
|
-
var m,
|
|
9469
|
+
var m, O, N, D, x, j, l, R, o, T;
|
|
9465
9470
|
const a = ((m = c.meta) == null ? void 0 : m.showLayout) ?? !0;
|
|
9466
|
-
let i = ((
|
|
9471
|
+
let i = ((O = c.query) == null ? void 0 : O.showLayout) ?? !0;
|
|
9467
9472
|
if (i === "false" && (i = !1), !a || !i || c.path === r && A7(c.query, n)) return;
|
|
9468
9473
|
r = Ce(c.path), n = Ce(c.query);
|
|
9469
9474
|
const H = cA().currentSubAppCode ?? "";
|
|
@@ -9471,7 +9476,7 @@ const r8 = (f) => {
|
|
|
9471
9476
|
const s = ((N = c.query) == null ? void 0 : N.menu) ?? ((D = IA()) == null ? void 0 : D.currentCode) ?? "";
|
|
9472
9477
|
if (!s) return;
|
|
9473
9478
|
const q = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
9474
|
-
q && JSON.stringify(q) !== "{}" && (A.value = (j = (
|
|
9479
|
+
q && JSON.stringify(q) !== "{}" && (A.value = (j = (x = q[H]) == null ? void 0 : x[s]) != null && j.fontColor ? q[H][s].fontColor : "", e.value = (R = (l = q[H]) == null ? void 0 : l[s]) != null && R.backgroundColor ? q[H][s].backgroundColor : "", v.value = (T = (o = q[H]) == null ? void 0 : o[s]) != null && T.backgroundColor ? q[H][s].backgroundColor : "");
|
|
9475
9480
|
}
|
|
9476
9481
|
);
|
|
9477
9482
|
const { deleteApp: P } = Ee(), { entryMenu: u } = ef(), { reloadRoute: d, unloadRoute: t } = Bn(), z = (c) => {
|
|
@@ -9485,41 +9490,41 @@ const r8 = (f) => {
|
|
|
9485
9490
|
}, X = (c) => {
|
|
9486
9491
|
const a = cA().currentSubAppCode ?? "";
|
|
9487
9492
|
NA.innerSet = !0;
|
|
9488
|
-
const i = IA(), H = i.tabMap[a], s = H.findIndex((
|
|
9493
|
+
const i = IA(), H = i.tabMap[a], s = H.findIndex((x) => x.code === c.data.code);
|
|
9489
9494
|
if (s === -1) return;
|
|
9490
9495
|
const q = () => {
|
|
9491
|
-
var
|
|
9492
|
-
let j = (((
|
|
9496
|
+
var l;
|
|
9497
|
+
let j = (((l = cA().appcategorys) == null ? void 0 : l.map((R) => R.apps).flat()) ?? []).find((R) => R.code === a);
|
|
9493
9498
|
j = { ...j, value: j.code, label: j.name }, P(j), S.nav.removeItem(a);
|
|
9494
9499
|
};
|
|
9495
9500
|
({
|
|
9496
|
-
me: async (
|
|
9501
|
+
me: async (x) => {
|
|
9497
9502
|
if (H.length === 1) {
|
|
9498
9503
|
q();
|
|
9499
9504
|
return;
|
|
9500
9505
|
}
|
|
9501
9506
|
const j = i.currentCode;
|
|
9502
|
-
let
|
|
9503
|
-
j ===
|
|
9507
|
+
let l = null;
|
|
9508
|
+
j === x.value && (s + 1 === H.length ? H[s - 1] && (l = H[s - 1]) : H[s + 1] && (l = H[s + 1])), H.splice(s, 1), p([x]), hA([{ key: `tabMap:${a}`, value: H }]), l ? z(l) : hA([{ key: `preTab:${a}`, value: {} }]);
|
|
9504
9509
|
},
|
|
9505
9510
|
all: q,
|
|
9506
|
-
other: async (
|
|
9511
|
+
other: async (x) => {
|
|
9507
9512
|
const j = H[s];
|
|
9508
9513
|
await f.push({
|
|
9509
9514
|
path: `/${j.applicationPath}${j.path}`.replace(/\/\//g, "/"),
|
|
9510
9515
|
query: j.query
|
|
9511
9516
|
}), S.menu.setActiveItem(j.menuId), S.tab.setActiveItem(j.code);
|
|
9512
|
-
const
|
|
9513
|
-
|
|
9517
|
+
const l = H.filter((R) => R.code !== x.value);
|
|
9518
|
+
l.forEach((R) => S.tab.removeItem(R.code)), p(l), hA([{ key: `tabMap:${a}`, value: [j] }]), z(j);
|
|
9514
9519
|
},
|
|
9515
|
-
right: async (
|
|
9520
|
+
right: async (x) => {
|
|
9516
9521
|
const j = i.currentCode;
|
|
9517
|
-
if (j !==
|
|
9522
|
+
if (j !== x.value && H.findIndex((o) => o.code === j) > s) {
|
|
9518
9523
|
const o = H[s];
|
|
9519
9524
|
z(o);
|
|
9520
9525
|
}
|
|
9521
|
-
const
|
|
9522
|
-
|
|
9526
|
+
const l = H.slice(s + 1);
|
|
9527
|
+
l.forEach((R) => S.tab.removeItem(R.code)), p(l), H.splice(s + 1), hA([{ key: `tabMap:${a}`, value: H }]);
|
|
9523
9528
|
}
|
|
9524
9529
|
})[c.type](c.data);
|
|
9525
9530
|
};
|
|
@@ -9589,18 +9594,18 @@ const r8 = (f) => {
|
|
|
9589
9594
|
const b = X.code ?? "", a = (cA().subAppList ?? []).find((m) => m.code === b);
|
|
9590
9595
|
let i = [], H = [], s = !1;
|
|
9591
9596
|
if (a && (i = a.menus ?? []), !i.length) {
|
|
9592
|
-
const { menus: m, originalMenus:
|
|
9597
|
+
const { menus: m, originalMenus: O, err: N } = await j7(b);
|
|
9593
9598
|
if (N) return !1;
|
|
9594
|
-
i = m ?? [], H =
|
|
9599
|
+
i = m ?? [], H = O ?? [];
|
|
9595
9600
|
}
|
|
9596
9601
|
if (i.length ? k9(i) || (await q9({
|
|
9597
|
-
title:
|
|
9598
|
-
content:
|
|
9599
|
-
}), s = !0) : (await q9({ title:
|
|
9602
|
+
title: k("提示"),
|
|
9603
|
+
content: k("此应用菜单已过期/已收回/配置有误") + "<br/>" + k("无法使用")
|
|
9604
|
+
}), s = !0) : (await q9({ title: k("提示"), content: k("此应用未配置菜单/无菜单权限") + "<br/>" + k("无法使用") }), s = !0), s) return !1;
|
|
9600
9605
|
const q = { ...X, menus: i, originalMenus: H };
|
|
9601
9606
|
return SA([{ key: "subAppList", value: q }]), !0;
|
|
9602
9607
|
}, t = async (X) => {
|
|
9603
|
-
var o,
|
|
9608
|
+
var o, T, g, h, $;
|
|
9604
9609
|
const { microApp: b = null, menuCode: c = "", menuPath: a = "", route: i = {} } = X;
|
|
9605
9610
|
let H = i;
|
|
9606
9611
|
if (!b && a) {
|
|
@@ -9609,15 +9614,15 @@ const r8 = (f) => {
|
|
|
9609
9614
|
return;
|
|
9610
9615
|
}
|
|
9611
9616
|
const s = ((o = H.meta) == null ? void 0 : o.showLayout) ?? !0;
|
|
9612
|
-
let q = ((
|
|
9617
|
+
let q = ((T = H.query) == null ? void 0 : T.showLayout) ?? !0;
|
|
9613
9618
|
q === "false" && (q = !1);
|
|
9614
|
-
const m = (b == null ? void 0 : b.openType) ?? 1,
|
|
9619
|
+
const m = (b == null ? void 0 : b.openType) ?? 1, O = (b == null ? void 0 : b.type) ?? 1;
|
|
9615
9620
|
if (b.routeUrl && !P.includes(b.routeUrl)) {
|
|
9616
9621
|
Hn({
|
|
9617
9622
|
appCode: b.code,
|
|
9618
9623
|
displayAppName: b.name
|
|
9619
9624
|
}), u();
|
|
9620
|
-
const J = ((
|
|
9625
|
+
const J = ((g = cA()) == null ? void 0 : g.subAppList) ?? [];
|
|
9621
9626
|
if ((J == null ? void 0 : J.find((K) => K.code === b.code)) || J == null || J.push(b), SA([
|
|
9622
9627
|
{ key: "currentSubApp", value: b },
|
|
9623
9628
|
{ key: "currentSubAppCode", value: b.code },
|
|
@@ -9629,7 +9634,7 @@ const r8 = (f) => {
|
|
|
9629
9634
|
await f.push({ path: b.routeUrl, query: { ...H.query, app: b.code } });
|
|
9630
9635
|
return;
|
|
9631
9636
|
}
|
|
9632
|
-
if (m === 1 &&
|
|
9637
|
+
if (m === 1 && O === 2) {
|
|
9633
9638
|
const K = await Xn(b.routeUrl, (b == null ? void 0 : b.param) ?? []), _ = P7(e7(f7(K))), L = `${Ne}-${b.code}`;
|
|
9634
9639
|
if (!f.options.routes.find((w) => w.path === L)) {
|
|
9635
9640
|
const w = {
|
|
@@ -9654,13 +9659,13 @@ const r8 = (f) => {
|
|
|
9654
9659
|
const {
|
|
9655
9660
|
menuConfig: N = [],
|
|
9656
9661
|
currentApp: D = null,
|
|
9657
|
-
currentMenu:
|
|
9662
|
+
currentMenu: x = null,
|
|
9658
9663
|
microPath: j = "",
|
|
9659
|
-
query:
|
|
9664
|
+
query: l = {}
|
|
9660
9665
|
} = await w6({ microApp: b, menuCode: c, menuPath: a, route: H });
|
|
9661
|
-
if (
|
|
9662
|
-
path: j || `/${
|
|
9663
|
-
query: { ...
|
|
9666
|
+
if (x && (H = {
|
|
9667
|
+
path: j || `/${x.applicationPath}${x.routeUrl}`.replace(/\/\//g, "/"),
|
|
9668
|
+
query: { ...l, app: x.applicationCode, menu: x.code },
|
|
9664
9669
|
meta: { ...(H == null ? void 0 : H.meta) ?? {} }
|
|
9665
9670
|
}), D && (D == null ? void 0 : D.code) !== (b == null ? void 0 : b.code)) {
|
|
9666
9671
|
if (D.fixed && (await f.push(D.path), u(), S.nav.setActiveItem(D.path)), !D.fixed) {
|
|
@@ -9670,7 +9675,7 @@ const r8 = (f) => {
|
|
|
9670
9675
|
return;
|
|
9671
9676
|
}
|
|
9672
9677
|
const R = D || b;
|
|
9673
|
-
if (!
|
|
9678
|
+
if (!x && a) {
|
|
9674
9679
|
await f.push({
|
|
9675
9680
|
path: a,
|
|
9676
9681
|
query: {
|
|
@@ -9696,7 +9701,7 @@ const r8 = (f) => {
|
|
|
9696
9701
|
} else
|
|
9697
9702
|
S.tab.setItems([]);
|
|
9698
9703
|
}
|
|
9699
|
-
A({ currentMenu:
|
|
9704
|
+
A({ currentMenu: x, microPath: j, route: H });
|
|
9700
9705
|
}, z = async (X) => {
|
|
9701
9706
|
var b;
|
|
9702
9707
|
if (NA.innerSet = !0, X.fixed) {
|
|
@@ -9843,30 +9848,30 @@ const r8 = (f) => {
|
|
|
9843
9848
|
let { mainAppName: n = "", microAppName: P = "", microApps: u = [] } = le();
|
|
9844
9849
|
!n && P && (u = [{ name: P }]);
|
|
9845
9850
|
const d = async (p) => {
|
|
9846
|
-
var m,
|
|
9851
|
+
var m, O, N, D;
|
|
9847
9852
|
let X = { ...p }, { showLayout: b = !0 } = X.query;
|
|
9848
9853
|
b === "false" && (b = !1);
|
|
9849
9854
|
const c = async () => {
|
|
9850
|
-
var
|
|
9851
|
-
let
|
|
9852
|
-
if (!Array.isArray(
|
|
9855
|
+
var l, R;
|
|
9856
|
+
let x = cA().appcategorys ?? [];
|
|
9857
|
+
if (!Array.isArray(x)) return [];
|
|
9853
9858
|
if (X.query) {
|
|
9854
|
-
const o = ((
|
|
9855
|
-
if (!
|
|
9859
|
+
const o = ((l = X.query) == null ? void 0 : l.project) ?? ((R = X.query) == null ? void 0 : R.projectId) ?? "";
|
|
9860
|
+
if (!x.length || o && o !== $A().id) {
|
|
9856
9861
|
await A();
|
|
9857
|
-
const { navConfig:
|
|
9858
|
-
|
|
9862
|
+
const { navConfig: T } = await wn();
|
|
9863
|
+
T && (x = T);
|
|
9859
9864
|
}
|
|
9860
9865
|
}
|
|
9861
|
-
return
|
|
9862
|
-
}, a = u.filter((
|
|
9866
|
+
return x.map((o) => o.apps).flat() ?? [];
|
|
9867
|
+
}, a = u.filter((x) => x.public);
|
|
9863
9868
|
if (a.length) {
|
|
9864
|
-
const
|
|
9869
|
+
const x = a.find(
|
|
9865
9870
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
9866
9871
|
);
|
|
9867
|
-
if (
|
|
9872
|
+
if (x) {
|
|
9868
9873
|
v({
|
|
9869
|
-
microApp: { routeUrl:
|
|
9874
|
+
microApp: { routeUrl: x.name, code: "" },
|
|
9870
9875
|
menuCode: X.query.menu,
|
|
9871
9876
|
menuPath: X.path,
|
|
9872
9877
|
route: X
|
|
@@ -9874,38 +9879,38 @@ const r8 = (f) => {
|
|
|
9874
9879
|
return;
|
|
9875
9880
|
}
|
|
9876
9881
|
}
|
|
9877
|
-
const i = await c(), H = i.map((
|
|
9882
|
+
const i = await c(), H = i.map((x) => x.code), s = ((m = X.query) == null ? void 0 : m.app) ?? "", q = ((O = cA()) == null ? void 0 : O.subAppList) ?? [];
|
|
9878
9883
|
if (q.length) {
|
|
9879
|
-
const
|
|
9880
|
-
(
|
|
9884
|
+
const x = q.filter((l) => l.code !== s && !H.includes(l.code)), j = q.filter(
|
|
9885
|
+
(l) => s === l.code || H.includes(l.code)
|
|
9881
9886
|
);
|
|
9882
|
-
SA([{ key: "subAppList", value: j }]),
|
|
9887
|
+
SA([{ key: "subAppList", value: j }]), x && x.length && x.forEach((l) => {
|
|
9883
9888
|
hA([
|
|
9884
|
-
{ key: `preTab:${
|
|
9885
|
-
{ key: `tabMap:${
|
|
9889
|
+
{ key: `preTab:${l.code}`, value: {} },
|
|
9890
|
+
{ key: `tabMap:${l.code}`, value: [] }
|
|
9886
9891
|
]);
|
|
9887
9892
|
});
|
|
9888
9893
|
}
|
|
9889
9894
|
if (X.query.app) {
|
|
9890
|
-
let
|
|
9891
|
-
if (!
|
|
9895
|
+
let x = i.find((j) => j.code === X.query.app);
|
|
9896
|
+
if (!x && b) {
|
|
9892
9897
|
const { currentApp: j } = c7(X.query.app);
|
|
9893
9898
|
if (j) {
|
|
9894
|
-
|
|
9895
|
-
const R = (IA().preTab ?? {})[
|
|
9899
|
+
x = j;
|
|
9900
|
+
const R = (IA().preTab ?? {})[x.code];
|
|
9896
9901
|
X = {}, R && (X.path = `/${R.applicationPath}${R.path}`.replace(/\/\//g, "/"), X.query = R.query);
|
|
9897
9902
|
}
|
|
9898
9903
|
}
|
|
9899
|
-
|
|
9904
|
+
x != null && x.fixed ? (await r.push(x.path), S.menu.setItems([]), S.tab.setItems([]), S.nav.setActiveItem(x.path)) : v({ microApp: x, menuCode: X.query.menu, menuPath: X.path, route: X });
|
|
9900
9905
|
return;
|
|
9901
9906
|
} else {
|
|
9902
|
-
const
|
|
9907
|
+
const x = u && u.find(
|
|
9903
9908
|
(j) => X.path.startsWith("/" + j.name) || X.path.startsWith(j.name)
|
|
9904
9909
|
);
|
|
9905
|
-
if (
|
|
9906
|
-
let j = i.find((
|
|
9910
|
+
if (x) {
|
|
9911
|
+
let j = i.find((l) => l.routeUrl === x.name);
|
|
9907
9912
|
j || (j = i.find(
|
|
9908
|
-
(
|
|
9913
|
+
(l) => (l == null ? void 0 : l.routePath) && l.routePath.length && l.routePath.includes(x.name)
|
|
9909
9914
|
)), v({
|
|
9910
9915
|
microApp: j,
|
|
9911
9916
|
menuCode: X.query.menu,
|
|
@@ -9917,11 +9922,11 @@ const r8 = (f) => {
|
|
|
9917
9922
|
}
|
|
9918
9923
|
if (b) {
|
|
9919
9924
|
(D = (N = cA()) == null ? void 0 : N.subAppList) == null || D.forEach((j) => {
|
|
9920
|
-
const
|
|
9921
|
-
S.nav.appendItem(
|
|
9925
|
+
const l = { ...j, value: j.code, label: j.name };
|
|
9926
|
+
S.nav.appendItem(l);
|
|
9922
9927
|
});
|
|
9923
|
-
const
|
|
9924
|
-
|
|
9928
|
+
const x = f.value.find((j) => j.path === location.pathname);
|
|
9929
|
+
x && (S.nav.setActiveItem(x.path), S.menu.setItems([]), S.tab.setItems([]), SA([
|
|
9925
9930
|
{ key: "currentSubAppCode", value: "" },
|
|
9926
9931
|
{ key: "currentSubApp", value: {} }
|
|
9927
9932
|
]), hA([
|
|
@@ -9957,7 +9962,7 @@ const r8 = (f) => {
|
|
|
9957
9962
|
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (d = !0), d;
|
|
9958
9963
|
}, r = (d) => {
|
|
9959
9964
|
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
9960
|
-
const p = `https://iam.shenyejituan.com:
|
|
9965
|
+
const p = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(d)}&entityId=AIoT&redirectToLogin=true`;
|
|
9961
9966
|
localStorage.removeItem("thirdLogouSource"), location.href = p;
|
|
9962
9967
|
}
|
|
9963
9968
|
}, n = async () => {
|
|
@@ -9999,7 +10004,7 @@ const r8 = (f) => {
|
|
|
9999
10004
|
$personSetDialog: A
|
|
10000
10005
|
};
|
|
10001
10006
|
}, Q8 = gv.get("/convert/tenant"), Y8 = q7.get("/platform/withdefault"), kn = () => {
|
|
10002
|
-
const f = le(), A =
|
|
10007
|
+
const f = le(), A = Z(!1), e = Z(""), v = Z(""), r = () => {
|
|
10003
10008
|
e.value = V9().id, v.value = G9().tenantId, A.value = !0;
|
|
10004
10009
|
};
|
|
10005
10010
|
S.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
@@ -10034,8 +10039,8 @@ const r8 = (f) => {
|
|
|
10034
10039
|
if (f != null && f.ssoLocale)
|
|
10035
10040
|
q = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${u}`;
|
|
10036
10041
|
else {
|
|
10037
|
-
const [m,
|
|
10038
|
-
|
|
10042
|
+
const [m, O] = await Y8().run();
|
|
10043
|
+
O != null && O.loginHost && (q = `${O.loginHost}/oauth/refreshOauthToken?tenantId=${u}`);
|
|
10039
10044
|
}
|
|
10040
10045
|
if (q) {
|
|
10041
10046
|
const m = document.createElement("iframe");
|
|
@@ -10085,7 +10090,7 @@ const r8 = (f) => {
|
|
|
10085
10090
|
getSearchList: A
|
|
10086
10091
|
};
|
|
10087
10092
|
}, C8 = () => {
|
|
10088
|
-
const f =
|
|
10093
|
+
const f = Z(), { entryApp: A } = Ee();
|
|
10089
10094
|
return S.nav.addEventListener("openAI", () => {
|
|
10090
10095
|
var v;
|
|
10091
10096
|
(v = f.value) == null || v.openPanel();
|
|
@@ -10147,7 +10152,7 @@ const r8 = (f) => {
|
|
|
10147
10152
|
Cr();
|
|
10148
10153
|
});
|
|
10149
10154
|
}, eX = h9.get("/platform/login/pwd-advance-notify-check"), fX = () => {
|
|
10150
|
-
const f =
|
|
10155
|
+
const f = Z([]), A = Z(null), e = Z([]), { entryApp: v } = B9.hooks.useEntryApp(), r = () => {
|
|
10151
10156
|
var d;
|
|
10152
10157
|
const u = (((d = cA().appcategorys) == null ? void 0 : d.map((t) => t.apps).flat()) ?? []).find((t) => t.code === "messagecenter");
|
|
10153
10158
|
u && v({ microApp: u });
|
|
@@ -10186,7 +10191,7 @@ const r8 = (f) => {
|
|
|
10186
10191
|
r();
|
|
10187
10192
|
}
|
|
10188
10193
|
},
|
|
10189
|
-
|
|
10194
|
+
k("查看详情")
|
|
10190
10195
|
) : null
|
|
10191
10196
|
])
|
|
10192
10197
|
}), e.value.push(t.id);
|
|
@@ -10227,7 +10232,7 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10227
10232
|
ar((z) => ({
|
|
10228
10233
|
"23bfa220": t.value
|
|
10229
10234
|
}));
|
|
10230
|
-
const e = f, v = A, r =
|
|
10235
|
+
const e = f, v = A, r = Z(), { toggle: n, isFullscreen: P } = e9(r), u = () => {
|
|
10231
10236
|
r.value != document.fullscreenElement && (P.value ? (P.value = !1, ae(() => {
|
|
10232
10237
|
n();
|
|
10233
10238
|
})) : n());
|
|
@@ -10300,11 +10305,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10300
10305
|
onDblclick: n[9] || (n[9] = oA((P) => P.stopPropagation(), ["stop"]))
|
|
10301
10306
|
},
|
|
10302
10307
|
[
|
|
10303
|
-
|
|
10304
|
-
content: V(
|
|
10308
|
+
M(V(QA), {
|
|
10309
|
+
content: V(k)("左上")
|
|
10305
10310
|
}, {
|
|
10306
10311
|
default: Y(() => [
|
|
10307
|
-
|
|
10312
|
+
B("div", {
|
|
10308
10313
|
class: "icon icon-top-left",
|
|
10309
10314
|
onClick: n[0] || (n[0] = oA((P) => v("leftUp"), ["stop"]))
|
|
10310
10315
|
})
|
|
@@ -10312,11 +10317,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10312
10317
|
_: 1
|
|
10313
10318
|
/* STABLE */
|
|
10314
10319
|
}, 8, ["content"]),
|
|
10315
|
-
|
|
10316
|
-
content: V(
|
|
10320
|
+
M(V(QA), {
|
|
10321
|
+
content: V(k)("上")
|
|
10317
10322
|
}, {
|
|
10318
10323
|
default: Y(() => [
|
|
10319
|
-
|
|
10324
|
+
B("div", {
|
|
10320
10325
|
class: "icon icon-top",
|
|
10321
10326
|
onClick: n[1] || (n[1] = oA((P) => v("up"), ["stop"]))
|
|
10322
10327
|
})
|
|
@@ -10324,11 +10329,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10324
10329
|
_: 1
|
|
10325
10330
|
/* STABLE */
|
|
10326
10331
|
}, 8, ["content"]),
|
|
10327
|
-
|
|
10328
|
-
content: V(
|
|
10332
|
+
M(V(QA), {
|
|
10333
|
+
content: V(k)("右上")
|
|
10329
10334
|
}, {
|
|
10330
10335
|
default: Y(() => [
|
|
10331
|
-
|
|
10336
|
+
B("div", {
|
|
10332
10337
|
class: "icon icon-top-right",
|
|
10333
10338
|
onClick: n[2] || (n[2] = oA((P) => v("rightUp"), ["stop"]))
|
|
10334
10339
|
})
|
|
@@ -10336,11 +10341,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10336
10341
|
_: 1
|
|
10337
10342
|
/* STABLE */
|
|
10338
10343
|
}, 8, ["content"]),
|
|
10339
|
-
|
|
10340
|
-
content: V(
|
|
10344
|
+
M(V(QA), {
|
|
10345
|
+
content: V(k)("左")
|
|
10341
10346
|
}, {
|
|
10342
10347
|
default: Y(() => [
|
|
10343
|
-
|
|
10348
|
+
B("div", {
|
|
10344
10349
|
class: "icon icon-left",
|
|
10345
10350
|
onClick: n[3] || (n[3] = oA((P) => v("left"), ["stop"]))
|
|
10346
10351
|
})
|
|
@@ -10348,11 +10353,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10348
10353
|
_: 1
|
|
10349
10354
|
/* STABLE */
|
|
10350
10355
|
}, 8, ["content"]),
|
|
10351
|
-
|
|
10352
|
-
content: V(
|
|
10356
|
+
M(V(QA), {
|
|
10357
|
+
content: V(k)("自动")
|
|
10353
10358
|
}, {
|
|
10354
10359
|
default: Y(() => [
|
|
10355
|
-
|
|
10360
|
+
B("div", {
|
|
10356
10361
|
class: "icon icon-auto",
|
|
10357
10362
|
onClick: n[4] || (n[4] = oA((P) => v("auto"), ["stop"]))
|
|
10358
10363
|
})
|
|
@@ -10360,11 +10365,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10360
10365
|
_: 1
|
|
10361
10366
|
/* STABLE */
|
|
10362
10367
|
}, 8, ["content"]),
|
|
10363
|
-
|
|
10364
|
-
content: V(
|
|
10368
|
+
M(V(QA), {
|
|
10369
|
+
content: V(k)("右")
|
|
10365
10370
|
}, {
|
|
10366
10371
|
default: Y(() => [
|
|
10367
|
-
|
|
10372
|
+
B("div", {
|
|
10368
10373
|
class: "icon icon-right",
|
|
10369
10374
|
onClick: n[5] || (n[5] = oA((P) => v("right"), ["stop"]))
|
|
10370
10375
|
})
|
|
@@ -10372,11 +10377,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10372
10377
|
_: 1
|
|
10373
10378
|
/* STABLE */
|
|
10374
10379
|
}, 8, ["content"]),
|
|
10375
|
-
|
|
10376
|
-
content: V(
|
|
10380
|
+
M(V(QA), {
|
|
10381
|
+
content: V(k)("左下")
|
|
10377
10382
|
}, {
|
|
10378
10383
|
default: Y(() => [
|
|
10379
|
-
|
|
10384
|
+
B("div", {
|
|
10380
10385
|
class: "icon icon-bottom-left",
|
|
10381
10386
|
onClick: n[6] || (n[6] = oA((P) => v("leftDown"), ["stop"]))
|
|
10382
10387
|
})
|
|
@@ -10384,11 +10389,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10384
10389
|
_: 1
|
|
10385
10390
|
/* STABLE */
|
|
10386
10391
|
}, 8, ["content"]),
|
|
10387
|
-
|
|
10388
|
-
content: V(
|
|
10392
|
+
M(V(QA), {
|
|
10393
|
+
content: V(k)("下")
|
|
10389
10394
|
}, {
|
|
10390
10395
|
default: Y(() => [
|
|
10391
|
-
|
|
10396
|
+
B("div", {
|
|
10392
10397
|
class: "icon icon-bottom",
|
|
10393
10398
|
onClick: n[7] || (n[7] = oA((P) => v("down"), ["stop"]))
|
|
10394
10399
|
})
|
|
@@ -10396,11 +10401,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10396
10401
|
_: 1
|
|
10397
10402
|
/* STABLE */
|
|
10398
10403
|
}, 8, ["content"]),
|
|
10399
|
-
|
|
10400
|
-
content: V(
|
|
10404
|
+
M(V(QA), {
|
|
10405
|
+
content: V(k)("右下")
|
|
10401
10406
|
}, {
|
|
10402
10407
|
default: Y(() => [
|
|
10403
|
-
|
|
10408
|
+
B("div", {
|
|
10404
10409
|
class: "icon icon-bottom-right",
|
|
10405
10410
|
onClick: n[8] || (n[8] = oA((P) => v("rightDown"), ["stop"]))
|
|
10406
10411
|
})
|
|
@@ -10438,26 +10443,26 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10438
10443
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
10439
10444
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
10440
10445
|
});
|
|
10441
|
-
const e = f, v = A, r =
|
|
10446
|
+
const e = f, v = A, r = Z(!0), n = Z(), P = Z(!1), u = Z(), d = vA(() => {
|
|
10442
10447
|
var q;
|
|
10443
10448
|
return (q = u.value) == null ? void 0 : q.video;
|
|
10444
|
-
}), t =
|
|
10449
|
+
}), t = Z(!1), z = Z(!0), p = (q) => {
|
|
10445
10450
|
n.value = q, n.value.on(window.mpegts.Events.ERROR, (m) => {
|
|
10446
10451
|
});
|
|
10447
10452
|
}, X = () => {
|
|
10448
10453
|
r.value = !r.value, n.value && (n.value.muted = r.value);
|
|
10449
10454
|
}, b = () => {
|
|
10450
10455
|
P.value = !P.value;
|
|
10451
|
-
}, c =
|
|
10456
|
+
}, c = Z(""), a = () => {
|
|
10452
10457
|
const q = document.createElement("canvas");
|
|
10453
10458
|
if (d.value) {
|
|
10454
10459
|
q.width = d.value.clientWidth, q.height = d.value.clientHeight;
|
|
10455
10460
|
const m = q.getContext("2d");
|
|
10456
10461
|
m == null || m.drawImage(d.value, 0, 0, q.width, q.height);
|
|
10457
|
-
const
|
|
10458
|
-
if (c.value =
|
|
10462
|
+
const O = q.toDataURL("image/jpg"), N = `【${e.title}】${v7().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
10463
|
+
if (c.value = O, "download" in document.createElement("a")) {
|
|
10459
10464
|
const D = document.createElement("a");
|
|
10460
|
-
D.download = N, D.style.display = "none", D.href =
|
|
10465
|
+
D.download = N, D.style.display = "none", D.href = O, document.body.appendChild(D), document.body.appendChild(q), D.click(), URL.revokeObjectURL(D.href), document.body.removeChild(D), document.body.removeChild(q);
|
|
10461
10466
|
}
|
|
10462
10467
|
}
|
|
10463
10468
|
}, i = (q) => {
|
|
@@ -10507,16 +10512,16 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10507
10512
|
});
|
|
10508
10513
|
}
|
|
10509
10514
|
), (q, m) => (G(), dA("div", sX, [
|
|
10510
|
-
|
|
10515
|
+
M(V(F9), {
|
|
10511
10516
|
spinning: e.loading,
|
|
10512
10517
|
type: "component",
|
|
10513
10518
|
tip: "加载中..."
|
|
10514
10519
|
}, {
|
|
10515
10520
|
default: Y(() => [
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10521
|
+
B("div", qX, [
|
|
10522
|
+
B("div", HX, [
|
|
10523
|
+
B("div", pX, [
|
|
10524
|
+
B(
|
|
10520
10525
|
"div",
|
|
10521
10526
|
mX,
|
|
10522
10527
|
PA(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
@@ -10525,11 +10530,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10525
10530
|
)
|
|
10526
10531
|
])
|
|
10527
10532
|
]),
|
|
10528
|
-
|
|
10533
|
+
B("div", lX, [
|
|
10529
10534
|
["live"].includes(q.type) ? (G(), dA(
|
|
10530
10535
|
"span",
|
|
10531
10536
|
xX,
|
|
10532
|
-
PA(V(
|
|
10537
|
+
PA(V(k)("正在实时预览")),
|
|
10533
10538
|
1
|
|
10534
10539
|
/* TEXT */
|
|
10535
10540
|
)) : AA("v-if", !0),
|
|
@@ -10545,27 +10550,27 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10545
10550
|
onLoaded: p,
|
|
10546
10551
|
src: e.videoUrl
|
|
10547
10552
|
}, null, 8, ["muted", "src"])) : AA("v-if", !0),
|
|
10548
|
-
|
|
10549
|
-
m[3] || (m[3] =
|
|
10553
|
+
B("div", OX, [
|
|
10554
|
+
m[3] || (m[3] = B(
|
|
10550
10555
|
"div",
|
|
10551
10556
|
{ class: "video-bottom_l" },
|
|
10552
10557
|
null,
|
|
10553
10558
|
-1
|
|
10554
10559
|
/* HOISTED */
|
|
10555
10560
|
)),
|
|
10556
|
-
|
|
10557
|
-
|
|
10561
|
+
B("div", DX, [
|
|
10562
|
+
B(
|
|
10558
10563
|
"div",
|
|
10559
10564
|
{
|
|
10560
10565
|
class: "controls",
|
|
10561
|
-
onDblclick: m[2] || (m[2] = oA((
|
|
10566
|
+
onDblclick: m[2] || (m[2] = oA((O) => O.stopPropagation(), ["stop"]))
|
|
10562
10567
|
},
|
|
10563
10568
|
[
|
|
10564
|
-
|
|
10565
|
-
content: V(
|
|
10569
|
+
M(V(QA), {
|
|
10570
|
+
content: V(k)("声音")
|
|
10566
10571
|
}, {
|
|
10567
10572
|
default: Y(() => [
|
|
10568
|
-
|
|
10573
|
+
M(V(ke), {
|
|
10569
10574
|
class: "icon icon-volume",
|
|
10570
10575
|
icon: r.value ? "muted" : "volume",
|
|
10571
10576
|
onClick: oA(X, ["stop"])
|
|
@@ -10574,11 +10579,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10574
10579
|
_: 1
|
|
10575
10580
|
/* STABLE */
|
|
10576
10581
|
}, 8, ["content"]),
|
|
10577
|
-
|
|
10578
|
-
content: V(
|
|
10582
|
+
M(V(QA), {
|
|
10583
|
+
content: V(k)("截图")
|
|
10579
10584
|
}, {
|
|
10580
10585
|
default: Y(() => [
|
|
10581
|
-
|
|
10586
|
+
M(V(ke), {
|
|
10582
10587
|
class: "icon icon-screenshot",
|
|
10583
10588
|
icon: "screenshot",
|
|
10584
10589
|
onClick: oA(a, ["stop"])
|
|
@@ -10589,14 +10594,14 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10589
10594
|
}, 8, ["content"]),
|
|
10590
10595
|
s("control") ? (G(), tA(V(QA), {
|
|
10591
10596
|
key: 0,
|
|
10592
|
-
content: V(
|
|
10597
|
+
content: V(k)("聚焦-")
|
|
10593
10598
|
}, {
|
|
10594
10599
|
default: Y(() => [
|
|
10595
10600
|
["live", "polling"].includes(e.type) ? (G(), tA(V(ke), {
|
|
10596
10601
|
key: 0,
|
|
10597
10602
|
class: "icon icon-shrink",
|
|
10598
10603
|
icon: "shrink",
|
|
10599
|
-
onClick: m[0] || (m[0] = oA((
|
|
10604
|
+
onClick: m[0] || (m[0] = oA((O) => H("zoomOut"), ["stop"]))
|
|
10600
10605
|
})) : AA("v-if", !0)
|
|
10601
10606
|
]),
|
|
10602
10607
|
_: 1
|
|
@@ -10604,14 +10609,14 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10604
10609
|
}, 8, ["content"])) : AA("v-if", !0),
|
|
10605
10610
|
s("control") ? (G(), tA(V(QA), {
|
|
10606
10611
|
key: 1,
|
|
10607
|
-
content: V(
|
|
10612
|
+
content: V(k)("聚焦+")
|
|
10608
10613
|
}, {
|
|
10609
10614
|
default: Y(() => [
|
|
10610
10615
|
["live", "polling"].includes(e.type) ? (G(), tA(V(ke), {
|
|
10611
10616
|
key: 0,
|
|
10612
10617
|
class: "icon icon-enlarge",
|
|
10613
10618
|
icon: "enlarge",
|
|
10614
|
-
onClick: m[1] || (m[1] = oA((
|
|
10619
|
+
onClick: m[1] || (m[1] = oA((O) => H("zoomIn"), ["stop"]))
|
|
10615
10620
|
})) : AA("v-if", !0)
|
|
10616
10621
|
]),
|
|
10617
10622
|
_: 1
|
|
@@ -10619,7 +10624,7 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10619
10624
|
}, 8, ["content"])) : AA("v-if", !0),
|
|
10620
10625
|
s("control") ? (G(), tA(V(QA), {
|
|
10621
10626
|
key: 2,
|
|
10622
|
-
content: V(
|
|
10627
|
+
content: V(k)("方向控制")
|
|
10623
10628
|
}, {
|
|
10624
10629
|
default: Y(() => [
|
|
10625
10630
|
["live", "polling"].includes(e.type) ? (G(), tA(V(ke), {
|
|
@@ -10660,7 +10665,7 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10660
10665
|
}) {
|
|
10661
10666
|
const {
|
|
10662
10667
|
deviceInfo: e
|
|
10663
|
-
} = ir(f), v =
|
|
10668
|
+
} = ir(f), v = Z(!1), r = Z(""), n = async () => {
|
|
10664
10669
|
var z;
|
|
10665
10670
|
if (!((z = e.value) != null && z.deviceId)) return;
|
|
10666
10671
|
v.value = !0;
|
|
@@ -10693,7 +10698,7 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10693
10698
|
n();
|
|
10694
10699
|
}, {
|
|
10695
10700
|
deep: !0
|
|
10696
|
-
}), () =>
|
|
10701
|
+
}), () => M(ee, null, [A.default({
|
|
10697
10702
|
videoUrl: r.value,
|
|
10698
10703
|
loading: v.value,
|
|
10699
10704
|
onDirectionControl: P,
|
|
@@ -10702,11 +10707,11 @@ const uX = nX.post("data/device-auth"), dX = /* @__PURE__ */ iA({
|
|
|
10702
10707
|
}
|
|
10703
10708
|
});
|
|
10704
10709
|
function jX(f) {
|
|
10705
|
-
const A =
|
|
10710
|
+
const A = Z(0), e = Z(), {
|
|
10706
10711
|
toggle: v
|
|
10707
10712
|
} = e9(e);
|
|
10708
10713
|
return {
|
|
10709
|
-
render: () =>
|
|
10714
|
+
render: () => M(bX, {
|
|
10710
10715
|
ref: e,
|
|
10711
10716
|
gridNum: f.gridNum,
|
|
10712
10717
|
activeIndex: A.value,
|
|
@@ -10717,7 +10722,7 @@ function jX(f) {
|
|
|
10717
10722
|
index: n
|
|
10718
10723
|
}) => {
|
|
10719
10724
|
const P = f.deviceList[n];
|
|
10720
|
-
return
|
|
10725
|
+
return M(RX, {
|
|
10721
10726
|
deviceInfo: P
|
|
10722
10727
|
}, {
|
|
10723
10728
|
default: ({
|
|
@@ -10725,7 +10730,7 @@ function jX(f) {
|
|
|
10725
10730
|
onDirectionControl: d,
|
|
10726
10731
|
onZoomControl: t,
|
|
10727
10732
|
loading: z
|
|
10728
|
-
}) =>
|
|
10733
|
+
}) => M(NX, {
|
|
10729
10734
|
type: "live",
|
|
10730
10735
|
loading: z,
|
|
10731
10736
|
videoUrl: u,
|
|
@@ -10751,7 +10756,7 @@ const oX = /* @__PURE__ */ iA({
|
|
|
10751
10756
|
Gv({
|
|
10752
10757
|
fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
|
|
10753
10758
|
});
|
|
10754
|
-
const A = f, e =
|
|
10759
|
+
const A = f, e = Z(!0), { render: v, toggleFullscreen: r } = jX(A), n = vA(() => {
|
|
10755
10760
|
let P = {};
|
|
10756
10761
|
switch (A.gridNum) {
|
|
10757
10762
|
case 1:
|
|
@@ -10768,7 +10773,7 @@ const oX = /* @__PURE__ */ iA({
|
|
|
10768
10773
|
});
|
|
10769
10774
|
return (P, u) => (G(), tA(V(Fe), {
|
|
10770
10775
|
size: "mini",
|
|
10771
|
-
title: V(
|
|
10776
|
+
title: V(k)("视频监控"),
|
|
10772
10777
|
"custom-class": `das-linakge-video-dialog ${n.value}`,
|
|
10773
10778
|
modelValue: e.value,
|
|
10774
10779
|
"onUpdate:modelValue": u[0] || (u[0] = (d) => e.value = d),
|
|
@@ -10780,18 +10785,18 @@ const oX = /* @__PURE__ */ iA({
|
|
|
10780
10785
|
onClosed: P.closeCallback
|
|
10781
10786
|
}, {
|
|
10782
10787
|
header: Y(() => [
|
|
10783
|
-
|
|
10788
|
+
B(
|
|
10784
10789
|
"div",
|
|
10785
10790
|
null,
|
|
10786
|
-
PA(V(
|
|
10791
|
+
PA(V(k)("视频监控")),
|
|
10787
10792
|
1
|
|
10788
10793
|
/* TEXT */
|
|
10789
10794
|
),
|
|
10790
|
-
|
|
10791
|
-
content: V(
|
|
10795
|
+
M(V(QA), {
|
|
10796
|
+
content: V(k)("页面全屏")
|
|
10792
10797
|
}, {
|
|
10793
10798
|
default: Y(() => [
|
|
10794
|
-
|
|
10799
|
+
M(V(ke), {
|
|
10795
10800
|
class: "icon",
|
|
10796
10801
|
icon: "fullscreen2",
|
|
10797
10802
|
iconColor: "#999",
|
|
@@ -10820,7 +10825,7 @@ const oX = /* @__PURE__ */ iA({
|
|
|
10820
10825
|
c9(P, r);
|
|
10821
10826
|
});
|
|
10822
10827
|
}, TX = () => {
|
|
10823
|
-
const f =
|
|
10828
|
+
const f = Z(4), A = Z([]), e = Z(null), v = async (n) => {
|
|
10824
10829
|
const [P, u] = await uX(n).run();
|
|
10825
10830
|
if (!P)
|
|
10826
10831
|
return u;
|
|
@@ -12658,60 +12663,60 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12658
12663
|
return !1;
|
|
12659
12664
|
}
|
|
12660
12665
|
}, n = async (a) => {
|
|
12661
|
-
var s, q, m,
|
|
12666
|
+
var s, q, m, O, N;
|
|
12662
12667
|
const i = cA(), H = ((s = i.appcategorys) == null ? void 0 : s.map((D) => D.apps).flat()) || [];
|
|
12663
12668
|
if (Array.isArray(a)) {
|
|
12664
|
-
const D = a.filter((
|
|
12669
|
+
const D = a.filter((x) => x.code).map((x) => x.code);
|
|
12665
12670
|
if (a.length) {
|
|
12666
12671
|
if (i.currentSubAppCode) {
|
|
12667
|
-
const j = i.currentSubApp.menus ?? [],
|
|
12668
|
-
if (
|
|
12669
|
-
e({ currentMenu:
|
|
12672
|
+
const j = i.currentSubApp.menus ?? [], l = fe(j).find((R) => D.includes(R.code));
|
|
12673
|
+
if (l) {
|
|
12674
|
+
e({ currentMenu: l });
|
|
12670
12675
|
return;
|
|
12671
12676
|
}
|
|
12672
12677
|
}
|
|
12673
|
-
const
|
|
12674
|
-
|
|
12678
|
+
const x = H.find((j) => D.includes(j.code));
|
|
12679
|
+
x && A({ microApp: x });
|
|
12675
12680
|
}
|
|
12676
12681
|
}
|
|
12677
12682
|
if (typeof a == "string") {
|
|
12678
12683
|
let D = a;
|
|
12679
|
-
const
|
|
12680
|
-
j && (D = D.slice(0, D.indexOf(
|
|
12681
|
-
const
|
|
12682
|
-
if (R && (D = D.slice(0, D.indexOf(
|
|
12683
|
-
const o = D.split(":"), [
|
|
12684
|
-
if (!
|
|
12685
|
-
const h = H.find(($) => $.code ===
|
|
12684
|
+
const x = "_showEchartTooltip", j = D.endsWith(x);
|
|
12685
|
+
j && (D = D.slice(0, D.indexOf(x)));
|
|
12686
|
+
const l = "_zdkbInfo", R = D.endsWith(l);
|
|
12687
|
+
if (R && (D = D.slice(0, D.indexOf(l))), D.includes(":")) {
|
|
12688
|
+
const o = D.split(":"), [T = "", g = ""] = o;
|
|
12689
|
+
if (!T) return;
|
|
12690
|
+
const h = H.find(($) => $.code === T);
|
|
12686
12691
|
if (h) {
|
|
12687
12692
|
if (R || j) {
|
|
12688
|
-
const $ = await ov(h.code,
|
|
12693
|
+
const $ = await ov(h.code, g);
|
|
12689
12694
|
if ($) {
|
|
12690
12695
|
const J = JSON.stringify({ showEchartTooltip: j });
|
|
12691
|
-
(q = f.query) != null && q.app && f.query.app === h.code && ((m = f.query) != null && m.menu) && f.query.menu ===
|
|
12692
|
-
yA.sendMessageToMicroApp($.applicationPath, `${
|
|
12696
|
+
(q = f.query) != null && q.app && f.query.app === h.code && ((m = f.query) != null && m.menu) && f.query.menu === g ? yA.sendMessageToMicroApp($.applicationPath, `${g}:todetail`, J) : (await A({ microApp: h, menuCode: g }), setTimeout(() => {
|
|
12697
|
+
yA.sendMessageToMicroApp($.applicationPath, `${g}:todetail`, J, {
|
|
12693
12698
|
awaitListener: !0
|
|
12694
12699
|
});
|
|
12695
12700
|
}, 300));
|
|
12696
12701
|
return;
|
|
12697
12702
|
}
|
|
12698
12703
|
}
|
|
12699
|
-
A({ microApp: h, menuCode:
|
|
12704
|
+
A({ microApp: h, menuCode: g });
|
|
12700
12705
|
}
|
|
12701
12706
|
} else {
|
|
12702
|
-
const o = D,
|
|
12703
|
-
if (
|
|
12704
|
-
A({ microApp:
|
|
12707
|
+
const o = D, T = H.find((g) => g.code === o);
|
|
12708
|
+
if (T)
|
|
12709
|
+
A({ microApp: T });
|
|
12705
12710
|
else {
|
|
12706
|
-
const [
|
|
12707
|
-
if (
|
|
12711
|
+
const [g, h] = await l2().run({ menuCode: o });
|
|
12712
|
+
if (g) return;
|
|
12708
12713
|
const $ = H.find((J) => J.code === h);
|
|
12709
12714
|
if ($) {
|
|
12710
12715
|
if (R || j) {
|
|
12711
12716
|
const J = await ov($.code, o);
|
|
12712
12717
|
if (J) {
|
|
12713
12718
|
const U = JSON.stringify({ showEchartTooltip: j });
|
|
12714
|
-
(
|
|
12719
|
+
(O = f.query) != null && O.app && f.query.app === T.code && ((N = f.query) != null && N.menu) && f.query.menu === o ? yA.sendMessageToMicroApp(J.applicationPath, `${o}:todetail`, U) : (await A({ microApp: T, menuCode: o }), setTimeout(() => {
|
|
12715
12720
|
yA.sendMessageToMicroApp(J.applicationPath, `${o}:todetail`, U, {
|
|
12716
12721
|
awaitListener: !0
|
|
12717
12722
|
});
|
|
@@ -12725,7 +12730,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12725
12730
|
}
|
|
12726
12731
|
}
|
|
12727
12732
|
};
|
|
12728
|
-
let P =
|
|
12733
|
+
let P = Z(!0);
|
|
12729
12734
|
const u = (a) => {
|
|
12730
12735
|
setTimeout(async () => {
|
|
12731
12736
|
var i, H;
|
|
@@ -12754,11 +12759,11 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12754
12759
|
if (m)
|
|
12755
12760
|
m.uniqueId && m.actionKey == "switch-menu" && u(m);
|
|
12756
12761
|
else if (q.includes("openAppMenu=")) {
|
|
12757
|
-
const
|
|
12762
|
+
const O = q.split("="), N = JSON.parse(O[1]);
|
|
12758
12763
|
n(N);
|
|
12759
12764
|
} else q.includes("iocIsRun") && (P.value = !1);
|
|
12760
12765
|
});
|
|
12761
|
-
}, t =
|
|
12766
|
+
}, t = Z(""), [z, p] = await jv().run();
|
|
12762
12767
|
t.value = p, d(t.value);
|
|
12763
12768
|
const X = async () => {
|
|
12764
12769
|
const [a, i] = await jv().run();
|
|
@@ -12767,7 +12772,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12767
12772
|
v = setInterval(() => {
|
|
12768
12773
|
X();
|
|
12769
12774
|
}, 72e5);
|
|
12770
|
-
const b =
|
|
12775
|
+
const b = Z("online"), c = (a) => {
|
|
12771
12776
|
a === "online" && b.value === "offline" && setTimeout(() => {
|
|
12772
12777
|
X();
|
|
12773
12778
|
}, 5e3), b.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
@@ -12786,9 +12791,9 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12786
12791
|
},
|
|
12787
12792
|
emits: ["emitFn"],
|
|
12788
12793
|
setup(f, { expose: A, emit: e }) {
|
|
12789
|
-
const v = f, r = e, n =
|
|
12790
|
-
|
|
12791
|
-
const t =
|
|
12794
|
+
const v = f, r = e, n = Z(!1), P = Z(null), u = Z(0), d = Z(!1);
|
|
12795
|
+
Z("");
|
|
12796
|
+
const t = Z({
|
|
12792
12797
|
processTypeId: "confirm",
|
|
12793
12798
|
// 处理类型
|
|
12794
12799
|
reason: "",
|
|
@@ -12814,7 +12819,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12814
12819
|
// 处置时限
|
|
12815
12820
|
interval: 2
|
|
12816
12821
|
// 时限刻度 默认选择“时”
|
|
12817
|
-
}), z =
|
|
12822
|
+
}), z = Z({
|
|
12818
12823
|
processTypeId: "",
|
|
12819
12824
|
// 处理类型 必填
|
|
12820
12825
|
reason: "",
|
|
@@ -12834,44 +12839,44 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12834
12839
|
// 事件等级id
|
|
12835
12840
|
timeLimit: ""
|
|
12836
12841
|
// 处置时限
|
|
12837
|
-
}), p =
|
|
12842
|
+
}), p = Z(!1), X = Z([]), b = Z([]), c = Z([
|
|
12838
12843
|
{ id: 2, name: fA("时").value },
|
|
12839
12844
|
{ id: 1, name: fA("分").value },
|
|
12840
12845
|
{ id: 3, name: fA("不限").value }
|
|
12841
|
-
]), a =
|
|
12842
|
-
|
|
12843
|
-
const
|
|
12846
|
+
]), a = Z([]), i = Z(""), H = Z(fA("告警对象位置").value), s = Z(""), q = Z([]), m = Z("");
|
|
12847
|
+
Z("[]");
|
|
12848
|
+
const O = Z(!0), N = Z(!0), D = async (F) => {
|
|
12844
12849
|
const I = { name: "1" };
|
|
12845
12850
|
F != null && F.id && (I.spaceId = F.id);
|
|
12846
|
-
const [
|
|
12847
|
-
return
|
|
12848
|
-
},
|
|
12849
|
-
const I = { name: F || "" }, [
|
|
12850
|
-
return
|
|
12851
|
-
}, j =
|
|
12851
|
+
const [Q, BA] = await T2(I).run();
|
|
12852
|
+
return Q ? {} : BA;
|
|
12853
|
+
}, x = async (F) => {
|
|
12854
|
+
const I = { name: F || "" }, [Q, BA] = await L2(I).run();
|
|
12855
|
+
return Q ? {} : BA;
|
|
12856
|
+
}, j = Z(!0), l = Z(!0), R = Z([]), o = async () => {
|
|
12852
12857
|
const [F, I] = await Z2().run({ pageIndex: -1, pageSize: -1 });
|
|
12853
12858
|
if (F) return {};
|
|
12854
|
-
R.value = I.data.filter((
|
|
12859
|
+
R.value = I.data.filter((Q) => Q.status), R.value.length > 0 && (t.value.workOrderRules = R.value[0].id);
|
|
12855
12860
|
};
|
|
12856
12861
|
sA(d, (F) => {
|
|
12857
12862
|
F || (U(), K());
|
|
12858
12863
|
}), sA(
|
|
12859
12864
|
N,
|
|
12860
12865
|
(F) => {
|
|
12861
|
-
F ? (
|
|
12866
|
+
F ? (O.value = !0, t.value.customPath = fA("选填").value) : (O.value = !1, t.value.customPath = "");
|
|
12862
12867
|
},
|
|
12863
12868
|
{ immediate: !0 }
|
|
12864
12869
|
), sA(
|
|
12865
|
-
|
|
12870
|
+
l,
|
|
12866
12871
|
(F) => {
|
|
12867
12872
|
F ? (t.value.reportTheme = fA("告警对象").value, j.value = !0) : (s.value = fA("请输入").value, t.value.reportTheme = "", j.value = !1);
|
|
12868
12873
|
},
|
|
12869
12874
|
{ immediate: !0 }
|
|
12870
12875
|
);
|
|
12871
|
-
const
|
|
12876
|
+
const T = (F) => {
|
|
12872
12877
|
var I;
|
|
12873
12878
|
return (I = P.value) == null ? void 0 : I.parentNode.parentNode;
|
|
12874
|
-
},
|
|
12879
|
+
}, g = (F) => {
|
|
12875
12880
|
z.value.reportTheme = "";
|
|
12876
12881
|
}, h = (F, I) => {
|
|
12877
12882
|
I.length > 0 && (i.value = I[0].path), t.value.reportPosition = F, m.value = "";
|
|
@@ -12882,7 +12887,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12882
12887
|
}, U = () => {
|
|
12883
12888
|
z.value.processTypeId = "", z.value.reason = "", z.value.treatmentPlan = "", z.value.reportPosition = "", z.value.reportTheme = "", z.value.workOrderRules = "", z.value.eventTypeId = "", z.value.eventLevelId = "", z.value.timeLimit = "";
|
|
12884
12889
|
}, K = () => {
|
|
12885
|
-
t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, N.value = !0,
|
|
12890
|
+
t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, N.value = !0, l.value = !0, j.value = !0, t.value.reportTheme = fA("告警对象").value, i.value = "", H.value = fA("告警对象位置").value, s.value = fA("请输入").value, t.value.eventTypeId = "", t.value.eventLevelId = null, t.value.timeLimit = "", t.value.interval = 1, X.value = [], b.value = [];
|
|
12886
12891
|
}, _ = (F) => {
|
|
12887
12892
|
F == "eventTypeId" && (t.value.eventLevelId = null, w()), F == "eventLevelId" && E(), F == "interval" && (z.value.timeLimit = "", t.value.interval == 3 ? (p.value = !0, t.value.timeLimit = "") : p.value = !1);
|
|
12888
12893
|
}, L = async () => {
|
|
@@ -12892,20 +12897,20 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12892
12897
|
}, w = async () => {
|
|
12893
12898
|
const F = {
|
|
12894
12899
|
eventTypeId: t.value.eventTypeId
|
|
12895
|
-
}, [I,
|
|
12900
|
+
}, [I, Q] = await w2(F).run();
|
|
12896
12901
|
if (I) return {};
|
|
12897
12902
|
const BA = { 1: fA("一级").value, 2: fA("二级").value, 3: fA("三级").value, 4: fA("四级").value };
|
|
12898
|
-
b.value =
|
|
12903
|
+
b.value = Q.map((ze) => ({
|
|
12899
12904
|
id: `${ze}`,
|
|
12900
12905
|
name: BA[ze] ? BA[ze] : ze
|
|
12901
|
-
})),
|
|
12906
|
+
})), Q.length && !t.value.eventLevelId && (t.value.eventLevelId = b.value[0].id, E());
|
|
12902
12907
|
}, E = async () => {
|
|
12903
12908
|
const F = {
|
|
12904
12909
|
eventTypeId: t.value.eventTypeId,
|
|
12905
12910
|
eventLevel: t.value.eventLevelId
|
|
12906
|
-
}, [I,
|
|
12911
|
+
}, [I, Q] = await W2(F).run();
|
|
12907
12912
|
if (I) return {};
|
|
12908
|
-
t.value.interval =
|
|
12913
|
+
t.value.interval = Q.handleTimeUnit, Q.handleTimeUnit == 3 ? t.value.timeLimit = "" : t.value.timeLimit = Q.handleTime;
|
|
12909
12914
|
}, W = (F) => {
|
|
12910
12915
|
U(), F == "createcontingency" && L();
|
|
12911
12916
|
}, bA = async () => {
|
|
@@ -12915,12 +12920,12 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12915
12920
|
projectId: v.projectId
|
|
12916
12921
|
};
|
|
12917
12922
|
n.value = !0;
|
|
12918
|
-
const [I,
|
|
12923
|
+
const [I, Q] = await R2(F).run();
|
|
12919
12924
|
if (I) {
|
|
12920
12925
|
n.value = !1;
|
|
12921
12926
|
return;
|
|
12922
12927
|
}
|
|
12923
|
-
n.value = !1, a.value =
|
|
12928
|
+
n.value = !1, a.value = Q;
|
|
12924
12929
|
for (let BA = 0; BA < a.value.length; BA++)
|
|
12925
12930
|
a.value[BA].id === "createorder" && o();
|
|
12926
12931
|
}, aA = () => {
|
|
@@ -12928,7 +12933,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12928
12933
|
if (t.value.processTypeId == "dealwith")
|
|
12929
12934
|
t.value.reason.trim() || (F = !1, z.value.reason = fA("必填,最多50个字符/汉字").value), t.value.treatmentPlan.trim() || (F = !1, z.value.treatmentPlan = fA("必填,最多50个字符/汉字").value);
|
|
12930
12935
|
else if (t.value.processTypeId == "createorder")
|
|
12931
|
-
N.value ? z.value.reportPosition = "" : !t.value.reportPosition && !t.value.customPath ? (F = !1, z.value.reportPosition = fA("必填").value) : z.value.reportPosition = "",
|
|
12936
|
+
N.value ? z.value.reportPosition = "" : !t.value.reportPosition && !t.value.customPath ? (F = !1, z.value.reportPosition = fA("必填").value) : z.value.reportPosition = "", l.value || t.value.reportTheme ? z.value.reportTheme = "" : (F = !1, z.value.reportTheme = fA("必填,最多20个汉字/字符").value), t.value.workOrderRules ? z.value.workOrderRules = "" : (F = !1, z.value.workOrderRules = fA("必填").value);
|
|
12932
12937
|
else if (t.value.processTypeId == "createcontingency") {
|
|
12933
12938
|
const I = /^[1-9][0-9]{0,2}$/;
|
|
12934
12939
|
t.value.eventTypeId || (F = !1, z.value.eventTypeId = fA("必选").value), t.value.eventLevelId || (F = !1, z.value.eventLevelId = fA("必选").value), t.value.interval != 3 && !I.test(t.value.timeLimit) && (F = !1, z.value.timeLimit = fA("必填,请输入1~999之间的正整数").value);
|
|
@@ -12948,8 +12953,8 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12948
12953
|
processTypeId: t.value.processTypeId
|
|
12949
12954
|
//处理类型id
|
|
12950
12955
|
};
|
|
12951
|
-
t.value.processTypeId === "createorder" ? (F.path = N.value ? "" : t.value.customPath, F.topic =
|
|
12952
|
-
const [I,
|
|
12956
|
+
t.value.processTypeId === "createorder" ? (F.path = N.value ? "" : t.value.customPath, F.topic = l.value ? "" : t.value.reportTheme, F.spaceId = N.value ? "" : t.value.reportPosition ?? "", F.orderId = t.value.workOrderRules) : t.value.processTypeId === "createcontingency" ? (F.eventTypeId = t.value.eventTypeId, F.eventLevelId = t.value.eventLevelId, F.timeLimit = t.value.interval == 3 ? null : Number(t.value.timeLimit), F.interval = t.value.interval) : (F.reason = t.value.reason, F.treatmentPlan = t.value.treatmentPlan, F.remarks = t.value.remarks), n.value = !0, r("emitFn", "startHandle");
|
|
12957
|
+
const [I, Q] = await j2(F, {
|
|
12953
12958
|
params: {
|
|
12954
12959
|
projectId: v.projectId
|
|
12955
12960
|
}
|
|
@@ -12968,9 +12973,9 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12968
12973
|
open: nA,
|
|
12969
12974
|
close: Oe
|
|
12970
12975
|
}), (F, I) => (G(), dA("div", E2, [
|
|
12971
|
-
|
|
12976
|
+
M(V(Fe), {
|
|
12972
12977
|
modelValue: d.value,
|
|
12973
|
-
"onUpdate:modelValue": I[31] || (I[31] = (
|
|
12978
|
+
"onUpdate:modelValue": I[31] || (I[31] = (Q) => d.value = Q),
|
|
12974
12979
|
type: "basic",
|
|
12975
12980
|
size: "small",
|
|
12976
12981
|
height: 500,
|
|
@@ -12988,8 +12993,8 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
12988
12993
|
)
|
|
12989
12994
|
]),
|
|
12990
12995
|
footer: Y(() => [
|
|
12991
|
-
|
|
12992
|
-
|
|
12996
|
+
B("div", k2, [
|
|
12997
|
+
M(V(CA), {
|
|
12993
12998
|
size: "middle",
|
|
12994
12999
|
onClick: jA
|
|
12995
13000
|
}, {
|
|
@@ -13003,10 +13008,10 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13003
13008
|
_: 1
|
|
13004
13009
|
/* STABLE */
|
|
13005
13010
|
}),
|
|
13006
|
-
|
|
13011
|
+
M(V(CA), {
|
|
13007
13012
|
block: "",
|
|
13008
13013
|
size: "middle",
|
|
13009
|
-
onClick: I[29] || (I[29] = (
|
|
13014
|
+
onClick: I[29] || (I[29] = (Q) => C(1))
|
|
13010
13015
|
}, {
|
|
13011
13016
|
default: Y(() => [
|
|
13012
13017
|
mA(
|
|
@@ -13018,11 +13023,11 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13018
13023
|
_: 1
|
|
13019
13024
|
/* STABLE */
|
|
13020
13025
|
}),
|
|
13021
|
-
|
|
13026
|
+
M(V(CA), {
|
|
13022
13027
|
block: "",
|
|
13023
13028
|
btnType: "primary",
|
|
13024
13029
|
size: "middle",
|
|
13025
|
-
onClick: I[30] || (I[30] = (
|
|
13030
|
+
onClick: I[30] || (I[30] = (Q) => C(2))
|
|
13026
13031
|
}, {
|
|
13027
13032
|
default: Y(() => [
|
|
13028
13033
|
mA(
|
|
@@ -13037,9 +13042,9 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13037
13042
|
])
|
|
13038
13043
|
]),
|
|
13039
13044
|
default: Y(() => [
|
|
13040
|
-
|
|
13045
|
+
M(V(F9), { spinning: n.value }, {
|
|
13041
13046
|
default: Y(() => [
|
|
13042
|
-
|
|
13047
|
+
B(
|
|
13043
13048
|
"div",
|
|
13044
13049
|
{
|
|
13045
13050
|
ref_key: "myDialogBody",
|
|
@@ -13047,23 +13052,23 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13047
13052
|
class: "handle-alarm-dialog-content"
|
|
13048
13053
|
},
|
|
13049
13054
|
[
|
|
13050
|
-
|
|
13055
|
+
M(V(m7), {
|
|
13051
13056
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
13052
13057
|
cols: 1,
|
|
13053
13058
|
alignType: "horizontal"
|
|
13054
13059
|
}, {
|
|
13055
13060
|
default: Y(() => [
|
|
13056
|
-
|
|
13061
|
+
M(V(kA), {
|
|
13057
13062
|
label: V(fA)("处理类型").value,
|
|
13058
13063
|
required: "",
|
|
13059
13064
|
type: "select",
|
|
13060
13065
|
modelValue: t.value.processTypeId,
|
|
13061
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
13066
|
+
"onUpdate:modelValue": I[0] || (I[0] = (Q) => t.value.processTypeId = Q),
|
|
13062
13067
|
options: a.value,
|
|
13063
13068
|
col: 1,
|
|
13064
13069
|
optionsLabelKey: "name",
|
|
13065
13070
|
optionsValueKey: "id",
|
|
13066
|
-
"get-popup-container":
|
|
13071
|
+
"get-popup-container": T,
|
|
13067
13072
|
marginBottom: "30px",
|
|
13068
13073
|
marginRight: "0",
|
|
13069
13074
|
onChange: W
|
|
@@ -13075,11 +13080,11 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13075
13080
|
type: "input",
|
|
13076
13081
|
maxlength: "50",
|
|
13077
13082
|
col: 1,
|
|
13078
|
-
onFocus: I[1] || (I[1] = (
|
|
13083
|
+
onFocus: I[1] || (I[1] = (Q) => z.value.reason = ""),
|
|
13079
13084
|
modelValue: t.value.reason,
|
|
13080
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
13085
|
+
"onUpdate:modelValue": I[2] || (I[2] = (Q) => t.value.reason = Q),
|
|
13081
13086
|
error: z.value.reason,
|
|
13082
|
-
"onUpdate:error": I[3] || (I[3] = (
|
|
13087
|
+
"onUpdate:error": I[3] || (I[3] = (Q) => z.value.reason = Q),
|
|
13083
13088
|
marginBottom: "30px",
|
|
13084
13089
|
marginRight: "0"
|
|
13085
13090
|
}, null, 8, ["label", "required", "modelValue", "error"])) : AA("v-if", !0),
|
|
@@ -13090,11 +13095,11 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13090
13095
|
type: "input",
|
|
13091
13096
|
maxlength: "50",
|
|
13092
13097
|
col: 1,
|
|
13093
|
-
onFocus: I[4] || (I[4] = (
|
|
13098
|
+
onFocus: I[4] || (I[4] = (Q) => z.value.treatmentPlan = ""),
|
|
13094
13099
|
modelValue: t.value.treatmentPlan,
|
|
13095
|
-
"onUpdate:modelValue": I[5] || (I[5] = (
|
|
13100
|
+
"onUpdate:modelValue": I[5] || (I[5] = (Q) => t.value.treatmentPlan = Q),
|
|
13096
13101
|
error: z.value.treatmentPlan,
|
|
13097
|
-
"onUpdate:error": I[6] || (I[6] = (
|
|
13102
|
+
"onUpdate:error": I[6] || (I[6] = (Q) => z.value.treatmentPlan = Q),
|
|
13098
13103
|
marginBottom: "30px",
|
|
13099
13104
|
marginRight: "0"
|
|
13100
13105
|
}, null, 8, ["label", "required", "modelValue", "error"])) : AA("v-if", !0),
|
|
@@ -13107,7 +13112,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13107
13112
|
maxlength: "100",
|
|
13108
13113
|
col: 1,
|
|
13109
13114
|
modelValue: t.value.remarks,
|
|
13110
|
-
"onUpdate:modelValue": I[7] || (I[7] = (
|
|
13115
|
+
"onUpdate:modelValue": I[7] || (I[7] = (Q) => t.value.remarks = Q),
|
|
13111
13116
|
marginBottom: "30px",
|
|
13112
13117
|
marginRight: "0"
|
|
13113
13118
|
}, null, 8, ["label", "modelValue"])) : AA("v-if", !0),
|
|
@@ -13117,44 +13122,44 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13117
13122
|
required: "",
|
|
13118
13123
|
type: "custom",
|
|
13119
13124
|
error: z.value.reportPosition,
|
|
13120
|
-
"onUpdate:error": I[13] || (I[13] = (
|
|
13125
|
+
"onUpdate:error": I[13] || (I[13] = (Q) => z.value.reportPosition = Q),
|
|
13121
13126
|
marginBottom: "20px",
|
|
13122
13127
|
marginRight: "0"
|
|
13123
13128
|
}, {
|
|
13124
13129
|
default: Y(() => [
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13130
|
+
B("div", I2, [
|
|
13131
|
+
B("div", g2, [
|
|
13132
|
+
M(V(zt), {
|
|
13128
13133
|
borderType: "underline",
|
|
13129
13134
|
props: { disabled: "_disabled", label: "name" },
|
|
13130
13135
|
modelValue: t.value.reportPosition,
|
|
13131
|
-
"onUpdate:modelValue": I[8] || (I[8] = (
|
|
13136
|
+
"onUpdate:modelValue": I[8] || (I[8] = (Q) => t.value.reportPosition = Q),
|
|
13132
13137
|
path: i.value,
|
|
13133
|
-
"onUpdate:path": I[9] || (I[9] = (
|
|
13138
|
+
"onUpdate:path": I[9] || (I[9] = (Q) => i.value = Q),
|
|
13134
13139
|
keyword: m.value,
|
|
13135
|
-
"onUpdate:keyword": I[10] || (I[10] = (
|
|
13140
|
+
"onUpdate:keyword": I[10] || (I[10] = (Q) => m.value = Q),
|
|
13136
13141
|
showFullPath: !0,
|
|
13137
13142
|
data: q.value,
|
|
13138
13143
|
placeholder: H.value,
|
|
13139
|
-
disabled:
|
|
13144
|
+
disabled: O.value,
|
|
13140
13145
|
load: D,
|
|
13141
|
-
search:
|
|
13146
|
+
search: x,
|
|
13142
13147
|
onChange: h,
|
|
13143
13148
|
filter: !0,
|
|
13144
13149
|
allowClear: !0
|
|
13145
13150
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
13146
|
-
|
|
13151
|
+
M(V(n7), {
|
|
13147
13152
|
ref: "testInput",
|
|
13148
13153
|
modelValue: t.value.customPath,
|
|
13149
|
-
"onUpdate:modelValue": I[11] || (I[11] = (
|
|
13154
|
+
"onUpdate:modelValue": I[11] || (I[11] = (Q) => t.value.customPath = Q),
|
|
13150
13155
|
placeholder: V(fA)("选填").value,
|
|
13151
|
-
disabled:
|
|
13156
|
+
disabled: O.value,
|
|
13152
13157
|
maxlength: "20"
|
|
13153
13158
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
13154
13159
|
]),
|
|
13155
|
-
|
|
13160
|
+
M(V(e3), {
|
|
13156
13161
|
modelValue: N.value,
|
|
13157
|
-
"onUpdate:modelValue": I[12] || (I[12] = (
|
|
13162
|
+
"onUpdate:modelValue": I[12] || (I[12] = (Q) => N.value = Q),
|
|
13158
13163
|
checkboxType: "default",
|
|
13159
13164
|
onChange: $,
|
|
13160
13165
|
size: "middle"
|
|
@@ -13180,23 +13185,23 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13180
13185
|
required: "",
|
|
13181
13186
|
type: "custom",
|
|
13182
13187
|
error: z.value.reportTheme,
|
|
13183
|
-
"onUpdate:error": I[16] || (I[16] = (
|
|
13188
|
+
"onUpdate:error": I[16] || (I[16] = (Q) => z.value.reportTheme = Q),
|
|
13184
13189
|
marginBottom: "20px",
|
|
13185
13190
|
marginRight: "0"
|
|
13186
13191
|
}, {
|
|
13187
13192
|
default: Y(() => [
|
|
13188
|
-
|
|
13189
|
-
|
|
13193
|
+
B("div", M2, [
|
|
13194
|
+
M(V(n7), {
|
|
13190
13195
|
maxlength: "20",
|
|
13191
13196
|
disabled: j.value,
|
|
13192
13197
|
modelValue: t.value.reportTheme,
|
|
13193
|
-
"onUpdate:modelValue": I[14] || (I[14] = (
|
|
13198
|
+
"onUpdate:modelValue": I[14] || (I[14] = (Q) => t.value.reportTheme = Q),
|
|
13194
13199
|
placeholder: s.value,
|
|
13195
|
-
onChange:
|
|
13200
|
+
onChange: g
|
|
13196
13201
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
13197
|
-
|
|
13198
|
-
modelValue:
|
|
13199
|
-
"onUpdate:modelValue": I[15] || (I[15] = (
|
|
13202
|
+
M(V(e3), {
|
|
13203
|
+
modelValue: l.value,
|
|
13204
|
+
"onUpdate:modelValue": I[15] || (I[15] = (Q) => l.value = Q),
|
|
13200
13205
|
checkboxType: "default",
|
|
13201
13206
|
onChange: J,
|
|
13202
13207
|
size: "middle"
|
|
@@ -13222,14 +13227,14 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13222
13227
|
required: "",
|
|
13223
13228
|
type: "select",
|
|
13224
13229
|
modelValue: t.value.workOrderRules,
|
|
13225
|
-
"onUpdate:modelValue": I[17] || (I[17] = (
|
|
13230
|
+
"onUpdate:modelValue": I[17] || (I[17] = (Q) => t.value.workOrderRules = Q),
|
|
13226
13231
|
error: z.value.workOrderRules,
|
|
13227
|
-
"onUpdate:error": I[18] || (I[18] = (
|
|
13232
|
+
"onUpdate:error": I[18] || (I[18] = (Q) => z.value.workOrderRules = Q),
|
|
13228
13233
|
options: R.value,
|
|
13229
13234
|
col: 1,
|
|
13230
13235
|
optionsLabelKey: "name",
|
|
13231
13236
|
optionsValueKey: "id",
|
|
13232
|
-
"get-popup-container":
|
|
13237
|
+
"get-popup-container": T,
|
|
13233
13238
|
marginBottom: "0px",
|
|
13234
13239
|
marginRight: "0"
|
|
13235
13240
|
}, null, 8, ["label", "modelValue", "error", "options"])) : AA("v-if", !0),
|
|
@@ -13240,17 +13245,17 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13240
13245
|
required: "",
|
|
13241
13246
|
type: "select",
|
|
13242
13247
|
modelValue: t.value.eventTypeId,
|
|
13243
|
-
"onUpdate:modelValue": I[19] || (I[19] = (
|
|
13248
|
+
"onUpdate:modelValue": I[19] || (I[19] = (Q) => t.value.eventTypeId = Q),
|
|
13244
13249
|
error: z.value.eventTypeId,
|
|
13245
|
-
"onUpdate:error": I[20] || (I[20] = (
|
|
13250
|
+
"onUpdate:error": I[20] || (I[20] = (Q) => z.value.eventTypeId = Q),
|
|
13246
13251
|
options: X.value,
|
|
13247
13252
|
col: 1,
|
|
13248
13253
|
optionsLabelKey: "typeName",
|
|
13249
13254
|
optionsValueKey: "id",
|
|
13250
|
-
"get-popup-container":
|
|
13255
|
+
"get-popup-container": T,
|
|
13251
13256
|
marginBottom: "30px",
|
|
13252
13257
|
marginRight: "0",
|
|
13253
|
-
onChange: I[21] || (I[21] = (
|
|
13258
|
+
onChange: I[21] || (I[21] = (Q) => _("eventTypeId"))
|
|
13254
13259
|
}, null, 8, ["label", "modelValue", "error", "options"])) : AA("v-if", !0),
|
|
13255
13260
|
t.value.processTypeId == "createcontingency" ? (G(), tA(V(kA), {
|
|
13256
13261
|
key: 7,
|
|
@@ -13258,17 +13263,17 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13258
13263
|
required: "",
|
|
13259
13264
|
type: "select",
|
|
13260
13265
|
modelValue: t.value.eventLevelId,
|
|
13261
|
-
"onUpdate:modelValue": I[22] || (I[22] = (
|
|
13266
|
+
"onUpdate:modelValue": I[22] || (I[22] = (Q) => t.value.eventLevelId = Q),
|
|
13262
13267
|
error: z.value.eventLevelId,
|
|
13263
|
-
"onUpdate:error": I[23] || (I[23] = (
|
|
13268
|
+
"onUpdate:error": I[23] || (I[23] = (Q) => z.value.eventLevelId = Q),
|
|
13264
13269
|
options: b.value,
|
|
13265
13270
|
col: 1,
|
|
13266
13271
|
optionsLabelKey: "name",
|
|
13267
13272
|
optionsValueKey: "id",
|
|
13268
|
-
"get-popup-container":
|
|
13273
|
+
"get-popup-container": T,
|
|
13269
13274
|
marginBottom: "30px",
|
|
13270
13275
|
marginRight: "0",
|
|
13271
|
-
onChange: I[24] || (I[24] = (
|
|
13276
|
+
onChange: I[24] || (I[24] = (Q) => _("eventLevelId"))
|
|
13272
13277
|
}, null, 8, ["label", "modelValue", "error", "options"])) : AA("v-if", !0),
|
|
13273
13278
|
t.value.processTypeId == "createcontingency" ? (G(), tA(V(kA), {
|
|
13274
13279
|
key: 8,
|
|
@@ -13278,19 +13283,19 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13278
13283
|
maxlength: "3",
|
|
13279
13284
|
col: 1,
|
|
13280
13285
|
modelValue: t.value.timeLimit,
|
|
13281
|
-
"onUpdate:modelValue": I[27] || (I[27] = (
|
|
13286
|
+
"onUpdate:modelValue": I[27] || (I[27] = (Q) => t.value.timeLimit = Q),
|
|
13282
13287
|
error: z.value.timeLimit,
|
|
13283
|
-
"onUpdate:error": I[28] || (I[28] = (
|
|
13288
|
+
"onUpdate:error": I[28] || (I[28] = (Q) => z.value.timeLimit = Q),
|
|
13284
13289
|
disabled: t.value.interval == 3,
|
|
13285
13290
|
marginBottom: "30px",
|
|
13286
13291
|
marginRight: "0"
|
|
13287
13292
|
}, {
|
|
13288
13293
|
default: Y(() => [
|
|
13289
|
-
|
|
13290
|
-
|
|
13294
|
+
B("div", B2, [
|
|
13295
|
+
M(V(Uv), {
|
|
13291
13296
|
class: "select",
|
|
13292
13297
|
modelValue: t.value.interval,
|
|
13293
|
-
"onUpdate:modelValue": I[25] || (I[25] = (
|
|
13298
|
+
"onUpdate:modelValue": I[25] || (I[25] = (Q) => t.value.interval = Q),
|
|
13294
13299
|
width: V(D9) == "zh-CN" ? "65px" : "85px",
|
|
13295
13300
|
fieldNames: {
|
|
13296
13301
|
value: "id",
|
|
@@ -13299,8 +13304,8 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13299
13304
|
options: c.value,
|
|
13300
13305
|
"border-type": "underline",
|
|
13301
13306
|
size: "small",
|
|
13302
|
-
"get-popup-container":
|
|
13303
|
-
onChange: I[26] || (I[26] = (
|
|
13307
|
+
"get-popup-container": T,
|
|
13308
|
+
onChange: I[26] || (I[26] = (Q) => _("interval")),
|
|
13304
13309
|
placeholder: V(fA)("请选择").value
|
|
13305
13310
|
}, null, 8, ["modelValue", "width", "options", "placeholder"])
|
|
13306
13311
|
])
|
|
@@ -13354,20 +13359,20 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13354
13359
|
null,
|
|
13355
13360
|
[
|
|
13356
13361
|
AA(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13362
|
+
B("div", J2, [
|
|
13363
|
+
B("div", h2, [
|
|
13364
|
+
B(
|
|
13360
13365
|
"div",
|
|
13361
13366
|
{
|
|
13362
13367
|
style: $f({ "background-color": P.msgItem.color }),
|
|
13363
13368
|
class: "title-detail"
|
|
13364
13369
|
},
|
|
13365
13370
|
[
|
|
13366
|
-
|
|
13371
|
+
B("div", F2, [
|
|
13367
13372
|
AA(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
13368
13373
|
!\r
|
|
13369
13374
|
</div> `),
|
|
13370
|
-
|
|
13375
|
+
B(
|
|
13371
13376
|
"div",
|
|
13372
13377
|
S2,
|
|
13373
13378
|
PA(V(fA)("新告警").value),
|
|
@@ -13375,7 +13380,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13375
13380
|
/* TEXT */
|
|
13376
13381
|
)
|
|
13377
13382
|
]),
|
|
13378
|
-
u[0] || (u[0] =
|
|
13383
|
+
u[0] || (u[0] = B(
|
|
13379
13384
|
"div",
|
|
13380
13385
|
{ class: "title-right" },
|
|
13381
13386
|
null,
|
|
@@ -13386,16 +13391,16 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13386
13391
|
4
|
|
13387
13392
|
/* STYLE */
|
|
13388
13393
|
),
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13394
|
+
B("div", K2, [
|
|
13395
|
+
B("div", C2, [
|
|
13396
|
+
B(
|
|
13392
13397
|
"div",
|
|
13393
13398
|
_2,
|
|
13394
13399
|
PA(V(fA)("告警等级:").value),
|
|
13395
13400
|
1
|
|
13396
13401
|
/* TEXT */
|
|
13397
13402
|
),
|
|
13398
|
-
|
|
13403
|
+
B(
|
|
13399
13404
|
"div",
|
|
13400
13405
|
{
|
|
13401
13406
|
class: "alarm-msg-line-right alarm-content-object",
|
|
@@ -13406,15 +13411,15 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13406
13411
|
/* TEXT, STYLE */
|
|
13407
13412
|
)
|
|
13408
13413
|
]),
|
|
13409
|
-
|
|
13410
|
-
|
|
13414
|
+
B("div", $2, [
|
|
13415
|
+
B(
|
|
13411
13416
|
"div",
|
|
13412
13417
|
Ac,
|
|
13413
13418
|
PA(V(fA)("告警对象:").value),
|
|
13414
13419
|
1
|
|
13415
13420
|
/* TEXT */
|
|
13416
13421
|
),
|
|
13417
|
-
|
|
13422
|
+
B(
|
|
13418
13423
|
"div",
|
|
13419
13424
|
ec,
|
|
13420
13425
|
PA(P.msgItem.equipmentName || ""),
|
|
@@ -13422,15 +13427,15 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13422
13427
|
/* TEXT */
|
|
13423
13428
|
)
|
|
13424
13429
|
]),
|
|
13425
|
-
|
|
13426
|
-
|
|
13430
|
+
B("div", fc, [
|
|
13431
|
+
B(
|
|
13427
13432
|
"div",
|
|
13428
13433
|
vc,
|
|
13429
13434
|
PA(V(fA)("告警内容:").value),
|
|
13430
13435
|
1
|
|
13431
13436
|
/* TEXT */
|
|
13432
13437
|
),
|
|
13433
|
-
|
|
13438
|
+
B(
|
|
13434
13439
|
"div",
|
|
13435
13440
|
nc,
|
|
13436
13441
|
PA(P.msgItem.alarmContent || ""),
|
|
@@ -13438,7 +13443,7 @@ const m2 = MA(`/api/tool/event-bus/${vf}/`), Cf = m2.post("/publish"), l2 = J9.g
|
|
|
13438
13443
|
/* TEXT */
|
|
13439
13444
|
)
|
|
13440
13445
|
]),
|
|
13441
|
-
|
|
13446
|
+
B("div", rc, [
|
|
13442
13447
|
P.msgItem.equipmentCode && P.msgItem.equipmentPanelCode ? (G(), tA(V(CA), {
|
|
13443
13448
|
key: 0,
|
|
13444
13449
|
block: "",
|
|
@@ -13492,7 +13497,7 @@ let uc = (f = 21) => {
|
|
|
13492
13497
|
return A;
|
|
13493
13498
|
};
|
|
13494
13499
|
const dc = () => {
|
|
13495
|
-
const f =
|
|
13500
|
+
const f = Z(null), A = Z(0), e = Z(null), v = Z(null), r = Z([]), n = Z([]), P = Z(!1), u = Z(!1), d = Z(!1), t = Z({
|
|
13496
13501
|
playId: "",
|
|
13497
13502
|
// 播放的告警的recordId
|
|
13498
13503
|
playPath: "",
|
|
@@ -13508,27 +13513,27 @@ const dc = () => {
|
|
|
13508
13513
|
loop: !1
|
|
13509
13514
|
// 轮播-无限次播放
|
|
13510
13515
|
});
|
|
13511
|
-
yA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (
|
|
13512
|
-
const { isRealTimeAlarm: j, audioPlay:
|
|
13513
|
-
j != null && (u.value = j),
|
|
13516
|
+
yA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (x) => {
|
|
13517
|
+
const { isRealTimeAlarm: j, audioPlay: l } = x.data;
|
|
13518
|
+
j != null && (u.value = j), l != null && (d.value = l, d.value || m());
|
|
13514
13519
|
});
|
|
13515
|
-
const z = (
|
|
13516
|
-
var
|
|
13520
|
+
const z = (x) => {
|
|
13521
|
+
var l;
|
|
13517
13522
|
const j = [];
|
|
13518
|
-
j.push({ alarmId:
|
|
13519
|
-
}, { entryApp: p } = B9.hooks.useEntryApp(), X = (
|
|
13520
|
-
Yv(
|
|
13523
|
+
j.push({ alarmId: x.recordId }), r.value = j, (l = e.value) == null || l.open();
|
|
13524
|
+
}, { entryApp: p } = B9.hooks.useEntryApp(), X = (x) => {
|
|
13525
|
+
Yv(x.equipmentCode, x.equipmentPanelCode);
|
|
13521
13526
|
}, { handleAlarmVue: b } = U2(e, r), c = async () => {
|
|
13522
|
-
var
|
|
13523
|
-
const j = (((
|
|
13527
|
+
var l;
|
|
13528
|
+
const j = (((l = cA().appcategorys) == null ? void 0 : l.map((R) => R.apps).flat()) ?? []).find((R) => R.code === "alarm");
|
|
13524
13529
|
j && p({ microApp: j, menuPath: `/${j.routeUrl}/realTimeAlarm` });
|
|
13525
|
-
}, a = [], i = (
|
|
13526
|
-
if (a.push(
|
|
13530
|
+
}, a = [], i = (x) => {
|
|
13531
|
+
if (a.push(x), n.value.length < 2) {
|
|
13527
13532
|
H(a[0]), a.shift();
|
|
13528
13533
|
return;
|
|
13529
13534
|
}
|
|
13530
|
-
}, H = (
|
|
13531
|
-
if (!
|
|
13535
|
+
}, H = (x) => {
|
|
13536
|
+
if (!x) return;
|
|
13532
13537
|
const j = uc();
|
|
13533
13538
|
M9.open({
|
|
13534
13539
|
key: j,
|
|
@@ -13536,7 +13541,7 @@ const dc = () => {
|
|
|
13536
13541
|
message: fA("新告警").value,
|
|
13537
13542
|
placement: "bottomRight",
|
|
13538
13543
|
description: RA(Pc, {
|
|
13539
|
-
msgItem:
|
|
13544
|
+
msgItem: x,
|
|
13540
13545
|
alarmhandle: P.value,
|
|
13541
13546
|
onHanderDetail: X,
|
|
13542
13547
|
onHanderFn: z
|
|
@@ -13547,40 +13552,40 @@ const dc = () => {
|
|
|
13547
13552
|
},
|
|
13548
13553
|
onClose: () => {
|
|
13549
13554
|
setTimeout(() => {
|
|
13550
|
-
const
|
|
13551
|
-
if (
|
|
13555
|
+
const l = n.value.findIndex((R) => R == j);
|
|
13556
|
+
if (l >= 0 && n.value.splice(l, 1), n.value.length < 2 && a.length) {
|
|
13552
13557
|
H(a[0]), a.shift();
|
|
13553
13558
|
return;
|
|
13554
13559
|
}
|
|
13555
13560
|
}, 300);
|
|
13556
13561
|
}
|
|
13557
|
-
}), n.value.includes(j) || n.value.push(j), s(
|
|
13558
|
-
}, s = (
|
|
13559
|
-
if (
|
|
13562
|
+
}), n.value.includes(j) || n.value.push(j), s(x);
|
|
13563
|
+
}, s = (x) => {
|
|
13564
|
+
if (x) {
|
|
13560
13565
|
if (!d.value) {
|
|
13561
13566
|
m();
|
|
13562
13567
|
return;
|
|
13563
13568
|
}
|
|
13564
|
-
if (!
|
|
13569
|
+
if (!x.coverId) {
|
|
13565
13570
|
if (t.value.playLine === null) {
|
|
13566
|
-
m(), Number(
|
|
13571
|
+
m(), Number(x.noticeNum) != 0 && q(x);
|
|
13567
13572
|
return;
|
|
13568
13573
|
}
|
|
13569
|
-
Number(
|
|
13574
|
+
Number(x.alarmLevelId) < t.value.playLine && (m(), Number(x.noticeNum) != 0 && q(x));
|
|
13570
13575
|
}
|
|
13571
13576
|
}
|
|
13572
|
-
}, q = (
|
|
13573
|
-
const j = Number(
|
|
13574
|
-
t.value.isplay && t.value.playId ==
|
|
13577
|
+
}, q = (x) => {
|
|
13578
|
+
const j = Number(x.noticeNum), l = location.origin + "/oss";
|
|
13579
|
+
t.value.isplay && t.value.playId == x.recordId ? m() : (j < 0 ? t.value.loop = !0 : t.value.loop = !1, j > 0 ? (t.value.loopTotalCount = Number(x.noticeNum), t.value.loopCount = 0) : (t.value.loopTotalCount = 0, t.value.loopCount = 0), t.value.isplay = !0, t.value.playId = x.recordId, t.value.playLine = Number(x.alarmLevelId), t.value.playPath = l + x.noticePath, O());
|
|
13575
13580
|
}, m = () => {
|
|
13576
13581
|
t.value.playId = "", t.value.playPath = "", t.value.playLine = null, t.value.loopCount = 0, t.value.loopTotalCount = 0, t.value.isplay = !1, t.value.loop = !1;
|
|
13577
|
-
},
|
|
13582
|
+
}, O = () => {
|
|
13578
13583
|
v.value.onended = function() {
|
|
13579
13584
|
t.value.loopCount = t.value.loopCount + 1, t.value.loopTotalCount && t.value.loopTotalCount && (t.value.loopCount == t.value.loopTotalCount ? (t.value.playPath = "", t.value.isplay = !1, t.value.playId = "", t.value.loopTotalCount = 0, t.value.loopCount = 0, t.value.playLine = null) : v.value.play());
|
|
13580
13585
|
};
|
|
13581
13586
|
}, N = async () => {
|
|
13582
|
-
const [
|
|
13583
|
-
|
|
13587
|
+
const [x, j] = await o2().run();
|
|
13588
|
+
x || (d.value = j.isEnable);
|
|
13584
13589
|
};
|
|
13585
13590
|
return {
|
|
13586
13591
|
alarmSocket: f,
|
|
@@ -13590,15 +13595,15 @@ const dc = () => {
|
|
|
13590
13595
|
handleAlarmVue: b,
|
|
13591
13596
|
creatAlarmSocket: async () => {
|
|
13592
13597
|
N();
|
|
13593
|
-
const [
|
|
13598
|
+
const [x, j] = await V2().run({
|
|
13594
13599
|
code: "alarm",
|
|
13595
13600
|
showBtn: !0
|
|
13596
13601
|
});
|
|
13597
|
-
if (
|
|
13598
|
-
let
|
|
13602
|
+
if (x || !j || !j.length) return;
|
|
13603
|
+
let l = !1;
|
|
13599
13604
|
j.forEach((R) => {
|
|
13600
|
-
(R.code === "alarm.realTimeAlarm" || R.originalCode === "alarm.realTimeAlarm") && (
|
|
13601
|
-
}),
|
|
13605
|
+
(R.code === "alarm.realTimeAlarm" || R.originalCode === "alarm.realTimeAlarm") && (l = !0, R.children && R.children.length ? P.value = R.children.findIndex((o) => o.code == "alarm.realTimeAlarm.handle") >= 0 : P.value = !1);
|
|
13606
|
+
}), l && (f.value = new S9({
|
|
13602
13607
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
13603
13608
|
reconnectWhenClose: !0,
|
|
13604
13609
|
opened: () => {
|
|
@@ -13623,8 +13628,8 @@ const dc = () => {
|
|
|
13623
13628
|
ee,
|
|
13624
13629
|
null,
|
|
13625
13630
|
[
|
|
13626
|
-
|
|
13627
|
-
|
|
13631
|
+
M(V(n)),
|
|
13632
|
+
B("audio", {
|
|
13628
13633
|
src: V(v).playPath,
|
|
13629
13634
|
class: "audio-alarm-level",
|
|
13630
13635
|
ref_key: "audioAlarmRef",
|
|
@@ -13648,9 +13653,9 @@ const dc = () => {
|
|
|
13648
13653
|
sA(
|
|
13649
13654
|
() => Wv.nav.activeItem,
|
|
13650
13655
|
(j) => {
|
|
13651
|
-
var
|
|
13656
|
+
var l;
|
|
13652
13657
|
if (j) {
|
|
13653
|
-
const o = !!(((
|
|
13658
|
+
const o = !!(((l = cA()) == null ? void 0 : l.menuCollapses) || []).find((T) => T === j);
|
|
13654
13659
|
S.menu.setCollapse(o);
|
|
13655
13660
|
}
|
|
13656
13661
|
},
|
|
@@ -13658,27 +13663,27 @@ const dc = () => {
|
|
|
13658
13663
|
);
|
|
13659
13664
|
const { initNextTick: d } = L8(), { loading: t, pageKey: z, innerPage: p, commandList: X, initNextTick: b } = w8(d);
|
|
13660
13665
|
B8(p, d, b), M8(), I8(), G8();
|
|
13661
|
-
const { $changePwd: c, $personSetDialog: a } = k8(), { $aiPanel: i, toApp: H } = C8(), { changeEnterprisesVisible: s, userId: q, tenantId: m, changeEnterprise:
|
|
13666
|
+
const { $changePwd: c, $personSetDialog: a } = k8(), { $aiPanel: i, toApp: H } = C8(), { changeEnterprisesVisible: s, userId: q, tenantId: m, changeEnterprise: O } = kn();
|
|
13662
13667
|
E8();
|
|
13663
|
-
const { fontColor: N, backgroudColor: D, borderColor:
|
|
13664
|
-
return _8(), $8(X), AX(), fX(), TX(), O2(), (j,
|
|
13668
|
+
const { fontColor: N, backgroudColor: D, borderColor: x } = g8();
|
|
13669
|
+
return _8(), $8(X), AX(), fX(), TX(), O2(), (j, l) => (G(), dA("div", cc, [
|
|
13665
13670
|
AA(` <button @click="test(0)">test</button>\r
|
|
13666
13671
|
<button style="margin-left: 5px" @click="test(1)">test2</button> `),
|
|
13667
|
-
|
|
13672
|
+
M(V(TP), { platformInitNextTick: V(d) }, {
|
|
13668
13673
|
default: Y(() => [
|
|
13669
|
-
|
|
13674
|
+
M(jP, {
|
|
13670
13675
|
loading: V(t),
|
|
13671
13676
|
pageKey: V(z) + V(D9),
|
|
13672
13677
|
showLayout: r.value,
|
|
13673
13678
|
excludeRoutes: n.value,
|
|
13674
13679
|
routeKeepAliveVisible: P.value,
|
|
13675
|
-
tabsAttr: { fontColor: V(N), backgroudColor: V(D), borderColor: V(
|
|
13680
|
+
tabsAttr: { fontColor: V(N), backgroudColor: V(D), borderColor: V(x) },
|
|
13676
13681
|
menuAttr: u.value
|
|
13677
13682
|
}, sr({
|
|
13678
13683
|
_: 2
|
|
13679
13684
|
/* DYNAMIC */
|
|
13680
13685
|
}, [
|
|
13681
|
-
he(j.$slots, (R, o,
|
|
13686
|
+
he(j.$slots, (R, o, T) => ({
|
|
13682
13687
|
name: o,
|
|
13683
13688
|
fn: Y(() => [
|
|
13684
13689
|
LA(j.$slots, o, {}, void 0, !0)
|
|
@@ -13690,15 +13695,15 @@ const dc = () => {
|
|
|
13690
13695
|
/* FORWARDED */
|
|
13691
13696
|
}, 8, ["platformInitNextTick"]),
|
|
13692
13697
|
AA(" 切换租户 "),
|
|
13693
|
-
|
|
13698
|
+
M(V(Zr), {
|
|
13694
13699
|
visible: V(s),
|
|
13695
|
-
"onUpdate:visible":
|
|
13700
|
+
"onUpdate:visible": l[0] || (l[0] = (R) => ne(s) ? s.value = R : null),
|
|
13696
13701
|
userId: V(q),
|
|
13697
13702
|
tenantId: V(m),
|
|
13698
|
-
onConfirm: V(
|
|
13703
|
+
onConfirm: V(O)
|
|
13699
13704
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
13700
13705
|
AA(" 修改密码 "),
|
|
13701
|
-
|
|
13706
|
+
M(
|
|
13702
13707
|
V(or),
|
|
13703
13708
|
{
|
|
13704
13709
|
ref_key: "$changePwd",
|
|
@@ -13709,7 +13714,7 @@ const dc = () => {
|
|
|
13709
13714
|
/* NEED_PATCH */
|
|
13710
13715
|
),
|
|
13711
13716
|
AA(" 个性化设置 "),
|
|
13712
|
-
|
|
13717
|
+
M(
|
|
13713
13718
|
V(N8),
|
|
13714
13719
|
{
|
|
13715
13720
|
ref_key: "$personSetDialog",
|
|
@@ -13720,14 +13725,14 @@ const dc = () => {
|
|
|
13720
13725
|
/* NEED_PATCH */
|
|
13721
13726
|
),
|
|
13722
13727
|
AA(" AI助手 "),
|
|
13723
|
-
|
|
13728
|
+
M(V(Tr), {
|
|
13724
13729
|
platformInitNextTick: V(d),
|
|
13725
13730
|
onToApp: V(H),
|
|
13726
13731
|
ref_key: "$aiPanel",
|
|
13727
13732
|
ref: i
|
|
13728
13733
|
}, null, 8, ["platformInitNextTick", "onToApp"]),
|
|
13729
13734
|
AA(" 告警 "),
|
|
13730
|
-
|
|
13735
|
+
M(V(Xc))
|
|
13731
13736
|
]));
|
|
13732
13737
|
}
|
|
13733
13738
|
}), ac = /* @__PURE__ */ ZA(bc, [["__scopeId", "data-v-8afab391"]]), ic = {
|
|
@@ -13896,15 +13901,15 @@ const dc = () => {
|
|
|
13896
13901
|
}
|
|
13897
13902
|
};
|
|
13898
13903
|
lr(ic);
|
|
13899
|
-
|
|
13904
|
+
Z("@das-fed/web");
|
|
13900
13905
|
const sc = [
|
|
13901
13906
|
{
|
|
13902
13907
|
path: wA,
|
|
13903
|
-
component: () => import("./index-
|
|
13908
|
+
component: () => import("./index-fgIF10qZ.js")
|
|
13904
13909
|
},
|
|
13905
13910
|
{
|
|
13906
13911
|
path: Cv,
|
|
13907
|
-
component: () => import("./index-
|
|
13912
|
+
component: () => import("./index-C_grfTQZ.js")
|
|
13908
13913
|
}
|
|
13909
13914
|
], Mb = {
|
|
13910
13915
|
routes: sc,
|