Skip to content

Commit 643911e

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents ceb8254 + 47a1b40 commit 643911e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

frontend/main/src/views/datasets/datasetContent/components/upload/UploadProgress.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
list.filter(
176176
(item) =>
177177
item.status !== UploadResultStatus.SUCCESS &&
178+
item.status !== UploadResultStatus.SUCCESS_WITH_ERROR &&
178179
item.status !== UploadResultStatus.ERROR &&
179180
item.status !== UploadResultStatus.CANCELED,
180181
) ?? [];
@@ -312,6 +313,7 @@
312313
list.filter(
313314
(item) =>
314315
item.status !== UploadResultStatus.SUCCESS &&
316+
item.status !== UploadResultStatus.SUCCESS_WITH_ERROR &&
315317
item.status !== UploadResultStatus.ERROR &&
316318
item.status !== UploadResultStatus.CANCELED,
317319
) ?? [];

frontend/pc-tool/src/api/common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export async function saveObject(config: any) {
2525
let url = '/api/annotate/data/save';
2626
let data = await post(url, config);
2727
data = data.data || [];
28-
console.log(data);
2928
let keyMap = {} as Record<string, Record<string, string>>;
3029
data.forEach((e: any) => {
3130
let dataId = e.dataId;

frontend/pc-tool/src/common/Editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default class Editor extends BaseEditor {
9393
});
9494
this.showMsg('success', this.lang('save-ok'));
9595
} catch (e: any) {
96+
console.error(e);
9697
this.showMsg('error', this.lang('save-error'));
9798
}
9899
bsState.saving = false;
@@ -102,19 +103,19 @@ export default class Editor extends BaseEditor {
102103
Object.keys(keyMap).forEach((dataId) => {
103104
let dataKeyMap = keyMap[dataId];
104105
let annotates = this.dataManager.getFrameObject(dataId) || [];
105-
annotates.forEach((annotate:any) => {
106+
annotates.forEach((annotate: any) => {
106107
let frontId = annotate.uuid;
107108
let backId = dataKeyMap[frontId];
108109
if (!backId) return;
109-
annotate.id = backId;
110+
annotate.userData.backId = backId;
110111
// annotate.uuid = backId;
111112
});
112113
});
113114
}
114115
async getResultSources(frame?: IFrame) {
115116
let { state } = this;
116117
frame = frame || this.getCurrentFrame();
117-
if(!frame.sources){
118+
if (!frame.sources) {
118119
let sources = await api.getResultSources(frame.id);
119120
sources.unshift({
120121
name: 'Without Task',
@@ -125,7 +126,6 @@ export default class Editor extends BaseEditor {
125126
}
126127
this.setSources(frame.sources);
127128

128-
129129
// let sourceMap = {};
130130
// sources.forEach((e) => {
131131
// sourceMap[e.sourceId] = true;

frontend/pc-tool/src/packages/pc-editor/utils/classification.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ export function classificationToSave(classification: IClassification) {
223223
};
224224
});
225225

226-
console.log(data);
227226
return data;
228227
}
229228
export function isAttrVisible(

0 commit comments

Comments
 (0)