@yuku123/z-cognition-component 2.0.3 → 2.0.5
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/{BaseInput-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
- package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
- package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
- package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
- package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
- package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
- package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
- package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
- package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
- package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
- package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
- package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
- package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
- package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
- package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
- package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
- package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
- package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
- package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
- package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
- package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
- package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
- package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
- package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
- package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
- package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
- package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
- package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
- package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
- package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsx as n, jsxs as t, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as W from "react";
|
|
3
3
|
import { useState as p, useRef as ce, useCallback as x, useEffect as z, useMemo as Y } from "react";
|
|
4
|
-
import { P as Gn } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { T as
|
|
7
|
-
import { t as ys, j as Ns, o as tn, k as bs, h as Ts, r as Ss, D as Cs, T as ws, e as Is } from "./ontology-modeling-
|
|
8
|
-
import { D as We } from "./index-
|
|
9
|
-
import { T as ue, R as Sn } from "./index-
|
|
10
|
-
import { D as U } from "./index-
|
|
11
|
-
import { T as O } from "./index-
|
|
12
|
-
import { A as Ae } from "./index-
|
|
13
|
-
import { F as me } from "./Table-
|
|
14
|
-
import { I as se } from "./index-
|
|
15
|
-
import { C as ks } from "./Collapse-
|
|
16
|
-
import { S as Es } from "./index-
|
|
17
|
-
import { S as Fe } from "./index-
|
|
18
|
-
import { u as
|
|
19
|
-
import { T as F } from "./index-
|
|
20
|
-
import { R as nn, T as Cn } from "./index-
|
|
21
|
-
import { R as wn, a as Rs, s as In, S as Ls, b as As } from "./scenario-mapping-preview-
|
|
4
|
+
import { P as Gn } from "./index-lpiHPbbx.js";
|
|
5
|
+
import { b3 as he, b4 as pe, A as _e, S as Qe, aa as Me, B as D, h as ie, dT as Qn, dH as ze, bs as bn, L as Be, bH as Wn, dW as Yn, dB as Zn, de as Jn, I as Xn, t as en, k as Oe, r as ve, K as es, dX as Tn, u as ns, dy as ss, e as as, d8 as ts } from "./embed-CoEyJMJx.js";
|
|
6
|
+
import { T as ls, a as rs, u as os, b as cs, C as is, S as ds, R as us, I as ms, E as hs, c as ps, d as fs, e as gs, s as vs } from "./use-graph-layers-Bi90s60B.js";
|
|
7
|
+
import { t as ys, j as Ns, o as tn, k as bs, h as Ts, r as Ss, D as Cs, T as ws, e as Is } from "./ontology-modeling-9beSFK8t.js";
|
|
8
|
+
import { D as We } from "./index-Ct0MiSE7.js";
|
|
9
|
+
import { T as ue, R as Sn } from "./index-DljgNXFS.js";
|
|
10
|
+
import { D as U } from "./index-B21fkm-c.js";
|
|
11
|
+
import { T as O } from "./index-mANVYpNc.js";
|
|
12
|
+
import { A as Ae } from "./index-C0bjp6yU.js";
|
|
13
|
+
import { F as me } from "./Table-BF9fhMoT.js";
|
|
14
|
+
import { I as se } from "./index-o4EXX17N.js";
|
|
15
|
+
import { C as ks } from "./Collapse-CZbXdmBX.js";
|
|
16
|
+
import { S as Es } from "./index-B2Hx9Q2V.js";
|
|
17
|
+
import { S as Fe } from "./index-fSzyAUm4.js";
|
|
18
|
+
import { u as ln } from "./use-domain-access-CcPd_gzX.js";
|
|
19
|
+
import { T as F } from "./index-CkrD_v5E.js";
|
|
20
|
+
import { R as nn, T as Cn } from "./index-BMVRmc79.js";
|
|
21
|
+
import { R as wn, a as Rs, s as In, S as Ls, b as As } from "./scenario-mapping-preview-CDg3_f0U.js";
|
|
22
22
|
import { u as Ds } from "./use-escape-key-4SZ4l7av.js";
|
|
23
23
|
import { c as mn, f as xs } from "./format-CWI99NCN.js";
|
|
24
|
-
import { a as Ps } from "./LeftOutlined-
|
|
25
|
-
import { R as Ie, F as Le } from "./index-
|
|
26
|
-
import { D as kn } from "./index-
|
|
27
|
-
import { M as En } from "./index-
|
|
28
|
-
import { R as $s } from "./RotateRightOutlined-
|
|
29
|
-
import { R as hn, g as Rn, a as Os, b as Ze, l as Ms, r as zs, p as Bs, c as _s, d as Fs, e as Us, f as Hs, h as Ks, i as Vs, j as js, k as qs, m as Gs, n as Qs, o as Ws } from "./ontology-scenarios-
|
|
30
|
-
import { R as Ys } from "./ClockCircleOutlined-
|
|
31
|
-
import { T as He } from "./index-
|
|
32
|
-
import { S as Zs } from "./index-
|
|
33
|
-
import { P as Je } from "./index-
|
|
34
|
-
import { R as Js } from "./DeleteOutlined-
|
|
24
|
+
import { a as Ps } from "./LeftOutlined-B79bB1ZG.js";
|
|
25
|
+
import { R as Ie, F as Le } from "./index-BeejupFS.js";
|
|
26
|
+
import { D as kn } from "./index-Bqkx1OMz.js";
|
|
27
|
+
import { M as En } from "./index-C8VIE0cr.js";
|
|
28
|
+
import { R as $s } from "./RotateRightOutlined-TrlUrEUZ.js";
|
|
29
|
+
import { R as hn, g as Rn, a as Os, b as Ze, l as Ms, r as zs, p as Bs, c as _s, d as Fs, e as Us, f as Hs, h as Ks, i as Vs, j as js, k as qs, m as Gs, n as Qs, o as Ws } from "./ontology-scenarios-ANZMjyMB.js";
|
|
30
|
+
import { R as Ys } from "./ClockCircleOutlined-DACEazDR.js";
|
|
31
|
+
import { T as He } from "./index-DvdRKgvN.js";
|
|
32
|
+
import { S as Zs } from "./index-D1vltZIy.js";
|
|
33
|
+
import { P as Je } from "./index-ly9q05gX.js";
|
|
34
|
+
import { R as Js } from "./DeleteOutlined-CtmAIIV3.js";
|
|
35
35
|
var Xs = { 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" }, ea = function(a, s) {
|
|
36
36
|
return /* @__PURE__ */ W.createElement(he, pe({}, a, {
|
|
37
37
|
ref: s,
|
|
@@ -53,12 +53,12 @@ var aa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
53
53
|
}));
|
|
54
54
|
}, sn = /* @__PURE__ */ W.forwardRef(ta);
|
|
55
55
|
process.env.NODE_ENV !== "production" && (sn.displayName = "ArrowLeftOutlined");
|
|
56
|
-
var
|
|
56
|
+
var la = { 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" }, ra = function(a, s) {
|
|
57
57
|
return /* @__PURE__ */ W.createElement(he, pe({}, a, {
|
|
58
58
|
ref: s,
|
|
59
|
-
icon:
|
|
59
|
+
icon: la
|
|
60
60
|
}));
|
|
61
|
-
}, Ye = /* @__PURE__ */ W.forwardRef(
|
|
61
|
+
}, Ye = /* @__PURE__ */ W.forwardRef(ra);
|
|
62
62
|
process.env.NODE_ENV !== "production" && (Ye.displayName = "BranchesOutlined");
|
|
63
63
|
var oa = { 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" }, ca = function(a, s) {
|
|
64
64
|
return /* @__PURE__ */ W.createElement(he, pe({}, a, {
|
|
@@ -104,7 +104,7 @@ var va = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
104
104
|
process.env.NODE_ENV !== "production" && (On.displayName = "TagsOutlined");
|
|
105
105
|
const Na = 10, Mn = 3;
|
|
106
106
|
function ba(e = 0) {
|
|
107
|
-
const [a, s] = p(!0), [
|
|
107
|
+
const [a, s] = p(!0), [l, o] = p(), [c, r] = p(""), [m, u] = p(""), [h, d] = p([]), [b, i] = p(0), [f, C] = p(1), [v, g] = p(!0), y = ce(0), T = a ? 1 : l, k = x(
|
|
108
108
|
async (w) => {
|
|
109
109
|
const N = ++y.current;
|
|
110
110
|
g(!0);
|
|
@@ -134,10 +134,10 @@ function ba(e = 0) {
|
|
|
134
134
|
}, [e, k]), {
|
|
135
135
|
todoOnly: a,
|
|
136
136
|
setTodoOnly: s,
|
|
137
|
-
status:
|
|
137
|
+
status: l,
|
|
138
138
|
setStatus: o,
|
|
139
139
|
searchInput: c,
|
|
140
|
-
setSearchInput:
|
|
140
|
+
setSearchInput: r,
|
|
141
141
|
keyword: m,
|
|
142
142
|
setKeyword: u,
|
|
143
143
|
records: h,
|
|
@@ -150,7 +150,7 @@ function ba(e = 0) {
|
|
|
150
150
|
function X(e) {
|
|
151
151
|
return e && e.replace("T", " ").replace(/\.\d+/, "").replace(/Z$/, "") || "-";
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function rn(e) {
|
|
154
154
|
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`;
|
|
155
155
|
}
|
|
156
156
|
function an(e) {
|
|
@@ -240,12 +240,12 @@ function ka({
|
|
|
240
240
|
orderStatus: a,
|
|
241
241
|
onRetry: s
|
|
242
242
|
}) {
|
|
243
|
-
const
|
|
243
|
+
const l = Ca(e.afterJson), o = wa(l.definition), c = Ta(e.status), r = e.status === 3;
|
|
244
244
|
return /* @__PURE__ */ n(
|
|
245
245
|
ks,
|
|
246
246
|
{
|
|
247
247
|
size: "small",
|
|
248
|
-
defaultActiveKey:
|
|
248
|
+
defaultActiveKey: r ? ["item"] : [],
|
|
249
249
|
items: [
|
|
250
250
|
{
|
|
251
251
|
key: "item",
|
|
@@ -254,29 +254,29 @@ function ka({
|
|
|
254
254
|
"#",
|
|
255
255
|
e.seqNo ?? "-"
|
|
256
256
|
] }),
|
|
257
|
-
/* @__PURE__ */ n("b", { children:
|
|
257
|
+
/* @__PURE__ */ n("b", { children: l.scenarioCode || e.targetName || e.code }),
|
|
258
258
|
e.itemType !== void 0 ? /* @__PURE__ */ n(O, { color: "blue", children: Ts(e.itemType) }) : null,
|
|
259
259
|
c ? /* @__PURE__ */ n(O, { color: Sa(e.status), children: c }) : null
|
|
260
260
|
] }),
|
|
261
261
|
children: /* @__PURE__ */ t("div", { className: "osc-scn-order-item-body", children: [
|
|
262
262
|
/* @__PURE__ */ t(U, { size: "small", column: 2, children: [
|
|
263
|
-
/* @__PURE__ */ n(U.Item, { label: "场景编码", children: /* @__PURE__ */ n("span", { className: "mono", children:
|
|
264
|
-
/* @__PURE__ */ n(U.Item, { label: "场景名称", children:
|
|
265
|
-
/* @__PURE__ */ n(U.Item, { label: "说明", span: 2, children:
|
|
263
|
+
/* @__PURE__ */ n(U.Item, { label: "场景编码", children: /* @__PURE__ */ n("span", { className: "mono", children: l.scenarioCode || e.targetName || "—" }) }),
|
|
264
|
+
/* @__PURE__ */ n(U.Item, { label: "场景名称", children: l.name || "—" }),
|
|
265
|
+
/* @__PURE__ */ n(U.Item, { label: "说明", span: 2, children: l.description || "—" }),
|
|
266
266
|
/* @__PURE__ */ n(U.Item, { label: "定义摘要", span: 2, children: o ? `${o.types} 个源对象 · ${o.edges} 条源关系 · ${o.relations} 条目标关系` : "下线场景不携带投影定义" })
|
|
267
267
|
] }),
|
|
268
|
-
|
|
268
|
+
l.definition ? /* @__PURE__ */ n("pre", { className: "osc-scn-order-def", children: JSON.stringify(l.definition, null, 2) }) : null,
|
|
269
269
|
e.errorMsg ? /* @__PURE__ */ n(
|
|
270
270
|
Ae,
|
|
271
271
|
{
|
|
272
272
|
style: { marginTop: 8 },
|
|
273
|
-
type:
|
|
273
|
+
type: r ? "error" : "warning",
|
|
274
274
|
showIcon: !0,
|
|
275
|
-
message:
|
|
275
|
+
message: r ? "失败原因" : "跳过原因",
|
|
276
276
|
description: e.errorMsg
|
|
277
277
|
}
|
|
278
278
|
) : null,
|
|
279
|
-
a === 6 && (
|
|
279
|
+
a === 6 && (r || e.status === 4) ? /* @__PURE__ */ n(
|
|
280
280
|
D,
|
|
281
281
|
{
|
|
282
282
|
style: { marginTop: 8 },
|
|
@@ -296,10 +296,10 @@ function zn({
|
|
|
296
296
|
open: e,
|
|
297
297
|
orderCode: a,
|
|
298
298
|
onClose: s,
|
|
299
|
-
onChanged:
|
|
299
|
+
onChanged: l,
|
|
300
300
|
onOpenTasks: o
|
|
301
301
|
}) {
|
|
302
|
-
const { message: c } = _e.useApp(), [
|
|
302
|
+
const { message: c } = _e.useApp(), [r, m] = p(null), [u, h] = p(!1), [d, b] = p(), [i, f] = p(!1), [C, v] = p(!1), [g, y] = p(""), [T, k] = p(0), A = ce(!1), w = r == null ? void 0 : r.order, N = w == null ? void 0 : w.status, E = w == null ? void 0 : w.code;
|
|
303
303
|
z(() => {
|
|
304
304
|
A.current = !1;
|
|
305
305
|
}, [a]), z(() => {
|
|
@@ -333,8 +333,8 @@ function zn({
|
|
|
333
333
|
};
|
|
334
334
|
}, [e, E, N]);
|
|
335
335
|
const L = x(() => {
|
|
336
|
-
k((R) => R + 1),
|
|
337
|
-
}, [
|
|
336
|
+
k((R) => R + 1), l == null || l();
|
|
337
|
+
}, [l]), Z = async () => {
|
|
338
338
|
if (!w)
|
|
339
339
|
return;
|
|
340
340
|
f(!0);
|
|
@@ -371,7 +371,7 @@ function zn({
|
|
|
371
371
|
/* @__PURE__ */ n(U.Item, { label: "工单号", children: /* @__PURE__ */ n("span", { className: "mono", children: w.orderNo || w.code }) }),
|
|
372
372
|
/* @__PURE__ */ n(U.Item, { label: "场景编码", children: /* @__PURE__ */ n("span", { className: "mono", children: w.sourceRef || "—" }) }),
|
|
373
373
|
/* @__PURE__ */ t(U.Item, { label: "变更项", children: [
|
|
374
|
-
w.itemCount ??
|
|
374
|
+
w.itemCount ?? r.items.length,
|
|
375
375
|
w.failedItemCount ? `(失败 ${w.failedItemCount})` : ""
|
|
376
376
|
] }),
|
|
377
377
|
/* @__PURE__ */ n(U.Item, { label: "Schema 版本", children: /* @__PURE__ */ t("span", { className: "mono", children: [
|
|
@@ -395,10 +395,10 @@ function zn({
|
|
|
395
395
|
) : null,
|
|
396
396
|
/* @__PURE__ */ t("div", { className: "osc-scn-order-section-title", children: [
|
|
397
397
|
"变更项(",
|
|
398
|
-
|
|
398
|
+
r.items.length,
|
|
399
399
|
")"
|
|
400
400
|
] }),
|
|
401
|
-
/* @__PURE__ */ n("div", { className: "osc-scn-order-items", children:
|
|
401
|
+
/* @__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(
|
|
402
402
|
ka,
|
|
403
403
|
{
|
|
404
404
|
item: R,
|
|
@@ -489,16 +489,16 @@ function La({
|
|
|
489
489
|
focusOrderCode: e,
|
|
490
490
|
domainVersion: a = 0,
|
|
491
491
|
onOrderChange: s,
|
|
492
|
-
onOpenTasks:
|
|
492
|
+
onOpenTasks: l
|
|
493
493
|
}) {
|
|
494
|
-
const o = ba(a), [c,
|
|
495
|
-
m !== a && (u(a),
|
|
496
|
-
e &&
|
|
494
|
+
const o = ba(a), [c, r] = p(), [m, u] = p(a);
|
|
495
|
+
m !== a && (u(a), r(void 0)), z(() => {
|
|
496
|
+
e && r(e);
|
|
497
497
|
}, [e]);
|
|
498
498
|
const h = (i) => {
|
|
499
|
-
|
|
499
|
+
r(i), s == null || s(i);
|
|
500
500
|
}, d = () => {
|
|
501
|
-
|
|
501
|
+
r(void 0), s == null || s(void 0);
|
|
502
502
|
}, b = [
|
|
503
503
|
{
|
|
504
504
|
title: "工单",
|
|
@@ -618,7 +618,7 @@ function La({
|
|
|
618
618
|
onClose: d,
|
|
619
619
|
onChanged: () => void o.load(o.current),
|
|
620
620
|
onOpenTasks: (i) => {
|
|
621
|
-
|
|
621
|
+
r(void 0), l == null || l(i);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
)
|
|
@@ -701,13 +701,13 @@ function Ha({
|
|
|
701
701
|
state: e,
|
|
702
702
|
scope: a,
|
|
703
703
|
ancestors: s = [],
|
|
704
|
-
activeCode:
|
|
704
|
+
activeCode: l,
|
|
705
705
|
onSelect: o
|
|
706
706
|
}) {
|
|
707
707
|
var w;
|
|
708
|
-
const [c,
|
|
708
|
+
const [c, r] = p(e.keyword), u = ln().can("scenario.write") ? void 0 : Qn();
|
|
709
709
|
z(() => {
|
|
710
|
-
|
|
710
|
+
r(e.keyword);
|
|
711
711
|
}, [e.keyword]);
|
|
712
712
|
const h = (N) => {
|
|
713
713
|
const E = N.trim();
|
|
@@ -736,7 +736,7 @@ function Ha({
|
|
|
736
736
|
"button",
|
|
737
737
|
{
|
|
738
738
|
type: "button",
|
|
739
|
-
className: `osc-scn-card${N.scenarioCode ===
|
|
739
|
+
className: `osc-scn-card${N.scenarioCode === l ? " active" : ""}`,
|
|
740
740
|
onClick: () => o(N.scenarioCode),
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ t("span", { className: "osc-scn-card-top", children: [
|
|
@@ -791,7 +791,7 @@ function Ha({
|
|
|
791
791
|
prefix: /* @__PURE__ */ n(bn, {}),
|
|
792
792
|
placeholder: "搜索场景名 / 编码,回车确认",
|
|
793
793
|
value: c,
|
|
794
|
-
onChange: (N) =>
|
|
794
|
+
onChange: (N) => r(N.target.value),
|
|
795
795
|
onPressEnter: (N) => h(N.currentTarget.value),
|
|
796
796
|
onBlur: (N) => h(N.target.value)
|
|
797
797
|
}
|
|
@@ -916,17 +916,17 @@ const Ka = {
|
|
|
916
916
|
byTag: /* @__PURE__ */ new Map()
|
|
917
917
|
};
|
|
918
918
|
function Va(e) {
|
|
919
|
-
const [a, s] = p(Ka), [
|
|
919
|
+
const [a, s] = p(Ka), [l, o] = p(0);
|
|
920
920
|
z(() => {
|
|
921
921
|
if (!e) {
|
|
922
922
|
s({ loading: !1, graphBound: !1, total: void 0, byTag: /* @__PURE__ */ new Map() });
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
|
-
let
|
|
925
|
+
let r = !1;
|
|
926
926
|
return s((u) => ({ ...u, loading: !0 })), (async () => {
|
|
927
927
|
try {
|
|
928
928
|
const u = await Yn({ scope: "SCENARIO", scenarioCode: e });
|
|
929
|
-
if (
|
|
929
|
+
if (r) return;
|
|
930
930
|
if (!u) {
|
|
931
931
|
s({ loading: !1, graphBound: !1, total: void 0, byTag: /* @__PURE__ */ new Map() });
|
|
932
932
|
return;
|
|
@@ -938,13 +938,13 @@ function Va(e) {
|
|
|
938
938
|
byTag: new Map(u.tags.map((h) => [h.tagName, h.instanceCount]))
|
|
939
939
|
});
|
|
940
940
|
} finally {
|
|
941
|
-
|
|
941
|
+
r || s((u) => u.loading ? { ...u, loading: !1 } : u);
|
|
942
942
|
}
|
|
943
943
|
})(), () => {
|
|
944
|
-
|
|
944
|
+
r = !0;
|
|
945
945
|
};
|
|
946
|
-
}, [e,
|
|
947
|
-
const c = x(() => o((
|
|
946
|
+
}, [e, l]);
|
|
947
|
+
const c = x(() => o((r) => r + 1), []);
|
|
948
948
|
return { ...a, reload: c };
|
|
949
949
|
}
|
|
950
950
|
function ja() {
|
|
@@ -960,12 +960,12 @@ function ja() {
|
|
|
960
960
|
}, []), e;
|
|
961
961
|
}
|
|
962
962
|
function qa() {
|
|
963
|
-
const [e, a] = p(""), [s,
|
|
963
|
+
const [e, a] = p(""), [s, l] = p("");
|
|
964
964
|
return z(() => {
|
|
965
965
|
let o = !1;
|
|
966
966
|
return (async () => {
|
|
967
|
-
const
|
|
968
|
-
o || !
|
|
967
|
+
const r = await Jn();
|
|
968
|
+
o || !r || (a(r.name), l(r.graphSpace ?? ""));
|
|
969
969
|
})(), () => {
|
|
970
970
|
o = !0;
|
|
971
971
|
};
|
|
@@ -976,11 +976,11 @@ function Ga({
|
|
|
976
976
|
base: a,
|
|
977
977
|
counts: s
|
|
978
978
|
}) {
|
|
979
|
-
const
|
|
979
|
+
const l = new Map(((a == null ? void 0 : a.nodes) ?? []).map((h) => [h.tagName, h])), o = new Map(((a == null ? void 0 : a.edges) ?? []).map((h) => [h.edgeName, h])), c = [];
|
|
980
980
|
for (const h of e.draft.sourceTypes)
|
|
981
981
|
c.includes(h) || c.push(h);
|
|
982
|
-
const
|
|
983
|
-
const d =
|
|
982
|
+
const r = c.map((h) => {
|
|
983
|
+
const d = l.get(h), b = s != null && s.graphBound ? s.byTag.get(h) : void 0;
|
|
984
984
|
return {
|
|
985
985
|
code: (d == null ? void 0 : d.code) ?? h,
|
|
986
986
|
tagName: h,
|
|
@@ -1007,34 +1007,34 @@ function Ga({
|
|
|
1007
1007
|
});
|
|
1008
1008
|
return {
|
|
1009
1009
|
ontologyCode: (a == null ? void 0 : a.ontologyCode) ?? "",
|
|
1010
|
-
nodeCount: String(
|
|
1010
|
+
nodeCount: String(r.length),
|
|
1011
1011
|
edgeCount: String(u.length),
|
|
1012
1012
|
truncated: (a == null ? void 0 : a.truncated) ?? !1,
|
|
1013
|
-
nodes:
|
|
1013
|
+
nodes: r,
|
|
1014
1014
|
edges: u
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
function Qa(e, a) {
|
|
1018
|
-
const s = ((e == null ? void 0 : e.nodes) ?? []).map((
|
|
1019
|
-
code:
|
|
1020
|
-
tagName:
|
|
1021
|
-
displayName:
|
|
1022
|
-
category:
|
|
1023
|
-
bizDomain:
|
|
1024
|
-
levelCode:
|
|
1025
|
-
instanceCount:
|
|
1018
|
+
const s = ((e == null ? void 0 : e.nodes) ?? []).map((r) => ({
|
|
1019
|
+
code: r.code,
|
|
1020
|
+
tagName: r.tagName,
|
|
1021
|
+
displayName: r.displayName,
|
|
1022
|
+
category: r.category,
|
|
1023
|
+
bizDomain: r.bizDomain,
|
|
1024
|
+
levelCode: r.levelCode,
|
|
1025
|
+
instanceCount: r.instanceCount,
|
|
1026
1026
|
status: "ACTIVE"
|
|
1027
|
-
})),
|
|
1028
|
-
for (const
|
|
1029
|
-
const m =
|
|
1030
|
-
m ? m.push(
|
|
1027
|
+
})), l = /* @__PURE__ */ new Map();
|
|
1028
|
+
for (const r of (e == null ? void 0 : e.edges) ?? []) {
|
|
1029
|
+
const m = l.get(r.edgeName);
|
|
1030
|
+
m ? m.push(r) : l.set(r.edgeName, [r]);
|
|
1031
1031
|
}
|
|
1032
|
-
const o = new Map(((a == null ? void 0 : a.edges) ?? []).map((
|
|
1033
|
-
for (const [
|
|
1034
|
-
const u = o.get(
|
|
1032
|
+
const o = new Map(((a == null ? void 0 : a.edges) ?? []).map((r) => [r.edgeName, r.code])), c = [];
|
|
1033
|
+
for (const [r, m] of l) {
|
|
1034
|
+
const u = o.get(r) ?? m[0].code;
|
|
1035
1035
|
c.push({
|
|
1036
1036
|
code: u,
|
|
1037
|
-
edgeName:
|
|
1037
|
+
edgeName: r,
|
|
1038
1038
|
displayName: m[0].displayName,
|
|
1039
1039
|
status: "ACTIVE",
|
|
1040
1040
|
endpoints: m.map((h) => ({
|
|
@@ -1054,10 +1054,10 @@ function Wa({
|
|
|
1054
1054
|
view: e,
|
|
1055
1055
|
base: a,
|
|
1056
1056
|
categories: s,
|
|
1057
|
-
counts:
|
|
1057
|
+
counts: l,
|
|
1058
1058
|
ontologyName: o,
|
|
1059
1059
|
domainCode: c,
|
|
1060
|
-
domainName:
|
|
1060
|
+
domainName: r,
|
|
1061
1061
|
chainTagNames: m,
|
|
1062
1062
|
flashTagNames: u,
|
|
1063
1063
|
activeEdgeName: h,
|
|
@@ -1101,21 +1101,21 @@ function Wa({
|
|
|
1101
1101
|
/* @__PURE__ */ t("div", { className: "osc-sg-tp-domain", children: [
|
|
1102
1102
|
"域",
|
|
1103
1103
|
/* @__PURE__ */ t("span", { className: "mono", children: [
|
|
1104
|
-
|
|
1104
|
+
r,
|
|
1105
1105
|
" · ",
|
|
1106
1106
|
c
|
|
1107
1107
|
] })
|
|
1108
1108
|
] })
|
|
1109
1109
|
] }),
|
|
1110
1110
|
/* @__PURE__ */ n(
|
|
1111
|
-
|
|
1111
|
+
ls,
|
|
1112
1112
|
{
|
|
1113
1113
|
tags: C.tags,
|
|
1114
1114
|
edges: C.edges,
|
|
1115
1115
|
tagTotal: C.tags.length,
|
|
1116
1116
|
edgeTotal: C.edges.length,
|
|
1117
1117
|
categories: s,
|
|
1118
|
-
instanceCountKnown:
|
|
1118
|
+
instanceCountKnown: l.graphBound && !l.loading,
|
|
1119
1119
|
chainTagNames: m,
|
|
1120
1120
|
flashTagNames: u,
|
|
1121
1121
|
activeEdgeName: h,
|
|
@@ -1132,15 +1132,15 @@ function Za({
|
|
|
1132
1132
|
detail: e,
|
|
1133
1133
|
graph: a,
|
|
1134
1134
|
graphFailed: s,
|
|
1135
|
-
onReloadGraph:
|
|
1135
|
+
onReloadGraph: l,
|
|
1136
1136
|
model: o,
|
|
1137
1137
|
domainCode: c,
|
|
1138
|
-
domainName:
|
|
1138
|
+
domainName: r,
|
|
1139
1139
|
identity: m,
|
|
1140
1140
|
actions: u
|
|
1141
1141
|
}) {
|
|
1142
1142
|
var M;
|
|
1143
|
-
const h = Va(e.scenarioCode), d = qa(), b = ja(), i =
|
|
1143
|
+
const h = Va(e.scenarioCode), d = qa(), b = ja(), i = rs(), f = os({ scope: "SCENARIO", scenarioCode: e.scenarioCode }), C = Y(
|
|
1144
1144
|
() => h.loading || !h.graphBound ? void 0 : { graphBound: !0, byTag: h.byTag },
|
|
1145
1145
|
[h.loading, h.graphBound, h.byTag]
|
|
1146
1146
|
), v = Y(
|
|
@@ -1153,7 +1153,7 @@ function Za({
|
|
|
1153
1153
|
},
|
|
1154
1154
|
[]
|
|
1155
1155
|
);
|
|
1156
|
-
const
|
|
1156
|
+
const le = Y(
|
|
1157
1157
|
() => Object.fromEntries(
|
|
1158
1158
|
((v == null ? void 0 : v.nodes) ?? []).map((S) => [
|
|
1159
1159
|
S.tagName,
|
|
@@ -1169,11 +1169,11 @@ function Za({
|
|
|
1169
1169
|
])
|
|
1170
1170
|
),
|
|
1171
1171
|
[v]
|
|
1172
|
-
),
|
|
1172
|
+
), re = (S) => {
|
|
1173
1173
|
const $ = g.pickNode(S);
|
|
1174
1174
|
$.kind === "unreachable" && en("未找到可行链路", `已将 ${$.tagName} 切换为链路起点`, "warn");
|
|
1175
1175
|
}, oe = (S) => {
|
|
1176
|
-
i.clearFocus(), q(null), H(null), R(null), f.enterInstanceWith(S), N({ kind: "tag", tagName: S, tagLabels:
|
|
1176
|
+
i.clearFocus(), q(null), H(null), R(null), f.enterInstanceWith(S), N({ kind: "tag", tagName: S, tagLabels: le }), A("table");
|
|
1177
1177
|
}, Q = () => {
|
|
1178
1178
|
const S = g.chainNodeNames;
|
|
1179
1179
|
if (S.length === 1) {
|
|
@@ -1185,7 +1185,7 @@ function Za({
|
|
|
1185
1185
|
i.clearFocus(), q(null), H(null), R(null), f.enterInstanceWithTags([...new Set(S)]), A("table"), N({
|
|
1186
1186
|
kind: "chain",
|
|
1187
1187
|
steps: $,
|
|
1188
|
-
tagLabels:
|
|
1188
|
+
tagLabels: le,
|
|
1189
1189
|
edgeLabels: fe,
|
|
1190
1190
|
edgeReversed: $.map((P) => {
|
|
1191
1191
|
const j = ((v == null ? void 0 : v.edges) ?? []).find(
|
|
@@ -1282,8 +1282,8 @@ function Za({
|
|
|
1282
1282
|
view: we,
|
|
1283
1283
|
loading: !a && !s,
|
|
1284
1284
|
failed: s,
|
|
1285
|
-
onRetry:
|
|
1286
|
-
onRefresh:
|
|
1285
|
+
onRetry: l,
|
|
1286
|
+
onRefresh: l,
|
|
1287
1287
|
categories: b,
|
|
1288
1288
|
layer: f.layer,
|
|
1289
1289
|
tagCount: Number((v == null ? void 0 : v.nodeCount) ?? 0),
|
|
@@ -1300,7 +1300,7 @@ function Za({
|
|
|
1300
1300
|
var $;
|
|
1301
1301
|
return i.focusInstance(S.vid, (($ = f.subgraph.view) == null ? void 0 : $.edges) ?? []);
|
|
1302
1302
|
},
|
|
1303
|
-
onChainNodePick:
|
|
1303
|
+
onChainNodePick: re,
|
|
1304
1304
|
onChainEdgePick: (S) => {
|
|
1305
1305
|
g.pickEdge(
|
|
1306
1306
|
S.edgeName,
|
|
@@ -1342,13 +1342,13 @@ function Za({
|
|
|
1342
1342
|
counts: h,
|
|
1343
1343
|
ontologyName: d.name,
|
|
1344
1344
|
domainCode: c,
|
|
1345
|
-
domainName:
|
|
1345
|
+
domainName: r,
|
|
1346
1346
|
chainTagNames: g.chainNodeNames,
|
|
1347
1347
|
flashTagNames: ae,
|
|
1348
1348
|
activeEdgeName: K ?? void 0,
|
|
1349
1349
|
collapsed: y,
|
|
1350
1350
|
onToggleCollapsed: () => T((S) => !S),
|
|
1351
|
-
onPickTag:
|
|
1351
|
+
onPickTag: re,
|
|
1352
1352
|
onPickEdge: Se
|
|
1353
1353
|
}
|
|
1354
1354
|
) : null,
|
|
@@ -1432,7 +1432,7 @@ function Xa({ detail: e, onOpenRun: a }) {
|
|
|
1432
1432
|
/* @__PURE__ */ n("span", { className: "osc-health-sep" }),
|
|
1433
1433
|
/* @__PURE__ */ t("span", { children: [
|
|
1434
1434
|
"延迟 ",
|
|
1435
|
-
/* @__PURE__ */ n("b", { children:
|
|
1435
|
+
/* @__PURE__ */ n("b", { children: rn(e.lagMs) })
|
|
1436
1436
|
] }),
|
|
1437
1437
|
/* @__PURE__ */ n("span", { className: "osc-health-sep" }),
|
|
1438
1438
|
/* @__PURE__ */ t("span", { children: [
|
|
@@ -1458,7 +1458,7 @@ function Xa({ detail: e, onOpenRun: a }) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
function et({ detail: e }) {
|
|
1460
1460
|
var o;
|
|
1461
|
-
const a = Ue(e), s = !a && (e.stale || e.syncStatus === 5),
|
|
1461
|
+
const a = Ue(e), s = !a && (e.stale || e.syncStatus === 5), l = e.activeProjection;
|
|
1462
1462
|
return /* @__PURE__ */ t("div", { className: "osc-side-card", children: [
|
|
1463
1463
|
/* @__PURE__ */ t("div", { className: "osc-side-head", children: [
|
|
1464
1464
|
/* @__PURE__ */ n(Ye, {}),
|
|
@@ -1489,16 +1489,16 @@ function et({ detail: e }) {
|
|
|
1489
1489
|
] }),
|
|
1490
1490
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1491
1491
|
/* @__PURE__ */ n("label", { children: "生效工单" }),
|
|
1492
|
-
/* @__PURE__ */ n("b", { className: "mono", children: (
|
|
1492
|
+
/* @__PURE__ */ n("b", { className: "mono", children: (l == null ? void 0 : l.effectiveOrderCode) || "—" })
|
|
1493
1493
|
] }),
|
|
1494
1494
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1495
1495
|
/* @__PURE__ */ n("label", { children: "生效时间" }),
|
|
1496
|
-
/* @__PURE__ */ n("b", { className: "mono", children: X(
|
|
1496
|
+
/* @__PURE__ */ n("b", { className: "mono", children: X(l == null ? void 0 : l.effectiveAt) })
|
|
1497
1497
|
] })
|
|
1498
1498
|
] }),
|
|
1499
1499
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1500
1500
|
/* @__PURE__ */ n("label", { children: "定义哈希" }),
|
|
1501
|
-
/* @__PURE__ */ n("b", { className: "mono", children: ((o =
|
|
1501
|
+
/* @__PURE__ */ n("b", { className: "mono", children: ((o = l == null ? void 0 : l.definitionHash) == null ? void 0 : o.slice(0, 16)) || "—" })
|
|
1502
1502
|
] })
|
|
1503
1503
|
] })
|
|
1504
1504
|
] })
|
|
@@ -1548,11 +1548,11 @@ function at({
|
|
|
1548
1548
|
open: e,
|
|
1549
1549
|
onClose: a,
|
|
1550
1550
|
detail: s,
|
|
1551
|
-
definition:
|
|
1551
|
+
definition: l,
|
|
1552
1552
|
model: o,
|
|
1553
1553
|
consumers: c
|
|
1554
1554
|
}) {
|
|
1555
|
-
const
|
|
1555
|
+
const r = Ue(s), m = (l == null ? void 0 : l.identity.strategy) === "PREFIX_TARGET_TAG" ? "目标类型前缀" : "保留源 vid";
|
|
1556
1556
|
return /* @__PURE__ */ t(
|
|
1557
1557
|
We,
|
|
1558
1558
|
{
|
|
@@ -1567,14 +1567,14 @@ function at({
|
|
|
1567
1567
|
/* @__PURE__ */ n("p", { className: "osc-drawer-lead", children: s.description || "未填写场景说明。" }),
|
|
1568
1568
|
/* @__PURE__ */ t("div", { className: "osc-def-grid", children: [
|
|
1569
1569
|
/* @__PURE__ */ t("div", { className: "osc-kv", children: [
|
|
1570
|
-
|
|
1570
|
+
r ? null : /* @__PURE__ */ t(J, { children: [
|
|
1571
1571
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1572
1572
|
/* @__PURE__ */ n("label", { children: "数据截至" }),
|
|
1573
1573
|
/* @__PURE__ */ n("b", { className: "mono", children: X(s.dataAsOf) })
|
|
1574
1574
|
] }),
|
|
1575
1575
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1576
1576
|
/* @__PURE__ */ n("label", { children: "同步延迟" }),
|
|
1577
|
-
/* @__PURE__ */ n("b", { children:
|
|
1577
|
+
/* @__PURE__ */ n("b", { children: rn(s.lagMs) })
|
|
1578
1578
|
] }),
|
|
1579
1579
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1580
1580
|
/* @__PURE__ */ n("label", { children: "场景空间" }),
|
|
@@ -1586,8 +1586,8 @@ function at({
|
|
|
1586
1586
|
/* @__PURE__ */ n("b", { className: "mono", children: s.baseSchemaVersion ?? "—" })
|
|
1587
1587
|
] }),
|
|
1588
1588
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1589
|
-
/* @__PURE__ */ n("label", { children:
|
|
1590
|
-
/* @__PURE__ */ n("b", { className: "mono", children: s.projectionVersion ? `v${s.projectionVersion}` :
|
|
1589
|
+
/* @__PURE__ */ n("label", { children: r ? "定义版本" : "投影版本" }),
|
|
1590
|
+
/* @__PURE__ */ n("b", { className: "mono", children: s.projectionVersion ? `v${s.projectionVersion}` : r ? "—" : "未钉版本" })
|
|
1591
1591
|
] }),
|
|
1592
1592
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1593
1593
|
/* @__PURE__ */ n("label", { children: "创建时间" }),
|
|
@@ -1599,7 +1599,7 @@ function at({
|
|
|
1599
1599
|
/* @__PURE__ */ n("label", { children: "场景编码" }),
|
|
1600
1600
|
/* @__PURE__ */ n("b", { className: "mono", children: s.scenarioCode })
|
|
1601
1601
|
] }),
|
|
1602
|
-
|
|
1602
|
+
r ? null : /* @__PURE__ */ t(J, { children: [
|
|
1603
1603
|
/* @__PURE__ */ t("div", { className: "row", children: [
|
|
1604
1604
|
/* @__PURE__ */ n("label", { children: "定义方式" }),
|
|
1605
1605
|
/* @__PURE__ */ n("b", { children: /* @__PURE__ */ n(O, { color: "blue", children: "基础子图 + 映射" }) })
|
|
@@ -1625,7 +1625,7 @@ function at({
|
|
|
1625
1625
|
" 个"
|
|
1626
1626
|
] })
|
|
1627
1627
|
] }),
|
|
1628
|
-
|
|
1628
|
+
r ? null : /* @__PURE__ */ t("div", { className: "row", children: [
|
|
1629
1629
|
/* @__PURE__ */ n("label", { children: "失败项" }),
|
|
1630
1630
|
/* @__PURE__ */ t("b", { className: s.failedItemCount > 0 ? "osc-danger" : "", children: [
|
|
1631
1631
|
s.failedItemCount,
|
|
@@ -1666,17 +1666,17 @@ function tt({ relations: e }) {
|
|
|
1666
1666
|
/* @__PURE__ */ n("small", { children: a.sources.length ? a.sources.join(" / ") : "新增关系" })
|
|
1667
1667
|
] }),
|
|
1668
1668
|
/* @__PURE__ */ n("span", { className: "osc-edge-arrow", children: "→" }),
|
|
1669
|
-
/* @__PURE__ */ n("div", { className: "osc-edge-cells", children: a.endpoints.length === 0 ? /* @__PURE__ */ n("small", { children: "未声明端点" }) : a.endpoints.map((
|
|
1670
|
-
/* @__PURE__ */ n("b", { children:
|
|
1669
|
+
/* @__PURE__ */ n("div", { className: "osc-edge-cells", children: a.endpoints.length === 0 ? /* @__PURE__ */ n("small", { children: "未声明端点" }) : a.endpoints.map((l) => /* @__PURE__ */ t("span", { children: [
|
|
1670
|
+
/* @__PURE__ */ n("b", { children: l.srcTag }),
|
|
1671
1671
|
" → ",
|
|
1672
|
-
/* @__PURE__ */ n("b", { children:
|
|
1673
|
-
] }, `${
|
|
1672
|
+
/* @__PURE__ */ n("b", { children: l.dstTag })
|
|
1673
|
+
] }, `${l.srcTag}-${l.dstTag}`)) }),
|
|
1674
1674
|
/* @__PURE__ */ n(O, { color: a.op === "DIRECT" ? "default" : "geekblue", children: ((s = Rs[a.op]) == null ? void 0 : s.label) ?? a.op })
|
|
1675
1675
|
] }, a.target);
|
|
1676
1676
|
})
|
|
1677
1677
|
] });
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function lt({
|
|
1680
1680
|
projections: e,
|
|
1681
1681
|
loading: a
|
|
1682
1682
|
}) {
|
|
@@ -1691,49 +1691,49 @@ function rt({
|
|
|
1691
1691
|
title: "版本",
|
|
1692
1692
|
dataIndex: "version",
|
|
1693
1693
|
width: 80,
|
|
1694
|
-
render: (
|
|
1694
|
+
render: (l) => `v${l}`
|
|
1695
1695
|
},
|
|
1696
1696
|
{
|
|
1697
1697
|
title: "模式",
|
|
1698
1698
|
dataIndex: "mode",
|
|
1699
1699
|
width: 110,
|
|
1700
|
-
render: (
|
|
1700
|
+
render: (l) => l === "SUBGRAPH" ? /* @__PURE__ */ n(O, { color: "blue", children: "纯子图" }) : l === "MIXED" ? /* @__PURE__ */ n(O, { children: "混合映射" }) : "-"
|
|
1701
1701
|
},
|
|
1702
1702
|
{
|
|
1703
1703
|
title: "状态",
|
|
1704
1704
|
dataIndex: "status",
|
|
1705
1705
|
width: 100,
|
|
1706
|
-
render: (
|
|
1706
|
+
render: (l, o) => /* @__PURE__ */ n(_a, { status: o.status })
|
|
1707
1707
|
},
|
|
1708
1708
|
{
|
|
1709
1709
|
title: "定义哈希",
|
|
1710
1710
|
dataIndex: "definitionHash",
|
|
1711
1711
|
width: 220,
|
|
1712
|
-
render: (
|
|
1712
|
+
render: (l) => l ? /* @__PURE__ */ n(ue.Text, { code: !0, ellipsis: { tooltip: l }, style: { maxWidth: 200 }, children: l }) : "-"
|
|
1713
1713
|
},
|
|
1714
1714
|
{
|
|
1715
1715
|
title: "生效工单",
|
|
1716
1716
|
dataIndex: "effectiveOrderCode",
|
|
1717
1717
|
width: 180,
|
|
1718
|
-
render: (
|
|
1718
|
+
render: (l) => l || "-"
|
|
1719
1719
|
},
|
|
1720
1720
|
{
|
|
1721
1721
|
title: "生效时间",
|
|
1722
1722
|
dataIndex: "effectiveAt",
|
|
1723
1723
|
width: 150,
|
|
1724
|
-
render: (
|
|
1724
|
+
render: (l) => X(l)
|
|
1725
1725
|
},
|
|
1726
1726
|
{
|
|
1727
1727
|
title: "当前生效",
|
|
1728
1728
|
dataIndex: "active",
|
|
1729
1729
|
width: 90,
|
|
1730
|
-
render: (
|
|
1730
|
+
render: (l) => l ? /* @__PURE__ */ n(O, { color: "success", children: "生效中" }) : "-"
|
|
1731
1731
|
}
|
|
1732
1732
|
],
|
|
1733
1733
|
dataSource: e,
|
|
1734
1734
|
locale: { emptyText: "暂无投影版本" },
|
|
1735
1735
|
expandable: {
|
|
1736
|
-
expandedRowRender: (
|
|
1736
|
+
expandedRowRender: (l) => /* @__PURE__ */ n("pre", { className: "osc-json-block", children: l.definition || "(无定义内容)" })
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
);
|
|
@@ -1741,12 +1741,12 @@ function rt({
|
|
|
1741
1741
|
function Fn(e) {
|
|
1742
1742
|
return e.syncStatus === 5;
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function rt({
|
|
1745
1745
|
detail: e,
|
|
1746
1746
|
workbenchPath: a,
|
|
1747
1747
|
onOpenSync: s
|
|
1748
1748
|
}) {
|
|
1749
|
-
const
|
|
1749
|
+
const l = `/ontology/scenarios/${encodeURIComponent(e.scenarioCode)}/edit`, o = e.projectionVersion ? `v${e.projectionVersion}` : "未钉版本";
|
|
1750
1750
|
return /* @__PURE__ */ n("section", { className: "osc-stale-guide", "aria-label": "结构陈旧处置", children: /* @__PURE__ */ t("div", { className: "osc-stale-guide-head", children: [
|
|
1751
1751
|
/* @__PURE__ */ n(Ln, {}),
|
|
1752
1752
|
/* @__PURE__ */ n("b", { children: "结构已陈旧" }),
|
|
@@ -1755,7 +1755,7 @@ function lt({
|
|
|
1755
1755
|
/* @__PURE__ */ n("span", { className: "spacer" }),
|
|
1756
1756
|
/* @__PURE__ */ n(F, { title: "更新投影并提交工单,审批生效后在同一场景空间就地 diff 并全量重放,成功后恢复增量同步;不新建空间,也不能沿用旧版本重试。", children: /* @__PURE__ */ n(Ie, { className: "osc-help" }) }),
|
|
1757
1757
|
a && e.status !== 2 ? /* @__PURE__ */ n("span", { className: "note", children: "场景不可编辑:先恢复可用状态" }) : null,
|
|
1758
|
-
a && e.status === 2 ? /* @__PURE__ */ n(Be, { to:
|
|
1758
|
+
a && e.status === 2 ? /* @__PURE__ */ n(Be, { to: l, children: /* @__PURE__ */ n(D, { type: "primary", size: "small", icon: /* @__PURE__ */ n(Sn, {}), children: "更新投影工单" }) }) : null,
|
|
1759
1759
|
s ? /* @__PURE__ */ n(D, { size: "small", type: "text", icon: /* @__PURE__ */ n(wn, {}), onClick: s, children: "查看同步运行" }) : null
|
|
1760
1760
|
] }) });
|
|
1761
1761
|
}
|
|
@@ -1764,10 +1764,10 @@ function ct({
|
|
|
1764
1764
|
detail: e,
|
|
1765
1765
|
actions: a,
|
|
1766
1766
|
onDeleted: s,
|
|
1767
|
-
readOnly:
|
|
1767
|
+
readOnly: l = !1,
|
|
1768
1768
|
readOnlyReason: o
|
|
1769
1769
|
}) {
|
|
1770
|
-
const [c,
|
|
1770
|
+
const [c, r] = p(!1), [m, u] = p(""), h = e.status === 2, d = e.syncPaused === 1, b = Fn(e), i = e.status === 3 || e.syncStatus === 6, f = l ? o : b ? ot : void 0, C = async (T) => {
|
|
1771
1771
|
await Oe({
|
|
1772
1772
|
title: "重新下发同步运行",
|
|
1773
1773
|
sub: T === 2 ? "按增量通道从当前水位继续消费变更流;在途运行会被拒绝(51113)。" : "从当前水位重新全量重放;期间场景不可读,完成后自动恢复。",
|
|
@@ -1793,14 +1793,14 @@ function ct({
|
|
|
1793
1793
|
title: "删除场景",
|
|
1794
1794
|
sub: "删除后场景空间交由清理任务异步回收,空间编码作废且不复用;该操作不可撤销。",
|
|
1795
1795
|
confirmText: "删除"
|
|
1796
|
-
}) && (
|
|
1796
|
+
}) && (r(!1), await a.remove(), s());
|
|
1797
1797
|
};
|
|
1798
1798
|
return /* @__PURE__ */ t(J, { children: [
|
|
1799
1799
|
/* @__PURE__ */ t(Fe, { wrap: !0, children: [
|
|
1800
1800
|
/* @__PURE__ */ n(F, { title: f, children: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(
|
|
1801
1801
|
kn,
|
|
1802
1802
|
{
|
|
1803
|
-
disabled:
|
|
1803
|
+
disabled: l || !h || b || a.busy !== void 0,
|
|
1804
1804
|
menu: {
|
|
1805
1805
|
items: [
|
|
1806
1806
|
{ key: "1", label: "全量重放" },
|
|
@@ -1815,7 +1815,7 @@ function ct({
|
|
|
1815
1815
|
D,
|
|
1816
1816
|
{
|
|
1817
1817
|
loading: a.busy === "resume",
|
|
1818
|
-
disabled:
|
|
1818
|
+
disabled: l || !h,
|
|
1819
1819
|
onClick: () => a.resume(),
|
|
1820
1820
|
children: "恢复增量"
|
|
1821
1821
|
}
|
|
@@ -1823,8 +1823,8 @@ function ct({
|
|
|
1823
1823
|
D,
|
|
1824
1824
|
{
|
|
1825
1825
|
loading: a.busy === "pause",
|
|
1826
|
-
disabled:
|
|
1827
|
-
onClick: () =>
|
|
1826
|
+
disabled: l || !h || e.status === 1 || b,
|
|
1827
|
+
onClick: () => r(!0),
|
|
1828
1828
|
children: "暂停增量"
|
|
1829
1829
|
}
|
|
1830
1830
|
) }) }),
|
|
@@ -1832,7 +1832,7 @@ function ct({
|
|
|
1832
1832
|
D,
|
|
1833
1833
|
{
|
|
1834
1834
|
loading: a.busy === "repair",
|
|
1835
|
-
disabled:
|
|
1835
|
+
disabled: l || !h || b || e.failedItemCount === 0,
|
|
1836
1836
|
onClick: () => void g(),
|
|
1837
1837
|
children: "定点修复"
|
|
1838
1838
|
}
|
|
@@ -1841,7 +1841,7 @@ function ct({
|
|
|
1841
1841
|
D,
|
|
1842
1842
|
{
|
|
1843
1843
|
loading: a.busy === "reconcile",
|
|
1844
|
-
disabled:
|
|
1844
|
+
disabled: l || !h || b,
|
|
1845
1845
|
onClick: () => void v(),
|
|
1846
1846
|
children: "对账"
|
|
1847
1847
|
}
|
|
@@ -1851,7 +1851,7 @@ function ct({
|
|
|
1851
1851
|
{
|
|
1852
1852
|
danger: !0,
|
|
1853
1853
|
loading: a.busy === "delete",
|
|
1854
|
-
disabled:
|
|
1854
|
+
disabled: l || !i,
|
|
1855
1855
|
onClick: () => void y(),
|
|
1856
1856
|
children: "删除场景"
|
|
1857
1857
|
}
|
|
@@ -1866,9 +1866,9 @@ function ct({
|
|
|
1866
1866
|
cancelText: "取消",
|
|
1867
1867
|
confirmLoading: a.busy === "pause",
|
|
1868
1868
|
onOk: () => {
|
|
1869
|
-
a.pause(m.trim()),
|
|
1869
|
+
a.pause(m.trim()), r(!1), u("");
|
|
1870
1870
|
},
|
|
1871
|
-
onCancel: () =>
|
|
1871
|
+
onCancel: () => r(!1),
|
|
1872
1872
|
children: /* @__PURE__ */ n(
|
|
1873
1873
|
se.TextArea,
|
|
1874
1874
|
{
|
|
@@ -1918,7 +1918,7 @@ function it({ detail: e }) {
|
|
|
1918
1918
|
/* @__PURE__ */ n(U.Item, { label: "基础 Schema 版本", children: e.baseSchemaVersion ?? "-" }),
|
|
1919
1919
|
/* @__PURE__ */ n(U.Item, { label: "已应用变更水位", children: e.lastAppliedChangeId ?? "-" }),
|
|
1920
1920
|
/* @__PURE__ */ n(U.Item, { label: "数据截止", children: X(e.dataAsOf) }),
|
|
1921
|
-
/* @__PURE__ */ n(U.Item, { label: "同步延迟", children: /* @__PURE__ */ n(O, { color: e.stale ? "orange" : "blue", children:
|
|
1921
|
+
/* @__PURE__ */ n(U.Item, { label: "同步延迟", children: /* @__PURE__ */ n(O, { color: e.stale ? "orange" : "blue", children: rn(e.lagMs) }) }),
|
|
1922
1922
|
/* @__PURE__ */ n(U.Item, { label: "最近同步", children: X(e.lastSyncedAt) }),
|
|
1923
1923
|
/* @__PURE__ */ n(U.Item, { label: "创建时间", children: X(e.createTime) })
|
|
1924
1924
|
] })
|
|
@@ -2024,7 +2024,7 @@ function ut({ state: e }) {
|
|
|
2024
2024
|
title: "水位",
|
|
2025
2025
|
key: "watermark",
|
|
2026
2026
|
width: 140,
|
|
2027
|
-
render: (s,
|
|
2027
|
+
render: (s, l) => `${an(l.watermarkFrom)} → ${an(l.watermarkTo)}`
|
|
2028
2028
|
},
|
|
2029
2029
|
{
|
|
2030
2030
|
title: "统计",
|
|
@@ -2109,18 +2109,18 @@ function ut({ state: e }) {
|
|
|
2109
2109
|
] });
|
|
2110
2110
|
}
|
|
2111
2111
|
function mt({ detail: e }) {
|
|
2112
|
-
const a = e.status === 2, s = e.status === 1,
|
|
2112
|
+
const a = e.status === 2, s = e.status === 1, l = s && e.syncStatus === 2, o = e.activeRun ? `全量重放 ${e.activeRun.runCode} · ${X(e.activeRun.startedAt)}` : "全量重放", c = [
|
|
2113
2113
|
{
|
|
2114
2114
|
done: !0,
|
|
2115
2115
|
text: s ? "工单生效:结构已建,自动生成 FULL 运行。" : "结构已就绪,无在途结构变更。"
|
|
2116
2116
|
},
|
|
2117
2117
|
{
|
|
2118
|
-
done: !
|
|
2119
|
-
text: `${o}${
|
|
2118
|
+
done: !l,
|
|
2119
|
+
text: `${o}${l ? " 进行中" : " 已完成"}。`
|
|
2120
2120
|
},
|
|
2121
2121
|
{
|
|
2122
2122
|
done: !1,
|
|
2123
|
-
text:
|
|
2123
|
+
text: l ? "校验完成前查询返回 SCENARIO_PROVISIONING。" : s ? "结构初始化中;完成后自动开始全量重放。" : e.status === 3 ? "场景已停用;空间与数据保留,不对外解析。" : "场景已删除,空间已异步清理,编码永久作废。"
|
|
2124
2124
|
}
|
|
2125
2125
|
];
|
|
2126
2126
|
return a ? /* @__PURE__ */ n("div", { className: "osc-gate", children: /* @__PURE__ */ t("div", { className: "osc-gate-row ok", children: [
|
|
@@ -2129,19 +2129,19 @@ function mt({ detail: e }) {
|
|
|
2129
2129
|
o,
|
|
2130
2130
|
" 已完成,场景可解析。"
|
|
2131
2131
|
] })
|
|
2132
|
-
] }) }) : /* @__PURE__ */ n("div", { className: "osc-gate", children: c.map((
|
|
2133
|
-
/* @__PURE__ */ n("span", { className: "ic", children:
|
|
2134
|
-
/* @__PURE__ */ n("span", { children:
|
|
2135
|
-
] },
|
|
2132
|
+
] }) }) : /* @__PURE__ */ n("div", { className: "osc-gate", children: c.map((r) => /* @__PURE__ */ t("div", { className: `osc-gate-row ${r.done ? "ok" : "warn"}`, children: [
|
|
2133
|
+
/* @__PURE__ */ n("span", { className: "ic", children: r.done ? /* @__PURE__ */ n(hn, {}) : /* @__PURE__ */ n(Ys, {}) }),
|
|
2134
|
+
/* @__PURE__ */ n("span", { children: r.text })
|
|
2135
|
+
] }, r.text)) });
|
|
2136
2136
|
}
|
|
2137
2137
|
function ht({
|
|
2138
2138
|
open: e,
|
|
2139
2139
|
onClose: a,
|
|
2140
2140
|
detail: s,
|
|
2141
|
-
state:
|
|
2141
|
+
state: l,
|
|
2142
2142
|
actions: o,
|
|
2143
2143
|
readOnly: c,
|
|
2144
|
-
readOnlyReason:
|
|
2144
|
+
readOnlyReason: r,
|
|
2145
2145
|
onDeleted: m
|
|
2146
2146
|
}) {
|
|
2147
2147
|
var u;
|
|
@@ -2170,11 +2170,11 @@ function ht({
|
|
|
2170
2170
|
detail: s,
|
|
2171
2171
|
actions: o,
|
|
2172
2172
|
readOnly: c,
|
|
2173
|
-
readOnlyReason:
|
|
2173
|
+
readOnlyReason: r,
|
|
2174
2174
|
onDeleted: m
|
|
2175
2175
|
}
|
|
2176
2176
|
) }) }),
|
|
2177
|
-
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(ut, { state:
|
|
2177
|
+
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(ut, { state: l }) })
|
|
2178
2178
|
] })
|
|
2179
2179
|
},
|
|
2180
2180
|
{
|
|
@@ -2184,7 +2184,7 @@ function ht({
|
|
|
2184
2184
|
s.failedItemCount,
|
|
2185
2185
|
/* @__PURE__ */ n(F, { title: "失败不会自动重试:需人工修复后触发下一轮同步,修复后核对水位是否推进。", children: /* @__PURE__ */ n(Ie, { className: "osc-help" }) })
|
|
2186
2186
|
] }),
|
|
2187
|
-
children: /* @__PURE__ */ n("section", { className: "panel", children: /* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(dt, { state:
|
|
2187
|
+
children: /* @__PURE__ */ n("section", { className: "panel", children: /* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(dt, { state: l }) }) })
|
|
2188
2188
|
},
|
|
2189
2189
|
{
|
|
2190
2190
|
key: "space",
|
|
@@ -2216,10 +2216,10 @@ function ht({
|
|
|
2216
2216
|
/* @__PURE__ */ n("span", { className: "hint", children: "历史版本不可修改" })
|
|
2217
2217
|
] }),
|
|
2218
2218
|
/* @__PURE__ */ n("div", { className: "panel-body flush", children: /* @__PURE__ */ n(
|
|
2219
|
-
|
|
2219
|
+
lt,
|
|
2220
2220
|
{
|
|
2221
|
-
projections:
|
|
2222
|
-
loading:
|
|
2221
|
+
projections: l.projections,
|
|
2222
|
+
loading: l.projectionsLoading
|
|
2223
2223
|
}
|
|
2224
2224
|
) })
|
|
2225
2225
|
] })
|
|
@@ -2340,11 +2340,11 @@ function Tt(e) {
|
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
2342
|
function St(e, a) {
|
|
2343
|
-
const { message: s } = _e.useApp(), [
|
|
2344
|
-
|
|
2343
|
+
const { message: s } = _e.useApp(), [l, o] = p(!1), [c, r] = p(null), [m, u] = p(), [h, d] = p(!1), [b, i] = p(!1), f = ce(0), C = x(() => {
|
|
2344
|
+
r(null), u(void 0), o(!0);
|
|
2345
2345
|
}, []), v = x(
|
|
2346
2346
|
(k) => {
|
|
2347
|
-
|
|
2347
|
+
r(k), u(void 0), d(!0), o(!0);
|
|
2348
2348
|
const A = ++f.current;
|
|
2349
2349
|
pn(e, k).then((w) => {
|
|
2350
2350
|
f.current === A && (u(w), d(!1));
|
|
@@ -2363,7 +2363,7 @@ function St(e, a) {
|
|
|
2363
2363
|
};
|
|
2364
2364
|
try {
|
|
2365
2365
|
const w = c ? await yt(A) : await vt(A);
|
|
2366
|
-
return w && (
|
|
2366
|
+
return w && (r(w.id), u(w), s.success("已保存为草稿;发布须先在右侧调试台试运行通过"), a()), w;
|
|
2367
2367
|
} finally {
|
|
2368
2368
|
i(!1);
|
|
2369
2369
|
}
|
|
@@ -2378,7 +2378,7 @@ function St(e, a) {
|
|
|
2378
2378
|
});
|
|
2379
2379
|
}, [c, e]);
|
|
2380
2380
|
return {
|
|
2381
|
-
open:
|
|
2381
|
+
open: l,
|
|
2382
2382
|
openCreate: C,
|
|
2383
2383
|
openEdit: v,
|
|
2384
2384
|
close: g,
|
|
@@ -2395,8 +2395,8 @@ function wt(e) {
|
|
|
2395
2395
|
if (!e)
|
|
2396
2396
|
return [];
|
|
2397
2397
|
const a = [], s = /* @__PURE__ */ new Set();
|
|
2398
|
-
for (const
|
|
2399
|
-
s.has(
|
|
2398
|
+
for (const l of e.matchAll(Ct))
|
|
2399
|
+
s.has(l[1]) || (s.add(l[1]), a.push(l[1]));
|
|
2400
2400
|
return a;
|
|
2401
2401
|
}
|
|
2402
2402
|
const It = "PRESERVE";
|
|
@@ -2415,8 +2415,8 @@ function Et(e) {
|
|
|
2415
2415
|
const a = /* @__PURE__ */ new Set();
|
|
2416
2416
|
for (const s of e.typeTransforms || [])
|
|
2417
2417
|
if (s.op === "DIRECT")
|
|
2418
|
-
for (const
|
|
2419
|
-
s.from ===
|
|
2418
|
+
for (const l of s.to || [])
|
|
2419
|
+
s.from === l && a.add(l);
|
|
2420
2420
|
if (a.size === 0 && e.mode === "SUBGRAPH")
|
|
2421
2421
|
for (const s of e.tags || [])
|
|
2422
2422
|
a.add(s.name);
|
|
@@ -2426,13 +2426,13 @@ function fn(e) {
|
|
|
2426
2426
|
return { value: e, label: e };
|
|
2427
2427
|
}
|
|
2428
2428
|
function Rt(e, a) {
|
|
2429
|
-
const [s,
|
|
2429
|
+
const [s, l] = p(), [o, c] = p(!1), [r, m] = p(!1), u = ce(null);
|
|
2430
2430
|
return z(() => {
|
|
2431
2431
|
if (!a || !e || u.current === e)
|
|
2432
2432
|
return;
|
|
2433
2433
|
let h = !0;
|
|
2434
2434
|
return m(!0), Rn(e).then((d) => {
|
|
2435
|
-
h && (u.current = e,
|
|
2435
|
+
h && (u.current = e, l(d), c(!0), m(!1));
|
|
2436
2436
|
}), () => {
|
|
2437
2437
|
h = !1;
|
|
2438
2438
|
};
|
|
@@ -2444,7 +2444,7 @@ function Rt(e, a) {
|
|
|
2444
2444
|
tags: [],
|
|
2445
2445
|
planTags: [],
|
|
2446
2446
|
edges: [],
|
|
2447
|
-
loading:
|
|
2447
|
+
loading: r,
|
|
2448
2448
|
hint: o ? s ? "场景尚无生效投影;配置型模板可保存,生效后才能调试与调用" : "场景结构加载失败,配置型检索的类型下拉暂不可用" : void 0
|
|
2449
2449
|
};
|
|
2450
2450
|
const b = Et(h).map(fn), i = (h.tags || []).map((v) => fn(v.name)), f = /* @__PURE__ */ new Map();
|
|
@@ -2458,13 +2458,13 @@ function Rt(e, a) {
|
|
|
2458
2458
|
tags: b,
|
|
2459
2459
|
planTags: i,
|
|
2460
2460
|
edges: [...f.values()],
|
|
2461
|
-
loading:
|
|
2461
|
+
loading: r,
|
|
2462
2462
|
hint: b.length === 0 ? "场景没有可按名称直通且身份保持的对象类型,配置型检索不可用" : void 0
|
|
2463
2463
|
};
|
|
2464
|
-
}, [s, o,
|
|
2464
|
+
}, [s, o, r]);
|
|
2465
2465
|
}
|
|
2466
2466
|
function Lt(e, a, s) {
|
|
2467
|
-
const [
|
|
2467
|
+
const [l, o] = p({}), [c, r] = p(!1), [m, u] = p(null), [h, d] = p(null), b = x((C, v) => {
|
|
2468
2468
|
o((g) => ({ ...g, [C]: v }));
|
|
2469
2469
|
}, []), i = x(() => {
|
|
2470
2470
|
o({}), u(null), d(null);
|
|
@@ -2472,20 +2472,20 @@ function Lt(e, a, s) {
|
|
|
2472
2472
|
async (C) => {
|
|
2473
2473
|
const v = C ?? a;
|
|
2474
2474
|
if (v) {
|
|
2475
|
-
|
|
2475
|
+
r(!0), d(null);
|
|
2476
2476
|
try {
|
|
2477
|
-
const g = await bt(e, v,
|
|
2477
|
+
const g = await bt(e, v, l);
|
|
2478
2478
|
u(g), s();
|
|
2479
2479
|
} catch (g) {
|
|
2480
2480
|
u(null), d(g.message || "执行失败");
|
|
2481
2481
|
} finally {
|
|
2482
|
-
|
|
2482
|
+
r(!1);
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
},
|
|
2486
|
-
[s, e, a,
|
|
2486
|
+
[s, e, a, l]
|
|
2487
2487
|
);
|
|
2488
|
-
return { values:
|
|
2488
|
+
return { values: l, setValue: b, reset: i, run: f, running: c, result: m, error: h };
|
|
2489
2489
|
}
|
|
2490
2490
|
const Kn = [
|
|
2491
2491
|
{ value: 1, label: "图检索", color: "green", desc: "写 nGQL 模板,在场景对象与关系上精确查" },
|
|
@@ -2517,23 +2517,23 @@ function $e(e) {
|
|
|
2517
2517
|
return a || void 0;
|
|
2518
2518
|
}
|
|
2519
2519
|
function je(e, a) {
|
|
2520
|
-
const s = a || {},
|
|
2520
|
+
const s = a || {}, l = $e(s.queryParam) || "query", o = s.topK ?? 5, c = s.minScore ?? 0.6;
|
|
2521
2521
|
if (e === 2) {
|
|
2522
2522
|
const h = $e(s.filterTag);
|
|
2523
2523
|
return {
|
|
2524
2524
|
scope: "node",
|
|
2525
|
-
queryParam:
|
|
2525
|
+
queryParam: l,
|
|
2526
2526
|
topK: o,
|
|
2527
2527
|
minScore: c,
|
|
2528
2528
|
...h ? { filterTag: h } : {}
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
const
|
|
2531
|
+
const r = $e(s.startTag), m = $e(s.edgeType), u = $e(s.endTag);
|
|
2532
2532
|
return {
|
|
2533
|
-
queryParam:
|
|
2533
|
+
queryParam: l,
|
|
2534
2534
|
topK: o,
|
|
2535
2535
|
minScore: c,
|
|
2536
|
-
...
|
|
2536
|
+
...r ? { startTag: r } : {},
|
|
2537
2537
|
...m ? { edgeType: m } : {},
|
|
2538
2538
|
hops: s.hops ?? 2,
|
|
2539
2539
|
direction: s.direction || "both",
|
|
@@ -2576,7 +2576,7 @@ function xt(e) {
|
|
|
2576
2576
|
return e.length > 0 && "source" in e[0] && "target" in e[0];
|
|
2577
2577
|
}
|
|
2578
2578
|
function Pt(e, a) {
|
|
2579
|
-
return (e.length > 0 ? e : Object.keys(a[0] ?? {})).map((
|
|
2579
|
+
return (e.length > 0 ? e : Object.keys(a[0] ?? {})).map((l) => ({ title: l, dataIndex: l, key: l, ellipsis: !0 }));
|
|
2580
2580
|
}
|
|
2581
2581
|
function $t(e, a, s) {
|
|
2582
2582
|
if (s.length > 0 && "score" in s[0]) {
|
|
@@ -2596,7 +2596,7 @@ function Mt(e) {
|
|
|
2596
2596
|
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`;
|
|
2597
2597
|
}
|
|
2598
2598
|
function zt({ result: e }) {
|
|
2599
|
-
const a = Ge(e.retrievalType), s = jn(a),
|
|
2599
|
+
const a = Ge(e.retrievalType), s = jn(a), l = a === 3, o = e.recall || [];
|
|
2600
2600
|
return /* @__PURE__ */ t("div", { className: "oss-debug-result", children: [
|
|
2601
2601
|
/* @__PURE__ */ t("div", { className: "oss-debug-meta", children: [
|
|
2602
2602
|
e.retrievalType ? /* @__PURE__ */ n(O, { color: s.color, children: s.label }) : null,
|
|
@@ -2605,18 +2605,18 @@ function zt({ result: e }) {
|
|
|
2605
2605
|
"命中 ",
|
|
2606
2606
|
e.rowCount,
|
|
2607
2607
|
" 行",
|
|
2608
|
-
|
|
2608
|
+
l ? ` · 相似对象 ${e.recallCount ?? o.length} 条` : "",
|
|
2609
2609
|
` · 耗时 ${e.durationMs}ms`,
|
|
2610
2610
|
e.dataAsOf ? ` · 数据时点 ${xs(e.dataAsOf)}` : "",
|
|
2611
2611
|
e.lagMs != null ? ` · 滞后 ${Mt(e.lagMs)}` : ""
|
|
2612
2612
|
] })
|
|
2613
2613
|
] }),
|
|
2614
|
-
|
|
2614
|
+
l && o.length > 0 && /* @__PURE__ */ t("div", { className: "oss-debug-stage", children: [
|
|
2615
2615
|
/* @__PURE__ */ n("div", { className: "oss-debug-stage-title", children: "① 向量召回" }),
|
|
2616
2616
|
/* @__PURE__ */ n(
|
|
2617
2617
|
me,
|
|
2618
2618
|
{
|
|
2619
|
-
rowKey: (c,
|
|
2619
|
+
rowKey: (c, r) => `recall-${r}`,
|
|
2620
2620
|
size: "small",
|
|
2621
2621
|
columns: qn,
|
|
2622
2622
|
dataSource: o,
|
|
@@ -2626,17 +2626,17 @@ function zt({ result: e }) {
|
|
|
2626
2626
|
)
|
|
2627
2627
|
] }),
|
|
2628
2628
|
e.renderedContent && /* @__PURE__ */ t("div", { className: "oss-debug-statement", children: [
|
|
2629
|
-
/* @__PURE__ */ n("div", { className: "oss-debug-statement-title", children:
|
|
2629
|
+
/* @__PURE__ */ n("div", { className: "oss-debug-statement-title", children: l ? "② 图扩展语句" : "实际执行语句" }),
|
|
2630
2630
|
/* @__PURE__ */ n("pre", { children: e.renderedContent })
|
|
2631
2631
|
] }),
|
|
2632
|
-
|
|
2632
|
+
l && /* @__PURE__ */ n("div", { className: "oss-debug-stage-title", children: "② 扩展结果(按综合分排序)" }),
|
|
2633
2633
|
a === 2 && /* @__PURE__ */ n("div", { className: "oss-debug-stage-title", children: "召回结果" }),
|
|
2634
2634
|
e.truncated && /* @__PURE__ */ n(
|
|
2635
2635
|
Ae,
|
|
2636
2636
|
{
|
|
2637
2637
|
type: "warning",
|
|
2638
2638
|
showIcon: !0,
|
|
2639
|
-
message: `命中 ${e.rowCount} 行,仅展示前 ${e.rows.length} 行(${
|
|
2639
|
+
message: `命中 ${e.rowCount} 行,仅展示前 ${e.rows.length} 行(${l ? "按配置的返回条数截断" : "受控上限 200"})`
|
|
2640
2640
|
}
|
|
2641
2641
|
),
|
|
2642
2642
|
/* @__PURE__ */ n(
|
|
@@ -2645,7 +2645,7 @@ function zt({ result: e }) {
|
|
|
2645
2645
|
rowKey: "__rowKey",
|
|
2646
2646
|
size: "small",
|
|
2647
2647
|
columns: $t(a, e.columns, e.rows),
|
|
2648
|
-
dataSource: e.rows.map((c,
|
|
2648
|
+
dataSource: e.rows.map((c, r) => ({ ...c, __rowKey: r })),
|
|
2649
2649
|
pagination: { pageSize: 10, size: "small", hideOnSinglePage: !0 },
|
|
2650
2650
|
locale: { emptyText: Ot[a] },
|
|
2651
2651
|
scroll: { x: "max-content" }
|
|
@@ -2662,10 +2662,10 @@ function Bt({
|
|
|
2662
2662
|
mode: e,
|
|
2663
2663
|
config: a,
|
|
2664
2664
|
options: s,
|
|
2665
|
-
onChange:
|
|
2665
|
+
onChange: l
|
|
2666
2666
|
}) {
|
|
2667
2667
|
var h;
|
|
2668
|
-
const o = un(a), c = !Vn.test(o),
|
|
2668
|
+
const o = un(a), c = !Vn.test(o), r = Y(() => {
|
|
2669
2669
|
const d = a.startTag;
|
|
2670
2670
|
return d ? s.edges.filter(
|
|
2671
2671
|
(b) => b.pairs.some((i) => i.srcTag === d || i.dstTag === d)
|
|
@@ -2690,7 +2690,7 @@ function Bt({
|
|
|
2690
2690
|
{
|
|
2691
2691
|
value: o,
|
|
2692
2692
|
status: c ? "error" : void 0,
|
|
2693
|
-
onChange: (d) =>
|
|
2693
|
+
onChange: (d) => l({ queryParam: d.target.value }),
|
|
2694
2694
|
placeholder: "query"
|
|
2695
2695
|
}
|
|
2696
2696
|
),
|
|
@@ -2705,7 +2705,7 @@ function Bt({
|
|
|
2705
2705
|
min: 1,
|
|
2706
2706
|
max: 50,
|
|
2707
2707
|
value: a.topK ?? 5,
|
|
2708
|
-
onChange: (d) =>
|
|
2708
|
+
onChange: (d) => l({ topK: d ?? 5 }),
|
|
2709
2709
|
style: { width: "100%" }
|
|
2710
2710
|
}
|
|
2711
2711
|
)
|
|
@@ -2719,7 +2719,7 @@ function Bt({
|
|
|
2719
2719
|
max: 1,
|
|
2720
2720
|
step: 0.05,
|
|
2721
2721
|
value: a.minScore ?? 0.6,
|
|
2722
|
-
onChange: (d) =>
|
|
2722
|
+
onChange: (d) => l({ minScore: d ?? 0.6 }),
|
|
2723
2723
|
style: { width: "100%" }
|
|
2724
2724
|
}
|
|
2725
2725
|
)
|
|
@@ -2737,7 +2737,7 @@ function Bt({
|
|
|
2737
2737
|
loading: s.loading,
|
|
2738
2738
|
placeholder: "不限(全部可直通对象)",
|
|
2739
2739
|
options: s.tags,
|
|
2740
|
-
onChange: (d) =>
|
|
2740
|
+
onChange: (d) => l({ filterTag: d })
|
|
2741
2741
|
}
|
|
2742
2742
|
)
|
|
2743
2743
|
] }),
|
|
@@ -2757,7 +2757,7 @@ function Bt({
|
|
|
2757
2757
|
loading: s.loading,
|
|
2758
2758
|
placeholder: "选择起点",
|
|
2759
2759
|
options: s.tags,
|
|
2760
|
-
onChange: (d) =>
|
|
2760
|
+
onChange: (d) => l({ startTag: d })
|
|
2761
2761
|
}
|
|
2762
2762
|
)
|
|
2763
2763
|
] }),
|
|
@@ -2773,8 +2773,8 @@ function Bt({
|
|
|
2773
2773
|
value: a.edgeType,
|
|
2774
2774
|
loading: s.loading,
|
|
2775
2775
|
placeholder: "选择要沿用的关系",
|
|
2776
|
-
options:
|
|
2777
|
-
onChange: (d) =>
|
|
2776
|
+
options: r,
|
|
2777
|
+
onChange: (d) => l({ edgeType: d })
|
|
2778
2778
|
}
|
|
2779
2779
|
)
|
|
2780
2780
|
] }),
|
|
@@ -2786,7 +2786,7 @@ function Bt({
|
|
|
2786
2786
|
min: 1,
|
|
2787
2787
|
max: 3,
|
|
2788
2788
|
value: a.hops ?? 2,
|
|
2789
|
-
onChange: (d) =>
|
|
2789
|
+
onChange: (d) => l({ hops: d ?? 2 }),
|
|
2790
2790
|
style: { width: "100%" }
|
|
2791
2791
|
}
|
|
2792
2792
|
)
|
|
@@ -2801,7 +2801,7 @@ function Bt({
|
|
|
2801
2801
|
value: d.value,
|
|
2802
2802
|
label: d.label
|
|
2803
2803
|
})),
|
|
2804
|
-
onChange: (d) =>
|
|
2804
|
+
onChange: (d) => l({ direction: d })
|
|
2805
2805
|
}
|
|
2806
2806
|
)
|
|
2807
2807
|
] }),
|
|
@@ -2816,7 +2816,7 @@ function Bt({
|
|
|
2816
2816
|
loading: s.loading,
|
|
2817
2817
|
placeholder: "不限",
|
|
2818
2818
|
options: m,
|
|
2819
|
-
onChange: (d) =>
|
|
2819
|
+
onChange: (d) => l({ endTag: d })
|
|
2820
2820
|
}
|
|
2821
2821
|
)
|
|
2822
2822
|
] }),
|
|
@@ -2828,7 +2828,7 @@ function Bt({
|
|
|
2828
2828
|
min: 1,
|
|
2829
2829
|
max: 200,
|
|
2830
2830
|
value: a.resultLimit ?? 20,
|
|
2831
|
-
onChange: (d) =>
|
|
2831
|
+
onChange: (d) => l({ resultLimit: d ?? 20 }),
|
|
2832
2832
|
style: { width: "100%" }
|
|
2833
2833
|
}
|
|
2834
2834
|
)
|
|
@@ -2849,37 +2849,37 @@ function _t({
|
|
|
2849
2849
|
disabled: a,
|
|
2850
2850
|
onChange: s
|
|
2851
2851
|
}) {
|
|
2852
|
-
return /* @__PURE__ */ n("div", { className: "oss-mode-row", role: "radiogroup", "aria-label": "检索模式", children: Kn.map((
|
|
2852
|
+
return /* @__PURE__ */ n("div", { className: "oss-mode-row", role: "radiogroup", "aria-label": "检索模式", children: Kn.map((l) => /* @__PURE__ */ t(
|
|
2853
2853
|
"button",
|
|
2854
2854
|
{
|
|
2855
2855
|
type: "button",
|
|
2856
2856
|
role: "radio",
|
|
2857
|
-
"aria-checked": e ===
|
|
2857
|
+
"aria-checked": e === l.value,
|
|
2858
2858
|
disabled: a,
|
|
2859
|
-
className: `oss-mode-card${e ===
|
|
2860
|
-
onClick: () => s(
|
|
2859
|
+
className: `oss-mode-card${e === l.value ? " active" : ""}`,
|
|
2860
|
+
onClick: () => s(l.value),
|
|
2861
2861
|
children: [
|
|
2862
|
-
/* @__PURE__ */ n("span", { className: "oss-mode-title", children:
|
|
2863
|
-
/* @__PURE__ */ n("span", { className: "oss-mode-desc", children:
|
|
2862
|
+
/* @__PURE__ */ n("span", { className: "oss-mode-title", children: l.label }),
|
|
2863
|
+
/* @__PURE__ */ n("span", { className: "oss-mode-desc", children: l.desc })
|
|
2864
2864
|
]
|
|
2865
2865
|
},
|
|
2866
|
-
|
|
2866
|
+
l.value
|
|
2867
2867
|
)) });
|
|
2868
2868
|
}
|
|
2869
2869
|
function Ft({
|
|
2870
2870
|
scenario: e,
|
|
2871
2871
|
domainName: a,
|
|
2872
2872
|
editor: s,
|
|
2873
|
-
onPublished:
|
|
2873
|
+
onPublished: l
|
|
2874
2874
|
}) {
|
|
2875
2875
|
var xe, ke, B, _, Ce, we, Ee;
|
|
2876
|
-
const { message: o } = _e.useApp(), [c] = Le.useForm(), [
|
|
2876
|
+
const { message: o } = _e.useApp(), [c] = Le.useForm(), [r, m] = p(1), [u, h] = p({}), [d, b] = p({}), [i, f] = p(Pe(1, {}, "")), [C, v] = p(!1), [g, y] = p(!1), [T, k] = p(!1), [A, w] = p(""), [N, E] = p(!1), [L, Z] = p(null), H = Le.useWatch("serviceContent", c) || "", V = Lt(
|
|
2877
2877
|
e.scenarioCode,
|
|
2878
2878
|
s.editingId,
|
|
2879
2879
|
s.refreshDetail
|
|
2880
2880
|
), { reset: R } = V, K = Rt(
|
|
2881
2881
|
e.scenarioCode,
|
|
2882
|
-
s.open &&
|
|
2882
|
+
s.open && r !== 1
|
|
2883
2883
|
), q = Y(() => wt(H), [H]), ae = Y(
|
|
2884
2884
|
() => q.map((I) => {
|
|
2885
2885
|
var M, S, $;
|
|
@@ -2892,17 +2892,17 @@ function Ft({
|
|
|
2892
2892
|
}),
|
|
2893
2893
|
[q, d]
|
|
2894
2894
|
), ee = Y(
|
|
2895
|
-
() => vn(
|
|
2896
|
-
[
|
|
2897
|
-
), G = Pe(
|
|
2895
|
+
() => vn(r, ae, u),
|
|
2896
|
+
[r, ae, u]
|
|
2897
|
+
), G = Pe(r, u, H) !== i, le = ce(null);
|
|
2898
2898
|
z(() => {
|
|
2899
2899
|
if (!s.open) {
|
|
2900
|
-
|
|
2900
|
+
le.current = null, c.resetFields(), m(1), h({}), b({}), f(Pe(1, {}, "")), R();
|
|
2901
2901
|
return;
|
|
2902
2902
|
}
|
|
2903
2903
|
if (s.detail) {
|
|
2904
|
-
if (
|
|
2905
|
-
|
|
2904
|
+
if (le.current !== s.detail.id) {
|
|
2905
|
+
le.current = s.detail.id;
|
|
2906
2906
|
const I = Ge(s.detail.retrievalType), M = I === 1 ? {} : je(I, s.detail.vectorConfig);
|
|
2907
2907
|
m(I), h(M), c.setFieldsValue({
|
|
2908
2908
|
code: s.detail.serviceCode,
|
|
@@ -2917,27 +2917,27 @@ function Ft({
|
|
|
2917
2917
|
Pe(I, M, s.detail.serviceContent || "")
|
|
2918
2918
|
), R();
|
|
2919
2919
|
}
|
|
2920
|
-
} else s.editingId || (
|
|
2920
|
+
} else s.editingId || (le.current = null, c.resetFields(), m(1), h({}), b({}), f(Pe(1, {}, "")), R());
|
|
2921
2921
|
}, [s.open, s.detail, s.editingId, c, R]);
|
|
2922
2922
|
const fe = (I) => {
|
|
2923
|
-
I !==
|
|
2924
|
-
},
|
|
2923
|
+
I !== r && (m(I), h(I === 1 ? {} : At(I)), R());
|
|
2924
|
+
}, re = (I) => {
|
|
2925
2925
|
h((M) => ({ ...M, ...I }));
|
|
2926
2926
|
}, oe = (I) => {
|
|
2927
2927
|
const M = {
|
|
2928
2928
|
code: I.code.trim(),
|
|
2929
2929
|
serviceName: I.serviceName.trim(),
|
|
2930
2930
|
description: I.description,
|
|
2931
|
-
retrievalType:
|
|
2931
|
+
retrievalType: r
|
|
2932
2932
|
};
|
|
2933
|
-
if (
|
|
2933
|
+
if (r === 1)
|
|
2934
2934
|
return { ...M, serviceContent: I.serviceContent.trim(), params: ae };
|
|
2935
|
-
const S = je(
|
|
2936
|
-
return Vn.test(un(S)) ?
|
|
2935
|
+
const S = je(r, u);
|
|
2936
|
+
return Vn.test(un(S)) ? r === 3 && (!S.startTag || !S.edgeType) ? (o.warning("请先选择混合检索的起点对象和关联关系"), null) : {
|
|
2937
2937
|
...M,
|
|
2938
2938
|
serviceContent: "",
|
|
2939
2939
|
vectorConfig: S,
|
|
2940
|
-
params: vn(
|
|
2940
|
+
params: vn(r, ae, S)
|
|
2941
2941
|
} : (o.warning("查询文本参数名不合法:小写字母开头,可含数字与下划线,最长 64 位"), null);
|
|
2942
2942
|
}, Q = async () => {
|
|
2943
2943
|
let I;
|
|
@@ -2969,7 +2969,7 @@ function Ft({
|
|
|
2969
2969
|
if (!(!await Q() || !s.editingId)) {
|
|
2970
2970
|
v(!0);
|
|
2971
2971
|
try {
|
|
2972
|
-
await Un(e.scenarioCode, s.editingId) && (o.success("已发布:消费方可按服务编码调用"), s.refreshDetail(),
|
|
2972
|
+
await Un(e.scenarioCode, s.editingId) && (o.success("已发布:消费方可按服务编码调用"), s.refreshDetail(), l());
|
|
2973
2973
|
} finally {
|
|
2974
2974
|
v(!1);
|
|
2975
2975
|
}
|
|
@@ -2991,7 +2991,7 @@ function Ft({
|
|
|
2991
2991
|
if (s.editingId) {
|
|
2992
2992
|
y(!0);
|
|
2993
2993
|
try {
|
|
2994
|
-
await Hn(e.scenarioCode, s.editingId) && (o.success("已下线"), s.refreshDetail(),
|
|
2994
|
+
await Hn(e.scenarioCode, s.editingId) && (o.success("已下线"), s.refreshDetail(), l());
|
|
2995
2995
|
} finally {
|
|
2996
2996
|
y(!1);
|
|
2997
2997
|
}
|
|
@@ -3057,7 +3057,7 @@ function Ft({
|
|
|
3057
3057
|
/* @__PURE__ */ t("div", { className: "oss-editor-layout", children: [
|
|
3058
3058
|
/* @__PURE__ */ t("div", { className: "oss-editor-left", children: [
|
|
3059
3059
|
/* @__PURE__ */ n("div", { className: "oss-mode-label", children: "检索模式" }),
|
|
3060
|
-
/* @__PURE__ */ n(_t, { value:
|
|
3060
|
+
/* @__PURE__ */ n(_t, { value: r, onChange: fe }),
|
|
3061
3061
|
/* @__PURE__ */ t(Le, { form: c, layout: "vertical", children: [
|
|
3062
3062
|
/* @__PURE__ */ n(
|
|
3063
3063
|
Le.Item,
|
|
@@ -3093,7 +3093,7 @@ function Ft({
|
|
|
3093
3093
|
}
|
|
3094
3094
|
),
|
|
3095
3095
|
/* @__PURE__ */ n(Le.Item, { name: "description", label: "描述", children: /* @__PURE__ */ n(se.TextArea, { rows: 2 }) }),
|
|
3096
|
-
|
|
3096
|
+
r === 1 ? /* @__PURE__ */ n(
|
|
3097
3097
|
Le.Item,
|
|
3098
3098
|
{
|
|
3099
3099
|
name: "serviceContent",
|
|
@@ -3128,14 +3128,14 @@ RETURN v.name AS name LIMIT 20`
|
|
|
3128
3128
|
) : /* @__PURE__ */ n(
|
|
3129
3129
|
Bt,
|
|
3130
3130
|
{
|
|
3131
|
-
mode:
|
|
3131
|
+
mode: r,
|
|
3132
3132
|
config: u,
|
|
3133
3133
|
options: K,
|
|
3134
|
-
onChange:
|
|
3134
|
+
onChange: re
|
|
3135
3135
|
}
|
|
3136
3136
|
)
|
|
3137
3137
|
] }),
|
|
3138
|
-
|
|
3138
|
+
r === 1 && q.length > 0 && /* @__PURE__ */ t("div", { className: "oss-param-defs", children: [
|
|
3139
3139
|
/* @__PURE__ */ n("div", { className: "oss-param-title", children: "参数定义(自动提取)" }),
|
|
3140
3140
|
q.map((I) => {
|
|
3141
3141
|
var M, S, $;
|
|
@@ -3283,10 +3283,10 @@ function Kt({
|
|
|
3283
3283
|
onCreate: e,
|
|
3284
3284
|
onEdit: a,
|
|
3285
3285
|
records: s,
|
|
3286
|
-
counts:
|
|
3286
|
+
counts: l,
|
|
3287
3287
|
loading: o,
|
|
3288
3288
|
statusFilter: c,
|
|
3289
|
-
setStatusFilter:
|
|
3289
|
+
setStatusFilter: r,
|
|
3290
3290
|
setKeyword: m,
|
|
3291
3291
|
publish: u,
|
|
3292
3292
|
disable: h,
|
|
@@ -3412,10 +3412,10 @@ function Kt({
|
|
|
3412
3412
|
{
|
|
3413
3413
|
type: "button",
|
|
3414
3414
|
className: `oss-filter${c === g.value ? " active" : ""}`,
|
|
3415
|
-
onClick: () =>
|
|
3415
|
+
onClick: () => r(g.value),
|
|
3416
3416
|
children: [
|
|
3417
3417
|
g.label,
|
|
3418
|
-
/* @__PURE__ */ n("em", { children: g.countKey ?
|
|
3418
|
+
/* @__PURE__ */ n("em", { children: g.countKey ? l[g.countKey] : l.all })
|
|
3419
3419
|
]
|
|
3420
3420
|
},
|
|
3421
3421
|
g.value
|
|
@@ -3472,7 +3472,7 @@ function Vt({
|
|
|
3472
3472
|
domainName: a,
|
|
3473
3473
|
templates: s
|
|
3474
3474
|
}) {
|
|
3475
|
-
const
|
|
3475
|
+
const l = St(s.scenarioCode, s.reload), o = ln();
|
|
3476
3476
|
if (!e)
|
|
3477
3477
|
return /* @__PURE__ */ n("div", { className: "oss-planned", children: /* @__PURE__ */ n(Me, { description: "选择左侧场景后查看其服务目录" }) });
|
|
3478
3478
|
const c = In(
|
|
@@ -3484,8 +3484,8 @@ function Vt({
|
|
|
3484
3484
|
/* @__PURE__ */ n(
|
|
3485
3485
|
Kt,
|
|
3486
3486
|
{
|
|
3487
|
-
onCreate:
|
|
3488
|
-
onEdit:
|
|
3487
|
+
onCreate: l.openCreate,
|
|
3488
|
+
onEdit: l.openEdit,
|
|
3489
3489
|
records: s.records,
|
|
3490
3490
|
counts: s.counts,
|
|
3491
3491
|
loading: s.loading,
|
|
@@ -3504,7 +3504,7 @@ function Vt({
|
|
|
3504
3504
|
{
|
|
3505
3505
|
scenario: e,
|
|
3506
3506
|
domainName: a,
|
|
3507
|
-
editor:
|
|
3507
|
+
editor: l,
|
|
3508
3508
|
onPublished: s.reload
|
|
3509
3509
|
}
|
|
3510
3510
|
)
|
|
@@ -3512,10 +3512,10 @@ function Vt({
|
|
|
3512
3512
|
}
|
|
3513
3513
|
const yn = { all: 0, DRAFT: 0, PUBLISHED: 0, DISABLED: 0 };
|
|
3514
3514
|
function jt(e) {
|
|
3515
|
-
const { message: a } = _e.useApp(), [s,
|
|
3515
|
+
const { message: a } = _e.useApp(), [s, l] = p([]), [o, c] = p(yn), [r, m] = p(!0), [u, h] = p("ALL"), [d, b] = p(""), [i, f] = p(0), C = x(() => f((T) => T + 1), []);
|
|
3516
3516
|
z(() => {
|
|
3517
3517
|
if (!e) {
|
|
3518
|
-
|
|
3518
|
+
l([]), c(yn), m(!1);
|
|
3519
3519
|
return;
|
|
3520
3520
|
}
|
|
3521
3521
|
let T = !0;
|
|
@@ -3526,7 +3526,7 @@ function jt(e) {
|
|
|
3526
3526
|
current: 1,
|
|
3527
3527
|
size: 100
|
|
3528
3528
|
}).then((k) => {
|
|
3529
|
-
T && (
|
|
3529
|
+
T && (l((k == null ? void 0 : k.records) || []), k && c({
|
|
3530
3530
|
all: k.draftCount + k.publishedCount + k.disabledCount,
|
|
3531
3531
|
DRAFT: k.draftCount,
|
|
3532
3532
|
PUBLISHED: k.publishedCount,
|
|
@@ -3556,7 +3556,7 @@ function jt(e) {
|
|
|
3556
3556
|
scenarioCode: e,
|
|
3557
3557
|
records: s,
|
|
3558
3558
|
counts: o,
|
|
3559
|
-
loading:
|
|
3559
|
+
loading: r,
|
|
3560
3560
|
statusFilter: u,
|
|
3561
3561
|
setStatusFilter: h,
|
|
3562
3562
|
keyword: d,
|
|
@@ -3571,7 +3571,7 @@ function qt({
|
|
|
3571
3571
|
detail: e,
|
|
3572
3572
|
domainCode: a,
|
|
3573
3573
|
domainName: s,
|
|
3574
|
-
readOnly:
|
|
3574
|
+
readOnly: l,
|
|
3575
3575
|
readOnlyReason: o
|
|
3576
3576
|
}) {
|
|
3577
3577
|
const c = jt(e.scenarioCode);
|
|
@@ -3580,7 +3580,7 @@ function qt({
|
|
|
3580
3580
|
/* @__PURE__ */ n("b", { children: "场景模板服务" }),
|
|
3581
3581
|
a ? /* @__PURE__ */ n(O, { color: "blue", icon: /* @__PURE__ */ n(Tn, {}), children: s }) : null,
|
|
3582
3582
|
/* @__PURE__ */ n("span", { className: "oss-count", children: c.counts.all }),
|
|
3583
|
-
|
|
3583
|
+
l ? /* @__PURE__ */ n(F, { title: o, children: /* @__PURE__ */ n("span", { className: "oss-flag", children: "只读" }) }) : null,
|
|
3584
3584
|
/* @__PURE__ */ n(
|
|
3585
3585
|
F,
|
|
3586
3586
|
{
|
|
@@ -3603,9 +3603,9 @@ function qt({
|
|
|
3603
3603
|
function Gt(e) {
|
|
3604
3604
|
return e.status === 4 ? "场景已删除,查询不回落基础空间" : e.status === 3 ? "场景已停用,查询不回落基础空间" : Ue(e) ? "" : e.syncStatus === 6 ? "同步失败,查询不回落基础空间" : e.syncStatus === 7 ? "同步已暂停,保留既有数据" : e.status === 1 ? "全量重放未完成,暂不对外解析" : "";
|
|
3605
3605
|
}
|
|
3606
|
-
function Qt({ workbench: e, scope: a, pane: s, onPane:
|
|
3607
|
-
var
|
|
3608
|
-
const o = ns(), { state: c, graph:
|
|
3606
|
+
function Qt({ workbench: e, scope: a, pane: s, onPane: l }) {
|
|
3607
|
+
var re, oe;
|
|
3608
|
+
const o = ns(), { state: c, graph: r, graphFailed: m, reloadGraph: u, actions: h, definition: d, model: b } = e, i = c.detail, [f, C] = p(!1), [v, g] = p(!1), y = ln();
|
|
3609
3609
|
if (c.detailLoading && !i)
|
|
3610
3610
|
return /* @__PURE__ */ t("div", { className: "osc-scn-stage-state", children: [
|
|
3611
3611
|
/* @__PURE__ */ n(Qe, {}),
|
|
@@ -3613,7 +3613,7 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3613
3613
|
] });
|
|
3614
3614
|
if (!i)
|
|
3615
3615
|
return /* @__PURE__ */ n("div", { className: "empty", style: { padding: "60px 24px" }, children: /* @__PURE__ */ n("b", { children: c.detailFailed ? "场景不存在或加载失败" : "选择左侧场景查看工作台" }) });
|
|
3616
|
-
const T = Ue(i), k = !T && Fn(i), A = Gt(i), w = `/ontology/scenarios/${encodeURIComponent(i.scenarioCode)}/edit`, N = ((
|
|
3616
|
+
const T = Ue(i), k = !T && Fn(i), A = Gt(i), w = `/ontology/scenarios/${encodeURIComponent(i.scenarioCode)}/edit`, N = ((re = i.domainCode) == null ? void 0 : re.trim()) ?? "", E = N ? ze({
|
|
3617
3617
|
domainCode: N,
|
|
3618
3618
|
name: (oe = a.domains.find((Q) => Q.domainCode === N)) == null ? void 0 : oe.name
|
|
3619
3619
|
}) : "", L = In(
|
|
@@ -3695,7 +3695,7 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3695
3695
|
i.scenarioCode,
|
|
3696
3696
|
i.projectionVersion ? ` · v${i.projectionVersion}` : ""
|
|
3697
3697
|
] })
|
|
3698
|
-
] }),
|
|
3698
|
+
] }), le = /* @__PURE__ */ t("div", { className: "osc-scn-stage-actions", children: [
|
|
3699
3699
|
L.readOnly ? /* @__PURE__ */ n(F, { title: L.reason, children: /* @__PURE__ */ n("span", { children: ae }) }) : /* @__PURE__ */ n(Be, { to: w, children: ae }),
|
|
3700
3700
|
K.length > 0 ? /* @__PURE__ */ n(kn, { menu: { items: K }, trigger: ["click"], placement: "bottomRight", children: /* @__PURE__ */ n(D, { size: "small", type: "text", icon: /* @__PURE__ */ n(xn, {}) }) }) : null
|
|
3701
3701
|
] });
|
|
@@ -3705,7 +3705,7 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3705
3705
|
{
|
|
3706
3706
|
className: T && s === "map" ? "osc-scn-tabs is-graph" : "osc-scn-tabs",
|
|
3707
3707
|
activeKey: s,
|
|
3708
|
-
onChange: (Q) =>
|
|
3708
|
+
onChange: (Q) => l(Q),
|
|
3709
3709
|
items: [
|
|
3710
3710
|
{
|
|
3711
3711
|
key: "map",
|
|
@@ -3719,23 +3719,23 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3719
3719
|
Za,
|
|
3720
3720
|
{
|
|
3721
3721
|
detail: i,
|
|
3722
|
-
graph:
|
|
3722
|
+
graph: r,
|
|
3723
3723
|
graphFailed: m,
|
|
3724
3724
|
onReloadGraph: u,
|
|
3725
3725
|
model: b,
|
|
3726
3726
|
domainCode: N,
|
|
3727
3727
|
domainName: E,
|
|
3728
3728
|
identity: G,
|
|
3729
|
-
actions:
|
|
3729
|
+
actions: le
|
|
3730
3730
|
}
|
|
3731
3731
|
)
|
|
3732
3732
|
] }) : /* @__PURE__ */ t(J, { children: [
|
|
3733
3733
|
/* @__PURE__ */ t("header", { className: "osc-scn-head", children: [
|
|
3734
3734
|
G,
|
|
3735
|
-
|
|
3735
|
+
le
|
|
3736
3736
|
] }),
|
|
3737
3737
|
/* @__PURE__ */ n(Xa, { detail: i, onOpenRun: Z }),
|
|
3738
|
-
k ? /* @__PURE__ */ n(
|
|
3738
|
+
k ? /* @__PURE__ */ n(rt, { detail: i, onOpenSync: Z }) : A ? /* @__PURE__ */ t("div", { className: "osc-scope-note", children: [
|
|
3739
3739
|
/* @__PURE__ */ n(Ze, {}),
|
|
3740
3740
|
/* @__PURE__ */ n("span", { children: A })
|
|
3741
3741
|
] }) : null,
|
|
@@ -3743,7 +3743,7 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3743
3743
|
Ls,
|
|
3744
3744
|
{
|
|
3745
3745
|
model: b,
|
|
3746
|
-
graph:
|
|
3746
|
+
graph: r,
|
|
3747
3747
|
scenarioCode: i.scenarioCode,
|
|
3748
3748
|
name: i.name || i.scenarioCode,
|
|
3749
3749
|
description: i.description,
|
|
@@ -3800,7 +3800,7 @@ function Qt({ workbench: e, scope: a, pane: s, onPane: r }) {
|
|
|
3800
3800
|
}
|
|
3801
3801
|
const Wt = 10, Yt = /* @__PURE__ */ new Set(["QUEUED", "RUNNING", "PAUSED"]);
|
|
3802
3802
|
function Zt(e) {
|
|
3803
|
-
const [a, s] = p(), [
|
|
3803
|
+
const [a, s] = p(), [l, o] = p(""), [c, r] = p(""), [m, u] = p([]), [h, d] = p(0), [b, i] = p(1), [f, C] = p(!0), v = ce(0), g = x(
|
|
3804
3804
|
async (T) => {
|
|
3805
3805
|
const k = ++v.current;
|
|
3806
3806
|
C(!0);
|
|
@@ -3834,10 +3834,10 @@ function Zt(e) {
|
|
|
3834
3834
|
}, [y, b, g]), {
|
|
3835
3835
|
runStatus: a,
|
|
3836
3836
|
setRunStatus: s,
|
|
3837
|
-
searchInput:
|
|
3837
|
+
searchInput: l,
|
|
3838
3838
|
setSearchInput: o,
|
|
3839
3839
|
keyword: c,
|
|
3840
|
-
setKeyword:
|
|
3840
|
+
setKeyword: r,
|
|
3841
3841
|
records: m,
|
|
3842
3842
|
total: h,
|
|
3843
3843
|
current: b,
|
|
@@ -3854,10 +3854,10 @@ const Jt = 10, Xt = [
|
|
|
3854
3854
|
{ value: "FAILED", label: "失败" },
|
|
3855
3855
|
{ value: "CANCELED", label: "已取消" }
|
|
3856
3856
|
];
|
|
3857
|
-
function
|
|
3858
|
-
const s = Zt(e), [
|
|
3857
|
+
function el({ focusOrderCode: e, onOrderChange: a }) {
|
|
3858
|
+
const s = Zt(e), [l, o] = p(), c = (m) => {
|
|
3859
3859
|
m && o(m);
|
|
3860
|
-
},
|
|
3860
|
+
}, r = [
|
|
3861
3861
|
{
|
|
3862
3862
|
title: "工单",
|
|
3863
3863
|
key: "order",
|
|
@@ -3949,7 +3949,7 @@ function er({ focusOrderCode: e, onOrderChange: a }) {
|
|
|
3949
3949
|
size: "small",
|
|
3950
3950
|
loading: s.loading,
|
|
3951
3951
|
dataSource: s.records,
|
|
3952
|
-
columns:
|
|
3952
|
+
columns: r,
|
|
3953
3953
|
scroll: { x: 1e3 },
|
|
3954
3954
|
onRow: (m) => ({
|
|
3955
3955
|
style: { cursor: m.orderCode ? "pointer" : "default" },
|
|
@@ -3970,17 +3970,17 @@ function er({ focusOrderCode: e, onOrderChange: a }) {
|
|
|
3970
3970
|
/* @__PURE__ */ n(
|
|
3971
3971
|
zn,
|
|
3972
3972
|
{
|
|
3973
|
-
open: !!
|
|
3974
|
-
orderCode:
|
|
3973
|
+
open: !!l,
|
|
3974
|
+
orderCode: l,
|
|
3975
3975
|
onClose: () => o(void 0),
|
|
3976
3976
|
onChanged: () => void s.load(s.current)
|
|
3977
3977
|
}
|
|
3978
3978
|
)
|
|
3979
3979
|
] });
|
|
3980
3980
|
}
|
|
3981
|
-
const
|
|
3982
|
-
function
|
|
3983
|
-
const [e, a] = p([]), [s,
|
|
3981
|
+
const nl = 10;
|
|
3982
|
+
function sl() {
|
|
3983
|
+
const [e, a] = p([]), [s, l] = p(0), [o, c] = p(1), [r, m] = p(!0), [u, h] = p(!1), [d, b] = p(""), [i, f] = p(), [C, v] = p(), g = ce(0), y = x(
|
|
3984
3984
|
async (A) => {
|
|
3985
3985
|
const w = ++g.current;
|
|
3986
3986
|
m(!0);
|
|
@@ -3990,12 +3990,12 @@ function sr() {
|
|
|
3990
3990
|
status: i,
|
|
3991
3991
|
syncStatus: C,
|
|
3992
3992
|
current: A,
|
|
3993
|
-
size:
|
|
3993
|
+
size: nl
|
|
3994
3994
|
});
|
|
3995
3995
|
if (w !== g.current)
|
|
3996
3996
|
return;
|
|
3997
3997
|
const E = (N == null ? void 0 : N.records) ?? [];
|
|
3998
|
-
a((L) => A > 1 ? [...L, ...E] : E),
|
|
3998
|
+
a((L) => A > 1 ? [...L, ...E] : E), l((N == null ? void 0 : N.total) ?? 0), c(A), h(!1);
|
|
3999
3999
|
} catch {
|
|
4000
4000
|
w === g.current && h(!0);
|
|
4001
4001
|
} finally {
|
|
@@ -4012,7 +4012,7 @@ function sr() {
|
|
|
4012
4012
|
records: e,
|
|
4013
4013
|
total: s,
|
|
4014
4014
|
current: o,
|
|
4015
|
-
loading:
|
|
4015
|
+
loading: r,
|
|
4016
4016
|
failed: u,
|
|
4017
4017
|
hasMore: e.length < s,
|
|
4018
4018
|
keyword: d,
|
|
@@ -4025,68 +4025,68 @@ function sr() {
|
|
|
4025
4025
|
reload: k
|
|
4026
4026
|
};
|
|
4027
4027
|
}
|
|
4028
|
-
function
|
|
4029
|
-
const [e, a] = p(), [s,
|
|
4028
|
+
function al() {
|
|
4029
|
+
const [e, a] = p(), [s, l] = p(!1), [o, c] = p(0);
|
|
4030
4030
|
z(() => {
|
|
4031
4031
|
let m = !0;
|
|
4032
4032
|
return ss().then((u) => {
|
|
4033
|
-
m && (a(u),
|
|
4033
|
+
m && (a(u), l(!1));
|
|
4034
4034
|
}).catch(() => {
|
|
4035
|
-
m &&
|
|
4035
|
+
m && l(!0);
|
|
4036
4036
|
}), () => {
|
|
4037
4037
|
m = !1;
|
|
4038
4038
|
};
|
|
4039
4039
|
}, [o]);
|
|
4040
|
-
const
|
|
4041
|
-
return { graph: e, failed: s, reload:
|
|
4040
|
+
const r = x(() => c((m) => m + 1), []);
|
|
4041
|
+
return { graph: e, failed: s, reload: r };
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function tl(e) {
|
|
4044
4044
|
return e instanceof Error ? e.message : "操作失败";
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4047
|
-
const { message:
|
|
4046
|
+
function ll(e, a, s) {
|
|
4047
|
+
const { message: l } = _e.useApp(), [o, c] = p(), r = x(
|
|
4048
4048
|
async (C, v, g) => {
|
|
4049
4049
|
c(C);
|
|
4050
4050
|
try {
|
|
4051
|
-
await g(),
|
|
4051
|
+
await g(), l.success(v), a();
|
|
4052
4052
|
} catch (y) {
|
|
4053
|
-
|
|
4053
|
+
l.error(tl(y));
|
|
4054
4054
|
} finally {
|
|
4055
4055
|
c(void 0);
|
|
4056
4056
|
}
|
|
4057
4057
|
},
|
|
4058
|
-
[
|
|
4058
|
+
[l, a]
|
|
4059
4059
|
), m = x(
|
|
4060
|
-
(C) =>
|
|
4061
|
-
[
|
|
4060
|
+
(C) => r("retry", "已下发同步运行", () => zs({ scenarioCode: e, runType: C })),
|
|
4061
|
+
[r, e]
|
|
4062
4062
|
), u = x(
|
|
4063
|
-
(C) =>
|
|
4064
|
-
[
|
|
4063
|
+
(C) => r("pause", "已暂停增量同步", () => Bs({ scenarioCode: e, reason: C })),
|
|
4064
|
+
[r, e]
|
|
4065
4065
|
), h = x(
|
|
4066
|
-
() =>
|
|
4067
|
-
[
|
|
4066
|
+
() => r("resume", "已恢复增量同步", () => _s({ scenarioCode: e })),
|
|
4067
|
+
[r, e]
|
|
4068
4068
|
), d = x(
|
|
4069
|
-
() =>
|
|
4070
|
-
[
|
|
4069
|
+
() => r("repair", "已下发定点修复", () => Fs({ scenarioCode: e })),
|
|
4070
|
+
[r, e]
|
|
4071
4071
|
), b = x(
|
|
4072
|
-
() =>
|
|
4073
|
-
[
|
|
4072
|
+
() => r("reconcile", "已下发对账", () => Us({ scenarioCode: e })),
|
|
4073
|
+
[r, e]
|
|
4074
4074
|
), i = x(
|
|
4075
|
-
() =>
|
|
4075
|
+
() => r(
|
|
4076
4076
|
"offline",
|
|
4077
4077
|
"场景已下线",
|
|
4078
4078
|
() => Hs({ op: "RETIRE", scenarioCode: e, domainCode: s })
|
|
4079
4079
|
),
|
|
4080
|
-
[
|
|
4080
|
+
[r, e, s]
|
|
4081
4081
|
), f = x(
|
|
4082
|
-
() =>
|
|
4083
|
-
[
|
|
4082
|
+
() => r("delete", "场景已删除,空间待异步清理", () => Ks({ scenarioCode: e })),
|
|
4083
|
+
[r, e]
|
|
4084
4084
|
);
|
|
4085
4085
|
return { busy: o, retry: m, pause: u, resume: h, repair: d, reconcile: b, offline: i, remove: f };
|
|
4086
4086
|
}
|
|
4087
4087
|
const Nn = 10;
|
|
4088
|
-
function
|
|
4089
|
-
const [a, s] = p(), [
|
|
4088
|
+
function rl(e) {
|
|
4089
|
+
const [a, s] = p(), [l, o] = p(!0), [c, r] = p(!1), [m, u] = p([]), [h, d] = p(!1), [b, i] = p([]), [f, C] = p([]), [v, g] = p(0), [y, T] = p(1), [k, A] = p(!1), [w, N] = p(), [E, L] = p(), [Z, H] = p([]), [V, R] = p(0), [K, q] = p(1), [ae, ee] = p(!1), [G, le] = p([]), fe = ce(0), re = x(async () => {
|
|
4090
4090
|
if (!e) {
|
|
4091
4091
|
o(!1);
|
|
4092
4092
|
return;
|
|
@@ -4096,9 +4096,9 @@ function lr(e) {
|
|
|
4096
4096
|
const _ = await Rn(e);
|
|
4097
4097
|
if (B !== fe.current)
|
|
4098
4098
|
return;
|
|
4099
|
-
s(_),
|
|
4099
|
+
s(_), r(!_);
|
|
4100
4100
|
} catch {
|
|
4101
|
-
B === fe.current && (s(void 0),
|
|
4101
|
+
B === fe.current && (s(void 0), r(!0));
|
|
4102
4102
|
} finally {
|
|
4103
4103
|
B === fe.current && o(!1);
|
|
4104
4104
|
}
|
|
@@ -4155,10 +4155,10 @@ function lr(e) {
|
|
|
4155
4155
|
i(B ?? []);
|
|
4156
4156
|
}, [e]);
|
|
4157
4157
|
z(() => {
|
|
4158
|
-
s(void 0), o(!0),
|
|
4158
|
+
s(void 0), o(!0), r(!1), C([]), g(0), T(1), H([]), R(0), q(1), u([]), i([]);
|
|
4159
4159
|
}, [e]), z(() => {
|
|
4160
|
-
|
|
4161
|
-
}, [
|
|
4160
|
+
re();
|
|
4161
|
+
}, [re]);
|
|
4162
4162
|
const be = G.includes("runs"), Te = G.includes("failures"), ge = G.includes("projections"), Se = G.includes("consumers");
|
|
4163
4163
|
z(() => {
|
|
4164
4164
|
e && be && Q(1);
|
|
@@ -4170,15 +4170,15 @@ function lr(e) {
|
|
|
4170
4170
|
e && Se && de();
|
|
4171
4171
|
}, [e, Se, de]);
|
|
4172
4172
|
const xe = x((B) => {
|
|
4173
|
-
|
|
4173
|
+
le((_) => {
|
|
4174
4174
|
const Ce = B.filter((we) => !_.includes(we));
|
|
4175
4175
|
return Ce.length === 0 ? _ : [..._, ...Ce];
|
|
4176
4176
|
});
|
|
4177
4177
|
}, []), ke = x(async () => {
|
|
4178
|
-
const B = [
|
|
4178
|
+
const B = [re()];
|
|
4179
4179
|
be && B.push(Q(y)), Te && B.push(te(K)), ge && B.push(oe()), Se && B.push(de()), await Promise.all(B);
|
|
4180
4180
|
}, [
|
|
4181
|
-
|
|
4181
|
+
re,
|
|
4182
4182
|
Q,
|
|
4183
4183
|
te,
|
|
4184
4184
|
oe,
|
|
@@ -4193,7 +4193,7 @@ function lr(e) {
|
|
|
4193
4193
|
return {
|
|
4194
4194
|
scenarioCode: e,
|
|
4195
4195
|
detail: a,
|
|
4196
|
-
detailLoading:
|
|
4196
|
+
detailLoading: l,
|
|
4197
4197
|
detailFailed: c,
|
|
4198
4198
|
projections: m,
|
|
4199
4199
|
projectionsLoading: h,
|
|
@@ -4216,21 +4216,21 @@ function lr(e) {
|
|
|
4216
4216
|
refresh: ke
|
|
4217
4217
|
};
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4220
|
-
const
|
|
4219
|
+
function ol(e, a, s = 5e3) {
|
|
4220
|
+
const l = ce(a);
|
|
4221
4221
|
z(() => {
|
|
4222
|
-
|
|
4222
|
+
l.current = a;
|
|
4223
4223
|
}, [a]), z(() => {
|
|
4224
4224
|
if (!e)
|
|
4225
4225
|
return;
|
|
4226
|
-
const o = window.setInterval(() =>
|
|
4226
|
+
const o = window.setInterval(() => l.current(), s);
|
|
4227
4227
|
return () => window.clearInterval(o);
|
|
4228
4228
|
}, [e, s]);
|
|
4229
4229
|
}
|
|
4230
|
-
function
|
|
4230
|
+
function cl(e) {
|
|
4231
4231
|
var b;
|
|
4232
|
-
const a =
|
|
4233
|
-
|
|
4232
|
+
const a = rl(e), { graph: s, failed: l, reload: o } = al(), c = a.detail, r = ll(e, () => void a.refresh(), c == null ? void 0 : c.domainCode), m = c ? Ma(c.status, c.syncStatus) || za((b = c.activeRun) == null ? void 0 : b.status) : !1;
|
|
4233
|
+
ol(m, () => void a.refresh());
|
|
4234
4234
|
const u = Y(
|
|
4235
4235
|
() => {
|
|
4236
4236
|
var i;
|
|
@@ -4251,26 +4251,26 @@ function cr(e) {
|
|
|
4251
4251
|
}) : void 0,
|
|
4252
4252
|
[c, u, h, s]
|
|
4253
4253
|
);
|
|
4254
|
-
return { state: a, graph: s, graphFailed:
|
|
4254
|
+
return { state: a, graph: s, graphFailed: l, reloadGraph: o, actions: r, definition: u, model: d };
|
|
4255
4255
|
}
|
|
4256
|
-
const
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4256
|
+
const il = ["scenarios", "orders", "tasks"];
|
|
4257
|
+
function dl(e) {
|
|
4258
|
+
return il.find((a) => a === e) ?? "scenarios";
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4260
|
+
function Vl({ embedded: e = !1 }) {
|
|
4261
4261
|
var g;
|
|
4262
|
-
const [a, s] = as(),
|
|
4262
|
+
const [a, s] = as(), l = dl(a.get("tab")), o = ts(), c = sl(), r = Y(
|
|
4263
4263
|
() => vs(o.domains, o.currentCode, o.scope).map((y) => ({
|
|
4264
4264
|
code: y.domainCode,
|
|
4265
4265
|
name: ze({ domainCode: y.domainCode, name: y.name })
|
|
4266
4266
|
})),
|
|
4267
4267
|
[o.domains, o.currentCode, o.scope]
|
|
4268
4268
|
), m = Y(
|
|
4269
|
-
() => new Set(
|
|
4270
|
-
[
|
|
4269
|
+
() => new Set(r.map((y) => y.code.trim().toUpperCase())),
|
|
4270
|
+
[r]
|
|
4271
4271
|
), u = c.records.find(
|
|
4272
4272
|
(y) => !m.has((y.domainCode ?? "").trim().toUpperCase())
|
|
4273
|
-
), h = a.get("scenario") ?? "", d =
|
|
4273
|
+
), h = a.get("scenario") ?? "", d = l === "scenarios" && (h || (u == null ? void 0 : u.scenarioCode) || ((g = c.records[0]) == null ? void 0 : g.scenarioCode)) || "", b = a.get("pane") === "service" ? "service" : "map", i = a.get("order") ?? void 0, f = cl(d), C = ce(o.version);
|
|
4274
4274
|
z(() => {
|
|
4275
4275
|
if (C.current === o.version)
|
|
4276
4276
|
return;
|
|
@@ -4285,12 +4285,12 @@ function Vr({ embedded: e = !1 }) {
|
|
|
4285
4285
|
const T = new URLSearchParams(a);
|
|
4286
4286
|
y.tab && T.set("tab", y.tab), y.order ? T.set("order", y.order) : T.delete("order"), y.scenario && T.set("scenario", y.scenario), y.pane && (y.pane === "map" ? T.delete("pane") : T.set("pane", y.pane)), s(T, { replace: !0 });
|
|
4287
4287
|
};
|
|
4288
|
-
return
|
|
4288
|
+
return l !== "scenarios" ? /* @__PURE__ */ t("div", { className: "view osc-page", children: [
|
|
4289
4289
|
/* @__PURE__ */ n(
|
|
4290
4290
|
Gn,
|
|
4291
4291
|
{
|
|
4292
|
-
title:
|
|
4293
|
-
meta: /* @__PURE__ */ n("span", { children:
|
|
4292
|
+
title: l === "orders" ? "场景工单" : "场景调度任务",
|
|
4293
|
+
meta: /* @__PURE__ */ n("span", { children: l === "orders" ? "仅场景页直提的投影工单 · 审批通过后自动下发结构变更任务" : "场景工单审批通过后下发的结构变更任务 · 按场景来源过滤" }),
|
|
4294
4294
|
actions: e ? /* @__PURE__ */ n(
|
|
4295
4295
|
D,
|
|
4296
4296
|
{
|
|
@@ -4301,7 +4301,7 @@ function Vr({ embedded: e = !1 }) {
|
|
|
4301
4301
|
) : /* @__PURE__ */ n(Be, { to: "/ontology/scenarios", children: /* @__PURE__ */ n(D, { icon: /* @__PURE__ */ n(sn, {}), children: "返回场景" }) })
|
|
4302
4302
|
}
|
|
4303
4303
|
),
|
|
4304
|
-
|
|
4304
|
+
l === "orders" ? /* @__PURE__ */ n(
|
|
4305
4305
|
La,
|
|
4306
4306
|
{
|
|
4307
4307
|
focusOrderCode: i,
|
|
@@ -4310,7 +4310,7 @@ function Vr({ embedded: e = !1 }) {
|
|
|
4310
4310
|
onOpenTasks: (y) => v({ tab: "tasks", order: y })
|
|
4311
4311
|
}
|
|
4312
4312
|
) : /* @__PURE__ */ n(
|
|
4313
|
-
|
|
4313
|
+
el,
|
|
4314
4314
|
{
|
|
4315
4315
|
focusOrderCode: i,
|
|
4316
4316
|
onOrderChange: (y) => v({ tab: "tasks", order: y })
|
|
@@ -4322,7 +4322,7 @@ function Vr({ embedded: e = !1 }) {
|
|
|
4322
4322
|
{
|
|
4323
4323
|
state: c,
|
|
4324
4324
|
scope: o,
|
|
4325
|
-
ancestors:
|
|
4325
|
+
ancestors: r,
|
|
4326
4326
|
activeCode: d,
|
|
4327
4327
|
onSelect: (y) => v({ scenario: y })
|
|
4328
4328
|
}
|
|
@@ -4339,5 +4339,5 @@ function Vr({ embedded: e = !1 }) {
|
|
|
4339
4339
|
] }) });
|
|
4340
4340
|
}
|
|
4341
4341
|
export {
|
|
4342
|
-
|
|
4342
|
+
Vl as default
|
|
4343
4343
|
};
|