@yuku123/z-team-component 0.2.7 → 0.2.9
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/{InvitationManagementPage-BPxjj0Dg.js → InvitationManagementPage-Bu_T6Qnk.js} +2 -2
- package/dist/{OnboardingPage-Vvj77L6H.js → OnboardingPage-CVQsHBNI.js} +2 -2
- package/dist/ProjectApp-CZp1-5DE.js +5417 -0
- package/dist/admin-logs-CjrLXc1w.js +199 -0
- package/dist/api-C3oQuHQN.js +2153 -0
- package/dist/api-CGeI8Nl6.js +19 -0
- package/dist/{createWorkspaceWsHandler-DrV9AaO7.js → createWorkspaceWsHandler--EYvkQTh.js} +3568 -3269
- package/dist/{ctc-sso-C-QWy9F8.js → ctc-sso-B62FfkZg.js} +1 -0
- package/dist/index-89atN3Sn.js +3299 -0
- package/dist/index-B3WkjkoJ.js +13641 -0
- package/dist/{index-Bw02b5qJ.js → index-BAbMvA6l.js} +14819 -13930
- package/dist/{index-D-oG0ReT.js → index-BbXwe7Mu.js} +4 -4
- package/dist/{index-BK9rSfN3.js → index-BnXt3lMS.js} +10 -10
- package/dist/{index-DYXWNyaR.js → index-CC82pWGq.js} +18 -18
- package/dist/{index-Bh5PFiY9.js → index-CibhFgCi.js} +33 -32
- package/dist/{index-BaBdw0pt.js → index-DH7Mt7zI.js} +58 -63
- package/dist/{index-bRlb91E0.js → index-DL3Nsor4.js} +12431 -23734
- package/dist/{index-l8P_AuvD.js → index-DnqloQgt.js} +1 -1
- package/dist/{index-CuuZlPvb.js → index-EPCmZ1QV.js} +5 -5
- package/dist/{index-DM_AMiPz.js → index-psNYztRR.js} +37 -36
- package/dist/index.js +1 -1
- package/dist/instance-DUBRC_44.js +215 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DxD_vD7Z.js → send-default-agent-team-message-DHaZl06Z.js} +1 -1
- package/dist/{sso-user-D1eNVXkY.js → sso-user-BRC1vEjR.js} +1 -1
- package/dist/{useAppStore-C12Ala1u.js → useAppStore-D1Z2M3Za.js} +1 -1
- package/dist/z-team-component.css +2 -2
- package/package.json +6 -2
- package/dist/LowCodePage-CtC4Ca6N.js +0 -17
- package/dist/ProjectApp-Dp_yHlHK.js +0 -6724
- package/dist/api-DLBRWSFh.js +0 -20
- package/dist/api-W2_U7Nxd.js +0 -3866
- package/dist/ctc-signout-C_dAvsu5.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { k as be,
|
|
2
|
+
import { k as be, l as X, m as he } from "./api-C3oQuHQN.js";
|
|
3
3
|
import { message as Z, Button as _e, DatePicker as pe, Spin as A, Empty as q, Tag as J } from "antd";
|
|
4
4
|
import D from "dayjs";
|
|
5
5
|
import * as ge from "echarts";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { f as z, r as T } from "./ctc-sso-
|
|
3
|
-
import { r as D, h as U, s as F } from "./sso-user-
|
|
2
|
+
import { f as z, r as T } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as D, h as U, s as F } from "./sso-user-BRC1vEjR.js";
|
|
4
4
|
import { CheckCircleFilled as W } from "@ant-design/icons";
|
|
5
5
|
import { Result as B, Button as H, Spin as G } from "antd";
|
|
6
6
|
import J from "query-string";
|
|
7
7
|
import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
|
|
8
8
|
import { useLocation as Q } from "react-router-dom";
|
|
9
9
|
import { h as b } from "./history-BlrA1eaW.js";
|
|
10
|
-
import {
|
|
11
|
-
import { u as s } from "./useAppStore-
|
|
10
|
+
import { g as V, h as X } from "./api-C3oQuHQN.js";
|
|
11
|
+
import { u as s } from "./useAppStore-D1Z2M3Za.js";
|
|
12
12
|
import { b as Y } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
-
import { s as Z } from "./send-default-agent-team-message-
|
|
13
|
+
import { s as Z } from "./send-default-agent-team-message-DHaZl06Z.js";
|
|
14
14
|
function de() {
|
|
15
15
|
const h = Q(), f = J.parse(h.search), c = String(
|
|
16
16
|
f.scenarioCode ?? f.scenario_code ?? ""
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as ie, r as $ } from "./ctc-sso-
|
|
3
|
-
import { r as le, h as K, s as J } from "./sso-user-
|
|
2
|
+
import { f as ie, r as $ } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as le, h as K, s as J } from "./sso-user-BRC1vEjR.js";
|
|
4
4
|
import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
7
|
import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as ke, C as we } from "./createWorkspaceWsHandler
|
|
11
|
-
import { u as r, f as Se, T as ve } from "./useAppStore-
|
|
12
|
-
import { o as ye,
|
|
10
|
+
import { c as ke, C as we } from "./createWorkspaceWsHandler--EYvkQTh.js";
|
|
11
|
+
import { u as r, f as Se, T as ve } from "./useAppStore-D1Z2M3Za.js";
|
|
12
|
+
import { o as ye, n as Ne, q as je, r as Ce, h as ee } from "./api-C3oQuHQN.js";
|
|
13
|
+
import { l as Pe, j as Te } from "./instance-DUBRC_44.js";
|
|
13
14
|
/* empty css */
|
|
14
|
-
import { s as xe } from "./
|
|
15
|
+
import { s as xe } from "./admin-logs-CjrLXc1w.js";
|
|
15
16
|
function Ie(p, d) {
|
|
16
17
|
N(() => {
|
|
17
18
|
if (p == null)
|
|
@@ -61,7 +62,7 @@ function te() {
|
|
|
61
62
|
search: f ? `?${f}` : ""
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function He() {
|
|
65
66
|
const p = be(), [d, i] = y("list"), [f, n] = y("chat"), [E, g] = y("team"), [w, m] = y(""), [u, Q] = y(!1), [ae, I] = y(!1), {
|
|
66
67
|
currentProject: S,
|
|
67
68
|
currentUser: W,
|
|
@@ -77,13 +78,13 @@ function ze() {
|
|
|
77
78
|
const e = B.parse(p.search), a = String(e.projectId ?? e.project_id ?? "").trim();
|
|
78
79
|
if (!a)
|
|
79
80
|
return null;
|
|
80
|
-
const
|
|
81
|
-
return Number.isFinite(
|
|
81
|
+
const o = Number(a);
|
|
82
|
+
return Number.isFinite(o) && o > 0 ? o : null;
|
|
82
83
|
}, [p.search]), O = M(!1), C = M(!1), P = M(!1), V = M(b);
|
|
83
84
|
V.current = b, Ie(S == null ? void 0 : S.id, ne), N(() => (document.body.classList.add("team-phone-workspace-route"), () => {
|
|
84
85
|
document.body.classList.remove("team-phone-workspace-route");
|
|
85
86
|
}), []);
|
|
86
|
-
const
|
|
87
|
+
const oe = G(
|
|
87
88
|
(e) => {
|
|
88
89
|
n("chat"), g(e), k(e, !0);
|
|
89
90
|
},
|
|
@@ -91,22 +92,22 @@ function ze() {
|
|
|
91
92
|
);
|
|
92
93
|
N(() => {
|
|
93
94
|
let e = !1, a = 0;
|
|
94
|
-
const
|
|
95
|
+
const o = 100;
|
|
95
96
|
let T = !1, F = 0;
|
|
96
97
|
const _ = 3, v = (h) => {
|
|
97
|
-
const
|
|
98
|
+
const s = r.getState().token;
|
|
98
99
|
if (V.current != null) {
|
|
99
100
|
e || (j(J(h)), Q(!0)), ee().then((U) => {
|
|
100
101
|
e || j(U);
|
|
101
102
|
}).catch(() => {
|
|
102
|
-
!e &&
|
|
103
|
+
!e && s && (localStorage.removeItem("z_team_token"), r.setState({ token: "" }));
|
|
103
104
|
});
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
107
|
ee().then((U) => {
|
|
107
108
|
e || j(U);
|
|
108
109
|
}).catch(() => {
|
|
109
|
-
e || (
|
|
110
|
+
e || (s && (localStorage.removeItem("z_team_token"), r.setState({ token: "" })), j(J(h)));
|
|
110
111
|
}).finally(() => {
|
|
111
112
|
e || Q(!0);
|
|
112
113
|
});
|
|
@@ -117,26 +118,26 @@ function ze() {
|
|
|
117
118
|
const h = async () => {
|
|
118
119
|
if (e)
|
|
119
120
|
return;
|
|
120
|
-
let
|
|
121
|
-
if ((!
|
|
121
|
+
let s = le();
|
|
122
|
+
if ((!s || !K(s)) && !T) {
|
|
122
123
|
T = !0;
|
|
123
124
|
try {
|
|
124
125
|
const c = await ie();
|
|
125
|
-
c.kind === "authenticated" ?
|
|
126
|
+
c.kind === "authenticated" ? s = c.user : c.kind === "unauthenticated" && (F += 1);
|
|
126
127
|
} catch {
|
|
127
128
|
} finally {
|
|
128
129
|
T = !1;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
if (
|
|
132
|
-
v(
|
|
132
|
+
if (s && K(s)) {
|
|
133
|
+
v(s);
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
136
|
if (F >= _) {
|
|
136
137
|
$();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
|
-
if (a += 1, a >=
|
|
140
|
+
if (a += 1, a >= o) {
|
|
140
141
|
$();
|
|
141
142
|
return;
|
|
142
143
|
}
|
|
@@ -151,13 +152,13 @@ function ze() {
|
|
|
151
152
|
}, [j]), N(() => {
|
|
152
153
|
W && z();
|
|
153
154
|
}, [W, z]), N(() => {
|
|
154
|
-
var
|
|
155
|
+
var o;
|
|
155
156
|
if (!u || b != null || d === "project" || P.current)
|
|
156
157
|
return;
|
|
157
|
-
const e = r.getState(), a = (
|
|
158
|
+
const e = r.getState(), a = (o = e.currentProject) == null ? void 0 : o.id;
|
|
158
159
|
a == null || !e.expandedProjectIds.includes(String(a)) || (i("project"), n("chat"), g("team"), k("team", !0));
|
|
159
160
|
}, [u, b, d, k]);
|
|
160
|
-
const
|
|
161
|
+
const se = G(
|
|
161
162
|
async (e) => {
|
|
162
163
|
P.current = !1, I(!0);
|
|
163
164
|
try {
|
|
@@ -184,12 +185,12 @@ function ze() {
|
|
|
184
185
|
});
|
|
185
186
|
return;
|
|
186
187
|
}
|
|
187
|
-
let
|
|
188
|
+
let o = !1;
|
|
188
189
|
C.current = !0, I(!0);
|
|
189
190
|
const T = async () => {
|
|
190
191
|
const v = Date.now() + 4e3;
|
|
191
192
|
for (; Date.now() < v; ) {
|
|
192
|
-
if (
|
|
193
|
+
if (o)
|
|
193
194
|
return;
|
|
194
195
|
const x = r.getState();
|
|
195
196
|
if (!x.loading || x.projects.length > 0)
|
|
@@ -199,27 +200,27 @@ function ze() {
|
|
|
199
200
|
};
|
|
200
201
|
return (async () => {
|
|
201
202
|
try {
|
|
202
|
-
if (await T(),
|
|
203
|
+
if (await T(), o)
|
|
203
204
|
return;
|
|
204
205
|
let {
|
|
205
206
|
token: v,
|
|
206
207
|
projects: x,
|
|
207
208
|
expandProject: h
|
|
208
|
-
} = r.getState(),
|
|
209
|
-
if (!
|
|
209
|
+
} = r.getState(), s = x.find((c) => c.id === e);
|
|
210
|
+
if (!s) {
|
|
210
211
|
const c = await Pe(e, v);
|
|
211
|
-
if (
|
|
212
|
+
if (o)
|
|
212
213
|
return;
|
|
213
214
|
if (c.status === "NOT_FOUND" || !c.scenarioInstance) {
|
|
214
215
|
ge.info("无此工程");
|
|
215
216
|
return;
|
|
216
217
|
}
|
|
217
|
-
if (
|
|
218
|
+
if (s = await Te(e, v), o)
|
|
218
219
|
return;
|
|
219
220
|
}
|
|
220
|
-
if (
|
|
221
|
+
if (o || !s)
|
|
221
222
|
return;
|
|
222
|
-
if (O.current = !0, await h(
|
|
223
|
+
if (O.current = !0, await h(s), !o) {
|
|
223
224
|
P.current = !1, i("project"), n("chat"), g("team"), te();
|
|
224
225
|
const c = r.getState();
|
|
225
226
|
c.currentProject && await c.refreshProjectPanels(
|
|
@@ -233,7 +234,7 @@ function ze() {
|
|
|
233
234
|
I(!1), C.current = !1, r.getState().loadProjects();
|
|
234
235
|
}
|
|
235
236
|
})(), () => {
|
|
236
|
-
|
|
237
|
+
o = !0, C.current && (C.current = !1);
|
|
237
238
|
};
|
|
238
239
|
}, [u, b]);
|
|
239
240
|
const Z = Y(() => {
|
|
@@ -325,7 +326,7 @@ function ze() {
|
|
|
325
326
|
type: "button",
|
|
326
327
|
className: "phone-project-item",
|
|
327
328
|
onClick: () => {
|
|
328
|
-
|
|
329
|
+
se(e);
|
|
329
330
|
},
|
|
330
331
|
children: [
|
|
331
332
|
/* @__PURE__ */ l("div", { className: "phone-project-item-main", children: [
|
|
@@ -354,7 +355,7 @@ function ze() {
|
|
|
354
355
|
{
|
|
355
356
|
type: "button",
|
|
356
357
|
className: f === "chat" ? "phone-toolbar-tab phone-toolbar-active" : "phone-toolbar-tab",
|
|
357
|
-
onClick: () =>
|
|
358
|
+
onClick: () => oe("team"),
|
|
358
359
|
children: "协作"
|
|
359
360
|
}
|
|
360
361
|
) }),
|
|
@@ -400,5 +401,5 @@ function ze() {
|
|
|
400
401
|
] });
|
|
401
402
|
}
|
|
402
403
|
export {
|
|
403
|
-
|
|
404
|
+
He as default
|
|
404
405
|
};
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { a as p, b as f, d as o, e as r, B as c, f as l } from "./api-C3oQuHQN.js";
|
|
2
|
+
async function C(e, n = "") {
|
|
3
|
+
const t = new URLSearchParams();
|
|
4
|
+
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
5
|
+
const s = await r(
|
|
6
|
+
`${c}/scenario-instances/page?${t.toString()}`,
|
|
7
|
+
l
|
|
8
|
+
);
|
|
9
|
+
return o(s, "获取工作项列表失败");
|
|
10
|
+
}
|
|
11
|
+
function u(e) {
|
|
12
|
+
return {
|
|
13
|
+
id: String(e.id),
|
|
14
|
+
name: String(e.name ?? ""),
|
|
15
|
+
description: String(e.description ?? ""),
|
|
16
|
+
workspace_path: String(e.workspace_path ?? e.workspacePath ?? ""),
|
|
17
|
+
status: String(e.status ?? "ACTIVE"),
|
|
18
|
+
created_at: String(e.created_at ?? e.createdAt ?? ""),
|
|
19
|
+
mode: e.mode != null ? String(e.mode) : void 0,
|
|
20
|
+
scenario_id: e.scenario_id != null ? String(e.scenario_id) : e.scenarioId != null ? String(e.scenarioId) : void 0,
|
|
21
|
+
scenario_code: e.scenario_code != null ? String(e.scenario_code) : e.scenarioCode != null ? String(e.scenarioCode) : void 0,
|
|
22
|
+
scenario_name: e.scenario_name != null ? String(e.scenario_name) : e.scenarioName != null ? String(e.scenarioName) : void 0,
|
|
23
|
+
role: e.role != null ? String(e.role) : void 0,
|
|
24
|
+
llm_code: e.llm_code != null ? String(e.llm_code) : e.llmCode != null ? String(e.llmCode) : void 0,
|
|
25
|
+
close_feedback: m(e, "close_feedback"),
|
|
26
|
+
close_tags: m(e, "close_tags"),
|
|
27
|
+
close_time: m(e, "close_time"),
|
|
28
|
+
close_user: m(e, "close_user"),
|
|
29
|
+
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
|
+
parent_id: g(e)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function m(e, n) {
|
|
34
|
+
const t = n.replace(/_([a-z])/g, (d, _) => _.toUpperCase());
|
|
35
|
+
if (e[n] != null) return e[n];
|
|
36
|
+
if (e[t] != null) return e[t];
|
|
37
|
+
const s = e.close_info ?? e.closeInfo;
|
|
38
|
+
if (s) {
|
|
39
|
+
if (s[n] != null) return s[n];
|
|
40
|
+
if (s[t] != null) return s[t];
|
|
41
|
+
}
|
|
42
|
+
const a = e.ext;
|
|
43
|
+
if (!a) return;
|
|
44
|
+
const i = a.params;
|
|
45
|
+
if (i)
|
|
46
|
+
return i[n] ?? void 0;
|
|
47
|
+
}
|
|
48
|
+
function g(e) {
|
|
49
|
+
const n = e.ext;
|
|
50
|
+
if (!n) return;
|
|
51
|
+
const t = n.params;
|
|
52
|
+
if (!t) return;
|
|
53
|
+
const s = t.parent_id;
|
|
54
|
+
if (s == null) return;
|
|
55
|
+
const a = s === "" ? "" : String(s);
|
|
56
|
+
return a === "" ? void 0 : a;
|
|
57
|
+
}
|
|
58
|
+
async function T(e) {
|
|
59
|
+
const n = await r(
|
|
60
|
+
`${c}/scenario-instances/${e}/models`
|
|
61
|
+
);
|
|
62
|
+
return await o(n, "获取模型列表失败") ?? [];
|
|
63
|
+
}
|
|
64
|
+
const S = "develop_brain_scenario";
|
|
65
|
+
async function v(e) {
|
|
66
|
+
const n = await p(f(e), {
|
|
67
|
+
method: "GET"
|
|
68
|
+
});
|
|
69
|
+
return o(n, "获取工单信息失败");
|
|
70
|
+
}
|
|
71
|
+
function U(e) {
|
|
72
|
+
return String(e.currentStage ?? e.current_stage ?? "").trim();
|
|
73
|
+
}
|
|
74
|
+
function h(e) {
|
|
75
|
+
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
76
|
+
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
77
|
+
}
|
|
78
|
+
function b(e, n) {
|
|
79
|
+
var i;
|
|
80
|
+
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
81
|
+
return a && (s.work_order_url = a), {
|
|
82
|
+
name: t,
|
|
83
|
+
description: `ticket_id_${n}_${t}`,
|
|
84
|
+
workspace_path: h(t),
|
|
85
|
+
scenario_code: S,
|
|
86
|
+
extend_params: s
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
async function $(e, n = "") {
|
|
90
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await r(
|
|
91
|
+
`${c}/scenario-instances/${e}${t}`,
|
|
92
|
+
l
|
|
93
|
+
), a = await o(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND", d = a.scenario_instance ?? a.scenarioInstance ?? null;
|
|
94
|
+
return {
|
|
95
|
+
status: i,
|
|
96
|
+
scenarioInstance: d ? u(d) : null
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
async function k(e, n = "") {
|
|
100
|
+
const t = await $(e, n);
|
|
101
|
+
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
102
|
+
throw {
|
|
103
|
+
_apiUserError: !0,
|
|
104
|
+
userMessage: "项目不存在",
|
|
105
|
+
message: "项目不存在"
|
|
106
|
+
};
|
|
107
|
+
return t.scenarioInstance;
|
|
108
|
+
}
|
|
109
|
+
async function y(e, n = "") {
|
|
110
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await r(
|
|
111
|
+
`${c}/scenario-instances/${e}/join-self${t}`,
|
|
112
|
+
{
|
|
113
|
+
...l,
|
|
114
|
+
method: "POST"
|
|
115
|
+
}
|
|
116
|
+
), a = await o(s, "加入工程失败");
|
|
117
|
+
return u(a);
|
|
118
|
+
}
|
|
119
|
+
async function A(e = "") {
|
|
120
|
+
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await r(`${c}/self-support${n}`, l), s = await o(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
121
|
+
if (!Number.isFinite(a) || a <= 0)
|
|
122
|
+
throw {
|
|
123
|
+
_apiUserError: !0,
|
|
124
|
+
userMessage: "自身答疑群组无效",
|
|
125
|
+
message: "自身答疑群组无效"
|
|
126
|
+
};
|
|
127
|
+
return {
|
|
128
|
+
scenario_instance_id: a,
|
|
129
|
+
name: String(s.name ?? "Future-Team 自身答疑"),
|
|
130
|
+
scenario_code: String(s.scenario_code ?? "qa_support"),
|
|
131
|
+
workspace_path: String(s.workspace_path ?? ""),
|
|
132
|
+
status: String(s.status ?? "ACTIVE")
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
async function N(e, n = "") {
|
|
136
|
+
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await r(
|
|
137
|
+
`${c}/scenario-instances/${e}/forks${t}`,
|
|
138
|
+
l
|
|
139
|
+
), a = await o(s, "获取 Fork 列表失败");
|
|
140
|
+
return (Array.isArray(a) ? a : []).map(
|
|
141
|
+
(d) => u(d)
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
async function O(e) {
|
|
145
|
+
const n = await r(
|
|
146
|
+
`${c}/scenario-instances/${e}/close-feedback-tags`,
|
|
147
|
+
{
|
|
148
|
+
...l,
|
|
149
|
+
method: "GET"
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
return await o(n, "获取关单标签失败");
|
|
153
|
+
}
|
|
154
|
+
async function P(e) {
|
|
155
|
+
const n = await r(`${c}/scenario-instances/${e}/reopen`, {
|
|
156
|
+
...l,
|
|
157
|
+
method: "POST",
|
|
158
|
+
headers: { "Content-Type": "application/json" }
|
|
159
|
+
}), t = await o(n, "重新开启失败");
|
|
160
|
+
return u(t);
|
|
161
|
+
}
|
|
162
|
+
async function F(e, n) {
|
|
163
|
+
const t = await r(`${c}/scenario-instances/${e}/close`, {
|
|
164
|
+
...l,
|
|
165
|
+
method: "POST",
|
|
166
|
+
headers: { "Content-Type": "application/json" },
|
|
167
|
+
body: JSON.stringify(n)
|
|
168
|
+
}), s = await o(t, "关单失败");
|
|
169
|
+
return u(s);
|
|
170
|
+
}
|
|
171
|
+
async function E(e) {
|
|
172
|
+
const n = await r(
|
|
173
|
+
`${c}/scenario-instances/${e}/retry-init`,
|
|
174
|
+
{
|
|
175
|
+
...l,
|
|
176
|
+
method: "POST",
|
|
177
|
+
headers: { "Content-Type": "application/json" }
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
return o(n, "初始化补偿失败");
|
|
181
|
+
}
|
|
182
|
+
async function x(e = "", n = 8) {
|
|
183
|
+
const t = new URLSearchParams();
|
|
184
|
+
e && t.set("token", e), t.set("limit", String(n));
|
|
185
|
+
const s = await r(
|
|
186
|
+
`${c}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
187
|
+
l
|
|
188
|
+
), a = await o(
|
|
189
|
+
s,
|
|
190
|
+
"查询未关单失败"
|
|
191
|
+
);
|
|
192
|
+
return (Array.isArray(a) ? a : []).map((i) => ({
|
|
193
|
+
id: Number(i.id ?? 0),
|
|
194
|
+
name: String(i.name ?? ""),
|
|
195
|
+
scenario_code: String(i.scenario_code ?? ""),
|
|
196
|
+
created_at: String(i.created_at ?? i.createdAt ?? "")
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
export {
|
|
200
|
+
C as a,
|
|
201
|
+
b,
|
|
202
|
+
T as c,
|
|
203
|
+
A as d,
|
|
204
|
+
F as e,
|
|
205
|
+
v as f,
|
|
206
|
+
O as g,
|
|
207
|
+
E as h,
|
|
208
|
+
N as i,
|
|
209
|
+
y as j,
|
|
210
|
+
k,
|
|
211
|
+
$ as l,
|
|
212
|
+
x as m,
|
|
213
|
+
U as p,
|
|
214
|
+
P as r
|
|
215
|
+
};
|
package/dist/pages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as Ce } from "zustand";
|
|
2
|
-
import { Q as je, x as M, i as C, y as ne,
|
|
2
|
+
import { Q as je, x as M, i as C, y as ne, m as A, t as _, z as se, A as Pe, C as Ne, D as we, E as Ee, F as xe, G as Fe, H as ae, I as Re, J as Oe, K as B, L as Ue, M as He, r as ie, N as Le, O as $e, P as Ge, R as De, S as Ve, U as Be, V as qe, W as ze, X as Ke, Y as We, Z as Je, _ as Ye, $ as Ze, a0 as Qe, a1 as Xe, s as x, a2 as et, a3 as oe, a4 as tt, a5 as nt, a6 as rt, a7 as st, a8 as at, a9 as it, aa as ot, ab as ct, c as lt, ac as ut, ad as dt, w as ft, ae as mt } from "./api-C3oQuHQN.js";
|
|
3
3
|
import { message as F } from "antd";
|
|
4
4
|
const _e = `[[REASONING:正在分析…]]
|
|
5
5
|
正在分析…
|