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