@blueking/ai-ui-sdk 0.1.19-beta.3 → 0.1.19-beta.30
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 +17 -0
- package/dist/common/util.ts.js +33 -0
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +26 -25
- package/dist/components/render-auth/auth-dialog.vue.d.ts +2 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.d.ts +2 -1
- 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.d.ts +2 -1
- 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.d.ts +2 -1
- 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 +6 -1
- 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.d.ts +3 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-level/index.vue.d.ts +2 -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-status/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.d.ts +2 -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.d.ts +2 -1
- 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.d.ts +2 -1
- 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 +173 -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 +6 -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.d.ts +2 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +39 -44
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +4 -2
- 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 +4 -3
- 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.d.ts +2 -1
- 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/category.vue.d.ts +2 -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/dataset.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +2 -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.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +4 -2
- 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 +5 -3
- 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.d.ts +2 -1
- 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 +3 -1
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/search-operation-record/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/source-type-icon/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/index.script.vue.js +5 -0
- package/dist/components/render-dataset/index.vue.d.ts +2 -6
- package/dist/components/render-dataset/index.vue.js +2 -3
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +4 -2
- package/dist/components/render-dataset-detail/components/tab.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -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 +7 -3
- 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.d.ts +2 -1
- 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 +68 -0
- package/dist/components/render-dataset-list/components/header.vue.d.ts +17 -0
- package/dist/components/render-dataset-list/components/header.vue.js +3 -0
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +46 -16
- package/dist/components/render-dataset-list/components/main.vue.css +5 -5
- package/dist/components/render-dataset-list/components/main.vue.d.ts +16 -6
- 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 +17 -3
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +117 -20
- package/dist/components/render-dataset-list/index.vue.css +8 -0
- package/dist/components/render-dataset-list/index.vue.d.ts +3 -8
- package/dist/components/render-dataset-list/index.vue.js +2 -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.d.ts +8 -7
- 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.d.ts +2 -1
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +32 -4
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.d.ts +5 -3
- 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.d.ts +6 -5
- 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.d.ts +2 -1
- 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.vue.d.ts +8 -7
- package/dist/components/render-t-table/index.script.vue.js +316 -0
- package/dist/components/render-t-table/index.vue.css +207 -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 +156 -0
- package/dist/components/render-tag-tree/index.vue.css +30 -0
- package/dist/components/render-tag-tree/index.vue.d.ts +23 -0
- package/dist/components/render-tag-tree/index.vue.js +5 -0
- package/dist/components/render-tree/index.script.vue.js +171 -0
- package/dist/components/render-tree/index.vue.css +24 -0
- package/dist/components/render-tree/index.vue.d.ts +46 -0
- package/dist/components/render-tree/index.vue.js +4 -0
- package/dist/components.d.ts +5 -1
- package/dist/components.ts.js +5 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +9 -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 +9 -0
- package/dist/css/tailwind.css +85 -11
- package/dist/hooks/use-chat.d.ts +14 -4
- package/dist/hooks/use-common-http.d.ts +8 -0
- package/dist/hooks/use-common-http.ts.js +18 -0
- package/dist/hooks/use-dataset-http.d.ts +4 -3
- package/dist/hooks/use-dataset-http.ts.js +9 -5
- 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 +86 -0
- package/dist/hooks/use-table.d.ts +2 -7
- package/dist/hooks/use-table.ts.js +3 -3
- 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.d.ts +25 -0
- package/dist/http/helper/common.ts.js +45 -0
- package/dist/http/helper/dataset.ts.js +14 -19
- 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/common.d.ts +60 -4
- package/dist/types/dataset.d.ts +14 -10
- package/dist/types/enum.d.ts +8 -2
- package/dist/types/enum.ts.js +8 -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 +12 -3
- package/dist/components/render-aside/index.script.vue.js +0 -69
- package/dist/components/render-aside/index.vue.css +0 -49
- package/dist/components/render-aside/index.vue.d.ts +0 -26
- package/dist/components/render-aside/index.vue.js +0 -5
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset/index.script.vue.js.js +0 -126
- package/dist/components/render-dataset/index.vue.css +0 -6
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -559
- package/dist/components/render-expand-collapse/index.script.vue.js.js +0 -33
- package/dist/components/render-expand-collapse/index.vue.css +0 -23
- package/dist/components/render-expand-collapse/index.vue.d.ts +0 -12
- package/dist/components/render-expand-collapse/index.vue.js +0 -5
|
@@ -10,7 +10,7 @@ export declare const useMetaHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
10
10
|
data: boolean;
|
|
11
11
|
message: string;
|
|
12
12
|
}>;
|
|
13
|
-
getTags: () => Promise<import("@/types/meta").ITag[]>;
|
|
14
|
-
plusTag: (tagNames: string[][]) => Promise<ITagApi>;
|
|
15
|
-
checkTag: (tagNames: string[][]) => Promise<boolean>;
|
|
13
|
+
getTags: (module: Module) => Promise<import("@/types/meta").ITag[]>;
|
|
14
|
+
plusTag: (tagNames: string[][], module: Module) => Promise<ITagApi>;
|
|
15
|
+
checkTag: (tagNames: string[][], module: Module) => Promise<boolean>;
|
|
16
16
|
};
|
|
@@ -51,14 +51,17 @@ export const useMetaHttp = (apiPrefix, spaceId)=>{
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
// 获取tag列表
|
|
54
|
-
const getTags = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/tag/`,
|
|
54
|
+
const getTags = (module)=>fetch.get(`${apiPrefix}/${metaPerfix}/tag/`, {
|
|
55
|
+
scope_name: module
|
|
56
|
+
}, {
|
|
55
57
|
headers: {
|
|
56
58
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
57
59
|
}
|
|
58
60
|
}).then((result)=>result.map(transferTagApi2Tag));
|
|
59
61
|
// 新增 tag
|
|
60
|
-
const plusTag = (tagNames)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/`, {
|
|
61
|
-
tag_names: tagNames
|
|
62
|
+
const plusTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/`, {
|
|
63
|
+
tag_names: tagNames,
|
|
64
|
+
scope_name: module
|
|
62
65
|
}, {
|
|
63
66
|
globalError: false,
|
|
64
67
|
headers: {
|
|
@@ -66,8 +69,9 @@ export const useMetaHttp = (apiPrefix, spaceId)=>{
|
|
|
66
69
|
}
|
|
67
70
|
});
|
|
68
71
|
// check tag
|
|
69
|
-
const checkTag = (tagNames)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/check/`, {
|
|
70
|
-
tag_names: tagNames
|
|
72
|
+
const checkTag = (tagNames, module)=>fetch.post(`${apiPrefix}/${metaPerfix}/tag/check/`, {
|
|
73
|
+
tag_names: tagNames,
|
|
74
|
+
scope_name: module
|
|
71
75
|
}, {
|
|
72
76
|
globalError: false,
|
|
73
77
|
headers: {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IPagination, IPaginationParam, ISortParam, ITTableSort } from '@/types/common';
|
|
2
|
+
import { OrderMethod } from '@/types/enum';
|
|
3
|
+
interface IPaginatedApiResult<T> {
|
|
4
|
+
results?: T;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useTTable: <T>() => {
|
|
8
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
9
|
+
initHook: (callBackFn: (search: IPaginationParam & ISortParam) => Promise<IPaginatedApiResult<T> | T>, isShowPagination: boolean) => void;
|
|
10
|
+
sort: import("vue").Ref<{
|
|
11
|
+
descending?: OrderMethod;
|
|
12
|
+
sortKey?: string;
|
|
13
|
+
}, ITTableSort | {
|
|
14
|
+
descending?: OrderMethod;
|
|
15
|
+
sortKey?: string;
|
|
16
|
+
}>;
|
|
17
|
+
handleSortChange: (config: {
|
|
18
|
+
descending: boolean;
|
|
19
|
+
}, { col }: {
|
|
20
|
+
col: {
|
|
21
|
+
sortKey: string;
|
|
22
|
+
};
|
|
23
|
+
}) => void;
|
|
24
|
+
triggerApi: () => void;
|
|
25
|
+
pagination: import("vue").Ref<{
|
|
26
|
+
current: number;
|
|
27
|
+
limit: number;
|
|
28
|
+
count: number;
|
|
29
|
+
}, IPagination | {
|
|
30
|
+
current: number;
|
|
31
|
+
limit: number;
|
|
32
|
+
count: number;
|
|
33
|
+
}>;
|
|
34
|
+
resetPagination: () => void;
|
|
35
|
+
tableData: [[] | T] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<import("vue").Ref<any, any> & ([] | T), import("vue").Ref<any, any> & ([] | T)>, import("vue").Ref<any, any> & ([] | T)> : import("vue").Ref<[] | import("vue").UnwrapRef<T>, [] | T | import("vue").UnwrapRef<T>>;
|
|
36
|
+
handlePageChange: (current: number) => void;
|
|
37
|
+
handlePageSizeChange: (pageSize: number) => void;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import { OrderMethod } from '../types/enum.ts.js';
|
|
3
|
+
export const useTTable = ()=>{
|
|
4
|
+
const isLoading = ref(false);
|
|
5
|
+
const isPagination = ref(false);
|
|
6
|
+
let callBack;
|
|
7
|
+
const sort = ref({});
|
|
8
|
+
const tableData = ref([]);
|
|
9
|
+
const pagination = ref({
|
|
10
|
+
current: 1,
|
|
11
|
+
limit: 20,
|
|
12
|
+
count: 0
|
|
13
|
+
});
|
|
14
|
+
// 更新数据
|
|
15
|
+
const triggerApi = ()=>{
|
|
16
|
+
if (!callBack) {
|
|
17
|
+
console.error('先调用initHook初始化回调函数');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
isLoading.value = true;
|
|
21
|
+
callBack({
|
|
22
|
+
page: pagination.value.current,
|
|
23
|
+
pageSize: pagination.value.limit,
|
|
24
|
+
orderBy: sort.value.sortKey,
|
|
25
|
+
orderMethod: sort.value.descending
|
|
26
|
+
}).then((apiResult)=>{
|
|
27
|
+
if (isPagination.value) {
|
|
28
|
+
tableData.value = apiResult.results;
|
|
29
|
+
pagination.value.count = apiResult.count;
|
|
30
|
+
} else {
|
|
31
|
+
tableData.value = apiResult;
|
|
32
|
+
}
|
|
33
|
+
}).finally(()=>{
|
|
34
|
+
isLoading.value = false;
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const initHook = (callBackFn, isShowPagination)=>{
|
|
38
|
+
callBack = callBackFn;
|
|
39
|
+
isPagination.value = isShowPagination;
|
|
40
|
+
};
|
|
41
|
+
// sortKey 为必传
|
|
42
|
+
const handleSortChange = (config, { col })=>{
|
|
43
|
+
if (!config) {
|
|
44
|
+
sort.value = {};
|
|
45
|
+
return triggerApi();
|
|
46
|
+
}
|
|
47
|
+
const { descending } = config;
|
|
48
|
+
sort.value = {
|
|
49
|
+
sortKey: col.sortKey,
|
|
50
|
+
descending: descending ? OrderMethod.Desc : OrderMethod.Asc
|
|
51
|
+
};
|
|
52
|
+
triggerApi();
|
|
53
|
+
};
|
|
54
|
+
// 分页器 当前页变化处理
|
|
55
|
+
const handlePageChange = (current)=>{
|
|
56
|
+
if (pagination.value.current === current) return;
|
|
57
|
+
pagination.value.current = current;
|
|
58
|
+
triggerApi();
|
|
59
|
+
};
|
|
60
|
+
// 分页器 页码大小变化处理
|
|
61
|
+
const handlePageSizeChange = (pageSize)=>{
|
|
62
|
+
if (pagination.value.limit === pageSize) return;
|
|
63
|
+
pagination.value.limit = pageSize;
|
|
64
|
+
pagination.value.current = 1;
|
|
65
|
+
triggerApi();
|
|
66
|
+
};
|
|
67
|
+
const resetPagination = ()=>{
|
|
68
|
+
pagination.value = {
|
|
69
|
+
current: 1,
|
|
70
|
+
limit: 20,
|
|
71
|
+
count: 0
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
isLoading,
|
|
76
|
+
initHook,
|
|
77
|
+
sort,
|
|
78
|
+
handleSortChange,
|
|
79
|
+
triggerApi,
|
|
80
|
+
pagination,
|
|
81
|
+
resetPagination,
|
|
82
|
+
tableData,
|
|
83
|
+
handlePageChange,
|
|
84
|
+
handlePageSizeChange
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
limit: number;
|
|
4
|
-
order_by: string;
|
|
5
|
-
order_method: string;
|
|
6
|
-
}
|
|
7
|
-
type CallBack = (params: CallBackParams) => Promise<unknown>;
|
|
1
|
+
import type { IPaginationParam, ISortParam } from '@/types/common';
|
|
2
|
+
type CallBack = (params: IPaginationParam & ISortParam) => Promise<unknown>;
|
|
8
3
|
declare const _default: <T>(callBack: CallBack, key?: string, defaultPagination?: {
|
|
9
4
|
current: number;
|
|
10
5
|
limit: number;
|
|
@@ -23,9 +23,9 @@ export default ((callBack, key = 'results', defaultPagination = {
|
|
|
23
23
|
// 拉取数据
|
|
24
24
|
return callBack({
|
|
25
25
|
page: pagination.value.current,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
pageSize: pagination.value.limit,
|
|
27
|
+
orderBy: sort.value,
|
|
28
|
+
orderMethod: order.value
|
|
29
29
|
}).then((listResult)=>{
|
|
30
30
|
tableData.value = (listResult === null || listResult === void 0 ? void 0 : listResult[key]) || [];
|
|
31
31
|
pagination.value.count = (listResult === null || listResult === void 0 ? void 0 : listResult.count) || 0;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -7,3 +7,6 @@ export * from './hooks/use-table';
|
|
|
7
7
|
export * from './hooks/use-permission';
|
|
8
8
|
export * from './hooks/use-think';
|
|
9
9
|
export * from './hooks/use-reference-doc';
|
|
10
|
+
export * from './hooks/use-member-http';
|
|
11
|
+
export * from './hooks/use-t-table';
|
|
12
|
+
export * from './hooks/use-ellipsis-tooltip';
|
package/dist/hooks.ts.js
CHANGED
|
@@ -7,3 +7,6 @@ export * from './hooks/use-table.ts.js';
|
|
|
7
7
|
export * from './hooks/use-permission.ts.js';
|
|
8
8
|
export * from './hooks/use-think.ts.js';
|
|
9
9
|
export * from './hooks/use-reference-doc.ts.js';
|
|
10
|
+
export * from './hooks/use-member-http.ts.js';
|
|
11
|
+
export * from './hooks/use-t-table.ts.js';
|
|
12
|
+
export * from './hooks/use-ellipsis-tooltip.ts.js';
|
|
@@ -82,7 +82,7 @@ function _object_spread_props(target, source) {
|
|
|
82
82
|
import errorInterceptor from './error-interceptor.ts.js';
|
|
83
83
|
import RequestError from './request-error.ts.js';
|
|
84
84
|
import successInterceptor from './success-interceptor.ts.js';
|
|
85
|
-
import { deepMerge, getCookies } from '../../common/util.ts.js';
|
|
85
|
+
import { deepMerge, getCookies, getTraceparent } from '../../common/util.ts.js';
|
|
86
86
|
// Content-Type
|
|
87
87
|
const contentTypeMap = {
|
|
88
88
|
json: 'application/json',
|
|
@@ -108,7 +108,8 @@ const allMethods = [
|
|
|
108
108
|
const getFetchConfig = (method, payload, config)=>{
|
|
109
109
|
const headers = {
|
|
110
110
|
'X-Requested-With': 'fetch',
|
|
111
|
-
'X-CSRFToken': getCookies('aidev_csrftoken') || ''
|
|
111
|
+
'X-CSRFToken': getCookies('aidev_csrftoken') || '',
|
|
112
|
+
traceparent: getTraceparent()
|
|
112
113
|
};
|
|
113
114
|
if (config.requestType !== 'formData') {
|
|
114
115
|
headers['Content-Type'] = contentTypeMap[config.requestType] || 'application/json';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IPaginationParam, IPaginationParamApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi } from '@/types/common';
|
|
2
|
+
/**
|
|
3
|
+
* 接口转换为ui使用
|
|
4
|
+
* @param data ITagsTreeApi
|
|
5
|
+
* @returns ITagsTree
|
|
6
|
+
*/
|
|
7
|
+
export declare const transferTagTreeApiToTagTree: (data: ITagTreeApi) => ITagTree;
|
|
8
|
+
/**
|
|
9
|
+
* 接口转换为ui使用
|
|
10
|
+
* @param data ITagsTreeNodeApi
|
|
11
|
+
* @returns ITagsTreeNode
|
|
12
|
+
*/
|
|
13
|
+
export declare const transferTagTreeNodeApiToTagTreeNode: (data: ITagTreeNodeApi) => ITagTreeNode;
|
|
14
|
+
/**
|
|
15
|
+
* ui转换为接口使用
|
|
16
|
+
* @param data IPaginationParam
|
|
17
|
+
* @returns IPaginationParamApi
|
|
18
|
+
*/
|
|
19
|
+
export declare const transferIPaginationParamToIPaginationParamApi: (data: IPaginationParam) => IPaginationParamApi;
|
|
20
|
+
/**
|
|
21
|
+
* ui转换为接口使用
|
|
22
|
+
* @param data ISortParam
|
|
23
|
+
* @returns ISortParamApi
|
|
24
|
+
*/
|
|
25
|
+
export declare const transferISortParamToISortParamApi: (data: ISortParam) => ISortParamApi;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 接口转换为ui使用
|
|
3
|
+
* @param data ITagsTreeApi
|
|
4
|
+
* @returns ITagsTree
|
|
5
|
+
*/ export const transferTagTreeApiToTagTree = (data)=>{
|
|
6
|
+
return {
|
|
7
|
+
all: data.all,
|
|
8
|
+
tree: data.tree.map(transferTagTreeNodeApiToTagTreeNode)
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 接口转换为ui使用
|
|
13
|
+
* @param data ITagsTreeNodeApi
|
|
14
|
+
* @returns ITagsTreeNode
|
|
15
|
+
*/ export const transferTagTreeNodeApiToTagTreeNode = (data)=>{
|
|
16
|
+
var _data_children;
|
|
17
|
+
return {
|
|
18
|
+
tagName: data.tag_name,
|
|
19
|
+
tagId: data.tag_id,
|
|
20
|
+
count: data.count,
|
|
21
|
+
level: data.level,
|
|
22
|
+
property: data.property,
|
|
23
|
+
children: (_data_children = data.children) === null || _data_children === void 0 ? void 0 : _data_children.map(transferTagTreeNodeApiToTagTreeNode)
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* ui转换为接口使用
|
|
28
|
+
* @param data IPaginationParam
|
|
29
|
+
* @returns IPaginationParamApi
|
|
30
|
+
*/ export const transferIPaginationParamToIPaginationParamApi = (data)=>{
|
|
31
|
+
return {
|
|
32
|
+
page: data === null || data === void 0 ? void 0 : data.page,
|
|
33
|
+
page_size: data === null || data === void 0 ? void 0 : data.pageSize
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* ui转换为接口使用
|
|
38
|
+
* @param data ISortParam
|
|
39
|
+
* @returns ISortParamApi
|
|
40
|
+
*/ export const transferISortParamToISortParamApi = (data)=>{
|
|
41
|
+
return {
|
|
42
|
+
order_by: data === null || data === void 0 ? void 0 : data.orderBy,
|
|
43
|
+
order_method: data === null || data === void 0 ? void 0 : data.orderMethod
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -77,6 +77,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
+
import { transferIPaginationParamToIPaginationParamApi, transferISortParamToISortParamApi } from './common.ts.js';
|
|
80
81
|
import { transferResourcePermission } from './permission.ts.js';
|
|
81
82
|
/**
|
|
82
83
|
* 接口转换为ui使用
|
|
@@ -168,27 +169,21 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
168
169
|
* @param data IDatasetListParam
|
|
169
170
|
* @returns IDatasetListParamApi
|
|
170
171
|
*/ export const transferDatasetListParam2DatasetListParamApi = (data)=>{
|
|
171
|
-
return {
|
|
172
|
-
ordering: data === null || data === void 0 ? void 0 : data.ordering,
|
|
172
|
+
return _object_spread_props(_object_spread({}, transferIPaginationParamToIPaginationParamApi(data), transferISortParamToISortParamApi(data)), {
|
|
173
173
|
company_name: data === null || data === void 0 ? void 0 : data.companyName,
|
|
174
174
|
dataset_name: data === null || data === void 0 ? void 0 : data.datasetName,
|
|
175
|
+
dataset_code: data === null || data === void 0 ? void 0 : data.datasetCode,
|
|
175
176
|
type: data === null || data === void 0 ? void 0 : data.type,
|
|
176
177
|
component_ids: data === null || data === void 0 ? void 0 : data.componentIds,
|
|
177
178
|
created_by: data === null || data === void 0 ? void 0 : data.createdBy,
|
|
178
179
|
fuzzy: data === null || data === void 0 ? void 0 : data.fuzzy,
|
|
179
180
|
description: data === null || data === void 0 ? void 0 : data.description,
|
|
180
181
|
tag_name: data === null || data === void 0 ? void 0 : data.tagName,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
datasetItemUnreviewedCount: 'dataset_item_unreviewed_count',
|
|
187
|
-
createdAt: 'created_at'
|
|
188
|
-
})[data.order_by] : undefined,
|
|
189
|
-
order_method: data === null || data === void 0 ? void 0 : data.order_method,
|
|
190
|
-
source_type: data === null || data === void 0 ? void 0 : data.sourceType
|
|
191
|
-
};
|
|
182
|
+
group_type: data === null || data === void 0 ? void 0 : data.groupType,
|
|
183
|
+
tag_id: data === null || data === void 0 ? void 0 : data.tagId,
|
|
184
|
+
source_type: data === null || data === void 0 ? void 0 : data.sourceType,
|
|
185
|
+
updated_by: data === null || data === void 0 ? void 0 : data.updatedBy
|
|
186
|
+
});
|
|
192
187
|
};
|
|
193
188
|
/**
|
|
194
189
|
* ui转换为接口使用
|
|
@@ -210,10 +205,10 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
210
205
|
* @param data IDatasetDataParam
|
|
211
206
|
* @returns IDatasetDataParamApi
|
|
212
207
|
*/ export const transferDatasetDataParam2DatasetDataParamApi = (data)=>{
|
|
213
|
-
const { datasetId, createdBy,
|
|
208
|
+
const { datasetId, createdBy, pageSize, ordering, page, sourceTypes, modelType, levels, statuses, reviewStatuses } = data, rest = _object_without_properties(data, [
|
|
214
209
|
"datasetId",
|
|
215
210
|
"createdBy",
|
|
216
|
-
"
|
|
211
|
+
"pageSize",
|
|
217
212
|
"ordering",
|
|
218
213
|
"page",
|
|
219
214
|
"sourceTypes",
|
|
@@ -222,7 +217,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
222
217
|
"statuses",
|
|
223
218
|
"reviewStatuses"
|
|
224
219
|
]);
|
|
225
|
-
return _object_spread_props(_object_spread({}, rest), {
|
|
220
|
+
return _object_spread_props(_object_spread({}, rest, transferIPaginationParamToIPaginationParamApi(data), transferISortParamToISortParamApi(data)), {
|
|
226
221
|
dataset_id: datasetId,
|
|
227
222
|
created_by: createdBy,
|
|
228
223
|
source_types: sourceTypes,
|
|
@@ -230,7 +225,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
230
225
|
review_statuses: reviewStatuses,
|
|
231
226
|
levels,
|
|
232
227
|
statuses,
|
|
233
|
-
|
|
228
|
+
page_size: pageSize,
|
|
234
229
|
ordering,
|
|
235
230
|
page
|
|
236
231
|
});
|
|
@@ -313,7 +308,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
313
308
|
* @param data IOperatRecordParam
|
|
314
309
|
* @returns IOperatRecordParamApi
|
|
315
310
|
*/ export const transferOperatRecordParam2OperatRecordParamApi = (data)=>{
|
|
316
|
-
return {
|
|
311
|
+
return _object_spread_props(_object_spread({}, transferIPaginationParamToIPaginationParamApi(data)), {
|
|
317
312
|
id: data.id,
|
|
318
313
|
instance_id: data.instanceId,
|
|
319
314
|
resource_type_id: data.resourceTypeId,
|
|
@@ -323,7 +318,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
323
318
|
date: data.date,
|
|
324
319
|
result_code: data.resultCode,
|
|
325
320
|
instance_data: data.instanceData
|
|
326
|
-
};
|
|
321
|
+
});
|
|
327
322
|
};
|
|
328
323
|
/**
|
|
329
324
|
* 接口转换为ui使用
|
|
@@ -97,7 +97,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
97
97
|
anchor_path: mergeStringWithoutLastSlash(data.parentAnchorPath, data.fileName),
|
|
98
98
|
index_config: data.indexConfig,
|
|
99
99
|
credential_id: data.credentialId,
|
|
100
|
-
space_id: data.spaceId
|
|
100
|
+
space_id: data.spaceId,
|
|
101
|
+
approvers: data.approvers,
|
|
102
|
+
ticket_url: data.ticketUrl
|
|
101
103
|
});
|
|
102
104
|
/**
|
|
103
105
|
* 接口转换为ui使用
|
|
@@ -136,7 +138,9 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
136
138
|
updatedAt: data.updated_at,
|
|
137
139
|
updatedBy: data.updated_by,
|
|
138
140
|
indexConfig: data.index_config,
|
|
139
|
-
credentialId: data.credential_id
|
|
141
|
+
credentialId: data.credential_id,
|
|
142
|
+
approvers: data.approvers,
|
|
143
|
+
ticketUrl: data.ticket_url
|
|
140
144
|
};
|
|
141
145
|
};
|
|
142
146
|
/**
|
|
@@ -188,7 +192,8 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
188
192
|
knowledge_count: data.number,
|
|
189
193
|
anchor_path: data.anchorPath,
|
|
190
194
|
index_config: data.indexConfig,
|
|
191
|
-
status: data.status
|
|
195
|
+
status: data.status,
|
|
196
|
+
space_id: data.spaceId
|
|
192
197
|
});
|
|
193
198
|
/**
|
|
194
199
|
* 转换 ui 文件夹为 IKnowledgeApi,接口使用
|
|
@@ -229,6 +234,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
229
234
|
number: data.knowledge_count,
|
|
230
235
|
folderNumber: data.folder_num,
|
|
231
236
|
updatedBy: data.updated_by,
|
|
237
|
+
updatedAt: data.updated_at,
|
|
232
238
|
anchorPath: data.anchor_path,
|
|
233
239
|
description: data.description,
|
|
234
240
|
indexConfig: data.index_config,
|
|
@@ -10,10 +10,11 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
10
10
|
path: data.property.path,
|
|
11
11
|
creator: data.created_by,
|
|
12
12
|
createTime: data.created_at,
|
|
13
|
-
|
|
13
|
+
updatedBy: data.updated_by,
|
|
14
|
+
updatedAt: data.updated_at,
|
|
14
15
|
toolCode: data.tool_code,
|
|
15
16
|
toolName: data.tool_name,
|
|
16
|
-
|
|
17
|
+
tagNames: data.tag_names,
|
|
17
18
|
description: data.description,
|
|
18
19
|
method: data.method,
|
|
19
20
|
url: data.url,
|
|
@@ -36,10 +37,11 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
36
37
|
*/ export const transferTool = (data)=>({
|
|
37
38
|
created_by: data.creator,
|
|
38
39
|
created_at: data.createTime,
|
|
39
|
-
|
|
40
|
+
updated_by: data.updatedBy,
|
|
41
|
+
updated_at: data.updatedAt,
|
|
40
42
|
tool_code: data.toolCode,
|
|
41
43
|
tool_name: data.toolName,
|
|
42
|
-
|
|
44
|
+
tag_names: data.tagNames,
|
|
43
45
|
description: data.description,
|
|
44
46
|
method: data.method,
|
|
45
47
|
url: data.url,
|
|
@@ -47,6 +49,7 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
47
49
|
is_public: data.isPublic,
|
|
48
50
|
tool_id: data.id,
|
|
49
51
|
status: data.status,
|
|
52
|
+
space_id: data.spaceId,
|
|
50
53
|
is_sensitive: data.isSensitive,
|
|
51
54
|
credential_id: data.credentialId,
|
|
52
55
|
credential_type: data.credentialType,
|
|
Binary file
|
package/dist/transforms.d.ts
CHANGED
package/dist/transforms.ts.js
CHANGED
package/dist/types/common.d.ts
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
|
+
import type { PrimaryTableCol } from 'tdesign-vue-next';
|
|
2
|
+
import { OrderMethod } from './enum';
|
|
1
3
|
export interface ITab {
|
|
2
4
|
id?: string | number;
|
|
3
5
|
name: string;
|
|
4
6
|
number?: number;
|
|
5
7
|
children?: ITab[];
|
|
6
8
|
}
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
+
export interface IPagination {
|
|
10
|
+
current: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
count: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ITTableSort {
|
|
15
|
+
descending?: OrderMethod;
|
|
16
|
+
sortKey?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ITTableColEllipsis {
|
|
19
|
+
theme?: string;
|
|
20
|
+
placement?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ITTableCol<T> extends Omit<PrimaryTableCol<T>, 'type' | 'align' | 'fixed' | 'sortKey' | 'ellipsis'> {
|
|
24
|
+
defaultShow?: boolean;
|
|
25
|
+
sortKey?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
fixed?: string;
|
|
28
|
+
align?: string;
|
|
29
|
+
ellipsis?: boolean | ITTableColEllipsis;
|
|
30
|
+
}
|
|
31
|
+
export interface IPaginationParam {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface IPaginationParamApi {
|
|
9
36
|
page?: number;
|
|
37
|
+
page_size?: number;
|
|
10
38
|
}
|
|
11
39
|
export interface ISearchSelectItem {
|
|
12
40
|
id: string | number | boolean;
|
|
@@ -17,12 +45,40 @@ export interface ISearchSelectItem {
|
|
|
17
45
|
children?: ISearchSelectItem[];
|
|
18
46
|
multipleKey?: string;
|
|
19
47
|
}
|
|
20
|
-
export interface
|
|
48
|
+
export interface ISortParam {
|
|
49
|
+
orderBy?: string;
|
|
50
|
+
orderMethod?: OrderMethod;
|
|
51
|
+
}
|
|
52
|
+
export interface ISortParamApi {
|
|
21
53
|
order_by?: string;
|
|
22
|
-
order_method?:
|
|
54
|
+
order_method?: OrderMethod;
|
|
23
55
|
}
|
|
24
56
|
export type RequestHookData = {
|
|
25
57
|
url: string;
|
|
26
58
|
header?: Record<string, string>;
|
|
27
59
|
data?: unknown;
|
|
28
60
|
};
|
|
61
|
+
export interface ITagTree {
|
|
62
|
+
all: number;
|
|
63
|
+
tree: ITagTreeNode[];
|
|
64
|
+
}
|
|
65
|
+
export interface ITagTreeApi {
|
|
66
|
+
all: number;
|
|
67
|
+
tree: ITagTreeNodeApi[];
|
|
68
|
+
}
|
|
69
|
+
export interface ITagTreeNode {
|
|
70
|
+
tagName: string;
|
|
71
|
+
tagId?: number;
|
|
72
|
+
count?: number;
|
|
73
|
+
level?: number;
|
|
74
|
+
property?: string;
|
|
75
|
+
children?: Array<ITagTreeNode>;
|
|
76
|
+
}
|
|
77
|
+
export interface ITagTreeNodeApi {
|
|
78
|
+
tag_name: string;
|
|
79
|
+
tag_id?: number;
|
|
80
|
+
count?: number;
|
|
81
|
+
level?: number;
|
|
82
|
+
property?: string;
|
|
83
|
+
children?: Array<ITagTreeNodeApi>;
|
|
84
|
+
}
|
package/dist/types/dataset.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode, DatasetDataReviewLevel, DatasetDataReviewStatus, DatasetDataSourceType, DatasetDataStatus, DatasetType,
|
|
1
|
+
import type { IPaginationParam, IPaginationParamApi, ISortParam, ISortParamApi } from './common';
|
|
2
|
+
import type { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode, DatasetDataReviewLevel, DatasetDataReviewStatus, DatasetDataSourceType, DatasetDataStatus, DatasetType, GroupType, UserStatus } from './enum';
|
|
3
3
|
import type { IFileInfo, IFileInfoApi } from './file';
|
|
4
4
|
import type { IResourcePermission, IResourcePermissionApi } from './permission';
|
|
5
5
|
export interface IDatasetInfo {
|
|
@@ -50,7 +50,7 @@ export interface IDataset extends IDatasetForm {
|
|
|
50
50
|
id: number;
|
|
51
51
|
permission: IResourcePermission;
|
|
52
52
|
}
|
|
53
|
-
export interface IDatasetListParam extends
|
|
53
|
+
export interface IDatasetListParam extends IPaginationParam, ISortParam {
|
|
54
54
|
componentIds?: string;
|
|
55
55
|
createdBy?: string;
|
|
56
56
|
datasetName?: string;
|
|
@@ -61,10 +61,12 @@ export interface IDatasetListParam extends IPage, ISort {
|
|
|
61
61
|
datasetCode?: string;
|
|
62
62
|
description?: string;
|
|
63
63
|
tagName?: string;
|
|
64
|
-
|
|
64
|
+
groupType?: GroupType;
|
|
65
|
+
tagId?: number;
|
|
65
66
|
sourceType?: DatasetDataSourceType;
|
|
67
|
+
updatedBy?: string;
|
|
66
68
|
}
|
|
67
|
-
export interface IDatasetListParamApi extends
|
|
69
|
+
export interface IDatasetListParamApi extends IPaginationParamApi, ISortParamApi {
|
|
68
70
|
component_ids?: string;
|
|
69
71
|
created_by?: string;
|
|
70
72
|
dataset_name?: string;
|
|
@@ -75,8 +77,10 @@ export interface IDatasetListParamApi extends IPage, ISort {
|
|
|
75
77
|
dataset_code?: string;
|
|
76
78
|
description?: string;
|
|
77
79
|
tag_name?: string;
|
|
78
|
-
|
|
80
|
+
group_type?: GroupType;
|
|
81
|
+
tag_id?: number;
|
|
79
82
|
source_type?: DatasetDataSourceType;
|
|
83
|
+
updated_by?: string;
|
|
80
84
|
}
|
|
81
85
|
export interface IDatasetApiGuideApi {
|
|
82
86
|
api_endpoint: string;
|
|
@@ -144,7 +148,7 @@ export interface IDatasetData extends IDatasetDataForm {
|
|
|
144
148
|
reviewLevel: DatasetDataReviewLevel;
|
|
145
149
|
id: number;
|
|
146
150
|
}
|
|
147
|
-
export interface IDatasetDataParam extends
|
|
151
|
+
export interface IDatasetDataParam extends IPaginationParam, ISortParam {
|
|
148
152
|
datasetId?: number;
|
|
149
153
|
createdBy?: string;
|
|
150
154
|
modelType?: string;
|
|
@@ -154,7 +158,7 @@ export interface IDatasetDataParam extends IPage, ISort {
|
|
|
154
158
|
statuses?: DatasetDataStatus[];
|
|
155
159
|
reviewStatuses?: DatasetDataReviewStatus[];
|
|
156
160
|
}
|
|
157
|
-
export interface IDatasetDataParamApi extends
|
|
161
|
+
export interface IDatasetDataParamApi extends IPaginationParamApi, ISortParamApi {
|
|
158
162
|
dataset_id?: number;
|
|
159
163
|
created_by?: string;
|
|
160
164
|
model_type?: string;
|
|
@@ -210,7 +214,7 @@ export interface ISchema {
|
|
|
210
214
|
name: string;
|
|
211
215
|
schema: Record<string, string>;
|
|
212
216
|
}
|
|
213
|
-
export interface IOperatRecordParam {
|
|
217
|
+
export interface IOperatRecordParam extends IPaginationParam {
|
|
214
218
|
id?: number;
|
|
215
219
|
instanceId?: number;
|
|
216
220
|
parentId?: number;
|
|
@@ -224,7 +228,7 @@ export interface IOperatRecordParam {
|
|
|
224
228
|
resultCode?: DatasetDataOperatRecordResultCode;
|
|
225
229
|
instanceData?: string;
|
|
226
230
|
}
|
|
227
|
-
export interface IOperatRecordParamApi {
|
|
231
|
+
export interface IOperatRecordParamApi extends IPaginationParamApi {
|
|
228
232
|
id?: number;
|
|
229
233
|
instance_id?: number;
|
|
230
234
|
parent_id?: number;
|