@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
|
@@ -1,105 +1,96 @@
|
|
|
1
|
-
import { jsxs as t, jsx as n, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as p, useRef as ce, useCallback as
|
|
4
|
-
import { D as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { D as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { R as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
+
import * as X from "react";
|
|
3
|
+
import { useState as p, useRef as ce, useCallback as L, useEffect as z, useMemo as W } from "react";
|
|
4
|
+
import { D as an, S as Be } from "./index-CaXylbQR.js";
|
|
5
|
+
import { b as Tn, S as ie } from "./index-bOY1cBol.js";
|
|
6
|
+
import { A as Fe, aH as Qn, an as ze, aM as Wn, ag as Yn, ae as Zn, I as Jn, t as Xe, g as Oe, r as ge, C as Xn, aN as Sn, ac as ea, am as na } from "./embed-DwLg9RDW.js";
|
|
7
|
+
import { T as aa, a as sa, u as ta, b as la, C as ra, S as oa, R as ca, I as ia, E as da, c as ua, d as ha, e as ma, s as pa } from "./use-graph-layers-Dmp7uMHO.js";
|
|
8
|
+
import { i as ga, g as fa, o as sn, d as va, C as ya, c as Na, r as ba, D as Ta, V as Sa, R as Ca, p as wa } from "./ontology-modeling-BT-EuDCs.js";
|
|
9
|
+
import { D as Qe } from "./index-Cy9i4Kx7.js";
|
|
10
|
+
import { S as We, a4 as Me, B as A } from "./index-CrMcNEAZ.js";
|
|
11
|
+
import { T as ue, R as Cn } from "./index-BEjXaDfk.js";
|
|
12
|
+
import { D as U } from "./index-9aQ4BzIK.js";
|
|
13
|
+
import { T as O } from "./index-Bc-Vin3j.js";
|
|
14
|
+
import { A as xe } from "./index-nQSVLWfW.js";
|
|
15
|
+
import { F as he } from "./Table-CDagah-g.js";
|
|
16
|
+
import { I as ae } from "./index-DvWHYX81.js";
|
|
17
|
+
import { S as Ia } from "./index-D3GHtSlM.js";
|
|
18
|
+
import { u as tn } from "./use-domain-access-B3pDp3s5.js";
|
|
19
|
+
import { I as we, _ as Ie, R as wn } from "./SearchOutlined-puH6bCY6.js";
|
|
20
|
+
import { T as F } from "./index-BwVZgt5s.js";
|
|
21
|
+
import { R as en } from "./PlusOutlined-B_dXo_97.js";
|
|
22
|
+
import { L as _e, u as ka, b as Ea } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
23
|
+
import { R as In, a as Ra, s as kn, S as Da, b as xa } from "./scenario-mapping-preview-DByQXh0y.js";
|
|
24
|
+
import { R as Aa, a as ln } from "./TagsOutlined-B4_qkn6-.js";
|
|
25
|
+
import { u as La } from "./use-escape-key-4SZ4l7av.js";
|
|
26
|
+
import { c as hn, f as Pa } from "./format-UGmYKemG.js";
|
|
27
|
+
import { a as $a } from "./LeftOutlined-Cgo6Izj-.js";
|
|
28
|
+
import { R as Ce, M as En, F as De } from "./index-DBlG9uXV.js";
|
|
29
|
+
import { T as Rn } from "./index-Vu6sPBci.js";
|
|
30
|
+
import { R as Oa } from "./RotateRightOutlined-q7zp2e47.js";
|
|
31
|
+
import { R as mn, a as Ma } from "./ThunderboltOutlined-Bf54AaFE.js";
|
|
32
|
+
import { g as Dn, R as Ye, l as za, r as _a, p as Ba, a as Fa, b as Ua, c as Ha, d as Ka, e as Va, f as ja, h as qa, i as Ga, j as Qa, k as Wa, m as Ya } from "./ontology-scenarios-DWYC2yxd.js";
|
|
33
|
+
import { T as He } from "./index-B57Fj7Y0.js";
|
|
34
|
+
import { S as Za } from "./focus-set-h0YtOUB2.js";
|
|
35
|
+
import { P as Ze } from "./index-CyKWCYMK.js";
|
|
36
|
+
import { R as pn } from "./ArrowLeftOutlined-DowsrSUj.js";
|
|
25
37
|
var Ja = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" }, Xa = function(s, a) {
|
|
26
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
27
39
|
ref: a,
|
|
28
40
|
icon: Ja
|
|
29
41
|
}));
|
|
30
|
-
}, xn = /* @__PURE__ */
|
|
42
|
+
}, xn = /* @__PURE__ */ X.forwardRef(Xa);
|
|
31
43
|
process.env.NODE_ENV !== "production" && (xn.displayName = "DeleteOutlined");
|
|
32
44
|
var es = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z" } }] }, name: "alert", theme: "outlined" }, ns = function(s, a) {
|
|
33
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
34
46
|
ref: a,
|
|
35
47
|
icon: es
|
|
36
48
|
}));
|
|
37
|
-
},
|
|
38
|
-
process.env.NODE_ENV !== "production" && (
|
|
49
|
+
}, An = /* @__PURE__ */ X.forwardRef(ns);
|
|
50
|
+
process.env.NODE_ENV !== "production" && (An.displayName = "AlertOutlined");
|
|
39
51
|
var as = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z" } }] }, name: "api", theme: "outlined" }, ss = function(s, a) {
|
|
40
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
41
53
|
ref: a,
|
|
42
54
|
icon: as
|
|
43
55
|
}));
|
|
44
|
-
},
|
|
45
|
-
process.env.NODE_ENV !== "production" && (
|
|
46
|
-
var ts = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "
|
|
47
|
-
return /* @__PURE__ */
|
|
56
|
+
}, Ln = /* @__PURE__ */ X.forwardRef(ss);
|
|
57
|
+
process.env.NODE_ENV !== "production" && (Ln.displayName = "ApiOutlined");
|
|
58
|
+
var ts = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z" } }, { tag: "path", attrs: { d: "M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z" } }, { tag: "path", attrs: { d: "M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z" } }] }, name: "cloud-server", theme: "outlined" }, ls = function(s, a) {
|
|
59
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
48
60
|
ref: a,
|
|
49
61
|
icon: ts
|
|
50
62
|
}));
|
|
51
|
-
},
|
|
52
|
-
process.env.NODE_ENV !== "production" && (an.displayName = "ArrowLeftOutlined");
|
|
53
|
-
var rs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "branches", theme: "outlined" }, os = function(s, a) {
|
|
54
|
-
return /* @__PURE__ */ q.createElement(de, ue({}, s, {
|
|
55
|
-
ref: a,
|
|
56
|
-
icon: rs
|
|
57
|
-
}));
|
|
58
|
-
}, We = /* @__PURE__ */ q.forwardRef(os);
|
|
59
|
-
process.env.NODE_ENV !== "production" && (We.displayName = "BranchesOutlined");
|
|
60
|
-
var cs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z" } }, { tag: "path", attrs: { d: "M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z" } }, { tag: "path", attrs: { d: "M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z" } }] }, name: "cloud-server", theme: "outlined" }, is = function(s, a) {
|
|
61
|
-
return /* @__PURE__ */ q.createElement(de, ue({}, s, {
|
|
62
|
-
ref: a,
|
|
63
|
-
icon: cs
|
|
64
|
-
}));
|
|
65
|
-
}, Pn = /* @__PURE__ */ q.forwardRef(is);
|
|
63
|
+
}, Pn = /* @__PURE__ */ X.forwardRef(ls);
|
|
66
64
|
process.env.NODE_ENV !== "production" && (Pn.displayName = "CloudServerOutlined");
|
|
67
|
-
var
|
|
68
|
-
return /* @__PURE__ */
|
|
65
|
+
var rs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" } }] }, name: "lock", theme: "outlined" }, os = function(s, a) {
|
|
66
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
69
67
|
ref: a,
|
|
70
|
-
icon:
|
|
68
|
+
icon: rs
|
|
71
69
|
}));
|
|
72
|
-
}, qe = /* @__PURE__ */
|
|
70
|
+
}, qe = /* @__PURE__ */ X.forwardRef(os);
|
|
73
71
|
process.env.NODE_ENV !== "production" && (qe.displayName = "LockOutlined");
|
|
74
|
-
var
|
|
75
|
-
return /* @__PURE__ */
|
|
72
|
+
var cs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "more", theme: "outlined" }, is = function(s, a) {
|
|
73
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
76
74
|
ref: a,
|
|
77
|
-
icon:
|
|
75
|
+
icon: cs
|
|
78
76
|
}));
|
|
79
|
-
}, $n = /* @__PURE__ */
|
|
77
|
+
}, $n = /* @__PURE__ */ X.forwardRef(is);
|
|
80
78
|
process.env.NODE_ENV !== "production" && ($n.displayName = "MoreOutlined");
|
|
81
|
-
var
|
|
82
|
-
return /* @__PURE__ */
|
|
79
|
+
var ds = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z" } }] }, name: "share-alt", theme: "outlined" }, us = function(s, a) {
|
|
80
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
83
81
|
ref: a,
|
|
84
|
-
icon:
|
|
82
|
+
icon: ds
|
|
85
83
|
}));
|
|
86
|
-
}, On = /* @__PURE__ */
|
|
84
|
+
}, On = /* @__PURE__ */ X.forwardRef(us);
|
|
87
85
|
process.env.NODE_ENV !== "production" && (On.displayName = "ShareAltOutlined");
|
|
88
|
-
var
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
ref: a,
|
|
91
|
-
icon: fs
|
|
92
|
-
}));
|
|
93
|
-
}, zn = /* @__PURE__ */ q.forwardRef(vs);
|
|
94
|
-
process.env.NODE_ENV !== "production" && (zn.displayName = "StopOutlined");
|
|
95
|
-
var ys = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z" } }] }, name: "tags", theme: "outlined" }, Ns = function(s, a) {
|
|
96
|
-
return /* @__PURE__ */ q.createElement(de, ue({}, s, {
|
|
86
|
+
var hs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z" } }] }, name: "stop", theme: "outlined" }, ms = function(s, a) {
|
|
87
|
+
return /* @__PURE__ */ X.createElement(we, Ie({}, s, {
|
|
97
88
|
ref: a,
|
|
98
|
-
icon:
|
|
89
|
+
icon: hs
|
|
99
90
|
}));
|
|
100
|
-
}, Mn = /* @__PURE__ */
|
|
101
|
-
process.env.NODE_ENV !== "production" && (Mn.displayName = "
|
|
102
|
-
function
|
|
91
|
+
}, Mn = /* @__PURE__ */ X.forwardRef(ms);
|
|
92
|
+
process.env.NODE_ENV !== "production" && (Mn.displayName = "StopOutlined");
|
|
93
|
+
function ps({
|
|
103
94
|
title: e,
|
|
104
95
|
badge: s,
|
|
105
96
|
meta: a,
|
|
@@ -120,24 +111,24 @@ function bs({
|
|
|
120
111
|
/* @__PURE__ */ n("b", { className: "value", children: h.value })
|
|
121
112
|
] }, h.label)) }) : null,
|
|
122
113
|
o,
|
|
123
|
-
c != null && c.length ? /* @__PURE__ */ n(
|
|
114
|
+
c != null && c.length ? /* @__PURE__ */ n(an, { menu: { items: c }, trigger: ["click"], children: /* @__PURE__ */ t("button", { className: "btn ghost xs", type: "button", "aria-haspopup": "menu", children: [
|
|
124
115
|
r,
|
|
125
116
|
/* @__PURE__ */ n(Tn, { style: { fontSize: 10 } })
|
|
126
117
|
] }) }) : null
|
|
127
118
|
] })
|
|
128
119
|
] });
|
|
129
120
|
}
|
|
130
|
-
const
|
|
131
|
-
function
|
|
132
|
-
const [s, a] = p(!0), [l, o] = p(), [c, r] = p(""), [h, u] = p(""), [m, d] = p([]), [b, i] = p(0), [g, C] = p(1), [v, f] = p(!0), y = ce(0), T = s ? 1 : l, k =
|
|
121
|
+
const gs = 10, zn = 3;
|
|
122
|
+
function fs(e = 0) {
|
|
123
|
+
const [s, a] = p(!0), [l, o] = p(), [c, r] = p(""), [h, u] = p(""), [m, d] = p([]), [b, i] = p(0), [g, C] = p(1), [v, f] = p(!0), y = ce(0), T = s ? 1 : l, k = L(
|
|
133
124
|
async (w) => {
|
|
134
125
|
const N = ++y.current;
|
|
135
126
|
f(!0);
|
|
136
127
|
try {
|
|
137
|
-
const E = await
|
|
128
|
+
const E = await ga({
|
|
138
129
|
current: w,
|
|
139
|
-
size:
|
|
140
|
-
sourceType:
|
|
130
|
+
size: gs,
|
|
131
|
+
sourceType: zn,
|
|
141
132
|
status: T,
|
|
142
133
|
keyword: h.trim() || void 0
|
|
143
134
|
});
|
|
@@ -150,11 +141,11 @@ function Ss(e = 0) {
|
|
|
150
141
|
},
|
|
151
142
|
[T, h]
|
|
152
143
|
);
|
|
153
|
-
|
|
144
|
+
z(() => {
|
|
154
145
|
k(1);
|
|
155
146
|
}, [k]);
|
|
156
147
|
const x = ce(e);
|
|
157
|
-
return
|
|
148
|
+
return z(() => {
|
|
158
149
|
x.current !== e && (x.current = e, k(1));
|
|
159
150
|
}, [e, k]), {
|
|
160
151
|
todoOnly: s,
|
|
@@ -172,19 +163,19 @@ function Ss(e = 0) {
|
|
|
172
163
|
load: k
|
|
173
164
|
};
|
|
174
165
|
}
|
|
175
|
-
function
|
|
166
|
+
function J(e) {
|
|
176
167
|
return e && e.replace("T", " ").replace(/\.\d+/, "").replace(/Z$/, "") || "-";
|
|
177
168
|
}
|
|
178
|
-
function
|
|
169
|
+
function rn(e) {
|
|
179
170
|
return e == null || Number.isNaN(e) ? "-" : e < 1e3 ? `${Math.max(0, Math.round(e))} ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)} s` : e < 36e5 ? `${Math.round(e / 6e4)} min` : `${(e / 36e5).toFixed(1)} h`;
|
|
180
171
|
}
|
|
181
|
-
function
|
|
172
|
+
function nn(e) {
|
|
182
173
|
return e == null ? "-" : String(e);
|
|
183
174
|
}
|
|
184
|
-
function
|
|
175
|
+
function on(e) {
|
|
185
176
|
return e === 1 ? "processing" : e === 2 || e === 7 ? "error" : e === 5 ? "success" : e === 6 ? "warning" : "blue";
|
|
186
177
|
}
|
|
187
|
-
function
|
|
178
|
+
function cn(e) {
|
|
188
179
|
return {
|
|
189
180
|
QUEUED: "排队中",
|
|
190
181
|
RUNNING: "执行中",
|
|
@@ -194,22 +185,22 @@ function dn(e) {
|
|
|
194
185
|
CANCELED: "已取消"
|
|
195
186
|
}[e ?? ""] || e || "—";
|
|
196
187
|
}
|
|
197
|
-
function
|
|
188
|
+
function dn(e) {
|
|
198
189
|
return e === "COMPLETED" ? "success" : e === "FAILED" || e === "CANCELED" ? "error" : e === "PAUSED" ? "warning" : "processing";
|
|
199
190
|
}
|
|
200
|
-
function
|
|
191
|
+
function vs(e) {
|
|
201
192
|
return { 1: "待执行", 2: "成功", 3: "失败", 4: "已跳过" }[e ?? 0] || void 0;
|
|
202
193
|
}
|
|
203
|
-
function
|
|
194
|
+
function ys(e) {
|
|
204
195
|
return e === 2 ? "success" : e === 3 ? "error" : e === 4 ? "warning" : "default";
|
|
205
196
|
}
|
|
206
197
|
function Ve(e) {
|
|
207
198
|
return typeof e == "object" && e !== null;
|
|
208
199
|
}
|
|
209
|
-
function
|
|
200
|
+
function Je(e) {
|
|
210
201
|
return Array.isArray(e) ? e.length : 0;
|
|
211
202
|
}
|
|
212
|
-
function
|
|
203
|
+
function Ns(e) {
|
|
213
204
|
if (!e)
|
|
214
205
|
return {};
|
|
215
206
|
try {
|
|
@@ -224,17 +215,17 @@ function Is(e) {
|
|
|
224
215
|
return {};
|
|
225
216
|
}
|
|
226
217
|
}
|
|
227
|
-
function
|
|
218
|
+
function bs(e) {
|
|
228
219
|
if (!Ve(e))
|
|
229
220
|
return;
|
|
230
221
|
const s = Ve(e.source) ? e.source : {}, a = Ve(e.transforms) ? e.transforms : {};
|
|
231
222
|
return {
|
|
232
|
-
types:
|
|
233
|
-
edges:
|
|
234
|
-
relations:
|
|
223
|
+
types: Je(s.types),
|
|
224
|
+
edges: Je(s.edges),
|
|
225
|
+
relations: Je(a.relations)
|
|
235
226
|
};
|
|
236
227
|
}
|
|
237
|
-
const
|
|
228
|
+
const Ts = [
|
|
238
229
|
{ title: "节点", dataIndex: "nodeCode", key: "nodeCode", width: 180 },
|
|
239
230
|
{
|
|
240
231
|
title: "处理",
|
|
@@ -246,7 +237,7 @@ const Es = [
|
|
|
246
237
|
title: "状态",
|
|
247
238
|
key: "status",
|
|
248
239
|
width: 100,
|
|
249
|
-
render: (e, s) => /* @__PURE__ */ n(O, { color:
|
|
240
|
+
render: (e, s) => /* @__PURE__ */ n(O, { color: dn(s.runStatus), children: cn(s.runStatus) })
|
|
250
241
|
},
|
|
251
242
|
{
|
|
252
243
|
title: "尝试",
|
|
@@ -260,14 +251,14 @@ const Es = [
|
|
|
260
251
|
render: (e, s) => s.failureSummary || "—"
|
|
261
252
|
}
|
|
262
253
|
];
|
|
263
|
-
function
|
|
254
|
+
function Ss({
|
|
264
255
|
item: e,
|
|
265
256
|
orderStatus: s,
|
|
266
257
|
onRetry: a
|
|
267
258
|
}) {
|
|
268
|
-
const l =
|
|
259
|
+
const l = Ns(e.afterJson), o = bs(l.definition), c = vs(e.status), r = e.status === 3;
|
|
269
260
|
return /* @__PURE__ */ n(
|
|
270
|
-
|
|
261
|
+
ya,
|
|
271
262
|
{
|
|
272
263
|
size: "small",
|
|
273
264
|
defaultActiveKey: r ? ["item"] : [],
|
|
@@ -280,8 +271,8 @@ function Rs({
|
|
|
280
271
|
e.seqNo ?? "-"
|
|
281
272
|
] }),
|
|
282
273
|
/* @__PURE__ */ n("b", { children: l.scenarioCode || e.targetName || e.code }),
|
|
283
|
-
e.itemType !== void 0 ? /* @__PURE__ */ n(O, { color: "blue", children:
|
|
284
|
-
c ? /* @__PURE__ */ n(O, { color:
|
|
274
|
+
e.itemType !== void 0 ? /* @__PURE__ */ n(O, { color: "blue", children: Na(e.itemType) }) : null,
|
|
275
|
+
c ? /* @__PURE__ */ n(O, { color: ys(e.status), children: c }) : null
|
|
285
276
|
] }),
|
|
286
277
|
children: /* @__PURE__ */ t("div", { className: "osc-scn-order-item-body", children: [
|
|
287
278
|
/* @__PURE__ */ t(U, { size: "small", column: 2, children: [
|
|
@@ -302,7 +293,7 @@ function Rs({
|
|
|
302
293
|
}
|
|
303
294
|
) : null,
|
|
304
295
|
s === 6 && (r || e.status === 4) ? /* @__PURE__ */ n(
|
|
305
|
-
|
|
296
|
+
A,
|
|
306
297
|
{
|
|
307
298
|
style: { marginTop: 8 },
|
|
308
299
|
size: "small",
|
|
@@ -317,7 +308,7 @@ function Rs({
|
|
|
317
308
|
}
|
|
318
309
|
);
|
|
319
310
|
}
|
|
320
|
-
function
|
|
311
|
+
function _n({
|
|
321
312
|
open: e,
|
|
322
313
|
orderCode: s,
|
|
323
314
|
onClose: a,
|
|
@@ -325,74 +316,74 @@ function Bn({
|
|
|
325
316
|
onOpenTasks: o
|
|
326
317
|
}) {
|
|
327
318
|
const { message: c } = Fe.useApp(), [r, h] = p(null), [u, m] = p(!1), [d, b] = p(), [i, g] = p(!1), [C, v] = p(!1), [f, y] = p(""), [T, k] = p(0), x = ce(!1), w = r == null ? void 0 : r.order, N = w == null ? void 0 : w.status, E = w == null ? void 0 : w.code;
|
|
328
|
-
|
|
319
|
+
z(() => {
|
|
329
320
|
x.current = !1;
|
|
330
|
-
}, [s]),
|
|
321
|
+
}, [s]), z(() => {
|
|
331
322
|
if (!e || !s) {
|
|
332
323
|
h(null), b(void 0), v(!1), y("");
|
|
333
324
|
return;
|
|
334
325
|
}
|
|
335
326
|
let R = !0;
|
|
336
|
-
return m(!0),
|
|
327
|
+
return m(!0), fa(s).then((K) => {
|
|
337
328
|
R && (h(K ?? null), m(!1));
|
|
338
329
|
}), () => {
|
|
339
330
|
R = !1;
|
|
340
331
|
};
|
|
341
|
-
}, [e, s, T]),
|
|
332
|
+
}, [e, s, T]), z(() => {
|
|
342
333
|
if (!e || !E || N === void 0 || N < 3) {
|
|
343
334
|
b(void 0);
|
|
344
335
|
return;
|
|
345
336
|
}
|
|
346
337
|
let R = !0;
|
|
347
|
-
const K = N === 3 || N === 4,
|
|
348
|
-
const ee = await
|
|
349
|
-
R && (b(ee), ee && ["COMPLETED", "FAILED", "CANCELED"].includes(ee.runStatus ?? "") && !x.current && (x.current = !0, k((
|
|
338
|
+
const K = N === 3 || N === 4, q = async () => {
|
|
339
|
+
const ee = await va(E);
|
|
340
|
+
R && (b(ee), ee && ["COMPLETED", "FAILED", "CANCELED"].includes(ee.runStatus ?? "") && !x.current && (x.current = !0, k((G) => G + 1)));
|
|
350
341
|
};
|
|
351
|
-
if (
|
|
342
|
+
if (q(), !K)
|
|
352
343
|
return () => {
|
|
353
344
|
R = !1;
|
|
354
345
|
};
|
|
355
|
-
const se = window.setInterval(() => void
|
|
346
|
+
const se = window.setInterval(() => void q(), 3e3);
|
|
356
347
|
return () => {
|
|
357
348
|
R = !1, window.clearInterval(se);
|
|
358
349
|
};
|
|
359
350
|
}, [e, E, N]);
|
|
360
|
-
const D =
|
|
351
|
+
const D = L(() => {
|
|
361
352
|
k((R) => R + 1), l == null || l();
|
|
362
|
-
}, [l]),
|
|
353
|
+
}, [l]), Y = async () => {
|
|
363
354
|
if (!w)
|
|
364
355
|
return;
|
|
365
356
|
g(!0);
|
|
366
|
-
const R = await
|
|
357
|
+
const R = await Sa(w.code);
|
|
367
358
|
g(!1), R !== void 0 && (c.success("审批通过:已自动下发结构变更任务"), D());
|
|
368
359
|
}, H = async () => {
|
|
369
360
|
const R = f.trim();
|
|
370
361
|
if (!w || !R)
|
|
371
362
|
return;
|
|
372
363
|
g(!0);
|
|
373
|
-
const K = await
|
|
364
|
+
const K = await Ta(w.code, R);
|
|
374
365
|
g(!1), K !== void 0 && (v(!1), y(""), c.success("已驳回场景工单"), D());
|
|
375
366
|
}, V = async (R) => {
|
|
376
367
|
g(!0);
|
|
377
|
-
const K = await
|
|
368
|
+
const K = await ba(R);
|
|
378
369
|
g(!1), K !== void 0 && (c.success("重试已下发,不重新审批"), D());
|
|
379
370
|
};
|
|
380
371
|
return /* @__PURE__ */ n(
|
|
381
|
-
|
|
372
|
+
Qe,
|
|
382
373
|
{
|
|
383
374
|
open: e,
|
|
384
375
|
width: 760,
|
|
385
376
|
title: "场景工单",
|
|
386
377
|
onClose: a,
|
|
387
378
|
destroyOnClose: !0,
|
|
388
|
-
extra: /* @__PURE__ */ n(
|
|
379
|
+
extra: /* @__PURE__ */ n(A, { size: "small", onClick: D, disabled: !s, children: "刷新" }),
|
|
389
380
|
children: u ? /* @__PURE__ */ t("div", { className: "osc-page-state", children: [
|
|
390
|
-
/* @__PURE__ */ n(
|
|
391
|
-
/* @__PURE__ */ n(
|
|
381
|
+
/* @__PURE__ */ n(We, {}),
|
|
382
|
+
/* @__PURE__ */ n(ue.Text, { type: "secondary", children: "正在加载工单…" })
|
|
392
383
|
] }) : w ? /* @__PURE__ */ t("div", { className: "osc-scn-order-detail", children: [
|
|
393
384
|
/* @__PURE__ */ t(U, { size: "small", column: 2, bordered: !0, children: [
|
|
394
385
|
/* @__PURE__ */ n(U.Item, { label: "工单标题", span: 2, children: w.title || w.orderNo || w.code }),
|
|
395
|
-
/* @__PURE__ */ n(U.Item, { label: "状态", children: /* @__PURE__ */ n(O, { color:
|
|
386
|
+
/* @__PURE__ */ n(U.Item, { label: "状态", children: /* @__PURE__ */ n(O, { color: on(w.status), children: sn(w.status) }) }),
|
|
396
387
|
/* @__PURE__ */ n(U.Item, { label: "工单号", children: /* @__PURE__ */ n("span", { className: "mono", children: w.orderNo || w.code }) }),
|
|
397
388
|
/* @__PURE__ */ n(U.Item, { label: "场景编码", children: /* @__PURE__ */ n("span", { className: "mono", children: w.sourceRef || "—" }) }),
|
|
398
389
|
/* @__PURE__ */ t(U.Item, { label: "变更项", children: [
|
|
@@ -404,8 +395,8 @@ function Bn({
|
|
|
404
395
|
" → ",
|
|
405
396
|
w.schemaVersionAfter ?? "—"
|
|
406
397
|
] }) }),
|
|
407
|
-
/* @__PURE__ */ n(U.Item, { label: "提交时间", children:
|
|
408
|
-
/* @__PURE__ */ n(U.Item, { label: "生效时间", children:
|
|
398
|
+
/* @__PURE__ */ n(U.Item, { label: "提交时间", children: J(w.createTime) }),
|
|
399
|
+
/* @__PURE__ */ n(U.Item, { label: "生效时间", children: J(w.effectiveTime) }),
|
|
409
400
|
/* @__PURE__ */ n(U.Item, { label: "任务范围", children: /* @__PURE__ */ n("span", { className: "mono", children: w.scopeId || "审批通过后下发" }) })
|
|
410
401
|
] }),
|
|
411
402
|
w.rejectReason ? /* @__PURE__ */ n(
|
|
@@ -424,18 +415,18 @@ function Bn({
|
|
|
424
415
|
")"
|
|
425
416
|
] }),
|
|
426
417
|
/* @__PURE__ */ n("div", { className: "osc-scn-order-items", children: r.items.length ? [...r.items].sort((R, K) => (R.seqNo ?? 0) - (K.seqNo ?? 0)).map((R) => /* @__PURE__ */ n(
|
|
427
|
-
|
|
418
|
+
Ss,
|
|
428
419
|
{
|
|
429
420
|
item: R,
|
|
430
421
|
orderStatus: w.status,
|
|
431
422
|
onRetry: (K) => void V(K)
|
|
432
423
|
},
|
|
433
424
|
R.code
|
|
434
|
-
)) : /* @__PURE__ */ n(
|
|
435
|
-
d ? /* @__PURE__ */ t(
|
|
425
|
+
)) : /* @__PURE__ */ n(Me, { image: Me.PRESENTED_IMAGE_SIMPLE, description: "无变更项" }) }),
|
|
426
|
+
d ? /* @__PURE__ */ t(Z, { children: [
|
|
436
427
|
/* @__PURE__ */ t("div", { className: "osc-scn-order-section-title", children: [
|
|
437
428
|
"调度任务进度",
|
|
438
|
-
/* @__PURE__ */ n(O, { color:
|
|
429
|
+
/* @__PURE__ */ n(O, { color: dn(d.runStatus), children: cn(d.runStatus) }),
|
|
439
430
|
/* @__PURE__ */ t("span", { className: "mono osc-scn-order-progress-count", children: [
|
|
440
431
|
"成功 ",
|
|
441
432
|
d.successCount ?? 0,
|
|
@@ -457,18 +448,18 @@ function Bn({
|
|
|
457
448
|
}
|
|
458
449
|
) : null,
|
|
459
450
|
/* @__PURE__ */ n(
|
|
460
|
-
|
|
451
|
+
he,
|
|
461
452
|
{
|
|
462
453
|
size: "small",
|
|
463
454
|
rowKey: (R) => R.nodeCode || R.targetId || "",
|
|
464
|
-
columns:
|
|
455
|
+
columns: Ts,
|
|
465
456
|
dataSource: d.nodes ?? [],
|
|
466
457
|
pagination: !1,
|
|
467
458
|
locale: { emptyText: "任务已下发,等待节点创建" }
|
|
468
459
|
}
|
|
469
460
|
)
|
|
470
461
|
] }) : null,
|
|
471
|
-
w.status === 1 ? /* @__PURE__ */ n("div", { className: "osc-scn-order-actions", children: C ? /* @__PURE__ */ t(
|
|
462
|
+
w.status === 1 ? /* @__PURE__ */ n("div", { className: "osc-scn-order-actions", children: C ? /* @__PURE__ */ t(Z, { children: [
|
|
472
463
|
/* @__PURE__ */ n(
|
|
473
464
|
ae.TextArea,
|
|
474
465
|
{
|
|
@@ -479,9 +470,9 @@ function Bn({
|
|
|
479
470
|
}
|
|
480
471
|
),
|
|
481
472
|
/* @__PURE__ */ t("div", { className: "row gap-8", children: [
|
|
482
|
-
/* @__PURE__ */ n(
|
|
473
|
+
/* @__PURE__ */ n(A, { onClick: () => v(!1), children: "取消" }),
|
|
483
474
|
/* @__PURE__ */ n(
|
|
484
|
-
|
|
475
|
+
A,
|
|
485
476
|
{
|
|
486
477
|
type: "primary",
|
|
487
478
|
danger: !0,
|
|
@@ -493,15 +484,15 @@ function Bn({
|
|
|
493
484
|
)
|
|
494
485
|
] })
|
|
495
486
|
] }) : /* @__PURE__ */ t("div", { className: "row gap-8", children: [
|
|
496
|
-
/* @__PURE__ */ n(
|
|
497
|
-
/* @__PURE__ */ n(
|
|
487
|
+
/* @__PURE__ */ n(A, { onClick: () => v(!0), children: "驳回" }),
|
|
488
|
+
/* @__PURE__ */ n(A, { type: "primary", loading: i, onClick: () => void Y(), children: "审批通过并下发任务" })
|
|
498
489
|
] }) }) : null,
|
|
499
|
-
w.status >= 3 && o ? /* @__PURE__ */ n("div", { className: "osc-scn-order-actions", children: /* @__PURE__ */ n(
|
|
500
|
-
] }) : /* @__PURE__ */ n(
|
|
490
|
+
w.status >= 3 && o ? /* @__PURE__ */ n("div", { className: "osc-scn-order-actions", children: /* @__PURE__ */ n(A, { onClick: () => o(w.code), children: "查看调度任务" }) }) : null
|
|
491
|
+
] }) : /* @__PURE__ */ n(Me, { description: "工单不存在或加载失败" })
|
|
501
492
|
}
|
|
502
493
|
);
|
|
503
494
|
}
|
|
504
|
-
const
|
|
495
|
+
const Cs = 10, ws = [
|
|
505
496
|
{ value: 1, label: "待审批" },
|
|
506
497
|
{ value: 2, label: "已驳回" },
|
|
507
498
|
{ value: 3, label: "已审批" },
|
|
@@ -510,14 +501,14 @@ const Ds = 10, xs = [
|
|
|
510
501
|
{ value: 6, label: "生效有失败" },
|
|
511
502
|
{ value: 7, label: "执行失败" }
|
|
512
503
|
];
|
|
513
|
-
function
|
|
504
|
+
function Is({
|
|
514
505
|
focusOrderCode: e,
|
|
515
506
|
domainVersion: s = 0,
|
|
516
507
|
onOrderChange: a,
|
|
517
508
|
onOpenTasks: l
|
|
518
509
|
}) {
|
|
519
|
-
const o =
|
|
520
|
-
h !== s && (u(s), r(void 0)),
|
|
510
|
+
const o = fs(s), [c, r] = p(), [h, u] = p(s);
|
|
511
|
+
h !== s && (u(s), r(void 0)), z(() => {
|
|
521
512
|
e && r(e);
|
|
522
513
|
}, [e]);
|
|
523
514
|
const m = (i) => {
|
|
@@ -544,7 +535,7 @@ function Ls({
|
|
|
544
535
|
title: "状态",
|
|
545
536
|
key: "status",
|
|
546
537
|
width: 130,
|
|
547
|
-
render: (i, g) => /* @__PURE__ */ n(O, { color:
|
|
538
|
+
render: (i, g) => /* @__PURE__ */ n(O, { color: on(g.status), children: sn(g.status) })
|
|
548
539
|
},
|
|
549
540
|
{
|
|
550
541
|
title: "变更项",
|
|
@@ -559,20 +550,20 @@ function Ls({
|
|
|
559
550
|
title: "提交时间",
|
|
560
551
|
key: "createTime",
|
|
561
552
|
width: 160,
|
|
562
|
-
render: (i, g) =>
|
|
553
|
+
render: (i, g) => J(g.createTime)
|
|
563
554
|
},
|
|
564
555
|
{
|
|
565
556
|
title: "操作",
|
|
566
557
|
key: "action",
|
|
567
558
|
width: 100,
|
|
568
|
-
render: (i, g) => /* @__PURE__ */ n(
|
|
559
|
+
render: (i, g) => /* @__PURE__ */ n(A, { size: "small", type: "link", onClick: () => m(g.code), children: g.status === 1 ? "审批" : "查看" })
|
|
569
560
|
}
|
|
570
561
|
];
|
|
571
562
|
return /* @__PURE__ */ t("section", { className: "panel osc-scn-order-panel", children: [
|
|
572
563
|
/* @__PURE__ */ t("div", { className: "panel-body", children: [
|
|
573
564
|
/* @__PURE__ */ t("div", { className: "osc-scn-order-toolbar", children: [
|
|
574
565
|
/* @__PURE__ */ n(
|
|
575
|
-
|
|
566
|
+
Ia,
|
|
576
567
|
{
|
|
577
568
|
value: o.todoOnly ? "todo" : "all",
|
|
578
569
|
options: [
|
|
@@ -589,7 +580,7 @@ function Ls({
|
|
|
589
580
|
placeholder: "全部状态",
|
|
590
581
|
style: { width: 140 },
|
|
591
582
|
value: o.status,
|
|
592
|
-
options:
|
|
583
|
+
options: ws,
|
|
593
584
|
onChange: (i) => o.setStatus(i)
|
|
594
585
|
}
|
|
595
586
|
),
|
|
@@ -606,10 +597,10 @@ function Ls({
|
|
|
606
597
|
onSearch: (i) => o.setKeyword(i)
|
|
607
598
|
}
|
|
608
599
|
),
|
|
609
|
-
/* @__PURE__ */ n(Be, { children: /* @__PURE__ */ n(
|
|
600
|
+
/* @__PURE__ */ n(Be, { children: /* @__PURE__ */ n(A, { onClick: () => void o.load(o.current), children: "刷新" }) })
|
|
610
601
|
] }),
|
|
611
602
|
/* @__PURE__ */ n(
|
|
612
|
-
|
|
603
|
+
he,
|
|
613
604
|
{
|
|
614
605
|
rowKey: "code",
|
|
615
606
|
size: "small",
|
|
@@ -626,7 +617,7 @@ function Ls({
|
|
|
626
617
|
},
|
|
627
618
|
pagination: {
|
|
628
619
|
current: o.current,
|
|
629
|
-
pageSize:
|
|
620
|
+
pageSize: Cs,
|
|
630
621
|
total: o.total,
|
|
631
622
|
showSizeChanger: !1,
|
|
632
623
|
showTotal: (i) => `共 ${i} 个工单`,
|
|
@@ -636,7 +627,7 @@ function Ls({
|
|
|
636
627
|
)
|
|
637
628
|
] }),
|
|
638
629
|
/* @__PURE__ */ n(
|
|
639
|
-
|
|
630
|
+
_n,
|
|
640
631
|
{
|
|
641
632
|
open: !!c,
|
|
642
633
|
orderCode: c,
|
|
@@ -649,12 +640,12 @@ function Ls({
|
|
|
649
640
|
)
|
|
650
641
|
] });
|
|
651
642
|
}
|
|
652
|
-
const
|
|
643
|
+
const ks = {
|
|
653
644
|
1: { label: "初始化中", color: "processing" },
|
|
654
645
|
2: { label: "可用", color: "success" },
|
|
655
646
|
3: { label: "已停用", color: "default" },
|
|
656
647
|
4: { label: "已删除", color: "error" }
|
|
657
|
-
},
|
|
648
|
+
}, Es = {
|
|
658
649
|
1: { label: "待同步", color: "default" },
|
|
659
650
|
2: { label: "构建中", color: "processing" },
|
|
660
651
|
3: { label: "已同步", color: "success" },
|
|
@@ -662,58 +653,58 @@ const As = {
|
|
|
662
653
|
5: { label: "结构陈旧", color: "orange" },
|
|
663
654
|
6: { label: "失败", color: "error" },
|
|
664
655
|
7: { label: "已暂停", color: "default" }
|
|
665
|
-
},
|
|
656
|
+
}, Rs = {
|
|
666
657
|
1: "全量重放",
|
|
667
658
|
2: "增量同步",
|
|
668
659
|
3: "定点修复",
|
|
669
660
|
4: "对账"
|
|
670
|
-
},
|
|
661
|
+
}, Ds = {
|
|
671
662
|
1: { label: "排队中", color: "default" },
|
|
672
663
|
2: { label: "运行中", color: "processing" },
|
|
673
664
|
3: { label: "成功", color: "success" },
|
|
674
665
|
4: { label: "部分成功", color: "warning" },
|
|
675
666
|
5: { label: "失败", color: "error" },
|
|
676
667
|
6: { label: "已取消", color: "default" }
|
|
677
|
-
},
|
|
668
|
+
}, xs = {
|
|
678
669
|
1: { label: "待生效", color: "default" },
|
|
679
670
|
2: { label: "生效中", color: "success" },
|
|
680
671
|
3: { label: "已取代", color: "default" },
|
|
681
672
|
4: { label: "已拒绝", color: "error" }
|
|
682
673
|
};
|
|
683
|
-
function
|
|
684
|
-
return e === void 0 ? "-" :
|
|
674
|
+
function As(e) {
|
|
675
|
+
return e === void 0 ? "-" : Rs[e] ?? `类型${e}`;
|
|
685
676
|
}
|
|
686
|
-
function
|
|
677
|
+
function Ls(e, s) {
|
|
687
678
|
return e === 1 || s === 2;
|
|
688
679
|
}
|
|
689
|
-
function
|
|
680
|
+
function Ps(e) {
|
|
690
681
|
return e === 1 || e === 2;
|
|
691
682
|
}
|
|
692
683
|
function Ue(e) {
|
|
693
684
|
return e.mode === 1;
|
|
694
685
|
}
|
|
695
|
-
function
|
|
696
|
-
const s =
|
|
686
|
+
function Bn({ status: e }) {
|
|
687
|
+
const s = ks[e] ?? { label: `状态${e}`, color: "default" };
|
|
697
688
|
return /* @__PURE__ */ n(O, { color: s.color, children: s.label });
|
|
698
689
|
}
|
|
699
|
-
function
|
|
700
|
-
const s =
|
|
690
|
+
function Fn({ status: e }) {
|
|
691
|
+
const s = Es[e] ?? { label: `状态${e}`, color: "default" };
|
|
701
692
|
return /* @__PURE__ */ n(O, { color: s.color, children: s.label });
|
|
702
693
|
}
|
|
703
|
-
function
|
|
704
|
-
const s =
|
|
694
|
+
function $s({ status: e }) {
|
|
695
|
+
const s = Ds[e] ?? { label: `状态${e}`, color: "default" };
|
|
705
696
|
return /* @__PURE__ */ n(O, { color: s.color, children: s.label });
|
|
706
697
|
}
|
|
707
|
-
function
|
|
708
|
-
const s =
|
|
698
|
+
function Os({ status: e }) {
|
|
699
|
+
const s = xs[e] ?? { label: `状态${e}`, color: "default" };
|
|
709
700
|
return /* @__PURE__ */ n(O, { color: s.color, children: s.label });
|
|
710
701
|
}
|
|
711
|
-
const
|
|
702
|
+
const Ms = [
|
|
712
703
|
{ value: 1, label: "初始化中" },
|
|
713
704
|
{ value: 2, label: "可用" },
|
|
714
705
|
{ value: 3, label: "已停用" },
|
|
715
706
|
{ value: 4, label: "已删除" }
|
|
716
|
-
],
|
|
707
|
+
], zs = [
|
|
717
708
|
{ value: 1, label: "待同步" },
|
|
718
709
|
{ value: 2, label: "构建中" },
|
|
719
710
|
{ value: 3, label: "已同步" },
|
|
@@ -722,7 +713,7 @@ const Hs = [
|
|
|
722
713
|
{ value: 6, label: "失败" },
|
|
723
714
|
{ value: 7, label: "已暂停" }
|
|
724
715
|
];
|
|
725
|
-
function
|
|
716
|
+
function _s({
|
|
726
717
|
state: e,
|
|
727
718
|
scope: s,
|
|
728
719
|
ancestors: a = [],
|
|
@@ -730,14 +721,14 @@ function Vs({
|
|
|
730
721
|
onSelect: o
|
|
731
722
|
}) {
|
|
732
723
|
var w;
|
|
733
|
-
const [c, r] = p(e.keyword), u =
|
|
734
|
-
|
|
724
|
+
const [c, r] = p(e.keyword), u = tn().can("scenario.write") ? void 0 : Qn();
|
|
725
|
+
z(() => {
|
|
735
726
|
r(e.keyword);
|
|
736
727
|
}, [e.keyword]);
|
|
737
728
|
const m = (N) => {
|
|
738
729
|
const E = N.trim();
|
|
739
730
|
E !== e.keyword && e.setKeyword(E);
|
|
740
|
-
}, d = s.currentCode ?
|
|
731
|
+
}, d = s.currentCode ? ze({
|
|
741
732
|
domainCode: s.currentCode,
|
|
742
733
|
name: (w = s.domains.find((N) => N.domainCode === s.currentCode)) == null ? void 0 : w.name
|
|
743
734
|
}) : "未选域", b = new Set(a.map((N) => N.code.trim().toUpperCase())), i = (N) => (N.domainCode ?? "").trim().toUpperCase(), g = e.records.filter((N) => !b.has(i(N))), C = [...a].reverse().map((N) => {
|
|
@@ -753,7 +744,7 @@ function Vs({
|
|
|
753
744
|
);
|
|
754
745
|
}, x = (N, E = !1) => {
|
|
755
746
|
var H, V;
|
|
756
|
-
const D = (H = N.domainCode) == null ? void 0 : H.trim(),
|
|
747
|
+
const D = (H = N.domainCode) == null ? void 0 : H.trim(), Y = D ? ze({
|
|
757
748
|
domainCode: D,
|
|
758
749
|
name: (V = s.domains.find((R) => R.domainCode === D)) == null ? void 0 : V.name
|
|
759
750
|
}) : "";
|
|
@@ -768,18 +759,18 @@ function Vs({
|
|
|
768
759
|
/* @__PURE__ */ n("b", { children: N.name || N.scenarioCode }),
|
|
769
760
|
!E && D && D !== s.currentCode ? (
|
|
770
761
|
// 可分页可见到上级域场景,只给非当前域的卡片标归属并提示只读
|
|
771
|
-
/* @__PURE__ */ t("span", { className: "osc-scn-card-domain", title: `归属${
|
|
762
|
+
/* @__PURE__ */ t("span", { className: "osc-scn-card-domain", title: `归属${Y},仅在该域内可修改`, children: [
|
|
772
763
|
/* @__PURE__ */ n(qe, {}),
|
|
773
764
|
" ",
|
|
774
|
-
|
|
765
|
+
Y
|
|
775
766
|
] })
|
|
776
767
|
) : null,
|
|
777
768
|
N.projectionVersion ? /* @__PURE__ */ t("span", { className: "osc-scn-card-ver mono", children: [
|
|
778
769
|
"v",
|
|
779
770
|
N.projectionVersion
|
|
780
771
|
] }) : null,
|
|
781
|
-
N.status !== void 0 && N.status !== 2 ? /* @__PURE__ */ n(
|
|
782
|
-
Ue(N) || N.syncStatus === void 0 || N.syncStatus === 3 ? null : /* @__PURE__ */ n(
|
|
772
|
+
N.status !== void 0 && N.status !== 2 ? /* @__PURE__ */ n(Bn, { status: N.status }) : null,
|
|
773
|
+
Ue(N) || N.syncStatus === void 0 || N.syncStatus === 3 ? null : /* @__PURE__ */ n(Fn, { status: N.syncStatus })
|
|
783
774
|
] }),
|
|
784
775
|
/* @__PURE__ */ t("span", { className: "osc-scn-card-sub", children: [
|
|
785
776
|
/* @__PURE__ */ t("span", { className: "osc-scn-card-code mono", children: [
|
|
@@ -788,7 +779,7 @@ function Vs({
|
|
|
788
779
|
] }),
|
|
789
780
|
N.tagCount !== void 0 && N.edgeCount !== void 0 ? /* @__PURE__ */ t("span", { className: "osc-scn-card-metrics", children: [
|
|
790
781
|
/* @__PURE__ */ t("span", { className: "osc-scn-metric", title: "对象类型数", children: [
|
|
791
|
-
/* @__PURE__ */ n(
|
|
782
|
+
/* @__PURE__ */ n(Aa, {}),
|
|
792
783
|
N.tagCount
|
|
793
784
|
] }),
|
|
794
785
|
/* @__PURE__ */ t("span", { className: "osc-scn-metric", title: "关系类型数", children: [
|
|
@@ -796,7 +787,7 @@ function Vs({
|
|
|
796
787
|
N.edgeCount
|
|
797
788
|
] }),
|
|
798
789
|
/* @__PURE__ */ t("span", { className: "osc-scn-metric", title: "已发布服务数", children: [
|
|
799
|
-
/* @__PURE__ */ n(
|
|
790
|
+
/* @__PURE__ */ n(Ln, {}),
|
|
800
791
|
N.serviceCount ?? 0
|
|
801
792
|
] })
|
|
802
793
|
] }) : null
|
|
@@ -813,7 +804,7 @@ function Vs({
|
|
|
813
804
|
ae,
|
|
814
805
|
{
|
|
815
806
|
allowClear: !0,
|
|
816
|
-
prefix: /* @__PURE__ */ n(
|
|
807
|
+
prefix: /* @__PURE__ */ n(wn, {}),
|
|
817
808
|
placeholder: "搜索场景名 / 编码,回车确认",
|
|
818
809
|
value: c,
|
|
819
810
|
onChange: (N) => r(N.target.value),
|
|
@@ -828,7 +819,7 @@ function Vs({
|
|
|
828
819
|
allowClear: !0,
|
|
829
820
|
placeholder: "全部生命周期",
|
|
830
821
|
value: e.status,
|
|
831
|
-
options:
|
|
822
|
+
options: Ms,
|
|
832
823
|
onChange: (N) => e.setStatus(N)
|
|
833
824
|
}
|
|
834
825
|
),
|
|
@@ -838,11 +829,11 @@ function Vs({
|
|
|
838
829
|
allowClear: !0,
|
|
839
830
|
placeholder: "全部同步状态",
|
|
840
831
|
value: e.syncStatus,
|
|
841
|
-
options:
|
|
832
|
+
options: zs,
|
|
842
833
|
onChange: (N) => e.setSyncStatus(N)
|
|
843
834
|
}
|
|
844
835
|
),
|
|
845
|
-
/* @__PURE__ */ n("span", { className: "osc-scn-create", children: u ? /* @__PURE__ */ n(F, { title: u, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
836
|
+
/* @__PURE__ */ n("span", { className: "osc-scn-create", children: u ? /* @__PURE__ */ n(F, { title: u, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(A, { type: "primary", icon: /* @__PURE__ */ n(en, {}), disabled: !0, children: "新建" }) }) }) : /* @__PURE__ */ n(_e, { to: "/ontology/scenarios/new", "aria-label": "新建场景", children: /* @__PURE__ */ n(A, { type: "primary", icon: /* @__PURE__ */ n(en, {}), children: "新建" }) }) })
|
|
846
837
|
] }),
|
|
847
838
|
/* @__PURE__ */ t("div", { className: "row between", children: [
|
|
848
839
|
/* @__PURE__ */ t("span", { className: "note", children: [
|
|
@@ -853,11 +844,11 @@ function Vs({
|
|
|
853
844
|
v ? `(含上级 ${v} 个只读)` : ""
|
|
854
845
|
] }),
|
|
855
846
|
/* @__PURE__ */ n(
|
|
856
|
-
|
|
847
|
+
A,
|
|
857
848
|
{
|
|
858
849
|
size: "small",
|
|
859
850
|
type: "text",
|
|
860
|
-
icon: /* @__PURE__ */ n(
|
|
851
|
+
icon: /* @__PURE__ */ n(In, {}),
|
|
861
852
|
loading: e.loading,
|
|
862
853
|
onClick: () => void e.reload(),
|
|
863
854
|
children: "刷新"
|
|
@@ -867,16 +858,16 @@ function Vs({
|
|
|
867
858
|
] }),
|
|
868
859
|
/* @__PURE__ */ t("div", { className: "osc-scn-card-list", children: [
|
|
869
860
|
e.loading && e.records.length === 0 ? /* @__PURE__ */ t("div", { className: "osc-scn-rail-state", children: [
|
|
870
|
-
/* @__PURE__ */ n(
|
|
861
|
+
/* @__PURE__ */ n(We, { size: "small" }),
|
|
871
862
|
/* @__PURE__ */ n("span", { children: "正在加载场景…" })
|
|
872
863
|
] }) : e.failed && e.records.length === 0 ? /* @__PURE__ */ t("div", { className: "osc-scn-rail-state osc-scn-rail-error", children: [
|
|
873
864
|
/* @__PURE__ */ n("b", { children: "场景清单加载失败" }),
|
|
874
865
|
/* @__PURE__ */ n("span", { children: "请稍后重试。" }),
|
|
875
|
-
/* @__PURE__ */ n(
|
|
866
|
+
/* @__PURE__ */ n(A, { size: "small", onClick: () => void e.reload(), children: "重试" })
|
|
876
867
|
] }) : e.records.length === 0 ? /* @__PURE__ */ t("div", { className: "empty", style: { padding: 26 }, children: [
|
|
877
868
|
/* @__PURE__ */ n("b", { children: "没有匹配的场景" }),
|
|
878
869
|
/* @__PURE__ */ n("p", { children: "调整筛选条件,或切到场景归属域查看。" })
|
|
879
|
-
] }) : /* @__PURE__ */ t(
|
|
870
|
+
] }) : /* @__PURE__ */ t(Z, { children: [
|
|
880
871
|
C.map((N) => {
|
|
881
872
|
const E = T(N.key);
|
|
882
873
|
return /* @__PURE__ */ t("section", { className: "osc-scn-sec", children: [
|
|
@@ -914,10 +905,10 @@ function Vs({
|
|
|
914
905
|
] }),
|
|
915
906
|
e.failed && e.records.length > 0 ? /* @__PURE__ */ t("div", { className: "osc-scn-load-error", children: [
|
|
916
907
|
/* @__PURE__ */ n("span", { children: "列表刷新失败,当前显示上次结果。" }),
|
|
917
|
-
/* @__PURE__ */ n(
|
|
908
|
+
/* @__PURE__ */ n(A, { size: "small", type: "link", onClick: () => void e.reload(), children: "重试" })
|
|
918
909
|
] }) : null,
|
|
919
910
|
e.hasMore ? /* @__PURE__ */ t(
|
|
920
|
-
|
|
911
|
+
A,
|
|
921
912
|
{
|
|
922
913
|
size: "small",
|
|
923
914
|
type: "text",
|
|
@@ -934,15 +925,15 @@ function Vs({
|
|
|
934
925
|
] })
|
|
935
926
|
] });
|
|
936
927
|
}
|
|
937
|
-
const
|
|
928
|
+
const Bs = {
|
|
938
929
|
loading: !0,
|
|
939
930
|
graphBound: !0,
|
|
940
931
|
total: void 0,
|
|
941
932
|
byTag: /* @__PURE__ */ new Map()
|
|
942
933
|
};
|
|
943
|
-
function
|
|
944
|
-
const [s, a] = p(
|
|
945
|
-
|
|
934
|
+
function Fs(e) {
|
|
935
|
+
const [s, a] = p(Bs), [l, o] = p(0);
|
|
936
|
+
z(() => {
|
|
946
937
|
if (!e) {
|
|
947
938
|
a({ loading: !1, graphBound: !1, total: void 0, byTag: /* @__PURE__ */ new Map() });
|
|
948
939
|
return;
|
|
@@ -969,34 +960,34 @@ function qs(e) {
|
|
|
969
960
|
r = !0;
|
|
970
961
|
};
|
|
971
962
|
}, [e, l]);
|
|
972
|
-
const c =
|
|
963
|
+
const c = L(() => o((r) => r + 1), []);
|
|
973
964
|
return { ...s, reload: c };
|
|
974
965
|
}
|
|
975
|
-
function
|
|
966
|
+
function Us() {
|
|
976
967
|
const [e, s] = p([]);
|
|
977
|
-
return
|
|
968
|
+
return z(() => {
|
|
978
969
|
let a = !1;
|
|
979
970
|
return (async () => {
|
|
980
|
-
const o = await
|
|
971
|
+
const o = await Yn();
|
|
981
972
|
!a && o && s(o);
|
|
982
973
|
})(), () => {
|
|
983
974
|
a = !0;
|
|
984
975
|
};
|
|
985
976
|
}, []), e;
|
|
986
977
|
}
|
|
987
|
-
function
|
|
978
|
+
function Hs() {
|
|
988
979
|
const [e, s] = p(""), [a, l] = p("");
|
|
989
|
-
return
|
|
980
|
+
return z(() => {
|
|
990
981
|
let o = !1;
|
|
991
982
|
return (async () => {
|
|
992
|
-
const r = await
|
|
983
|
+
const r = await Zn();
|
|
993
984
|
o || !r || (s(r.name), l(r.graphSpace ?? ""));
|
|
994
985
|
})(), () => {
|
|
995
986
|
o = !0;
|
|
996
987
|
};
|
|
997
988
|
}, []), { name: e, spaceCode: a };
|
|
998
989
|
}
|
|
999
|
-
function
|
|
990
|
+
function Ks({
|
|
1000
991
|
model: e,
|
|
1001
992
|
base: s,
|
|
1002
993
|
counts: a
|
|
@@ -1039,7 +1030,7 @@ function Ys({
|
|
|
1039
1030
|
edges: u
|
|
1040
1031
|
};
|
|
1041
1032
|
}
|
|
1042
|
-
function
|
|
1033
|
+
function Vs(e, s) {
|
|
1043
1034
|
const a = ((e == null ? void 0 : e.nodes) ?? []).map((r) => ({
|
|
1044
1035
|
code: r.code,
|
|
1045
1036
|
tagName: r.tagName,
|
|
@@ -1075,7 +1066,7 @@ function Ws(e, s) {
|
|
|
1075
1066
|
}
|
|
1076
1067
|
return { tags: a, edges: c };
|
|
1077
1068
|
}
|
|
1078
|
-
function
|
|
1069
|
+
function js({
|
|
1079
1070
|
view: e,
|
|
1080
1071
|
base: s,
|
|
1081
1072
|
categories: a,
|
|
@@ -1091,7 +1082,7 @@ function Zs({
|
|
|
1091
1082
|
onPickTag: i,
|
|
1092
1083
|
onPickEdge: g
|
|
1093
1084
|
}) {
|
|
1094
|
-
const C = W(() =>
|
|
1085
|
+
const C = W(() => Vs(e, s), [e, s]);
|
|
1095
1086
|
return d ? /* @__PURE__ */ t(
|
|
1096
1087
|
"button",
|
|
1097
1088
|
{
|
|
@@ -1133,7 +1124,7 @@ function Zs({
|
|
|
1133
1124
|
] })
|
|
1134
1125
|
] }),
|
|
1135
1126
|
/* @__PURE__ */ n(
|
|
1136
|
-
|
|
1127
|
+
aa,
|
|
1137
1128
|
{
|
|
1138
1129
|
tags: C.tags,
|
|
1139
1130
|
edges: C.edges,
|
|
@@ -1152,8 +1143,8 @@ function Zs({
|
|
|
1152
1143
|
)
|
|
1153
1144
|
] });
|
|
1154
1145
|
}
|
|
1155
|
-
const
|
|
1156
|
-
function
|
|
1146
|
+
const qs = 1200;
|
|
1147
|
+
function Gs({
|
|
1157
1148
|
detail: e,
|
|
1158
1149
|
graph: s,
|
|
1159
1150
|
graphFailed: a,
|
|
@@ -1164,17 +1155,17 @@ function Xs({
|
|
|
1164
1155
|
identity: h,
|
|
1165
1156
|
actions: u
|
|
1166
1157
|
}) {
|
|
1167
|
-
var
|
|
1168
|
-
const m =
|
|
1158
|
+
var M;
|
|
1159
|
+
const m = Fs(e.scenarioCode), d = Hs(), b = Us(), i = sa(), g = ta({ scope: "SCENARIO", scenarioCode: e.scenarioCode }), C = W(
|
|
1169
1160
|
() => m.loading || !m.graphBound ? void 0 : { graphBound: !0, byTag: m.byTag },
|
|
1170
1161
|
[m.loading, m.graphBound, m.byTag]
|
|
1171
1162
|
), v = W(
|
|
1172
|
-
() => o ?
|
|
1163
|
+
() => o ? Ks({ model: o, base: s, counts: C }) : null,
|
|
1173
1164
|
[o, s, C]
|
|
1174
|
-
), f =
|
|
1175
|
-
|
|
1165
|
+
), f = la(v), [y, T] = p(!0), [k, x] = p("table"), [w, N] = p(null), [E, D] = p(null), [Y, H] = p(null), [V, R] = p(null), [K, q] = p(null), [se, ee] = p([]), G = ce(null);
|
|
1166
|
+
z(
|
|
1176
1167
|
() => () => {
|
|
1177
|
-
|
|
1168
|
+
G.current && clearTimeout(G.current);
|
|
1178
1169
|
},
|
|
1179
1170
|
[]
|
|
1180
1171
|
);
|
|
@@ -1186,7 +1177,7 @@ function Xs({
|
|
|
1186
1177
|
])
|
|
1187
1178
|
),
|
|
1188
1179
|
[v]
|
|
1189
|
-
),
|
|
1180
|
+
), me = W(
|
|
1190
1181
|
() => Object.fromEntries(
|
|
1191
1182
|
((v == null ? void 0 : v.edges) ?? []).map((S) => [
|
|
1192
1183
|
S.edgeName,
|
|
@@ -1196,10 +1187,10 @@ function Xs({
|
|
|
1196
1187
|
[v]
|
|
1197
1188
|
), re = (S) => {
|
|
1198
1189
|
const $ = f.pickNode(S);
|
|
1199
|
-
$.kind === "unreachable" &&
|
|
1190
|
+
$.kind === "unreachable" && Xe("未找到可行链路", `已将 ${$.tagName} 切换为链路起点`, "warn");
|
|
1200
1191
|
}, oe = (S) => {
|
|
1201
|
-
i.clearFocus(),
|
|
1202
|
-
},
|
|
1192
|
+
i.clearFocus(), q(null), H(null), R(null), g.enterInstanceWith(S), N({ kind: "tag", tagName: S, tagLabels: le }), x("table");
|
|
1193
|
+
}, Q = () => {
|
|
1203
1194
|
const S = f.chainNodeNames;
|
|
1204
1195
|
if (S.length === 1) {
|
|
1205
1196
|
oe(S[0]);
|
|
@@ -1207,11 +1198,11 @@ function Xs({
|
|
|
1207
1198
|
}
|
|
1208
1199
|
if (!f.selectedSteps) return;
|
|
1209
1200
|
const $ = f.selectedSteps.map((P) => ({ ...P }));
|
|
1210
|
-
i.clearFocus(),
|
|
1201
|
+
i.clearFocus(), q(null), H(null), R(null), g.enterInstanceWithTags([...new Set(S)]), x("table"), N({
|
|
1211
1202
|
kind: "chain",
|
|
1212
1203
|
steps: $,
|
|
1213
1204
|
tagLabels: le,
|
|
1214
|
-
edgeLabels:
|
|
1205
|
+
edgeLabels: me,
|
|
1215
1206
|
edgeReversed: $.map((P) => {
|
|
1216
1207
|
const j = ((v == null ? void 0 : v.edges) ?? []).find(
|
|
1217
1208
|
(ne) => ne.edgeName === P.edgeName && (ne.srcTag === P.srcTag && ne.dstTag === P.dstTag || ne.srcTag === P.dstTag && ne.dstTag === P.srcTag)
|
|
@@ -1220,29 +1211,29 @@ function Xs({
|
|
|
1220
1211
|
})
|
|
1221
1212
|
});
|
|
1222
1213
|
}, te = () => {
|
|
1223
|
-
g.backToStructureLayer(), i.clearFocus(),
|
|
1224
|
-
},
|
|
1225
|
-
|
|
1226
|
-
},
|
|
1227
|
-
|
|
1214
|
+
g.backToStructureLayer(), i.clearFocus(), q(null), N(null), x("table"), D(null), H(null), R(null);
|
|
1215
|
+
}, de = (S) => {
|
|
1216
|
+
q(S.edgeName);
|
|
1217
|
+
}, ye = (S) => {
|
|
1218
|
+
de(S);
|
|
1228
1219
|
const $ = ((v == null ? void 0 : v.edges) ?? []).find(
|
|
1229
1220
|
(P) => P.edgeName === S.edgeName && (!S.srcTag || !S.dstTag || P.srcTag === S.srcTag && P.dstTag === S.dstTag || P.srcTag === S.dstTag && P.dstTag === S.srcTag)
|
|
1230
1221
|
);
|
|
1231
1222
|
$ && (H(null), R({ kind: "structure", edge: $ }));
|
|
1232
|
-
},
|
|
1223
|
+
}, Ne = (S) => {
|
|
1233
1224
|
const $ = ((v == null ? void 0 : v.edges) ?? []).flatMap(
|
|
1234
1225
|
(P) => P.srcTag && P.dstTag ? [{ edgeName: P.edgeName, srcTag: P.srcTag, dstTag: P.dstTag }] : []
|
|
1235
1226
|
);
|
|
1236
1227
|
i.focusType(S, $);
|
|
1237
|
-
},
|
|
1238
|
-
i.clearFocus(),
|
|
1239
|
-
},
|
|
1240
|
-
|
|
1228
|
+
}, pe = () => {
|
|
1229
|
+
i.clearFocus(), q(null), H(null), R(null);
|
|
1230
|
+
}, be = (S) => {
|
|
1231
|
+
q(S.edgeName);
|
|
1241
1232
|
const $ = [
|
|
1242
1233
|
...new Set(S.endpoints.flatMap((P) => [P.srcTag, P.dstTag]))
|
|
1243
1234
|
].filter((P) => !!P);
|
|
1244
|
-
ee($),
|
|
1245
|
-
},
|
|
1235
|
+
ee($), G.current && clearTimeout(G.current), G.current = setTimeout(() => ee([]), qs);
|
|
1236
|
+
}, Le = W(
|
|
1246
1237
|
() => ({
|
|
1247
1238
|
focusVid: i.focusVid,
|
|
1248
1239
|
focusKey: i.focusKey,
|
|
@@ -1269,9 +1260,9 @@ function Xs({
|
|
|
1269
1260
|
}, [v, f.chainNodeNames, f.selectedSteps]), _ = W(
|
|
1270
1261
|
() => (f.selectedSteps ?? []).map((S) => S.edgeName),
|
|
1271
1262
|
[f.selectedSteps]
|
|
1272
|
-
), B = f.selectedSteps && f.selectedSteps.length >
|
|
1273
|
-
|
|
1274
|
-
if (
|
|
1263
|
+
), B = f.selectedSteps && f.selectedSteps.length > ra ? `链路已达 ${f.selectedSteps.length} 段(上限 4 段),点击链上节点截断后再查` : void 0;
|
|
1264
|
+
La(() => {
|
|
1265
|
+
if (Y) {
|
|
1275
1266
|
H(null);
|
|
1276
1267
|
return;
|
|
1277
1268
|
}
|
|
@@ -1289,22 +1280,22 @@ function Xs({
|
|
|
1289
1280
|
}
|
|
1290
1281
|
f.clearAll();
|
|
1291
1282
|
});
|
|
1292
|
-
const
|
|
1293
|
-
/* @__PURE__ */ n(
|
|
1283
|
+
const Te = g.layer === "structure", Se = a ? null : v, Ee = m.graphBound ? m.total : void 0, I = Te ? /* @__PURE__ */ t("span", { className: "osc-sg-layer", children: [
|
|
1284
|
+
/* @__PURE__ */ n(Jn, { name: "git-branch", size: 13 }),
|
|
1294
1285
|
/* @__PURE__ */ n("b", { children: "结构图谱" }),
|
|
1295
1286
|
/* @__PURE__ */ t("span", { className: "osc-sg-stat", title: "场景声明的对象类型数 / 场景投影空间内的实例总数", children: [
|
|
1296
|
-
|
|
1287
|
+
hn(Number((v == null ? void 0 : v.nodeCount) ?? 0)),
|
|
1297
1288
|
" 类型 /",
|
|
1298
1289
|
" ",
|
|
1299
|
-
m.loading ? "…" : Ee === void 0 ? "—" :
|
|
1290
|
+
m.loading ? "…" : Ee === void 0 ? "—" : hn(Ee),
|
|
1300
1291
|
" ",
|
|
1301
1292
|
"实例"
|
|
1302
1293
|
] })
|
|
1303
1294
|
] }) : null;
|
|
1304
1295
|
return /* @__PURE__ */ n(
|
|
1305
|
-
|
|
1296
|
+
oa,
|
|
1306
1297
|
{
|
|
1307
|
-
view:
|
|
1298
|
+
view: Se,
|
|
1308
1299
|
loading: !s && !a,
|
|
1309
1300
|
failed: a,
|
|
1310
1301
|
onRetry: l,
|
|
@@ -1320,7 +1311,7 @@ function Xs({
|
|
|
1320
1311
|
focusCategoryCodes: [],
|
|
1321
1312
|
onBackToStructure: te,
|
|
1322
1313
|
onReloadSubgraph: () => g.reloadSubgraph(),
|
|
1323
|
-
onEdgeClick:
|
|
1314
|
+
onEdgeClick: ye,
|
|
1324
1315
|
onInstanceNodeClick: (S) => {
|
|
1325
1316
|
var $;
|
|
1326
1317
|
return i.focusInstance(S.vid, (($ = g.subgraph.view) == null ? void 0 : $.edges) ?? []);
|
|
@@ -1331,16 +1322,16 @@ function Xs({
|
|
|
1331
1322
|
S.edgeName,
|
|
1332
1323
|
S.srcTag ?? "",
|
|
1333
1324
|
S.dstTag ?? ""
|
|
1334
|
-
).kind === "ignored" &&
|
|
1325
|
+
).kind === "ignored" && Xe("无法拼入链路", "该关系的端点类型不在当前图谱中", "warn");
|
|
1335
1326
|
},
|
|
1336
1327
|
onViewEdgeInstances: (S) => {
|
|
1337
1328
|
H(null), R(null), D(S);
|
|
1338
1329
|
},
|
|
1339
1330
|
onEnterInstanceWith: oe,
|
|
1340
1331
|
onOpenTypeDetail: (S) => H(S),
|
|
1341
|
-
onExpandTypeNeighbors:
|
|
1342
|
-
onCanvasBlankClick:
|
|
1343
|
-
focus:
|
|
1332
|
+
onExpandTypeNeighbors: Ne,
|
|
1333
|
+
onCanvasBlankClick: pe,
|
|
1334
|
+
focus: Le,
|
|
1344
1335
|
onExpandNeighbors: () => {
|
|
1345
1336
|
},
|
|
1346
1337
|
chainPathKeys: f.pathNodeKeys,
|
|
@@ -1348,7 +1339,7 @@ function Xs({
|
|
|
1348
1339
|
highlightEdgeName: K ?? void 0,
|
|
1349
1340
|
headLeft: /* @__PURE__ */ t("div", { className: "osc-sg-head", children: [
|
|
1350
1341
|
h,
|
|
1351
|
-
I ? /* @__PURE__ */ t(
|
|
1342
|
+
I ? /* @__PURE__ */ t(Z, { children: [
|
|
1352
1343
|
/* @__PURE__ */ n("span", { className: "osc-sg-divider", "aria-hidden": !0 }),
|
|
1353
1344
|
I
|
|
1354
1345
|
] }) : null
|
|
@@ -1358,10 +1349,10 @@ function Xs({
|
|
|
1358
1349
|
layerLeadInBar: !0,
|
|
1359
1350
|
emptyTitle: "场景尚无生效结构",
|
|
1360
1351
|
emptyHint: "在场景定义中选择对象类型与关系,生效后此处展示场景图谱。",
|
|
1361
|
-
typePanel:
|
|
1362
|
-
|
|
1352
|
+
typePanel: Te && Se ? /* @__PURE__ */ n(
|
|
1353
|
+
js,
|
|
1363
1354
|
{
|
|
1364
|
-
view:
|
|
1355
|
+
view: Se,
|
|
1365
1356
|
base: s,
|
|
1366
1357
|
categories: b,
|
|
1367
1358
|
counts: m,
|
|
@@ -1374,11 +1365,11 @@ function Xs({
|
|
|
1374
1365
|
collapsed: y,
|
|
1375
1366
|
onToggleCollapsed: () => T((S) => !S),
|
|
1376
1367
|
onPickTag: re,
|
|
1377
|
-
onPickEdge:
|
|
1368
|
+
onPickEdge: be
|
|
1378
1369
|
}
|
|
1379
1370
|
) : null,
|
|
1380
1371
|
chainBar: /* @__PURE__ */ n(
|
|
1381
|
-
|
|
1372
|
+
ma,
|
|
1382
1373
|
{
|
|
1383
1374
|
nodeChips: ke.nodes,
|
|
1384
1375
|
edgeChips: ke.edges,
|
|
@@ -1393,29 +1384,29 @@ function Xs({
|
|
|
1393
1384
|
onClear: f.clearAll,
|
|
1394
1385
|
onMaxHopsChange: f.setMaxHops,
|
|
1395
1386
|
onMaxResultsChange: f.setMaxResults,
|
|
1396
|
-
onQueryDetail:
|
|
1387
|
+
onQueryDetail: Q
|
|
1397
1388
|
}
|
|
1398
1389
|
),
|
|
1399
1390
|
chainCandidates: /* @__PURE__ */ n(
|
|
1400
|
-
|
|
1391
|
+
ha,
|
|
1401
1392
|
{
|
|
1402
1393
|
metas: f.candidateMetas,
|
|
1403
1394
|
activeIndex: f.activeIndex,
|
|
1404
1395
|
onPick: f.pickCandidate
|
|
1405
1396
|
}
|
|
1406
1397
|
),
|
|
1407
|
-
typeDetail:
|
|
1408
|
-
|
|
1398
|
+
typeDetail: Y ? /* @__PURE__ */ n(
|
|
1399
|
+
ua,
|
|
1409
1400
|
{
|
|
1410
|
-
code:
|
|
1411
|
-
tagName:
|
|
1401
|
+
code: Y.code,
|
|
1402
|
+
tagName: Y.tagName,
|
|
1412
1403
|
edges: (v == null ? void 0 : v.edges) ?? [],
|
|
1413
1404
|
onClose: () => H(null)
|
|
1414
1405
|
}
|
|
1415
1406
|
) : null,
|
|
1416
|
-
edgeDetail: V ? /* @__PURE__ */ n(
|
|
1407
|
+
edgeDetail: V ? /* @__PURE__ */ n(da, { target: V, onClose: () => R(null) }) : null,
|
|
1417
1408
|
instanceTable: w ? /* @__PURE__ */ n(
|
|
1418
|
-
|
|
1409
|
+
ia,
|
|
1419
1410
|
{
|
|
1420
1411
|
source: w,
|
|
1421
1412
|
scope: "SCENARIO",
|
|
@@ -1424,12 +1415,12 @@ function Xs({
|
|
|
1424
1415
|
}
|
|
1425
1416
|
) : null,
|
|
1426
1417
|
relationTable: E ? /* @__PURE__ */ n(
|
|
1427
|
-
|
|
1418
|
+
ca,
|
|
1428
1419
|
{
|
|
1429
1420
|
edgeName: E.edgeName,
|
|
1430
|
-
label: (
|
|
1421
|
+
label: (M = v == null ? void 0 : v.edges.find(
|
|
1431
1422
|
(S) => S.edgeName === E.edgeName
|
|
1432
|
-
)) == null ? void 0 :
|
|
1423
|
+
)) == null ? void 0 : M.displayName,
|
|
1433
1424
|
scope: "SCENARIO",
|
|
1434
1425
|
scenarioCode: e.scenarioCode,
|
|
1435
1426
|
onClose: () => D(null)
|
|
@@ -1443,21 +1434,21 @@ function Xs({
|
|
|
1443
1434
|
}
|
|
1444
1435
|
);
|
|
1445
1436
|
}
|
|
1446
|
-
function
|
|
1437
|
+
function Qs(e) {
|
|
1447
1438
|
return e.syncStatus === 6 ? "danger" : e.syncStatus === 4 || e.syncStatus === 5 || e.syncStatus === 7 || e.status === 1 || e.syncStatus === 2 ? "warn" : "ok";
|
|
1448
1439
|
}
|
|
1449
|
-
function
|
|
1450
|
-
return /* @__PURE__ */ t("div", { className: `osc-health ${
|
|
1440
|
+
function Ws({ detail: e, onOpenRun: s }) {
|
|
1441
|
+
return /* @__PURE__ */ t("div", { className: `osc-health ${Qs(e)}`, children: [
|
|
1451
1442
|
/* @__PURE__ */ t("button", { type: "button", className: "osc-health-main", onClick: s, children: [
|
|
1452
1443
|
/* @__PURE__ */ n("span", { className: "dot" }),
|
|
1453
1444
|
/* @__PURE__ */ t("span", { children: [
|
|
1454
1445
|
"数据截至 ",
|
|
1455
|
-
/* @__PURE__ */ n("b", { className: "mono", children:
|
|
1446
|
+
/* @__PURE__ */ n("b", { className: "mono", children: J(e.dataAsOf) })
|
|
1456
1447
|
] }),
|
|
1457
1448
|
/* @__PURE__ */ n("span", { className: "osc-health-sep" }),
|
|
1458
1449
|
/* @__PURE__ */ t("span", { children: [
|
|
1459
1450
|
"延迟 ",
|
|
1460
|
-
/* @__PURE__ */ n("b", { children:
|
|
1451
|
+
/* @__PURE__ */ n("b", { children: rn(e.lagMs) })
|
|
1461
1452
|
] }),
|
|
1462
1453
|
/* @__PURE__ */ n("span", { className: "osc-health-sep" }),
|
|
1463
1454
|
/* @__PURE__ */ t("span", { children: [
|
|
@@ -1478,22 +1469,22 @@ function nt({ detail: e, onOpenRun: s }) {
|
|
|
1478
1469
|
/* @__PURE__ */ n($a, {})
|
|
1479
1470
|
] })
|
|
1480
1471
|
] }),
|
|
1481
|
-
/* @__PURE__ */ n(F, { title: "数据截至=已消费到的变更水位;点这一条查看运行记录、失败项与空间档案,失败不会自动重试。", children: /* @__PURE__ */ n(
|
|
1472
|
+
/* @__PURE__ */ n(F, { title: "数据截至=已消费到的变更水位;点这一条查看运行记录、失败项与空间档案,失败不会自动重试。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) })
|
|
1482
1473
|
] });
|
|
1483
1474
|
}
|
|
1484
|
-
function
|
|
1475
|
+
function Ys({ detail: e }) {
|
|
1485
1476
|
var o;
|
|
1486
1477
|
const s = Ue(e), a = !s && (e.stale || e.syncStatus === 5), l = e.activeProjection;
|
|
1487
1478
|
return /* @__PURE__ */ t("div", { className: "osc-side-card", children: [
|
|
1488
1479
|
/* @__PURE__ */ t("div", { className: "osc-side-head", children: [
|
|
1489
|
-
/* @__PURE__ */ n(
|
|
1480
|
+
/* @__PURE__ */ n(ln, {}),
|
|
1490
1481
|
" ",
|
|
1491
1482
|
s ? "定义版本" : "投影版本",
|
|
1492
1483
|
/* @__PURE__ */ n(
|
|
1493
1484
|
F,
|
|
1494
1485
|
{
|
|
1495
1486
|
title: s ? "纯子图不物化:定义版本只生成查询白名单,查询与 nGQL 直读基础空间;更新定义即时生效。" : "历史版本不可修改;映射变更生成新投影版本,走更新工单并在同一空间全量重放。",
|
|
1496
|
-
children: /* @__PURE__ */ n(
|
|
1487
|
+
children: /* @__PURE__ */ n(Ce, { className: "osc-help" })
|
|
1497
1488
|
}
|
|
1498
1489
|
)
|
|
1499
1490
|
] }),
|
|
@@ -1507,7 +1498,7 @@ function at({ detail: e }) {
|
|
|
1507
1498
|
/* @__PURE__ */ n("label", { children: "基础 Schema" }),
|
|
1508
1499
|
/* @__PURE__ */ n("b", { className: "mono", children: e.baseSchemaVersion ?? "—" })
|
|
1509
1500
|
] }),
|
|
1510
|
-
s ? null : /* @__PURE__ */ t(
|
|
1501
|
+
s ? null : /* @__PURE__ */ t(Z, { children: [
|
|
1511
1502
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1512
1503
|
/* @__PURE__ */ n("label", { children: "场景空间" }),
|
|
1513
1504
|
/* @__PURE__ */ n("b", { className: "mono", children: e.spaceCode || "—" })
|
|
@@ -1518,7 +1509,7 @@ function at({ detail: e }) {
|
|
|
1518
1509
|
] }),
|
|
1519
1510
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1520
1511
|
/* @__PURE__ */ n("label", { children: "生效时间" }),
|
|
1521
|
-
/* @__PURE__ */ n("b", { className: "mono", children:
|
|
1512
|
+
/* @__PURE__ */ n("b", { className: "mono", children: J(l == null ? void 0 : l.effectiveAt) })
|
|
1522
1513
|
] })
|
|
1523
1514
|
] }),
|
|
1524
1515
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
@@ -1529,7 +1520,7 @@ function at({ detail: e }) {
|
|
|
1529
1520
|
] })
|
|
1530
1521
|
] });
|
|
1531
1522
|
}
|
|
1532
|
-
const
|
|
1523
|
+
const Zs = [
|
|
1533
1524
|
{
|
|
1534
1525
|
title: "消费方编码",
|
|
1535
1526
|
dataIndex: "consumerCode",
|
|
@@ -1549,19 +1540,19 @@ const st = [
|
|
|
1549
1540
|
render: (e) => e || "-"
|
|
1550
1541
|
}
|
|
1551
1542
|
];
|
|
1552
|
-
function
|
|
1543
|
+
function Js({ consumers: e }) {
|
|
1553
1544
|
return /* @__PURE__ */ n(
|
|
1554
|
-
|
|
1545
|
+
he,
|
|
1555
1546
|
{
|
|
1556
1547
|
rowKey: (s) => s.consumerCode || s.consumerName || "consumer",
|
|
1557
1548
|
size: "small",
|
|
1558
|
-
columns:
|
|
1549
|
+
columns: Zs,
|
|
1559
1550
|
dataSource: e,
|
|
1560
1551
|
locale: {
|
|
1561
1552
|
emptyText: /* @__PURE__ */ n(
|
|
1562
|
-
|
|
1553
|
+
Me,
|
|
1563
1554
|
{
|
|
1564
|
-
image:
|
|
1555
|
+
image: Me.PRESENTED_IMAGE_SIMPLE,
|
|
1565
1556
|
description: "尚未登记消费方(一期无登记表,删除场景前由后端校验占用)"
|
|
1566
1557
|
}
|
|
1567
1558
|
)
|
|
@@ -1569,7 +1560,7 @@ function tt({ consumers: e }) {
|
|
|
1569
1560
|
}
|
|
1570
1561
|
);
|
|
1571
1562
|
}
|
|
1572
|
-
function
|
|
1563
|
+
function Xs({
|
|
1573
1564
|
open: e,
|
|
1574
1565
|
onClose: s,
|
|
1575
1566
|
detail: a,
|
|
@@ -1579,7 +1570,7 @@ function lt({
|
|
|
1579
1570
|
}) {
|
|
1580
1571
|
const r = Ue(a), h = (l == null ? void 0 : l.identity.strategy) === "PREFIX_TARGET_TAG" ? "目标类型前缀" : "保留源 vid";
|
|
1581
1572
|
return /* @__PURE__ */ t(
|
|
1582
|
-
|
|
1573
|
+
Qe,
|
|
1583
1574
|
{
|
|
1584
1575
|
open: e,
|
|
1585
1576
|
onClose: s,
|
|
@@ -1592,14 +1583,14 @@ function lt({
|
|
|
1592
1583
|
/* @__PURE__ */ n("p", { className: "osc-drawer-lead", children: a.description || "未填写场景说明。" }),
|
|
1593
1584
|
/* @__PURE__ */ t("div", { className: "osc-def-grid", children: [
|
|
1594
1585
|
/* @__PURE__ */ t("div", { className: "osc-kv", children: [
|
|
1595
|
-
r ? null : /* @__PURE__ */ t(
|
|
1586
|
+
r ? null : /* @__PURE__ */ t(Z, { children: [
|
|
1596
1587
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1597
1588
|
/* @__PURE__ */ n("label", { children: "数据截至" }),
|
|
1598
|
-
/* @__PURE__ */ n("b", { className: "mono", children:
|
|
1589
|
+
/* @__PURE__ */ n("b", { className: "mono", children: J(a.dataAsOf) })
|
|
1599
1590
|
] }),
|
|
1600
1591
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1601
1592
|
/* @__PURE__ */ n("label", { children: "同步延迟" }),
|
|
1602
|
-
/* @__PURE__ */ n("b", { children:
|
|
1593
|
+
/* @__PURE__ */ n("b", { children: rn(a.lagMs) })
|
|
1603
1594
|
] }),
|
|
1604
1595
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1605
1596
|
/* @__PURE__ */ n("label", { children: "场景空间" }),
|
|
@@ -1616,7 +1607,7 @@ function lt({
|
|
|
1616
1607
|
] }),
|
|
1617
1608
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1618
1609
|
/* @__PURE__ */ n("label", { children: "创建时间" }),
|
|
1619
|
-
/* @__PURE__ */ n("b", { className: "mono", children:
|
|
1610
|
+
/* @__PURE__ */ n("b", { className: "mono", children: J(a.createTime) })
|
|
1620
1611
|
] })
|
|
1621
1612
|
] }),
|
|
1622
1613
|
/* @__PURE__ */ t("div", { className: "osc-kv", children: [
|
|
@@ -1624,7 +1615,7 @@ function lt({
|
|
|
1624
1615
|
/* @__PURE__ */ n("label", { children: "场景编码" }),
|
|
1625
1616
|
/* @__PURE__ */ n("b", { className: "mono", children: a.scenarioCode })
|
|
1626
1617
|
] }),
|
|
1627
|
-
r ? null : /* @__PURE__ */ t(
|
|
1618
|
+
r ? null : /* @__PURE__ */ t(Z, { children: [
|
|
1628
1619
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1629
1620
|
/* @__PURE__ */ n("label", { children: "定义方式" }),
|
|
1630
1621
|
/* @__PURE__ */ n("b", { children: /* @__PURE__ */ n(O, { color: "blue", children: "基础子图 + 映射" }) })
|
|
@@ -1659,7 +1650,7 @@ function lt({
|
|
|
1659
1650
|
] })
|
|
1660
1651
|
] })
|
|
1661
1652
|
] }),
|
|
1662
|
-
/* @__PURE__ */ n("div", { className: "mt-16", children: /* @__PURE__ */ n(
|
|
1653
|
+
/* @__PURE__ */ n("div", { className: "mt-16", children: /* @__PURE__ */ n(Ys, { detail: a }) }),
|
|
1663
1654
|
/* @__PURE__ */ t("section", { className: "panel mt-16", children: [
|
|
1664
1655
|
/* @__PURE__ */ t("div", { className: "panel-head", children: [
|
|
1665
1656
|
/* @__PURE__ */ t("h3", { children: [
|
|
@@ -1668,13 +1659,13 @@ function lt({
|
|
|
1668
1659
|
] }),
|
|
1669
1660
|
/* @__PURE__ */ n("span", { className: "hint", children: "一期登记制" })
|
|
1670
1661
|
] }),
|
|
1671
|
-
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(
|
|
1662
|
+
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(Js, { consumers: c }) })
|
|
1672
1663
|
] })
|
|
1673
1664
|
]
|
|
1674
1665
|
}
|
|
1675
1666
|
);
|
|
1676
1667
|
}
|
|
1677
|
-
function
|
|
1668
|
+
function et({ relations: e }) {
|
|
1678
1669
|
return /* @__PURE__ */ t("div", { className: "osc-edge-list", children: [
|
|
1679
1670
|
/* @__PURE__ */ t("div", { className: "osc-edge-head", children: [
|
|
1680
1671
|
/* @__PURE__ */ n("b", { children: "目标关系" }),
|
|
@@ -1696,17 +1687,17 @@ function rt({ relations: e }) {
|
|
|
1696
1687
|
" → ",
|
|
1697
1688
|
/* @__PURE__ */ n("b", { children: l.dstTag })
|
|
1698
1689
|
] }, `${l.srcTag}-${l.dstTag}`)) }),
|
|
1699
|
-
/* @__PURE__ */ n(O, { color: s.op === "DIRECT" ? "default" : "geekblue", children: ((a =
|
|
1690
|
+
/* @__PURE__ */ n(O, { color: s.op === "DIRECT" ? "default" : "geekblue", children: ((a = Ra[s.op]) == null ? void 0 : a.label) ?? s.op })
|
|
1700
1691
|
] }, s.target);
|
|
1701
1692
|
})
|
|
1702
1693
|
] });
|
|
1703
1694
|
}
|
|
1704
|
-
function
|
|
1695
|
+
function nt({
|
|
1705
1696
|
projections: e,
|
|
1706
1697
|
loading: s
|
|
1707
1698
|
}) {
|
|
1708
1699
|
return /* @__PURE__ */ n(
|
|
1709
|
-
|
|
1700
|
+
he,
|
|
1710
1701
|
{
|
|
1711
1702
|
rowKey: "version",
|
|
1712
1703
|
size: "small",
|
|
@@ -1728,13 +1719,13 @@ function ot({
|
|
|
1728
1719
|
title: "状态",
|
|
1729
1720
|
dataIndex: "status",
|
|
1730
1721
|
width: 100,
|
|
1731
|
-
render: (l, o) => /* @__PURE__ */ n(
|
|
1722
|
+
render: (l, o) => /* @__PURE__ */ n(Os, { status: o.status })
|
|
1732
1723
|
},
|
|
1733
1724
|
{
|
|
1734
1725
|
title: "定义哈希",
|
|
1735
1726
|
dataIndex: "definitionHash",
|
|
1736
1727
|
width: 220,
|
|
1737
|
-
render: (l) => l ? /* @__PURE__ */ n(
|
|
1728
|
+
render: (l) => l ? /* @__PURE__ */ n(ue.Text, { code: !0, ellipsis: { tooltip: l }, style: { maxWidth: 200 }, children: l }) : "-"
|
|
1738
1729
|
},
|
|
1739
1730
|
{
|
|
1740
1731
|
title: "生效工单",
|
|
@@ -1746,7 +1737,7 @@ function ot({
|
|
|
1746
1737
|
title: "生效时间",
|
|
1747
1738
|
dataIndex: "effectiveAt",
|
|
1748
1739
|
width: 150,
|
|
1749
|
-
render: (l) =>
|
|
1740
|
+
render: (l) => J(l)
|
|
1750
1741
|
},
|
|
1751
1742
|
{
|
|
1752
1743
|
title: "当前生效",
|
|
@@ -1763,36 +1754,36 @@ function ot({
|
|
|
1763
1754
|
}
|
|
1764
1755
|
);
|
|
1765
1756
|
}
|
|
1766
|
-
function
|
|
1757
|
+
function Un(e) {
|
|
1767
1758
|
return e.syncStatus === 5;
|
|
1768
1759
|
}
|
|
1769
|
-
function
|
|
1760
|
+
function at({
|
|
1770
1761
|
detail: e,
|
|
1771
1762
|
workbenchPath: s,
|
|
1772
1763
|
onOpenSync: a
|
|
1773
1764
|
}) {
|
|
1774
1765
|
const l = `/ontology/scenarios/${encodeURIComponent(e.scenarioCode)}/edit`, o = e.projectionVersion ? `v${e.projectionVersion}` : "未钉版本";
|
|
1775
1766
|
return /* @__PURE__ */ n("section", { className: "osc-stale-guide", "aria-label": "结构陈旧处置", children: /* @__PURE__ */ t("div", { className: "osc-stale-guide-head", children: [
|
|
1776
|
-
/* @__PURE__ */ n(
|
|
1767
|
+
/* @__PURE__ */ n(An, {}),
|
|
1777
1768
|
/* @__PURE__ */ n("b", { children: "结构已陈旧" }),
|
|
1778
1769
|
/* @__PURE__ */ n(O, { color: "orange", children: "增量同步暂停" }),
|
|
1779
1770
|
/* @__PURE__ */ n("small", { className: "mono", children: o }),
|
|
1780
1771
|
/* @__PURE__ */ n("span", { className: "spacer" }),
|
|
1781
|
-
/* @__PURE__ */ n(F, { title: "更新投影并提交工单,审批生效后在同一场景空间就地 diff 并全量重放,成功后恢复增量同步;不新建空间,也不能沿用旧版本重试。", children: /* @__PURE__ */ n(
|
|
1772
|
+
/* @__PURE__ */ n(F, { title: "更新投影并提交工单,审批生效后在同一场景空间就地 diff 并全量重放,成功后恢复增量同步;不新建空间,也不能沿用旧版本重试。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) }),
|
|
1782
1773
|
s && e.status !== 2 ? /* @__PURE__ */ n("span", { className: "note", children: "场景不可编辑:先恢复可用状态" }) : null,
|
|
1783
|
-
s && e.status === 2 ? /* @__PURE__ */ n(_e, { to: l, children: /* @__PURE__ */ n(
|
|
1784
|
-
a ? /* @__PURE__ */ n(
|
|
1774
|
+
s && e.status === 2 ? /* @__PURE__ */ n(_e, { to: l, children: /* @__PURE__ */ n(A, { type: "primary", size: "small", icon: /* @__PURE__ */ n(Cn, {}), children: "更新投影工单" }) }) : null,
|
|
1775
|
+
a ? /* @__PURE__ */ n(A, { size: "small", type: "text", icon: /* @__PURE__ */ n(In, {}), onClick: a, children: "查看同步运行" }) : null
|
|
1785
1776
|
] }) });
|
|
1786
1777
|
}
|
|
1787
|
-
const
|
|
1788
|
-
function
|
|
1778
|
+
const st = "结构已陈旧:请先生成更新投影工单,审批后由新版本全量重放自动恢复";
|
|
1779
|
+
function tt({
|
|
1789
1780
|
detail: e,
|
|
1790
1781
|
actions: s,
|
|
1791
1782
|
onDeleted: a,
|
|
1792
1783
|
readOnly: l = !1,
|
|
1793
1784
|
readOnlyReason: o
|
|
1794
1785
|
}) {
|
|
1795
|
-
const [c, r] = p(!1), [h, u] = p(""), m = e.status === 2, d = e.syncPaused === 1, b =
|
|
1786
|
+
const [c, r] = p(!1), [h, u] = p(""), m = e.status === 2, d = e.syncPaused === 1, b = Un(e), i = e.status === 3 || e.syncStatus === 6, g = l ? o : b ? st : void 0, C = async (T) => {
|
|
1796
1787
|
await Oe({
|
|
1797
1788
|
title: "重新下发同步运行",
|
|
1798
1789
|
sub: T === 2 ? "按增量通道从当前水位继续消费变更流;在途运行会被拒绝(51113)。" : "从当前水位重新全量重放;期间场景不可读,完成后自动恢复。",
|
|
@@ -1820,10 +1811,10 @@ function dt({
|
|
|
1820
1811
|
confirmText: "删除"
|
|
1821
1812
|
}) && (r(!1), await s.remove(), a());
|
|
1822
1813
|
};
|
|
1823
|
-
return /* @__PURE__ */ t(
|
|
1814
|
+
return /* @__PURE__ */ t(Z, { children: [
|
|
1824
1815
|
/* @__PURE__ */ t(Be, { wrap: !0, children: [
|
|
1825
1816
|
/* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1826
|
-
|
|
1817
|
+
an,
|
|
1827
1818
|
{
|
|
1828
1819
|
disabled: l || !m || b || s.busy !== void 0,
|
|
1829
1820
|
menu: {
|
|
@@ -1833,11 +1824,11 @@ function dt({
|
|
|
1833
1824
|
],
|
|
1834
1825
|
onClick: ({ key: T }) => void C(Number(T))
|
|
1835
1826
|
},
|
|
1836
|
-
children: /* @__PURE__ */ n(
|
|
1827
|
+
children: /* @__PURE__ */ n(A, { loading: s.busy === "retry", children: "重试同步" })
|
|
1837
1828
|
}
|
|
1838
1829
|
) }) }),
|
|
1839
1830
|
d ? /* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1840
|
-
|
|
1831
|
+
A,
|
|
1841
1832
|
{
|
|
1842
1833
|
loading: s.busy === "resume",
|
|
1843
1834
|
disabled: l || !m,
|
|
@@ -1845,7 +1836,7 @@ function dt({
|
|
|
1845
1836
|
children: "恢复增量"
|
|
1846
1837
|
}
|
|
1847
1838
|
) }) }) : /* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1848
|
-
|
|
1839
|
+
A,
|
|
1849
1840
|
{
|
|
1850
1841
|
loading: s.busy === "pause",
|
|
1851
1842
|
disabled: l || !m || e.status === 1 || b,
|
|
@@ -1854,7 +1845,7 @@ function dt({
|
|
|
1854
1845
|
}
|
|
1855
1846
|
) }) }),
|
|
1856
1847
|
/* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1857
|
-
|
|
1848
|
+
A,
|
|
1858
1849
|
{
|
|
1859
1850
|
loading: s.busy === "repair",
|
|
1860
1851
|
disabled: l || !m || b || e.failedItemCount === 0,
|
|
@@ -1863,7 +1854,7 @@ function dt({
|
|
|
1863
1854
|
}
|
|
1864
1855
|
) }) }),
|
|
1865
1856
|
/* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1866
|
-
|
|
1857
|
+
A,
|
|
1867
1858
|
{
|
|
1868
1859
|
loading: s.busy === "reconcile",
|
|
1869
1860
|
disabled: l || !m || b,
|
|
@@ -1872,7 +1863,7 @@ function dt({
|
|
|
1872
1863
|
}
|
|
1873
1864
|
) }) }),
|
|
1874
1865
|
/* @__PURE__ */ n(F, { title: g, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1875
|
-
|
|
1866
|
+
A,
|
|
1876
1867
|
{
|
|
1877
1868
|
danger: !0,
|
|
1878
1869
|
loading: s.busy === "delete",
|
|
@@ -1883,7 +1874,7 @@ function dt({
|
|
|
1883
1874
|
) }) })
|
|
1884
1875
|
] }),
|
|
1885
1876
|
/* @__PURE__ */ n(
|
|
1886
|
-
|
|
1877
|
+
En,
|
|
1887
1878
|
{
|
|
1888
1879
|
open: c,
|
|
1889
1880
|
title: "暂停增量同步",
|
|
@@ -1908,7 +1899,7 @@ function dt({
|
|
|
1908
1899
|
)
|
|
1909
1900
|
] });
|
|
1910
1901
|
}
|
|
1911
|
-
function
|
|
1902
|
+
function lt({ detail: e }) {
|
|
1912
1903
|
return /* @__PURE__ */ t(Be, { direction: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
1913
1904
|
e.status === 1 ? /* @__PURE__ */ n(
|
|
1914
1905
|
xe,
|
|
@@ -1938,30 +1929,30 @@ function ut({ detail: e }) {
|
|
|
1938
1929
|
}
|
|
1939
1930
|
) : null,
|
|
1940
1931
|
/* @__PURE__ */ t(U, { size: "small", column: { xs: 1, sm: 2, md: 4 }, bordered: !0, children: [
|
|
1941
|
-
/* @__PURE__ */ n(U.Item, { label: "场景空间", children: /* @__PURE__ */ n(
|
|
1932
|
+
/* @__PURE__ */ n(U.Item, { label: "场景空间", children: /* @__PURE__ */ n(ue.Text, { copyable: !!e.spaceCode, children: e.spaceCode || "-" }) }),
|
|
1942
1933
|
/* @__PURE__ */ n(U.Item, { label: "投影版本", children: e.projectionVersion && e.projectionVersion > 0 ? `v${e.projectionVersion}` : "尚未钉版本" }),
|
|
1943
1934
|
/* @__PURE__ */ n(U.Item, { label: "基础 Schema 版本", children: e.baseSchemaVersion ?? "-" }),
|
|
1944
1935
|
/* @__PURE__ */ n(U.Item, { label: "已应用变更水位", children: e.lastAppliedChangeId ?? "-" }),
|
|
1945
|
-
/* @__PURE__ */ n(U.Item, { label: "数据截止", children:
|
|
1946
|
-
/* @__PURE__ */ n(U.Item, { label: "同步延迟", children: /* @__PURE__ */ n(O, { color: e.stale ? "orange" : "blue", children:
|
|
1947
|
-
/* @__PURE__ */ n(U.Item, { label: "最近同步", children:
|
|
1948
|
-
/* @__PURE__ */ n(U.Item, { label: "创建时间", children:
|
|
1936
|
+
/* @__PURE__ */ n(U.Item, { label: "数据截止", children: J(e.dataAsOf) }),
|
|
1937
|
+
/* @__PURE__ */ n(U.Item, { label: "同步延迟", children: /* @__PURE__ */ n(O, { color: e.stale ? "orange" : "blue", children: rn(e.lagMs) }) }),
|
|
1938
|
+
/* @__PURE__ */ n(U.Item, { label: "最近同步", children: J(e.lastSyncedAt) }),
|
|
1939
|
+
/* @__PURE__ */ n(U.Item, { label: "创建时间", children: J(e.createTime) })
|
|
1949
1940
|
] })
|
|
1950
1941
|
] });
|
|
1951
1942
|
}
|
|
1952
|
-
function
|
|
1943
|
+
function rt({ state: e }) {
|
|
1953
1944
|
const s = [
|
|
1954
1945
|
{
|
|
1955
1946
|
title: "运行编码",
|
|
1956
1947
|
dataIndex: "runCode",
|
|
1957
1948
|
width: 200,
|
|
1958
|
-
render: (a) => /* @__PURE__ */ n(
|
|
1949
|
+
render: (a) => /* @__PURE__ */ n(ue.Text, { code: !0, copyable: !!a, children: a || "-" })
|
|
1959
1950
|
},
|
|
1960
1951
|
{
|
|
1961
1952
|
title: "变更 ID",
|
|
1962
1953
|
dataIndex: "changeId",
|
|
1963
1954
|
width: 100,
|
|
1964
|
-
render: (a) =>
|
|
1955
|
+
render: (a) => nn(a)
|
|
1965
1956
|
},
|
|
1966
1957
|
{
|
|
1967
1958
|
title: "操作",
|
|
@@ -1990,17 +1981,17 @@ function ht({ state: e }) {
|
|
|
1990
1981
|
{
|
|
1991
1982
|
title: "失败原因",
|
|
1992
1983
|
dataIndex: "errorMsg",
|
|
1993
|
-
render: (a) => a ? /* @__PURE__ */ n(
|
|
1984
|
+
render: (a) => a ? /* @__PURE__ */ n(ue.Text, { type: "danger", ellipsis: { tooltip: a }, style: { maxWidth: 300 }, children: a }) : "-"
|
|
1994
1985
|
},
|
|
1995
1986
|
{
|
|
1996
1987
|
title: "记录时间",
|
|
1997
1988
|
dataIndex: "appliedAt",
|
|
1998
1989
|
width: 150,
|
|
1999
|
-
render: (a) =>
|
|
1990
|
+
render: (a) => J(a)
|
|
2000
1991
|
}
|
|
2001
1992
|
];
|
|
2002
1993
|
return /* @__PURE__ */ n(
|
|
2003
|
-
|
|
1994
|
+
he,
|
|
2004
1995
|
{
|
|
2005
1996
|
rowKey: "id",
|
|
2006
1997
|
size: "small",
|
|
@@ -2019,25 +2010,25 @@ function ht({ state: e }) {
|
|
|
2019
2010
|
}
|
|
2020
2011
|
);
|
|
2021
2012
|
}
|
|
2022
|
-
function
|
|
2013
|
+
function ot({ state: e }) {
|
|
2023
2014
|
const s = [
|
|
2024
2015
|
{
|
|
2025
2016
|
title: "运行编码",
|
|
2026
2017
|
dataIndex: "runCode",
|
|
2027
2018
|
width: 200,
|
|
2028
|
-
render: (a) => /* @__PURE__ */ n(
|
|
2019
|
+
render: (a) => /* @__PURE__ */ n(ue.Text, { code: !0, copyable: !!a, children: a || "-" })
|
|
2029
2020
|
},
|
|
2030
2021
|
{
|
|
2031
2022
|
title: "类型",
|
|
2032
2023
|
dataIndex: "runType",
|
|
2033
2024
|
width: 100,
|
|
2034
|
-
render: (a) =>
|
|
2025
|
+
render: (a) => As(a)
|
|
2035
2026
|
},
|
|
2036
2027
|
{
|
|
2037
2028
|
title: "状态",
|
|
2038
2029
|
dataIndex: "status",
|
|
2039
2030
|
width: 100,
|
|
2040
|
-
render: (a) => /* @__PURE__ */ n(
|
|
2031
|
+
render: (a) => /* @__PURE__ */ n($s, { status: a })
|
|
2041
2032
|
},
|
|
2042
2033
|
{
|
|
2043
2034
|
title: "投影版本",
|
|
@@ -2049,33 +2040,33 @@ function mt({ state: e }) {
|
|
|
2049
2040
|
title: "水位",
|
|
2050
2041
|
key: "watermark",
|
|
2051
2042
|
width: 140,
|
|
2052
|
-
render: (a, l) => `${
|
|
2043
|
+
render: (a, l) => `${nn(l.watermarkFrom)} → ${nn(l.watermarkTo)}`
|
|
2053
2044
|
},
|
|
2054
2045
|
{
|
|
2055
2046
|
title: "统计",
|
|
2056
2047
|
dataIndex: "statJson",
|
|
2057
2048
|
width: 160,
|
|
2058
|
-
render: (a) => a ? /* @__PURE__ */ n(F, { title: a, children: /* @__PURE__ */ n(
|
|
2049
|
+
render: (a) => a ? /* @__PURE__ */ n(F, { title: a, children: /* @__PURE__ */ n(ue.Text, { ellipsis: !0, style: { maxWidth: 140 }, children: a }) }) : "-"
|
|
2059
2050
|
},
|
|
2060
2051
|
{
|
|
2061
2052
|
title: "错误信息",
|
|
2062
2053
|
dataIndex: "errorMsg",
|
|
2063
|
-
render: (a) => a ? /* @__PURE__ */ n(
|
|
2054
|
+
render: (a) => a ? /* @__PURE__ */ n(ue.Text, { type: "danger", ellipsis: { tooltip: a }, style: { maxWidth: 240 }, children: a }) : "-"
|
|
2064
2055
|
},
|
|
2065
2056
|
{
|
|
2066
2057
|
title: "开始时间",
|
|
2067
2058
|
dataIndex: "startedAt",
|
|
2068
2059
|
width: 150,
|
|
2069
|
-
render: (a) =>
|
|
2060
|
+
render: (a) => J(a)
|
|
2070
2061
|
},
|
|
2071
2062
|
{
|
|
2072
2063
|
title: "结束时间",
|
|
2073
2064
|
dataIndex: "finishedAt",
|
|
2074
2065
|
width: 150,
|
|
2075
|
-
render: (a) =>
|
|
2066
|
+
render: (a) => J(a)
|
|
2076
2067
|
}
|
|
2077
2068
|
];
|
|
2078
|
-
return /* @__PURE__ */ t(
|
|
2069
|
+
return /* @__PURE__ */ t(Z, { children: [
|
|
2079
2070
|
/* @__PURE__ */ t(Be, { wrap: !0, style: { marginBottom: 12 }, children: [
|
|
2080
2071
|
/* @__PURE__ */ n(
|
|
2081
2072
|
ie,
|
|
@@ -2113,7 +2104,7 @@ function mt({ state: e }) {
|
|
|
2113
2104
|
)
|
|
2114
2105
|
] }),
|
|
2115
2106
|
/* @__PURE__ */ n(
|
|
2116
|
-
|
|
2107
|
+
he,
|
|
2117
2108
|
{
|
|
2118
2109
|
rowKey: "runCode",
|
|
2119
2110
|
size: "small",
|
|
@@ -2133,8 +2124,8 @@ function mt({ state: e }) {
|
|
|
2133
2124
|
)
|
|
2134
2125
|
] });
|
|
2135
2126
|
}
|
|
2136
|
-
function
|
|
2137
|
-
const s = e.status === 2, a = e.status === 1, l = a && e.syncStatus === 2, o = e.activeRun ? `全量重放 ${e.activeRun.runCode} · ${
|
|
2127
|
+
function ct({ detail: e }) {
|
|
2128
|
+
const s = e.status === 2, a = e.status === 1, l = a && e.syncStatus === 2, o = e.activeRun ? `全量重放 ${e.activeRun.runCode} · ${J(e.activeRun.startedAt)}` : "全量重放", c = [
|
|
2138
2129
|
{
|
|
2139
2130
|
done: !0,
|
|
2140
2131
|
text: a ? "工单生效:结构已建,自动生成 FULL 运行。" : "结构已就绪,无在途结构变更。"
|
|
@@ -2149,17 +2140,17 @@ function pt({ detail: e }) {
|
|
|
2149
2140
|
}
|
|
2150
2141
|
];
|
|
2151
2142
|
return s ? /* @__PURE__ */ n("div", { className: "osc-gate", children: /* @__PURE__ */ t("div", { className: "osc-gate-row ok", children: [
|
|
2152
|
-
/* @__PURE__ */ n("span", { className: "ic", children: /* @__PURE__ */ n(
|
|
2143
|
+
/* @__PURE__ */ n("span", { className: "ic", children: /* @__PURE__ */ n(mn, {}) }),
|
|
2153
2144
|
/* @__PURE__ */ t("span", { children: [
|
|
2154
2145
|
o,
|
|
2155
2146
|
" 已完成,场景可解析。"
|
|
2156
2147
|
] })
|
|
2157
2148
|
] }) }) : /* @__PURE__ */ n("div", { className: "osc-gate", children: c.map((r) => /* @__PURE__ */ t("div", { className: `osc-gate-row ${r.done ? "ok" : "warn"}`, children: [
|
|
2158
|
-
/* @__PURE__ */ n("span", { className: "ic", children: r.done ? /* @__PURE__ */ n(
|
|
2149
|
+
/* @__PURE__ */ n("span", { className: "ic", children: r.done ? /* @__PURE__ */ n(mn, {}) : /* @__PURE__ */ n(Ca, {}) }),
|
|
2159
2150
|
/* @__PURE__ */ n("span", { children: r.text })
|
|
2160
2151
|
] }, r.text)) });
|
|
2161
2152
|
}
|
|
2162
|
-
function
|
|
2153
|
+
function it({
|
|
2163
2154
|
open: e,
|
|
2164
2155
|
onClose: s,
|
|
2165
2156
|
detail: a,
|
|
@@ -2171,7 +2162,7 @@ function gt({
|
|
|
2171
2162
|
}) {
|
|
2172
2163
|
var u;
|
|
2173
2164
|
return /* @__PURE__ */ n(
|
|
2174
|
-
|
|
2165
|
+
Qe,
|
|
2175
2166
|
{
|
|
2176
2167
|
open: e,
|
|
2177
2168
|
onClose: s,
|
|
@@ -2181,7 +2172,7 @@ function gt({
|
|
|
2181
2172
|
/* @__PURE__ */ n("span", { className: "mono", children: a.scenarioCode })
|
|
2182
2173
|
] }),
|
|
2183
2174
|
children: /* @__PURE__ */ n(
|
|
2184
|
-
|
|
2175
|
+
Rn,
|
|
2185
2176
|
{
|
|
2186
2177
|
className: "osc-run-tabs",
|
|
2187
2178
|
items: [
|
|
@@ -2190,7 +2181,7 @@ function gt({
|
|
|
2190
2181
|
label: "最近运行",
|
|
2191
2182
|
children: /* @__PURE__ */ t("section", { className: "panel", children: [
|
|
2192
2183
|
/* @__PURE__ */ n("div", { className: "panel-head osc-toolline", children: /* @__PURE__ */ n("div", { className: "actions", children: /* @__PURE__ */ n(
|
|
2193
|
-
|
|
2184
|
+
tt,
|
|
2194
2185
|
{
|
|
2195
2186
|
detail: a,
|
|
2196
2187
|
actions: o,
|
|
@@ -2199,7 +2190,7 @@ function gt({
|
|
|
2199
2190
|
onDeleted: h
|
|
2200
2191
|
}
|
|
2201
2192
|
) }) }),
|
|
2202
|
-
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(
|
|
2193
|
+
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(ot, { state: l }) })
|
|
2203
2194
|
] })
|
|
2204
2195
|
},
|
|
2205
2196
|
{
|
|
@@ -2207,18 +2198,18 @@ function gt({
|
|
|
2207
2198
|
label: /* @__PURE__ */ t("span", { children: [
|
|
2208
2199
|
"失败项 ",
|
|
2209
2200
|
a.failedItemCount,
|
|
2210
|
-
/* @__PURE__ */ n(F, { title: "失败不会自动重试:需人工修复后触发下一轮同步,修复后核对水位是否推进。", children: /* @__PURE__ */ n(
|
|
2201
|
+
/* @__PURE__ */ n(F, { title: "失败不会自动重试:需人工修复后触发下一轮同步,修复后核对水位是否推进。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) })
|
|
2211
2202
|
] }),
|
|
2212
|
-
children: /* @__PURE__ */ n("section", { className: "panel", children: /* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(
|
|
2203
|
+
children: /* @__PURE__ */ n("section", { className: "panel", children: /* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(rt, { state: l }) }) })
|
|
2213
2204
|
},
|
|
2214
2205
|
{
|
|
2215
2206
|
key: "space",
|
|
2216
2207
|
label: /* @__PURE__ */ t("span", { children: [
|
|
2217
2208
|
"空间档案",
|
|
2218
|
-
/* @__PURE__ */ n(F, { title: "空间编码只读:创建后不可改、删除后不复用。更新投影走结构工单,同一空间就地 diff,重放完成前场景不可读;删除为软删,编码永久作废。", children: /* @__PURE__ */ n(
|
|
2209
|
+
/* @__PURE__ */ n(F, { title: "空间编码只读:创建后不可改、删除后不复用。更新投影走结构工单,同一空间就地 diff,重放完成前场景不可读;删除为软删,编码永久作废。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) })
|
|
2219
2210
|
] }),
|
|
2220
|
-
children: /* @__PURE__ */ t(
|
|
2221
|
-
/* @__PURE__ */ n(
|
|
2211
|
+
children: /* @__PURE__ */ t(Z, { children: [
|
|
2212
|
+
/* @__PURE__ */ n(lt, { detail: a }),
|
|
2222
2213
|
/* @__PURE__ */ t("section", { className: "panel mt-16", children: [
|
|
2223
2214
|
/* @__PURE__ */ t("div", { className: "panel-head", children: [
|
|
2224
2215
|
/* @__PURE__ */ t("h3", { children: [
|
|
@@ -2227,21 +2218,21 @@ function gt({
|
|
|
2227
2218
|
] }),
|
|
2228
2219
|
/* @__PURE__ */ t("div", { className: "actions", children: [
|
|
2229
2220
|
/* @__PURE__ */ n("span", { className: "hint", children: ((u = a.activeRun) == null ? void 0 : u.runCode) ?? "尚无运行" }),
|
|
2230
|
-
/* @__PURE__ */ n(F, { title: "重放不是清空重建:写入按 upsert 覆盖,删除只发生在成员退出与目标类型被移除;重跑全量不改结构,运行期间增量暂停。", children: /* @__PURE__ */ n(
|
|
2221
|
+
/* @__PURE__ */ n(F, { title: "重放不是清空重建:写入按 upsert 覆盖,删除只发生在成员退出与目标类型被移除;重跑全量不改结构,运行期间增量暂停。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) })
|
|
2231
2222
|
] })
|
|
2232
2223
|
] }),
|
|
2233
|
-
/* @__PURE__ */ n("div", { className: "panel-body", children: /* @__PURE__ */ n(
|
|
2224
|
+
/* @__PURE__ */ n("div", { className: "panel-body", children: /* @__PURE__ */ n(ct, { detail: a }) })
|
|
2234
2225
|
] }),
|
|
2235
2226
|
/* @__PURE__ */ t("section", { className: "panel mt-16", children: [
|
|
2236
2227
|
/* @__PURE__ */ t("div", { className: "panel-head", children: [
|
|
2237
2228
|
/* @__PURE__ */ t("h3", { children: [
|
|
2238
|
-
/* @__PURE__ */ n(
|
|
2229
|
+
/* @__PURE__ */ n(ln, {}),
|
|
2239
2230
|
" 投影版本"
|
|
2240
2231
|
] }),
|
|
2241
2232
|
/* @__PURE__ */ n("span", { className: "hint", children: "历史版本不可修改" })
|
|
2242
2233
|
] }),
|
|
2243
2234
|
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(
|
|
2244
|
-
|
|
2235
|
+
nt,
|
|
2245
2236
|
{
|
|
2246
2237
|
projections: l.projections,
|
|
2247
2238
|
loading: l.projectionsLoading
|
|
@@ -2256,16 +2247,16 @@ function gt({
|
|
|
2256
2247
|
}
|
|
2257
2248
|
);
|
|
2258
2249
|
}
|
|
2259
|
-
const
|
|
2260
|
-
async function
|
|
2250
|
+
const fe = "/kb/v1/ontology/scenario", ve = () => ({ "X-Tenant-Code": Xn() });
|
|
2251
|
+
async function Ae(e) {
|
|
2261
2252
|
try {
|
|
2262
2253
|
return await e();
|
|
2263
2254
|
} catch (s) {
|
|
2264
|
-
|
|
2255
|
+
Xe("请求失败", s.message || "服务器错误", "error");
|
|
2265
2256
|
return;
|
|
2266
2257
|
}
|
|
2267
2258
|
}
|
|
2268
|
-
function
|
|
2259
|
+
function dt(e) {
|
|
2269
2260
|
return {
|
|
2270
2261
|
...e,
|
|
2271
2262
|
total: Number(e.total),
|
|
@@ -2273,101 +2264,101 @@ function ft(e) {
|
|
|
2273
2264
|
size: Number(e.size)
|
|
2274
2265
|
};
|
|
2275
2266
|
}
|
|
2276
|
-
const
|
|
2267
|
+
const ut = {
|
|
2277
2268
|
DRAFT: 1,
|
|
2278
2269
|
PUBLISHED: 2,
|
|
2279
2270
|
DISABLED: 3
|
|
2280
2271
|
};
|
|
2281
|
-
async function
|
|
2282
|
-
const s = await
|
|
2283
|
-
() =>
|
|
2272
|
+
async function ht(e) {
|
|
2273
|
+
const s = await Ae(
|
|
2274
|
+
() => ge(`${fe}/template/page`, {
|
|
2284
2275
|
method: "post",
|
|
2285
2276
|
data: {
|
|
2286
2277
|
scenarioCode: e.scenarioCode,
|
|
2287
|
-
status: e.status ?
|
|
2278
|
+
status: e.status ? ut[e.status] : void 0,
|
|
2288
2279
|
keyword: e.keyword,
|
|
2289
2280
|
current: e.current ?? 1,
|
|
2290
2281
|
size: e.size ?? 100
|
|
2291
2282
|
},
|
|
2292
|
-
headers:
|
|
2283
|
+
headers: ve()
|
|
2293
2284
|
})
|
|
2294
2285
|
);
|
|
2295
|
-
return s &&
|
|
2286
|
+
return s && dt(s);
|
|
2296
2287
|
}
|
|
2297
2288
|
function gn(e, s) {
|
|
2298
|
-
return
|
|
2299
|
-
() =>
|
|
2289
|
+
return Ae(
|
|
2290
|
+
() => ge(`${fe}/template/detail`, {
|
|
2300
2291
|
method: "post",
|
|
2301
2292
|
data: { scenarioCode: e, id: s },
|
|
2302
|
-
headers:
|
|
2293
|
+
headers: ve()
|
|
2303
2294
|
})
|
|
2304
2295
|
);
|
|
2305
2296
|
}
|
|
2306
|
-
function
|
|
2307
|
-
return
|
|
2308
|
-
() =>
|
|
2297
|
+
function mt(e) {
|
|
2298
|
+
return Ae(
|
|
2299
|
+
() => ge(`${fe}/template/create`, {
|
|
2309
2300
|
method: "post",
|
|
2310
2301
|
data: e,
|
|
2311
|
-
headers:
|
|
2302
|
+
headers: ve()
|
|
2312
2303
|
})
|
|
2313
2304
|
);
|
|
2314
2305
|
}
|
|
2315
|
-
function
|
|
2316
|
-
return
|
|
2317
|
-
() =>
|
|
2306
|
+
function pt(e) {
|
|
2307
|
+
return Ae(
|
|
2308
|
+
() => ge(`${fe}/template/update`, {
|
|
2318
2309
|
method: "post",
|
|
2319
2310
|
data: e,
|
|
2320
|
-
headers:
|
|
2311
|
+
headers: ve()
|
|
2321
2312
|
})
|
|
2322
2313
|
);
|
|
2323
2314
|
}
|
|
2324
|
-
function
|
|
2325
|
-
return
|
|
2326
|
-
() =>
|
|
2315
|
+
function gt(e, s) {
|
|
2316
|
+
return Ae(
|
|
2317
|
+
() => ge(`${fe}/template/delete`, {
|
|
2327
2318
|
method: "post",
|
|
2328
2319
|
data: { scenarioCode: e, id: s },
|
|
2329
|
-
headers:
|
|
2320
|
+
headers: ve()
|
|
2330
2321
|
})
|
|
2331
2322
|
);
|
|
2332
2323
|
}
|
|
2333
|
-
function
|
|
2334
|
-
return
|
|
2335
|
-
() =>
|
|
2324
|
+
function Hn(e, s) {
|
|
2325
|
+
return Ae(
|
|
2326
|
+
() => ge(`${fe}/template/publish`, {
|
|
2336
2327
|
method: "post",
|
|
2337
2328
|
data: { scenarioCode: e, id: s },
|
|
2338
|
-
headers:
|
|
2329
|
+
headers: ve()
|
|
2339
2330
|
})
|
|
2340
2331
|
);
|
|
2341
2332
|
}
|
|
2342
|
-
function
|
|
2343
|
-
return
|
|
2344
|
-
() =>
|
|
2333
|
+
function Kn(e, s) {
|
|
2334
|
+
return Ae(
|
|
2335
|
+
() => ge(`${fe}/template/disable`, {
|
|
2345
2336
|
method: "post",
|
|
2346
2337
|
data: { scenarioCode: e, id: s },
|
|
2347
|
-
headers:
|
|
2338
|
+
headers: ve()
|
|
2348
2339
|
})
|
|
2349
2340
|
);
|
|
2350
2341
|
}
|
|
2351
|
-
function
|
|
2352
|
-
return
|
|
2342
|
+
function ft(e, s, a) {
|
|
2343
|
+
return ge(`${fe}/template/debug`, {
|
|
2353
2344
|
method: "post",
|
|
2354
2345
|
data: { scenarioCode: e, id: s, paramValues: a },
|
|
2355
|
-
headers:
|
|
2346
|
+
headers: ve(),
|
|
2356
2347
|
silent: !0
|
|
2357
2348
|
});
|
|
2358
2349
|
}
|
|
2359
|
-
function
|
|
2360
|
-
return
|
|
2350
|
+
function vt(e) {
|
|
2351
|
+
return ge(`${fe}/template/generate-ngql`, {
|
|
2361
2352
|
method: "post",
|
|
2362
2353
|
data: { instruction: e },
|
|
2363
|
-
headers:
|
|
2354
|
+
headers: ve(),
|
|
2364
2355
|
silent: !0
|
|
2365
2356
|
});
|
|
2366
2357
|
}
|
|
2367
|
-
function
|
|
2368
|
-
const { message: a } = Fe.useApp(), [l, o] = p(!1), [c, r] = p(null), [h, u] = p(), [m, d] = p(!1), [b, i] = p(!1), g = ce(0), C =
|
|
2358
|
+
function yt(e, s) {
|
|
2359
|
+
const { message: a } = Fe.useApp(), [l, o] = p(!1), [c, r] = p(null), [h, u] = p(), [m, d] = p(!1), [b, i] = p(!1), g = ce(0), C = L(() => {
|
|
2369
2360
|
r(null), u(void 0), o(!0);
|
|
2370
|
-
}, []), v =
|
|
2361
|
+
}, []), v = L(
|
|
2371
2362
|
(k) => {
|
|
2372
2363
|
r(k), u(void 0), d(!0), o(!0);
|
|
2373
2364
|
const x = ++g.current;
|
|
@@ -2376,9 +2367,9 @@ function wt(e, s) {
|
|
|
2376
2367
|
});
|
|
2377
2368
|
},
|
|
2378
2369
|
[e]
|
|
2379
|
-
), f =
|
|
2370
|
+
), f = L(() => {
|
|
2380
2371
|
g.current++, o(!1);
|
|
2381
|
-
}, []), y =
|
|
2372
|
+
}, []), y = L(
|
|
2382
2373
|
async (k) => {
|
|
2383
2374
|
i(!0);
|
|
2384
2375
|
const x = {
|
|
@@ -2387,14 +2378,14 @@ function wt(e, s) {
|
|
|
2387
2378
|
id: c ?? void 0
|
|
2388
2379
|
};
|
|
2389
2380
|
try {
|
|
2390
|
-
const w = c ? await
|
|
2381
|
+
const w = c ? await pt(x) : await mt(x);
|
|
2391
2382
|
return w && (r(w.id), u(w), a.success("已保存为草稿;发布须先在右侧调试台试运行通过"), s()), w;
|
|
2392
2383
|
} finally {
|
|
2393
2384
|
i(!1);
|
|
2394
2385
|
}
|
|
2395
2386
|
},
|
|
2396
2387
|
[c, a, s, e]
|
|
2397
|
-
), T =
|
|
2388
|
+
), T = L(() => {
|
|
2398
2389
|
if (!c)
|
|
2399
2390
|
return;
|
|
2400
2391
|
const k = ++g.current;
|
|
@@ -2415,17 +2406,17 @@ function wt(e, s) {
|
|
|
2415
2406
|
refreshDetail: T
|
|
2416
2407
|
};
|
|
2417
2408
|
}
|
|
2418
|
-
const
|
|
2419
|
-
function
|
|
2409
|
+
const Nt = /\{\{(\w+)\}\}/g;
|
|
2410
|
+
function bt(e) {
|
|
2420
2411
|
if (!e)
|
|
2421
2412
|
return [];
|
|
2422
2413
|
const s = [], a = /* @__PURE__ */ new Set();
|
|
2423
|
-
for (const l of e.matchAll(
|
|
2414
|
+
for (const l of e.matchAll(Nt))
|
|
2424
2415
|
a.has(l[1]) || (a.add(l[1]), s.push(l[1]));
|
|
2425
2416
|
return s;
|
|
2426
2417
|
}
|
|
2427
|
-
const
|
|
2428
|
-
function
|
|
2418
|
+
const Tt = "PRESERVE";
|
|
2419
|
+
function St(e) {
|
|
2429
2420
|
if (!e)
|
|
2430
2421
|
return null;
|
|
2431
2422
|
try {
|
|
@@ -2434,8 +2425,8 @@ function Rt(e) {
|
|
|
2434
2425
|
return null;
|
|
2435
2426
|
}
|
|
2436
2427
|
}
|
|
2437
|
-
function
|
|
2438
|
-
if (e.identityStrategy !==
|
|
2428
|
+
function Ct(e) {
|
|
2429
|
+
if (e.identityStrategy !== Tt)
|
|
2439
2430
|
return [];
|
|
2440
2431
|
const s = /* @__PURE__ */ new Set();
|
|
2441
2432
|
for (const a of e.typeTransforms || [])
|
|
@@ -2450,9 +2441,9 @@ function Dt(e) {
|
|
|
2450
2441
|
function fn(e) {
|
|
2451
2442
|
return { value: e, label: e };
|
|
2452
2443
|
}
|
|
2453
|
-
function
|
|
2444
|
+
function wt(e, s) {
|
|
2454
2445
|
const [a, l] = p(), [o, c] = p(!1), [r, h] = p(!1), u = ce(null);
|
|
2455
|
-
return
|
|
2446
|
+
return z(() => {
|
|
2456
2447
|
if (!s || !e || u.current === e)
|
|
2457
2448
|
return;
|
|
2458
2449
|
let m = !0;
|
|
@@ -2463,7 +2454,7 @@ function xt(e, s) {
|
|
|
2463
2454
|
};
|
|
2464
2455
|
}, [s, e]), W(() => {
|
|
2465
2456
|
var C;
|
|
2466
|
-
const m =
|
|
2457
|
+
const m = St((C = a == null ? void 0 : a.activeProjection) == null ? void 0 : C.compiledPlan);
|
|
2467
2458
|
if (!m)
|
|
2468
2459
|
return {
|
|
2469
2460
|
tags: [],
|
|
@@ -2472,7 +2463,7 @@ function xt(e, s) {
|
|
|
2472
2463
|
loading: r,
|
|
2473
2464
|
hint: o ? a ? "场景尚无生效投影;配置型模板可保存,生效后才能调试与调用" : "场景结构加载失败,配置型检索的类型下拉暂不可用" : void 0
|
|
2474
2465
|
};
|
|
2475
|
-
const b =
|
|
2466
|
+
const b = Ct(m).map(fn), i = (m.tags || []).map((v) => fn(v.name)), g = /* @__PURE__ */ new Map();
|
|
2476
2467
|
for (const v of m.edges || []) {
|
|
2477
2468
|
const f = g.get(v.name) || { value: v.name, label: v.name, pairs: [] };
|
|
2478
2469
|
f.pairs.some(
|
|
@@ -2488,18 +2479,18 @@ function xt(e, s) {
|
|
|
2488
2479
|
};
|
|
2489
2480
|
}, [a, o, r]);
|
|
2490
2481
|
}
|
|
2491
|
-
function
|
|
2492
|
-
const [l, o] = p({}), [c, r] = p(!1), [h, u] = p(null), [m, d] = p(null), b =
|
|
2482
|
+
function It(e, s, a) {
|
|
2483
|
+
const [l, o] = p({}), [c, r] = p(!1), [h, u] = p(null), [m, d] = p(null), b = L((C, v) => {
|
|
2493
2484
|
o((f) => ({ ...f, [C]: v }));
|
|
2494
|
-
}, []), i =
|
|
2485
|
+
}, []), i = L(() => {
|
|
2495
2486
|
o({}), u(null), d(null);
|
|
2496
|
-
}, []), g =
|
|
2487
|
+
}, []), g = L(
|
|
2497
2488
|
async (C) => {
|
|
2498
2489
|
const v = C ?? s;
|
|
2499
2490
|
if (v) {
|
|
2500
2491
|
r(!0), d(null);
|
|
2501
2492
|
try {
|
|
2502
|
-
const f = await
|
|
2493
|
+
const f = await ft(e, v, l);
|
|
2503
2494
|
u(f), a();
|
|
2504
2495
|
} catch (f) {
|
|
2505
2496
|
u(null), d(f.message || "执行失败");
|
|
@@ -2512,7 +2503,7 @@ function Lt(e, s, a) {
|
|
|
2512
2503
|
);
|
|
2513
2504
|
return { values: l, setValue: b, reset: i, run: g, running: c, result: h, error: m };
|
|
2514
2505
|
}
|
|
2515
|
-
const
|
|
2506
|
+
const Vn = [
|
|
2516
2507
|
{ value: 1, label: "图检索", color: "green", desc: "写 nGQL 模板,在场景对象与关系上精确查" },
|
|
2517
2508
|
{ value: 2, label: "向量检索", color: "blue", desc: "用一句话描述,按语义相似度找场景对象" },
|
|
2518
2509
|
{ value: 3, label: "混合检索", color: "purple", desc: "先按语义找场景对象,再沿场景关系找关联对象" }
|
|
@@ -2520,14 +2511,14 @@ const jn = [
|
|
|
2520
2511
|
{ value: "both", label: "双向" },
|
|
2521
2512
|
{ value: "out", label: "向外" },
|
|
2522
2513
|
{ value: "in", label: "向内" }
|
|
2523
|
-
],
|
|
2514
|
+
], jn = /^[a-z][a-z0-9_]{0,63}$/;
|
|
2524
2515
|
function Ge(e) {
|
|
2525
2516
|
return e === 2 || e === 3 ? e : 1;
|
|
2526
2517
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return
|
|
2518
|
+
function qn(e) {
|
|
2519
|
+
return Vn[Ge(e) - 1];
|
|
2529
2520
|
}
|
|
2530
|
-
function
|
|
2521
|
+
function kt(e) {
|
|
2531
2522
|
return e === 2 ? { scope: "node", queryParam: "query", topK: 5, minScore: 0.6 } : e === 3 ? {
|
|
2532
2523
|
queryParam: "query",
|
|
2533
2524
|
topK: 5,
|
|
@@ -2570,16 +2561,16 @@ function Pe(e, s, a) {
|
|
|
2570
2561
|
return e === 1 ? `1|${a.trim()}` : `${e}|${JSON.stringify(je(e, s))}`;
|
|
2571
2562
|
}
|
|
2572
2563
|
function yn(e, s, a) {
|
|
2573
|
-
return e === 1 ? s : [{ name:
|
|
2564
|
+
return e === 1 ? s : [{ name: un(a), required: !0, type: "string", desc: "查询文本" }];
|
|
2574
2565
|
}
|
|
2575
|
-
function
|
|
2566
|
+
function un(e) {
|
|
2576
2567
|
return $e(e == null ? void 0 : e.queryParam) || "query";
|
|
2577
2568
|
}
|
|
2578
|
-
const
|
|
2569
|
+
const Gn = [
|
|
2579
2570
|
{ title: "标识", dataIndex: "id", key: "id", ellipsis: !0 },
|
|
2580
2571
|
{ title: "名称", dataIndex: "name", key: "name", ellipsis: !0 },
|
|
2581
2572
|
{ title: "得分", dataIndex: "score", key: "score", width: 80 }
|
|
2582
|
-
],
|
|
2573
|
+
], Et = [
|
|
2583
2574
|
{
|
|
2584
2575
|
title: "起点",
|
|
2585
2576
|
dataIndex: "sourceName",
|
|
@@ -2597,31 +2588,31 @@ const Qn = [
|
|
|
2597
2588
|
{ title: "层级", dataIndex: "hop", key: "hop", width: 64 },
|
|
2598
2589
|
{ title: "综合得分", dataIndex: "score", key: "score", width: 90 }
|
|
2599
2590
|
];
|
|
2600
|
-
function
|
|
2591
|
+
function Rt(e) {
|
|
2601
2592
|
return e.length > 0 && "source" in e[0] && "target" in e[0];
|
|
2602
2593
|
}
|
|
2603
|
-
function
|
|
2594
|
+
function Dt(e, s) {
|
|
2604
2595
|
return (e.length > 0 ? e : Object.keys(s[0] ?? {})).map((l) => ({ title: l, dataIndex: l, key: l, ellipsis: !0 }));
|
|
2605
2596
|
}
|
|
2606
|
-
function
|
|
2597
|
+
function xt(e, s, a) {
|
|
2607
2598
|
if (a.length > 0 && "score" in a[0]) {
|
|
2608
|
-
if (e === 3 &&
|
|
2609
|
-
return
|
|
2599
|
+
if (e === 3 && Rt(a))
|
|
2600
|
+
return Et;
|
|
2610
2601
|
if (e === 2 && "id" in a[0] && "name" in a[0])
|
|
2611
|
-
return
|
|
2602
|
+
return Gn;
|
|
2612
2603
|
}
|
|
2613
|
-
return
|
|
2604
|
+
return Dt(s, a);
|
|
2614
2605
|
}
|
|
2615
|
-
const
|
|
2606
|
+
const At = {
|
|
2616
2607
|
1: "空结果:语句执行成功但未命中数据(空结果是有效信号,不是错误)",
|
|
2617
2608
|
2: "没有找到达到最低相似度的场景对象(空结果是有效信号,不是错误)",
|
|
2618
2609
|
3: "没有找到相似对象,或沿关系没有找到可到达的对象(空结果是有效信号,不是错误)"
|
|
2619
2610
|
};
|
|
2620
|
-
function
|
|
2611
|
+
function Lt(e) {
|
|
2621
2612
|
return e < 1e3 ? `${Math.max(0, Math.round(e))} ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)} s` : e < 36e5 ? `${Math.round(e / 6e4)} min` : `${(e / 36e5).toFixed(1)} h`;
|
|
2622
2613
|
}
|
|
2623
|
-
function
|
|
2624
|
-
const s = Ge(e.retrievalType), a =
|
|
2614
|
+
function Pt({ result: e }) {
|
|
2615
|
+
const s = Ge(e.retrievalType), a = qn(s), l = s === 3, o = e.recall || [];
|
|
2625
2616
|
return /* @__PURE__ */ t("div", { className: "oss-debug-result", children: [
|
|
2626
2617
|
/* @__PURE__ */ t("div", { className: "oss-debug-meta", children: [
|
|
2627
2618
|
e.retrievalType ? /* @__PURE__ */ n(O, { color: a.color, children: a.label }) : null,
|
|
@@ -2633,17 +2624,17 @@ function Bt({ result: e }) {
|
|
|
2633
2624
|
l ? ` · 相似对象 ${e.recallCount ?? o.length} 条` : "",
|
|
2634
2625
|
` · 耗时 ${e.durationMs}ms`,
|
|
2635
2626
|
e.dataAsOf ? ` · 数据时点 ${Pa(e.dataAsOf)}` : "",
|
|
2636
|
-
e.lagMs != null ? ` · 滞后 ${
|
|
2627
|
+
e.lagMs != null ? ` · 滞后 ${Lt(e.lagMs)}` : ""
|
|
2637
2628
|
] })
|
|
2638
2629
|
] }),
|
|
2639
2630
|
l && o.length > 0 && /* @__PURE__ */ t("div", { className: "oss-debug-stage", children: [
|
|
2640
2631
|
/* @__PURE__ */ n("div", { className: "oss-debug-stage-title", children: "① 向量召回" }),
|
|
2641
2632
|
/* @__PURE__ */ n(
|
|
2642
|
-
|
|
2633
|
+
he,
|
|
2643
2634
|
{
|
|
2644
2635
|
rowKey: (c, r) => `recall-${r}`,
|
|
2645
2636
|
size: "small",
|
|
2646
|
-
columns:
|
|
2637
|
+
columns: Gn,
|
|
2647
2638
|
dataSource: o,
|
|
2648
2639
|
pagination: !1,
|
|
2649
2640
|
scroll: { x: "max-content" }
|
|
@@ -2665,14 +2656,14 @@ function Bt({ result: e }) {
|
|
|
2665
2656
|
}
|
|
2666
2657
|
),
|
|
2667
2658
|
/* @__PURE__ */ n(
|
|
2668
|
-
|
|
2659
|
+
he,
|
|
2669
2660
|
{
|
|
2670
2661
|
rowKey: "__rowKey",
|
|
2671
2662
|
size: "small",
|
|
2672
|
-
columns:
|
|
2663
|
+
columns: xt(s, e.columns, e.rows),
|
|
2673
2664
|
dataSource: e.rows.map((c, r) => ({ ...c, __rowKey: r })),
|
|
2674
2665
|
pagination: { pageSize: 10, size: "small", hideOnSinglePage: !0 },
|
|
2675
|
-
locale: { emptyText:
|
|
2666
|
+
locale: { emptyText: At[s] },
|
|
2676
2667
|
scroll: { x: "max-content" }
|
|
2677
2668
|
}
|
|
2678
2669
|
)
|
|
@@ -2683,14 +2674,14 @@ const Ke = {
|
|
|
2683
2674
|
optionFilterProp: "label",
|
|
2684
2675
|
style: { width: "100%" }
|
|
2685
2676
|
};
|
|
2686
|
-
function
|
|
2677
|
+
function $t({
|
|
2687
2678
|
mode: e,
|
|
2688
2679
|
config: s,
|
|
2689
2680
|
options: a,
|
|
2690
2681
|
onChange: l
|
|
2691
2682
|
}) {
|
|
2692
2683
|
var m;
|
|
2693
|
-
const o =
|
|
2684
|
+
const o = un(s), c = !jn.test(o), r = W(() => {
|
|
2694
2685
|
const d = s.startTag;
|
|
2695
2686
|
return d ? a.edges.filter(
|
|
2696
2687
|
(b) => b.pairs.some((i) => i.srcTag === d || i.dstTag === d)
|
|
@@ -2750,7 +2741,7 @@ function Ft({
|
|
|
2750
2741
|
)
|
|
2751
2742
|
] })
|
|
2752
2743
|
] }),
|
|
2753
|
-
e === 2 ? /* @__PURE__ */ t(
|
|
2744
|
+
e === 2 ? /* @__PURE__ */ t(Z, { children: [
|
|
2754
2745
|
/* @__PURE__ */ t("div", { className: "oss-config-field", children: [
|
|
2755
2746
|
/* @__PURE__ */ n("span", { className: "oss-config-label", children: "对象类型过滤" }),
|
|
2756
2747
|
/* @__PURE__ */ n(
|
|
@@ -2767,7 +2758,7 @@ function Ft({
|
|
|
2767
2758
|
)
|
|
2768
2759
|
] }),
|
|
2769
2760
|
/* @__PURE__ */ n("div", { className: `oss-config-note${a.hint ? " warn" : ""}`, children: a.hint || `在场景对象中按语义查找 · 相似度 ≥ ${s.minScore ?? 0.6} · 最多 ${s.topK ?? 5} 条` })
|
|
2770
|
-
] }) : /* @__PURE__ */ t(
|
|
2761
|
+
] }) : /* @__PURE__ */ t(Z, { children: [
|
|
2771
2762
|
/* @__PURE__ */ t("div", { className: "oss-config-grid", children: [
|
|
2772
2763
|
/* @__PURE__ */ t("div", { className: "oss-config-field", children: [
|
|
2773
2764
|
/* @__PURE__ */ t("span", { className: "oss-config-label", children: [
|
|
@@ -2869,12 +2860,12 @@ function Ft({
|
|
|
2869
2860
|
] })
|
|
2870
2861
|
] });
|
|
2871
2862
|
}
|
|
2872
|
-
function
|
|
2863
|
+
function Ot({
|
|
2873
2864
|
value: e,
|
|
2874
2865
|
disabled: s,
|
|
2875
2866
|
onChange: a
|
|
2876
2867
|
}) {
|
|
2877
|
-
return /* @__PURE__ */ n("div", { className: "oss-mode-row", role: "radiogroup", "aria-label": "检索模式", children:
|
|
2868
|
+
return /* @__PURE__ */ n("div", { className: "oss-mode-row", role: "radiogroup", "aria-label": "检索模式", children: Vn.map((l) => /* @__PURE__ */ t(
|
|
2878
2869
|
"button",
|
|
2879
2870
|
{
|
|
2880
2871
|
type: "button",
|
|
@@ -2891,36 +2882,36 @@ function Ut({
|
|
|
2891
2882
|
l.value
|
|
2892
2883
|
)) });
|
|
2893
2884
|
}
|
|
2894
|
-
function
|
|
2885
|
+
function Mt({
|
|
2895
2886
|
scenario: e,
|
|
2896
2887
|
domainName: s,
|
|
2897
2888
|
editor: a,
|
|
2898
2889
|
onPublished: l
|
|
2899
2890
|
}) {
|
|
2900
|
-
var
|
|
2901
|
-
const { message: o } = Fe.useApp(), [c] = De.useForm(), [r, h] = p(1), [u, m] = p({}), [d, b] = p({}), [i, g] = p(Pe(1, {}, "")), [C, v] = p(!1), [f, y] = p(!1), [T, k] = p(!1), [x, w] = p(""), [N, E] = p(!1), [D,
|
|
2891
|
+
var Le, ke, _, B, Te, Se, Ee;
|
|
2892
|
+
const { message: o } = Fe.useApp(), [c] = De.useForm(), [r, h] = p(1), [u, m] = p({}), [d, b] = p({}), [i, g] = p(Pe(1, {}, "")), [C, v] = p(!1), [f, y] = p(!1), [T, k] = p(!1), [x, w] = p(""), [N, E] = p(!1), [D, Y] = p(null), H = De.useWatch("serviceContent", c) || "", V = It(
|
|
2902
2893
|
e.scenarioCode,
|
|
2903
2894
|
a.editingId,
|
|
2904
2895
|
a.refreshDetail
|
|
2905
|
-
), { reset: R } = V, K =
|
|
2896
|
+
), { reset: R } = V, K = wt(
|
|
2906
2897
|
e.scenarioCode,
|
|
2907
2898
|
a.open && r !== 1
|
|
2908
|
-
),
|
|
2909
|
-
() =>
|
|
2910
|
-
var
|
|
2899
|
+
), q = W(() => bt(H), [H]), se = W(
|
|
2900
|
+
() => q.map((I) => {
|
|
2901
|
+
var M, S, $;
|
|
2911
2902
|
return {
|
|
2912
2903
|
name: I,
|
|
2913
|
-
required: ((
|
|
2904
|
+
required: ((M = d[I]) == null ? void 0 : M.required) ?? !1,
|
|
2914
2905
|
type: ((S = d[I]) == null ? void 0 : S.type) ?? "string",
|
|
2915
2906
|
desc: ($ = d[I]) == null ? void 0 : $.desc
|
|
2916
2907
|
};
|
|
2917
2908
|
}),
|
|
2918
|
-
[
|
|
2909
|
+
[q, d]
|
|
2919
2910
|
), ee = W(
|
|
2920
2911
|
() => yn(r, se, u),
|
|
2921
2912
|
[r, se, u]
|
|
2922
|
-
),
|
|
2923
|
-
|
|
2913
|
+
), G = Pe(r, u, H) !== i, le = ce(null);
|
|
2914
|
+
z(() => {
|
|
2924
2915
|
if (!a.open) {
|
|
2925
2916
|
le.current = null, c.resetFields(), h(1), m({}), b({}), g(Pe(1, {}, "")), R();
|
|
2926
2917
|
return;
|
|
@@ -2928,8 +2919,8 @@ function Ht({
|
|
|
2928
2919
|
if (a.detail) {
|
|
2929
2920
|
if (le.current !== a.detail.id) {
|
|
2930
2921
|
le.current = a.detail.id;
|
|
2931
|
-
const I = Ge(a.detail.retrievalType),
|
|
2932
|
-
h(I), m(
|
|
2922
|
+
const I = Ge(a.detail.retrievalType), M = I === 1 ? {} : je(I, a.detail.vectorConfig);
|
|
2923
|
+
h(I), m(M), c.setFieldsValue({
|
|
2933
2924
|
code: a.detail.serviceCode,
|
|
2934
2925
|
serviceName: a.detail.serviceName,
|
|
2935
2926
|
description: a.detail.description,
|
|
@@ -2939,42 +2930,42 @@ function Ht({
|
|
|
2939
2930
|
for (const $ of a.detail.params || [])
|
|
2940
2931
|
S[$.name] = $;
|
|
2941
2932
|
b(S), g(
|
|
2942
|
-
Pe(I,
|
|
2933
|
+
Pe(I, M, a.detail.serviceContent || "")
|
|
2943
2934
|
), R();
|
|
2944
2935
|
}
|
|
2945
2936
|
} else a.editingId || (le.current = null, c.resetFields(), h(1), m({}), b({}), g(Pe(1, {}, "")), R());
|
|
2946
2937
|
}, [a.open, a.detail, a.editingId, c, R]);
|
|
2947
|
-
const
|
|
2948
|
-
I !== r && (h(I), m(I === 1 ? {} :
|
|
2938
|
+
const me = (I) => {
|
|
2939
|
+
I !== r && (h(I), m(I === 1 ? {} : kt(I)), R());
|
|
2949
2940
|
}, re = (I) => {
|
|
2950
|
-
m((
|
|
2941
|
+
m((M) => ({ ...M, ...I }));
|
|
2951
2942
|
}, oe = (I) => {
|
|
2952
|
-
const
|
|
2943
|
+
const M = {
|
|
2953
2944
|
code: I.code.trim(),
|
|
2954
2945
|
serviceName: I.serviceName.trim(),
|
|
2955
2946
|
description: I.description,
|
|
2956
2947
|
retrievalType: r
|
|
2957
2948
|
};
|
|
2958
2949
|
if (r === 1)
|
|
2959
|
-
return { ...
|
|
2950
|
+
return { ...M, serviceContent: I.serviceContent.trim(), params: se };
|
|
2960
2951
|
const S = je(r, u);
|
|
2961
|
-
return
|
|
2962
|
-
...
|
|
2952
|
+
return jn.test(un(S)) ? r === 3 && (!S.startTag || !S.edgeType) ? (o.warning("请先选择混合检索的起点对象和关联关系"), null) : {
|
|
2953
|
+
...M,
|
|
2963
2954
|
serviceContent: "",
|
|
2964
2955
|
vectorConfig: S,
|
|
2965
2956
|
params: yn(r, se, S)
|
|
2966
2957
|
} : (o.warning("查询文本参数名不合法:小写字母开头,可含数字与下划线,最长 64 位"), null);
|
|
2967
|
-
},
|
|
2958
|
+
}, Q = async () => {
|
|
2968
2959
|
let I;
|
|
2969
2960
|
try {
|
|
2970
2961
|
I = await c.validateFields();
|
|
2971
2962
|
} catch {
|
|
2972
2963
|
return;
|
|
2973
2964
|
}
|
|
2974
|
-
const
|
|
2975
|
-
if (!
|
|
2965
|
+
const M = oe(I);
|
|
2966
|
+
if (!M)
|
|
2976
2967
|
return;
|
|
2977
|
-
const S = await a.save(
|
|
2968
|
+
const S = await a.save(M);
|
|
2978
2969
|
if (!S)
|
|
2979
2970
|
return;
|
|
2980
2971
|
const $ = Ge(S.retrievalType), P = $ === 1 ? {} : je($, S.vectorConfig);
|
|
@@ -2983,47 +2974,47 @@ function Ht({
|
|
|
2983
2974
|
), S;
|
|
2984
2975
|
}, te = async () => {
|
|
2985
2976
|
let I = a.editingId;
|
|
2986
|
-
if (!I ||
|
|
2987
|
-
const
|
|
2988
|
-
if (!
|
|
2977
|
+
if (!I || G) {
|
|
2978
|
+
const M = await Q();
|
|
2979
|
+
if (!M)
|
|
2989
2980
|
return;
|
|
2990
|
-
I =
|
|
2981
|
+
I = M.id;
|
|
2991
2982
|
}
|
|
2992
2983
|
await V.run(I);
|
|
2993
|
-
},
|
|
2994
|
-
if (!(!await
|
|
2984
|
+
}, de = async () => {
|
|
2985
|
+
if (!(!await Q() || !a.editingId)) {
|
|
2995
2986
|
v(!0);
|
|
2996
2987
|
try {
|
|
2997
|
-
await
|
|
2988
|
+
await Hn(e.scenarioCode, a.editingId) && (o.success("已发布:消费方可按服务编码调用"), a.refreshDetail(), l());
|
|
2998
2989
|
} finally {
|
|
2999
2990
|
v(!1);
|
|
3000
2991
|
}
|
|
3001
2992
|
}
|
|
3002
|
-
},
|
|
2993
|
+
}, ye = async () => {
|
|
3003
2994
|
const I = x.trim();
|
|
3004
2995
|
if (I) {
|
|
3005
|
-
E(!0),
|
|
2996
|
+
E(!0), Y(null);
|
|
3006
2997
|
try {
|
|
3007
|
-
const
|
|
3008
|
-
c.setFieldValue("serviceContent",
|
|
3009
|
-
} catch (
|
|
3010
|
-
|
|
2998
|
+
const M = await vt(I);
|
|
2999
|
+
c.setFieldValue("serviceContent", M), k(!1), w(""), o.success("已生成 nGQL,请核对占位符与 LIMIT 后保存调试");
|
|
3000
|
+
} catch (M) {
|
|
3001
|
+
Y(M.message || "生成失败,请调整描述后重试");
|
|
3011
3002
|
} finally {
|
|
3012
3003
|
E(!1);
|
|
3013
3004
|
}
|
|
3014
3005
|
}
|
|
3015
|
-
},
|
|
3006
|
+
}, Ne = async () => {
|
|
3016
3007
|
if (a.editingId) {
|
|
3017
3008
|
y(!0);
|
|
3018
3009
|
try {
|
|
3019
|
-
await
|
|
3010
|
+
await Kn(e.scenarioCode, a.editingId) && (o.success("已下线"), a.refreshDetail(), l());
|
|
3020
3011
|
} finally {
|
|
3021
3012
|
y(!1);
|
|
3022
3013
|
}
|
|
3023
3014
|
}
|
|
3024
|
-
},
|
|
3015
|
+
}, pe = !!a.editingId && !!a.detail && (((Le = a.detail) == null ? void 0 : Le.status) === "DRAFT" || ((ke = a.detail) == null ? void 0 : ke.status) === "DISABLED") && !!((_ = a.detail) != null && _.debugPassed) && !G, be = ((B = a.detail) == null ? void 0 : B.status) === "PUBLISHED" ? "已发布" : ((Te = a.detail) == null ? void 0 : Te.status) === "DISABLED" ? "已下线" : "草稿";
|
|
3025
3016
|
return /* @__PURE__ */ t(
|
|
3026
|
-
|
|
3017
|
+
Qe,
|
|
3027
3018
|
{
|
|
3028
3019
|
open: a.open,
|
|
3029
3020
|
onClose: a.close,
|
|
@@ -3032,7 +3023,7 @@ function Ht({
|
|
|
3032
3023
|
destroyOnClose: !0,
|
|
3033
3024
|
footer: /* @__PURE__ */ t("div", { className: "oss-drawer-footer", children: [
|
|
3034
3025
|
/* @__PURE__ */ t("span", { className: "oss-drawer-status", children: [
|
|
3035
|
-
|
|
3026
|
+
be,
|
|
3036
3027
|
a.detail && a.detail.status !== "PUBLISHED" && /* @__PURE__ */ n(
|
|
3037
3028
|
O,
|
|
3038
3029
|
{
|
|
@@ -3041,23 +3032,23 @@ function Ht({
|
|
|
3041
3032
|
children: a.detail.debugPassed ? "调试已通过" : "未调试"
|
|
3042
3033
|
}
|
|
3043
3034
|
),
|
|
3044
|
-
a.editingId &&
|
|
3035
|
+
a.editingId && G && /* @__PURE__ */ n(O, { style: { marginLeft: 8 }, color: "red", children: "内容已修改,保存后调试标记重置" })
|
|
3045
3036
|
] }),
|
|
3046
|
-
/* @__PURE__ */ n(
|
|
3047
|
-
/* @__PURE__ */ n(
|
|
3048
|
-
((
|
|
3049
|
-
|
|
3037
|
+
/* @__PURE__ */ n(A, { onClick: a.close, children: "取消" }),
|
|
3038
|
+
/* @__PURE__ */ n(A, { loading: a.saving, onClick: () => void Q(), children: "保存草稿" }),
|
|
3039
|
+
((Se = a.detail) == null ? void 0 : Se.status) === "PUBLISHED" ? /* @__PURE__ */ n(A, { danger: !0, loading: f, onClick: () => void Ne(), children: "下线模板" }) : /* @__PURE__ */ n(F, { title: pe ? "" : "须先保存并调试通过", children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
3040
|
+
A,
|
|
3050
3041
|
{
|
|
3051
3042
|
type: "primary",
|
|
3052
|
-
disabled: !
|
|
3043
|
+
disabled: !pe,
|
|
3053
3044
|
loading: C,
|
|
3054
|
-
onClick: () => void
|
|
3045
|
+
onClick: () => void de(),
|
|
3055
3046
|
children: "发布"
|
|
3056
3047
|
}
|
|
3057
3048
|
) }) })
|
|
3058
3049
|
] }),
|
|
3059
3050
|
children: [
|
|
3060
|
-
/* @__PURE__ */ t(
|
|
3051
|
+
/* @__PURE__ */ t(We, { spinning: a.loading, children: [
|
|
3061
3052
|
/* @__PURE__ */ t("div", { className: "oss-drawer-context", children: [
|
|
3062
3053
|
/* @__PURE__ */ t("span", { children: [
|
|
3063
3054
|
"场景 ",
|
|
@@ -3071,7 +3062,7 @@ function Ht({
|
|
|
3071
3062
|
/* @__PURE__ */ t("span", { children: [
|
|
3072
3063
|
"域",
|
|
3073
3064
|
" ",
|
|
3074
|
-
/* @__PURE__ */ n("b", { children: s ?? (e.domainCode ?
|
|
3065
|
+
/* @__PURE__ */ n("b", { children: s ?? (e.domainCode ? ze({ domainCode: e.domainCode }) : "—") })
|
|
3075
3066
|
] }),
|
|
3076
3067
|
/* @__PURE__ */ n("span", { className: "oss-drawer-context-sep", children: "·" }),
|
|
3077
3068
|
/* @__PURE__ */ t("span", { children: [
|
|
@@ -3082,7 +3073,7 @@ function Ht({
|
|
|
3082
3073
|
/* @__PURE__ */ t("div", { className: "oss-editor-layout", children: [
|
|
3083
3074
|
/* @__PURE__ */ t("div", { className: "oss-editor-left", children: [
|
|
3084
3075
|
/* @__PURE__ */ n("div", { className: "oss-mode-label", children: "检索模式" }),
|
|
3085
|
-
/* @__PURE__ */ n(
|
|
3076
|
+
/* @__PURE__ */ n(Ot, { value: r, onChange: me }),
|
|
3086
3077
|
/* @__PURE__ */ t(De, { form: c, layout: "vertical", children: [
|
|
3087
3078
|
/* @__PURE__ */ n(
|
|
3088
3079
|
De.Item,
|
|
@@ -3125,16 +3116,16 @@ function Ht({
|
|
|
3125
3116
|
label: /* @__PURE__ */ t("div", { className: "oss-ngql-label", children: [
|
|
3126
3117
|
/* @__PURE__ */ t("span", { children: [
|
|
3127
3118
|
"nGQL 模板",
|
|
3128
|
-
/* @__PURE__ */ n(F, { title: "{{param}} 占位,字符串参数请自行加引号,须含 LIMIT,仅可用当前场景的对象与关系。", children: /* @__PURE__ */ n(
|
|
3119
|
+
/* @__PURE__ */ n(F, { title: "{{param}} 占位,字符串参数请自行加引号,须含 LIMIT,仅可用当前场景的对象与关系。", children: /* @__PURE__ */ n(Ce, { className: "osc-help" }) })
|
|
3129
3120
|
] }),
|
|
3130
3121
|
/* @__PURE__ */ n(
|
|
3131
|
-
|
|
3122
|
+
A,
|
|
3132
3123
|
{
|
|
3133
3124
|
size: "small",
|
|
3134
3125
|
type: "link",
|
|
3135
|
-
icon: /* @__PURE__ */ n(
|
|
3126
|
+
icon: /* @__PURE__ */ n(Ma, {}),
|
|
3136
3127
|
onClick: () => {
|
|
3137
|
-
|
|
3128
|
+
Y(null), k(!0);
|
|
3138
3129
|
},
|
|
3139
3130
|
children: "AI 生成"
|
|
3140
3131
|
}
|
|
@@ -3151,7 +3142,7 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3151
3142
|
)
|
|
3152
3143
|
}
|
|
3153
3144
|
) : /* @__PURE__ */ n(
|
|
3154
|
-
|
|
3145
|
+
$t,
|
|
3155
3146
|
{
|
|
3156
3147
|
mode: r,
|
|
3157
3148
|
config: u,
|
|
@@ -3160,16 +3151,16 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3160
3151
|
}
|
|
3161
3152
|
)
|
|
3162
3153
|
] }),
|
|
3163
|
-
r === 1 &&
|
|
3154
|
+
r === 1 && q.length > 0 && /* @__PURE__ */ t("div", { className: "oss-param-defs", children: [
|
|
3164
3155
|
/* @__PURE__ */ n("div", { className: "oss-param-title", children: "参数定义(自动提取)" }),
|
|
3165
|
-
|
|
3166
|
-
var
|
|
3156
|
+
q.map((I) => {
|
|
3157
|
+
var M, S, $;
|
|
3167
3158
|
return /* @__PURE__ */ t("div", { className: "oss-param-row", children: [
|
|
3168
3159
|
/* @__PURE__ */ n(
|
|
3169
3160
|
O,
|
|
3170
3161
|
{
|
|
3171
3162
|
className: "oss-param-chip",
|
|
3172
|
-
color: (
|
|
3163
|
+
color: (M = d[I]) != null && M.required ? "blue" : "default",
|
|
3173
3164
|
children: `{{${I}}}`
|
|
3174
3165
|
}
|
|
3175
3166
|
),
|
|
@@ -3218,7 +3209,7 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3218
3209
|
] }),
|
|
3219
3210
|
!a.editingId && /* @__PURE__ */ n("div", { className: "oss-debug-hint", children: "首次执行调试会先保存当前内容为草稿。" }),
|
|
3220
3211
|
ee.length === 0 && /* @__PURE__ */ n("div", { className: "oss-debug-hint", children: "当前模板无参数,可直接试运行。" }),
|
|
3221
|
-
a.editingId &&
|
|
3212
|
+
a.editingId && G && /* @__PURE__ */ n("div", { className: "oss-debug-hint", children: "执行调试会先保存当前修改,再按保存后的版本运行。" }),
|
|
3222
3213
|
ee.map((I) => /* @__PURE__ */ t("div", { className: "oss-debug-param", children: [
|
|
3223
3214
|
/* @__PURE__ */ t("span", { className: "oss-debug-param-name", children: [
|
|
3224
3215
|
I.name,
|
|
@@ -3229,13 +3220,13 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3229
3220
|
{
|
|
3230
3221
|
size: "small",
|
|
3231
3222
|
value: V.values[I.name] || "",
|
|
3232
|
-
onChange: (
|
|
3223
|
+
onChange: (M) => V.setValue(I.name, M.target.value),
|
|
3233
3224
|
placeholder: I.desc || `参数 ${I.name}`
|
|
3234
3225
|
}
|
|
3235
3226
|
)
|
|
3236
3227
|
] }, I.name)),
|
|
3237
3228
|
/* @__PURE__ */ n(
|
|
3238
|
-
|
|
3229
|
+
A,
|
|
3239
3230
|
{
|
|
3240
3231
|
block: !0,
|
|
3241
3232
|
type: "primary",
|
|
@@ -3249,12 +3240,12 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3249
3240
|
/* @__PURE__ */ n("b", { children: "执行被拦截" }),
|
|
3250
3241
|
/* @__PURE__ */ n("p", { children: V.error })
|
|
3251
3242
|
] }),
|
|
3252
|
-
V.result && /* @__PURE__ */ n(
|
|
3243
|
+
V.result && /* @__PURE__ */ n(Pt, { result: V.result })
|
|
3253
3244
|
] })
|
|
3254
3245
|
] })
|
|
3255
3246
|
] }),
|
|
3256
3247
|
/* @__PURE__ */ t(
|
|
3257
|
-
|
|
3248
|
+
En,
|
|
3258
3249
|
{
|
|
3259
3250
|
open: T,
|
|
3260
3251
|
title: "AI 生成 nGQL",
|
|
@@ -3262,7 +3253,7 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3262
3253
|
cancelText: "取消",
|
|
3263
3254
|
confirmLoading: N,
|
|
3264
3255
|
okButtonProps: { disabled: !x.trim() },
|
|
3265
|
-
onOk: () => void
|
|
3256
|
+
onOk: () => void ye(),
|
|
3266
3257
|
onCancel: () => k(!1),
|
|
3267
3258
|
destroyOnClose: !0,
|
|
3268
3259
|
children: [
|
|
@@ -3294,17 +3285,17 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3294
3285
|
}
|
|
3295
3286
|
);
|
|
3296
3287
|
}
|
|
3297
|
-
const
|
|
3288
|
+
const zt = {
|
|
3298
3289
|
PUBLISHED: { label: "已发布", color: "green" },
|
|
3299
3290
|
DRAFT: { label: "草稿", color: "default" },
|
|
3300
3291
|
DISABLED: { label: "已下线", color: "orange" }
|
|
3301
|
-
},
|
|
3292
|
+
}, _t = [
|
|
3302
3293
|
{ value: "ALL", label: "全部" },
|
|
3303
3294
|
{ value: "PUBLISHED", label: "已发布", countKey: "PUBLISHED" },
|
|
3304
3295
|
{ value: "DRAFT", label: "草稿", countKey: "DRAFT" },
|
|
3305
3296
|
{ value: "DISABLED", label: "已下线", countKey: "DISABLED" }
|
|
3306
3297
|
];
|
|
3307
|
-
function
|
|
3298
|
+
function Bt({
|
|
3308
3299
|
onCreate: e,
|
|
3309
3300
|
onEdit: s,
|
|
3310
3301
|
records: a,
|
|
@@ -3325,7 +3316,7 @@ function jt({
|
|
|
3325
3316
|
dataIndex: "serviceName",
|
|
3326
3317
|
width: 190,
|
|
3327
3318
|
render: (f, y) => {
|
|
3328
|
-
const T =
|
|
3319
|
+
const T = qn(y.retrievalType);
|
|
3329
3320
|
return /* @__PURE__ */ t("div", { className: "oss-cell-name", children: [
|
|
3330
3321
|
/* @__PURE__ */ t("span", { className: "line", children: [
|
|
3331
3322
|
/* @__PURE__ */ n("b", { children: y.serviceName }),
|
|
@@ -3349,7 +3340,7 @@ function jt({
|
|
|
3349
3340
|
dataIndex: "status",
|
|
3350
3341
|
width: 100,
|
|
3351
3342
|
render: (f, y) => {
|
|
3352
|
-
const T =
|
|
3343
|
+
const T = zt[y.status];
|
|
3353
3344
|
return /* @__PURE__ */ t("div", { className: "oss-cell-status", children: [
|
|
3354
3345
|
/* @__PURE__ */ n(O, { color: T.color, children: T.label }),
|
|
3355
3346
|
y.status !== "PUBLISHED" ? /* @__PURE__ */ n("small", { className: y.debugPassed ? "ok" : "warn", children: y.debugPassed ? "调试已通过" : "未调试" }) : null
|
|
@@ -3372,7 +3363,7 @@ function jt({
|
|
|
3372
3363
|
const T = (y.status === "DRAFT" || y.status === "DISABLED") && y.debugPassed;
|
|
3373
3364
|
return /* @__PURE__ */ n(F, { title: b ? i : void 0, children: /* @__PURE__ */ n("span", { className: "oss-row-actions", children: /* @__PURE__ */ t(Be, { size: 0, children: [
|
|
3374
3365
|
/* @__PURE__ */ n(
|
|
3375
|
-
|
|
3366
|
+
A,
|
|
3376
3367
|
{
|
|
3377
3368
|
type: "link",
|
|
3378
3369
|
size: "small",
|
|
@@ -3382,7 +3373,7 @@ function jt({
|
|
|
3382
3373
|
}
|
|
3383
3374
|
),
|
|
3384
3375
|
/* @__PURE__ */ n(
|
|
3385
|
-
|
|
3376
|
+
A,
|
|
3386
3377
|
{
|
|
3387
3378
|
type: "link",
|
|
3388
3379
|
size: "small",
|
|
@@ -3397,7 +3388,7 @@ function jt({
|
|
|
3397
3388
|
title: "下线后消费方调用将失败,确认下线?",
|
|
3398
3389
|
disabled: b,
|
|
3399
3390
|
onConfirm: () => void m(y.id),
|
|
3400
|
-
children: /* @__PURE__ */ n(
|
|
3391
|
+
children: /* @__PURE__ */ n(A, { type: "link", size: "small", danger: !0, disabled: b, children: "下线" })
|
|
3401
3392
|
}
|
|
3402
3393
|
) : /* @__PURE__ */ n(F, { title: b || T ? void 0 : "须先在调试台调试通过", children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
3403
3394
|
Ze,
|
|
@@ -3406,7 +3397,7 @@ function jt({
|
|
|
3406
3397
|
disabled: b || !T,
|
|
3407
3398
|
onConfirm: () => void u(y.id),
|
|
3408
3399
|
children: /* @__PURE__ */ n(
|
|
3409
|
-
|
|
3400
|
+
A,
|
|
3410
3401
|
{
|
|
3411
3402
|
type: "link",
|
|
3412
3403
|
size: "small",
|
|
@@ -3423,7 +3414,7 @@ function jt({
|
|
|
3423
3414
|
title: "确认删除该模板?",
|
|
3424
3415
|
disabled: b,
|
|
3425
3416
|
onConfirm: () => void d(y.id),
|
|
3426
|
-
children: /* @__PURE__ */ n(
|
|
3417
|
+
children: /* @__PURE__ */ n(A, { type: "link", size: "small", danger: !0, disabled: b, children: "删除" })
|
|
3427
3418
|
}
|
|
3428
3419
|
) : null
|
|
3429
3420
|
] }) }) });
|
|
@@ -3432,7 +3423,7 @@ function jt({
|
|
|
3432
3423
|
];
|
|
3433
3424
|
return /* @__PURE__ */ t("div", { className: "oss-tpl-panel", children: [
|
|
3434
3425
|
/* @__PURE__ */ t("div", { className: "oss-table-toolbar", children: [
|
|
3435
|
-
/* @__PURE__ */ n("div", { className: "oss-filters", children:
|
|
3426
|
+
/* @__PURE__ */ n("div", { className: "oss-filters", children: _t.map((f) => /* @__PURE__ */ t(
|
|
3436
3427
|
"button",
|
|
3437
3428
|
{
|
|
3438
3429
|
type: "button",
|
|
@@ -3450,7 +3441,7 @@ function jt({
|
|
|
3450
3441
|
ae,
|
|
3451
3442
|
{
|
|
3452
3443
|
allowClear: !0,
|
|
3453
|
-
prefix: /* @__PURE__ */ n(
|
|
3444
|
+
prefix: /* @__PURE__ */ n(wn, {}),
|
|
3454
3445
|
placeholder: "搜索名称 / 编码 / 描述",
|
|
3455
3446
|
value: g,
|
|
3456
3447
|
onChange: (f) => {
|
|
@@ -3461,10 +3452,10 @@ function jt({
|
|
|
3461
3452
|
}
|
|
3462
3453
|
),
|
|
3463
3454
|
/* @__PURE__ */ n(F, { title: b ? i : void 0, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
3464
|
-
|
|
3455
|
+
A,
|
|
3465
3456
|
{
|
|
3466
3457
|
type: "primary",
|
|
3467
|
-
icon: /* @__PURE__ */ n(
|
|
3458
|
+
icon: /* @__PURE__ */ n(en, {}),
|
|
3468
3459
|
disabled: b,
|
|
3469
3460
|
onClick: e,
|
|
3470
3461
|
children: "新建模板"
|
|
@@ -3473,7 +3464,7 @@ function jt({
|
|
|
3473
3464
|
] })
|
|
3474
3465
|
] }),
|
|
3475
3466
|
/* @__PURE__ */ n("div", { className: "oss-table-scroll", children: /* @__PURE__ */ n(
|
|
3476
|
-
|
|
3467
|
+
he,
|
|
3477
3468
|
{
|
|
3478
3469
|
rowKey: "id",
|
|
3479
3470
|
size: "middle",
|
|
@@ -3492,22 +3483,22 @@ function jt({
|
|
|
3492
3483
|
) })
|
|
3493
3484
|
] });
|
|
3494
3485
|
}
|
|
3495
|
-
function
|
|
3486
|
+
function Ft({
|
|
3496
3487
|
scenario: e,
|
|
3497
3488
|
domainName: s,
|
|
3498
3489
|
templates: a
|
|
3499
3490
|
}) {
|
|
3500
|
-
const l =
|
|
3491
|
+
const l = yt(a.scenarioCode, a.reload), o = tn();
|
|
3501
3492
|
if (!e)
|
|
3502
|
-
return /* @__PURE__ */ n("div", { className: "oss-planned", children: /* @__PURE__ */ n(
|
|
3503
|
-
const c =
|
|
3493
|
+
return /* @__PURE__ */ n("div", { className: "oss-planned", children: /* @__PURE__ */ n(Me, { description: "选择左侧场景后查看其服务目录" }) });
|
|
3494
|
+
const c = kn(
|
|
3504
3495
|
e.domainCode,
|
|
3505
3496
|
void 0,
|
|
3506
3497
|
o.can("scenario.write")
|
|
3507
3498
|
);
|
|
3508
|
-
return /* @__PURE__ */ t(
|
|
3499
|
+
return /* @__PURE__ */ t(Z, { children: [
|
|
3509
3500
|
/* @__PURE__ */ n(
|
|
3510
|
-
|
|
3501
|
+
Bt,
|
|
3511
3502
|
{
|
|
3512
3503
|
onCreate: l.openCreate,
|
|
3513
3504
|
onEdit: l.openEdit,
|
|
@@ -3525,7 +3516,7 @@ function qt({
|
|
|
3525
3516
|
}
|
|
3526
3517
|
),
|
|
3527
3518
|
/* @__PURE__ */ n(
|
|
3528
|
-
|
|
3519
|
+
Mt,
|
|
3529
3520
|
{
|
|
3530
3521
|
scenario: e,
|
|
3531
3522
|
domainName: s,
|
|
@@ -3536,15 +3527,15 @@ function qt({
|
|
|
3536
3527
|
] });
|
|
3537
3528
|
}
|
|
3538
3529
|
const Nn = { all: 0, DRAFT: 0, PUBLISHED: 0, DISABLED: 0 };
|
|
3539
|
-
function
|
|
3540
|
-
const { message: s } = Fe.useApp(), [a, l] = p([]), [o, c] = p(Nn), [r, h] = p(!0), [u, m] = p("ALL"), [d, b] = p(""), [i, g] = p(0), C =
|
|
3541
|
-
|
|
3530
|
+
function Ut(e) {
|
|
3531
|
+
const { message: s } = Fe.useApp(), [a, l] = p([]), [o, c] = p(Nn), [r, h] = p(!0), [u, m] = p("ALL"), [d, b] = p(""), [i, g] = p(0), C = L(() => g((T) => T + 1), []);
|
|
3532
|
+
z(() => {
|
|
3542
3533
|
if (!e) {
|
|
3543
3534
|
l([]), c(Nn), h(!1);
|
|
3544
3535
|
return;
|
|
3545
3536
|
}
|
|
3546
3537
|
let T = !0;
|
|
3547
|
-
return h(!0),
|
|
3538
|
+
return h(!0), ht({
|
|
3548
3539
|
scenarioCode: e,
|
|
3549
3540
|
status: u === "ALL" ? void 0 : u,
|
|
3550
3541
|
keyword: d || void 0,
|
|
@@ -3561,19 +3552,19 @@ function Gt(e) {
|
|
|
3561
3552
|
T = !1;
|
|
3562
3553
|
};
|
|
3563
3554
|
}, [e, i, u, d]);
|
|
3564
|
-
const v =
|
|
3555
|
+
const v = L(
|
|
3565
3556
|
async (T) => {
|
|
3566
|
-
await
|
|
3557
|
+
await Hn(e, T) && (s.success("已发布:消费方可按服务编码调用"), C());
|
|
3567
3558
|
},
|
|
3568
3559
|
[s, C, e]
|
|
3569
|
-
), f =
|
|
3560
|
+
), f = L(
|
|
3570
3561
|
async (T) => {
|
|
3571
|
-
await
|
|
3562
|
+
await Kn(e, T) && (s.success("已下线"), C());
|
|
3572
3563
|
},
|
|
3573
3564
|
[s, C, e]
|
|
3574
|
-
), y =
|
|
3565
|
+
), y = L(
|
|
3575
3566
|
async (T) => {
|
|
3576
|
-
await
|
|
3567
|
+
await gt(e, T) && (s.success("已删除"), C());
|
|
3577
3568
|
},
|
|
3578
3569
|
[s, C, e]
|
|
3579
3570
|
);
|
|
@@ -3592,30 +3583,30 @@ function Gt(e) {
|
|
|
3592
3583
|
remove: y
|
|
3593
3584
|
};
|
|
3594
3585
|
}
|
|
3595
|
-
function
|
|
3586
|
+
function Ht({
|
|
3596
3587
|
detail: e,
|
|
3597
3588
|
domainCode: s,
|
|
3598
3589
|
domainName: a,
|
|
3599
3590
|
readOnly: l,
|
|
3600
3591
|
readOnlyReason: o
|
|
3601
3592
|
}) {
|
|
3602
|
-
const c =
|
|
3593
|
+
const c = Ut(e.scenarioCode);
|
|
3603
3594
|
return /* @__PURE__ */ t("div", { className: "oss-panel", children: [
|
|
3604
3595
|
/* @__PURE__ */ t("div", { className: "oss-panel-head", children: [
|
|
3605
3596
|
/* @__PURE__ */ n("b", { children: "场景模板服务" }),
|
|
3606
|
-
s ? /* @__PURE__ */ n(O, { color: "blue", icon: /* @__PURE__ */ n(
|
|
3597
|
+
s ? /* @__PURE__ */ n(O, { color: "blue", icon: /* @__PURE__ */ n(Sn, {}), children: a }) : null,
|
|
3607
3598
|
/* @__PURE__ */ n("span", { className: "oss-count", children: c.counts.all }),
|
|
3608
3599
|
l ? /* @__PURE__ */ n(F, { title: o, children: /* @__PURE__ */ n("span", { className: "oss-flag", children: "只读" }) }) : null,
|
|
3609
3600
|
/* @__PURE__ */ n(
|
|
3610
3601
|
F,
|
|
3611
3602
|
{
|
|
3612
3603
|
title: `发布后消费方按服务编码调用,只在 ${e.spaceCode || "场景空间"} 内执行;调试通过才能发布,已发布模板须先下线才能删除。`,
|
|
3613
|
-
children: /* @__PURE__ */ n(
|
|
3604
|
+
children: /* @__PURE__ */ n(Ce, { className: "osc-help" })
|
|
3614
3605
|
}
|
|
3615
3606
|
)
|
|
3616
3607
|
] }),
|
|
3617
3608
|
/* @__PURE__ */ n(
|
|
3618
|
-
|
|
3609
|
+
Ft,
|
|
3619
3610
|
{
|
|
3620
3611
|
scenario: e,
|
|
3621
3612
|
domainName: a,
|
|
@@ -3625,33 +3616,33 @@ function Qt({
|
|
|
3625
3616
|
)
|
|
3626
3617
|
] });
|
|
3627
3618
|
}
|
|
3628
|
-
function
|
|
3619
|
+
function Kt(e) {
|
|
3629
3620
|
return e.status === 4 ? "场景已删除,查询不回落基础空间" : e.status === 3 ? "场景已停用,查询不回落基础空间" : Ue(e) ? "" : e.syncStatus === 6 ? "同步失败,查询不回落基础空间" : e.syncStatus === 7 ? "同步已暂停,保留既有数据" : e.status === 1 ? "全量重放未完成,暂不对外解析" : "";
|
|
3630
3621
|
}
|
|
3631
|
-
function
|
|
3622
|
+
function Vt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
3632
3623
|
var re, oe;
|
|
3633
|
-
const o =
|
|
3624
|
+
const o = ka(), { state: c, graph: r, graphFailed: h, reloadGraph: u, actions: m, definition: d, model: b } = e, i = c.detail, [g, C] = p(!1), [v, f] = p(!1), y = tn();
|
|
3634
3625
|
if (c.detailLoading && !i)
|
|
3635
3626
|
return /* @__PURE__ */ t("div", { className: "osc-scn-stage-state", children: [
|
|
3636
|
-
/* @__PURE__ */ n(
|
|
3637
|
-
/* @__PURE__ */ n(
|
|
3627
|
+
/* @__PURE__ */ n(We, {}),
|
|
3628
|
+
/* @__PURE__ */ n(ue.Text, { type: "secondary", children: "正在加载场景详情…" })
|
|
3638
3629
|
] });
|
|
3639
3630
|
if (!i)
|
|
3640
3631
|
return /* @__PURE__ */ n("div", { className: "empty", style: { padding: "60px 24px" }, children: /* @__PURE__ */ n("b", { children: c.detailFailed ? "场景不存在或加载失败" : "选择左侧场景查看工作台" }) });
|
|
3641
|
-
const T = Ue(i), k = !T &&
|
|
3632
|
+
const T = Ue(i), k = !T && Un(i), x = Kt(i), w = `/ontology/scenarios/${encodeURIComponent(i.scenarioCode)}/edit`, N = ((re = i.domainCode) == null ? void 0 : re.trim()) ?? "", E = N ? ze({
|
|
3642
3633
|
domainCode: N,
|
|
3643
|
-
name: (oe = s.domains.find((
|
|
3644
|
-
}) : "", D =
|
|
3634
|
+
name: (oe = s.domains.find((Q) => Q.domainCode === N)) == null ? void 0 : oe.name
|
|
3635
|
+
}) : "", D = kn(
|
|
3645
3636
|
i.domainCode,
|
|
3646
|
-
(
|
|
3637
|
+
(Q) => {
|
|
3647
3638
|
var te;
|
|
3648
|
-
return
|
|
3649
|
-
domainCode:
|
|
3650
|
-
name: (te = s.domains.find((
|
|
3639
|
+
return ze({
|
|
3640
|
+
domainCode: Q,
|
|
3641
|
+
name: (te = s.domains.find((de) => de.domainCode === Q)) == null ? void 0 : te.name
|
|
3651
3642
|
});
|
|
3652
3643
|
},
|
|
3653
3644
|
y.can("scenario.write")
|
|
3654
|
-
),
|
|
3645
|
+
), Y = () => {
|
|
3655
3646
|
c.ensure(["runs", "failures", "projections"]), f(!0);
|
|
3656
3647
|
}, H = () => {
|
|
3657
3648
|
c.ensure(["consumers"]), C(!0);
|
|
@@ -3671,11 +3662,11 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3671
3662
|
...T ? [] : [
|
|
3672
3663
|
{
|
|
3673
3664
|
key: "orders",
|
|
3674
|
-
icon: /* @__PURE__ */ n(
|
|
3665
|
+
icon: /* @__PURE__ */ n(ln, {}),
|
|
3675
3666
|
label: /* @__PURE__ */ n(_e, { to: "/approvals", children: "关联工单" })
|
|
3676
3667
|
}
|
|
3677
3668
|
],
|
|
3678
|
-
...T && !D.readOnly && i.status === 2 ? [{ key: "offline", icon: /* @__PURE__ */ n(
|
|
3669
|
+
...T && !D.readOnly && i.status === 2 ? [{ key: "offline", icon: /* @__PURE__ */ n(Mn, {}), label: "下线场景", onClick: () => void V() }] : [],
|
|
3679
3670
|
...T && !D.readOnly && i.status === 3 ? [
|
|
3680
3671
|
{
|
|
3681
3672
|
key: "delete",
|
|
@@ -3685,35 +3676,35 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3685
3676
|
onClick: () => void R()
|
|
3686
3677
|
}
|
|
3687
3678
|
] : []
|
|
3688
|
-
],
|
|
3689
|
-
|
|
3679
|
+
], q = T ? "更新场景定义" : "更新投影工单", se = /* @__PURE__ */ n(
|
|
3680
|
+
A,
|
|
3690
3681
|
{
|
|
3691
3682
|
size: "small",
|
|
3692
3683
|
type: "text",
|
|
3693
|
-
icon: /* @__PURE__ */ n(
|
|
3694
|
-
title:
|
|
3695
|
-
"aria-label":
|
|
3684
|
+
icon: /* @__PURE__ */ n(Cn, {}),
|
|
3685
|
+
title: q,
|
|
3686
|
+
"aria-label": q,
|
|
3696
3687
|
disabled: D.readOnly
|
|
3697
3688
|
}
|
|
3698
3689
|
), ee = /* @__PURE__ */ t("div", { className: "osc-scn-stage-error", children: [
|
|
3699
3690
|
/* @__PURE__ */ n("b", { children: "本体结构加载失败" }),
|
|
3700
3691
|
/* @__PURE__ */ n("span", { children: "画布依赖基础空间结构,重试成功后可继续查看。" }),
|
|
3701
|
-
/* @__PURE__ */ n(
|
|
3702
|
-
] }),
|
|
3692
|
+
/* @__PURE__ */ n(A, { size: "small", onClick: u, children: "重试" })
|
|
3693
|
+
] }), G = /* @__PURE__ */ t("div", { className: "osc-scn-head-main", children: [
|
|
3703
3694
|
/* @__PURE__ */ n("h2", { children: i.name || i.scenarioCode }),
|
|
3704
3695
|
/* @__PURE__ */ n(F, { title: "场景信息", children: /* @__PURE__ */ n(
|
|
3705
|
-
|
|
3696
|
+
A,
|
|
3706
3697
|
{
|
|
3707
3698
|
size: "small",
|
|
3708
3699
|
type: "text",
|
|
3709
3700
|
className: "osc-scn-info",
|
|
3710
|
-
icon: /* @__PURE__ */ n(
|
|
3701
|
+
icon: /* @__PURE__ */ n(Ye, {}),
|
|
3711
3702
|
onClick: H
|
|
3712
3703
|
}
|
|
3713
3704
|
) }),
|
|
3714
|
-
i.status !== 2 ? /* @__PURE__ */ n(
|
|
3715
|
-
T || i.syncStatus === 3 ? null : /* @__PURE__ */ n(
|
|
3716
|
-
N ? /* @__PURE__ */ n(O, { color: "blue", icon: /* @__PURE__ */ n(
|
|
3705
|
+
i.status !== 2 ? /* @__PURE__ */ n(Bn, { status: i.status }) : null,
|
|
3706
|
+
T || i.syncStatus === 3 ? null : /* @__PURE__ */ n(Fn, { status: i.syncStatus }),
|
|
3707
|
+
N ? /* @__PURE__ */ n(O, { color: "blue", icon: /* @__PURE__ */ n(Sn, {}), children: E }) : null,
|
|
3717
3708
|
D.readOnly ? /* @__PURE__ */ n(F, { title: D.reason, children: /* @__PURE__ */ n(O, { color: "orange", icon: /* @__PURE__ */ n(qe, {}), children: "只读" }) }) : null,
|
|
3718
3709
|
/* @__PURE__ */ t("span", { className: "mono osc-scn-code", children: [
|
|
3719
3710
|
"/",
|
|
@@ -3722,26 +3713,26 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3722
3713
|
] })
|
|
3723
3714
|
] }), le = /* @__PURE__ */ t("div", { className: "osc-scn-stage-actions", children: [
|
|
3724
3715
|
D.readOnly ? /* @__PURE__ */ n(F, { title: D.reason, children: /* @__PURE__ */ n("span", { children: se }) }) : /* @__PURE__ */ n(_e, { to: w, children: se }),
|
|
3725
|
-
K.length > 0 ? /* @__PURE__ */ n(
|
|
3716
|
+
K.length > 0 ? /* @__PURE__ */ n(an, { menu: { items: K }, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ n(A, { size: "small", type: "text", icon: /* @__PURE__ */ n($n, {}) }) }) : null
|
|
3726
3717
|
] });
|
|
3727
|
-
return /* @__PURE__ */ t(
|
|
3718
|
+
return /* @__PURE__ */ t(Z, { children: [
|
|
3728
3719
|
/* @__PURE__ */ n(
|
|
3729
|
-
|
|
3720
|
+
Rn,
|
|
3730
3721
|
{
|
|
3731
3722
|
className: T && a === "map" ? "osc-scn-tabs is-graph" : "osc-scn-tabs",
|
|
3732
3723
|
activeKey: a,
|
|
3733
|
-
onChange: (
|
|
3724
|
+
onChange: (Q) => l(Q),
|
|
3734
3725
|
items: [
|
|
3735
3726
|
{
|
|
3736
3727
|
key: "map",
|
|
3737
3728
|
label: "工作台",
|
|
3738
|
-
children: /* @__PURE__ */ n("div", { className: "osc-workbench", children: /* @__PURE__ */ n("div", { className: "osc-workbench-main", children: T ? /* @__PURE__ */ t(
|
|
3729
|
+
children: /* @__PURE__ */ n("div", { className: "osc-workbench", children: /* @__PURE__ */ n("div", { className: "osc-workbench-main", children: T ? /* @__PURE__ */ t(Z, { children: [
|
|
3739
3730
|
x ? /* @__PURE__ */ t("div", { className: "osc-scope-note", children: [
|
|
3740
|
-
/* @__PURE__ */ n(
|
|
3731
|
+
/* @__PURE__ */ n(Ye, {}),
|
|
3741
3732
|
/* @__PURE__ */ n("span", { children: x })
|
|
3742
3733
|
] }) : null,
|
|
3743
3734
|
/* @__PURE__ */ n(
|
|
3744
|
-
|
|
3735
|
+
Gs,
|
|
3745
3736
|
{
|
|
3746
3737
|
detail: i,
|
|
3747
3738
|
graph: r,
|
|
@@ -3750,22 +3741,22 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3750
3741
|
model: b,
|
|
3751
3742
|
domainCode: N,
|
|
3752
3743
|
domainName: E,
|
|
3753
|
-
identity:
|
|
3744
|
+
identity: G,
|
|
3754
3745
|
actions: le
|
|
3755
3746
|
}
|
|
3756
3747
|
)
|
|
3757
|
-
] }) : /* @__PURE__ */ t(
|
|
3748
|
+
] }) : /* @__PURE__ */ t(Z, { children: [
|
|
3758
3749
|
/* @__PURE__ */ t("header", { className: "osc-scn-head", children: [
|
|
3759
|
-
|
|
3750
|
+
G,
|
|
3760
3751
|
le
|
|
3761
3752
|
] }),
|
|
3762
|
-
/* @__PURE__ */ n(
|
|
3763
|
-
k ? /* @__PURE__ */ n(
|
|
3764
|
-
/* @__PURE__ */ n(
|
|
3753
|
+
/* @__PURE__ */ n(Ws, { detail: i, onOpenRun: Y }),
|
|
3754
|
+
k ? /* @__PURE__ */ n(at, { detail: i, onOpenSync: Y }) : x ? /* @__PURE__ */ t("div", { className: "osc-scope-note", children: [
|
|
3755
|
+
/* @__PURE__ */ n(Ye, {}),
|
|
3765
3756
|
/* @__PURE__ */ n("span", { children: x })
|
|
3766
3757
|
] }) : null,
|
|
3767
3758
|
h ? ee : b ? /* @__PURE__ */ n(
|
|
3768
|
-
|
|
3759
|
+
Da,
|
|
3769
3760
|
{
|
|
3770
3761
|
model: b,
|
|
3771
3762
|
graph: r,
|
|
@@ -3775,14 +3766,14 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3775
3766
|
defaultMode: "mapping"
|
|
3776
3767
|
}
|
|
3777
3768
|
) : /* @__PURE__ */ n("div", { className: "empty", style: { padding: "40px 24px" }, children: /* @__PURE__ */ n("b", { children: "尚无生效投影定义" }) }),
|
|
3778
|
-
h ? null : /* @__PURE__ */ n(
|
|
3769
|
+
h ? null : /* @__PURE__ */ n(et, { relations: (b == null ? void 0 : b.relations) ?? [] })
|
|
3779
3770
|
] }) }) })
|
|
3780
3771
|
},
|
|
3781
3772
|
{
|
|
3782
3773
|
key: "service",
|
|
3783
3774
|
label: "场景服务",
|
|
3784
3775
|
children: /* @__PURE__ */ n(
|
|
3785
|
-
|
|
3776
|
+
Ht,
|
|
3786
3777
|
{
|
|
3787
3778
|
detail: i,
|
|
3788
3779
|
domainCode: N,
|
|
@@ -3796,7 +3787,7 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3796
3787
|
}
|
|
3797
3788
|
),
|
|
3798
3789
|
/* @__PURE__ */ n(
|
|
3799
|
-
|
|
3790
|
+
Xs,
|
|
3800
3791
|
{
|
|
3801
3792
|
open: g,
|
|
3802
3793
|
onClose: () => C(!1),
|
|
@@ -3807,7 +3798,7 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3807
3798
|
}
|
|
3808
3799
|
),
|
|
3809
3800
|
T ? null : /* @__PURE__ */ n(
|
|
3810
|
-
|
|
3801
|
+
it,
|
|
3811
3802
|
{
|
|
3812
3803
|
open: v,
|
|
3813
3804
|
onClose: () => f(!1),
|
|
@@ -3823,17 +3814,17 @@ function Wt({ workbench: e, scope: s, pane: a, onPane: l }) {
|
|
|
3823
3814
|
)
|
|
3824
3815
|
] });
|
|
3825
3816
|
}
|
|
3826
|
-
const
|
|
3827
|
-
function
|
|
3828
|
-
const [s, a] = p(), [l, o] = p(""), [c, r] = p(""), [h, u] = p([]), [m, d] = p(0), [b, i] = p(1), [g, C] = p(!0), v = ce(0), f =
|
|
3817
|
+
const jt = 10, qt = /* @__PURE__ */ new Set(["QUEUED", "RUNNING", "PAUSED"]);
|
|
3818
|
+
function Gt(e) {
|
|
3819
|
+
const [s, a] = p(), [l, o] = p(""), [c, r] = p(""), [h, u] = p([]), [m, d] = p(0), [b, i] = p(1), [g, C] = p(!0), v = ce(0), f = L(
|
|
3829
3820
|
async (T) => {
|
|
3830
3821
|
const k = ++v.current;
|
|
3831
3822
|
C(!0);
|
|
3832
3823
|
try {
|
|
3833
|
-
const x = await
|
|
3824
|
+
const x = await wa({
|
|
3834
3825
|
current: T,
|
|
3835
|
-
size:
|
|
3836
|
-
sourceType:
|
|
3826
|
+
size: jt,
|
|
3827
|
+
sourceType: zn,
|
|
3837
3828
|
orderCode: e || void 0,
|
|
3838
3829
|
runStatus: s,
|
|
3839
3830
|
keyword: c.trim() || void 0
|
|
@@ -3847,11 +3838,11 @@ function Xt(e) {
|
|
|
3847
3838
|
},
|
|
3848
3839
|
[c, e, s]
|
|
3849
3840
|
);
|
|
3850
|
-
|
|
3841
|
+
z(() => {
|
|
3851
3842
|
f(1);
|
|
3852
3843
|
}, [f]);
|
|
3853
|
-
const y = h.some((T) =>
|
|
3854
|
-
return
|
|
3844
|
+
const y = h.some((T) => qt.has(T.runStatus ?? ""));
|
|
3845
|
+
return z(() => {
|
|
3855
3846
|
if (!y)
|
|
3856
3847
|
return;
|
|
3857
3848
|
const T = window.setInterval(() => void f(b), 5e3);
|
|
@@ -3871,7 +3862,7 @@ function Xt(e) {
|
|
|
3871
3862
|
load: f
|
|
3872
3863
|
};
|
|
3873
3864
|
}
|
|
3874
|
-
const
|
|
3865
|
+
const Qt = 10, Wt = [
|
|
3875
3866
|
{ value: "QUEUED", label: "排队中" },
|
|
3876
3867
|
{ value: "RUNNING", label: "执行中" },
|
|
3877
3868
|
{ value: "PAUSED", label: "已暂停" },
|
|
@@ -3879,8 +3870,8 @@ const el = 10, nl = [
|
|
|
3879
3870
|
{ value: "FAILED", label: "失败" },
|
|
3880
3871
|
{ value: "CANCELED", label: "已取消" }
|
|
3881
3872
|
];
|
|
3882
|
-
function
|
|
3883
|
-
const a =
|
|
3873
|
+
function Yt({ focusOrderCode: e, onOrderChange: s }) {
|
|
3874
|
+
const a = Gt(e), [l, o] = p(), c = (h) => {
|
|
3884
3875
|
h && o(h);
|
|
3885
3876
|
}, r = [
|
|
3886
3877
|
{
|
|
@@ -3900,13 +3891,13 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3900
3891
|
title: "任务状态",
|
|
3901
3892
|
key: "runStatus",
|
|
3902
3893
|
width: 110,
|
|
3903
|
-
render: (h, u) => /* @__PURE__ */ n(O, { color:
|
|
3894
|
+
render: (h, u) => /* @__PURE__ */ n(O, { color: dn(u.runStatus), children: cn(u.runStatus) })
|
|
3904
3895
|
},
|
|
3905
3896
|
{
|
|
3906
3897
|
title: "工单状态",
|
|
3907
3898
|
key: "orderStatus",
|
|
3908
3899
|
width: 120,
|
|
3909
|
-
render: (h, u) => u.orderStatus ? /* @__PURE__ */ n(O, { color:
|
|
3900
|
+
render: (h, u) => u.orderStatus ? /* @__PURE__ */ n(O, { color: on(u.orderStatus), children: sn(u.orderStatus) }) : "—"
|
|
3910
3901
|
},
|
|
3911
3902
|
{
|
|
3912
3903
|
title: "进度(成功/失败/共)",
|
|
@@ -3924,13 +3915,13 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3924
3915
|
title: "开始时间",
|
|
3925
3916
|
key: "startedAt",
|
|
3926
3917
|
width: 160,
|
|
3927
|
-
render: (h, u) =>
|
|
3918
|
+
render: (h, u) => J(u.startedAt)
|
|
3928
3919
|
},
|
|
3929
3920
|
{
|
|
3930
3921
|
title: "操作",
|
|
3931
3922
|
key: "action",
|
|
3932
3923
|
width: 100,
|
|
3933
|
-
render: (h, u) => /* @__PURE__ */ n(
|
|
3924
|
+
render: (h, u) => /* @__PURE__ */ n(A, { size: "small", type: "link", onClick: () => c(u.orderCode), children: "查看任务" })
|
|
3934
3925
|
}
|
|
3935
3926
|
];
|
|
3936
3927
|
return /* @__PURE__ */ t("section", { className: "panel osc-scn-order-panel", children: [
|
|
@@ -3943,7 +3934,7 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3943
3934
|
placeholder: "全部任务状态",
|
|
3944
3935
|
style: { width: 150 },
|
|
3945
3936
|
value: a.runStatus,
|
|
3946
|
-
options:
|
|
3937
|
+
options: Wt,
|
|
3947
3938
|
onChange: (h) => a.setRunStatus(h)
|
|
3948
3939
|
}
|
|
3949
3940
|
),
|
|
@@ -3964,11 +3955,11 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3964
3955
|
"仅看工单 ",
|
|
3965
3956
|
/* @__PURE__ */ n("span", { className: "mono", children: e })
|
|
3966
3957
|
] }) : null,
|
|
3967
|
-
/* @__PURE__ */ n(
|
|
3968
|
-
a.hasRunning ? /* @__PURE__ */ n(
|
|
3958
|
+
/* @__PURE__ */ n(A, { onClick: () => void a.load(a.current), children: "刷新" }),
|
|
3959
|
+
a.hasRunning ? /* @__PURE__ */ n(ue.Text, { type: "secondary", children: "存在执行中任务,每 5 秒自动刷新" }) : null
|
|
3969
3960
|
] }),
|
|
3970
3961
|
/* @__PURE__ */ n(
|
|
3971
|
-
|
|
3962
|
+
he,
|
|
3972
3963
|
{
|
|
3973
3964
|
rowKey: (h) => h.scopeId || h.orderCode || "",
|
|
3974
3965
|
size: "small",
|
|
@@ -3983,7 +3974,7 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3983
3974
|
locale: { emptyText: "暂无场景调度任务:工单审批通过后自动下发" },
|
|
3984
3975
|
pagination: {
|
|
3985
3976
|
current: a.current,
|
|
3986
|
-
pageSize:
|
|
3977
|
+
pageSize: Qt,
|
|
3987
3978
|
total: a.total,
|
|
3988
3979
|
showSizeChanger: !1,
|
|
3989
3980
|
showTotal: (h) => `共 ${h} 个任务`,
|
|
@@ -3993,7 +3984,7 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
3993
3984
|
)
|
|
3994
3985
|
] }),
|
|
3995
3986
|
/* @__PURE__ */ n(
|
|
3996
|
-
|
|
3987
|
+
_n,
|
|
3997
3988
|
{
|
|
3998
3989
|
open: !!l,
|
|
3999
3990
|
orderCode: l,
|
|
@@ -4003,19 +3994,19 @@ function al({ focusOrderCode: e, onOrderChange: s }) {
|
|
|
4003
3994
|
)
|
|
4004
3995
|
] });
|
|
4005
3996
|
}
|
|
4006
|
-
const
|
|
4007
|
-
function
|
|
4008
|
-
const [e, s] = p([]), [a, l] = p(0), [o, c] = p(1), [r, h] = p(!0), [u, m] = p(!1), [d, b] = p(""), [i, g] = p(), [C, v] = p(), f = ce(0), y =
|
|
3997
|
+
const Zt = 10;
|
|
3998
|
+
function Jt() {
|
|
3999
|
+
const [e, s] = p([]), [a, l] = p(0), [o, c] = p(1), [r, h] = p(!0), [u, m] = p(!1), [d, b] = p(""), [i, g] = p(), [C, v] = p(), f = ce(0), y = L(
|
|
4009
4000
|
async (x) => {
|
|
4010
4001
|
const w = ++f.current;
|
|
4011
4002
|
h(!0);
|
|
4012
4003
|
try {
|
|
4013
|
-
const N = await
|
|
4004
|
+
const N = await za({
|
|
4014
4005
|
keyword: d.trim() || void 0,
|
|
4015
4006
|
status: i,
|
|
4016
4007
|
syncStatus: C,
|
|
4017
4008
|
current: x,
|
|
4018
|
-
size:
|
|
4009
|
+
size: Zt
|
|
4019
4010
|
});
|
|
4020
4011
|
if (w !== f.current)
|
|
4021
4012
|
return;
|
|
@@ -4029,10 +4020,10 @@ function tl() {
|
|
|
4029
4020
|
},
|
|
4030
4021
|
[d, i, C]
|
|
4031
4022
|
);
|
|
4032
|
-
|
|
4023
|
+
z(() => {
|
|
4033
4024
|
y(1);
|
|
4034
4025
|
}, [y]);
|
|
4035
|
-
const T =
|
|
4026
|
+
const T = L(() => y(o + 1), [y, o]), k = L(() => y(1), [y]);
|
|
4036
4027
|
return {
|
|
4037
4028
|
records: e,
|
|
4038
4029
|
total: a,
|
|
@@ -4050,11 +4041,11 @@ function tl() {
|
|
|
4050
4041
|
reload: k
|
|
4051
4042
|
};
|
|
4052
4043
|
}
|
|
4053
|
-
function
|
|
4044
|
+
function Xt() {
|
|
4054
4045
|
const [e, s] = p(), [a, l] = p(!1), [o, c] = p(0);
|
|
4055
|
-
|
|
4046
|
+
z(() => {
|
|
4056
4047
|
let h = !0;
|
|
4057
|
-
return
|
|
4048
|
+
return ea().then((u) => {
|
|
4058
4049
|
h && (s(u), l(!1));
|
|
4059
4050
|
}).catch(() => {
|
|
4060
4051
|
h && l(!0);
|
|
@@ -4062,72 +4053,72 @@ function ll() {
|
|
|
4062
4053
|
h = !1;
|
|
4063
4054
|
};
|
|
4064
4055
|
}, [o]);
|
|
4065
|
-
const r =
|
|
4056
|
+
const r = L(() => c((h) => h + 1), []);
|
|
4066
4057
|
return { graph: e, failed: a, reload: r };
|
|
4067
4058
|
}
|
|
4068
|
-
function
|
|
4059
|
+
function el(e) {
|
|
4069
4060
|
return e instanceof Error ? e.message : "操作失败";
|
|
4070
4061
|
}
|
|
4071
|
-
function
|
|
4072
|
-
const { message: l } = Fe.useApp(), [o, c] = p(), r =
|
|
4062
|
+
function nl(e, s, a) {
|
|
4063
|
+
const { message: l } = Fe.useApp(), [o, c] = p(), r = L(
|
|
4073
4064
|
async (C, v, f) => {
|
|
4074
4065
|
c(C);
|
|
4075
4066
|
try {
|
|
4076
4067
|
await f(), l.success(v), s();
|
|
4077
4068
|
} catch (y) {
|
|
4078
|
-
l.error(
|
|
4069
|
+
l.error(el(y));
|
|
4079
4070
|
} finally {
|
|
4080
4071
|
c(void 0);
|
|
4081
4072
|
}
|
|
4082
4073
|
},
|
|
4083
4074
|
[l, s]
|
|
4084
|
-
), h =
|
|
4075
|
+
), h = L(
|
|
4085
4076
|
(C) => r("retry", "已下发同步运行", () => _a({ scenarioCode: e, runType: C })),
|
|
4086
4077
|
[r, e]
|
|
4087
|
-
), u =
|
|
4078
|
+
), u = L(
|
|
4088
4079
|
(C) => r("pause", "已暂停增量同步", () => Ba({ scenarioCode: e, reason: C })),
|
|
4089
4080
|
[r, e]
|
|
4090
|
-
), m =
|
|
4081
|
+
), m = L(
|
|
4091
4082
|
() => r("resume", "已恢复增量同步", () => Fa({ scenarioCode: e })),
|
|
4092
4083
|
[r, e]
|
|
4093
|
-
), d =
|
|
4084
|
+
), d = L(
|
|
4094
4085
|
() => r("repair", "已下发定点修复", () => Ua({ scenarioCode: e })),
|
|
4095
4086
|
[r, e]
|
|
4096
|
-
), b =
|
|
4087
|
+
), b = L(
|
|
4097
4088
|
() => r("reconcile", "已下发对账", () => Ha({ scenarioCode: e })),
|
|
4098
4089
|
[r, e]
|
|
4099
|
-
), i =
|
|
4090
|
+
), i = L(
|
|
4100
4091
|
() => r(
|
|
4101
4092
|
"offline",
|
|
4102
4093
|
"场景已下线",
|
|
4103
4094
|
() => Ka({ op: "RETIRE", scenarioCode: e, domainCode: a })
|
|
4104
4095
|
),
|
|
4105
4096
|
[r, e, a]
|
|
4106
|
-
), g =
|
|
4097
|
+
), g = L(
|
|
4107
4098
|
() => r("delete", "场景已删除,空间待异步清理", () => Va({ scenarioCode: e })),
|
|
4108
4099
|
[r, e]
|
|
4109
4100
|
);
|
|
4110
4101
|
return { busy: o, retry: h, pause: u, resume: m, repair: d, reconcile: b, offline: i, remove: g };
|
|
4111
4102
|
}
|
|
4112
4103
|
const bn = 10;
|
|
4113
|
-
function
|
|
4114
|
-
const [s, a] = p(), [l, o] = p(!0), [c, r] = p(!1), [h, u] = p([]), [m, d] = p(!1), [b, i] = p([]), [g, C] = p([]), [v, f] = p(0), [y, T] = p(1), [k, x] = p(!1), [w, N] = p(), [E, D] = p(), [
|
|
4104
|
+
function al(e) {
|
|
4105
|
+
const [s, a] = p(), [l, o] = p(!0), [c, r] = p(!1), [h, u] = p([]), [m, d] = p(!1), [b, i] = p([]), [g, C] = p([]), [v, f] = p(0), [y, T] = p(1), [k, x] = p(!1), [w, N] = p(), [E, D] = p(), [Y, H] = p([]), [V, R] = p(0), [K, q] = p(1), [se, ee] = p(!1), [G, le] = p([]), me = ce(0), re = L(async () => {
|
|
4115
4106
|
if (!e) {
|
|
4116
4107
|
o(!1);
|
|
4117
4108
|
return;
|
|
4118
4109
|
}
|
|
4119
|
-
const _ = ++
|
|
4110
|
+
const _ = ++me.current;
|
|
4120
4111
|
try {
|
|
4121
4112
|
const B = await Dn(e);
|
|
4122
|
-
if (_ !==
|
|
4113
|
+
if (_ !== me.current)
|
|
4123
4114
|
return;
|
|
4124
4115
|
a(B), r(!B);
|
|
4125
4116
|
} catch {
|
|
4126
|
-
_ ===
|
|
4117
|
+
_ === me.current && (a(void 0), r(!0));
|
|
4127
4118
|
} finally {
|
|
4128
|
-
_ ===
|
|
4119
|
+
_ === me.current && o(!1);
|
|
4129
4120
|
}
|
|
4130
|
-
}, [e]), oe =
|
|
4121
|
+
}, [e]), oe = L(async () => {
|
|
4131
4122
|
if (e) {
|
|
4132
4123
|
d(!0);
|
|
4133
4124
|
try {
|
|
@@ -4137,7 +4128,7 @@ function cl(e) {
|
|
|
4137
4128
|
d(!1);
|
|
4138
4129
|
}
|
|
4139
4130
|
}
|
|
4140
|
-
}, [e]),
|
|
4131
|
+
}, [e]), Q = L(
|
|
4141
4132
|
async (_) => {
|
|
4142
4133
|
if (e) {
|
|
4143
4134
|
x(!0);
|
|
@@ -4156,7 +4147,7 @@ function cl(e) {
|
|
|
4156
4147
|
}
|
|
4157
4148
|
},
|
|
4158
4149
|
[e, w, E]
|
|
4159
|
-
), te =
|
|
4150
|
+
), te = L(
|
|
4160
4151
|
async (_) => {
|
|
4161
4152
|
if (e) {
|
|
4162
4153
|
ee(!0);
|
|
@@ -4166,52 +4157,52 @@ function cl(e) {
|
|
|
4166
4157
|
current: _,
|
|
4167
4158
|
size: bn
|
|
4168
4159
|
});
|
|
4169
|
-
H((B == null ? void 0 : B.records) ?? []), R((B == null ? void 0 : B.total) ?? 0),
|
|
4160
|
+
H((B == null ? void 0 : B.records) ?? []), R((B == null ? void 0 : B.total) ?? 0), q(_);
|
|
4170
4161
|
} finally {
|
|
4171
4162
|
ee(!1);
|
|
4172
4163
|
}
|
|
4173
4164
|
}
|
|
4174
4165
|
},
|
|
4175
4166
|
[e]
|
|
4176
|
-
),
|
|
4167
|
+
), de = L(async () => {
|
|
4177
4168
|
if (!e)
|
|
4178
4169
|
return;
|
|
4179
4170
|
const _ = await Qa(e);
|
|
4180
4171
|
i(_ ?? []);
|
|
4181
4172
|
}, [e]);
|
|
4182
|
-
|
|
4183
|
-
a(void 0), o(!0), r(!1), C([]), f(0), T(1), H([]), R(0),
|
|
4184
|
-
}, [e]),
|
|
4173
|
+
z(() => {
|
|
4174
|
+
a(void 0), o(!0), r(!1), C([]), f(0), T(1), H([]), R(0), q(1), u([]), i([]);
|
|
4175
|
+
}, [e]), z(() => {
|
|
4185
4176
|
re();
|
|
4186
4177
|
}, [re]);
|
|
4187
|
-
const
|
|
4188
|
-
|
|
4189
|
-
e &&
|
|
4190
|
-
}, [e,
|
|
4191
|
-
e &&
|
|
4192
|
-
}, [e,
|
|
4193
|
-
e &&
|
|
4194
|
-
}, [e,
|
|
4195
|
-
e &&
|
|
4196
|
-
}, [e,
|
|
4197
|
-
const
|
|
4178
|
+
const ye = G.includes("runs"), Ne = G.includes("failures"), pe = G.includes("projections"), be = G.includes("consumers");
|
|
4179
|
+
z(() => {
|
|
4180
|
+
e && ye && Q(1);
|
|
4181
|
+
}, [e, ye, Q]), z(() => {
|
|
4182
|
+
e && Ne && te(1);
|
|
4183
|
+
}, [e, Ne, te]), z(() => {
|
|
4184
|
+
e && pe && oe();
|
|
4185
|
+
}, [e, pe, oe]), z(() => {
|
|
4186
|
+
e && be && de();
|
|
4187
|
+
}, [e, be, de]);
|
|
4188
|
+
const Le = L((_) => {
|
|
4198
4189
|
le((B) => {
|
|
4199
|
-
const
|
|
4200
|
-
return
|
|
4190
|
+
const Te = _.filter((Se) => !B.includes(Se));
|
|
4191
|
+
return Te.length === 0 ? B : [...B, ...Te];
|
|
4201
4192
|
});
|
|
4202
|
-
}, []), ke =
|
|
4193
|
+
}, []), ke = L(async () => {
|
|
4203
4194
|
const _ = [re()];
|
|
4204
|
-
|
|
4195
|
+
ye && _.push(Q(y)), Ne && _.push(te(K)), pe && _.push(oe()), be && _.push(de()), await Promise.all(_);
|
|
4205
4196
|
}, [
|
|
4206
4197
|
re,
|
|
4207
|
-
|
|
4198
|
+
Q,
|
|
4208
4199
|
te,
|
|
4209
4200
|
oe,
|
|
4210
|
-
|
|
4201
|
+
de,
|
|
4202
|
+
ye,
|
|
4203
|
+
Ne,
|
|
4204
|
+
pe,
|
|
4211
4205
|
be,
|
|
4212
|
-
Te,
|
|
4213
|
-
fe,
|
|
4214
|
-
Se,
|
|
4215
4206
|
y,
|
|
4216
4207
|
K
|
|
4217
4208
|
]);
|
|
@@ -4231,45 +4222,45 @@ function cl(e) {
|
|
|
4231
4222
|
runStatus: E,
|
|
4232
4223
|
setRunType: N,
|
|
4233
4224
|
setRunStatus: D,
|
|
4234
|
-
failures:
|
|
4225
|
+
failures: Y,
|
|
4235
4226
|
failureTotal: V,
|
|
4236
4227
|
failureCurrent: K,
|
|
4237
4228
|
failureLoading: se,
|
|
4238
|
-
loadRuns:
|
|
4229
|
+
loadRuns: Q,
|
|
4239
4230
|
loadFailures: te,
|
|
4240
|
-
ensure:
|
|
4231
|
+
ensure: Le,
|
|
4241
4232
|
refresh: ke
|
|
4242
4233
|
};
|
|
4243
4234
|
}
|
|
4244
|
-
function
|
|
4235
|
+
function sl(e, s, a = 5e3) {
|
|
4245
4236
|
const l = ce(s);
|
|
4246
|
-
|
|
4237
|
+
z(() => {
|
|
4247
4238
|
l.current = s;
|
|
4248
|
-
}, [s]),
|
|
4239
|
+
}, [s]), z(() => {
|
|
4249
4240
|
if (!e)
|
|
4250
4241
|
return;
|
|
4251
4242
|
const o = window.setInterval(() => l.current(), a);
|
|
4252
4243
|
return () => window.clearInterval(o);
|
|
4253
4244
|
}, [e, a]);
|
|
4254
4245
|
}
|
|
4255
|
-
function
|
|
4246
|
+
function tl(e) {
|
|
4256
4247
|
var b;
|
|
4257
|
-
const s =
|
|
4258
|
-
|
|
4248
|
+
const s = al(e), { graph: a, failed: l, reload: o } = Xt(), c = s.detail, r = nl(e, () => void s.refresh(), c == null ? void 0 : c.domainCode), h = c ? Ls(c.status, c.syncStatus) || Ps((b = c.activeRun) == null ? void 0 : b.status) : !1;
|
|
4249
|
+
sl(h, () => void s.refresh());
|
|
4259
4250
|
const u = W(
|
|
4260
4251
|
() => {
|
|
4261
4252
|
var i;
|
|
4262
|
-
return
|
|
4253
|
+
return Wa((i = c == null ? void 0 : c.activeProjection) == null ? void 0 : i.definition);
|
|
4263
4254
|
},
|
|
4264
4255
|
[c]
|
|
4265
4256
|
), m = W(
|
|
4266
4257
|
() => {
|
|
4267
4258
|
var i;
|
|
4268
|
-
return
|
|
4259
|
+
return Ya((i = c == null ? void 0 : c.activeProjection) == null ? void 0 : i.compiledPlan);
|
|
4269
4260
|
},
|
|
4270
4261
|
[c]
|
|
4271
4262
|
), d = W(
|
|
4272
|
-
() => c ?
|
|
4263
|
+
() => c ? xa(u, m, a, {
|
|
4273
4264
|
scenarioCode: c.scenarioCode,
|
|
4274
4265
|
name: c.name || c.scenarioCode,
|
|
4275
4266
|
description: c.description
|
|
@@ -4278,16 +4269,16 @@ function dl(e) {
|
|
|
4278
4269
|
);
|
|
4279
4270
|
return { state: s, graph: a, graphFailed: l, reloadGraph: o, actions: r, definition: u, model: d };
|
|
4280
4271
|
}
|
|
4281
|
-
const
|
|
4282
|
-
function
|
|
4283
|
-
return
|
|
4272
|
+
const ll = ["scenarios", "orders", "tasks"];
|
|
4273
|
+
function rl(e) {
|
|
4274
|
+
return ll.find((s) => s === e) ?? "scenarios";
|
|
4284
4275
|
}
|
|
4285
|
-
function
|
|
4276
|
+
function Hl({ embedded: e = !1 }) {
|
|
4286
4277
|
var f;
|
|
4287
|
-
const [s, a] =
|
|
4288
|
-
() =>
|
|
4278
|
+
const [s, a] = Ea(), l = rl(s.get("tab")), o = na(), c = Jt(), r = W(
|
|
4279
|
+
() => pa(o.domains, o.currentCode, o.scope).map((y) => ({
|
|
4289
4280
|
code: y.domainCode,
|
|
4290
|
-
name:
|
|
4281
|
+
name: ze({ domainCode: y.domainCode, name: y.name })
|
|
4291
4282
|
})),
|
|
4292
4283
|
[o.domains, o.currentCode, o.scope]
|
|
4293
4284
|
), h = W(
|
|
@@ -4295,8 +4286,8 @@ function zl({ embedded: e = !1 }) {
|
|
|
4295
4286
|
[r]
|
|
4296
4287
|
), u = c.records.find(
|
|
4297
4288
|
(y) => !h.has((y.domainCode ?? "").trim().toUpperCase())
|
|
4298
|
-
), m = s.get("scenario") ?? "", d = l === "scenarios" && (m || (u == null ? void 0 : u.scenarioCode) || ((f = c.records[0]) == null ? void 0 : f.scenarioCode)) || "", b = s.get("pane") === "service" ? "service" : "map", i = s.get("order") ?? void 0, g =
|
|
4299
|
-
|
|
4289
|
+
), m = s.get("scenario") ?? "", d = l === "scenarios" && (m || (u == null ? void 0 : u.scenarioCode) || ((f = c.records[0]) == null ? void 0 : f.scenarioCode)) || "", b = s.get("pane") === "service" ? "service" : "map", i = s.get("order") ?? void 0, g = tl(d), C = ce(o.version);
|
|
4290
|
+
z(() => {
|
|
4300
4291
|
if (C.current === o.version)
|
|
4301
4292
|
return;
|
|
4302
4293
|
C.current = o.version, c.reload();
|
|
@@ -4312,22 +4303,22 @@ function zl({ embedded: e = !1 }) {
|
|
|
4312
4303
|
};
|
|
4313
4304
|
return l !== "scenarios" ? /* @__PURE__ */ t("div", { className: "view osc-page", children: [
|
|
4314
4305
|
/* @__PURE__ */ n(
|
|
4315
|
-
|
|
4306
|
+
ps,
|
|
4316
4307
|
{
|
|
4317
4308
|
title: l === "orders" ? "场景工单" : "场景调度任务",
|
|
4318
4309
|
meta: /* @__PURE__ */ n("span", { children: l === "orders" ? "仅场景页直提的投影工单 · 审批通过后自动下发结构变更任务" : "场景工单审批通过后下发的结构变更任务 · 按场景来源过滤" }),
|
|
4319
4310
|
actions: e ? /* @__PURE__ */ n(
|
|
4320
|
-
|
|
4311
|
+
A,
|
|
4321
4312
|
{
|
|
4322
|
-
icon: /* @__PURE__ */ n(
|
|
4313
|
+
icon: /* @__PURE__ */ n(pn, {}),
|
|
4323
4314
|
onClick: () => v({ tab: "scenarios" }),
|
|
4324
4315
|
children: "返回场景"
|
|
4325
4316
|
}
|
|
4326
|
-
) : /* @__PURE__ */ n(_e, { to: "/ontology/scenarios", children: /* @__PURE__ */ n(
|
|
4317
|
+
) : /* @__PURE__ */ n(_e, { to: "/ontology/scenarios", children: /* @__PURE__ */ n(A, { icon: /* @__PURE__ */ n(pn, {}), children: "返回场景" }) })
|
|
4327
4318
|
}
|
|
4328
4319
|
),
|
|
4329
4320
|
l === "orders" ? /* @__PURE__ */ n(
|
|
4330
|
-
|
|
4321
|
+
Is,
|
|
4331
4322
|
{
|
|
4332
4323
|
focusOrderCode: i,
|
|
4333
4324
|
domainVersion: o.version,
|
|
@@ -4335,7 +4326,7 @@ function zl({ embedded: e = !1 }) {
|
|
|
4335
4326
|
onOpenTasks: (y) => v({ tab: "tasks", order: y })
|
|
4336
4327
|
}
|
|
4337
4328
|
) : /* @__PURE__ */ n(
|
|
4338
|
-
|
|
4329
|
+
Yt,
|
|
4339
4330
|
{
|
|
4340
4331
|
focusOrderCode: i,
|
|
4341
4332
|
onOrderChange: (y) => v({ tab: "tasks", order: y })
|
|
@@ -4343,7 +4334,7 @@ function zl({ embedded: e = !1 }) {
|
|
|
4343
4334
|
)
|
|
4344
4335
|
] }) : /* @__PURE__ */ n("div", { className: "view osc-page", children: /* @__PURE__ */ t("div", { className: "osc-scn-overview", children: [
|
|
4345
4336
|
/* @__PURE__ */ n(
|
|
4346
|
-
|
|
4337
|
+
_s,
|
|
4347
4338
|
{
|
|
4348
4339
|
state: c,
|
|
4349
4340
|
scope: o,
|
|
@@ -4353,7 +4344,7 @@ function zl({ embedded: e = !1 }) {
|
|
|
4353
4344
|
}
|
|
4354
4345
|
),
|
|
4355
4346
|
/* @__PURE__ */ n("section", { className: "osc-scn-stage-panel", children: /* @__PURE__ */ n(
|
|
4356
|
-
|
|
4347
|
+
Vt,
|
|
4357
4348
|
{
|
|
4358
4349
|
workbench: g,
|
|
4359
4350
|
scope: o,
|
|
@@ -4364,5 +4355,5 @@ function zl({ embedded: e = !1 }) {
|
|
|
4364
4355
|
] }) });
|
|
4365
4356
|
}
|
|
4366
4357
|
export {
|
|
4367
|
-
|
|
4358
|
+
Hl as default
|
|
4368
4359
|
};
|