@glodon-aiot/dataset-annotation 3.10.0-alpha.18 → 3.10.0-alpha.19
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.
|
@@ -2,38 +2,38 @@ var Ee = Object.defineProperty, Pe = Object.defineProperties;
|
|
|
2
2
|
var Ue = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ae = Object.getOwnPropertySymbols;
|
|
4
4
|
var Fe = Object.prototype.hasOwnProperty, He = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var de = (
|
|
6
|
-
for (var r in
|
|
7
|
-
Fe.call(
|
|
5
|
+
var de = (f, n, r) => n in f ? Ee(f, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : f[n] = r, d = (f, n) => {
|
|
6
|
+
for (var r in n || (n = {}))
|
|
7
|
+
Fe.call(n, r) && de(f, r, n[r]);
|
|
8
8
|
if (ae)
|
|
9
|
-
for (var r of ae(
|
|
10
|
-
He.call(
|
|
11
|
-
return
|
|
12
|
-
}, g = (
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { useState as s, useRef as Ze, useEffect as
|
|
15
|
-
import { message as
|
|
9
|
+
for (var r of ae(n))
|
|
10
|
+
He.call(n, r) && de(f, r, n[r]);
|
|
11
|
+
return f;
|
|
12
|
+
}, g = (f, n) => Pe(f, Ue(n));
|
|
13
|
+
import { jsx as o, jsxs as k, Fragment as Ke } from "react/jsx-runtime";
|
|
14
|
+
import { useState as s, useRef as Ze, useEffect as u } from "react";
|
|
15
|
+
import { message as W, ConfigProvider as $e, Space as A, Select as je, Button as _, Tabs as We, Col as _e, Empty as qe } from "antd";
|
|
16
16
|
import Oe from "antd/es/locale/zh_CN";
|
|
17
17
|
import "./style.less.mjs";
|
|
18
18
|
import Ge from "./VlmModal/index.mjs";
|
|
19
19
|
import Je from "./MarkVLMBoxModal/index.mjs";
|
|
20
20
|
import Qe from "lodash/merge";
|
|
21
|
-
import { UploadZipsStatus as
|
|
21
|
+
import { UploadZipsStatus as D } from "@glodon-aiot/apis";
|
|
22
22
|
import Xe from "rc-virtual-list";
|
|
23
23
|
import Ye from "../../Common/Page/index.mjs";
|
|
24
24
|
import et from "../Thumbnail/index.mjs";
|
|
25
25
|
import tt from "../../DatasetContext/index.mjs";
|
|
26
26
|
import { DEFAULT_FILTER_SWITCH as rt } from "../../constant.mjs";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { Prompt as
|
|
30
|
-
import
|
|
31
|
-
const
|
|
32
|
-
var
|
|
27
|
+
import ot from "../PageNav/index.mjs";
|
|
28
|
+
import nt from "../PicZipImportModal/index.mjs";
|
|
29
|
+
import { Prompt as lt } from "../hooks/Prompt.mjs";
|
|
30
|
+
import it from "../DetectionAnnotation/icon_item_empty.svg.mjs";
|
|
31
|
+
const xt = (f) => {
|
|
32
|
+
var ie;
|
|
33
33
|
const {
|
|
34
|
-
services:
|
|
34
|
+
services: n,
|
|
35
35
|
datasetId: r,
|
|
36
|
-
versionId:
|
|
36
|
+
versionId: x,
|
|
37
37
|
backTo: ue,
|
|
38
38
|
labelManager: fe = !1,
|
|
39
39
|
datasetManager: b = !1,
|
|
@@ -44,76 +44,76 @@ const Dt = (m) => {
|
|
|
44
44
|
exampleSrcRoot: he,
|
|
45
45
|
apiUrl: pe,
|
|
46
46
|
token: ge
|
|
47
|
-
} =
|
|
47
|
+
} = f, [c, B] = s(), [t, T] = s(), [L, q] = s([]), [O, N] = s(!1), [E, P] = s(!1), [U, G] = s(0), [h, ve] = s([]), [w, y] = s(), [be, J] = s(), [Q, M] = s(-1), [l, C] = s({
|
|
48
48
|
current: 0,
|
|
49
49
|
pageSize: 100
|
|
50
|
-
}), [
|
|
51
|
-
Qe(
|
|
50
|
+
}), [X, Y] = s(0), [F, Se] = s(""), [ee, H] = s(!1), [S, Ie] = s(""), [ke, ye] = s(), [Ce, Ve] = s(), [te, K] = s(!1), [re, De] = s(!1), [oe, xe] = s(!0), [Te, Me] = s(!1), z = Ze(null), Z = d({}, rt);
|
|
51
|
+
Qe(Z, f.filterSwitch);
|
|
52
52
|
const Le = () => {
|
|
53
|
-
|
|
53
|
+
J(void 0), H(!0);
|
|
54
54
|
}, Ne = (e) => {
|
|
55
55
|
if (!h)
|
|
56
56
|
return;
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
y(
|
|
57
|
+
M(e);
|
|
58
|
+
const i = h[e];
|
|
59
|
+
y(i), P(!0);
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
r &&
|
|
61
|
+
u(() => {
|
|
62
|
+
n.cvforceDatahub && n.cvforceDatahub.getOptionsImgproxy().then((e) => ye(e));
|
|
63
|
+
}, [n.cvforceDatahub]), u(() => {
|
|
64
|
+
r && n.cvforceDatahub.getS3Iam(r).then((e) => {
|
|
65
65
|
Ve(e);
|
|
66
66
|
});
|
|
67
|
-
}, [r]),
|
|
68
|
-
!r || t || (
|
|
67
|
+
}, [r]), u(() => {
|
|
68
|
+
!r || t || (N(!0), Promise.all([
|
|
69
69
|
// 数据集
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
n.cvforceDatahub.getDatasetsId(r).then((e) => {
|
|
71
|
+
B(e);
|
|
72
72
|
}),
|
|
73
73
|
// 版本列表
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
|
|
75
|
+
q(e.recordList), T(x ? e.recordList.find((i) => i.id === x) : e.recordList[0]);
|
|
76
76
|
})
|
|
77
|
-
]).finally(() =>
|
|
78
|
-
}, [r, t == null ? void 0 : t.id]),
|
|
79
|
-
r && (
|
|
77
|
+
]).finally(() => N(!1)));
|
|
78
|
+
}, [r, t == null ? void 0 : t.id]), u(() => {
|
|
79
|
+
r && (N(!0), Promise.all([
|
|
80
80
|
// 数据集
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
n.cvforceDatahub.getDatasetsId(r).then((e) => {
|
|
82
|
+
B(e);
|
|
83
83
|
}),
|
|
84
84
|
// 版本列表
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
|
|
86
|
+
q(e.recordList), T(x ? e.recordList.find((i) => i.id === x) : e.recordList[0]);
|
|
87
87
|
})
|
|
88
|
-
]).finally(() =>
|
|
89
|
-
}, [r,
|
|
90
|
-
r &&
|
|
91
|
-
|
|
88
|
+
]).finally(() => N(!1)));
|
|
89
|
+
}, [r, x]), u(() => {
|
|
90
|
+
r && n.cvforceDatahub.getDatasetsId(r).then((e) => {
|
|
91
|
+
B(e);
|
|
92
92
|
});
|
|
93
93
|
}, []);
|
|
94
|
-
const
|
|
95
|
-
!r || !t ||
|
|
94
|
+
const ne = () => {
|
|
95
|
+
!r || !t || n.cvforceDatahub.getDatasetsIdVersionsVid(r, t.id).then((e) => {
|
|
96
96
|
Ie(e.versionAsyncTask.state);
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, [r, t == null ? void 0 : t.id]),
|
|
102
|
-
S !==
|
|
103
|
-
}, [S]),
|
|
104
|
-
Me(!
|
|
105
|
-
}, [
|
|
99
|
+
u(() => {
|
|
100
|
+
ne();
|
|
101
|
+
}, [r, t == null ? void 0 : t.id]), u(() => {
|
|
102
|
+
S !== D.Pending && S !== D.Started || W.warning("文件导入中,请刷新页面再试");
|
|
103
|
+
}, [S]), u(() => {
|
|
104
|
+
Me(!oe && re);
|
|
105
|
+
}, [oe, re]);
|
|
106
106
|
const V = () => {
|
|
107
|
-
!r || !t ||
|
|
108
|
-
const
|
|
109
|
-
|
|
107
|
+
!r || !t || n.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(r, t.id).then((e) => {
|
|
108
|
+
const i = e.find((p) => p.id === "allcodeid"), m = e.find((p) => p.id === "nocodeid");
|
|
109
|
+
G(i ? i.count : 0), Y(m ? m.count : 0);
|
|
110
110
|
});
|
|
111
|
-
}, I = (e,
|
|
112
|
-
const
|
|
113
|
-
if (!r || !t || !
|
|
111
|
+
}, I = (e, i) => {
|
|
112
|
+
const m = (e == null ? void 0 : e.current) || l.current, p = (e == null ? void 0 : e.pageSize) || l.pageSize, $ = (e == null ? void 0 : e.type) || l.type, j = i || h || [];
|
|
113
|
+
if (!r || !t || !m)
|
|
114
114
|
return Promise.resolve(!1);
|
|
115
115
|
const Be = () => {
|
|
116
|
-
switch (
|
|
116
|
+
switch (F) {
|
|
117
117
|
case "nocode":
|
|
118
118
|
return "nocode";
|
|
119
119
|
case "hascode":
|
|
@@ -122,127 +122,126 @@ const Dt = (m) => {
|
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
return
|
|
126
|
-
current:
|
|
125
|
+
return m === 1 && le(), C(g(d({}, l), {
|
|
126
|
+
current: m,
|
|
127
127
|
pageSize: p
|
|
128
|
-
})),
|
|
129
|
-
pageNo:
|
|
128
|
+
})), n.cvforceDatahub.getDatasetsIdVersionsVidSamples(r, t.id, {
|
|
129
|
+
pageNo: m,
|
|
130
130
|
pageSize: p,
|
|
131
131
|
labels: Be()
|
|
132
132
|
}).then((se) => {
|
|
133
|
-
const v = se.recordList || [], ce =
|
|
134
|
-
if (ve(ce), C(g(
|
|
135
|
-
current:
|
|
133
|
+
const v = se.recordList || [], ce = m === 1 ? v : $ === "prev" ? [...v, ...j] : [...j, ...v];
|
|
134
|
+
if (ve(ce), C(g(d({}, l), {
|
|
135
|
+
current: m,
|
|
136
136
|
pageSize: p,
|
|
137
137
|
type: void 0,
|
|
138
138
|
total: se.totalResults
|
|
139
|
-
})),
|
|
140
|
-
const
|
|
141
|
-
|
|
139
|
+
})), $ === "next" && v.length) {
|
|
140
|
+
const R = j.length;
|
|
141
|
+
M(R), y(v[0]);
|
|
142
142
|
}
|
|
143
|
-
if (
|
|
144
|
-
const
|
|
145
|
-
|
|
143
|
+
if ($ === "prev" && v.length) {
|
|
144
|
+
const R = v.length - 1;
|
|
145
|
+
M(R), y(v[R]);
|
|
146
146
|
}
|
|
147
147
|
return ce;
|
|
148
148
|
}).catch(() => !1);
|
|
149
149
|
};
|
|
150
|
-
|
|
151
|
-
!t || !c || (I(g(
|
|
150
|
+
u(() => {
|
|
151
|
+
!t || !c || (I(g(d({}, l), {
|
|
152
152
|
current: 1
|
|
153
153
|
})).then((e) => {
|
|
154
154
|
}), V());
|
|
155
|
-
}, [c == null ? void 0 : c.id, t == null ? void 0 : t.id]),
|
|
155
|
+
}, [c == null ? void 0 : c.id, t == null ? void 0 : t.id]), u(() => {
|
|
156
156
|
I().then((e) => {
|
|
157
157
|
}), V();
|
|
158
|
-
}, [
|
|
159
|
-
I(g(
|
|
158
|
+
}, [l.current]), u(() => {
|
|
159
|
+
I(g(d({}, l), {
|
|
160
160
|
current: 1,
|
|
161
161
|
total: void 0
|
|
162
162
|
})).then((e) => {
|
|
163
163
|
});
|
|
164
|
-
}, [
|
|
164
|
+
}, [F]);
|
|
165
165
|
const we = () => {
|
|
166
166
|
if (!h)
|
|
167
167
|
return;
|
|
168
|
-
const e =
|
|
169
|
-
if (e >= h.length)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
pageSize: o.pageSize,
|
|
168
|
+
const e = Q + 1;
|
|
169
|
+
if (e >= h.length)
|
|
170
|
+
l.total && e >= l.total ? W.error("已经是最后一个了") : C({
|
|
171
|
+
current: l.current + 1,
|
|
172
|
+
pageSize: l.pageSize,
|
|
174
173
|
type: "next"
|
|
175
174
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
y(
|
|
175
|
+
else {
|
|
176
|
+
M(e);
|
|
177
|
+
const i = h[e];
|
|
178
|
+
y(i);
|
|
180
179
|
}
|
|
181
180
|
}, ze = () => {
|
|
182
181
|
if (!h)
|
|
183
182
|
return;
|
|
184
|
-
const e =
|
|
183
|
+
const e = Q - 1;
|
|
185
184
|
if (e < 0)
|
|
186
|
-
|
|
187
|
-
current:
|
|
188
|
-
pageSize:
|
|
185
|
+
e < 0 ? W.error("已经是第一个了") : C({
|
|
186
|
+
current: l.current - 1,
|
|
187
|
+
pageSize: l.pageSize,
|
|
189
188
|
type: "prev"
|
|
190
189
|
});
|
|
191
190
|
else {
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
y(
|
|
191
|
+
M(e);
|
|
192
|
+
const i = h[e];
|
|
193
|
+
y(i);
|
|
195
194
|
}
|
|
196
195
|
}, Re = [{
|
|
197
196
|
key: "",
|
|
198
|
-
label: `全部(${
|
|
197
|
+
label: `全部(${U})`,
|
|
199
198
|
children: null
|
|
200
199
|
}, {
|
|
201
200
|
key: "nocode",
|
|
202
|
-
label: `未标注(${
|
|
201
|
+
label: `未标注(${X})`,
|
|
203
202
|
children: null
|
|
204
203
|
}, {
|
|
205
204
|
key: "hascode",
|
|
206
|
-
label: `已标注(${
|
|
205
|
+
label: `已标注(${U - X})`,
|
|
207
206
|
children: null
|
|
208
207
|
}];
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}, [
|
|
208
|
+
u(() => {
|
|
209
|
+
E || y(void 0);
|
|
210
|
+
}, [E]), u(() => {
|
|
212
211
|
c && c.markType !== "vlm" && console.error(`当前数据集不是vlm类型,请检查数据集类型。
|
|
213
212
|
请检查markType是否为vlm。`);
|
|
214
213
|
}, [c]);
|
|
215
|
-
const
|
|
216
|
-
var e,
|
|
217
|
-
(
|
|
214
|
+
const le = () => {
|
|
215
|
+
var e, i;
|
|
216
|
+
(i = (e = z.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || i.scrollTo({
|
|
218
217
|
top: 0
|
|
219
218
|
});
|
|
220
219
|
}, Ae = (e) => {
|
|
221
|
-
var
|
|
222
|
-
(!
|
|
223
|
-
current:
|
|
220
|
+
var i;
|
|
221
|
+
(!l.total || l.total > h.length) && e.currentTarget.scrollHeight - e.currentTarget.scrollTop === ((i = z.current) == null ? void 0 : i.clientHeight) && C(g(d({}, l), {
|
|
222
|
+
current: l.current + 1
|
|
224
223
|
}));
|
|
225
224
|
};
|
|
226
|
-
return /* @__PURE__ */
|
|
225
|
+
return /* @__PURE__ */ o($e, {
|
|
227
226
|
locale: Oe,
|
|
228
|
-
children: /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ o(tt.Provider, {
|
|
229
228
|
value: {
|
|
230
229
|
datasetId: r,
|
|
231
230
|
versionId: (t == null ? void 0 : t.id) || "",
|
|
232
231
|
no: (t == null ? void 0 : t.no) || "",
|
|
233
|
-
loading:
|
|
232
|
+
loading: O,
|
|
234
233
|
version: t,
|
|
235
|
-
versions:
|
|
234
|
+
versions: L,
|
|
236
235
|
samples: h,
|
|
237
|
-
pagination:
|
|
238
|
-
services:
|
|
236
|
+
pagination: l,
|
|
237
|
+
services: n,
|
|
239
238
|
token: ge,
|
|
240
239
|
apiUrl: pe,
|
|
241
240
|
featuresConfig: {
|
|
242
241
|
labelManager: fe,
|
|
243
242
|
datasetManager: b,
|
|
244
243
|
annotation: me,
|
|
245
|
-
filterSwitch:
|
|
244
|
+
filterSwitch: Z,
|
|
246
245
|
header: a,
|
|
247
246
|
exampleSrcRoot: he
|
|
248
247
|
}
|
|
@@ -251,90 +250,90 @@ const Dt = (m) => {
|
|
|
251
250
|
className: "vlm-version-detail",
|
|
252
251
|
children: [/* @__PURE__ */ k(Ye, {
|
|
253
252
|
className: "product-details-page",
|
|
254
|
-
header: a === !1 ? void 0 : /* @__PURE__ */
|
|
253
|
+
header: a === !1 ? void 0 : /* @__PURE__ */ o(ot, {
|
|
255
254
|
backTo: ue,
|
|
256
255
|
onBackClick: a != null && a.onBackClick ? () => {
|
|
257
256
|
a.onBackClick && a.onBackClick();
|
|
258
257
|
} : void 0,
|
|
259
|
-
left: !
|
|
260
|
-
children: [/* @__PURE__ */
|
|
258
|
+
left: !O && /* @__PURE__ */ k(A, {
|
|
259
|
+
children: [/* @__PURE__ */ o("span", {
|
|
261
260
|
style: {
|
|
262
261
|
fontWeight: "bold"
|
|
263
262
|
},
|
|
264
263
|
children: c == null ? void 0 : c.name
|
|
265
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ o(je, {
|
|
266
265
|
disabled: (a == null ? void 0 : a.versionSelect) === !1,
|
|
267
266
|
value: t == null ? void 0 : t.id,
|
|
268
267
|
style: {
|
|
269
268
|
width: 70
|
|
270
269
|
},
|
|
271
|
-
options:
|
|
270
|
+
options: L.map((e) => ({
|
|
272
271
|
label: e.no,
|
|
273
272
|
value: e.id
|
|
274
273
|
})),
|
|
275
274
|
onChange: (e) => {
|
|
276
|
-
const
|
|
277
|
-
if (!c || !
|
|
275
|
+
const i = L.find((p) => p.id === e);
|
|
276
|
+
if (!c || !i)
|
|
278
277
|
return;
|
|
279
|
-
const
|
|
280
|
-
T(
|
|
278
|
+
const m = L.find((p) => p.id === i.id);
|
|
279
|
+
T(m), a != null && a.onVersionChange && a.onVersionChange(m);
|
|
281
280
|
}
|
|
282
281
|
})]
|
|
283
282
|
}),
|
|
284
|
-
right: /* @__PURE__ */ k(
|
|
285
|
-
children: [!
|
|
283
|
+
right: /* @__PURE__ */ k(A, {
|
|
284
|
+
children: [!w && b && b.add && // <DisabledTooltip
|
|
286
285
|
// isPreLabel={false}
|
|
287
286
|
// placement="bottom"
|
|
288
287
|
// >
|
|
289
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ o(_, {
|
|
290
289
|
type: "default",
|
|
291
|
-
onClick: () =>
|
|
292
|
-
disabled: S ===
|
|
290
|
+
onClick: () => K(!0),
|
|
291
|
+
disabled: S === D.Pending || S === D.Started,
|
|
293
292
|
children: "导入数据"
|
|
294
|
-
}, "del"), /* @__PURE__ */
|
|
293
|
+
}, "del"), /* @__PURE__ */ o(lt, {
|
|
295
294
|
when: Te,
|
|
296
295
|
content: "确认要离开此页面吗?",
|
|
297
296
|
subContent: "离开此页面后,将结束导入,放弃未上传的文件,请谨慎操作!"
|
|
298
|
-
}), te && /* @__PURE__ */
|
|
297
|
+
}), te && /* @__PURE__ */ o(nt, {
|
|
299
298
|
datasetIam: Ce,
|
|
300
299
|
datasetId: r,
|
|
301
300
|
currentVersion: t,
|
|
302
301
|
tenCode: c == null ? void 0 : c.tenantCode,
|
|
303
302
|
markType: c.markType,
|
|
304
303
|
isVisible: te,
|
|
305
|
-
setIsVisible:
|
|
304
|
+
setIsVisible: K,
|
|
306
305
|
getVersionListRequest: V,
|
|
307
|
-
setIsConfirm:
|
|
306
|
+
setIsConfirm: xe,
|
|
308
307
|
onUploadStatusChange: (e) => {
|
|
309
|
-
|
|
308
|
+
De(e);
|
|
310
309
|
},
|
|
311
310
|
tableReload: () => {
|
|
312
|
-
t != null && t.id && (
|
|
311
|
+
t != null && t.id && (le(), I(g(d({}, l), {
|
|
313
312
|
current: 1
|
|
314
313
|
})));
|
|
315
314
|
},
|
|
316
|
-
loadVersionData:
|
|
315
|
+
loadVersionData: ne
|
|
317
316
|
})]
|
|
318
317
|
})
|
|
319
318
|
}),
|
|
320
319
|
children: [/* @__PURE__ */ k("div", {
|
|
321
320
|
className: "vlm-header",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
323
|
-
children:
|
|
321
|
+
children: [/* @__PURE__ */ o(A, {
|
|
322
|
+
children: Z.tabs && /* @__PURE__ */ o(We, {
|
|
324
323
|
className: "header-tab",
|
|
325
324
|
defaultActiveKey: "",
|
|
326
325
|
onChange: (e) => {
|
|
327
|
-
C(g(
|
|
326
|
+
C(g(d({}, l), {
|
|
328
327
|
current: 1
|
|
329
328
|
// total: 0,
|
|
330
329
|
})), Se(e);
|
|
331
330
|
},
|
|
332
331
|
items: Re
|
|
333
332
|
})
|
|
334
|
-
}), /* @__PURE__ */
|
|
335
|
-
children: b && b.label && /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ o(A, {
|
|
334
|
+
children: b && b.label && /* @__PURE__ */ o(_, {
|
|
336
335
|
type: "primary",
|
|
337
|
-
disabled: !
|
|
336
|
+
disabled: !U,
|
|
338
337
|
onClick: Le,
|
|
339
338
|
style: {
|
|
340
339
|
marginRight: "10px"
|
|
@@ -342,28 +341,28 @@ const Dt = (m) => {
|
|
|
342
341
|
children: "标注"
|
|
343
342
|
})
|
|
344
343
|
})]
|
|
345
|
-
}), /* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ o("div", {
|
|
346
345
|
className: "d-row",
|
|
347
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ o("div", {
|
|
348
347
|
className: "d-right",
|
|
349
|
-
ref:
|
|
350
|
-
children:
|
|
351
|
-
children: /* @__PURE__ */
|
|
348
|
+
ref: z,
|
|
349
|
+
children: w ? /* @__PURE__ */ o("div", {}) : l.total !== void 0 && l.total > 0 ? /* @__PURE__ */ o(Ke, {
|
|
350
|
+
children: /* @__PURE__ */ o(Xe, {
|
|
352
351
|
innerProps: {
|
|
353
352
|
className: "d-right-row"
|
|
354
353
|
},
|
|
355
354
|
data: h,
|
|
356
355
|
itemKey: "id",
|
|
357
|
-
height: (
|
|
356
|
+
height: (ie = z.current) == null ? void 0 : ie.clientHeight,
|
|
358
357
|
onScroll: Ae,
|
|
359
|
-
children: (e,
|
|
358
|
+
children: (e, i) => /* @__PURE__ */ o(_e, {
|
|
360
359
|
className: "d-right-col",
|
|
361
|
-
onClick: () => Ne(
|
|
362
|
-
children: /* @__PURE__ */
|
|
360
|
+
onClick: () => Ne(i),
|
|
361
|
+
children: /* @__PURE__ */ o("div", {
|
|
363
362
|
className: "right-col-wrapper",
|
|
364
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ o("div", {
|
|
365
364
|
className: "right-col-img",
|
|
366
|
-
children: /* @__PURE__ */
|
|
365
|
+
children: /* @__PURE__ */ o(et, {
|
|
367
366
|
fileKey: e.fileKey,
|
|
368
367
|
width: 124,
|
|
369
368
|
imgProxy: ke
|
|
@@ -372,21 +371,21 @@ const Dt = (m) => {
|
|
|
372
371
|
})
|
|
373
372
|
}, e.id)
|
|
374
373
|
})
|
|
375
|
-
}) : /* @__PURE__ */
|
|
374
|
+
}) : /* @__PURE__ */ o("div", {
|
|
376
375
|
className: "empty",
|
|
377
|
-
children:
|
|
378
|
-
image:
|
|
376
|
+
children: l.total === 0 ? /* @__PURE__ */ o(qe, {
|
|
377
|
+
image: it,
|
|
379
378
|
description: /* @__PURE__ */ k("span", {
|
|
380
|
-
children: ["暂无数据",
|
|
381
|
-
children: b && b.add && /* @__PURE__ */ k(
|
|
379
|
+
children: ["暂无数据", F !== "hascode" && /* @__PURE__ */ o("span", {
|
|
380
|
+
children: b && b.add && /* @__PURE__ */ k(_, {
|
|
382
381
|
type: "link",
|
|
383
382
|
size: "small",
|
|
384
383
|
style: {
|
|
385
384
|
padding: 0
|
|
386
385
|
},
|
|
387
|
-
onClick: () =>
|
|
388
|
-
disabled: S ===
|
|
389
|
-
children: [/* @__PURE__ */
|
|
386
|
+
onClick: () => K(!0),
|
|
387
|
+
disabled: S === D.Pending || S === D.Started,
|
|
388
|
+
children: [/* @__PURE__ */ o("span", {
|
|
390
389
|
style: {
|
|
391
390
|
color: "black"
|
|
392
391
|
},
|
|
@@ -399,42 +398,42 @@ const Dt = (m) => {
|
|
|
399
398
|
})
|
|
400
399
|
})
|
|
401
400
|
})]
|
|
402
|
-
}),
|
|
403
|
-
isVlmModalVisible:
|
|
404
|
-
setIsVlmModalVisible:
|
|
405
|
-
record:
|
|
401
|
+
}), w && /* @__PURE__ */ o(Ge, {
|
|
402
|
+
isVlmModalVisible: E,
|
|
403
|
+
setIsVlmModalVisible: P,
|
|
404
|
+
record: w,
|
|
406
405
|
onNextClick: () => we(),
|
|
407
406
|
onPrevClick: () => ze(),
|
|
408
407
|
ocrMarkTmpl: c == null ? void 0 : c.ocrMarkTmpl,
|
|
409
408
|
datasetId: r,
|
|
410
409
|
versionId: t == null ? void 0 : t.id,
|
|
411
410
|
handleMarkClick: (e) => {
|
|
412
|
-
|
|
411
|
+
J(e), P(!1), H(!0);
|
|
413
412
|
},
|
|
414
413
|
updateSampleList: () => {
|
|
415
|
-
I(g(
|
|
414
|
+
I(g(d({}, l), {
|
|
416
415
|
current: 1
|
|
417
416
|
})), V();
|
|
418
417
|
}
|
|
419
|
-
}), ee && (t == null ? void 0 : t.id) && /* @__PURE__ */
|
|
418
|
+
}), ee && (t == null ? void 0 : t.id) && /* @__PURE__ */ o(Je, {
|
|
420
419
|
visible: ee,
|
|
421
420
|
selectSampleId: be,
|
|
422
421
|
datasetId: r,
|
|
423
422
|
versionId: t.id,
|
|
424
423
|
onClose: () => {
|
|
425
|
-
I(g(
|
|
424
|
+
I(g(d({}, l), {
|
|
426
425
|
current: 1
|
|
427
|
-
})), V(),
|
|
426
|
+
})), V(), H(!1);
|
|
428
427
|
},
|
|
429
428
|
onSave: (e) => {
|
|
430
429
|
if (!r || !t)
|
|
431
430
|
throw "datasetId or version is not exist.";
|
|
432
|
-
return
|
|
431
|
+
return n.cvforceDatahub.updateSamples(r, t.id, [d({}, e)]).then(() => (I(g(d({}, l), {
|
|
433
432
|
current: 1
|
|
434
433
|
})), V(), !0));
|
|
435
434
|
}
|
|
436
435
|
})]
|
|
437
|
-
}) : /* @__PURE__ */
|
|
436
|
+
}) : /* @__PURE__ */ o("div", {
|
|
438
437
|
style: {
|
|
439
438
|
color: "red",
|
|
440
439
|
textAlign: "center"
|
|
@@ -445,5 +444,5 @@ const Dt = (m) => {
|
|
|
445
444
|
});
|
|
446
445
|
};
|
|
447
446
|
export {
|
|
448
|
-
|
|
447
|
+
xt as default
|
|
449
448
|
};
|