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