@blueking/ai-ui-sdk 0.1.0-beta.1 → 0.1.0-beta.3
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-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js.js +32 -55
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +5 -5
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +10 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +7 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +4 -5
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +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.script.vue.js.js +11 -11
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +10 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +2 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +28 -23
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +62 -0
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +10 -1
- package/dist/components/render-dataset/components/search-dataset/index.vue.js +1 -2
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +62 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +11 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.js +3 -0
- package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +150 -0
- package/dist/components/render-dataset/components/search-operation-record/index.vue.d.ts +12 -0
- package/dist/components/render-dataset/components/search-operation-record/index.vue.js +3 -0
- package/dist/components/render-dataset/components/source-type-icon/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/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/edit-data/index.vue.css +8 -8
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.script.vue.js.js +27 -20
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.d.ts +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.script.vue.js.js +10 -20
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.d.ts +2 -2
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js +46 -22
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +61 -27
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +13 -3
- 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 +47 -12
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- 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/components/render-search-select/index.script.vue.js.js +127 -0
- package/dist/components/render-search-select/index.vue.d.ts +31 -0
- package/dist/components/render-search-select/index.vue.js +3 -0
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +6 -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 +8 -2
- package/dist/hooks/use-dataset-http.d.ts +3 -2
- package/dist/hooks/use-dataset-http.ts.js +26 -24
- package/dist/http/fetch/error-interceptor.d.ts +1 -1
- package/dist/http/fetch/error-interceptor.ts.js +8 -8
- package/dist/http/fetch/success-interceptor.ts.js +7 -4
- package/dist/http/helper/dataset.d.ts +7 -19
- package/dist/http/helper/dataset.ts.js +21 -53
- package/dist/types/common.d.ts +8 -0
- package/dist/types/dataset.d.ts +24 -31
- package/package.json +4 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js +0 -7
- package/dist/components/render-dataset-detail-origin-data/components/search/index.script.vue.js +0 -7
- package/dist/components/render-dataset-detail-origin-data/components/search/index.vue.d.ts +0 -2
- package/dist/components/render-dataset-detail-origin-data/components/search/index.vue.js +0 -4
package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.css
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-7lijqmir] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-7lijqmir] {
|
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-7lijqmir] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-7lijqmir] {
|
17
17
|
width: 260px;
|
18
18
|
}
|
package/dist/components/render-dataset-detail-origin-data/components/operation-record/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-7lijqmir";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/operation-record/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -41,8 +41,7 @@ import useTable from '../../../../../hooks/use-table.ts.js';
|
|
41
41
|
import { DatasetDataOperatRecordType } from '../../../../../types/enum.ts.js';
|
42
42
|
export default /*@__PURE__*/ _defineComponent({
|
43
43
|
props: {
|
44
|
-
|
45
|
-
searchParam: {},
|
44
|
+
search: {},
|
46
45
|
apiPrefix: {}
|
47
46
|
},
|
48
47
|
setup (__props) {
|
@@ -60,23 +59,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
60
59
|
[DatasetDataOperatRecordType.AutoReject]: '自动拒绝',
|
61
60
|
[DatasetDataOperatRecordType.DataCleaning]: '数据清洗'
|
62
61
|
};
|
63
|
-
const tableRef = ref();
|
64
62
|
const isShowView = ref(false);
|
65
63
|
const viewData = ref();
|
66
|
-
|
67
|
-
|
68
|
-
props.searchParam
|
69
|
-
], ()=>{
|
70
|
-
resetPagination();
|
71
|
-
triggerApi();
|
72
|
-
}, {
|
73
|
-
immediate: true,
|
74
|
-
deep: true
|
75
|
-
});
|
76
|
-
const handleGetOperateRecordList = ()=>{
|
77
|
-
return getOperateRecordList(_object_spread({
|
78
|
-
id: props.id
|
79
|
-
}, props.searchParam));
|
64
|
+
const handleGetOperateRecordList = (params)=>{
|
65
|
+
return getOperateRecordList(_object_spread({}, props.search, params));
|
80
66
|
};
|
81
67
|
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetOperateRecordList, 'results', {
|
82
68
|
current: 1,
|
@@ -84,10 +70,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
84
70
|
count: 0
|
85
71
|
});
|
86
72
|
const handleView = (row)=>{
|
87
|
-
console.log('查看操作结果', row);
|
88
73
|
isShowView.value = true;
|
89
74
|
viewData.value = row;
|
90
75
|
};
|
76
|
+
watch(()=>props.search, ()=>{
|
77
|
+
resetPagination();
|
78
|
+
triggerApi();
|
79
|
+
}, {
|
80
|
+
immediate: true,
|
81
|
+
deep: true
|
82
|
+
});
|
91
83
|
return (_ctx, _cache)=>{
|
92
84
|
const _component_bk_table_column = _resolveComponent("bk-table-column");
|
93
85
|
const _component_bk_button = _resolveComponent("bk-button");
|
@@ -95,8 +87,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
95
87
|
const _directive_bkloading = _resolveDirective("bkloading");
|
96
88
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
97
89
|
_withDirectives((_openBlock(), _createBlock(_component_bk_table, {
|
98
|
-
ref_key: "tableRef",
|
99
|
-
ref: tableRef,
|
100
90
|
"show-overflow-tooltip": "",
|
101
91
|
"remote-pagination": "",
|
102
92
|
class: "g-white-footer-table g-gray-header-table",
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import type { IOperatRecordParam } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
|
-
|
3
|
-
searchParam: any;
|
3
|
+
search: IOperatRecordParam;
|
4
4
|
apiPrefix: string;
|
5
5
|
}
|
6
6
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-y37i1bz6";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-dbqdd9ik";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js
CHANGED
@@ -1,5 +1,33 @@
|
|
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
|
-
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock,
|
30
|
+
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createBlock as _createBlock, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
3
31
|
const _hoisted_1 = {
|
4
32
|
class: "ellipsis-text"
|
5
33
|
};
|
@@ -9,7 +37,7 @@ const _hoisted_2 = {
|
|
9
37
|
const _hoisted_3 = [
|
10
38
|
"onClick"
|
11
39
|
];
|
12
|
-
import {
|
40
|
+
import { ref, watch } from 'vue';
|
13
41
|
import EditData from '../edit-data/index.vue.js';
|
14
42
|
import OperationRecord from '../operation-record/index.vue.js';
|
15
43
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
@@ -17,7 +45,9 @@ import useTable from '../../../../hooks/use-table.ts.js';
|
|
17
45
|
import { DatasetDataSourceType } from '../../../../types/enum.ts.js';
|
18
46
|
export default /*@__PURE__*/ _defineComponent({
|
19
47
|
props: {
|
20
|
-
apiPrefix: {}
|
48
|
+
apiPrefix: {},
|
49
|
+
search: {},
|
50
|
+
schema: {}
|
21
51
|
},
|
22
52
|
setup (__props) {
|
23
53
|
const props = __props;
|
@@ -32,9 +62,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
32
62
|
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
33
63
|
[DatasetDataSourceType.ManualImport]: '手动录入'
|
34
64
|
};
|
35
|
-
onBeforeMount(()=>{
|
36
|
-
triggerApi();
|
37
|
-
});
|
38
65
|
const handleEdit = (row)=>{
|
39
66
|
activeData.value = row;
|
40
67
|
isShowEditData.value = true;
|
@@ -44,21 +71,20 @@ export default /*@__PURE__*/ _defineComponent({
|
|
44
71
|
isShowOperationRecord.value = true;
|
45
72
|
};
|
46
73
|
const handleGetDatasetDataList = (params)=>{
|
47
|
-
|
48
|
-
return getDatasetDataList(params).then((res)=>{
|
49
|
-
console.log('获取数据集数据列表', res);
|
50
|
-
tableData.value = res;
|
51
|
-
}).finally(()=>{
|
52
|
-
isLoading.value = false;
|
53
|
-
});
|
74
|
+
return getDatasetDataList(_object_spread({}, props.search, params));
|
54
75
|
};
|
55
|
-
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange,
|
56
|
-
// handleSort,
|
57
|
-
triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
76
|
+
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
58
77
|
current: 1,
|
59
78
|
limit: 20,
|
60
79
|
count: 0
|
61
80
|
});
|
81
|
+
watch(()=>props.search, ()=>{
|
82
|
+
resetPagination();
|
83
|
+
triggerApi();
|
84
|
+
}, {
|
85
|
+
immediate: true,
|
86
|
+
deep: true
|
87
|
+
});
|
62
88
|
return (_ctx, _cache)=>{
|
63
89
|
var _activeData_value;
|
64
90
|
const _component_bk_table_column = _resolveComponent("bk-table-column");
|
@@ -93,9 +119,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
93
119
|
field: "id",
|
94
120
|
width: "80"
|
95
121
|
}),
|
96
|
-
|
97
|
-
key: 0
|
98
|
-
}, _renderList(_unref(tableData)[0].data, (value, key)=>{
|
122
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(Object.keys(_ctx.schema), (key)=>{
|
99
123
|
return _openBlock(), _createBlock(_component_bk_table_column, {
|
100
124
|
key: key,
|
101
125
|
prop: key,
|
@@ -109,7 +133,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
109
133
|
"prop",
|
110
134
|
"label"
|
111
135
|
]);
|
112
|
-
}), 128 /* KEYED_FRAGMENT */ ))
|
136
|
+
}), 128 /* KEYED_FRAGMENT */ )),
|
113
137
|
_createVNode(_component_bk_table_column, {
|
114
138
|
label: "数据来源",
|
115
139
|
field: "sourceType",
|
@@ -193,11 +217,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
193
217
|
_createVNode(OperationRecord, {
|
194
218
|
"is-show": isShowOperationRecord.value,
|
195
219
|
"onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShowOperationRecord.value = $event),
|
196
|
-
id: (_activeData_value = activeData.value) === null || _activeData_value === void 0 ? void 0 : _activeData_value.id,
|
220
|
+
"dataset-id": (_activeData_value = activeData.value) === null || _activeData_value === void 0 ? void 0 : _activeData_value.id,
|
197
221
|
"api-prefix": _ctx.apiPrefix
|
198
222
|
}, null, 8 /* PROPS */ , [
|
199
223
|
"is-show",
|
200
|
-
"id",
|
224
|
+
"dataset-id",
|
201
225
|
"api-prefix"
|
202
226
|
]),
|
203
227
|
_createVNode(EditData, {
|
@@ -1,5 +1,8 @@
|
|
1
|
+
import type { IDatasetDataParam } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
3
|
apiPrefix: string;
|
4
|
+
search: IDatasetDataParam;
|
5
|
+
schema: Record<string, string>;
|
3
6
|
}
|
4
7
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
8
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-l37ngd2t";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,49 +1,83 @@
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
2
|
-
import { createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock,
|
2
|
+
import { createVNode as _createVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
3
3
|
const _hoisted_1 = {
|
4
|
-
class: "origin-data-content"
|
5
|
-
};
|
6
|
-
const _hoisted_2 = {
|
7
4
|
class: "origin-data-panel"
|
8
5
|
};
|
9
|
-
const
|
6
|
+
const _hoisted_2 = {
|
10
7
|
class: "g-flex-row g-justify-between g-mb-16"
|
11
8
|
};
|
12
|
-
const
|
9
|
+
const _hoisted_3 = {
|
13
10
|
class: "g-flex-row"
|
14
11
|
};
|
12
|
+
import { onBeforeMount, ref } from 'vue';
|
13
|
+
import { useRoute } from 'vue-router';
|
15
14
|
import RenderPlusDatasetData from '../render-dataset/components/plus-dataset-data/index.vue.js';
|
15
|
+
import RenderSearchDatasetData from '../render-dataset/components/search-dataset-data/index.vue.js';
|
16
16
|
import RenderBatchOperation from './components/batch-operation/index.vue.js';
|
17
|
-
import RenderSearch from './components/search/index.vue.js';
|
18
17
|
import RenderTable from './components/table/index.vue.js';
|
18
|
+
import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
|
19
19
|
export default /*@__PURE__*/ _defineComponent({
|
20
20
|
props: {
|
21
21
|
apiPrefix: {}
|
22
22
|
},
|
23
23
|
setup (__props) {
|
24
|
+
const props = __props;
|
25
|
+
const route = useRoute();
|
26
|
+
const { getSchemaList } = useDatasetHttp(props.apiPrefix);
|
27
|
+
const search = ref({});
|
28
|
+
const schema = ref();
|
29
|
+
const loading = ref(false);
|
30
|
+
const handleInitSchema = ()=>{
|
31
|
+
loading.value = true;
|
32
|
+
getSchemaList(+route.params.id).then((schemaList)=>{
|
33
|
+
schema.value = schemaList[0].schema;
|
34
|
+
}).finally(()=>{
|
35
|
+
loading.value = false;
|
36
|
+
});
|
37
|
+
};
|
38
|
+
onBeforeMount(handleInitSchema);
|
24
39
|
return (_ctx, _cache)=>{
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
"
|
40
|
+
const _component_bk_loading = _resolveComponent("bk-loading");
|
41
|
+
return _openBlock(), _createBlock(_component_bk_loading, {
|
42
|
+
class: "origin-data-content",
|
43
|
+
loading: loading.value
|
44
|
+
}, {
|
45
|
+
default: _withCtx(()=>[
|
46
|
+
_createElementVNode("main", _hoisted_1, [
|
47
|
+
_createElementVNode("section", _hoisted_2, [
|
48
|
+
_createElementVNode("section", _hoisted_3, [
|
49
|
+
_createVNode(RenderPlusDatasetData, {
|
50
|
+
"api-prefix": _ctx.apiPrefix,
|
51
|
+
class: "g-mr-8"
|
52
|
+
}, null, 8 /* PROPS */ , [
|
53
|
+
"api-prefix"
|
54
|
+
]),
|
55
|
+
_createVNode(RenderBatchOperation)
|
56
|
+
]),
|
57
|
+
_createVNode(RenderSearchDatasetData, {
|
58
|
+
modelValue: search.value,
|
59
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>search.value = $event),
|
60
|
+
schema: schema.value,
|
61
|
+
class: "toolbar-search"
|
62
|
+
}, null, 8 /* PROPS */ , [
|
63
|
+
"modelValue",
|
64
|
+
"schema"
|
65
|
+
])
|
34
66
|
]),
|
35
|
-
_createVNode(
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
67
|
+
_createVNode(RenderTable, {
|
68
|
+
"api-prefix": _ctx.apiPrefix,
|
69
|
+
search: search.value,
|
70
|
+
schema: schema.value
|
71
|
+
}, null, 8 /* PROPS */ , [
|
72
|
+
"api-prefix",
|
73
|
+
"search",
|
74
|
+
"schema"
|
75
|
+
])
|
76
|
+
])
|
40
77
|
]),
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"api-prefix"
|
45
|
-
])
|
46
|
-
])
|
78
|
+
_: 1 /* STABLE */
|
79
|
+
}, 8 /* PROPS */ , [
|
80
|
+
"loading"
|
47
81
|
]);
|
48
82
|
};
|
49
83
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-r8hjicuc] {
|
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-r8hjicuc] {
|
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-r8hjicuc] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -12,6 +12,7 @@ const _hoisted_3 = {
|
|
12
12
|
const _hoisted_4 = {
|
13
13
|
class: "g-flex-row"
|
14
14
|
};
|
15
|
+
import { ref } from 'vue';
|
15
16
|
import RenderPlusDataset from '../../render-dataset/components/plus-dataset/index.vue.js';
|
16
17
|
import RenderPlusDatasetData from '../../render-dataset/components/plus-dataset-data/index.vue.js';
|
17
18
|
import RenderSearchDataset from '../../render-dataset/components/search-dataset/index.vue.js';
|
@@ -21,6 +22,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
21
22
|
apiPrefix: {}
|
22
23
|
},
|
23
24
|
setup (__props) {
|
25
|
+
const search = ref({});
|
24
26
|
return (_ctx, _cache)=>{
|
25
27
|
return _openBlock(), _createElementBlock("article", _hoisted_1, [
|
26
28
|
_createElementVNode("main", _hoisted_2, [
|
@@ -36,13 +38,21 @@ export default /*@__PURE__*/ _defineComponent({
|
|
36
38
|
])
|
37
39
|
]),
|
38
40
|
_createVNode(RenderSearchDataset, {
|
41
|
+
modelValue: search.value,
|
42
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>search.value = $event),
|
43
|
+
"api-prefix": _ctx.apiPrefix,
|
39
44
|
class: "main-search"
|
40
|
-
}
|
45
|
+
}, null, 8 /* PROPS */ , [
|
46
|
+
"modelValue",
|
47
|
+
"api-prefix"
|
48
|
+
])
|
41
49
|
]),
|
42
50
|
_createVNode(RenderTable, {
|
43
|
-
"api-prefix": _ctx.apiPrefix
|
51
|
+
"api-prefix": _ctx.apiPrefix,
|
52
|
+
search: search.value
|
44
53
|
}, null, 8 /* PROPS */ , [
|
45
|
-
"api-prefix"
|
54
|
+
"api-prefix",
|
55
|
+
"search"
|
46
56
|
])
|
47
57
|
])
|
48
58
|
]);
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-mw261nd1] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-mw261nd1] {
|
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-mw261nd1] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,13 +1,42 @@
|
|
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 { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives } from "vue";
|
3
|
-
import {
|
31
|
+
import { watch } from 'vue';
|
4
32
|
import { useRouter } from 'vue-router';
|
5
33
|
import { useDatasetHttp } from '../../../hooks/use-dataset-http.ts.js';
|
6
34
|
import useTable from '../../../hooks/use-table.ts.js';
|
7
35
|
import { DatasetType } from '../../../types/enum.ts.js';
|
8
36
|
export default /*@__PURE__*/ _defineComponent({
|
9
37
|
props: {
|
10
|
-
apiPrefix: {}
|
38
|
+
apiPrefix: {},
|
39
|
+
search: {}
|
11
40
|
},
|
12
41
|
setup (__props) {
|
13
42
|
const props = __props;
|
@@ -22,10 +51,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
22
51
|
[DatasetType.SingleTurnChatWithReasoning]: '单轮会话(含思考过程)'
|
23
52
|
};
|
24
53
|
const handleGetDatasetList = (params)=>{
|
25
|
-
return getDatasetList(params);
|
54
|
+
return getDatasetList(_object_spread({}, props.search, params));
|
26
55
|
};
|
27
|
-
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange,
|
28
|
-
triggerApi } = useTable(handleGetDatasetList, 'results', {
|
56
|
+
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetDatasetList, 'results', {
|
29
57
|
current: 1,
|
30
58
|
limit: 20,
|
31
59
|
count: 0
|
@@ -38,8 +66,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
38
66
|
}
|
39
67
|
});
|
40
68
|
};
|
41
|
-
|
69
|
+
watch(()=>props.search, ()=>{
|
70
|
+
resetPagination();
|
42
71
|
triggerApi();
|
72
|
+
}, {
|
73
|
+
immediate: true,
|
74
|
+
deep: true
|
43
75
|
});
|
44
76
|
return (_ctx, _cache)=>{
|
45
77
|
const _component_bk_button = _resolveComponent("bk-button");
|
@@ -88,11 +120,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
88
120
|
}),
|
89
121
|
_createVNode(_component_bk_table_column, {
|
90
122
|
label: "来源团队",
|
91
|
-
field: "
|
123
|
+
field: "companyName"
|
92
124
|
}),
|
93
125
|
_createVNode(_component_bk_table_column, {
|
94
|
-
label: "
|
95
|
-
field: "
|
126
|
+
label: "组件",
|
127
|
+
field: "componentName"
|
96
128
|
}),
|
97
129
|
_createVNode(_component_bk_table_column, {
|
98
130
|
label: "创建人",
|
@@ -137,16 +169,19 @@ export default /*@__PURE__*/ _defineComponent({
|
|
137
169
|
_createVNode(_component_bk_button, {
|
138
170
|
text: "",
|
139
171
|
theme: "primary",
|
140
|
-
class: "g-mr-16"
|
172
|
+
class: "g-mr-16",
|
173
|
+
onClick: ($event)=>goToDetail(row)
|
141
174
|
}, {
|
142
175
|
default: _withCtx(()=>_cache[2] || (_cache[2] = [
|
143
176
|
_createTextVNode(" 查看详情 ")
|
144
177
|
])),
|
145
|
-
_:
|
178
|
+
_: 2 /* DYNAMIC */ ,
|
146
179
|
__: [
|
147
180
|
2
|
148
181
|
]
|
149
|
-
}
|
182
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
183
|
+
"onClick"
|
184
|
+
]),
|
150
185
|
_createVNode(_component_bk_button, {
|
151
186
|
text: "",
|
152
187
|
theme: "primary"
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import type { IDatasetListParam } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
3
|
apiPrefix: string;
|
4
|
+
search: IDatasetListParam;
|
3
5
|
}
|
4
6
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
7
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-e0e95ec0] {
|
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-e0e95ec0]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-e0e95ec0] {
|
22
22
|
left: 0;
|
23
23
|
}
|