@das-fed/web 6.4.0-dev.55.22 → 6.4.0-dev.55.23
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/{packages/main-app-framework/index-BWcnID_S.js → index-CXWIlMWh.js} +1 -1
- package/index-CXWIlMWh.js.gz +0 -0
- package/{index-BnbAZvZB.js → index-DrGzHhEt.js} +6 -8
- package/{index-BnbAZvZB.js.gz → index-DrGzHhEt.js.gz} +0 -0
- package/{index-B0BMD2kS.js → index-fFfHJEPo.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-B44d1Xif.js → index-BHJWJR96.js} +91 -93
- package/packages/main-app-framework/{index-B44d1Xif.js.gz → index-BHJWJR96.js.gz} +0 -0
- package/packages/main-app-framework/{index-UFP0sl5A.js → index-BUkGEox3.js} +1 -1
- package/{index-BWVBjNaV.js → packages/main-app-framework/index-CoKyMrhP.js} +1 -1
- package/packages/main-app-framework/index-CoKyMrhP.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-BWVBjNaV.js.gz +0 -0
- package/packages/main-app-framework/index-BWcnID_S.js.gz +0 -0
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-
|
|
9
|
+
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-DrGzHhEt.js";
|
|
10
10
|
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(V) {
|
|
Binary file
|
|
@@ -7290,9 +7290,7 @@ const p6 = () => {
|
|
|
7290
7290
|
if (l || !D || !D.length) return;
|
|
7291
7291
|
let N = !1;
|
|
7292
7292
|
D.forEach((I) => {
|
|
7293
|
-
I.code === "alarm.realTimeAlarm" && (N = !0, I.children && I.children.length ? I.children.
|
|
7294
|
-
G.code == "alarm.realTimeAlarm.handle" ? r.value = !0 : r.value = !1;
|
|
7295
|
-
}) : r.value = !1);
|
|
7293
|
+
(I.code === "alarm.realTimeAlarm" || I.originalCode === "alarm.realTimeAlarm") && (N = !0, I.children && I.children.length ? r.value = I.children.findIndex((G) => G.code == "alarm.realTimeAlarm.handle") >= 0 : r.value = !1);
|
|
7296
7294
|
}), N && (e.value = new Sf({
|
|
7297
7295
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
7298
7296
|
reconnectWhenClose: !0,
|
|
@@ -7501,9 +7499,9 @@ const p6 = () => {
|
|
|
7501
7499
|
个人中心: { "zh-CN": "个人中心", en: "Personal Center", _appCode: "framework" },
|
|
7502
7500
|
修改密码: { "zh-CN": "修改密码", en: "Change Password", _appCode: "framework" },
|
|
7503
7501
|
退出登录: { "zh-CN": "退出登录", en: "Logout", _appCode: "framework" },
|
|
7504
|
-
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm
|
|
7505
|
-
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm
|
|
7506
|
-
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm
|
|
7502
|
+
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm Level:", _appCode: "framework" },
|
|
7503
|
+
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm Object:", _appCode: "framework" },
|
|
7504
|
+
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm Content:", _appCode: "framework" },
|
|
7507
7505
|
"必填,最多50个字符/汉字": {
|
|
7508
7506
|
"zh-CN": "必填,最多50个字符/汉字",
|
|
7509
7507
|
en: "Required, up to 50 characters/chinese characters",
|
|
@@ -7555,11 +7553,11 @@ const N6 = [
|
|
|
7555
7553
|
},
|
|
7556
7554
|
{
|
|
7557
7555
|
path: NA,
|
|
7558
|
-
component: () => import("./index-
|
|
7556
|
+
component: () => import("./index-CXWIlMWh.js")
|
|
7559
7557
|
},
|
|
7560
7558
|
{
|
|
7561
7559
|
path: L9,
|
|
7562
|
-
component: () => import("./index-
|
|
7560
|
+
component: () => import("./index-fFfHJEPo.js")
|
|
7563
7561
|
}
|
|
7564
7562
|
], g8 = {
|
|
7565
7563
|
routes: N6,
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-
|
|
1
|
+
import { I as e, z as t, B as n, A as i, C as r, e as u, k as o, v as g, n as m, g as p, j as D, r as l, x as L, y as b, f as c, i as h, F as A, G as T, o as y, D as R, E as W, J as I, H as M, s as F, h as V, m as f, q as k, w as v, t as w } from "./index-DrGzHhEt.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-dev.55.
|
|
3
|
+
"version": "6.4.0-dev.55.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-dev.55.
|
|
8
|
-
"@das-fed/utils": "6.4.0-dev.55.
|
|
9
|
-
"@das-fed/web": "6.4.0-dev.55.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-dev.55.
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.55.23",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.55.23",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.55.23",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.55.23",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"vue-router": "^4.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@das-fed/cli": "6.4.0-dev.55.
|
|
21
|
+
"@das-fed/cli": "6.4.0-dev.55.23",
|
|
22
22
|
"@types/lodash": "^4.14.194",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.0",
|
|
@@ -3,7 +3,7 @@ import { DasWebLayout as gn, DasWebNav as kn, DasWebMenu as Bn, DasWebTabs as Qn
|
|
|
3
3
|
import { DasChangePwdRef as Gn, DasChangePwd as Un } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
4
4
|
import { DasChangeEnterprises as Jn } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
5
5
|
import { getSubApps as J, getTabInfo as XA, getPersonalInfo as cf, getTenantInfo as Pe, getProjectInfo as jA, getToken as sf, getUserInfo as o9, getMenus as of } from "@das-fed/utils/common-info";
|
|
6
|
-
import { t as Q, i18n as
|
|
6
|
+
import { t as Q, i18n as I, setI18nRule as Yn } from "@das-fed/web/packages/i18n/index";
|
|
7
7
|
import { pureImageSrc as yf } from "@das-fed/utils/pure-image-src";
|
|
8
8
|
import { DasNotification as Df } from "@das-fed/ui/packages/components/notification/index";
|
|
9
9
|
import { flatTree as VA, filterTreeArray as Fn, isEmpty as hn, treeFind as ye, setBrowseTitle as Sn, updateFavIcon as Kn, dateFormat as Cn, runPromiseByQueue as _n, objEqual as hf, setShowWatermark as Sf, setShowLayout as Kf, getUrlParams as $n, withToken as Av } from "@das-fed/utils/common-tools";
|
|
@@ -289,19 +289,19 @@ const Ev = nv.get("watermark"), wv = /* @__PURE__ */ cA({
|
|
|
289
289
|
if (f.value = s, !!((b = f.value) != null && b.pageSwith)) {
|
|
290
290
|
P.value = [];
|
|
291
291
|
const { name: o, phone: N } = await av();
|
|
292
|
-
let
|
|
293
|
-
if ((i = f.value) != null && i.nameSwith && o && (P.value.push(o),
|
|
292
|
+
let W = "";
|
|
293
|
+
if ((i = f.value) != null && i.nameSwith && o && (P.value.push(o), W = W + `${o} `), (p = f.value) != null && p.phoneSwith && N) {
|
|
294
294
|
const B = N.slice(-4);
|
|
295
|
-
P.value.push(B),
|
|
295
|
+
P.value.push(B), W = W + `${B} `;
|
|
296
296
|
}
|
|
297
297
|
if ((D = f.value) != null && D.textSwith && ((T = f.value) != null && T.text)) {
|
|
298
298
|
P.value.push(f.value.text);
|
|
299
299
|
const B = f.value.text.replaceAll(`
|
|
300
300
|
`, "<br/>");
|
|
301
|
-
|
|
301
|
+
W = W + `${B}`;
|
|
302
302
|
}
|
|
303
303
|
P.value.length && (P.value = P.value.join(" ").split(`
|
|
304
|
-
`)), d.color = (E = f.value) != null && E.textColor ? f.value.textColor : "rgba(0,0,0,.15)", d.fontSize = (l = f.value) != null && l.textSize ? parseInt(f.value.textSize) : 16, z(
|
|
304
|
+
`)), d.color = (E = f.value) != null && E.textColor ? f.value.textColor : "rgba(0,0,0,.15)", d.fontSize = (l = f.value) != null && l.textSize ? parseInt(f.value.textSize) : 16, z(W, d.fontSize);
|
|
305
305
|
}
|
|
306
306
|
return t.value = !1, s;
|
|
307
307
|
};
|
|
@@ -1446,7 +1446,7 @@ const Zf = (e, A = "") => {
|
|
|
1446
1446
|
openDialog: u
|
|
1447
1447
|
}), (X, b) => (k(), aA("div", Ot, [
|
|
1448
1448
|
M(a(sv), {
|
|
1449
|
-
title: a(
|
|
1449
|
+
title: a(I)("主题设置").value,
|
|
1450
1450
|
modelValue: f.value,
|
|
1451
1451
|
"onUpdate:modelValue": b[13] || (b[13] = (i) => f.value = i),
|
|
1452
1452
|
"body-style": { padding: 0 },
|
|
@@ -1461,7 +1461,7 @@ const Zf = (e, A = "") => {
|
|
|
1461
1461
|
}, {
|
|
1462
1462
|
default: w(() => [
|
|
1463
1463
|
nA(
|
|
1464
|
-
U(a(
|
|
1464
|
+
U(a(I)("取消").value),
|
|
1465
1465
|
1
|
|
1466
1466
|
/* TEXT */
|
|
1467
1467
|
)
|
|
@@ -1477,7 +1477,7 @@ const Zf = (e, A = "") => {
|
|
|
1477
1477
|
}, {
|
|
1478
1478
|
default: w(() => [
|
|
1479
1479
|
nA(
|
|
1480
|
-
U(a(
|
|
1480
|
+
U(a(I)("确定").value),
|
|
1481
1481
|
1
|
|
1482
1482
|
/* TEXT */
|
|
1483
1483
|
)
|
|
@@ -1493,7 +1493,7 @@ const Zf = (e, A = "") => {
|
|
|
1493
1493
|
Z(
|
|
1494
1494
|
"p",
|
|
1495
1495
|
xt,
|
|
1496
|
-
U(a(
|
|
1496
|
+
U(a(I)("侧边菜单栏").value),
|
|
1497
1497
|
1
|
|
1498
1498
|
/* TEXT */
|
|
1499
1499
|
),
|
|
@@ -1514,7 +1514,7 @@ const Zf = (e, A = "") => {
|
|
|
1514
1514
|
}, {
|
|
1515
1515
|
default: w(() => [
|
|
1516
1516
|
nA(
|
|
1517
|
-
U(a(
|
|
1517
|
+
U(a(I)("弹出式菜单栏").value),
|
|
1518
1518
|
1
|
|
1519
1519
|
/* TEXT */
|
|
1520
1520
|
)
|
|
@@ -1539,7 +1539,7 @@ const Zf = (e, A = "") => {
|
|
|
1539
1539
|
}, {
|
|
1540
1540
|
default: w(() => [
|
|
1541
1541
|
nA(
|
|
1542
|
-
U(a(
|
|
1542
|
+
U(a(I)("内嵌式菜单栏").value),
|
|
1543
1543
|
1
|
|
1544
1544
|
/* TEXT */
|
|
1545
1545
|
)
|
|
@@ -1554,7 +1554,7 @@ const Zf = (e, A = "") => {
|
|
|
1554
1554
|
Z(
|
|
1555
1555
|
"p",
|
|
1556
1556
|
Tt,
|
|
1557
|
-
U(a(
|
|
1557
|
+
U(a(I)("皮肤风格设置").value),
|
|
1558
1558
|
1
|
|
1559
1559
|
/* TEXT */
|
|
1560
1560
|
),
|
|
@@ -1575,7 +1575,7 @@ const Zf = (e, A = "") => {
|
|
|
1575
1575
|
}, {
|
|
1576
1576
|
default: w(() => [
|
|
1577
1577
|
nA(
|
|
1578
|
-
U(a(
|
|
1578
|
+
U(a(I)("默认皮肤").value),
|
|
1579
1579
|
1
|
|
1580
1580
|
/* TEXT */
|
|
1581
1581
|
)
|
|
@@ -1600,7 +1600,7 @@ const Zf = (e, A = "") => {
|
|
|
1600
1600
|
}, {
|
|
1601
1601
|
default: w(() => [
|
|
1602
1602
|
nA(
|
|
1603
|
-
U(a(
|
|
1603
|
+
U(a(I)("科技蓝").value),
|
|
1604
1604
|
1
|
|
1605
1605
|
/* TEXT */
|
|
1606
1606
|
)
|
|
@@ -1627,7 +1627,7 @@ const Zf = (e, A = "") => {
|
|
|
1627
1627
|
}, {
|
|
1628
1628
|
default: w(() => [
|
|
1629
1629
|
nA(
|
|
1630
|
-
U(a(
|
|
1630
|
+
U(a(I)("纯净白").value),
|
|
1631
1631
|
1
|
|
1632
1632
|
/* TEXT */
|
|
1633
1633
|
)
|
|
@@ -1652,7 +1652,7 @@ const Zf = (e, A = "") => {
|
|
|
1652
1652
|
}, {
|
|
1653
1653
|
default: w(() => [
|
|
1654
1654
|
nA(
|
|
1655
|
-
U(a(
|
|
1655
|
+
U(a(I)("深邃蓝").value),
|
|
1656
1656
|
1
|
|
1657
1657
|
/* TEXT */
|
|
1658
1658
|
)
|
|
@@ -1667,7 +1667,7 @@ const Zf = (e, A = "") => {
|
|
|
1667
1667
|
Z(
|
|
1668
1668
|
"p",
|
|
1669
1669
|
gt,
|
|
1670
|
-
U(a(
|
|
1670
|
+
U(a(I)("效果预览").value),
|
|
1671
1671
|
1
|
|
1672
1672
|
/* TEXT */
|
|
1673
1673
|
),
|
|
@@ -1831,7 +1831,7 @@ const Zf = (e, A = "") => {
|
|
|
1831
1831
|
z.value = [...Vv].map((N) => ({
|
|
1832
1832
|
...N,
|
|
1833
1833
|
label: Q(N.label)
|
|
1834
|
-
})), X && X.id !== 0 ? await n("personCenter", "", "/userInfo") || (z.value = z.value.filter((
|
|
1834
|
+
})), X && X.id !== 0 ? await n("personCenter", "", "/userInfo") || (z.value = z.value.filter((W) => W.value !== "1")) : z.value = z.value.filter((N) => N.value !== "1"), y.nav.setUserInfo({ headPicture: E, commandList: z.value }), y.nav.setSearchConfig({
|
|
1835
1835
|
getHistoryList: v,
|
|
1836
1836
|
getSearchList: P
|
|
1837
1837
|
});
|
|
@@ -1902,7 +1902,7 @@ const Zf = (e, A = "") => {
|
|
|
1902
1902
|
PA(
|
|
1903
1903
|
() => e.currentRoute.value,
|
|
1904
1904
|
async (X) => {
|
|
1905
|
-
var E, l, o, N,
|
|
1905
|
+
var E, l, o, N, W, B, Y;
|
|
1906
1906
|
const b = ((E = X.meta) == null ? void 0 : E.showLayout) ?? !0;
|
|
1907
1907
|
let i = ((l = X.query) == null ? void 0 : l.showLayout) ?? !0;
|
|
1908
1908
|
if (i === "false" && (i = !1), !b || !i || X.path === d && hf(X.query, z)) return;
|
|
@@ -1912,7 +1912,7 @@ const Zf = (e, A = "") => {
|
|
|
1912
1912
|
const D = ((o = X.query) == null ? void 0 : o.menu) ?? ((N = XA()) == null ? void 0 : N.currentCode) ?? "";
|
|
1913
1913
|
if (!D) return;
|
|
1914
1914
|
const T = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
1915
|
-
T && JSON.stringify(T) !== "{}" && (v.value = (
|
|
1915
|
+
T && JSON.stringify(T) !== "{}" && (v.value = (W = T[p][D]) != null && W.fontColor ? T[p][D].fontColor : A, P.value = (B = T[p][D]) != null && B.backgroundColor ? T[p][D].backgroundColor : f, r.value = (Y = T[p][D]) != null && Y.backgroundColor ? T[p][D].backgroundColor : n);
|
|
1916
1916
|
}
|
|
1917
1917
|
);
|
|
1918
1918
|
const { deleteApp: t } = vf(), { entryMenu: u } = Mf(), { reloadRoute: H, unloadRoute: c } = qn(), q = (X) => {
|
|
@@ -1926,7 +1926,7 @@ const Zf = (e, A = "") => {
|
|
|
1926
1926
|
}, V = (X) => {
|
|
1927
1927
|
const b = J().currentSubAppCode ?? "";
|
|
1928
1928
|
fA.innerSet = !0;
|
|
1929
|
-
const i = XA(), p = i.tabMap[b], D = p.findIndex((
|
|
1929
|
+
const i = XA(), p = i.tabMap[b], D = p.findIndex((W) => W.code === X.data.code);
|
|
1930
1930
|
if (D === -1) return;
|
|
1931
1931
|
const T = () => {
|
|
1932
1932
|
var Y;
|
|
@@ -1934,28 +1934,28 @@ const Zf = (e, A = "") => {
|
|
|
1934
1934
|
B = { ...B, value: B.code, label: B.name }, t(B), y.nav.removeItem(b);
|
|
1935
1935
|
};
|
|
1936
1936
|
({
|
|
1937
|
-
me: async (
|
|
1937
|
+
me: async (W) => {
|
|
1938
1938
|
if (p.length === 1) {
|
|
1939
1939
|
T();
|
|
1940
1940
|
return;
|
|
1941
1941
|
}
|
|
1942
1942
|
const B = i.currentCode;
|
|
1943
1943
|
let Y = null;
|
|
1944
|
-
B ===
|
|
1944
|
+
B === W.value && (D + 1 === p.length ? p[D - 1] && (Y = p[D - 1]) : p[D + 1] && (Y = p[D + 1])), p.splice(D, 1), x([W]), bA([{ key: `tabMap:${b}`, value: p }]), Y ? q(Y) : bA([{ key: `preTab:${b}`, value: {} }]);
|
|
1945
1945
|
},
|
|
1946
1946
|
all: T,
|
|
1947
|
-
other: async (
|
|
1947
|
+
other: async (W) => {
|
|
1948
1948
|
const B = p[D];
|
|
1949
1949
|
await e.push({
|
|
1950
1950
|
path: `/${B.applicationPath}${B.path}`.replace(/\/\//g, "/"),
|
|
1951
1951
|
query: B.query
|
|
1952
1952
|
}), y.menu.setActiveItem(B.menuId), y.tab.setActiveItem(B.code);
|
|
1953
|
-
const Y = p.filter((dA) => dA.code !==
|
|
1953
|
+
const Y = p.filter((dA) => dA.code !== W.value);
|
|
1954
1954
|
Y.forEach((dA) => y.tab.removeItem(dA.code)), x(Y), bA([{ key: `tabMap:${b}`, value: [B] }]), q(B);
|
|
1955
1955
|
},
|
|
1956
|
-
right: async (
|
|
1956
|
+
right: async (W) => {
|
|
1957
1957
|
const B = i.currentCode;
|
|
1958
|
-
if (B !==
|
|
1958
|
+
if (B !== W.value && p.findIndex((yA) => yA.code === B) > D) {
|
|
1959
1959
|
const yA = p[D];
|
|
1960
1960
|
q(yA);
|
|
1961
1961
|
}
|
|
@@ -2107,13 +2107,13 @@ const Zf = (e, A = "") => {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
return;
|
|
2109
2109
|
}
|
|
2110
|
-
const
|
|
2110
|
+
const W = E || q;
|
|
2111
2111
|
if (!l && V) {
|
|
2112
2112
|
await e.push({
|
|
2113
2113
|
path: V,
|
|
2114
2114
|
query: {
|
|
2115
2115
|
...X.query,
|
|
2116
|
-
app:
|
|
2116
|
+
app: W.code
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
return;
|
|
@@ -2122,8 +2122,8 @@ const Zf = (e, A = "") => {
|
|
|
2122
2122
|
(Vf = J().subAppList) == null || Vf.forEach((AA) => {
|
|
2123
2123
|
const vA = { ...AA, value: AA.code, label: AA.name };
|
|
2124
2124
|
y.nav.appendItem(vA);
|
|
2125
|
-
}), y.nav.setActiveItem(
|
|
2126
|
-
const rA = XA().tabMap[
|
|
2125
|
+
}), y.nav.setActiveItem(W.code), y.menu.setItems(T);
|
|
2126
|
+
const rA = XA().tabMap[W.code] ?? [];
|
|
2127
2127
|
if (rA.length) {
|
|
2128
2128
|
const AA = rA.map((vA) => ({
|
|
2129
2129
|
...vA,
|
|
@@ -2277,11 +2277,11 @@ const Zf = (e, A = "") => {
|
|
|
2277
2277
|
let c = { ...H }, { showLayout: q = !0 } = c.query;
|
|
2278
2278
|
q === "false" && (q = !1);
|
|
2279
2279
|
const x = async () => {
|
|
2280
|
-
var N,
|
|
2280
|
+
var N, W;
|
|
2281
2281
|
let l = J().appcategorys ?? [];
|
|
2282
2282
|
if (!Array.isArray(l)) return [];
|
|
2283
2283
|
if (c.query) {
|
|
2284
|
-
const B = ((N = c.query) == null ? void 0 : N.project) ?? ((
|
|
2284
|
+
const B = ((N = c.query) == null ? void 0 : N.project) ?? ((W = c.query) == null ? void 0 : W.projectId) ?? "";
|
|
2285
2285
|
if (!l.length || B && B !== jA().id) {
|
|
2286
2286
|
await A();
|
|
2287
2287
|
const { navConfig: Y } = await bn();
|
|
@@ -2322,8 +2322,8 @@ const Zf = (e, A = "") => {
|
|
|
2322
2322
|
const { currentApp: o } = ne(c.query.app);
|
|
2323
2323
|
if (o) {
|
|
2324
2324
|
l = o;
|
|
2325
|
-
const
|
|
2326
|
-
c = {},
|
|
2325
|
+
const W = (XA().preTab ?? {})[l.code];
|
|
2326
|
+
c = {}, W && (c.path = `/${W.applicationPath}${W.path}`.replace(/\/\//g, "/"), c.query = W.query);
|
|
2327
2327
|
}
|
|
2328
2328
|
}
|
|
2329
2329
|
l != null && l.fixed ? (await v.push(l.path), y.menu.setItems([]), y.tab.setItems([]), y.nav.setActiveItem(l.path)) : n({ microApp: l, menuCode: c.query.menu, menuPath: c.path, route: c });
|
|
@@ -5085,7 +5085,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5085
5085
|
else {
|
|
5086
5086
|
const [l, o] = await wd().run({ menuCode: T });
|
|
5087
5087
|
if (l) return;
|
|
5088
|
-
const N = p.find((
|
|
5088
|
+
const N = p.find((W) => W.code === o);
|
|
5089
5089
|
N && A({ microApp: N, menuCode: T });
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
@@ -5200,10 +5200,10 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5200
5200
|
timeLimit: ""
|
|
5201
5201
|
// 处置时限
|
|
5202
5202
|
}), H = O(!1), c = O([]), q = O([]), x = O([
|
|
5203
|
-
{ id: 2, name:
|
|
5204
|
-
{ id: 1, name:
|
|
5205
|
-
{ id: 3, name:
|
|
5206
|
-
]), V = O([]), s = O(""), X = O(
|
|
5203
|
+
{ id: 2, name: I("时").value },
|
|
5204
|
+
{ id: 1, name: I("分").value },
|
|
5205
|
+
{ id: 3, name: I("不限").value }
|
|
5206
|
+
]), V = O([]), s = O(""), X = O(I("告警对象位置").value), b = O(""), i = O([]), p = O("");
|
|
5207
5207
|
O("[]");
|
|
5208
5208
|
const D = O(!0), T = O(!0), E = async (L) => {
|
|
5209
5209
|
const R = { name: "1" };
|
|
@@ -5213,23 +5213,23 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5213
5213
|
}, l = async (L) => {
|
|
5214
5214
|
const R = { name: L || "" }, [j, lA] = await Fd(R).run();
|
|
5215
5215
|
return j ? {} : lA;
|
|
5216
|
-
}, o = O(!0), N = O(!0),
|
|
5216
|
+
}, o = O(!0), N = O(!0), W = O([]), B = async () => {
|
|
5217
5217
|
const [L, R] = await Jd().run({ pageIndex: -1, pageSize: -1 });
|
|
5218
5218
|
if (L) return {};
|
|
5219
|
-
|
|
5219
|
+
W.value = R.data.filter((j) => j.status), W.value.length > 0 && (t.value.workOrderRules = W.value[0].id);
|
|
5220
5220
|
};
|
|
5221
5221
|
PA(z, (L) => {
|
|
5222
5222
|
L || (AA(), vA());
|
|
5223
5223
|
}), PA(
|
|
5224
5224
|
T,
|
|
5225
5225
|
(L) => {
|
|
5226
|
-
L ? (D.value = !0, t.value.customPath =
|
|
5226
|
+
L ? (D.value = !0, t.value.customPath = I("选填").value) : (D.value = !1, t.value.customPath = "");
|
|
5227
5227
|
},
|
|
5228
5228
|
{ immediate: !0 }
|
|
5229
5229
|
), PA(
|
|
5230
5230
|
N,
|
|
5231
5231
|
(L) => {
|
|
5232
|
-
L ? (t.value.reportTheme =
|
|
5232
|
+
L ? (t.value.reportTheme = I("告警对象").value, o.value = !0) : (b.value = I("请输入").value, t.value.reportTheme = "", o.value = !1);
|
|
5233
5233
|
},
|
|
5234
5234
|
{ immediate: !0 }
|
|
5235
5235
|
);
|
|
@@ -5241,13 +5241,13 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5241
5241
|
}, yA = (L, R) => {
|
|
5242
5242
|
R.length > 0 && (s.value = R[0].path), t.value.reportPosition = L, p.value = "";
|
|
5243
5243
|
}, Vf = (L) => {
|
|
5244
|
-
L && (u.value.reportPosition = "", s.value = ""), L ? (t.value.reportPosition = null, s.value = "", X.value =
|
|
5244
|
+
L && (u.value.reportPosition = "", s.value = ""), L ? (t.value.reportPosition = null, s.value = "", X.value = I("告警对象位置").value) : (t.value.reportPosition = null, s.value = "", X.value = I("请选择").value);
|
|
5245
5245
|
}, rA = (L) => {
|
|
5246
|
-
L && (u.value.reportTheme = ""), L ? (t.value.reportTheme = "", b.value =
|
|
5246
|
+
L && (u.value.reportTheme = ""), L ? (t.value.reportTheme = "", b.value = I("告警对象").value) : (t.value.reportTheme = "", b.value = I("请输入").value);
|
|
5247
5247
|
}, AA = () => {
|
|
5248
5248
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
5249
5249
|
}, vA = () => {
|
|
5250
|
-
t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, T.value = !0, N.value = !0, o.value = !0, t.value.reportTheme =
|
|
5250
|
+
t.value.processTypeId = "confirm", t.value.reason = "", t.value.treatmentPlan = "", t.value.remarks = "", t.value.reportPosition = "", t.value.reportTheme = "", t.value.workOrderRules = null, T.value = !0, N.value = !0, o.value = !0, t.value.reportTheme = I("告警对象").value, s.value = "", X.value = I("告警对象位置").value, b.value = I("请输入").value, t.value.eventTypeId = "", t.value.eventLevelId = null, t.value.timeLimit = "", t.value.interval = 1, c.value = [], q.value = [];
|
|
5251
5251
|
}, mA = (L) => {
|
|
5252
5252
|
L == "eventTypeId" && (t.value.eventLevelId = null, De()), L == "eventLevelId" && je(), L == "interval" && (u.value.timeLimit = "", t.value.interval == 3 ? (H.value = !0, t.value.timeLimit = "") : H.value = !1);
|
|
5253
5253
|
}, YA = async () => {
|
|
@@ -5259,7 +5259,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5259
5259
|
eventTypeId: t.value.eventTypeId
|
|
5260
5260
|
}, [R, j] = await Sd(L).run();
|
|
5261
5261
|
if (R) return {};
|
|
5262
|
-
const lA = { 1:
|
|
5262
|
+
const lA = { 1: I("一级").value, 2: I("二级").value, 3: I("三级").value, 4: I("四级").value };
|
|
5263
5263
|
q.value = j.map((lf) => ({
|
|
5264
5264
|
id: `${lf}`,
|
|
5265
5265
|
name: lA[lf] ? lA[lf] : lf
|
|
@@ -5291,12 +5291,12 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5291
5291
|
}, xn = () => {
|
|
5292
5292
|
let L = !0;
|
|
5293
5293
|
if (t.value.processTypeId == "dealwith")
|
|
5294
|
-
t.value.reason.trim() || (L = !1, u.value.reason =
|
|
5294
|
+
t.value.reason.trim() || (L = !1, u.value.reason = I("必填,最多50个字符/汉字").value), t.value.treatmentPlan.trim() || (L = !1, u.value.treatmentPlan = I("必填,最多50个字符/汉字").value);
|
|
5295
5295
|
else if (t.value.processTypeId == "createorder")
|
|
5296
|
-
T.value ? u.value.reportPosition = "" : !t.value.reportPosition && !t.value.customPath ? (L = !1, u.value.reportPosition =
|
|
5296
|
+
T.value ? u.value.reportPosition = "" : !t.value.reportPosition && !t.value.customPath ? (L = !1, u.value.reportPosition = I("必填").value) : u.value.reportPosition = "", N.value || t.value.reportTheme ? u.value.reportTheme = "" : (L = !1, u.value.reportTheme = I("必填,最多20个汉字/字符").value), t.value.workOrderRules ? u.value.workOrderRules = "" : (L = !1, u.value.workOrderRules = I("必填").value);
|
|
5297
5297
|
else if (t.value.processTypeId == "createcontingency") {
|
|
5298
5298
|
const R = /^[1-9][0-9]{0,2}$/;
|
|
5299
|
-
t.value.eventTypeId || (L = !1, u.value.eventTypeId =
|
|
5299
|
+
t.value.eventTypeId || (L = !1, u.value.eventTypeId = I("必选").value), t.value.eventLevelId || (L = !1, u.value.eventLevelId = I("必选").value), t.value.interval != 3 && !R.test(t.value.timeLimit) && (L = !1, u.value.timeLimit = I("必填,请输入1~999之间的正整数").value);
|
|
5300
5300
|
}
|
|
5301
5301
|
return L;
|
|
5302
5302
|
}, on = () => {
|
|
@@ -5347,7 +5347,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5347
5347
|
}, {
|
|
5348
5348
|
header: w(() => [
|
|
5349
5349
|
nA(
|
|
5350
|
-
U(a(
|
|
5350
|
+
U(a(I)("告警处理").value),
|
|
5351
5351
|
1
|
|
5352
5352
|
/* TEXT */
|
|
5353
5353
|
)
|
|
@@ -5360,7 +5360,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5360
5360
|
}, {
|
|
5361
5361
|
default: w(() => [
|
|
5362
5362
|
nA(
|
|
5363
|
-
U(a(
|
|
5363
|
+
U(a(I)("取消").value),
|
|
5364
5364
|
1
|
|
5365
5365
|
/* TEXT */
|
|
5366
5366
|
)
|
|
@@ -5375,7 +5375,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5375
5375
|
}, {
|
|
5376
5376
|
default: w(() => [
|
|
5377
5377
|
nA(
|
|
5378
|
-
U(a(
|
|
5378
|
+
U(a(I)("结束处理").value),
|
|
5379
5379
|
1
|
|
5380
5380
|
/* TEXT */
|
|
5381
5381
|
)
|
|
@@ -5391,7 +5391,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5391
5391
|
}, {
|
|
5392
5392
|
default: w(() => [
|
|
5393
5393
|
nA(
|
|
5394
|
-
U(a(
|
|
5394
|
+
U(a(I)("继续处理").value),
|
|
5395
5395
|
1
|
|
5396
5396
|
/* TEXT */
|
|
5397
5397
|
)
|
|
@@ -5419,7 +5419,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5419
5419
|
}, {
|
|
5420
5420
|
default: w(() => [
|
|
5421
5421
|
M(a(OA), {
|
|
5422
|
-
label: a(
|
|
5422
|
+
label: a(I)("处理类型").value,
|
|
5423
5423
|
required: "",
|
|
5424
5424
|
type: "select",
|
|
5425
5425
|
modelValue: t.value.processTypeId,
|
|
@@ -5435,7 +5435,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5435
5435
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
5436
5436
|
t.value.processTypeId !== "createorder" && t.value.processTypeId !== "createcontingency" ? (k(), h(a(OA), {
|
|
5437
5437
|
key: 0,
|
|
5438
|
-
label: a(
|
|
5438
|
+
label: a(I)("告警原因").value,
|
|
5439
5439
|
required: t.value.processTypeId == "dealwith",
|
|
5440
5440
|
type: "input",
|
|
5441
5441
|
maxlength: "50",
|
|
@@ -5450,7 +5450,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5450
5450
|
}, null, 8, ["label", "required", "modelValue", "error"])) : G("v-if", !0),
|
|
5451
5451
|
t.value.processTypeId !== "createorder" && t.value.processTypeId !== "createcontingency" ? (k(), h(a(OA), {
|
|
5452
5452
|
key: 1,
|
|
5453
|
-
label: a(
|
|
5453
|
+
label: a(I)("处理方案").value,
|
|
5454
5454
|
required: t.value.processTypeId == "dealwith",
|
|
5455
5455
|
type: "input",
|
|
5456
5456
|
maxlength: "50",
|
|
@@ -5465,7 +5465,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5465
5465
|
}, null, 8, ["label", "required", "modelValue", "error"])) : G("v-if", !0),
|
|
5466
5466
|
t.value.processTypeId !== "createorder" && t.value.processTypeId !== "createcontingency" ? (k(), h(a(OA), {
|
|
5467
5467
|
key: 2,
|
|
5468
|
-
label: a(
|
|
5468
|
+
label: a(I)("备注").value,
|
|
5469
5469
|
type: "textarea",
|
|
5470
5470
|
"show-word-limit": "",
|
|
5471
5471
|
autosize: "",
|
|
@@ -5478,7 +5478,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5478
5478
|
}, null, 8, ["label", "modelValue"])) : G("v-if", !0),
|
|
5479
5479
|
t.value.processTypeId == "createorder" ? (k(), h(a(OA), {
|
|
5480
5480
|
key: 3,
|
|
5481
|
-
label: a(
|
|
5481
|
+
label: a(I)("报事位置").value,
|
|
5482
5482
|
required: "",
|
|
5483
5483
|
type: "custom",
|
|
5484
5484
|
error: u.value.reportPosition,
|
|
@@ -5512,7 +5512,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5512
5512
|
ref: "testInput",
|
|
5513
5513
|
modelValue: t.value.customPath,
|
|
5514
5514
|
"onUpdate:modelValue": R[11] || (R[11] = (j) => t.value.customPath = j),
|
|
5515
|
-
placeholder: a(
|
|
5515
|
+
placeholder: a(I)("选填").value,
|
|
5516
5516
|
disabled: D.value,
|
|
5517
5517
|
maxlength: "20"
|
|
5518
5518
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
@@ -5526,7 +5526,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5526
5526
|
}, {
|
|
5527
5527
|
default: w(() => [
|
|
5528
5528
|
nA(
|
|
5529
|
-
U(a(
|
|
5529
|
+
U(a(I)("告警对象位置").value),
|
|
5530
5530
|
1
|
|
5531
5531
|
/* TEXT */
|
|
5532
5532
|
)
|
|
@@ -5541,7 +5541,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5541
5541
|
}, 8, ["label", "error"])) : G("v-if", !0),
|
|
5542
5542
|
t.value.processTypeId == "createorder" ? (k(), h(a(OA), {
|
|
5543
5543
|
key: 4,
|
|
5544
|
-
label: a(
|
|
5544
|
+
label: a(I)("报事主题").value,
|
|
5545
5545
|
required: "",
|
|
5546
5546
|
type: "custom",
|
|
5547
5547
|
error: u.value.reportTheme,
|
|
@@ -5568,7 +5568,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5568
5568
|
}, {
|
|
5569
5569
|
default: w(() => [
|
|
5570
5570
|
nA(
|
|
5571
|
-
U(a(
|
|
5571
|
+
U(a(I)("告警对象").value),
|
|
5572
5572
|
1
|
|
5573
5573
|
/* TEXT */
|
|
5574
5574
|
)
|
|
@@ -5583,14 +5583,14 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5583
5583
|
}, 8, ["label", "error"])) : G("v-if", !0),
|
|
5584
5584
|
t.value.processTypeId == "createorder" ? (k(), h(a(OA), {
|
|
5585
5585
|
key: 5,
|
|
5586
|
-
label: a(
|
|
5586
|
+
label: a(I)("工单规则").value,
|
|
5587
5587
|
required: "",
|
|
5588
5588
|
type: "select",
|
|
5589
5589
|
modelValue: t.value.workOrderRules,
|
|
5590
5590
|
"onUpdate:modelValue": R[17] || (R[17] = (j) => t.value.workOrderRules = j),
|
|
5591
5591
|
error: u.value.workOrderRules,
|
|
5592
5592
|
"onUpdate:error": R[18] || (R[18] = (j) => u.value.workOrderRules = j),
|
|
5593
|
-
options:
|
|
5593
|
+
options: W.value,
|
|
5594
5594
|
col: 1,
|
|
5595
5595
|
optionsLabelKey: "name",
|
|
5596
5596
|
optionsValueKey: "id",
|
|
@@ -5601,7 +5601,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5601
5601
|
G(" createcontingency 生成应急事件 "),
|
|
5602
5602
|
t.value.processTypeId == "createcontingency" ? (k(), h(a(OA), {
|
|
5603
5603
|
key: 6,
|
|
5604
|
-
label: a(
|
|
5604
|
+
label: a(I)("事件类型").value,
|
|
5605
5605
|
required: "",
|
|
5606
5606
|
type: "select",
|
|
5607
5607
|
modelValue: t.value.eventTypeId,
|
|
@@ -5619,7 +5619,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5619
5619
|
}, null, 8, ["label", "modelValue", "error", "options"])) : G("v-if", !0),
|
|
5620
5620
|
t.value.processTypeId == "createcontingency" ? (k(), h(a(OA), {
|
|
5621
5621
|
key: 7,
|
|
5622
|
-
label: a(
|
|
5622
|
+
label: a(I)("事件等级").value,
|
|
5623
5623
|
required: "",
|
|
5624
5624
|
type: "select",
|
|
5625
5625
|
modelValue: t.value.eventLevelId,
|
|
@@ -5637,7 +5637,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5637
5637
|
}, null, 8, ["label", "modelValue", "error", "options"])) : G("v-if", !0),
|
|
5638
5638
|
t.value.processTypeId == "createcontingency" ? (k(), h(a(OA), {
|
|
5639
5639
|
key: 8,
|
|
5640
|
-
label: a(
|
|
5640
|
+
label: a(I)("处置时限").value,
|
|
5641
5641
|
required: "",
|
|
5642
5642
|
type: "input",
|
|
5643
5643
|
maxlength: "3",
|
|
@@ -5666,7 +5666,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5666
5666
|
size: "small",
|
|
5667
5667
|
"get-popup-container": Y,
|
|
5668
5668
|
onChange: R[26] || (R[26] = (j) => mA("interval")),
|
|
5669
|
-
placeholder: a(
|
|
5669
|
+
placeholder: a(I)("请选择").value
|
|
5670
5670
|
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
5671
5671
|
])
|
|
5672
5672
|
]),
|
|
@@ -5735,7 +5735,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5735
5735
|
Z(
|
|
5736
5736
|
"div",
|
|
5737
5737
|
u5,
|
|
5738
|
-
U(a(
|
|
5738
|
+
U(a(I)("新告警").value),
|
|
5739
5739
|
1
|
|
5740
5740
|
/* TEXT */
|
|
5741
5741
|
)
|
|
@@ -5756,7 +5756,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5756
5756
|
Z(
|
|
5757
5757
|
"div",
|
|
5758
5758
|
a5,
|
|
5759
|
-
U(a(
|
|
5759
|
+
U(a(I)("告警等级:").value),
|
|
5760
5760
|
1
|
|
5761
5761
|
/* TEXT */
|
|
5762
5762
|
),
|
|
@@ -5775,7 +5775,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5775
5775
|
Z(
|
|
5776
5776
|
"div",
|
|
5777
5777
|
i5,
|
|
5778
|
-
U(a(
|
|
5778
|
+
U(a(I)("告警对象:").value),
|
|
5779
5779
|
1
|
|
5780
5780
|
/* TEXT */
|
|
5781
5781
|
),
|
|
@@ -5791,7 +5791,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5791
5791
|
Z(
|
|
5792
5792
|
"div",
|
|
5793
5793
|
m5,
|
|
5794
|
-
U(a(
|
|
5794
|
+
U(a(I)("告警内容:").value),
|
|
5795
5795
|
1
|
|
5796
5796
|
/* TEXT */
|
|
5797
5797
|
),
|
|
@@ -5813,7 +5813,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5813
5813
|
}, {
|
|
5814
5814
|
default: w(() => [
|
|
5815
5815
|
nA(
|
|
5816
|
-
U(a(
|
|
5816
|
+
U(a(I)("设备详情").value),
|
|
5817
5817
|
1
|
|
5818
5818
|
/* TEXT */
|
|
5819
5819
|
)
|
|
@@ -5830,7 +5830,7 @@ const Ed = QA(`/api/tool/event-bus/${kf}/`), Ff = Ed.post("/publish"), wd = te.g
|
|
|
5830
5830
|
}, {
|
|
5831
5831
|
default: w(() => [
|
|
5832
5832
|
nA(
|
|
5833
|
-
U(a(
|
|
5833
|
+
U(a(I)("处理").value),
|
|
5834
5834
|
1
|
|
5835
5835
|
/* TEXT */
|
|
5836
5836
|
)
|
|
@@ -5885,7 +5885,7 @@ const R5 = () => {
|
|
|
5885
5885
|
y9(l.equipmentCode, l.equipmentPanelCode);
|
|
5886
5886
|
}, { handleAlarmVue: q } = r5(f, v), x = async () => {
|
|
5887
5887
|
var N;
|
|
5888
|
-
const o = (((N = J().appcategorys) == null ? void 0 : N.map((
|
|
5888
|
+
const o = (((N = J().appcategorys) == null ? void 0 : N.map((W) => W.apps).flat()) ?? []).find((W) => W.code === "alarm");
|
|
5889
5889
|
o && H({ microApp: o, menuPath: `/${o.routeUrl}/realTimeAlarm` });
|
|
5890
5890
|
}, V = [], s = (l) => {
|
|
5891
5891
|
if (V.push(l), P.value.length < 2) {
|
|
@@ -5898,7 +5898,7 @@ const R5 = () => {
|
|
|
5898
5898
|
Df.open({
|
|
5899
5899
|
key: o,
|
|
5900
5900
|
class: "alarm-notify",
|
|
5901
|
-
message:
|
|
5901
|
+
message: I("新告警").value,
|
|
5902
5902
|
placement: "bottomRight",
|
|
5903
5903
|
description: tA(l5, {
|
|
5904
5904
|
msgItem: l,
|
|
@@ -5912,7 +5912,7 @@ const R5 = () => {
|
|
|
5912
5912
|
},
|
|
5913
5913
|
onClose: () => {
|
|
5914
5914
|
setTimeout(() => {
|
|
5915
|
-
const N = P.value.findIndex((
|
|
5915
|
+
const N = P.value.findIndex((W) => W == o);
|
|
5916
5916
|
if (N >= 0 && P.value.splice(N, 1), P.value.length < 2 && V.length) {
|
|
5917
5917
|
X(V[0]), V.shift();
|
|
5918
5918
|
return;
|
|
@@ -5961,19 +5961,17 @@ const R5 = () => {
|
|
|
5961
5961
|
});
|
|
5962
5962
|
if (l || !o || !o.length) return;
|
|
5963
5963
|
let N = !1;
|
|
5964
|
-
o.forEach((
|
|
5965
|
-
|
|
5966
|
-
B.code == "alarm.realTimeAlarm.handle" ? r.value = !0 : r.value = !1;
|
|
5967
|
-
}) : r.value = !1);
|
|
5964
|
+
o.forEach((W) => {
|
|
5965
|
+
(W.code === "alarm.realTimeAlarm" || W.originalCode === "alarm.realTimeAlarm") && (N = !0, W.children && W.children.length ? r.value = W.children.findIndex((B) => B.code == "alarm.realTimeAlarm.handle") >= 0 : r.value = !1);
|
|
5968
5966
|
}), N && (e.value = new be({
|
|
5969
5967
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
5970
5968
|
reconnectWhenClose: !0,
|
|
5971
5969
|
opened: () => {
|
|
5972
|
-
const
|
|
5973
|
-
|
|
5970
|
+
const W = jA().id;
|
|
5971
|
+
W && e.value.send(W);
|
|
5974
5972
|
},
|
|
5975
|
-
message: async (
|
|
5976
|
-
HA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage:
|
|
5973
|
+
message: async (W) => {
|
|
5974
|
+
HA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: W }), window.self === window.top && (W.messageType === "ADD" && (A.value = A.value + 1, W.coverId || s(W)), W.messageType === "DELETE" && (A.value = A.value - 1, t.value.playId == W.recordId && p()));
|
|
5977
5975
|
}
|
|
5978
5976
|
}));
|
|
5979
5977
|
}
|
|
@@ -6173,9 +6171,9 @@ const R5 = () => {
|
|
|
6173
6171
|
个人中心: { "zh-CN": "个人中心", en: "Personal Center", _appCode: "framework" },
|
|
6174
6172
|
修改密码: { "zh-CN": "修改密码", en: "Change Password", _appCode: "framework" },
|
|
6175
6173
|
退出登录: { "zh-CN": "退出登录", en: "Logout", _appCode: "framework" },
|
|
6176
|
-
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm
|
|
6177
|
-
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm
|
|
6178
|
-
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm
|
|
6174
|
+
"告警等级:": { "zh-CN": "告警等级:", en: "Alarm Level:", _appCode: "framework" },
|
|
6175
|
+
"告警对象:": { "zh-CN": "告警对象:", en: "Alarm Object:", _appCode: "framework" },
|
|
6176
|
+
"告警内容:": { "zh-CN": "告警内容:", en: "Alarm Content:", _appCode: "framework" },
|
|
6179
6177
|
"必填,最多50个字符/汉字": {
|
|
6180
6178
|
"zh-CN": "必填,最多50个字符/汉字",
|
|
6181
6179
|
en: "Required, up to 50 characters/chinese characters",
|
|
@@ -6227,11 +6225,11 @@ const T5 = [
|
|
|
6227
6225
|
},
|
|
6228
6226
|
{
|
|
6229
6227
|
path: qA,
|
|
6230
|
-
component: () => import("./index-
|
|
6228
|
+
component: () => import("./index-CoKyMrhP.js")
|
|
6231
6229
|
},
|
|
6232
6230
|
{
|
|
6233
6231
|
path: I9,
|
|
6234
|
-
component: () => import("./index-
|
|
6232
|
+
component: () => import("./index-BUkGEox3.js")
|
|
6235
6233
|
}
|
|
6236
6234
|
], lu = {
|
|
6237
6235
|
routes: T5,
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-
|
|
9
|
+
import { u as L, p as q, a as u, c as f, b as B, l as P, d as K } from "./index-BHJWJR96.js";
|
|
10
10
|
const M = "v1", N = E(`/api/justauth/client/${M}`), O = N.get("/visitor/kingdee/auth/user/auth_code"), Z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(V) {
|
|
Binary file
|
package/index-BWVBjNaV.js.gz
DELETED
|
Binary file
|
|
Binary file
|