@blueking/ai-ui-sdk 0.1.19-beta.9 → 0.1.19
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 +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.script.vue.js.js +123 -91
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +1 -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/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/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 +34 -42
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +24 -6
- 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/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 +6 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
- 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-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +245 -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 +7 -6
- 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 +2 -2
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +11 -7
- package/dist/components/render-dataset-list/components/main.vue.css +4 -4
- package/dist/components/render-dataset-list/components/main.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +408 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +7 -2
- package/dist/components/render-dataset-list/index.vue.css +4 -1
- package/dist/components/render-dataset-list/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- 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 +10 -2
- 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-t-table/index.script.vue.js +317 -0
- package/dist/components/render-t-table/index.vue.css +196 -0
- package/dist/components/render-t-table/index.vue.d.ts +58 -0
- package/dist/components/render-t-table/index.vue.js +5 -0
- package/dist/components/render-tag-tree/index.script.vue.js.js +101 -24
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.d.ts +2 -1
- 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 +3 -1
- package/dist/components.ts.js +3 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +3 -0
- 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 +3 -0
- package/dist/css/tailwind.css +88 -10
- package/dist/hooks/use-chat.d.ts +12 -4
- package/dist/hooks/use-common-http.d.ts +5 -2
- package/dist/hooks/use-common-http.ts.js +7 -5
- package/dist/hooks/use-dataset-http.d.ts +2 -2
- package/dist/hooks/use-dataset-http.ts.js +6 -4
- package/dist/hooks/use-ellipsis-tooltip.d.ts +4 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +87 -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-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/common.ts.js +4 -4
- package/dist/http/helper/dataset.ts.js +4 -2
- package/dist/http/helper/knowledge.ts.js +9 -3
- package/dist/http/helper/tool.ts.js +5 -4
- package/dist/images/market.png +0 -0
- package/dist/types/common.d.ts +23 -0
- package/dist/types/dataset.d.ts +2 -0
- package/dist/types/knowledge.d.ts +6 -0
- package/dist/types/tool.d.ts +3 -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 -592
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
.plus-tag-input[data-v-
|
|
2
|
+
.plus-tag-input[data-v-6m1534vt] {
|
|
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-6m1534vt] {
|
|
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-6m1534vt] {
|
|
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-6m1534vt] {
|
|
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-6m1534vt] {
|
|
24
24
|
margin-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.plus-tag[data-v-
|
|
26
|
+
.plus-tag[data-v-6m1534vt] {
|
|
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-6m1534vt]:hover {
|
|
40
40
|
color: #3A84FF;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -6,6 +6,7 @@ interface IProps {
|
|
|
6
6
|
multiple?: boolean;
|
|
7
7
|
spaceId?: string;
|
|
8
8
|
isDataset?: boolean;
|
|
9
|
+
isEnabledCreateTag?: boolean;
|
|
9
10
|
popoverOptions?: Record<string, unknown>;
|
|
10
11
|
}
|
|
11
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-r6jcwmnl] {
|
|
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-r6jcwmnl] {
|
|
9
9
|
transform: rotate(-90deg);
|
|
10
10
|
}
|
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-aknq2vc8><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-aknq2vc8></i><span class=\"g-text-12 click-full-screen\" data-v-aknq2vc8>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-aknq2vc8><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-aknq2vc8></i><span class=\"g-text-12 click-un-full-screen\" data-v-aknq2vc8>取消全屏</span></span>", 2))
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-1gjubh0k] {
|
|
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-1gjubh0k] {
|
|
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-1gjubh0k] .bk-sideslider-title {
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-1gjubh0k";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
1
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
30
|
import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
31
|
const _hoisted_1 = {
|
|
@@ -50,6 +78,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
50
78
|
loading.value = false;
|
|
51
79
|
});
|
|
52
80
|
};
|
|
81
|
+
const handleSearchChange = (value)=>{
|
|
82
|
+
search.value = _object_spread({
|
|
83
|
+
resourceTypeId: 'dataset_item',
|
|
84
|
+
parentId: props.datasetId
|
|
85
|
+
}, value);
|
|
86
|
+
};
|
|
53
87
|
const handleInit = ()=>{
|
|
54
88
|
search.value = {
|
|
55
89
|
resourceTypeId: 'dataset_item',
|
|
@@ -119,7 +153,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
119
153
|
"dataset-id": _ctx.datasetId,
|
|
120
154
|
search: search.value,
|
|
121
155
|
"api-prefix": _ctx.apiPrefix,
|
|
122
|
-
"space-id": _ctx.spaceId
|
|
156
|
+
"space-id": _ctx.spaceId,
|
|
157
|
+
"onUpdate:search": handleSearchChange
|
|
123
158
|
}, null, 8 /* PROPS */ , [
|
|
124
159
|
"dataset-id",
|
|
125
160
|
"search",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-gn9q1e04] {
|
|
3
3
|
padding: 0 24px 0px 32px;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
.content .toolbar[data-v-
|
|
6
|
+
.content .toolbar[data-v-gn9q1e04] {
|
|
7
7
|
margin: 16px 0;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: right;
|
|
11
11
|
gap: 8px;
|
|
12
12
|
}
|
|
13
|
-
.content .toolbar .record-search[data-v-
|
|
13
|
+
.content .toolbar .record-search[data-v-gn9q1e04] {
|
|
14
14
|
width: 360px;
|
|
15
15
|
}
|
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
|
16
|
+
.content .toolbar .record-data-picker[data-v-gn9q1e04] {
|
|
17
17
|
width: 260px;
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-gn9q1e04";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent } from 'vue';
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
|
+
import { onBeforeMount, ref, toRef, watch } from 'vue';
|
|
4
|
+
import ViewOpResult from '../view-op-result/index.vue.js';
|
|
5
|
+
import RenderTTable from '../../../../render-t-table/index.vue.js';
|
|
6
|
+
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
|
7
|
+
import { useTTable } from '../../../../../hooks/use-t-table.ts.js';
|
|
8
|
+
import { DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
|
|
9
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
10
|
+
props: {
|
|
11
|
+
search: {},
|
|
12
|
+
apiPrefix: {},
|
|
13
|
+
spaceId: {}
|
|
14
|
+
},
|
|
15
|
+
emits: [
|
|
16
|
+
"update:search"
|
|
17
|
+
],
|
|
18
|
+
setup (__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const { getOperateRecordList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
22
|
+
const { isLoading, triggerApi, pagination, tableData, initHook, resetPagination, handlePageChange, handlePageSizeChange } = useTTable();
|
|
23
|
+
const resultCodeMap = {
|
|
24
|
+
[DatasetDataOperatRecordResultCode.Failed]: '失败',
|
|
25
|
+
[DatasetDataOperatRecordResultCode.Success]: '成功'
|
|
26
|
+
};
|
|
27
|
+
const isShowView = ref(false);
|
|
28
|
+
const viewData = ref();
|
|
29
|
+
const getColumns = ()=>[
|
|
30
|
+
{
|
|
31
|
+
colKey: 'instanceId',
|
|
32
|
+
title: '数据 ID',
|
|
33
|
+
ellipsis: true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
colKey: 'actionName',
|
|
37
|
+
title: '操作类型',
|
|
38
|
+
ellipsis: true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
colKey: 'resultCode',
|
|
42
|
+
title: '操作状态',
|
|
43
|
+
ellipsis: true,
|
|
44
|
+
cell: (h, { row })=>_createVNode2("span", {
|
|
45
|
+
"class": "g-flex-row"
|
|
46
|
+
}, [
|
|
47
|
+
_createVNode2("svg", {
|
|
48
|
+
"class": "g-mr-4 g-width-16 g-height-16 g-min-width-16"
|
|
49
|
+
}, [
|
|
50
|
+
_createVNode2("use", {
|
|
51
|
+
"href": row.resultCode === DatasetDataOperatRecordResultCode.Success ? '#ai-ui-sdk-sync-success' : '#ai-ui-sdk-sync-failed'
|
|
52
|
+
}, null)
|
|
53
|
+
]),
|
|
54
|
+
resultCodeMap[row.resultCode]
|
|
55
|
+
])
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
colKey: 'instanceData',
|
|
59
|
+
title: '操作结果',
|
|
60
|
+
ellipsis: true,
|
|
61
|
+
cell: (h, { row })=>_createVNode2("span", {
|
|
62
|
+
"class": "g-flex-row g-justify-between"
|
|
63
|
+
}, [
|
|
64
|
+
_createVNode2(_resolveComponent("bk-popover"), {
|
|
65
|
+
"arrow": false,
|
|
66
|
+
"theme": "light",
|
|
67
|
+
"placement": "left",
|
|
68
|
+
"ext-cls": "g-max-width-400 g-white-space-pre-line g-max-height-80vh g-scrollbar-page",
|
|
69
|
+
"content": _createVNode2("span", null, [
|
|
70
|
+
Object.entries(row.instanceData || {}).map(([key, value])=>_createVNode2("span", {
|
|
71
|
+
"key": key
|
|
72
|
+
}, [
|
|
73
|
+
key,
|
|
74
|
+
_createTextVNode(": "),
|
|
75
|
+
value,
|
|
76
|
+
_createTextVNode(" "),
|
|
77
|
+
_createVNode2("br", null, null)
|
|
78
|
+
]))
|
|
79
|
+
])
|
|
80
|
+
}, {
|
|
81
|
+
default: ()=>[
|
|
82
|
+
_createVNode2("span", {
|
|
83
|
+
"class": "btn-text g-max-truncate"
|
|
84
|
+
}, [
|
|
85
|
+
Object.entries(row.instanceData || {}).map(([key, value])=>_createVNode2("span", {
|
|
86
|
+
"key": key
|
|
87
|
+
}, [
|
|
88
|
+
key,
|
|
89
|
+
_createTextVNode(": "),
|
|
90
|
+
value,
|
|
91
|
+
_createTextVNode(" "),
|
|
92
|
+
_createVNode2("br", null, null)
|
|
93
|
+
]))
|
|
94
|
+
])
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
_createVNode2(_resolveComponent("bk-button"), {
|
|
98
|
+
"text": true,
|
|
99
|
+
"theme": "primary",
|
|
100
|
+
"onClick": ()=>handleView(row)
|
|
101
|
+
}, {
|
|
102
|
+
default: ()=>[
|
|
103
|
+
_createTextVNode("[\u67E5\u770B]")
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
])
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
colKey: 'username',
|
|
110
|
+
title: '操作人',
|
|
111
|
+
ellipsis: true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
colKey: 'endTime',
|
|
115
|
+
title: '操作时间',
|
|
116
|
+
ellipsis: true
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
const handleGetOperateRecordList = (page)=>{
|
|
120
|
+
return getOperateRecordList(Object.assign(Object.assign({}, props.search), page));
|
|
121
|
+
};
|
|
122
|
+
const handleView = (row)=>{
|
|
123
|
+
isShowView.value = true;
|
|
124
|
+
viewData.value = row;
|
|
125
|
+
};
|
|
126
|
+
const handleSearch = (search)=>{
|
|
127
|
+
emit('update:search', search);
|
|
128
|
+
};
|
|
129
|
+
watch(()=>props.search, ()=>{
|
|
130
|
+
resetPagination();
|
|
131
|
+
triggerApi();
|
|
132
|
+
}, {
|
|
133
|
+
deep: true
|
|
134
|
+
});
|
|
135
|
+
onBeforeMount(()=>{
|
|
136
|
+
initHook(handleGetOperateRecordList, true);
|
|
137
|
+
triggerApi();
|
|
138
|
+
});
|
|
139
|
+
return (_ctx, _cache)=>{
|
|
140
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
141
|
+
_createVNode(RenderTTable, {
|
|
142
|
+
"row-key": "instanceId",
|
|
143
|
+
class: "g-white-footer-table g-gray-header-table",
|
|
144
|
+
height: "calc(100vh - 140px)",
|
|
145
|
+
"row-class-name": "g-height-70",
|
|
146
|
+
search: _ctx.search,
|
|
147
|
+
pagination: _unref(pagination),
|
|
148
|
+
columns: getColumns(),
|
|
149
|
+
"is-loading": _unref(isLoading),
|
|
150
|
+
"table-data": _unref(tableData),
|
|
151
|
+
onPageChange: _unref(handlePageChange),
|
|
152
|
+
onPageSizeChange: _unref(handlePageSizeChange),
|
|
153
|
+
"onUpdate:search": handleSearch
|
|
154
|
+
}, null, 8 /* PROPS */ , [
|
|
155
|
+
"search",
|
|
156
|
+
"pagination",
|
|
157
|
+
"columns",
|
|
158
|
+
"is-loading",
|
|
159
|
+
"table-data",
|
|
160
|
+
"onPageChange",
|
|
161
|
+
"onPageSizeChange"
|
|
162
|
+
]),
|
|
163
|
+
_createVNode(ViewOpResult, {
|
|
164
|
+
"is-show": isShowView.value,
|
|
165
|
+
"onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShowView.value = $event),
|
|
166
|
+
data: viewData.value
|
|
167
|
+
}, null, 8 /* PROPS */ , [
|
|
168
|
+
"is-show",
|
|
169
|
+
"data"
|
|
170
|
+
])
|
|
171
|
+
], 64 /* STABLE_FRAGMENT */ );
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
@@ -4,6 +4,10 @@ interface IProps {
|
|
|
4
4
|
apiPrefix: string;
|
|
5
5
|
spaceId?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:search": (search: IOperatRecordParam) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
10
|
+
"onUpdate:search"?: (search: IOperatRecordParam) => any;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
12
|
declare const _default: typeof __VLS_export;
|
|
9
13
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import script from './index.script.vue.js
|
|
2
|
-
script.__scopeId = "data-v-
|
|
1
|
+
import script from './index.script.vue.js';
|
|
2
|
+
script.__scopeId = "data-v-q68ce2l1";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-rvtff38p] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.content .value-content[data-v-
|
|
7
|
+
.content .value-content[data-v-rvtff38p] {
|
|
8
8
|
margin-top: 8px;
|
|
9
9
|
padding: 16px;
|
|
10
10
|
border: 1px solid #DCDEE5;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-rvtff38p";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
|
4
4
|
import './index.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _defineComponent, createVNode as _createVNode2 } from 'vue';
|
|
1
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2, resolveComponent as _resolveComponent2 } from 'vue';
|
|
2
2
|
import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
class: "g-width-full"
|
|
@@ -9,6 +9,7 @@ const _hoisted_2 = {
|
|
|
9
9
|
import { onBeforeMount, ref, toRef } from 'vue';
|
|
10
10
|
import RenderAutoHeightTextarea from '../../../render-auto-height-textarea/index.vue.js';
|
|
11
11
|
import RenderChooseTag from '../../../render-choose-tag/index.vue.js';
|
|
12
|
+
import RenderTTable from '../../../render-t-table/index.vue.js';
|
|
12
13
|
import { Module } from '../../../../enums.ts.js';
|
|
13
14
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
|
14
15
|
import { useFormRule } from '../../../../hooks/use-form-rule.ts.js';
|
|
@@ -46,15 +47,30 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
46
47
|
const schemaList = ref();
|
|
47
48
|
const renderSchema = ref();
|
|
48
49
|
const formRef = ref();
|
|
50
|
+
const getColumns = ()=>Object.keys(renderSchema.value || {}).map((key)=>({
|
|
51
|
+
colKey: key,
|
|
52
|
+
title: key,
|
|
53
|
+
ellipsis: false,
|
|
54
|
+
cell: (h, { row })=>_createVNode2(_resolveComponent2("bk-popover"), {
|
|
55
|
+
"arrow": false,
|
|
56
|
+
"theme": "light",
|
|
57
|
+
"placement": "left",
|
|
58
|
+
"ext-cls": "g-max-width-400 g-white-space-pre-line g-max-height-80vh g-scrollbar-page",
|
|
59
|
+
"content": _createVNode2("section", null, [
|
|
60
|
+
row[key]
|
|
61
|
+
])
|
|
62
|
+
}, {
|
|
63
|
+
default: ()=>[
|
|
64
|
+
_createVNode2("section", {
|
|
65
|
+
"class": "g-max-truncate"
|
|
66
|
+
}, [
|
|
67
|
+
row[key]
|
|
68
|
+
])
|
|
69
|
+
]
|
|
70
|
+
})
|
|
71
|
+
}));
|
|
49
72
|
const validate = ()=>formRef.value.validate();
|
|
50
73
|
const clearValidate = ()=>formRef.value.clearValidate();
|
|
51
|
-
const getTooltipContent = (value)=>{
|
|
52
|
-
return _createVNode2("section", {
|
|
53
|
-
"class": "g-white-space-pre-line g-max-height-80vh g-scrollbar-page"
|
|
54
|
-
}, [
|
|
55
|
-
value
|
|
56
|
-
]);
|
|
57
|
-
};
|
|
58
74
|
const handleChange = (key, value)=>{
|
|
59
75
|
// 选择类型的时候,需要更新一下schema
|
|
60
76
|
if (key === 'type') {
|
|
@@ -96,8 +112,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
96
112
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
97
113
|
const _component_bk_option = _resolveComponent("bk-option");
|
|
98
114
|
const _component_bk_select = _resolveComponent("bk-select");
|
|
99
|
-
const _component_bk_table_column = _resolveComponent("bk-table-column");
|
|
100
|
-
const _component_bk_table = _resolveComponent("bk-table");
|
|
101
115
|
const _component_bk_cascader = _resolveComponent("bk-cascader");
|
|
102
116
|
const _component_bk_form = _resolveComponent("bk-form");
|
|
103
117
|
return _openBlock(), _createBlock(_component_bk_form, {
|
|
@@ -220,41 +234,18 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
220
234
|
label: "schema 预览"
|
|
221
235
|
}, {
|
|
222
236
|
default: _withCtx(()=>[
|
|
223
|
-
_createVNode(
|
|
237
|
+
_createVNode(RenderTTable, {
|
|
224
238
|
class: "cooperation-table",
|
|
225
|
-
|
|
239
|
+
"row-key": Object.keys(renderSchema.value || {})[0],
|
|
240
|
+
bordered: true,
|
|
241
|
+
columns: getColumns(),
|
|
242
|
+
"table-data": [
|
|
226
243
|
renderSchema.value
|
|
227
|
-
],
|
|
228
|
-
border: [
|
|
229
|
-
'row',
|
|
230
|
-
'col',
|
|
231
|
-
'outer'
|
|
232
244
|
]
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
key: key,
|
|
238
|
-
label: key,
|
|
239
|
-
prop: key,
|
|
240
|
-
"show-overflow-tooltip": {
|
|
241
|
-
content: getTooltipContent(value),
|
|
242
|
-
popoverOption: {
|
|
243
|
-
maxWidth: 400,
|
|
244
|
-
placement: 'left',
|
|
245
|
-
theme: 'light'
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}, null, 8 /* PROPS */ , [
|
|
249
|
-
"label",
|
|
250
|
-
"prop",
|
|
251
|
-
"show-overflow-tooltip"
|
|
252
|
-
]);
|
|
253
|
-
}), 128 /* KEYED_FRAGMENT */ ))
|
|
254
|
-
]),
|
|
255
|
-
_: 1 /* STABLE */
|
|
256
|
-
}, 8 /* PROPS */ , [
|
|
257
|
-
"data"
|
|
245
|
+
}, null, 8 /* PROPS */ , [
|
|
246
|
+
"row-key",
|
|
247
|
+
"columns",
|
|
248
|
+
"table-data"
|
|
258
249
|
])
|
|
259
250
|
]),
|
|
260
251
|
_: 1 /* STABLE */
|
|
@@ -288,6 +279,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
288
279
|
"api-prefix": _ctx.apiPrefix,
|
|
289
280
|
"space-id": _ctx.spaceId,
|
|
290
281
|
"is-dataset": true,
|
|
282
|
+
"is-enabled-create-tag": true,
|
|
291
283
|
multiple: true,
|
|
292
284
|
"model-value": _ctx.formData.tagNames,
|
|
293
285
|
module: _unref(Module).Dataset,
|
|
@@ -27,12 +27,21 @@ function _object_spread(target) {
|
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
30
|
-
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
30
|
+
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
31
31
|
const _hoisted_1 = {
|
|
32
|
-
|
|
33
|
-
class: "g-text-gray g-text-14 g-ml-6"
|
|
32
|
+
class: "g-flex-row"
|
|
34
33
|
};
|
|
35
34
|
const _hoisted_2 = {
|
|
35
|
+
class: "title"
|
|
36
|
+
};
|
|
37
|
+
const _hoisted_3 = {
|
|
38
|
+
class: "g-text-14 g-text-gray"
|
|
39
|
+
};
|
|
40
|
+
const _hoisted_4 = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "g-text-gray g-text-14 g-ml-6"
|
|
43
|
+
};
|
|
44
|
+
const _hoisted_5 = {
|
|
36
45
|
key: 0,
|
|
37
46
|
class: "dataset-data-content"
|
|
38
47
|
};
|
|
@@ -108,8 +117,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
108
117
|
class: "dataset-data-slider"
|
|
109
118
|
}, {
|
|
110
119
|
header: _withCtx(()=>[
|
|
111
|
-
_createElementVNode("
|
|
112
|
-
|
|
120
|
+
_createElementVNode("section", _hoisted_1, [
|
|
121
|
+
_createElementVNode("span", _hoisted_2, _toDisplayString(_ctx.dataset ? '编辑数据集' : '创建数据集'), 1 /* TEXT */ ),
|
|
122
|
+
_ctx.dataset ? (_openBlock(), _createElementBlock(_Fragment, {
|
|
123
|
+
key: 0
|
|
124
|
+
}, [
|
|
125
|
+
_cache[1] || (_cache[1] = _createElementVNode("span", {
|
|
126
|
+
class: "g-gap g-ml-14 g-mr-8"
|
|
127
|
+
}, null, -1 /* HOISTED */ )),
|
|
128
|
+
_createElementVNode("span", _hoisted_3, _toDisplayString(formData.value.datasetName), 1 /* TEXT */ )
|
|
129
|
+
], 64 /* STABLE_FRAGMENT */ )) : (_openBlock(), _createElementBlock("span", _hoisted_4, " 用于对模型进行预训练、微调、偏好对齐、预估等 "))
|
|
130
|
+
])
|
|
113
131
|
]),
|
|
114
132
|
footer: _withCtx(()=>{
|
|
115
133
|
var _ctx_dataset;
|
|
@@ -133,7 +151,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
133
151
|
default: _withCtx(()=>{
|
|
134
152
|
var _ctx_dataset;
|
|
135
153
|
return [
|
|
136
|
-
formData.value ? (_openBlock(), _createElementBlock("section",
|
|
154
|
+
formData.value ? (_openBlock(), _createElementBlock("section", _hoisted_5, [
|
|
137
155
|
_createVNode(DatasetForm, {
|
|
138
156
|
ref_key: "formRef",
|
|
139
157
|
ref: formRef,
|