@blueking/ai-ui-sdk 0.1.12-beta.20 → 0.1.12-beta.22
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/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- 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 +3 -3
- 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.vue.css +3 -3
- 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.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/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/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/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/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +8 -8
- 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 +88 -33
- 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 +7 -7
- 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.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 +6 -18
- 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-dataset-http.d.ts +1 -0
- package/dist/hooks/use-dataset-http.ts.js +7 -0
- package/package.json +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +0 -10
|
@@ -8,7 +8,7 @@ import { usePermission } from '../../../../hooks/use-permission.ts.js';
|
|
|
8
8
|
import { ResourcePermissionAction } from '../../../../types/enum.ts.js';
|
|
9
9
|
export default /*@__PURE__*/ _defineComponent({
|
|
10
10
|
props: {
|
|
11
|
-
|
|
11
|
+
selectedDatasetDataIds: {},
|
|
12
12
|
apiPrefix: {},
|
|
13
13
|
spaceId: {},
|
|
14
14
|
datasetId: {},
|
|
@@ -23,7 +23,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
emits: [
|
|
26
|
-
"update:
|
|
26
|
+
"update:selectedDatasetDataIds",
|
|
27
27
|
"success-operation"
|
|
28
28
|
],
|
|
29
29
|
setup (__props, { emit: __emit }) {
|
|
@@ -57,11 +57,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
57
57
|
showMore.value = false;
|
|
58
58
|
};
|
|
59
59
|
const handleSuccessOperation = ()=>{
|
|
60
|
-
emits('update:
|
|
60
|
+
emits('update:selectedDatasetDataIds', []);
|
|
61
61
|
emits('success-operation');
|
|
62
62
|
};
|
|
63
63
|
const handleDeleteDatasetDatas = ()=>{
|
|
64
|
-
batchDeleteDatasetData(props.
|
|
64
|
+
batchDeleteDatasetData(props.selectedDatasetDataIds, props.datasetId).then(handleSuccessOperation);
|
|
65
65
|
};
|
|
66
66
|
return (_ctx, _cache)=>{
|
|
67
67
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
@@ -82,7 +82,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
82
82
|
_withDirectives((_openBlock(), _createElementBlock("ul", {
|
|
83
83
|
class: _normalizeClass({
|
|
84
84
|
'g-more-menu': true,
|
|
85
|
-
'g-none': !showMore.value || _ctx.
|
|
85
|
+
'g-none': !showMore.value || _ctx.selectedDatasetDataIds.length <= 0
|
|
86
86
|
})
|
|
87
87
|
}, [
|
|
88
88
|
_ctx.isInternal && _ctx.reviewDataset ? (_openBlock(), _createElementBlock("li", {
|
|
@@ -122,7 +122,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
122
122
|
]),
|
|
123
123
|
default: _withCtx(()=>[
|
|
124
124
|
_createVNode(_component_bk_button, _mergeProps(_ctx.$attrs, {
|
|
125
|
-
disabled: _ctx.
|
|
125
|
+
disabled: _ctx.selectedDatasetDataIds.length <= 0,
|
|
126
126
|
onClick: handleShowMore
|
|
127
127
|
}), {
|
|
128
128
|
default: _withCtx(()=>[
|
|
@@ -144,14 +144,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
144
144
|
_createVNode(BatchReviewDatasetData, {
|
|
145
145
|
modelValue: isShowBatchReviewDatasetData.value,
|
|
146
146
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event)=>isShowBatchReviewDatasetData.value = $event),
|
|
147
|
-
"dataset-
|
|
147
|
+
"dataset-data-ids": _ctx.selectedDatasetDataIds,
|
|
148
148
|
"dataset-id": _ctx.datasetId,
|
|
149
149
|
"api-prefix": _ctx.apiPrefix,
|
|
150
150
|
"space-id": _ctx.spaceId,
|
|
151
151
|
onSuccessReview: handleSuccessOperation
|
|
152
152
|
}, null, 8 /* PROPS */ , [
|
|
153
153
|
"modelValue",
|
|
154
|
-
"dataset-
|
|
154
|
+
"dataset-data-ids",
|
|
155
155
|
"dataset-id",
|
|
156
156
|
"api-prefix",
|
|
157
157
|
"space-id"
|
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);
|
|
@@ -113,7 +137,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
113
137
|
'sourceType',
|
|
114
138
|
'updated_at'
|
|
115
139
|
],
|
|
116
|
-
size: 'medium',
|
|
117
140
|
trigger: 'manual'
|
|
118
141
|
};
|
|
119
142
|
const handleCalcHasManagePermission = ()=>{
|
|
@@ -164,49 +187,81 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
164
187
|
deleteDatasetData(row.id).then(triggerApi);
|
|
165
188
|
};
|
|
166
189
|
const isDatasetDataSelected = (data)=>{
|
|
167
|
-
return props.
|
|
190
|
+
return props.selectedDatasetDataIds.some((selectedDatasetDataId)=>data.id === selectedDatasetDataId);
|
|
168
191
|
};
|
|
169
192
|
const getSelectionLabel = ()=>{
|
|
170
193
|
// 全选
|
|
171
194
|
const checked = tableData.value.length > 0 ? tableData.value.every((item)=>isDatasetDataSelected(item)) : false;
|
|
172
195
|
// 半选
|
|
173
196
|
const indeterminate = !checked && tableData.value.some((item)=>isDatasetDataSelected(item));
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
},
|
|
197
|
+
// 是否选择了全部数据
|
|
198
|
+
const isAllChecked = props.selectedDatasetDataIds.length >= pagination.value.count;
|
|
199
|
+
return _createVNode2(_resolveComponent2("bk-dropdown"), {
|
|
200
|
+
"placement": "bottom-start"
|
|
201
|
+
}, {
|
|
202
|
+
default: ()=>_createVNode2(RenderCheckbox, {
|
|
203
|
+
"checked": checked,
|
|
204
|
+
"indeterminate": indeterminate
|
|
205
|
+
}, null),
|
|
206
|
+
content: ()=>_createVNode2(_resolveComponent2("bk-dropdown-menu"), null, {
|
|
207
|
+
default: ()=>[
|
|
208
|
+
_createVNode2(_resolveComponent2("bk-dropdown-item"), {
|
|
209
|
+
"onClick": ()=>handleSelectPageAll(!checked)
|
|
210
|
+
}, {
|
|
211
|
+
default: ()=>[
|
|
212
|
+
checked ? '取消选择本页' : '选择本页'
|
|
213
|
+
]
|
|
214
|
+
}),
|
|
215
|
+
_createVNode2(_resolveComponent2("bk-dropdown-item"), {
|
|
216
|
+
"onClick": ()=>handleSelectAll(!isAllChecked)
|
|
217
|
+
}, {
|
|
218
|
+
default: ()=>[
|
|
219
|
+
isAllChecked ? '取消选择全部' : '选择全部'
|
|
220
|
+
]
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
})
|
|
224
|
+
});
|
|
179
225
|
};
|
|
180
226
|
const handleSelect = (row, checked)=>{
|
|
181
|
-
let
|
|
182
|
-
...props.
|
|
227
|
+
let selectedDatasetDataIds = [
|
|
228
|
+
...props.selectedDatasetDataIds
|
|
183
229
|
];
|
|
184
230
|
if (checked) {
|
|
185
|
-
|
|
231
|
+
selectedDatasetDataIds.push(row.id);
|
|
186
232
|
} else {
|
|
187
|
-
|
|
233
|
+
selectedDatasetDataIds = selectedDatasetDataIds.filter((selectedDatasetDataId)=>selectedDatasetDataId !== row.id);
|
|
188
234
|
}
|
|
189
|
-
emits('update:
|
|
235
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
190
236
|
};
|
|
191
237
|
const clearSelected = ()=>{
|
|
192
|
-
emits('update:
|
|
238
|
+
emits('update:selectedDatasetDataIds', []);
|
|
193
239
|
};
|
|
194
|
-
const
|
|
195
|
-
let
|
|
196
|
-
...props.
|
|
240
|
+
const handleSelectPageAll = (checked)=>{
|
|
241
|
+
let selectedDatasetDataIds = [
|
|
242
|
+
...props.selectedDatasetDataIds
|
|
197
243
|
];
|
|
198
244
|
tableData.value.forEach((data)=>{
|
|
199
245
|
// 全选
|
|
200
246
|
if (!isDatasetDataSelected(data) && checked) {
|
|
201
|
-
|
|
247
|
+
selectedDatasetDataIds.push(data.id);
|
|
202
248
|
}
|
|
203
249
|
// 取消全选
|
|
204
250
|
if (isDatasetDataSelected(data) && !checked) {
|
|
205
|
-
|
|
251
|
+
selectedDatasetDataIds = selectedDatasetDataIds.filter((id)=>id !== data.id);
|
|
206
252
|
}
|
|
207
253
|
});
|
|
208
|
-
emits('update:
|
|
254
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
209
255
|
};
|
|
256
|
+
const handleSelectAll = (checked)=>__awaiter(this, void 0, void 0, function*() {
|
|
257
|
+
let selectedDatasetDataIds = [];
|
|
258
|
+
if (checked) {
|
|
259
|
+
selectedDatasetDataIds = yield getDatasetDataIds(Object.assign({
|
|
260
|
+
datasetId: props.datasetId
|
|
261
|
+
}, props.search));
|
|
262
|
+
}
|
|
263
|
+
emits('update:selectedDatasetDataIds', selectedDatasetDataIds);
|
|
264
|
+
});
|
|
210
265
|
const handleGetDatasetDataList = (params)=>{
|
|
211
266
|
return getDatasetDataList(Object.assign(Object.assign({
|
|
212
267
|
datasetId: props.datasetId
|
|
@@ -347,7 +402,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
347
402
|
}
|
|
348
403
|
}, {
|
|
349
404
|
default: _withCtx(({ row })=>[
|
|
350
|
-
|
|
405
|
+
_createTextVNode(_toDisplayString(row.data[key]), 1 /* TEXT */ )
|
|
351
406
|
]),
|
|
352
407
|
_: 2 /* DYNAMIC */
|
|
353
408
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -470,7 +525,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
470
525
|
arrow: false
|
|
471
526
|
}, {
|
|
472
527
|
content: _withCtx(()=>[
|
|
473
|
-
_createElementVNode("ul",
|
|
528
|
+
_createElementVNode("ul", _hoisted_1, [
|
|
474
529
|
_createElementVNode("li", {
|
|
475
530
|
onClick: ($event)=>handleHidePopover(row)
|
|
476
531
|
}, [
|
|
@@ -496,7 +551,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
496
551
|
"onMouseleave",
|
|
497
552
|
"onClick"
|
|
498
553
|
])
|
|
499
|
-
], 8 /* PROPS */ ,
|
|
554
|
+
], 8 /* PROPS */ , _hoisted_2),
|
|
500
555
|
_createVNode(_component_bk_pop_confirm, {
|
|
501
556
|
trigger: "manual",
|
|
502
557
|
title: "确认删除?",
|
|
@@ -516,7 +571,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
516
571
|
onMouseleave: _cache[6] || (_cache[6] = //@ts-ignore
|
|
517
572
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
518
573
|
onClick: ($event)=>handlePermissionMouseClick(row, ()=>handleShowDelete(row))
|
|
519
|
-
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ ,
|
|
574
|
+
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_3)
|
|
520
575
|
]),
|
|
521
576
|
_: 2 /* DYNAMIC */
|
|
522
577
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -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;
|
|
@@ -43,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
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",
|
|
@@ -176,8 +176,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_createVNode(RenderTable, {
|
|
179
|
-
"selected-dataset-
|
|
180
|
-
"onUpdate:
|
|
179
|
+
"selected-dataset-data-ids": selectedDatasetDataIds.value,
|
|
180
|
+
"onUpdate:selectedDatasetDataIds": _cache[3] || (_cache[3] = ($event)=>selectedDatasetDataIds.value = $event),
|
|
181
181
|
"api-prefix": _ctx.apiPrefix,
|
|
182
182
|
"space-id": _ctx.spaceId,
|
|
183
183
|
"dataset-id": _ctx.datasetId,
|
|
@@ -189,7 +189,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
189
189
|
ref_key: "tableRef",
|
|
190
190
|
ref: tableRef
|
|
191
191
|
}, null, 8 /* PROPS */ , [
|
|
192
|
-
"selected-dataset-
|
|
192
|
+
"selected-dataset-data-ids",
|
|
193
193
|
"api-prefix",
|
|
194
194
|
"space-id",
|
|
195
195
|
"dataset-id",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.origin-data-content[data-v-
|
|
2
|
+
.origin-data-content[data-v-cwb3j9fp] {
|
|
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-cwb3j9fp] {
|
|
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-cwb3j9fp] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.main-content[data-v-
|
|
2
|
+
.main-content[data-v-fzv9ufrw] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: calc(100% - 52px);
|
|
5
5
|
}
|
|
6
|
-
.main-panel[data-v-
|
|
6
|
+
.main-panel[data-v-fzv9ufrw] {
|
|
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-fzv9ufrw] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { defineComponent as _defineComponent } from 'vue';
|
|
54
|
-
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective,
|
|
54
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
55
55
|
const _hoisted_1 = {
|
|
56
56
|
class: "g-more-menu"
|
|
57
57
|
};
|
|
@@ -202,7 +202,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
202
202
|
tempDataset.value = row;
|
|
203
203
|
};
|
|
204
204
|
const handleShowDelete = (row)=>{
|
|
205
|
-
if (row.datasetItemCount > 0) return;
|
|
206
205
|
deleteRef.value[row.id].popoverRef.show();
|
|
207
206
|
};
|
|
208
207
|
const handleHidePopover = (row)=>{
|
|
@@ -243,7 +242,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
243
242
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
244
243
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
245
244
|
const _component_bk_table = _resolveComponent("bk-table");
|
|
246
|
-
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
247
245
|
const _directive_bkloading = _resolveDirective("bkloading");
|
|
248
246
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
249
247
|
_withDirectives((_openBlock(), _createBlock(_component_bk_table, {
|
|
@@ -478,26 +476,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
478
476
|
onConfirm: ($event)=>handleDeleteDataset(row)
|
|
479
477
|
}, {
|
|
480
478
|
default: _withCtx(()=>[
|
|
481
|
-
|
|
479
|
+
_createElementVNode("li", {
|
|
482
480
|
class: _normalizeClass({
|
|
483
|
-
'g-disabled':
|
|
481
|
+
'g-disabled': !isDatasetManagePermission(row)
|
|
484
482
|
}),
|
|
485
483
|
onMouseenter: ($event)=>_unref(handleMouseEnter)(isDatasetManagePermission(row)),
|
|
486
484
|
onMousemove: (event)=>_unref(handleMouseMove)(event, isDatasetManagePermission(row)),
|
|
487
485
|
onMouseleave: _cache[0] || (_cache[0] = //@ts-ignore
|
|
488
486
|
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
489
487
|
onClick: ($event)=>handleManagePermissionMouseClick(()=>handleShowDelete(row), row)
|
|
490
|
-
},
|
|
491
|
-
_createTextVNode(" 删除 ")
|
|
492
|
-
]), 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_4)), [
|
|
493
|
-
[
|
|
494
|
-
_directive_bk_tooltips,
|
|
495
|
-
{
|
|
496
|
-
content: '有数据的数据集不能删除',
|
|
497
|
-
disabled: row.datasetItemCount <= 0
|
|
498
|
-
}
|
|
499
|
-
]
|
|
500
|
-
])
|
|
488
|
+
}, " 删除 ", 42 /* CLASS, PROPS, NEED_HYDRATION */ , _hoisted_4)
|
|
501
489
|
]),
|
|
502
490
|
_: 2 /* DYNAMIC */
|
|
503
491
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
@@ -506,13 +494,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
506
494
|
])
|
|
507
495
|
]),
|
|
508
496
|
default: _withCtx(()=>[
|
|
509
|
-
_cache[
|
|
497
|
+
_cache[6] || (_cache[6] = _createElementVNode("i", {
|
|
510
498
|
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
|
511
499
|
}, null, -1 /* HOISTED */ ))
|
|
512
500
|
]),
|
|
513
501
|
_: 2 /* DYNAMIC */ ,
|
|
514
502
|
__: [
|
|
515
|
-
|
|
503
|
+
6
|
|
516
504
|
]
|
|
517
505
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
|
518
506
|
]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.expend-collapse-home[data-v-
|
|
2
|
+
.expend-collapse-home[data-v-msibqpnj] {
|
|
3
3
|
width: 16px;
|
|
4
4
|
height: 64px;
|
|
5
5
|
background: #DCDEE5;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
z-index: 1550;
|
|
17
17
|
}
|
|
18
|
-
.expend-collapse-home[data-v-
|
|
18
|
+
.expend-collapse-home[data-v-msibqpnj]:hover {
|
|
19
19
|
background: #979BA5;
|
|
20
20
|
}
|
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
|
21
|
+
.expend-collapse-home.is-close[data-v-msibqpnj] {
|
|
22
22
|
left: 0;
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-c5u06tbu] {
|
|
3
3
|
position: relative;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
border: 1px solid #DCDEE5;
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
padding: 12px 12px 10px 12px;
|
|
8
8
|
}
|
|
9
|
-
.upload-file-home[data-v-
|
|
9
|
+
.upload-file-home[data-v-c5u06tbu]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-c5u06tbu] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-c5u06tbu] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-c5u06tbu] {
|
|
19
19
|
font-size: 12px;
|
|
20
20
|
flex: 1;
|
|
21
21
|
align-items: flex-start;
|
|
@@ -23,28 +23,28 @@
|
|
|
23
23
|
font-weight: normal;
|
|
24
24
|
width: 0;
|
|
25
25
|
}
|
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-c5u06tbu] {
|
|
27
27
|
width: 100%;
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
line-height: 20px;
|
|
30
30
|
}
|
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-c5u06tbu] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-c5u06tbu] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-c5u06tbu] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
margin-right: 15px;
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
}
|
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-c5u06tbu]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-c5u06tbu] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-6zyjjdtg] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-6zyjjdtg], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-6zyjjdtg], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-6zyjjdtg] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-6zyjjdtg] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-6zyjjdtg] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-6zyjjdtg] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|