@blueking/ai-ui-sdk 0.1.19-beta.4 → 0.1.19-beta.40
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 +24 -0
- package/dist/common/util.ts.js +41 -0
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +27 -26
- 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 +9 -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.script.vue.js.js +129 -92
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +4 -0
- 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-delete-dataset-data/index.script.vue.js +86 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +176 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
- 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.script.vue.js.js +36 -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 +174 -0
- 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.d.ts +5 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
- 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-form.script.vue.js +39 -44
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +26 -8
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +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/api.script.vue.js.js +21 -29
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -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/plus-dataset-data/index.script.vue.js.js +8 -3
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +3 -2
- 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 +21 -31
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +259 -388
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +8 -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/header.script.vue.js.js +6 -3
- package/dist/components/render-dataset-list/components/header.vue.d.ts +4 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +38 -14
- package/dist/components/render-dataset-list/components/main.vue.css +4 -4
- package/dist/components/render-dataset-list/components/main.vue.d.ts +12 -5
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +405 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +13 -2
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +37 -16
- package/dist/components/render-dataset-list/index.vue.css +4 -1
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -6
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
- package/dist/components/render-dropdown/index.vue.css +29 -0
- package/dist/components/render-dropdown/index.vue.d.ts +64 -0
- package/dist/components/render-dropdown/index.vue.js +4 -0
- package/dist/components/render-file-card/index.script.vue.js.js +5 -15
- 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.script.vue.js.js +11 -3
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.d.ts +1 -1
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +3 -3
- package/dist/components/render-like/index.vue.css +14 -13
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +4 -4
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
- package/dist/components/render-search-empty/index.vue.d.ts +20 -0
- package/dist/components/render-search-empty/index.vue.js +3 -0
- package/dist/components/render-search-select/index.script.vue.js.js +1 -0
- package/dist/components/render-t-table/index.script.vue.js +351 -0
- package/dist/components/render-t-table/index.vue.css +208 -0
- package/dist/components/render-t-table/index.vue.d.ts +59 -0
- package/dist/components/render-t-table/index.vue.js +5 -0
- package/dist/components/render-tag-tree/index.script.vue.js.js +112 -26
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.d.ts +7 -3
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +17 -8
- package/dist/components/render-tree/index.vue.d.ts +4 -1
- package/dist/components.d.ts +4 -1
- package/dist/components.ts.js +4 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +5 -2
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +5 -2
- package/dist/css/tailwind.css +105 -11
- package/dist/hooks/use-chat.d.ts +14 -4
- package/dist/hooks/use-common-http.d.ts +5 -2
- package/dist/hooks/use-common-http.ts.js +8 -6
- package/dist/hooks/use-dataset-http.d.ts +6 -4
- package/dist/hooks/use-dataset-http.ts.js +17 -6
- package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +86 -0
- package/dist/hooks/use-member-http.d.ts +8 -0
- package/dist/hooks/use-member-http.ts.js +30 -0
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-meta-http.ts.js +9 -5
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/hooks/use-t-table.d.ts +39 -0
- package/dist/hooks/use-t-table.ts.js +82 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.ts.js +3 -0
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/helper/agent.d.ts +13 -1
- package/dist/http/helper/agent.ts.js +69 -24
- package/dist/http/helper/common.ts.js +4 -4
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +20 -4
- package/dist/http/helper/knowledge.ts.js +9 -3
- package/dist/http/helper/tool.ts.js +7 -4
- package/dist/images/market.png +0 -0
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +41 -24
- package/dist/types/common.d.ts +28 -1
- package/dist/types/dataset.d.ts +16 -0
- package/dist/types/enum.d.ts +15 -2
- package/dist/types/enum.ts.js +16 -1
- package/dist/types/knowledge.d.ts +6 -0
- package/dist/types/model.d.ts +4 -4
- package/dist/types/tool.d.ts +5 -3
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +11 -2
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -580
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
.plus-tag-input[data-v-
|
|
2
|
+
.plus-tag-input[data-v-nz7qjr29] {
|
|
3
3
|
padding: 7px 12px;
|
|
4
4
|
height: 40px;
|
|
5
5
|
background: #FAFBFD;
|
|
6
6
|
border-top: 1px solid #DCDEE5;
|
|
7
7
|
}
|
|
8
|
-
.plus-tag-input .plus-tag-done[data-v-
|
|
8
|
+
.plus-tag-input .plus-tag-done[data-v-nz7qjr29] {
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
font-size: 22px;
|
|
11
11
|
color: #2DCB56;
|
|
12
12
|
margin: 0 5px 0 10px;
|
|
13
13
|
}
|
|
14
|
-
.plus-tag-input .plus-tag-error[data-v-
|
|
14
|
+
.plus-tag-input .plus-tag-error[data-v-nz7qjr29] {
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
font-size: 16px;
|
|
17
17
|
color: #C4C6CC;
|
|
18
18
|
margin-right: 5px;
|
|
19
19
|
}
|
|
20
|
-
.plus-tag-input .plus-tag-form[data-v-
|
|
20
|
+
.plus-tag-input .plus-tag-form[data-v-nz7qjr29] {
|
|
21
21
|
flex: 1;
|
|
22
22
|
}
|
|
23
|
-
.plus-tag-input .plus-tag-form-item[data-v-
|
|
23
|
+
.plus-tag-input .plus-tag-form-item[data-v-nz7qjr29] {
|
|
24
24
|
margin-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.plus-tag[data-v-
|
|
26
|
+
.plus-tag[data-v-nz7qjr29] {
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 40px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
line-height: 20px;
|
|
38
38
|
}
|
|
39
|
-
.plus-tag[data-v-
|
|
39
|
+
.plus-tag[data-v-nz7qjr29]:hover {
|
|
40
40
|
color: #3A84FF;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Module } from '@/types/enum';
|
|
1
2
|
interface IProps {
|
|
2
3
|
modelValue: string[][];
|
|
3
4
|
apiPrefix: string;
|
|
5
|
+
module: Module;
|
|
6
|
+
multiple?: boolean;
|
|
4
7
|
spaceId?: string;
|
|
5
8
|
isDataset?: boolean;
|
|
9
|
+
isEnabledCreateTag?: boolean;
|
|
6
10
|
popoverOptions?: Record<string, unknown>;
|
|
7
11
|
}
|
|
8
12
|
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.collapse-title[data-v-
|
|
2
|
+
.collapse-title[data-v-rah9d088] {
|
|
3
3
|
height: 28px;
|
|
4
4
|
background: #F0F1F5;
|
|
5
5
|
border-radius: 2px;
|
|
6
6
|
padding: 0 12px;
|
|
7
7
|
}
|
|
8
|
-
.collapse-title .is-hidden[data-v-
|
|
8
|
+
.collapse-title .is-hidden[data-v-rah9d088] {
|
|
9
9
|
transform: rotate(-90deg);
|
|
10
10
|
}
|
package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2 } from 'vue';
|
|
2
|
+
import { createElementVNode as _createElementVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-flex-column"
|
|
5
|
+
};
|
|
6
|
+
import { toRef } from 'vue';
|
|
7
|
+
import RenderTTable from '../../../render-t-table/index.vue.js';
|
|
8
|
+
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
9
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Boolean
|
|
13
|
+
},
|
|
14
|
+
datasetDataIds: {},
|
|
15
|
+
datasetId: {},
|
|
16
|
+
apiPrefix: {},
|
|
17
|
+
spaceId: {}
|
|
18
|
+
},
|
|
19
|
+
emits: [
|
|
20
|
+
"update:modelValue",
|
|
21
|
+
"success-delete"
|
|
22
|
+
],
|
|
23
|
+
setup (__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emits = __emit;
|
|
26
|
+
const { batchDeleteDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
27
|
+
const getColumns = ()=>[
|
|
28
|
+
{
|
|
29
|
+
colKey: 'description',
|
|
30
|
+
title: `已选择以下${props.datasetDataIds.length}个原数据`,
|
|
31
|
+
ellipsis: true,
|
|
32
|
+
cell: (h, { row })=>{
|
|
33
|
+
return _createVNode2("span", null, [
|
|
34
|
+
row || '--'
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
const handleClosed = ()=>{
|
|
40
|
+
emits('update:modelValue', false);
|
|
41
|
+
};
|
|
42
|
+
const handleDeleteDatasetDatas = ()=>{
|
|
43
|
+
batchDeleteDatasetData(props.datasetDataIds, props.datasetId).then(()=>{
|
|
44
|
+
emits('success-delete');
|
|
45
|
+
handleClosed();
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
return (_ctx, _cache)=>{
|
|
49
|
+
const _component_bk_dialog = _resolveComponent("bk-dialog");
|
|
50
|
+
return _openBlock(), _createBlock(_component_bk_dialog, {
|
|
51
|
+
width: "508",
|
|
52
|
+
"render-directive": "if",
|
|
53
|
+
"header-align": "center",
|
|
54
|
+
"footer-align": "center",
|
|
55
|
+
"confirm-button-theme": "danger",
|
|
56
|
+
"confirm-text": "删除",
|
|
57
|
+
class: "delete-dialog",
|
|
58
|
+
"is-show": _ctx.modelValue,
|
|
59
|
+
title: `确定删除${props.datasetDataIds.length}条原数据?`,
|
|
60
|
+
onClosed: handleClosed,
|
|
61
|
+
onConfirm: handleDeleteDatasetDatas
|
|
62
|
+
}, {
|
|
63
|
+
default: _withCtx(()=>[
|
|
64
|
+
_createElementVNode("section", _hoisted_1, [
|
|
65
|
+
_cache[0] || (_cache[0] = _createElementVNode("span", {
|
|
66
|
+
class: "sub-title g-text-14 g-learning-22 g-mb-16 g-text-center g-width-full"
|
|
67
|
+
}, " 删除后将不可恢复,请谨慎操作! ", -1 /* HOISTED */ )),
|
|
68
|
+
_createVNode(RenderTTable, {
|
|
69
|
+
class: "select-table g-align-self-center",
|
|
70
|
+
"row-key": "id",
|
|
71
|
+
columns: getColumns(),
|
|
72
|
+
"table-data": props.datasetDataIds
|
|
73
|
+
}, null, 8 /* PROPS */ , [
|
|
74
|
+
"columns",
|
|
75
|
+
"table-data"
|
|
76
|
+
])
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
_: 1 /* STABLE */
|
|
80
|
+
}, 8 /* PROPS */ , [
|
|
81
|
+
"is-show",
|
|
82
|
+
"title"
|
|
83
|
+
]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
.sub-title[data-v-oxfdfrt3] {
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
background: #F5F7FA;
|
|
5
|
+
border-radius: 2px;
|
|
6
|
+
}
|
|
7
|
+
.select-table[data-v-oxfdfrt3] {
|
|
8
|
+
height: 192px;
|
|
9
|
+
border: 1px solid #EAEBF0;
|
|
10
|
+
border-radius: 2px;
|
|
11
|
+
}
|
|
12
|
+
.delete-dialog[data-v-oxfdfrt3] .bk-dialog-footer {
|
|
13
|
+
padding: 0 16px 24px 16px;
|
|
14
|
+
background-color: #FFFFFF;
|
|
15
|
+
border-top: 1px solid transparent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
datasetDataIds: number[];
|
|
4
|
+
datasetId: number;
|
|
5
|
+
apiPrefix: string;
|
|
6
|
+
spaceId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
"success-delete": () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
13
|
+
"onSuccess-delete"?: () => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
|
+
import { ref, toRef } from 'vue';
|
|
4
|
+
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
5
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Boolean
|
|
9
|
+
},
|
|
10
|
+
datasetDataIds: {},
|
|
11
|
+
datasetId: {},
|
|
12
|
+
apiPrefix: {},
|
|
13
|
+
spaceId: {}
|
|
14
|
+
},
|
|
15
|
+
emits: [
|
|
16
|
+
"update:modelValue",
|
|
17
|
+
"success-edit"
|
|
18
|
+
],
|
|
19
|
+
setup (__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
const { batchUpdateDatasetDataValidity } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
23
|
+
const validStatus = ref(false);
|
|
24
|
+
const handleClosed = ()=>{
|
|
25
|
+
emits('update:modelValue', false);
|
|
26
|
+
};
|
|
27
|
+
// 批量编辑有效性
|
|
28
|
+
const handleBatchEditValidDatasetData = ()=>{
|
|
29
|
+
batchUpdateDatasetDataValidity({
|
|
30
|
+
datasetId: props.datasetId,
|
|
31
|
+
datasetItemIds: props.datasetDataIds,
|
|
32
|
+
isValid: validStatus.value
|
|
33
|
+
}).then(()=>{
|
|
34
|
+
emits('success-edit');
|
|
35
|
+
handleClosed();
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
return (_ctx, _cache)=>{
|
|
39
|
+
const _component_bk_radio = _resolveComponent("bk-radio");
|
|
40
|
+
const _component_bk_radio_group = _resolveComponent("bk-radio-group");
|
|
41
|
+
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
|
42
|
+
const _component_bk_form = _resolveComponent("bk-form");
|
|
43
|
+
const _component_bk_dialog = _resolveComponent("bk-dialog");
|
|
44
|
+
return _openBlock(), _createBlock(_component_bk_dialog, {
|
|
45
|
+
title: "批量编辑有效性",
|
|
46
|
+
width: "508",
|
|
47
|
+
"render-directive": "if",
|
|
48
|
+
"is-show": _ctx.modelValue,
|
|
49
|
+
onClosed: handleClosed,
|
|
50
|
+
onConfirm: handleBatchEditValidDatasetData
|
|
51
|
+
}, {
|
|
52
|
+
default: _withCtx(()=>[
|
|
53
|
+
_createVNode(_component_bk_form, {
|
|
54
|
+
"form-type": "vertical"
|
|
55
|
+
}, {
|
|
56
|
+
default: _withCtx(()=>[
|
|
57
|
+
_createElementVNode("span", null, "已选数据: " + _toDisplayString(props.datasetDataIds.length) + "条", 1 /* TEXT */ ),
|
|
58
|
+
_createVNode(_component_bk_form_item, {
|
|
59
|
+
class: "g-mt-14",
|
|
60
|
+
label: "有效性",
|
|
61
|
+
required: ""
|
|
62
|
+
}, {
|
|
63
|
+
default: _withCtx(()=>[
|
|
64
|
+
_createVNode(_component_bk_radio_group, {
|
|
65
|
+
modelValue: validStatus.value,
|
|
66
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>validStatus.value = $event),
|
|
67
|
+
class: "g-flex-column"
|
|
68
|
+
}, {
|
|
69
|
+
default: _withCtx(()=>[
|
|
70
|
+
_createVNode(_component_bk_radio, {
|
|
71
|
+
label: false
|
|
72
|
+
}, {
|
|
73
|
+
default: _withCtx(()=>_cache[1] || (_cache[1] = [
|
|
74
|
+
_createElementVNode("div", {
|
|
75
|
+
class: "g-flex-row g-align-items-center"
|
|
76
|
+
}, [
|
|
77
|
+
_createElementVNode("svg", {
|
|
78
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-red"
|
|
79
|
+
}, [
|
|
80
|
+
_createElementVNode("use", {
|
|
81
|
+
href: "#ai-ui-sdk-sync-failed"
|
|
82
|
+
})
|
|
83
|
+
]),
|
|
84
|
+
_createTextVNode(" 无效(不参与模型训练) ")
|
|
85
|
+
], -1 /* HOISTED */ )
|
|
86
|
+
])),
|
|
87
|
+
_: 1 /* STABLE */ ,
|
|
88
|
+
__: [
|
|
89
|
+
1
|
|
90
|
+
]
|
|
91
|
+
}),
|
|
92
|
+
_createVNode(_component_bk_radio, {
|
|
93
|
+
class: "radio",
|
|
94
|
+
label: true
|
|
95
|
+
}, {
|
|
96
|
+
default: _withCtx(()=>_cache[2] || (_cache[2] = [
|
|
97
|
+
_createElementVNode("div", {
|
|
98
|
+
class: "g-flex-row g-align-items-center"
|
|
99
|
+
}, [
|
|
100
|
+
_createElementVNode("svg", {
|
|
101
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-green"
|
|
102
|
+
}, [
|
|
103
|
+
_createElementVNode("use", {
|
|
104
|
+
href: "#ai-ui-sdk-sync-success"
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_createTextVNode(" 有效 ")
|
|
108
|
+
], -1 /* HOISTED */ )
|
|
109
|
+
])),
|
|
110
|
+
_: 1 /* STABLE */ ,
|
|
111
|
+
__: [
|
|
112
|
+
2
|
|
113
|
+
]
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1 /* STABLE */
|
|
117
|
+
}, 8 /* PROPS */ , [
|
|
118
|
+
"modelValue"
|
|
119
|
+
])
|
|
120
|
+
]),
|
|
121
|
+
_: 1 /* STABLE */
|
|
122
|
+
})
|
|
123
|
+
]),
|
|
124
|
+
_: 1 /* STABLE */
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
_: 1 /* STABLE */
|
|
128
|
+
}, 8 /* PROPS */ , [
|
|
129
|
+
"is-show"
|
|
130
|
+
]);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
datasetDataIds: number[];
|
|
4
|
+
datasetId: number;
|
|
5
|
+
apiPrefix: string;
|
|
6
|
+
spaceId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
"success-edit": () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
13
|
+
"onSuccess-edit"?: () => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { unref as _unref, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from "vue";
|
|
3
|
-
const _hoisted_1 =
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-max-truncate g-flex-row",
|
|
5
|
+
"data-ellipsis-tooltip": ""
|
|
6
|
+
};
|
|
6
7
|
const _hoisted_2 = [
|
|
7
8
|
"href"
|
|
8
9
|
];
|
|
@@ -26,10 +27,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
26
27
|
[DatasetDataReviewStatus.AIReviewD]: '#ai-ui-sdk-sync-waiting-01'
|
|
27
28
|
};
|
|
28
29
|
return (_ctx, _cache)=>{
|
|
29
|
-
return _openBlock(), _createElementBlock("span",
|
|
30
|
-
class: "g-max-truncate g-flex-row",
|
|
31
|
-
title: _ctx.name
|
|
32
|
-
}, [
|
|
30
|
+
return _openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
33
31
|
_ctx.name ? (_openBlock(), _createElementBlock("svg", {
|
|
34
32
|
key: 0,
|
|
35
33
|
class: _normalizeClass({
|
|
@@ -45,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
45
43
|
}, null, 8 /* PROPS */ , _hoisted_2)
|
|
46
44
|
], 2 /* CLASS */ )) : _createCommentVNode("v-if", true),
|
|
47
45
|
_createTextVNode(" " + _toDisplayString(_ctx.name || '--'), 1 /* TEXT */ )
|
|
48
|
-
]
|
|
46
|
+
]);
|
|
49
47
|
};
|
|
50
48
|
}
|
|
51
49
|
});
|
package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js
CHANGED
|
@@ -39,7 +39,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
]),
|
|
42
|
-
_cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-
|
|
42
|
+
_cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-8aot0ttf><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-8aot0ttf></i><span class=\"g-text-12 click-full-screen\" data-v-8aot0ttf>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-8aot0ttf><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-8aot0ttf></i><span class=\"g-text-12 click-un-full-screen\" data-v-8aot0ttf>取消全屏</span></span>", 2))
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createBlock as _createBlock } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-max-truncate g-flex-row",
|
|
5
|
+
"data-ellipsis-tooltip": ""
|
|
6
|
+
};
|
|
7
|
+
const _hoisted_2 = [
|
|
8
|
+
"href"
|
|
9
|
+
];
|
|
10
|
+
import { ref, toRef } from 'vue';
|
|
11
|
+
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
12
|
+
import { usePermission } from '../../../../hooks/use-permission.ts.js';
|
|
13
|
+
import { ResourcePermissionAction } from '../../../../types/enum.ts.js';
|
|
14
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
15
|
+
props: {
|
|
16
|
+
id: {},
|
|
17
|
+
isValid: {
|
|
18
|
+
type: Boolean
|
|
19
|
+
},
|
|
20
|
+
datasetId: {},
|
|
21
|
+
apiPrefix: {},
|
|
22
|
+
spaceId: {},
|
|
23
|
+
manageDataset: {
|
|
24
|
+
type: Boolean
|
|
25
|
+
},
|
|
26
|
+
isInternal: {
|
|
27
|
+
type: Boolean
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: [
|
|
31
|
+
"update"
|
|
32
|
+
],
|
|
33
|
+
setup (__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emits = __emit;
|
|
36
|
+
const { batchUpdateDatasetDataValidity } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
37
|
+
const { handleMouseEnter, handleMouseMove, handleMouseLeave, handleMouseClick } = usePermission(props.apiPrefix, toRef(props, 'spaceId'), '#4d4f56');
|
|
38
|
+
const currentValid = ref(props.isValid);
|
|
39
|
+
const isShowEditValid = ref(false);
|
|
40
|
+
const handleCalcHasManagePermission = ()=>{
|
|
41
|
+
return !props.isInternal || props.manageDataset;
|
|
42
|
+
};
|
|
43
|
+
const handlePermissionMouseClick = (callBack)=>{
|
|
44
|
+
handleMouseClick(callBack, handleCalcHasManagePermission(), [
|
|
45
|
+
ResourcePermissionAction.ManageDataset
|
|
46
|
+
], props.datasetId);
|
|
47
|
+
};
|
|
48
|
+
const handleShowEditValid = ()=>{
|
|
49
|
+
isShowEditValid.value = true;
|
|
50
|
+
currentValid.value = props.isValid;
|
|
51
|
+
};
|
|
52
|
+
const handleConfirm = ()=>{
|
|
53
|
+
batchUpdateDatasetDataValidity({
|
|
54
|
+
datasetId: props.datasetId,
|
|
55
|
+
datasetItemIds: [
|
|
56
|
+
props.id
|
|
57
|
+
],
|
|
58
|
+
isValid: currentValid.value
|
|
59
|
+
}).then(()=>{
|
|
60
|
+
handleCancel();
|
|
61
|
+
emits('update');
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const handleCancel = ()=>{
|
|
65
|
+
isShowEditValid.value = false;
|
|
66
|
+
};
|
|
67
|
+
return (_ctx, _cache)=>{
|
|
68
|
+
const _component_bk_radio = _resolveComponent("bk-radio");
|
|
69
|
+
const _component_bk_radio_group = _resolveComponent("bk-radio-group");
|
|
70
|
+
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
71
|
+
return _openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
72
|
+
props.isValid !== undefined ? (_openBlock(), _createElementBlock("svg", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: _normalizeClass({
|
|
75
|
+
'g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-blue': true,
|
|
76
|
+
'g-text-green': props.isValid,
|
|
77
|
+
'g-text-red': !props.isValid
|
|
78
|
+
})
|
|
79
|
+
}, [
|
|
80
|
+
_createElementVNode("use", {
|
|
81
|
+
href: props.isValid ? '#ai-ui-sdk-sync-success' : '#ai-ui-sdk-sync-failed'
|
|
82
|
+
}, null, 8 /* PROPS */ , _hoisted_2)
|
|
83
|
+
], 2 /* CLASS */ )) : _createCommentVNode("v-if", true),
|
|
84
|
+
_createTextVNode(" " + _toDisplayString(props.isValid !== undefined ? props.isValid ? '有效' : '无效' : '--') + " ", 1 /* TEXT */ ),
|
|
85
|
+
props.isValid !== undefined ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
|
|
86
|
+
key: 1,
|
|
87
|
+
title: "编辑数据有效性",
|
|
88
|
+
width: "291",
|
|
89
|
+
height: "177",
|
|
90
|
+
trigger: "manual",
|
|
91
|
+
"is-show": isShowEditValid.value,
|
|
92
|
+
onConfirm: handleConfirm,
|
|
93
|
+
onCancel: handleCancel
|
|
94
|
+
}, {
|
|
95
|
+
content: _withCtx(()=>[
|
|
96
|
+
_createVNode(_component_bk_radio_group, {
|
|
97
|
+
modelValue: currentValid.value,
|
|
98
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event)=>currentValid.value = $event),
|
|
99
|
+
class: "g-flex-column g-mb-24 g-mt-4"
|
|
100
|
+
}, {
|
|
101
|
+
default: _withCtx(()=>[
|
|
102
|
+
_createVNode(_component_bk_radio, {
|
|
103
|
+
class: "g-mb-12",
|
|
104
|
+
label: false,
|
|
105
|
+
onClick: _cache[4] || (_cache[4] = ($event)=>currentValid.value = false)
|
|
106
|
+
}, {
|
|
107
|
+
default: _withCtx(()=>_cache[7] || (_cache[7] = [
|
|
108
|
+
_createElementVNode("div", {
|
|
109
|
+
class: "g-flex-row g-align-items-center"
|
|
110
|
+
}, [
|
|
111
|
+
_createElementVNode("svg", {
|
|
112
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-red"
|
|
113
|
+
}, [
|
|
114
|
+
_createElementVNode("use", {
|
|
115
|
+
href: "#ai-ui-sdk-sync-failed"
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
_createTextVNode(" 无效(不参与模型训练) ")
|
|
119
|
+
], -1 /* HOISTED */ )
|
|
120
|
+
])),
|
|
121
|
+
_: 1 /* STABLE */ ,
|
|
122
|
+
__: [
|
|
123
|
+
7
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
_createVNode(_component_bk_radio, {
|
|
127
|
+
class: "radio",
|
|
128
|
+
label: true,
|
|
129
|
+
onClick: _cache[5] || (_cache[5] = ($event)=>currentValid.value = true)
|
|
130
|
+
}, {
|
|
131
|
+
default: _withCtx(()=>_cache[8] || (_cache[8] = [
|
|
132
|
+
_createElementVNode("div", {
|
|
133
|
+
class: "g-flex-row g-align-items-center"
|
|
134
|
+
}, [
|
|
135
|
+
_createElementVNode("svg", {
|
|
136
|
+
class: "g-mr-4 g-width-16 g-height-16 g-min-width-16 g-text-green"
|
|
137
|
+
}, [
|
|
138
|
+
_createElementVNode("use", {
|
|
139
|
+
href: "#ai-ui-sdk-sync-success"
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
_createTextVNode(" 有效 ")
|
|
143
|
+
], -1 /* HOISTED */ )
|
|
144
|
+
])),
|
|
145
|
+
_: 1 /* STABLE */ ,
|
|
146
|
+
__: [
|
|
147
|
+
8
|
|
148
|
+
]
|
|
149
|
+
})
|
|
150
|
+
]),
|
|
151
|
+
_: 1 /* STABLE */
|
|
152
|
+
}, 8 /* PROPS */ , [
|
|
153
|
+
"modelValue"
|
|
154
|
+
])
|
|
155
|
+
]),
|
|
156
|
+
default: _withCtx(()=>[
|
|
157
|
+
_createElementVNode("i", {
|
|
158
|
+
class: _normalizeClass({
|
|
159
|
+
'g-disabled': !handleCalcHasManagePermission(),
|
|
160
|
+
'g-ml-4 g-text-blue g-cursor-pointer bkaidev-icon bkaidev-edit-line': true
|
|
161
|
+
}),
|
|
162
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event)=>_unref(handleMouseEnter)(handleCalcHasManagePermission())),
|
|
163
|
+
onMousemove: _cache[1] || (_cache[1] = (event)=>_unref(handleMouseMove)(event, handleCalcHasManagePermission())),
|
|
164
|
+
onMouseleave: _cache[2] || (_cache[2] = //@ts-ignore
|
|
165
|
+
(...args)=>_unref(handleMouseLeave) && _unref(handleMouseLeave)(...args)),
|
|
166
|
+
onClick: _cache[3] || (_cache[3] = ($event)=>handlePermissionMouseClick(handleShowEditValid))
|
|
167
|
+
}, null, 34 /* CLASS, NEED_HYDRATION */ )
|
|
168
|
+
]),
|
|
169
|
+
_: 1 /* STABLE */
|
|
170
|
+
}, 8 /* PROPS */ , [
|
|
171
|
+
"is-show"
|
|
172
|
+
])) : _createCommentVNode("v-if", true)
|
|
173
|
+
]);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
id: number;
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
datasetId: number;
|
|
5
|
+
apiPrefix: string;
|
|
6
|
+
spaceId?: string;
|
|
7
|
+
manageDataset?: boolean;
|
|
8
|
+
isInternal?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
update: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
13
|
+
onUpdate?: () => any;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-iolcrwou] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.data-set-edit-slider .value-content[data-v-
|
|
7
|
+
.data-set-edit-slider .value-content[data-v-iolcrwou] {
|
|
8
8
|
padding: 16px;
|
|
9
9
|
border: 1px solid #DCDEE5;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
|
-
.data-set-edit-slider[data-v-
|
|
12
|
+
.data-set-edit-slider[data-v-iolcrwou] .bk-sideslider-title {
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|