@yuku123/z-cognition-component 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -8,7 +8,7 @@ function g({ blob: o }) {
|
|
|
8
8
|
let r = !1;
|
|
9
9
|
return n("rendering"), a(""), (async () => {
|
|
10
10
|
try {
|
|
11
|
-
const { renderAsync: t } = await import("./docx-preview-
|
|
11
|
+
const { renderAsync: t } = await import("./docx-preview-B5nQuTwk.js");
|
|
12
12
|
if (r || !e.current)
|
|
13
13
|
return;
|
|
14
14
|
await t(o, e.current, void 0, {
|
|
@@ -8,7 +8,7 @@ function g({ blob: a }) {
|
|
|
8
8
|
let t = !1, r = null;
|
|
9
9
|
return n("rendering"), o(""), (async () => {
|
|
10
10
|
try {
|
|
11
|
-
const s = await a.arrayBuffer(), { init: p } = await import("./pptx-preview.es-
|
|
11
|
+
const s = await a.arrayBuffer(), { init: p } = await import("./pptx-preview.es-AUrdYKu3.js");
|
|
12
12
|
if (t || !e.current)
|
|
13
13
|
return;
|
|
14
14
|
const l = Math.min(Math.max(e.current.clientWidth - 28, 560), 1180);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o, useEffect as w, useMemo as $ } from "react";
|
|
3
|
-
import { u as G,
|
|
4
|
-
import { T as
|
|
5
|
-
import { g as
|
|
6
|
-
import { a as
|
|
3
|
+
import { u as G, I as d, i as F, t as _ } from "./embed-DwLg9RDW.js";
|
|
4
|
+
import { T as U } from "./index-BGB6NawZ.js";
|
|
5
|
+
import { g as j, p as H, m as x } from "./message-GF-w8HuR.js";
|
|
6
|
+
import { a as X } from "./format-UGmYKemG.js";
|
|
7
|
+
import { u as J } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
7
8
|
const W = "brain:message-changed";
|
|
8
9
|
function V() {
|
|
9
10
|
window.dispatchEvent(new Event(W));
|
|
10
11
|
}
|
|
11
12
|
const Y = [/^(.+?)\s*提交权限申请/, /^申请人\s*(.+?)\s*的权限申请/], L = "待审批:", Z = 20;
|
|
12
13
|
function q(i) {
|
|
13
|
-
var h,
|
|
14
|
+
var h, s;
|
|
14
15
|
const a = (i.applicantName || "").trim();
|
|
15
16
|
if (a)
|
|
16
17
|
return a;
|
|
@@ -18,7 +19,7 @@ function q(i) {
|
|
|
18
19
|
if (!c)
|
|
19
20
|
return "";
|
|
20
21
|
for (const m of Y) {
|
|
21
|
-
const l = ((
|
|
22
|
+
const l = ((s = (h = m.exec(c)) == null ? void 0 : h[1]) == null ? void 0 : s.trim()) ?? "";
|
|
22
23
|
if (l && l.length <= Z)
|
|
23
24
|
return l;
|
|
24
25
|
}
|
|
@@ -34,8 +35,8 @@ function B(i) {
|
|
|
34
35
|
const h = a.lastIndexOf(L);
|
|
35
36
|
if (h < 0)
|
|
36
37
|
return a;
|
|
37
|
-
const
|
|
38
|
-
return a.slice(
|
|
38
|
+
const s = h + L.length;
|
|
39
|
+
return a.slice(s).trimStart().startsWith(c) ? a : `${a.slice(0, s)}${c} ${a.slice(s)}`;
|
|
39
40
|
}
|
|
40
41
|
const y = 20, K = {
|
|
41
42
|
APPROVAL_CREATED: { label: "待审批", tone: "amber", icon: "clock" },
|
|
@@ -56,7 +57,7 @@ function Q(i) {
|
|
|
56
57
|
}
|
|
57
58
|
const O = (i) => i instanceof Error ? i.message : "请稍后重试";
|
|
58
59
|
function se() {
|
|
59
|
-
const i =
|
|
60
|
+
const i = J(), { reload: a } = G(), [c, h] = o("all"), [s, m] = o(1), [l, v] = o({
|
|
60
61
|
records: [],
|
|
61
62
|
total: 0,
|
|
62
63
|
current: 1,
|
|
@@ -64,8 +65,8 @@ function se() {
|
|
|
64
65
|
}), [P, b] = o(0), [E, k] = o(!0), [T, R] = o(""), [z, f] = o(0), [g, C] = o(!1);
|
|
65
66
|
w(() => {
|
|
66
67
|
let e = !0;
|
|
67
|
-
return
|
|
68
|
-
e && b(
|
|
68
|
+
return j().then((r) => {
|
|
69
|
+
e && b(r || 0);
|
|
69
70
|
}).catch(() => {
|
|
70
71
|
e && b(0);
|
|
71
72
|
}), () => {
|
|
@@ -76,9 +77,9 @@ function se() {
|
|
|
76
77
|
return (async () => {
|
|
77
78
|
k(!0), R("");
|
|
78
79
|
try {
|
|
79
|
-
const u = await
|
|
80
|
+
const u = await H({
|
|
80
81
|
view: c,
|
|
81
|
-
current:
|
|
82
|
+
current: s,
|
|
82
83
|
size: y
|
|
83
84
|
});
|
|
84
85
|
e && v(u);
|
|
@@ -90,11 +91,11 @@ function se() {
|
|
|
90
91
|
})(), () => {
|
|
91
92
|
e = !1;
|
|
92
93
|
};
|
|
93
|
-
}, [c,
|
|
94
|
-
const N = Math.max(1, Math.ceil(l.total / y)), p = Math.min(
|
|
95
|
-
if (e.msgType === "APPROVAL_APPROVED" && (a(),
|
|
94
|
+
}, [c, s, z]);
|
|
95
|
+
const N = Math.max(1, Math.ceil(l.total / y)), p = Math.min(s, N), M = async (e) => {
|
|
96
|
+
if (e.msgType === "APPROVAL_APPROVED" && (a(), F()), !e.read)
|
|
96
97
|
try {
|
|
97
|
-
await x({ ids: [e.id] }), b((
|
|
98
|
+
await x({ ids: [e.id] }), b((r) => Math.max(0, r - 1)), V(), f((r) => r + 1);
|
|
98
99
|
} catch {
|
|
99
100
|
}
|
|
100
101
|
e.bizType === "APPROVAL" && e.bizRef && i(`/approvals?ticketId=${encodeURIComponent(e.bizRef)}`);
|
|
@@ -112,7 +113,7 @@ function se() {
|
|
|
112
113
|
}, A = $(() => l.records, [l.records]);
|
|
113
114
|
return /* @__PURE__ */ n("div", { className: "view message-page pc-page", children: [
|
|
114
115
|
/* @__PURE__ */ t(
|
|
115
|
-
|
|
116
|
+
U,
|
|
116
117
|
{
|
|
117
118
|
ariaLabel: "消息视图",
|
|
118
119
|
items: [
|
|
@@ -195,7 +196,7 @@ function se() {
|
|
|
195
196
|
/* @__PURE__ */ t("th", { style: { width: 72 } })
|
|
196
197
|
] }) }),
|
|
197
198
|
/* @__PURE__ */ t("tbody", { children: A.map((e) => {
|
|
198
|
-
const
|
|
199
|
+
const r = Q(e.msgType), u = !e.read || e.bizType === "APPROVAL" && !!e.bizRef;
|
|
199
200
|
return /* @__PURE__ */ n(
|
|
200
201
|
"tr",
|
|
201
202
|
{
|
|
@@ -219,11 +220,11 @@ function se() {
|
|
|
219
220
|
]
|
|
220
221
|
}
|
|
221
222
|
) }),
|
|
222
|
-
/* @__PURE__ */ t("td", { children: /* @__PURE__ */ n("span", { className: `tag ${
|
|
223
|
-
/* @__PURE__ */ t(d, { name:
|
|
224
|
-
|
|
223
|
+
/* @__PURE__ */ t("td", { children: /* @__PURE__ */ n("span", { className: `tag ${r.tone}`, children: [
|
|
224
|
+
/* @__PURE__ */ t(d, { name: r.icon, size: 10 }),
|
|
225
|
+
r.label
|
|
225
226
|
] }) }),
|
|
226
|
-
/* @__PURE__ */ t("td", { className: "mono-sm", children:
|
|
227
|
+
/* @__PURE__ */ t("td", { className: "mono-sm", children: X(e.createTime) }),
|
|
227
228
|
/* @__PURE__ */ t("td", { onClick: (I) => I.stopPropagation(), children: e.bizType === "APPROVAL" && e.bizRef ? /* @__PURE__ */ t(
|
|
228
229
|
"button",
|
|
229
230
|
{
|
|
@@ -259,7 +260,7 @@ function se() {
|
|
|
259
260
|
children: /* @__PURE__ */ t(d, { name: "chevron-left", size: 12 })
|
|
260
261
|
}
|
|
261
262
|
),
|
|
262
|
-
Array.from({ length: N }, (e,
|
|
263
|
+
Array.from({ length: N }, (e, r) => r + 1).map(
|
|
263
264
|
(e) => /* @__PURE__ */ t(
|
|
264
265
|
"button",
|
|
265
266
|
{
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as p, u as Z, e as j, t as S, g as X } from "./embed-DwLg9RDW.js";
|
|
3
|
+
import { b as q } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
3
4
|
import { useState as r, useEffect as Y, useMemo as Q, useCallback as W } from "react";
|
|
4
|
-
import { l as ee, s as le, r as te, a as ae } from "./message-
|
|
5
|
-
import { f as $ } from "./format-
|
|
5
|
+
import { l as ee, s as le, r as te, a as ae } from "./message-GF-w8HuR.js";
|
|
6
|
+
import { f as $ } from "./format-UGmYKemG.js";
|
|
6
7
|
/* empty css */
|
|
7
8
|
const ne = [
|
|
8
9
|
{ key: "template", label: "消息模板", icon: "message-square" },
|
|
9
10
|
{ key: "log", label: "消息明细", icon: "inbox" }
|
|
10
11
|
];
|
|
11
12
|
function F() {
|
|
12
|
-
const [i, c] =
|
|
13
|
+
const [i, c] = q(), o = i.get("tab") === "log" ? "log" : "template", g = (m) => {
|
|
13
14
|
const v = new URLSearchParams(i);
|
|
14
15
|
m === "template" ? v.delete("tab") : v.set("tab", m), c(v, { replace: !0 });
|
|
15
16
|
};
|
|
@@ -190,7 +191,7 @@ function ce() {
|
|
|
190
191
|
] }),
|
|
191
192
|
/* @__PURE__ */ e("section", { className: "panel admin-list-panel", children: k() }),
|
|
192
193
|
h ? /* @__PURE__ */ e(
|
|
193
|
-
|
|
194
|
+
j,
|
|
194
195
|
{
|
|
195
196
|
icon: "message-square",
|
|
196
197
|
title: h.template ? `编辑「${h.template.tplName}」` : "新建消息模板",
|
|
@@ -324,17 +325,17 @@ const I = 20, K = [
|
|
|
324
325
|
{ value: "", label: "全部状态" },
|
|
325
326
|
{ value: "0", label: "未读" },
|
|
326
327
|
{ value: "1", label: "已读" }
|
|
327
|
-
],
|
|
328
|
+
], B = (i) => {
|
|
328
329
|
var c;
|
|
329
330
|
return ((c = K.find((o) => o.value === i)) == null ? void 0 : c.label) || i;
|
|
330
|
-
}, de = (i) => i instanceof Error ? i.message : "请稍后重试",
|
|
331
|
+
}, de = (i) => i instanceof Error ? i.message : "请稍后重试", J = () => ({
|
|
331
332
|
records: [],
|
|
332
333
|
total: 0,
|
|
333
334
|
current: 1,
|
|
334
335
|
size: I
|
|
335
336
|
});
|
|
336
337
|
function oe() {
|
|
337
|
-
const [i, c] = r(
|
|
338
|
+
const [i, c] = r(J), [o, g] = r(!0), [m, v] = r(""), [T, E] = r(""), [C, L] = r(""), [h, f] = r(""), [n, u] = r(""), [P, R] = r(""), [y, N] = r(1), [O, _] = r(0), [d, A] = r(null), z = W(() => {
|
|
338
339
|
g(!0), v(""), ae({
|
|
339
340
|
recipient: T.trim() || void 0,
|
|
340
341
|
msgType: C || void 0,
|
|
@@ -344,7 +345,7 @@ function oe() {
|
|
|
344
345
|
current: y,
|
|
345
346
|
size: I
|
|
346
347
|
}).then((a) => c(a)).catch((a) => {
|
|
347
|
-
v(de(a)), c(
|
|
348
|
+
v(de(a)), c(J());
|
|
348
349
|
}).finally(() => g(!1));
|
|
349
350
|
}, [T, C, h, n, P, y]);
|
|
350
351
|
Y(() => {
|
|
@@ -381,7 +382,7 @@ function oe() {
|
|
|
381
382
|
/* @__PURE__ */ e("b", { children: a.recipientName || "—" }),
|
|
382
383
|
/* @__PURE__ */ e("span", { className: "mono", children: a.recipientId ?? "—" })
|
|
383
384
|
] }) }),
|
|
384
|
-
/* @__PURE__ */ e("td", { children:
|
|
385
|
+
/* @__PURE__ */ e("td", { children: B(a.msgType) }),
|
|
385
386
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ t("div", { className: "admin-cell", children: [
|
|
386
387
|
/* @__PURE__ */ e("b", { children: a.title }),
|
|
387
388
|
/* @__PURE__ */ e("span", { title: a.content, children: a.content || "—" })
|
|
@@ -517,11 +518,11 @@ function oe() {
|
|
|
517
518
|
] })
|
|
518
519
|
] }),
|
|
519
520
|
d ? /* @__PURE__ */ e(
|
|
520
|
-
|
|
521
|
+
j,
|
|
521
522
|
{
|
|
522
523
|
icon: "inbox",
|
|
523
524
|
title: d.title,
|
|
524
|
-
sub: `${d.recipientName || "—"} · ${
|
|
525
|
+
sub: `${d.recipientName || "—"} · ${B(d.msgType)} · ${$(d.createTime)}`,
|
|
525
526
|
width: 620,
|
|
526
527
|
onClose: () => A(null),
|
|
527
528
|
body: /* @__PURE__ */ t("dl", { className: "kv admin-detail-kv", children: [
|
|
@@ -542,8 +543,8 @@ function oe() {
|
|
|
542
543
|
) : null
|
|
543
544
|
] });
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
-
const { can: i } = Z(), [c] =
|
|
546
|
+
function ve() {
|
|
547
|
+
const { can: i } = Z(), [c] = q(), o = c.get("tab") === "log" ? "log" : "template", g = i("message.view");
|
|
547
548
|
return /* @__PURE__ */ e("div", { className: "view admin-list-page", children: o === "template" ? /* @__PURE__ */ e(ce, {}) : g ? /* @__PURE__ */ e(oe, {}) : /* @__PURE__ */ t(D, { children: [
|
|
548
549
|
/* @__PURE__ */ e("div", { className: "view-bar admin-list-bar", children: /* @__PURE__ */ e(F, {}) }),
|
|
549
550
|
/* @__PURE__ */ e("section", { className: "panel admin-list-panel", children: /* @__PURE__ */ t("div", { className: "empty", children: [
|
|
@@ -554,5 +555,5 @@ function ge() {
|
|
|
554
555
|
] }) });
|
|
555
556
|
}
|
|
556
557
|
export {
|
|
557
|
-
|
|
558
|
+
ve as default
|
|
558
559
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as H, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as Ae, useEffect as _, useMemo as g } from "react";
|
|
3
|
-
import { r as J, I as u } from "./embed-
|
|
3
|
+
import { r as J, I as u } from "./embed-DwLg9RDW.js";
|
|
4
4
|
import { u as Oe } from "./use-split-width-SsLqbGjr.js";
|
|
5
5
|
const Q = "/kb/v1/meta";
|
|
6
6
|
function Pe() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { I as h } from "./embed-
|
|
2
|
+
import { I as h } from "./embed-DwLg9RDW.js";
|
|
3
3
|
import { useState as M, useEffect as S } from "react";
|
|
4
|
-
import { A as L } from "./shared-
|
|
4
|
+
import { A as L } from "./shared-DqeN-Wbb.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function T({ latency: e, stages: a }) {
|
|
7
7
|
const l = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { I as h } from "./embed-
|
|
2
|
+
import { I as h } from "./embed-DwLg9RDW.js";
|
|
3
3
|
import { createPortal as Z } from "react-dom";
|
|
4
4
|
import { u as J } from "./use-escape-key-4SZ4l7av.js";
|
|
5
|
-
import { c as Y, A as Q } from "./shared-
|
|
6
|
-
import { K as O, L as V, M as ee, N as z } from "./ai-
|
|
7
|
-
import { d as G } from "./dayjs.min-
|
|
5
|
+
import { c as Y, A as Q } from "./shared-DqeN-Wbb.js";
|
|
6
|
+
import { K as O, L as V, M as ee, N as z } from "./ai-BcYmZiRo.js";
|
|
7
|
+
import { d as G } from "./dayjs.min-BauDENhn.js";
|
|
8
8
|
import { useState as f, useEffect as F, useCallback as q } from "react";
|
|
9
9
|
/* empty css */
|
|
10
10
|
const R = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as v } from "react/jsx-runtime";
|
|
2
|
-
import { I as h, r as M,
|
|
2
|
+
import { I as h, r as M, C as S } from "./embed-DwLg9RDW.js";
|
|
3
3
|
import { u as P } from "./use-escape-key-4SZ4l7av.js";
|
|
4
|
-
import { f as A } from "./shared-utils-
|
|
4
|
+
import { f as A } from "./shared-utils-DN3zT9P-.js";
|
|
5
5
|
import { createPortal as R } from "react-dom";
|
|
6
|
-
import { c as E, A as C, a as x } from "./shared-
|
|
7
|
-
import { a as z } from "./format-
|
|
6
|
+
import { c as E, A as C, a as x } from "./shared-DqeN-Wbb.js";
|
|
7
|
+
import { a as z } from "./format-UGmYKemG.js";
|
|
8
8
|
import { useState as p, useEffect as w } from "react";
|
|
9
9
|
/* empty css */
|
|
10
10
|
function D(a) {
|
|
@@ -369,7 +369,7 @@ function j({
|
|
|
369
369
|
] });
|
|
370
370
|
}
|
|
371
371
|
const b = 132;
|
|
372
|
-
function
|
|
372
|
+
function W({
|
|
373
373
|
points: a
|
|
374
374
|
}) {
|
|
375
375
|
const l = Math.max(1, ...a.map((r) => r.total)), s = Math.max(1, Math.ceil(a.length / 8));
|
|
@@ -408,7 +408,7 @@ function K({
|
|
|
408
408
|
}) })
|
|
409
409
|
] });
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function K({
|
|
412
412
|
overview: a,
|
|
413
413
|
loading: l,
|
|
414
414
|
error: s,
|
|
@@ -480,7 +480,7 @@ function W({
|
|
|
480
480
|
] })
|
|
481
481
|
] }),
|
|
482
482
|
/* @__PURE__ */ n("div", { className: "grid sys-call-row", children: [
|
|
483
|
-
/* @__PURE__ */ e(
|
|
483
|
+
/* @__PURE__ */ e(W, { points: a.trend }),
|
|
484
484
|
/* @__PURE__ */ e(B, { items: a.methods })
|
|
485
485
|
] }),
|
|
486
486
|
/* @__PURE__ */ e(j, { items: a.recent, onOpen: c })
|
|
@@ -1177,7 +1177,7 @@ function Oe() {
|
|
|
1177
1177
|
] }),
|
|
1178
1178
|
a === "calls" ? /* @__PURE__ */ n(v, { children: [
|
|
1179
1179
|
/* @__PURE__ */ e(
|
|
1180
|
-
|
|
1180
|
+
K,
|
|
1181
1181
|
{
|
|
1182
1182
|
overview: o.overview,
|
|
1183
1183
|
loading: o.loading,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useRef as O, useEffect as I, Fragment as ee, useLayoutEffect as ae } from "react";
|
|
3
|
-
import { T as te } from "./index-
|
|
4
|
-
import { r as K, I as u, t as C, R as ne,
|
|
3
|
+
import { T as te } from "./index-BGB6NawZ.js";
|
|
4
|
+
import { r as K, I as u, t as C, R as ne, e as le } from "./embed-DwLg9RDW.js";
|
|
5
5
|
import { c as U } from "./clipboard-CbytnWlq.js";
|
|
6
|
-
import { f as ie } from "./format-
|
|
6
|
+
import { f as ie } from "./format-UGmYKemG.js";
|
|
7
7
|
const re = "/kb/v1/client/kb", ce = "/kb/v1/client/ontology", se = "/kb/v1/client/ak";
|
|
8
8
|
function oe(t, s, r) {
|
|
9
9
|
return K(`${re}${t}`, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as m, useEffect as O, useMemo as B, useCallback as
|
|
3
|
-
import { A as j } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { T as
|
|
6
|
-
import { R as
|
|
7
|
-
import { b as
|
|
2
|
+
import { useState as m, useEffect as O, useMemo as B, useCallback as x } from "react";
|
|
3
|
+
import { A as j } from "./index-CJSTTgTM.js";
|
|
4
|
+
import { u as K, l as q, j as w, k as F, M as V, n as Z, o as H, I as g, i as J, D as Q, q as W } from "./embed-DwLg9RDW.js";
|
|
5
|
+
import { T as X } from "./index-BGB6NawZ.js";
|
|
6
|
+
import { R as Y, r as ee } from "./member-BUg2QYlE.js";
|
|
7
|
+
import { b as ae } from "./catalog-tree-n4_6K8s6.js";
|
|
8
|
+
import { u as se } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
8
9
|
const ne = new Map(V.map((s) => [s.code, s.icon]));
|
|
9
10
|
function le(s, l) {
|
|
10
11
|
const r = new Map(s.map((t) => [t.code, t.icon])), d = (t) => ({
|
|
@@ -16,7 +17,7 @@ function le(s, l) {
|
|
|
16
17
|
granted: F(l, t.key),
|
|
17
18
|
children: t.children.map(d)
|
|
18
19
|
});
|
|
19
|
-
return
|
|
20
|
+
return ae(s).map(d);
|
|
20
21
|
}
|
|
21
22
|
const $ = 10;
|
|
22
23
|
function te() {
|
|
@@ -27,7 +28,7 @@ function te() {
|
|
|
27
28
|
let i = !0;
|
|
28
29
|
return (async () => {
|
|
29
30
|
v(!0), C("");
|
|
30
|
-
})(),
|
|
31
|
+
})(), q().then((c) => {
|
|
31
32
|
i && d(c ?? []);
|
|
32
33
|
}).catch((c) => {
|
|
33
34
|
i && (d([]), C(c instanceof Error ? c.message : "权限目录加载失败"));
|
|
@@ -42,7 +43,7 @@ function te() {
|
|
|
42
43
|
let i = !0;
|
|
43
44
|
return (async () => {
|
|
44
45
|
L(!0);
|
|
45
|
-
})(),
|
|
46
|
+
})(), w({ current: f, size: $ }).then((c) => {
|
|
46
47
|
if (!i || !c)
|
|
47
48
|
return;
|
|
48
49
|
const p = Math.max(1, Math.ceil(c.total / $));
|
|
@@ -104,7 +105,7 @@ function ie(s) {
|
|
|
104
105
|
N = !1;
|
|
105
106
|
};
|
|
106
107
|
}, [s, C]);
|
|
107
|
-
const P =
|
|
108
|
+
const P = x(() => E((N) => N + 1), []);
|
|
108
109
|
return { domains: l, loading: d, failed: v, reload: P };
|
|
109
110
|
}
|
|
110
111
|
function R({
|
|
@@ -148,8 +149,8 @@ function R({
|
|
|
148
149
|
s.children.length ? /* @__PURE__ */ e("div", { className: "mp-perm-children", children: s.children.map((d) => /* @__PURE__ */ e(R, { node: d, onApply: l }, d.code)) }) : null
|
|
149
150
|
] });
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
-
const s =
|
|
152
|
+
function be() {
|
|
153
|
+
const s = se(), { context: l, loading: r, reload: d } = K(), {
|
|
153
154
|
roles: t,
|
|
154
155
|
tree: v,
|
|
155
156
|
grantedCount: T,
|
|
@@ -165,7 +166,7 @@ function ge() {
|
|
|
165
166
|
setKbPage: f
|
|
166
167
|
} = te(), [h, D] = m("system"), [z, i] = m(
|
|
167
168
|
null
|
|
168
|
-
), [b, c] = m(null), p = ie(h === "domain"), { pending: u, markPending: S } =
|
|
169
|
+
), [b, c] = m(null), p = ie(h === "domain"), { pending: u, markPending: S } = H(h === "domain"), I = Math.max(1, Math.ceil(A / L)), G = () => r || E ? /* @__PURE__ */ e("div", { className: "mp-empty", role: "status", children: "正在读取…" }) : P ? /* @__PURE__ */ n("div", { className: "callout danger", children: [
|
|
169
170
|
/* @__PURE__ */ e(g, { name: "alert-triangle", size: 15 }),
|
|
170
171
|
/* @__PURE__ */ n("div", { className: "ct", children: [
|
|
171
172
|
/* @__PURE__ */ e("b", { children: "权限目录加载失败" }),
|
|
@@ -216,7 +217,7 @@ function ge() {
|
|
|
216
217
|
) }) : /* @__PURE__ */ e("div", { className: "mp-empty", children: "暂未读取到系统权限目录" });
|
|
217
218
|
return /* @__PURE__ */ n("div", { className: "view my-permissions pc-page", children: [
|
|
218
219
|
/* @__PURE__ */ e(
|
|
219
|
-
|
|
220
|
+
X,
|
|
220
221
|
{
|
|
221
222
|
ariaLabel: "权限视图",
|
|
222
223
|
items: [
|
|
@@ -237,7 +238,7 @@ function ge() {
|
|
|
237
238
|
className: "btn sm ghost",
|
|
238
239
|
type: "button",
|
|
239
240
|
onClick: () => {
|
|
240
|
-
d(), p.reload(),
|
|
241
|
+
d(), p.reload(), J();
|
|
241
242
|
},
|
|
242
243
|
disabled: r,
|
|
243
244
|
children: [
|
|
@@ -259,7 +260,7 @@ function ge() {
|
|
|
259
260
|
a.enabled ? null : /* @__PURE__ */ e("span", { className: "tag gray sm", children: "已停用" })
|
|
260
261
|
] }, a.roleCode)) : /* @__PURE__ */ e("span", { className: "mp-empty-inline", children: "未绑定系统角色" }) })
|
|
261
262
|
] }),
|
|
262
|
-
|
|
263
|
+
G()
|
|
263
264
|
] }) }) : h === "kb" ? /* @__PURE__ */ e("section", { className: "panel mp-panel", children: /* @__PURE__ */ n("div", { className: "panel-body tight mp-kb-body", children: [
|
|
264
265
|
M ? /* @__PURE__ */ e("div", { className: "mp-empty", role: "status", children: "正在读取…" }) : y.length ? /* @__PURE__ */ e("div", { className: "mp-list", children: y.map((a) => {
|
|
265
266
|
var o;
|
|
@@ -271,8 +272,8 @@ function ge() {
|
|
|
271
272
|
/* @__PURE__ */ e(
|
|
272
273
|
"span",
|
|
273
274
|
{
|
|
274
|
-
className: `tag sm ${((o =
|
|
275
|
-
children:
|
|
275
|
+
className: `tag sm ${((o = Y[a.role || ""]) == null ? void 0 : o.tag) || "gray"}`,
|
|
276
|
+
children: ee(a.role)
|
|
276
277
|
}
|
|
277
278
|
)
|
|
278
279
|
] }, a.kbId);
|
|
@@ -321,13 +322,13 @@ function ge() {
|
|
|
321
322
|
/* @__PURE__ */ e("p", { children: "网络或权限异常,请稍后点「重新校验」重试。" })
|
|
322
323
|
] })
|
|
323
324
|
] }) : p.domains.length ? /* @__PURE__ */ e("div", { className: "mp-list", children: p.domains.map((a) => {
|
|
324
|
-
const o = a.myRole || "NONE", _ = u[a.domainCode],
|
|
325
|
+
const o = a.myRole || "NONE", _ = u[a.domainCode], U = o === "MANAGE" ? "green" : o === "READ" ? "blue" : "gray";
|
|
325
326
|
return /* @__PURE__ */ n("div", { className: "mp-list-row", children: [
|
|
326
327
|
/* @__PURE__ */ n("div", { className: "mp-list-main", children: [
|
|
327
328
|
/* @__PURE__ */ e("b", { children: a.name }),
|
|
328
329
|
/* @__PURE__ */ e("small", { className: "mono", children: a.domainCode })
|
|
329
330
|
] }),
|
|
330
|
-
/* @__PURE__ */ e("span", { className: `tag sm ${
|
|
331
|
+
/* @__PURE__ */ e("span", { className: `tag sm ${U}`, children: Q[o] }),
|
|
331
332
|
_ ? /* @__PURE__ */ e("span", { className: "tag gray sm", title: `审批单号 ${_}`, children: "待审批" }) : o === "MANAGE" ? null : /* @__PURE__ */ n(
|
|
332
333
|
"button",
|
|
333
334
|
{
|
|
@@ -355,7 +356,7 @@ function ge() {
|
|
|
355
356
|
}
|
|
356
357
|
) : null,
|
|
357
358
|
b ? /* @__PURE__ */ e(
|
|
358
|
-
|
|
359
|
+
W,
|
|
359
360
|
{
|
|
360
361
|
domain: b,
|
|
361
362
|
currentRole: b.myRole || "NONE",
|
|
@@ -368,5 +369,5 @@ function ge() {
|
|
|
368
369
|
] });
|
|
369
370
|
}
|
|
370
371
|
export {
|
|
371
|
-
|
|
372
|
+
be as default
|
|
372
373
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
5
|
-
import "./ontology-scenarios-
|
|
2
|
+
import { an as d, aN as t, am as l, aH as m } from "./embed-DwLg9RDW.js";
|
|
3
|
+
import { u as p } from "./use-domain-access-B3pDp3s5.js";
|
|
4
|
+
import { R as h, S as u } from "./scenario-simple-form-Bw-6n9Kh.js";
|
|
5
|
+
import "./ontology-scenarios-DWYC2yxd.js";
|
|
6
|
+
import { L as n } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
7
|
+
import { B as o } from "./index-CrMcNEAZ.js";
|
|
6
8
|
function g({ scope: s }) {
|
|
7
|
-
const
|
|
9
|
+
const i = s.domains.find((r) => r.domainCode === s.currentCode), c = i ? d(i) : s.currentCode ?? "未选域";
|
|
8
10
|
return /* @__PURE__ */ a("span", { className: "domain-badge", title: "域切换在顶栏右上", children: [
|
|
9
11
|
/* @__PURE__ */ e(t, { className: "domain-badge-icon" }),
|
|
10
|
-
/* @__PURE__ */ e("span", { className: "domain-badge-name", children:
|
|
12
|
+
/* @__PURE__ */ e("span", { className: "domain-badge-name", children: c }),
|
|
11
13
|
/* @__PURE__ */ e("span", { className: "domain-badge-code", children: s.currentCode ?? "—" })
|
|
12
14
|
] });
|
|
13
15
|
}
|
|
@@ -22,9 +24,9 @@ const N = {
|
|
|
22
24
|
edgeTargets: {},
|
|
23
25
|
identityStrategy: "PRESERVE"
|
|
24
26
|
};
|
|
25
|
-
function
|
|
27
|
+
function C() {
|
|
26
28
|
const s = l();
|
|
27
|
-
return
|
|
29
|
+
return p().can("scenario.write") ? /* @__PURE__ */ a("div", { className: "view", children: [
|
|
28
30
|
/* @__PURE__ */ a("div", { className: "page-head osc-page-head", children: [
|
|
29
31
|
/* @__PURE__ */ a("div", { children: [
|
|
30
32
|
/* @__PURE__ */ a("div", { className: "osc-eyebrow", children: [
|
|
@@ -40,19 +42,19 @@ function w() {
|
|
|
40
42
|
] }),
|
|
41
43
|
/* @__PURE__ */ e("p", { className: "sub", children: "默认按纯子图圈选点边,同名直通,提交即生效——只落场景定义与查询白名单,不建空间、不重放数据,查询直读基础空间。" })
|
|
42
44
|
] }),
|
|
43
|
-
/* @__PURE__ */ e("div", { className: "osc-head-actions", children: /* @__PURE__ */ e(
|
|
45
|
+
/* @__PURE__ */ e("div", { className: "osc-head-actions", children: /* @__PURE__ */ e(n, { to: "/ontology/scenarios", children: /* @__PURE__ */ e(o, { children: "← 场景列表" }) }) })
|
|
44
46
|
] }),
|
|
45
47
|
/* @__PURE__ */ e(u, { mode: "ADD", initialDraft: N })
|
|
46
48
|
] }) : /* @__PURE__ */ e("div", { className: "view", children: /* @__PURE__ */ e(
|
|
47
|
-
|
|
49
|
+
h,
|
|
48
50
|
{
|
|
49
51
|
status: "info",
|
|
50
52
|
title: "当前域仅可读",
|
|
51
53
|
subTitle: `${m()};也可切换到有管理权限的域再新建场景。`,
|
|
52
|
-
extra: /* @__PURE__ */ e(
|
|
54
|
+
extra: /* @__PURE__ */ e(n, { to: "/ontology/scenarios", children: /* @__PURE__ */ e(o, { type: "primary", children: "返回场景列表" }) })
|
|
53
55
|
}
|
|
54
56
|
) });
|
|
55
57
|
}
|
|
56
58
|
export {
|
|
57
|
-
|
|
59
|
+
C as default
|
|
58
60
|
};
|