@yuku123/z-team-component 0.2.108 → 0.2.109
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/{ChangeLogView-BmdZsm3p.js → ChangeLogView-DdSxtocJ.js} +1 -1
- package/dist/{ComponentDoc-dNbf9aR8.js → ComponentDoc-BvN4p-px.js} +3 -3
- package/dist/{InvitationManagementPage-5IF8XVY8.js → InvitationManagementPage-ulf_gp6i.js} +1 -1
- package/dist/{OnboardingPage-BrF8018U.js → OnboardingPage-DssWyVUp.js} +2 -2
- package/dist/{ScheduledTasks-tPX0WAlF.js → ScheduledTasks-D-GHShuZ.js} +6 -6
- package/dist/{SystemShell-DJFGVjYE.js → SystemShell-CAAau-ge.js} +4 -4
- package/dist/{admin-logs-_zRvUkam.js → admin-logs-B3kf7Nux.js} +1 -1
- package/dist/{api-DZEArNcd.js → api-CZHGqzJu.js} +1 -1
- package/dist/{api-DdXl8HTL.js → api-CrBRvJn-.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BtSbZj62.js → createWorkspaceWsHandler-L-Sytl_P.js} +3 -3
- package/dist/{index-ofMXSELs.js → index-B-3lwdjY.js} +3 -3
- package/dist/{index-Bk3TIjDH.js → index-B4Ula80l.js} +4 -4
- package/dist/{index-DGb03m6z.js → index-B5ZvaS08.js} +2 -2
- package/dist/{index-DDT4TACA.js → index-BOtKi_rq.js} +6 -6
- package/dist/{index-mYGdo3Nt.js → index-BP3XAJ7Q.js} +3 -3
- package/dist/{index-BEgq2g59.js → index-BQhN1is6.js} +8 -8
- package/dist/{index-Dqi0OzBv.js → index-BRpW3VGs.js} +2 -2
- package/dist/{index-Co2PzaD_.js → index-BV7x6V8O.js} +2 -2
- package/dist/{index-DvUBHPbz.js → index-BVUnWYrV.js} +5 -5
- package/dist/{index-D9OGPcQk.js → index-BmxhBUTY.js} +1 -1
- package/dist/{index-BJ-3H9n_.js → index-Bq5vEJbR.js} +1 -1
- package/dist/{index-D10wKA0G.js → index-C1Njrke8.js} +2 -2
- package/dist/{index-9UQGJcuO.js → index-C8F9WjLi.js} +3 -3
- package/dist/{index-U3Bb_Kvg.js → index-CEurOY7j.js} +3 -3
- package/dist/{index-C-4992WQ.js → index-CTh1ymDk.js} +2 -2
- package/dist/{index-BxXssPe9.js → index-CnUOjRpt.js} +1 -1
- package/dist/{index-CQuuSIdC.js → index-Cz4K_1FW.js} +1 -1
- package/dist/{index-lFEE8r-n.js → index-D141YGZI.js} +2 -2
- package/dist/{index-CE6y4yIb.js → index-D4dQrvt8.js} +3 -3
- package/dist/{index-L6-bHje2.js → index-DEDBTWl3.js} +3 -3
- package/dist/{index-Bor2ZmiN.js → index-DIAskr47.js} +2 -2
- package/dist/{index-DC6lW35z.js → index-DqLdUmYy.js} +2 -2
- package/dist/index-Hr-9xiTF.js +918 -0
- package/dist/{index-nyE2dDrG.js → index-cXj4LlOC.js} +6 -6
- package/dist/{index-W2zbQ6iD.js → index-yruBiJr-.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-CTQb537U.js → instance-CmxqDNsP.js} +1 -1
- package/dist/{menuPermission-DVyC-rM0.js → menuPermission-vV7Me8Jl.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BGkQf0s1.js → send-default-agent-team-message-OC94qZy0.js} +1 -1
- package/dist/{sso-user-ZNl3v3q5.js → sso-user-CE0Hrmj-.js} +1 -1
- package/dist/{training-B_Z1DKa6.js → training-vs1vHeSm.js} +1 -1
- package/dist/{webide-SBDpaD6A.js → webide-Dei8BHrQ.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/index-C5o3Uo-7.js +0 -724
package/dist/index-C5o3Uo-7.js
DELETED
|
@@ -1,724 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as i, Fragment as je } from "react/jsx-runtime";
|
|
2
|
-
import { SearchOutlined as Fe, RightOutlined as Be, TeamOutlined as Le, MessageOutlined as He } from "@ant-design/icons";
|
|
3
|
-
import { Input as g, Spin as Q, Empty as m, Tag as E, Button as Y } from "antd";
|
|
4
|
-
import { useState as p, useRef as Oe, useCallback as h, useEffect as me, useMemo as fe } from "react";
|
|
5
|
-
import { u as N } from "./ComponentDoc-dNbf9aR8.js";
|
|
6
|
-
import { h as X } from "./history-BlrA1eaW.js";
|
|
7
|
-
import { C as Ue } from "./createWorkspaceWsHandler-BtSbZj62.js";
|
|
8
|
-
import { l as xe, c as Me } from "./api-DZEArNcd.js";
|
|
9
|
-
const Ke = "product-workspace", ye = "productCode";
|
|
10
|
-
function v(n) {
|
|
11
|
-
if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
|
|
12
|
-
return n.json();
|
|
13
|
-
}
|
|
14
|
-
async function ze() {
|
|
15
|
-
const n = N.getState().token, o = await fetch(`/api/product/list${n ? `?token=${encodeURIComponent(n)}` : ""}`, {
|
|
16
|
-
credentials: "include",
|
|
17
|
-
headers: { Accept: "application/json" }
|
|
18
|
-
}), r = await v(o), c = Array.isArray(r) ? r : r == null ? void 0 : r.data;
|
|
19
|
-
return Array.isArray(c) ? c.map((u) => ({
|
|
20
|
-
...u,
|
|
21
|
-
productCode: String(u.productCode ?? u.code ?? ""),
|
|
22
|
-
name: String(u.name ?? u.productCode ?? u.code ?? "未命名")
|
|
23
|
-
})) : [];
|
|
24
|
-
}
|
|
25
|
-
async function Je(n) {
|
|
26
|
-
try {
|
|
27
|
-
const o = await fetch(`/api/product/${encodeURIComponent(n)}`, {
|
|
28
|
-
credentials: "include",
|
|
29
|
-
headers: { Accept: "application/json" }
|
|
30
|
-
}), r = await v(o), c = (r == null ? void 0 : r.data) ?? r;
|
|
31
|
-
return c && typeof c == "object" ? { ...c, productCode: n } : null;
|
|
32
|
-
} catch {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
async function Ve(n) {
|
|
37
|
-
try {
|
|
38
|
-
const o = await fetch(`/api/product/${encodeURIComponent(n)}/atelier/workspace`, {
|
|
39
|
-
credentials: "include",
|
|
40
|
-
headers: { Accept: "application/json" }
|
|
41
|
-
}), r = await v(o), c = (r == null ? void 0 : r.data) ?? r;
|
|
42
|
-
return c && typeof c == "object" && Array.isArray(c.files) ? c.files : Array.isArray(c) ? c : [];
|
|
43
|
-
} catch {
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async function We(n, o) {
|
|
48
|
-
try {
|
|
49
|
-
const r = await fetch(
|
|
50
|
-
`/api/product/${encodeURIComponent(n)}/atelier/files/raw?path=${encodeURIComponent(o)}`,
|
|
51
|
-
{ credentials: "include", headers: { Accept: "text/html, application/json" } }
|
|
52
|
-
);
|
|
53
|
-
return r.ok ? await r.text() : null;
|
|
54
|
-
} catch {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function Qe(n) {
|
|
59
|
-
var c;
|
|
60
|
-
const o = (c = n.ext) == null ? void 0 : c.params;
|
|
61
|
-
if (!o || typeof o != "object") return null;
|
|
62
|
-
const r = o[ye];
|
|
63
|
-
return r == null ? null : String(r);
|
|
64
|
-
}
|
|
65
|
-
async function Ye(n, o) {
|
|
66
|
-
try {
|
|
67
|
-
return (await xe(o)).filter((c) => Qe(c) === n);
|
|
68
|
-
} catch {
|
|
69
|
-
return [];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
async function Xe(n, o, r) {
|
|
73
|
-
return Me(
|
|
74
|
-
{ scenario_code: Ke, name: o || `产品 ${n} 讨论组` },
|
|
75
|
-
r,
|
|
76
|
-
{ [ye]: n }
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
function T(n) {
|
|
80
|
-
return n && typeof n == "object" && "data" in n ? n.data : n;
|
|
81
|
-
}
|
|
82
|
-
async function Ze() {
|
|
83
|
-
try {
|
|
84
|
-
const n = await fetch("/api/product/group/list", {
|
|
85
|
-
credentials: "include",
|
|
86
|
-
headers: { Accept: "application/json" }
|
|
87
|
-
}), o = await v(n), r = T(o);
|
|
88
|
-
return Array.isArray(r) ? r : [];
|
|
89
|
-
} catch {
|
|
90
|
-
return [];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
async function De(n) {
|
|
94
|
-
try {
|
|
95
|
-
const o = await fetch("/api/product/group", {
|
|
96
|
-
method: "POST",
|
|
97
|
-
credentials: "include",
|
|
98
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
99
|
-
body: JSON.stringify(n)
|
|
100
|
-
}), r = await v(o);
|
|
101
|
-
return T(r);
|
|
102
|
-
} catch {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
async function et(n) {
|
|
107
|
-
try {
|
|
108
|
-
const o = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding/list`, {
|
|
109
|
-
credentials: "include",
|
|
110
|
-
headers: { Accept: "application/json" }
|
|
111
|
-
}), r = await v(o), c = T(r);
|
|
112
|
-
return Array.isArray(c) ? c : [];
|
|
113
|
-
} catch {
|
|
114
|
-
return [];
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async function tt(n, o) {
|
|
118
|
-
try {
|
|
119
|
-
const r = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding`, {
|
|
120
|
-
method: "POST",
|
|
121
|
-
credentials: "include",
|
|
122
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
123
|
-
body: JSON.stringify(o)
|
|
124
|
-
}), c = await v(r);
|
|
125
|
-
return T(c);
|
|
126
|
-
} catch {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
async function at(n) {
|
|
131
|
-
try {
|
|
132
|
-
const o = await fetch(`/api/product/${encodeURIComponent(n)}/requirement/list`, {
|
|
133
|
-
credentials: "include",
|
|
134
|
-
headers: { Accept: "application/json" }
|
|
135
|
-
}), r = await v(o), c = T(r);
|
|
136
|
-
return Array.isArray(c) ? c : [];
|
|
137
|
-
} catch {
|
|
138
|
-
return [];
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
async function nt(n, o) {
|
|
142
|
-
try {
|
|
143
|
-
const r = await fetch(`/api/product/${encodeURIComponent(n)}/requirement`, {
|
|
144
|
-
method: "POST",
|
|
145
|
-
credentials: "include",
|
|
146
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
147
|
-
body: JSON.stringify(o)
|
|
148
|
-
}), c = await v(r);
|
|
149
|
-
return T(c);
|
|
150
|
-
} catch {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
const rt = "_container_6y59f_5", ct = "_libraryView_6y59f_14", it = "_libraryHeader_6y59f_22", ot = "_libraryTitle_6y59f_34", st = "_librarySubtitle_6y59f_41", lt = "_librarySearch_6y59f_47", dt = "_libraryBody_6y59f_52", pt = "_productGrid_6y59f_59", ut = "_productCard_6y59f_65", ht = "_cardCode_6y59f_85", _t = "_cardName_6y59f_98", mt = "_cardDesc_6y59f_107", ft = "_cardFoot_6y59f_118", yt = "_cardEnter_6y59f_126", vt = "_cardTag_6y59f_134", Nt = "_left_6y59f_140", wt = "_leftHeader_6y59f_150", gt = "_leftTitleRow_6y59f_156", Tt = "_leftTitle_6y59f_156", Ct = "_backBtn_6y59f_173", bt = "_sectionBar_6y59f_203", At = "_sectionTab_6y59f_213", Pt = "_sectionTabActive_6y59f_235", St = "_sectionIcon_6y59f_242", Rt = "_leftBody_6y59f_247", Gt = "_fileList_6y59f_258", It = "_fileTreeHint_6y59f_297", kt = "_fileRow_6y59f_303", qt = "_fileRowActive_6y59f_317", Et = "_fileRowIcon_6y59f_321", $t = "_fileRowName_6y59f_326", jt = "_fileKindTag_6y59f_335", Ft = "_center_6y59f_343", Bt = "_centerFill_6y59f_352", Lt = "_renderArea_6y59f_407", Ht = "_renderIframe_6y59f_417", Ot = "_renderCode_6y59f_423", Ut = "_right_6y59f_436", xt = "_chatSide_6y59f_447", Mt = "_chatSideHeader_6y59f_453", Kt = "_chatSideTitle_6y59f_462", zt = "_chatGroupList_6y59f_471", Jt = "_chatGroupRow_6y59f_480", Vt = "_chatGroupRowActive_6y59f_494", Wt = "_chatGroupName_6y59f_498", Qt = "_chatGroupTime_6y59f_507", Yt = "_chatPane_6y59f_514", Xt = "_chatPaneHeader_6y59f_520", Zt = "_chatPaneTitle_6y59f_529", Dt = "_chatPaneBody_6y59f_538", ea = "_groupChips_6y59f_549", ta = "_groupChip_6y59f_549", aa = "_groupChipActive_6y59f_573", na = "_groupNewHint_6y59f_579", ra = "_groupAddBtn_6y59f_586", ca = "_cardGroup_6y59f_601", ia = "_overviewArea_6y59f_611", oa = "_overviewHeader_6y59f_616", sa = "_overviewTitle_6y59f_620", la = "_overviewSubtitle_6y59f_627", da = "_overviewTabs_6y59f_633", pa = "_overviewTab_6y59f_633", ua = "_overviewTabActive_6y59f_656", ha = "_overviewPanel_6y59f_662", _a = "_reqForm_6y59f_670", ma = "_reqList_6y59f_676", fa = "_reqRow_6y59f_682", ya = "_reqTitle_6y59f_691", va = "_reqTag_6y59f_700", Na = "_reqStatus_6y59f_706", wa = "_reqTime_6y59f_712", ga = "_appForm_6y59f_719", Ta = "_appTypeSelect_6y59f_726", Ca = "_appList_6y59f_737", ba = "_appRow_6y59f_743", Aa = "_appIcon_6y59f_752", Pa = "_appName_6y59f_757", Sa = "_appCode_6y59f_767", Ra = "_appTag_6y59f_773", Ga = "_appGo_6y59f_779", Ia = "_appInfraNote_6y59f_794", ka = "_appUnbind_6y59f_800", t = {
|
|
155
|
-
container: rt,
|
|
156
|
-
libraryView: ct,
|
|
157
|
-
libraryHeader: it,
|
|
158
|
-
libraryTitle: ot,
|
|
159
|
-
librarySubtitle: st,
|
|
160
|
-
librarySearch: lt,
|
|
161
|
-
libraryBody: dt,
|
|
162
|
-
productGrid: pt,
|
|
163
|
-
productCard: ut,
|
|
164
|
-
cardCode: ht,
|
|
165
|
-
cardName: _t,
|
|
166
|
-
cardDesc: mt,
|
|
167
|
-
cardFoot: ft,
|
|
168
|
-
cardEnter: yt,
|
|
169
|
-
cardTag: vt,
|
|
170
|
-
left: Nt,
|
|
171
|
-
leftHeader: wt,
|
|
172
|
-
leftTitleRow: gt,
|
|
173
|
-
leftTitle: Tt,
|
|
174
|
-
backBtn: Ct,
|
|
175
|
-
sectionBar: bt,
|
|
176
|
-
sectionTab: At,
|
|
177
|
-
sectionTabActive: Pt,
|
|
178
|
-
sectionIcon: St,
|
|
179
|
-
leftBody: Rt,
|
|
180
|
-
fileList: Gt,
|
|
181
|
-
fileTreeHint: It,
|
|
182
|
-
fileRow: kt,
|
|
183
|
-
fileRowActive: qt,
|
|
184
|
-
fileRowIcon: Et,
|
|
185
|
-
fileRowName: $t,
|
|
186
|
-
fileKindTag: jt,
|
|
187
|
-
center: Ft,
|
|
188
|
-
centerFill: Bt,
|
|
189
|
-
renderArea: Lt,
|
|
190
|
-
renderIframe: Ht,
|
|
191
|
-
renderCode: Ot,
|
|
192
|
-
right: Ut,
|
|
193
|
-
chatSide: xt,
|
|
194
|
-
chatSideHeader: Mt,
|
|
195
|
-
chatSideTitle: Kt,
|
|
196
|
-
chatGroupList: zt,
|
|
197
|
-
chatGroupRow: Jt,
|
|
198
|
-
chatGroupRowActive: Vt,
|
|
199
|
-
chatGroupName: Wt,
|
|
200
|
-
chatGroupTime: Qt,
|
|
201
|
-
chatPane: Yt,
|
|
202
|
-
chatPaneHeader: Xt,
|
|
203
|
-
chatPaneTitle: Zt,
|
|
204
|
-
chatPaneBody: Dt,
|
|
205
|
-
groupChips: ea,
|
|
206
|
-
groupChip: ta,
|
|
207
|
-
groupChipActive: aa,
|
|
208
|
-
groupNewHint: na,
|
|
209
|
-
groupAddBtn: ra,
|
|
210
|
-
cardGroup: ca,
|
|
211
|
-
overviewArea: ia,
|
|
212
|
-
overviewHeader: oa,
|
|
213
|
-
overviewTitle: sa,
|
|
214
|
-
overviewSubtitle: la,
|
|
215
|
-
overviewTabs: da,
|
|
216
|
-
overviewTab: pa,
|
|
217
|
-
overviewTabActive: ua,
|
|
218
|
-
overviewPanel: ha,
|
|
219
|
-
reqForm: _a,
|
|
220
|
-
reqList: ma,
|
|
221
|
-
reqRow: fa,
|
|
222
|
-
reqTitle: ya,
|
|
223
|
-
reqTag: va,
|
|
224
|
-
reqStatus: Na,
|
|
225
|
-
reqTime: wa,
|
|
226
|
-
appForm: ga,
|
|
227
|
-
appTypeSelect: Ta,
|
|
228
|
-
appList: Ca,
|
|
229
|
-
appRow: ba,
|
|
230
|
-
appIcon: Aa,
|
|
231
|
-
appName: Pa,
|
|
232
|
-
appCode: Sa,
|
|
233
|
-
appTag: Ra,
|
|
234
|
-
appGo: Ga,
|
|
235
|
-
appInfraNote: Ia,
|
|
236
|
-
appUnbind: ka
|
|
237
|
-
};
|
|
238
|
-
function qa(n) {
|
|
239
|
-
return {
|
|
240
|
-
id: String(n.id),
|
|
241
|
-
name: n.name,
|
|
242
|
-
description: n.description ?? "",
|
|
243
|
-
workspace_path: n.workspacePath || n.name,
|
|
244
|
-
status: n.status,
|
|
245
|
-
created_at: n.createTime ?? "",
|
|
246
|
-
scenario_id: String(n.id),
|
|
247
|
-
scenario_code: n.scenarioCode,
|
|
248
|
-
scenario_name: n.scenarioName ?? n.name
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
function ve(n) {
|
|
252
|
-
const o = n.toLowerCase();
|
|
253
|
-
return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(o) ? "design" : /\.(md|markdown|txt|docx?)$/.test(o) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(o) ? "code" : "other";
|
|
254
|
-
}
|
|
255
|
-
function Ne(n, o = "") {
|
|
256
|
-
const r = [];
|
|
257
|
-
for (const c of n ?? []) {
|
|
258
|
-
const u = c.path || `${o}${c.name ?? ""}`, P = c.name || u.split("/").pop() || u, d = c.type === "dir" || Array.isArray(c.children);
|
|
259
|
-
r.push({ path: u, name: P, dir: d, kind: ve(u), depth: o.split("/").filter(Boolean).length }), d && Array.isArray(c.children) && r.push(...Ne(c.children, `${u}/`));
|
|
260
|
-
}
|
|
261
|
-
return r;
|
|
262
|
-
}
|
|
263
|
-
function Ua() {
|
|
264
|
-
const n = N((e) => e.token), o = N((e) => e.selectProject), [r, c] = p([]), [u, P] = p(!0), [d, Z] = p(null), [l, D] = p(null), [we, ee] = p(!1), [te, ae] = p([]), [ge, ne] = p(!1), [$, j] = p(null), [F, S] = p(null), [Te, Ce] = p("other"), [C, be] = p(""), [R, B] = p([]), [re, L] = p(null), [G, ce] = p(!1), [Ae, I] = p("list"), f = Oe(null), [H, ie] = p([]), [b, oe] = p(null), [O, U] = p([]), [x, se] = p([]), [M, K] = p("req"), [A, le] = p(""), z = h(
|
|
265
|
-
async (e) => {
|
|
266
|
-
Z(e), ee(!0), j(null), S(null), I("list"), L(null), K("req");
|
|
267
|
-
const s = await Je(e);
|
|
268
|
-
D(s);
|
|
269
|
-
const _ = await Ye(e, n);
|
|
270
|
-
B(_);
|
|
271
|
-
const q = await et(e);
|
|
272
|
-
U(q);
|
|
273
|
-
const W = await at(e);
|
|
274
|
-
se(W), ne(!0);
|
|
275
|
-
const $e = await Ve(e);
|
|
276
|
-
ae($e), ne(!1);
|
|
277
|
-
},
|
|
278
|
-
[n]
|
|
279
|
-
), de = h(async () => {
|
|
280
|
-
P(!0);
|
|
281
|
-
try {
|
|
282
|
-
const e = await ze();
|
|
283
|
-
c(e);
|
|
284
|
-
const s = await Ze();
|
|
285
|
-
ie(s);
|
|
286
|
-
try {
|
|
287
|
-
const _ = new URLSearchParams(window.location.search).get("product");
|
|
288
|
-
if (_) {
|
|
289
|
-
const q = e.find((W) => W.productCode === _);
|
|
290
|
-
if (q) {
|
|
291
|
-
z(q.productCode);
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
} catch {
|
|
296
|
-
}
|
|
297
|
-
} catch {
|
|
298
|
-
c([]);
|
|
299
|
-
} finally {
|
|
300
|
-
P(!1);
|
|
301
|
-
}
|
|
302
|
-
}, [z]);
|
|
303
|
-
me(() => {
|
|
304
|
-
de();
|
|
305
|
-
}, [de]);
|
|
306
|
-
const Pe = h(() => {
|
|
307
|
-
if (!d) return;
|
|
308
|
-
const e = new URLSearchParams();
|
|
309
|
-
e.set("product", d), l != null && l.name && e.set("productName", l.name), X.push(`/lc/apps?${e.toString()}`);
|
|
310
|
-
}, [d, l == null ? void 0 : l.name]), Se = h(() => {
|
|
311
|
-
if (!d) return;
|
|
312
|
-
const e = new URLSearchParams();
|
|
313
|
-
e.set("product", d), l != null && l.name && e.set("productName", l.name), X.push(`/test/qa/dashboard?${e.toString()}`);
|
|
314
|
-
}, [d, l == null ? void 0 : l.name]), Re = h(() => {
|
|
315
|
-
Z(null), ee(!1), D(null), ae([]), B([]), j(null), S(null), L(null), I("list"), f.current !== void 0 && N.setState({ currentProject: f.current }), f.current = void 0;
|
|
316
|
-
}, []), pe = h(async () => {
|
|
317
|
-
if (!d || !A.trim()) return;
|
|
318
|
-
const e = await nt(d, {
|
|
319
|
-
title: A.trim(),
|
|
320
|
-
priority: "P2"
|
|
321
|
-
});
|
|
322
|
-
e && (se((s) => [...s, e]), le(""));
|
|
323
|
-
}, [d, A]), [y, k] = p({
|
|
324
|
-
appCode: "",
|
|
325
|
-
appName: "",
|
|
326
|
-
appType: "APP"
|
|
327
|
-
}), Ge = h(async () => {
|
|
328
|
-
if (!d || !y.appCode.trim() || !y.appName.trim()) return;
|
|
329
|
-
const e = await tt(d, y);
|
|
330
|
-
e && (U((s) => [...s, e]), k({ appCode: "", appName: "", appType: "APP" }));
|
|
331
|
-
}, [d, y]), Ie = h(
|
|
332
|
-
async (e) => {
|
|
333
|
-
d && (await unbindProductApp(d, e), U((s) => s.filter((_) => _.id !== e)));
|
|
334
|
-
},
|
|
335
|
-
[d]
|
|
336
|
-
), [w, J] = p({ groupCode: "", name: "" }), ke = h(async () => {
|
|
337
|
-
if (!w.groupCode.trim() || !w.name.trim()) return;
|
|
338
|
-
const e = await De(w);
|
|
339
|
-
e && (ie((s) => [...s, e]), J({ groupCode: "", name: "" }));
|
|
340
|
-
}, [w]), qe = h(
|
|
341
|
-
async (e) => {
|
|
342
|
-
if (!d) return;
|
|
343
|
-
j(e), S(null);
|
|
344
|
-
const s = ve(e);
|
|
345
|
-
Ce(s);
|
|
346
|
-
const _ = await We(d, e);
|
|
347
|
-
S(_ ?? "");
|
|
348
|
-
},
|
|
349
|
-
[d]
|
|
350
|
-
), V = h(
|
|
351
|
-
async (e) => {
|
|
352
|
-
if (!e) return;
|
|
353
|
-
const s = qa(e);
|
|
354
|
-
f.current = N.getState().currentProject, L(e.id), I("chat"), o(s);
|
|
355
|
-
},
|
|
356
|
-
[o]
|
|
357
|
-
), Ee = h(async () => {
|
|
358
|
-
if (!(!d || G)) {
|
|
359
|
-
ce(!0);
|
|
360
|
-
try {
|
|
361
|
-
const e = await Xe(
|
|
362
|
-
d,
|
|
363
|
-
`${(l == null ? void 0 : l.name) || d} · 讨论组 ${R.length + 1}`,
|
|
364
|
-
n
|
|
365
|
-
);
|
|
366
|
-
B((s) => [...s, e]), await V(e);
|
|
367
|
-
} finally {
|
|
368
|
-
ce(!1);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}, [d, G, R.length, l == null ? void 0 : l.name, n, V]);
|
|
372
|
-
me(() => () => {
|
|
373
|
-
f.current !== void 0 && N.setState({ currentProject: f.current });
|
|
374
|
-
}, [re]);
|
|
375
|
-
const ue = fe(() => Ne(te), [te]), he = fe(
|
|
376
|
-
() => r.filter((e) => !(C && !e.name.includes(C) && !e.productCode.includes(C) || b && e.groupCode !== b)),
|
|
377
|
-
[r, C, b]
|
|
378
|
-
), _e = h(
|
|
379
|
-
(e) => {
|
|
380
|
-
if (!e) return null;
|
|
381
|
-
const s = H.find((_) => _.groupCode === e);
|
|
382
|
-
return s ? s.name : e;
|
|
383
|
-
},
|
|
384
|
-
[H]
|
|
385
|
-
);
|
|
386
|
-
return /* @__PURE__ */ a("div", { className: t.container, children: we ? /* @__PURE__ */ i(je, { children: [
|
|
387
|
-
/* @__PURE__ */ i("aside", { className: t.left, children: [
|
|
388
|
-
/* @__PURE__ */ i("div", { className: t.leftHeader, children: [
|
|
389
|
-
/* @__PURE__ */ i("div", { className: t.leftTitleRow, children: [
|
|
390
|
-
/* @__PURE__ */ a("button", { type: "button", className: t.backBtn, onClick: Re, title: "返回产品库", children: "←" }),
|
|
391
|
-
/* @__PURE__ */ a("span", { className: t.leftTitle, title: (l == null ? void 0 : l.name) || d || "", children: (l == null ? void 0 : l.name) || d })
|
|
392
|
-
] }),
|
|
393
|
-
/* @__PURE__ */ i("div", { className: t.sectionBar, children: [
|
|
394
|
-
/* @__PURE__ */ i("span", { className: `${t.sectionTab} ${t.sectionTabActive}`, children: [
|
|
395
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "📦" }),
|
|
396
|
-
" 产品"
|
|
397
|
-
] }),
|
|
398
|
-
/* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: Pe, title: "进入研发工作台(z-lc)", children: [
|
|
399
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "💻" }),
|
|
400
|
-
" 研发"
|
|
401
|
-
] }),
|
|
402
|
-
/* @__PURE__ */ i("button", { type: "button", className: t.sectionTab, onClick: Se, title: "进入测试工作台(QA)", children: [
|
|
403
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "🧪" }),
|
|
404
|
-
" 测试"
|
|
405
|
-
] })
|
|
406
|
-
] })
|
|
407
|
-
] }),
|
|
408
|
-
/* @__PURE__ */ i("div", { className: t.leftBody, children: [
|
|
409
|
-
/* @__PURE__ */ a("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
|
|
410
|
-
ge ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(Q, { size: "small" }) }) : ue.length === 0 ? /* @__PURE__ */ a(m, { image: m.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ a("div", { className: t.fileList, children: ue.map((e) => /* @__PURE__ */ i(
|
|
411
|
-
"div",
|
|
412
|
-
{
|
|
413
|
-
className: `${t.fileRow} ${$ === e.path ? t.fileRowActive : ""}`,
|
|
414
|
-
style: { paddingLeft: 12 + e.depth * 16 },
|
|
415
|
-
onClick: () => !e.dir && qe(e.path),
|
|
416
|
-
children: [
|
|
417
|
-
/* @__PURE__ */ a("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
|
|
418
|
-
/* @__PURE__ */ a("span", { className: t.fileRowName, children: e.name }),
|
|
419
|
-
e.kind === "design" && /* @__PURE__ */ a(E, { className: t.fileKindTag, color: "blue", children: "设计稿" })
|
|
420
|
-
]
|
|
421
|
-
},
|
|
422
|
-
e.path
|
|
423
|
-
)) })
|
|
424
|
-
] })
|
|
425
|
-
] }),
|
|
426
|
-
/* @__PURE__ */ a("main", { className: t.center, children: $ == null ? /* @__PURE__ */ i("div", { className: t.overviewArea, children: [
|
|
427
|
-
/* @__PURE__ */ i("div", { className: t.overviewHeader, children: [
|
|
428
|
-
/* @__PURE__ */ a("h2", { className: t.overviewTitle, children: "产品总览" }),
|
|
429
|
-
/* @__PURE__ */ a("p", { className: t.overviewSubtitle, children: "「关于这个产品的一切」沉淀在这里:需求 · 应用群 · 领域资产 · 群聊" })
|
|
430
|
-
] }),
|
|
431
|
-
/* @__PURE__ */ i("div", { className: t.overviewTabs, children: [
|
|
432
|
-
/* @__PURE__ */ i(
|
|
433
|
-
"button",
|
|
434
|
-
{
|
|
435
|
-
type: "button",
|
|
436
|
-
className: `${t.overviewTab} ${M === "req" ? t.overviewTabActive : ""}`,
|
|
437
|
-
onClick: () => K("req"),
|
|
438
|
-
children: [
|
|
439
|
-
"需求(",
|
|
440
|
-
x.length,
|
|
441
|
-
")"
|
|
442
|
-
]
|
|
443
|
-
}
|
|
444
|
-
),
|
|
445
|
-
/* @__PURE__ */ i(
|
|
446
|
-
"button",
|
|
447
|
-
{
|
|
448
|
-
type: "button",
|
|
449
|
-
className: `${t.overviewTab} ${M === "apps" ? t.overviewTabActive : ""}`,
|
|
450
|
-
onClick: () => K("apps"),
|
|
451
|
-
children: [
|
|
452
|
-
"应用群(",
|
|
453
|
-
O.length,
|
|
454
|
-
")"
|
|
455
|
-
]
|
|
456
|
-
}
|
|
457
|
-
)
|
|
458
|
-
] }),
|
|
459
|
-
M === "req" ? /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
|
|
460
|
-
/* @__PURE__ */ i("div", { className: t.reqForm, children: [
|
|
461
|
-
/* @__PURE__ */ a(
|
|
462
|
-
g,
|
|
463
|
-
{
|
|
464
|
-
placeholder: "新增需求标题(针对本产品)",
|
|
465
|
-
value: A,
|
|
466
|
-
onChange: (e) => le(e.target.value),
|
|
467
|
-
onPressEnter: () => void pe(),
|
|
468
|
-
style: { flex: 1 }
|
|
469
|
-
}
|
|
470
|
-
),
|
|
471
|
-
/* @__PURE__ */ a(Y, { type: "primary", onClick: () => void pe(), disabled: !A.trim(), children: "添加需求" })
|
|
472
|
-
] }),
|
|
473
|
-
x.length === 0 ? /* @__PURE__ */ a(m, { image: m.PRESENTED_IMAGE_SIMPLE, description: "还没有需求,先落一条" }) : /* @__PURE__ */ a("div", { className: t.reqList, children: x.map((e) => /* @__PURE__ */ i("div", { className: t.reqRow, children: [
|
|
474
|
-
/* @__PURE__ */ a("span", { className: t.reqTitle, title: e.title, children: e.title }),
|
|
475
|
-
/* @__PURE__ */ a(E, { className: t.reqTag, color: e.priority === "P0" ? "red" : e.priority === "P1" ? "orange" : "blue", children: e.priority || "P2" }),
|
|
476
|
-
/* @__PURE__ */ a("span", { className: t.reqStatus, children: e.status || "OPEN" }),
|
|
477
|
-
/* @__PURE__ */ a("span", { className: t.reqTime, children: String(e.createdAt ?? "").slice(0, 10) })
|
|
478
|
-
] }, e.id)) })
|
|
479
|
-
] }) : /* @__PURE__ */ i("div", { className: t.overviewPanel, children: [
|
|
480
|
-
/* @__PURE__ */ i("div", { className: t.appForm, children: [
|
|
481
|
-
/* @__PURE__ */ a(
|
|
482
|
-
g,
|
|
483
|
-
{
|
|
484
|
-
placeholder: "应用编码(如 z-lc 应用 code)",
|
|
485
|
-
value: y.appCode,
|
|
486
|
-
onChange: (e) => k((s) => ({ ...s, appCode: e.target.value })),
|
|
487
|
-
style: { flex: 1 }
|
|
488
|
-
}
|
|
489
|
-
),
|
|
490
|
-
/* @__PURE__ */ a(
|
|
491
|
-
g,
|
|
492
|
-
{
|
|
493
|
-
placeholder: "应用名称",
|
|
494
|
-
value: y.appName,
|
|
495
|
-
onChange: (e) => k((s) => ({ ...s, appName: e.target.value })),
|
|
496
|
-
style: { width: 150 }
|
|
497
|
-
}
|
|
498
|
-
),
|
|
499
|
-
/* @__PURE__ */ i(
|
|
500
|
-
"select",
|
|
501
|
-
{
|
|
502
|
-
className: t.appTypeSelect,
|
|
503
|
-
value: y.appType,
|
|
504
|
-
onChange: (e) => k((s) => ({ ...s, appType: e.target.value })),
|
|
505
|
-
children: [
|
|
506
|
-
/* @__PURE__ */ a("option", { value: "APP", children: "应用" }),
|
|
507
|
-
/* @__PURE__ */ a("option", { value: "INFRA", children: "基建" })
|
|
508
|
-
]
|
|
509
|
-
}
|
|
510
|
-
),
|
|
511
|
-
/* @__PURE__ */ a(
|
|
512
|
-
Y,
|
|
513
|
-
{
|
|
514
|
-
type: "primary",
|
|
515
|
-
onClick: () => void Ge(),
|
|
516
|
-
disabled: !y.appCode.trim() || !y.appName.trim(),
|
|
517
|
-
children: "绑定"
|
|
518
|
-
}
|
|
519
|
-
)
|
|
520
|
-
] }),
|
|
521
|
-
O.length === 0 ? /* @__PURE__ */ a(m, { image: m.PRESENTED_IMAGE_SIMPLE, description: "还没有应用群,绑定支撑这个产品的应用/基建" }) : /* @__PURE__ */ a("div", { className: t.appList, children: O.map((e) => /* @__PURE__ */ i("div", { className: t.appRow, children: [
|
|
522
|
-
/* @__PURE__ */ a("span", { className: t.appIcon, children: e.appType === "INFRA" ? "🏗" : "🧩" }),
|
|
523
|
-
/* @__PURE__ */ a("span", { className: t.appName, title: e.appName, children: e.appName }),
|
|
524
|
-
/* @__PURE__ */ a("span", { className: t.appCode, children: e.appCode }),
|
|
525
|
-
/* @__PURE__ */ a(
|
|
526
|
-
E,
|
|
527
|
-
{
|
|
528
|
-
className: t.appTag,
|
|
529
|
-
color: e.appType === "INFRA" ? "purple" : "geekblue",
|
|
530
|
-
children: e.appType === "INFRA" ? "基建" : "应用"
|
|
531
|
-
}
|
|
532
|
-
),
|
|
533
|
-
e.appType === "APP" ? /* @__PURE__ */ a(
|
|
534
|
-
"button",
|
|
535
|
-
{
|
|
536
|
-
type: "button",
|
|
537
|
-
className: t.appGo,
|
|
538
|
-
onClick: () => {
|
|
539
|
-
const s = new URLSearchParams();
|
|
540
|
-
s.set("product", d || ""), l != null && l.name && s.set("productName", l.name), s.set("app", e.appCode), X.push(`/lc/apps?${s.toString()}`);
|
|
541
|
-
},
|
|
542
|
-
children: "去研发"
|
|
543
|
-
}
|
|
544
|
-
) : /* @__PURE__ */ a("span", { className: t.appInfraNote, children: "横切多产品" }),
|
|
545
|
-
/* @__PURE__ */ a(
|
|
546
|
-
"button",
|
|
547
|
-
{
|
|
548
|
-
type: "button",
|
|
549
|
-
className: t.appUnbind,
|
|
550
|
-
onClick: () => void Ie(e.id),
|
|
551
|
-
title: "解绑",
|
|
552
|
-
children: "✕"
|
|
553
|
-
}
|
|
554
|
-
)
|
|
555
|
-
] }, e.id)) })
|
|
556
|
-
] })
|
|
557
|
-
] }) : F == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(Q, {}) }) : /* @__PURE__ */ a("div", { className: t.renderArea, children: Te === "design" ? (
|
|
558
|
-
/* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
|
|
559
|
-
/* @__PURE__ */ a(
|
|
560
|
-
"iframe",
|
|
561
|
-
{
|
|
562
|
-
className: t.renderIframe,
|
|
563
|
-
srcDoc: F,
|
|
564
|
-
title: $,
|
|
565
|
-
sandbox: "allow-scripts allow-same-origin"
|
|
566
|
-
}
|
|
567
|
-
)
|
|
568
|
-
) : /* @__PURE__ */ a("pre", { className: t.renderCode, children: F || "(空文件)" }) }) }),
|
|
569
|
-
/* @__PURE__ */ a("aside", { className: t.right, children: Ae === "list" ? /* @__PURE__ */ i("div", { className: t.chatSide, children: [
|
|
570
|
-
/* @__PURE__ */ i("div", { className: t.chatSideHeader, children: [
|
|
571
|
-
/* @__PURE__ */ i("span", { className: t.chatSideTitle, children: [
|
|
572
|
-
/* @__PURE__ */ a(Le, {}),
|
|
573
|
-
" 聊天组"
|
|
574
|
-
] }),
|
|
575
|
-
/* @__PURE__ */ i(
|
|
576
|
-
Y,
|
|
577
|
-
{
|
|
578
|
-
size: "small",
|
|
579
|
-
type: "primary",
|
|
580
|
-
ghost: !0,
|
|
581
|
-
loading: G,
|
|
582
|
-
onClick: Ee,
|
|
583
|
-
children: [
|
|
584
|
-
/* @__PURE__ */ a(He, {}),
|
|
585
|
-
" 发起聊天"
|
|
586
|
-
]
|
|
587
|
-
}
|
|
588
|
-
)
|
|
589
|
-
] }),
|
|
590
|
-
/* @__PURE__ */ a("div", { className: t.chatGroupList, children: R.length === 0 ? /* @__PURE__ */ a(m, { image: m.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : R.map((e) => /* @__PURE__ */ i(
|
|
591
|
-
"div",
|
|
592
|
-
{
|
|
593
|
-
className: `${t.chatGroupRow} ${re === e.id ? t.chatGroupRowActive : ""}`,
|
|
594
|
-
onClick: () => !G && V(e),
|
|
595
|
-
children: [
|
|
596
|
-
/* @__PURE__ */ a("span", { className: t.chatGroupName, title: e.name, children: e.name }),
|
|
597
|
-
/* @__PURE__ */ a("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
|
|
598
|
-
]
|
|
599
|
-
},
|
|
600
|
-
e.id
|
|
601
|
-
)) })
|
|
602
|
-
] }) : /* @__PURE__ */ i("div", { className: t.chatPane, children: [
|
|
603
|
-
/* @__PURE__ */ i("div", { className: t.chatPaneHeader, children: [
|
|
604
|
-
/* @__PURE__ */ a(
|
|
605
|
-
"button",
|
|
606
|
-
{
|
|
607
|
-
type: "button",
|
|
608
|
-
className: t.backBtn,
|
|
609
|
-
onClick: () => {
|
|
610
|
-
I("list"), f.current !== void 0 && N.setState({ currentProject: f.current }), f.current = void 0;
|
|
611
|
-
},
|
|
612
|
-
title: "返回聊天组列表",
|
|
613
|
-
children: "←"
|
|
614
|
-
}
|
|
615
|
-
),
|
|
616
|
-
/* @__PURE__ */ i("span", { className: t.chatPaneTitle, children: [
|
|
617
|
-
"群聊 · ",
|
|
618
|
-
(l == null ? void 0 : l.name) || d
|
|
619
|
-
] })
|
|
620
|
-
] }),
|
|
621
|
-
/* @__PURE__ */ a("div", { className: t.chatPaneBody, children: /* @__PURE__ */ a(Ue, { hideTabs: !0 }) })
|
|
622
|
-
] }) })
|
|
623
|
-
] }) : (
|
|
624
|
-
/* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
|
|
625
|
-
/* @__PURE__ */ i("div", { className: t.libraryView, children: [
|
|
626
|
-
/* @__PURE__ */ i("div", { className: t.libraryHeader, children: [
|
|
627
|
-
/* @__PURE__ */ i("div", { children: [
|
|
628
|
-
/* @__PURE__ */ a("h2", { className: t.libraryTitle, children: "产品库" }),
|
|
629
|
-
/* @__PURE__ */ a("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊 · 应用群" }),
|
|
630
|
-
/* @__PURE__ */ i("div", { className: t.groupChips, children: [
|
|
631
|
-
/* @__PURE__ */ a(
|
|
632
|
-
"button",
|
|
633
|
-
{
|
|
634
|
-
type: "button",
|
|
635
|
-
className: `${t.groupChip} ${b === null ? t.groupChipActive : ""}`,
|
|
636
|
-
onClick: () => oe(null),
|
|
637
|
-
children: "全部"
|
|
638
|
-
}
|
|
639
|
-
),
|
|
640
|
-
H.map((e) => /* @__PURE__ */ a(
|
|
641
|
-
"button",
|
|
642
|
-
{
|
|
643
|
-
type: "button",
|
|
644
|
-
className: `${t.groupChip} ${b === e.groupCode ? t.groupChipActive : ""}`,
|
|
645
|
-
onClick: () => oe(e.groupCode),
|
|
646
|
-
title: e.description || e.name,
|
|
647
|
-
children: e.name
|
|
648
|
-
},
|
|
649
|
-
e.groupCode
|
|
650
|
-
)),
|
|
651
|
-
/* @__PURE__ */ i("span", { className: t.groupNewHint, children: [
|
|
652
|
-
/* @__PURE__ */ a(
|
|
653
|
-
g,
|
|
654
|
-
{
|
|
655
|
-
size: "small",
|
|
656
|
-
placeholder: "新群码",
|
|
657
|
-
value: w.groupCode,
|
|
658
|
-
onChange: (e) => J((s) => ({ ...s, groupCode: e.target.value })),
|
|
659
|
-
style: { width: 96 }
|
|
660
|
-
}
|
|
661
|
-
),
|
|
662
|
-
/* @__PURE__ */ a(
|
|
663
|
-
g,
|
|
664
|
-
{
|
|
665
|
-
size: "small",
|
|
666
|
-
placeholder: "群名",
|
|
667
|
-
value: w.name,
|
|
668
|
-
onChange: (e) => J((s) => ({ ...s, name: e.target.value })),
|
|
669
|
-
style: { width: 110 }
|
|
670
|
-
}
|
|
671
|
-
),
|
|
672
|
-
/* @__PURE__ */ a(
|
|
673
|
-
"button",
|
|
674
|
-
{
|
|
675
|
-
type: "button",
|
|
676
|
-
className: t.groupAddBtn,
|
|
677
|
-
onClick: () => void ke(),
|
|
678
|
-
title: "新建产品群",
|
|
679
|
-
children: "+"
|
|
680
|
-
}
|
|
681
|
-
)
|
|
682
|
-
] })
|
|
683
|
-
] })
|
|
684
|
-
] }),
|
|
685
|
-
/* @__PURE__ */ a(
|
|
686
|
-
g,
|
|
687
|
-
{
|
|
688
|
-
prefix: /* @__PURE__ */ a(Fe, {}),
|
|
689
|
-
placeholder: "搜索产品",
|
|
690
|
-
value: C,
|
|
691
|
-
onChange: (e) => be(e.target.value),
|
|
692
|
-
allowClear: !0,
|
|
693
|
-
className: t.librarySearch
|
|
694
|
-
}
|
|
695
|
-
)
|
|
696
|
-
] }),
|
|
697
|
-
/* @__PURE__ */ a("div", { className: t.libraryBody, children: u ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(Q, {}) }) : he.length === 0 ? /* @__PURE__ */ a(m, { image: m.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ a("div", { className: t.productGrid, children: he.map((e) => /* @__PURE__ */ i(
|
|
698
|
-
"button",
|
|
699
|
-
{
|
|
700
|
-
type: "button",
|
|
701
|
-
className: t.productCard,
|
|
702
|
-
onClick: () => void z(e.productCode),
|
|
703
|
-
children: [
|
|
704
|
-
/* @__PURE__ */ a("span", { className: t.cardCode, children: e.productCode }),
|
|
705
|
-
/* @__PURE__ */ a("span", { className: t.cardName, title: e.name, children: e.name }),
|
|
706
|
-
/* @__PURE__ */ a("span", { className: t.cardDesc, children: e.description || "暂无产品描述" }),
|
|
707
|
-
/* @__PURE__ */ i("span", { className: t.cardFoot, children: [
|
|
708
|
-
/* @__PURE__ */ i("span", { className: t.cardEnter, children: [
|
|
709
|
-
"进入产品 ",
|
|
710
|
-
/* @__PURE__ */ a(Be, {})
|
|
711
|
-
] }),
|
|
712
|
-
_e(e.groupCode) && /* @__PURE__ */ a("span", { className: t.cardGroup, children: _e(e.groupCode) }),
|
|
713
|
-
e.status && /* @__PURE__ */ a(E, { className: t.cardTag, children: e.status })
|
|
714
|
-
] })
|
|
715
|
-
]
|
|
716
|
-
},
|
|
717
|
-
e.productCode
|
|
718
|
-
)) }) })
|
|
719
|
-
] })
|
|
720
|
-
) });
|
|
721
|
-
}
|
|
722
|
-
export {
|
|
723
|
-
Ua as default
|
|
724
|
-
};
|