@blueking/ai-ui-sdk 0.1.12-beta.28 → 0.1.12-beta.29
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/common/util.d.ts +7 -0
- package/dist/common/util.ts.js +8 -0
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +8 -2
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js +27 -9
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +1 -2
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +46 -11
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +8 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +12 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +8 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +21 -5
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +1 -3
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +77 -2
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +3 -0
- package/dist/components/render-dataset-detail/index.script.vue.js.js +8 -2
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +12 -9
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +3 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +206 -37
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +4 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +0 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +29 -14
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +4 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +21 -21
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-chat.d.ts +10 -2
- package/dist/hooks/use-dataset-http.d.ts +4 -1
- package/dist/hooks/use-dataset-http.ts.js +20 -0
- package/dist/http/helper/agent.ts.js +1 -2
- package/dist/http/helper/knowledge.ts.js +4 -2
- package/dist/http/helper/session.ts.js +2 -0
- package/dist/http/helper/tool.ts.js +6 -0
- package/dist/types/agent.d.ts +0 -2
- package/dist/types/common.ts.js +1 -0
- package/dist/types/dataset.d.ts +1 -0
- package/dist/types/enum.d.ts +12 -0
- package/dist/types/enum.ts.js +14 -0
- package/dist/types/knowledge.d.ts +2 -0
- package/dist/types/session.d.ts +2 -2
- package/dist/types/tool.d.ts +9 -3
- package/dist/types.d.ts +1 -0
- package/dist/types.ts.js +1 -0
- package/package.json +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +0 -10
package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { IDatasetData } from '@/types/dataset';
|
|
2
1
|
interface IProps {
|
|
3
|
-
|
|
2
|
+
selectedDatasetDataIds: number[];
|
|
4
3
|
apiPrefix: string;
|
|
5
4
|
spaceId?: string;
|
|
6
5
|
datasetId: number;
|
|
@@ -9,10 +8,10 @@ interface IProps {
|
|
|
9
8
|
isInternal?: boolean;
|
|
10
9
|
}
|
|
11
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
-
"update:
|
|
11
|
+
"update:selectedDatasetDataIds": (selectedDatasetDataIds: number[]) => any;
|
|
13
12
|
"success-operation": () => any;
|
|
14
13
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
15
|
-
"onUpdate:
|
|
14
|
+
"onUpdate:selectedDatasetDataIds"?: (selectedDatasetDataIds: number[]) => any;
|
|
16
15
|
"onSuccess-operation"?: () => any;
|
|
17
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
17
|
export default _default;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __awaiter = this && this.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) {
|
|
3
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
4
|
+
resolve(value);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
8
|
+
function fulfilled(value) {
|
|
9
|
+
try {
|
|
10
|
+
step(generator.next(value));
|
|
11
|
+
} catch (e) {
|
|
12
|
+
reject(e);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function rejected(value) {
|
|
16
|
+
try {
|
|
17
|
+
step(generator["throw"](value));
|
|
18
|
+
} catch (e) {
|
|
19
|
+
reject(e);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function step(result) {
|
|
23
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24
|
+
}
|
|
25
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
+
});
|
|
5
27
|
};
|
|
6
|
-
|
|
28
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2, resolveComponent as _resolveComponent2 } from 'vue';
|
|
29
|
+
import { unref as _unref, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, renderList as _renderList, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
|
30
|
+
const _hoisted_1 = {
|
|
7
31
|
class: "g-more-menu"
|
|
8
32
|
};
|
|
9
|
-
const
|
|
33
|
+
const _hoisted_2 = [
|
|
10
34
|
"onClick"
|
|
11
35
|
];
|
|
12
|
-
const
|
|
36
|
+
const _hoisted_3 = [
|
|
13
37
|
"onClick"
|
|
14
38
|
];
|
|
15
39
|
import { ref, toRef, watch } from 'vue';
|
|
@@ -29,7 +53,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
29
53
|
datasetId: {},
|
|
30
54
|
search: {},
|
|
31
55
|
schema: {},
|
|
32
|
-
|
|
56
|
+
selectedDatasetDataIds: {},
|
|
33
57
|
spaceId: {},
|
|
34
58
|
manageDataset: {
|
|
35
59
|
type: Boolean
|
|
@@ -42,12 +66,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
42
66
|
}
|
|
43
67
|
},
|
|
44
68
|
emits: [
|
|
45
|
-
"update:
|
|
69
|
+
"update:selectedDatasetDataIds"
|
|
46
70
|
],
|
|
47
71
|
setup (__props, { expose: __expose, emit: __emit }) {
|
|
48
72
|
const props = __props;
|
|
49
73
|
const emits = __emit;
|
|
50
|
-
const { getDatasetDataList, deleteDatasetData, batchRetryReviewDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
74
|
+
const { getDatasetDataIds, getDatasetDataList, deleteDatasetData, batchRetryReviewDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
51
75
|
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
|
52
76
|
const isShowEditDatasetData = ref(false);
|
|
53
77
|
const isShowOperationRecord = ref(false);
|
|
@@ -62,6 +86,59 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
62
86
|
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
|
63
87
|
[DatasetDataSourceType.ManualImport]: '手动录入'
|
|
64
88
|
};
|
|
89
|
+
const settings = {
|
|
90
|
+
fields: [
|
|
91
|
+
{
|
|
92
|
+
label: 'ID',
|
|
93
|
+
field: 'id'
|
|
94
|
+
},
|
|
95
|
+
...props.isInternal ? [
|
|
96
|
+
{
|
|
97
|
+
label: '审核状态',
|
|
98
|
+
field: 'status'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: '质量等级',
|
|
102
|
+
field: 'level'
|
|
103
|
+
}
|
|
104
|
+
] : [],
|
|
105
|
+
...Object.keys(props.schema).map((key)=>({
|
|
106
|
+
label: key,
|
|
107
|
+
field: key
|
|
108
|
+
})),
|
|
109
|
+
{
|
|
110
|
+
label: '数据来源',
|
|
111
|
+
field: 'sourceType'
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: '更新时间',
|
|
115
|
+
field: 'updated_at'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: '更新人',
|
|
119
|
+
field: 'updatedBy'
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: '创建时间',
|
|
123
|
+
field: 'created_at'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: '创建人',
|
|
127
|
+
field: 'createdBy'
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
checked: [
|
|
131
|
+
'id',
|
|
132
|
+
...props.isInternal ? [
|
|
133
|
+
'status',
|
|
134
|
+
'level'
|
|
135
|
+
] : [],
|
|
136
|
+
...Object.keys(props.schema),
|
|
137
|
+
'sourceType',
|
|
138
|
+
'updated_at'
|
|
139
|
+
],
|
|
140
|
+
trigger: 'manual'
|
|
141
|
+
};
|
|
65
142
|
const handleCalcHasManagePermission = ()=>{
|
|
66
143
|
return !props.isInternal || props.manageDataset;
|
|
67
144
|
};
|
|
@@ -110,49 +187,84 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
110
187
|
deleteDatasetData(row.id).then(triggerApi);
|
|
111
188
|
};
|
|
112
189
|
const isDatasetDataSelected = (data)=>{
|
|
113
|
-
return props.
|
|
190
|
+
return props.selectedDatasetDataIds.some((selectedDatasetDataId)=>data.id === selectedDatasetDataId);
|
|
114
191
|
};
|
|
115
192
|
const getSelectionLabel = ()=>{
|
|
116
193
|
// 全选
|
|
117
194
|
const checked = tableData.value.length > 0 ? tableData.value.every((item)=>isDatasetDataSelected(item)) : false;
|
|
118
195
|
// 半选
|
|
119
196
|
const indeterminate = !checked && tableData.value.some((item)=>isDatasetDataSelected(item));
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
197
|
+
// 是否选择了全部数据
|
|
198
|
+
const isAllChecked = props.selectedDatasetDataIds.length >= pagination.value.count;
|
|
199
|
+
return _createVNode2(_resolveComponent2("bk-dropdown"), {
|
|
200
|
+
"popoverOptions": {
|
|
201
|
+
hideIgnoreReference: true
|
|
202
|
+
},
|
|
203
|
+
"placement": "bottom-start"
|
|
204
|
+
}, {
|
|
205
|
+
default: ()=>_createVNode2(RenderCheckbox, {
|
|
206
|
+
"checked": checked,
|
|
207
|
+
"indeterminate": indeterminate
|
|
208
|
+
}, null),
|
|
209
|
+
content: ()=>_createVNode2(_resolveComponent2("bk-dropdown-menu"), null, {
|
|
210
|
+
default: ()=>[
|
|
211
|
+
_createVNode2(_resolveComponent2("bk-dropdown-item"), {
|
|
212
|
+
"onClick": ()=>handleSelectPageAll(!checked)
|
|
213
|
+
}, {
|
|
214
|
+
default: ()=>[
|
|
215
|
+
checked ? '取消选择本页' : '选择本页'
|
|
216
|
+
]
|
|
217
|
+
}),
|
|
218
|
+
_createVNode2(_resolveComponent2("bk-dropdown-item"), {
|
|
219
|
+
"onClick": ()=>handleSelectAll(!isAllChecked)
|
|
220
|
+
}, {
|
|
221
|
+
default: ()=>[
|
|
222
|
+
isAllChecked ? '取消选择全部' : '选择全部'
|
|
223
|
+
]
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
})
|
|
227
|
+
});
|
|
125
228
|
};
|
|
126
229
|
const handleSelect = (row, checked)=>{
|
|
127
|
-
let
|
|
128
|
-
...props.
|
|
230
|
+
let selectedDatasetDataIds = [
|
|
231
|
+
...props.selectedDatasetDataIds
|
|
129
232
|
];
|
|
130
233
|
if (checked) {
|
|
131
|
-
|
|
234
|
+
selectedDatasetDataIds.push(row.id);
|
|
132
235
|
} else {
|
|
133
|
-
|
|
236
|
+
selectedDatasetDataIds = selectedDatasetDataIds.filter((selectedDatasetDataId)=>selectedDatasetDataId !== row.id);
|
|
134
237
|
}
|
|
135
|
-
emits('update:
|
|
238
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
136
239
|
};
|
|
137
240
|
const clearSelected = ()=>{
|
|
138
|
-
emits('update:
|
|
241
|
+
emits('update:selectedDatasetDataIds', []);
|
|
139
242
|
};
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
...props.
|
|
243
|
+
const handleSelectPageAll = (checked)=>{
|
|
244
|
+
let selectedDatasetDataIds = [
|
|
245
|
+
...props.selectedDatasetDataIds
|
|
143
246
|
];
|
|
144
247
|
tableData.value.forEach((data)=>{
|
|
145
248
|
// 全选
|
|
146
249
|
if (!isDatasetDataSelected(data) && checked) {
|
|
147
|
-
|
|
250
|
+
selectedDatasetDataIds.push(data.id);
|
|
148
251
|
}
|
|
149
252
|
// 取消全选
|
|
150
253
|
if (isDatasetDataSelected(data) && !checked) {
|
|
151
|
-
|
|
254
|
+
selectedDatasetDataIds = selectedDatasetDataIds.filter((id)=>id !== data.id);
|
|
152
255
|
}
|
|
153
256
|
});
|
|
154
|
-
emits('update:
|
|
257
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
155
258
|
};
|
|
259
|
+
const handleSelectAll = (checked)=>__awaiter(this, void 0, void 0, function*() {
|
|
260
|
+
let selectedDatasetDataIds = [];
|
|
261
|
+
if (checked) {
|
|
262
|
+
selectedDatasetDataIds = yield getDatasetDataIds(Object.assign({
|
|
263
|
+
datasetId: props.datasetId
|
|
264
|
+
}, props.search));
|
|
265
|
+
}
|
|
266
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
267
|
+
});
|
|
156
268
|
const handleGetDatasetDataList = (params)=>{
|
|
157
269
|
return getDatasetDataList(Object.assign(Object.assign({
|
|
158
270
|
datasetId: props.datasetId
|
|
@@ -189,6 +301,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
189
301
|
"empty-cell-text": "--",
|
|
190
302
|
"show-overflow-tooltip": "",
|
|
191
303
|
"remote-pagination": "",
|
|
304
|
+
settings: settings,
|
|
192
305
|
pagination: _unref(pagination),
|
|
193
306
|
data: _unref(tableData),
|
|
194
307
|
"row-height": 56,
|
|
@@ -218,6 +331,22 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
218
331
|
label: "ID",
|
|
219
332
|
field: "id",
|
|
220
333
|
width: "80"
|
|
334
|
+
}, {
|
|
335
|
+
default: _withCtx(({ row, index })=>[
|
|
336
|
+
_createVNode(_component_bk_button, {
|
|
337
|
+
text: "",
|
|
338
|
+
theme: "primary",
|
|
339
|
+
onClick: ($event)=>handleShowEditDatasetData(row, index)
|
|
340
|
+
}, {
|
|
341
|
+
default: _withCtx(()=>[
|
|
342
|
+
_createTextVNode(_toDisplayString(row.id), 1 /* TEXT */ )
|
|
343
|
+
]),
|
|
344
|
+
_: 2 /* DYNAMIC */
|
|
345
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
346
|
+
"onClick"
|
|
347
|
+
])
|
|
348
|
+
]),
|
|
349
|
+
_: 1 /* STABLE */
|
|
221
350
|
}),
|
|
222
351
|
_ctx.isInternal ? (_openBlock(), _createElementBlock(_Fragment, {
|
|
223
352
|
key: 0
|
|
@@ -276,7 +405,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
276
405
|
}
|
|
277
406
|
}, {
|
|
278
407
|
default: _withCtx(({ row })=>[
|
|
279
|
-
|
|
408
|
+
_createTextVNode(_toDisplayString(row.data[key]), 1 /* TEXT */ )
|
|
280
409
|
]),
|
|
281
410
|
_: 2 /* DYNAMIC */
|
|
282
411
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -306,6 +435,27 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
306
435
|
]),
|
|
307
436
|
_: 1 /* STABLE */
|
|
308
437
|
}),
|
|
438
|
+
_createVNode(_component_bk_table_column, {
|
|
439
|
+
label: "更新人",
|
|
440
|
+
field: "updatedBy",
|
|
441
|
+
"min-width": "180"
|
|
442
|
+
}),
|
|
443
|
+
_createVNode(_component_bk_table_column, {
|
|
444
|
+
label: "创建时间",
|
|
445
|
+
field: "created_at",
|
|
446
|
+
"min-width": "180",
|
|
447
|
+
sort: true
|
|
448
|
+
}, {
|
|
449
|
+
default: _withCtx(({ row })=>[
|
|
450
|
+
_createTextVNode(_toDisplayString(row.createdAt), 1 /* TEXT */ )
|
|
451
|
+
]),
|
|
452
|
+
_: 1 /* STABLE */
|
|
453
|
+
}),
|
|
454
|
+
_createVNode(_component_bk_table_column, {
|
|
455
|
+
label: "创建人",
|
|
456
|
+
field: "createdBy",
|
|
457
|
+
"min-width": "180"
|
|
458
|
+
}),
|
|
309
459
|
_createVNode(_component_bk_table_column, {
|
|
310
460
|
label: "操作",
|
|
311
461
|
fixed: "right",
|
|
@@ -326,7 +476,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
326
476
|
default: _withCtx(()=>_cache[10] || (_cache[10] = [
|
|
327
477
|
_createTextVNode(" 编辑 ")
|
|
328
478
|
])),
|
|
329
|
-
_: 2 /* DYNAMIC */
|
|
479
|
+
_: 2 /* DYNAMIC */ ,
|
|
480
|
+
__: [
|
|
481
|
+
10
|
|
482
|
+
]
|
|
330
483
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
331
484
|
"class",
|
|
332
485
|
"onMouseleave",
|
|
@@ -342,7 +495,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
342
495
|
default: _withCtx(()=>_cache[11] || (_cache[11] = [
|
|
343
496
|
_createTextVNode(" 人工审核 ")
|
|
344
497
|
])),
|
|
345
|
-
_: 2 /* DYNAMIC */
|
|
498
|
+
_: 2 /* DYNAMIC */ ,
|
|
499
|
+
__: [
|
|
500
|
+
11
|
|
501
|
+
]
|
|
346
502
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
347
503
|
"onClick"
|
|
348
504
|
])) : _createCommentVNode("v-if", true),
|
|
@@ -356,7 +512,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
356
512
|
default: _withCtx(()=>_cache[12] || (_cache[12] = [
|
|
357
513
|
_createTextVNode(" 重试 ")
|
|
358
514
|
])),
|
|
359
|
-
_: 2 /* DYNAMIC */
|
|
515
|
+
_: 2 /* DYNAMIC */ ,
|
|
516
|
+
__: [
|
|
517
|
+
12
|
|
518
|
+
]
|
|
360
519
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
361
520
|
"onClick"
|
|
362
521
|
])) : _createCommentVNode("v-if", true),
|
|
@@ -369,7 +528,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
369
528
|
arrow: false
|
|
370
529
|
}, {
|
|
371
530
|
content: _withCtx(()=>[
|
|
372
|
-
_createElementVNode("ul",
|
|
531
|
+
_createElementVNode("ul", _hoisted_1, [
|
|
373
532
|
_createElementVNode("li", {
|
|
374
533
|
onClick: ($event)=>handleHidePopover(row)
|
|
375
534
|
}, [
|
|
@@ -386,13 +545,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
386
545
|
default: _withCtx(()=>_cache[13] || (_cache[13] = [
|
|
387
546
|
_createTextVNode(" 操作记录 ")
|
|
388
547
|
])),
|
|
389
|
-
_: 2 /* DYNAMIC */
|
|
548
|
+
_: 2 /* DYNAMIC */ ,
|
|
549
|
+
__: [
|
|
550
|
+
13
|
|
551
|
+
]
|
|
390
552
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
391
553
|
"class",
|
|
392
554
|
"onMouseleave",
|
|
393
555
|
"onClick"
|
|
394
556
|
])
|
|
395
|
-
], 8 /* PROPS */ ,
|
|
557
|
+
], 8 /* PROPS */ , _hoisted_2),
|
|
396
558
|
_createVNode(_component_bk_pop_confirm, {
|
|
397
559
|
trigger: "manual",
|
|
398
560
|
title: "确认删除?",
|
|
@@ -412,7 +574,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
412
574
|
onMouseleave: _cache[6] || (_cache[6] = //@ts-ignore
|
|
413
575
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
414
576
|
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowDelete(row))
|
|
415
|
-
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ ,
|
|
577
|
+
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_3)
|
|
416
578
|
]),
|
|
417
579
|
_: 2 /* DYNAMIC */
|
|
418
580
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -425,7 +587,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
425
587
|
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
|
426
588
|
}, null, -1 /* HOISTED */ ))
|
|
427
589
|
]),
|
|
428
|
-
_: 2 /* DYNAMIC */
|
|
590
|
+
_: 2 /* DYNAMIC */ ,
|
|
591
|
+
__: [
|
|
592
|
+
14
|
|
593
|
+
]
|
|
429
594
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
|
430
595
|
]),
|
|
431
596
|
_: 1 /* STABLE */
|
|
@@ -470,6 +635,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
470
635
|
"api-prefix": _ctx.apiPrefix,
|
|
471
636
|
"space-id": _ctx.spaceId,
|
|
472
637
|
schema: _ctx.schema,
|
|
638
|
+
"manage-dataset": _ctx.manageDataset,
|
|
639
|
+
"is-internal": _ctx.isInternal,
|
|
473
640
|
onSuccessEdit: _unref(triggerApi)
|
|
474
641
|
}, null, 8 /* PROPS */ , [
|
|
475
642
|
"modelValue",
|
|
@@ -479,6 +646,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
479
646
|
"api-prefix",
|
|
480
647
|
"space-id",
|
|
481
648
|
"schema",
|
|
649
|
+
"manage-dataset",
|
|
650
|
+
"is-internal",
|
|
482
651
|
"onSuccessEdit"
|
|
483
652
|
]),
|
|
484
653
|
_createVNode(ReviewDatasetData, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IDatasetDataParam } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
|
3
3
|
apiPrefix: string;
|
|
4
4
|
datasetId: number;
|
|
5
5
|
search: IDatasetDataParam;
|
|
6
6
|
schema: Record<string, string>;
|
|
7
|
-
|
|
7
|
+
selectedDatasetDataIds: number[];
|
|
8
8
|
spaceId?: string;
|
|
9
9
|
manageDataset?: boolean;
|
|
10
10
|
isInternal?: boolean;
|
|
@@ -13,8 +13,8 @@ interface IProps {
|
|
|
13
13
|
declare const _default: import("vue").DefineComponent<IProps, {
|
|
14
14
|
triggerApi: () => Promise<unknown>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
-
"update:
|
|
16
|
+
"update:selectedDatasetDataIds": (selectedDatasetDataIds: number[]) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
18
|
-
"onUpdate:
|
|
18
|
+
"onUpdate:selectedDatasetDataIds"?: (selectedDatasetDataIds: number[]) => any;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
|
|
2
|
+
import { createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, unref as _unref, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "origin-data-panel"
|
|
@@ -37,13 +37,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
37
37
|
},
|
|
38
38
|
setup (__props) {
|
|
39
39
|
const props = __props;
|
|
40
|
-
const { getSchemaList, batchRetryReviewDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
40
|
+
const { getSchemaList, batchRetryReviewDatasetData, exportDataset } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
41
41
|
const tableRef = useTemplateRef('tableRef');
|
|
42
42
|
const search = ref({});
|
|
43
43
|
const schema = ref();
|
|
44
44
|
const loading = ref(false);
|
|
45
45
|
const isRetryReviewingAll = ref(false);
|
|
46
|
-
const
|
|
46
|
+
const selectedDatasetDataIds = ref([]);
|
|
47
47
|
const datasetData = {
|
|
48
48
|
datasetId: props.datasetId
|
|
49
49
|
};
|
|
@@ -97,8 +97,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
97
97
|
"is-internal"
|
|
98
98
|
]),
|
|
99
99
|
_createVNode(RenderBatchOperation, {
|
|
100
|
-
"selected-dataset-
|
|
101
|
-
"onUpdate:
|
|
100
|
+
"selected-dataset-data-ids": selectedDatasetDataIds.value,
|
|
101
|
+
"onUpdate:selectedDatasetDataIds": _cache[0] || (_cache[0] = ($event)=>selectedDatasetDataIds.value = $event),
|
|
102
102
|
class: "g-mr-8",
|
|
103
103
|
"api-prefix": _ctx.apiPrefix,
|
|
104
104
|
"space-id": _ctx.spaceId,
|
|
@@ -108,7 +108,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
108
108
|
"is-internal": _ctx.isInternal,
|
|
109
109
|
onSuccessOperation: handleUpdate
|
|
110
110
|
}, null, 8 /* PROPS */ , [
|
|
111
|
-
"selected-dataset-
|
|
111
|
+
"selected-dataset-data-ids",
|
|
112
112
|
"api-prefix",
|
|
113
113
|
"space-id",
|
|
114
114
|
"dataset-id",
|
|
@@ -125,12 +125,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
125
125
|
}, {
|
|
126
126
|
default: _withCtx(()=>[
|
|
127
127
|
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
128
|
-
loading: isRetryReviewingAll.value
|
|
128
|
+
loading: isRetryReviewingAll.value,
|
|
129
|
+
class: "g-mr-8"
|
|
129
130
|
}, {
|
|
130
|
-
default: _withCtx(()=>_cache[
|
|
131
|
+
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
|
131
132
|
_createTextVNode(" 一键失败重试 ")
|
|
132
133
|
])),
|
|
133
|
-
_: 1 /* STABLE */
|
|
134
|
+
_: 1 /* STABLE */ ,
|
|
135
|
+
__: [
|
|
136
|
+
4
|
|
137
|
+
]
|
|
134
138
|
}, 8 /* PROPS */ , [
|
|
135
139
|
"loading"
|
|
136
140
|
])), [
|
|
@@ -141,7 +145,18 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
141
145
|
])
|
|
142
146
|
]),
|
|
143
147
|
_: 1 /* STABLE */
|
|
144
|
-
})) : _createCommentVNode("v-if", true)
|
|
148
|
+
})) : _createCommentVNode("v-if", true),
|
|
149
|
+
_createVNode(_component_bk_button, {
|
|
150
|
+
onClick: _cache[1] || (_cache[1] = ($event)=>_unref(exportDataset)(_ctx.datasetId))
|
|
151
|
+
}, {
|
|
152
|
+
default: _withCtx(()=>_cache[5] || (_cache[5] = [
|
|
153
|
+
_createTextVNode(" 导出 ")
|
|
154
|
+
])),
|
|
155
|
+
_: 1 /* STABLE */ ,
|
|
156
|
+
__: [
|
|
157
|
+
5
|
|
158
|
+
]
|
|
159
|
+
})
|
|
145
160
|
]),
|
|
146
161
|
_createElementVNode("section", _hoisted_4, [
|
|
147
162
|
_createVNode(RenderAutoRefresh, {
|
|
@@ -149,7 +164,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
149
164
|
}),
|
|
150
165
|
_createVNode(RenderSearchDatasetData, {
|
|
151
166
|
modelValue: search.value,
|
|
152
|
-
"onUpdate:modelValue": _cache[
|
|
167
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event)=>search.value = $event),
|
|
153
168
|
schema: schema.value,
|
|
154
169
|
"review-dataset": _ctx.reviewDataset,
|
|
155
170
|
class: "toolbar-search"
|
|
@@ -161,8 +176,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
161
176
|
])
|
|
162
177
|
]),
|
|
163
178
|
_createVNode(RenderTable, {
|
|
164
|
-
"selected-dataset-
|
|
165
|
-
"onUpdate:
|
|
179
|
+
"selected-dataset-data-ids": selectedDatasetDataIds.value,
|
|
180
|
+
"onUpdate:selectedDatasetDataIds": _cache[3] || (_cache[3] = ($event)=>selectedDatasetDataIds.value = $event),
|
|
166
181
|
"api-prefix": _ctx.apiPrefix,
|
|
167
182
|
"space-id": _ctx.spaceId,
|
|
168
183
|
"dataset-id": _ctx.datasetId,
|
|
@@ -174,7 +189,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
174
189
|
ref_key: "tableRef",
|
|
175
190
|
ref: tableRef
|
|
176
191
|
}, null, 8 /* PROPS */ , [
|
|
177
|
-
"selected-dataset-
|
|
192
|
+
"selected-dataset-data-ids",
|
|
178
193
|
"api-prefix",
|
|
179
194
|
"space-id",
|
|
180
195
|
"dataset-id",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.origin-data-content[data-v-
|
|
2
|
+
.origin-data-content[data-v-ojd7mce8] {
|
|
3
3
|
padding: 24px;
|
|
4
4
|
height: calc(100% - 52px - 44px);
|
|
5
5
|
}
|
|
6
|
-
.origin-data-panel[data-v-
|
|
6
|
+
.origin-data-panel[data-v-ojd7mce8] {
|
|
7
7
|
height: 100%;
|
|
8
8
|
padding: 20px;
|
|
9
9
|
background: #ffffff;
|
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
11
11
|
border-radius: 2px;
|
|
12
12
|
}
|
|
13
|
-
.origin-data-panel .toolbar-search[data-v-
|
|
13
|
+
.origin-data-panel .toolbar-search[data-v-ojd7mce8] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -62,7 +62,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
62
62
|
default: _withCtx(()=>_cache[2] || (_cache[2] = [
|
|
63
63
|
_createTextVNode(" 创建数据集 ")
|
|
64
64
|
])),
|
|
65
|
-
_: 1 /* STABLE */
|
|
65
|
+
_: 1 /* STABLE */ ,
|
|
66
|
+
__: [
|
|
67
|
+
2
|
|
68
|
+
]
|
|
66
69
|
})
|
|
67
70
|
]),
|
|
68
71
|
_createVNode(RenderSearchDataset, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.main-content[data-v-
|
|
2
|
+
.main-content[data-v-voy63yrg] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: calc(100% - 52px);
|
|
5
5
|
}
|
|
6
|
-
.main-panel[data-v-
|
|
6
|
+
.main-panel[data-v-voy63yrg] {
|
|
7
7
|
height: 100%;
|
|
8
8
|
padding: 20px 24px 0;
|
|
9
9
|
background: #ffffff;
|
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
11
11
|
border-radius: 2px;
|
|
12
12
|
}
|
|
13
|
-
.main-search[data-v-
|
|
13
|
+
.main-search[data-v-voy63yrg] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|