@blueking/ai-ui-sdk 0.1.0-beta.1 → 0.1.0-beta.10
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 +6 -0
- package/dist/common/util.ts.js +16 -0
- package/dist/components/render-aside/index.script.vue.js +4 -4
- 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/edit-dataset-data/index.script.vue.js.js +367 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +15 -0
- package/dist/components/{render-dataset-detail-origin-data/components/operation-record → render-dataset/components/edit-dataset-data}/index.vue.d.ts +4 -4
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +139 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/index.vue.css +4 -4
- package/dist/components/{render-dataset-detail-origin-data/components/operation-record/table → render-dataset/components/operation-record}/index.vue.d.ts +2 -2
- package/dist/components/render-dataset/components/operation-record/index.vue.js +5 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/table/index.script.vue.js.js +35 -39
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +7 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +5 -0
- package/dist/components/{render-dataset-detail-origin-data → render-dataset}/components/operation-record/view-op-result/index.script.vue.js.js +21 -19
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +12 -0
- package/dist/components/{render-dataset-detail-origin-data → 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 +5 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +3 -3
- package/dist/components/render-dataset/components/plus-dataset/{dataset-form.script.vue.js.js → dataset-form.script.vue.js} +95 -128
- 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 -3
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +13 -7
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +4 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +3 -2
- 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 +15 -6
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +68 -15
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +3 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +3 -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 +1 -0
- 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 +97 -33
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +7 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +4 -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 +202 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +8 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +3 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +14 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +9 -3
- 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 +59 -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 +73 -0
- package/dist/components/{render-dataset-detail-origin-data/components/edit-data → render-dataset/components/search-operation-record}/index.vue.d.ts +5 -6
- 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.script.vue.js.js +18 -4
- 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/components/header.script.vue.js.js +41 -12
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +5 -1
- package/dist/components/render-dataset-detail/index.script.vue.js.js +11 -1
- package/dist/components/render-dataset-detail/index.vue.d.ts +5 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +88 -11
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +12 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +265 -0
- 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 +12 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +2 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +88 -28
- 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 +1 -0
- 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 +28 -7
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +6 -1
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +123 -53
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +6 -1
- 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.script.vue.js.js +2 -2
- 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.script.vue.js.js +8 -8
- 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 +137 -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 +36 -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 +38 -2
- package/dist/event/index.ts.js +1 -2
- package/dist/hooks/use-click-proxy.ts.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +21 -8
- package/dist/hooks/use-dataset-http.ts.js +57 -34
- package/dist/http/fetch/error-interceptor.d.ts +1 -1
- package/dist/http/fetch/error-interceptor.ts.js +15 -25
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/fetch/success-interceptor.ts.js +7 -4
- package/dist/http/helper/agent.d.ts +1 -1
- package/dist/http/helper/dataset.d.ts +25 -20
- package/dist/http/helper/dataset.ts.js +167 -82
- package/dist/types/common.d.ts +8 -0
- package/dist/types/dataset.d.ts +89 -62
- package/dist/types/enum.d.ts +15 -19
- package/dist/types/enum.ts.js +19 -22
- package/package.json +5 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +0 -15
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +0 -163
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js +0 -7
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.script.vue.js.js +0 -268
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.css +0 -38
- package/dist/components/render-dataset-detail-origin-data/components/edit-data/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.script.vue.js.js +0 -89
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/table/index.vue.js +0 -5
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.css +0 -6
- package/dist/components/render-dataset-detail-origin-data/components/operation-record/view-op-result/index.vue.js +0 -5
- 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/table/index.script.vue.js.js +0 -216
@@ -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';
|
@@ -20,29 +21,49 @@ export default /*@__PURE__*/ _defineComponent({
|
|
20
21
|
props: {
|
21
22
|
apiPrefix: {}
|
22
23
|
},
|
23
|
-
|
24
|
+
emits: [
|
25
|
+
"success-plus-dataset"
|
26
|
+
],
|
27
|
+
setup (__props, { emit: __emit }) {
|
28
|
+
const emits = __emit;
|
29
|
+
const search = ref({});
|
30
|
+
const handleSuccessPlusDataset = (data)=>{
|
31
|
+
emits('success-plus-dataset', data);
|
32
|
+
};
|
24
33
|
return (_ctx, _cache)=>{
|
25
34
|
return _openBlock(), _createElementBlock("article", _hoisted_1, [
|
26
35
|
_createElementVNode("main", _hoisted_2, [
|
27
36
|
_createElementVNode("section", _hoisted_3, [
|
28
37
|
_createElementVNode("section", _hoisted_4, [
|
29
38
|
_createVNode(RenderPlusDatasetData, {
|
30
|
-
class: "g-mr-8"
|
31
|
-
}),
|
32
|
-
_createVNode(RenderPlusDataset, {
|
39
|
+
class: "g-mr-8",
|
33
40
|
"api-prefix": _ctx.apiPrefix
|
34
41
|
}, null, 8 /* PROPS */ , [
|
35
42
|
"api-prefix"
|
43
|
+
]),
|
44
|
+
_createVNode(RenderPlusDataset, {
|
45
|
+
"api-prefix": _ctx.apiPrefix,
|
46
|
+
onSuccessPlus: handleSuccessPlusDataset
|
47
|
+
}, null, 8 /* PROPS */ , [
|
48
|
+
"api-prefix"
|
36
49
|
])
|
37
50
|
]),
|
38
51
|
_createVNode(RenderSearchDataset, {
|
52
|
+
modelValue: search.value,
|
53
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>search.value = $event),
|
54
|
+
"api-prefix": _ctx.apiPrefix,
|
39
55
|
class: "main-search"
|
40
|
-
}
|
56
|
+
}, null, 8 /* PROPS */ , [
|
57
|
+
"modelValue",
|
58
|
+
"api-prefix"
|
59
|
+
])
|
41
60
|
]),
|
42
61
|
_createVNode(RenderTable, {
|
43
|
-
"api-prefix": _ctx.apiPrefix
|
62
|
+
"api-prefix": _ctx.apiPrefix,
|
63
|
+
search: search.value
|
44
64
|
}, null, 8 /* PROPS */ , [
|
45
|
-
"api-prefix"
|
65
|
+
"api-prefix",
|
66
|
+
"search"
|
46
67
|
])
|
47
68
|
])
|
48
69
|
]);
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-5uimw112] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-5uimw112] {
|
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-5uimw112] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,5 +1,10 @@
|
|
1
|
+
import type { IDataset } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
3
|
apiPrefix: string;
|
3
4
|
}
|
4
|
-
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
5
|
+
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
6
|
+
"success-plus-dataset": (data: IDataset) => any;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
8
|
+
"onSuccess-plus-dataset"?: (data: IDataset) => any;
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
10
|
export default _default;
|
@@ -1,13 +1,44 @@
|
|
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';
|
33
|
+
import OperationRecord from '../../render-dataset/components/operation-record/index.vue.js';
|
34
|
+
import RenderPlusDatasetData from '../../render-dataset/components/plus-dataset-data/index.vue.js';
|
5
35
|
import { useDatasetHttp } from '../../../hooks/use-dataset-http.ts.js';
|
6
36
|
import useTable from '../../../hooks/use-table.ts.js';
|
7
37
|
import { DatasetType } from '../../../types/enum.ts.js';
|
8
38
|
export default /*@__PURE__*/ _defineComponent({
|
9
39
|
props: {
|
10
|
-
apiPrefix: {}
|
40
|
+
apiPrefix: {},
|
41
|
+
search: {}
|
11
42
|
},
|
12
43
|
setup (__props) {
|
13
44
|
const props = __props;
|
@@ -21,16 +52,60 @@ export default /*@__PURE__*/ _defineComponent({
|
|
21
52
|
[DatasetType.SingleTurnChat]: '单轮会话',
|
22
53
|
[DatasetType.SingleTurnChatWithReasoning]: '单轮会话(含思考过程)'
|
23
54
|
};
|
55
|
+
const settings = {
|
56
|
+
fields: [
|
57
|
+
{
|
58
|
+
label: '数据集名称',
|
59
|
+
field: 'datasetName'
|
60
|
+
},
|
61
|
+
{
|
62
|
+
label: '数据量',
|
63
|
+
field: 'datasetItemCount'
|
64
|
+
},
|
65
|
+
{
|
66
|
+
label: '数据集类型',
|
67
|
+
field: 'type'
|
68
|
+
},
|
69
|
+
{
|
70
|
+
label: '来源团队',
|
71
|
+
field: 'companyName'
|
72
|
+
},
|
73
|
+
{
|
74
|
+
label: '组件',
|
75
|
+
field: 'componentName'
|
76
|
+
},
|
77
|
+
{
|
78
|
+
label: '创建人',
|
79
|
+
field: 'createdBy'
|
80
|
+
},
|
81
|
+
{
|
82
|
+
label: '创建时间',
|
83
|
+
field: 'createdAt'
|
84
|
+
}
|
85
|
+
],
|
86
|
+
checked: [
|
87
|
+
'datasetName',
|
88
|
+
'datasetItemCount',
|
89
|
+
'type',
|
90
|
+
'companyName',
|
91
|
+
'componentName'
|
92
|
+
],
|
93
|
+
trigger: 'manual'
|
94
|
+
};
|
24
95
|
const handleGetDatasetList = (params)=>{
|
25
|
-
return getDatasetList(params);
|
96
|
+
return getDatasetList(_object_spread({}, props.search, params));
|
26
97
|
};
|
27
|
-
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange,
|
28
|
-
triggerApi } = useTable(handleGetDatasetList, 'results', {
|
98
|
+
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetDatasetList, 'results', {
|
29
99
|
current: 1,
|
30
100
|
limit: 20,
|
31
101
|
count: 0
|
32
102
|
});
|
33
|
-
const
|
103
|
+
const handleGetDatasetData = (row)=>{
|
104
|
+
return {
|
105
|
+
datasetId: row.id
|
106
|
+
};
|
107
|
+
};
|
108
|
+
const handleGoToDetail = (row)=>{
|
34
109
|
router.push({
|
35
110
|
name: 'dataset-detail',
|
36
111
|
params: {
|
@@ -38,8 +113,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
38
113
|
}
|
39
114
|
});
|
40
115
|
};
|
41
|
-
|
116
|
+
watch(()=>props.search, ()=>{
|
117
|
+
resetPagination();
|
42
118
|
triggerApi();
|
119
|
+
}, {
|
120
|
+
immediate: true,
|
121
|
+
deep: true
|
43
122
|
});
|
44
123
|
return (_ctx, _cache)=>{
|
45
124
|
const _component_bk_button = _resolveComponent("bk-button");
|
@@ -52,6 +131,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
52
131
|
"empty-cell-text": "--",
|
53
132
|
class: "g-white-footer-table g-gray-header-table",
|
54
133
|
"max-height": "calc(100% - 48px)",
|
134
|
+
settings: settings,
|
55
135
|
pagination: _unref(pagination),
|
56
136
|
data: _unref(tableData),
|
57
137
|
onPageLimitChange: _unref(handlePageSizeChange),
|
@@ -64,9 +144,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
64
144
|
}, {
|
65
145
|
default: _withCtx(({ row })=>[
|
66
146
|
_createVNode(_component_bk_button, {
|
67
|
-
theme: "primary",
|
68
147
|
text: "",
|
69
|
-
|
148
|
+
theme: "primary",
|
149
|
+
onClick: ($event)=>handleGoToDetail(row)
|
70
150
|
}, {
|
71
151
|
default: _withCtx(()=>[
|
72
152
|
_createTextVNode(_toDisplayString(row.datasetName), 1 /* TEXT */ )
|
@@ -78,6 +158,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
78
158
|
]),
|
79
159
|
_: 1 /* STABLE */
|
80
160
|
}),
|
161
|
+
_createVNode(_component_bk_table_column, {
|
162
|
+
label: "数据量",
|
163
|
+
field: "datasetItemCount",
|
164
|
+
width: "80"
|
165
|
+
}),
|
81
166
|
_createVNode(_component_bk_table_column, {
|
82
167
|
label: "数据集类型"
|
83
168
|
}, {
|
@@ -88,11 +173,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
88
173
|
}),
|
89
174
|
_createVNode(_component_bk_table_column, {
|
90
175
|
label: "来源团队",
|
91
|
-
field: "
|
176
|
+
field: "companyName"
|
92
177
|
}),
|
93
178
|
_createVNode(_component_bk_table_column, {
|
94
|
-
label: "
|
95
|
-
field: "
|
179
|
+
label: "组件",
|
180
|
+
field: "componentName"
|
96
181
|
}),
|
97
182
|
_createVNode(_component_bk_table_column, {
|
98
183
|
label: "创建人",
|
@@ -105,60 +190,45 @@ export default /*@__PURE__*/ _defineComponent({
|
|
105
190
|
_createVNode(_component_bk_table_column, {
|
106
191
|
label: "操作",
|
107
192
|
fixed: "right",
|
108
|
-
width: "
|
193
|
+
width: "250"
|
109
194
|
}, {
|
110
195
|
default: _withCtx(({ row })=>[
|
196
|
+
_createVNode(RenderPlusDatasetData, {
|
197
|
+
text: "",
|
198
|
+
class: "g-mr-16",
|
199
|
+
"api-prefix": _ctx.apiPrefix,
|
200
|
+
"dataset-data": handleGetDatasetData(row),
|
201
|
+
onSuccessPlus: _unref(triggerApi)
|
202
|
+
}, null, 8 /* PROPS */ , [
|
203
|
+
"api-prefix",
|
204
|
+
"dataset-data",
|
205
|
+
"onSuccessPlus"
|
206
|
+
]),
|
111
207
|
_createVNode(_component_bk_button, {
|
112
208
|
text: "",
|
113
209
|
theme: "primary",
|
114
|
-
class: "g-mr-16"
|
210
|
+
class: "g-mr-16",
|
211
|
+
onClick: ($event)=>handleGoToDetail(row)
|
115
212
|
}, {
|
116
213
|
default: _withCtx(()=>_cache[0] || (_cache[0] = [
|
117
|
-
_createTextVNode("
|
214
|
+
_createTextVNode(" 查看详情 ")
|
118
215
|
])),
|
119
|
-
_:
|
216
|
+
_: 2 /* DYNAMIC */ ,
|
120
217
|
__: [
|
121
218
|
0
|
122
219
|
]
|
123
|
-
}
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
class: "g-mr-16"
|
128
|
-
}, {
|
129
|
-
default: _withCtx(()=>_cache[1] || (_cache[1] = [
|
130
|
-
_createTextVNode(" 添加数据 ")
|
131
|
-
])),
|
132
|
-
_: 1 /* STABLE */ ,
|
133
|
-
__: [
|
134
|
-
1
|
135
|
-
]
|
136
|
-
}),
|
137
|
-
_createVNode(_component_bk_button, {
|
220
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
221
|
+
"onClick"
|
222
|
+
]),
|
223
|
+
_createVNode(OperationRecord, {
|
138
224
|
text: "",
|
139
225
|
theme: "primary",
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
__: [
|
147
|
-
2
|
148
|
-
]
|
149
|
-
}),
|
150
|
-
_createVNode(_component_bk_button, {
|
151
|
-
text: "",
|
152
|
-
theme: "primary"
|
153
|
-
}, {
|
154
|
-
default: _withCtx(()=>_cache[3] || (_cache[3] = [
|
155
|
-
_createTextVNode(" 操作记录 ")
|
156
|
-
])),
|
157
|
-
_: 1 /* STABLE */ ,
|
158
|
-
__: [
|
159
|
-
3
|
160
|
-
]
|
161
|
-
})
|
226
|
+
"api-prefix": _ctx.apiPrefix,
|
227
|
+
"dataset-id": row.id
|
228
|
+
}, null, 8 /* PROPS */ , [
|
229
|
+
"api-prefix",
|
230
|
+
"dataset-id"
|
231
|
+
])
|
162
232
|
]),
|
163
233
|
_: 1 /* STABLE */
|
164
234
|
})
|
@@ -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;
|
@@ -6,12 +6,20 @@ export default /*@__PURE__*/ _defineComponent({
|
|
6
6
|
props: {
|
7
7
|
apiPrefix: {}
|
8
8
|
},
|
9
|
-
|
9
|
+
emits: [
|
10
|
+
"success-plus-dataset"
|
11
|
+
],
|
12
|
+
setup (__props, { emit: __emit }) {
|
13
|
+
const emits = __emit;
|
14
|
+
const handleSuccessPlusDataset = (data)=>{
|
15
|
+
emits('success-plus-dataset', data);
|
16
|
+
};
|
10
17
|
return (_ctx, _cache)=>{
|
11
18
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
12
19
|
_createVNode(RenderHeader),
|
13
20
|
_createVNode(RenderMain, {
|
14
|
-
"api-prefix": _ctx.apiPrefix
|
21
|
+
"api-prefix": _ctx.apiPrefix,
|
22
|
+
onSuccessPlusDataset: handleSuccessPlusDataset
|
15
23
|
}, null, 8 /* PROPS */ , [
|
16
24
|
"api-prefix"
|
17
25
|
])
|
@@ -1,5 +1,10 @@
|
|
1
|
+
import type { IDataset } from '@/types/dataset';
|
1
2
|
interface IProps {
|
2
3
|
apiPrefix: string;
|
3
4
|
}
|
4
|
-
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
5
|
+
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
6
|
+
"success-plus-dataset": (data: IDataset) => any;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
8
|
+
"onSuccess-plus-dataset"?: (data: IDataset) => any;
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
10
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-fqv15nkk] {
|
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-fqv15nkk]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-fqv15nkk] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
2
|
-
import { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, unref as _unref, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withModifiers as _withModifiers,
|
2
|
+
import { createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, unref as _unref, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withCtx as _withCtx } from "vue";
|
3
3
|
const _hoisted_1 = {
|
4
4
|
class: "upload-file-home g-flex-row"
|
5
5
|
};
|
@@ -66,7 +66,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
66
66
|
}, {
|
67
67
|
default: _withCtx(()=>[
|
68
68
|
_withDirectives(_createElementVNode("i", {
|
69
|
-
class:
|
69
|
+
class: "ai-ui-sdk-icon ai-ui-sdk-delete",
|
70
70
|
onClick: _cache[0] || (_cache[0] = _withModifiers(()=>{}, [
|
71
71
|
"stop"
|
72
72
|
]))
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-r8kqchgj] {
|
3
3
|
position: relative;
|
4
4
|
background: #FFFFFF;
|
5
5
|
border: 1px solid #DCDEE5;
|
6
6
|
border-radius: 4px;
|
7
7
|
padding: 12px 12px 10px 12px;
|
8
8
|
}
|
9
|
-
.upload-file-home[data-v-
|
9
|
+
.upload-file-home[data-v-r8kqchgj]:hover {
|
10
10
|
border: 1px solid #3A84FF;
|
11
11
|
}
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
12
|
+
.upload-file-home:hover .file-icons[data-v-r8kqchgj] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-r8kqchgj] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-r8kqchgj] {
|
19
19
|
font-size: 12px;
|
20
20
|
flex: 1;
|
21
21
|
align-items: flex-start;
|
@@ -23,28 +23,28 @@
|
|
23
23
|
font-weight: normal;
|
24
24
|
width: 0;
|
25
25
|
}
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
26
|
+
.upload-file-home .file-content .file-name[data-v-r8kqchgj] {
|
27
27
|
width: 100%;
|
28
28
|
font-size: 14px;
|
29
29
|
line-height: 20px;
|
30
30
|
}
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
31
|
+
.upload-file-home .file-content .file-size[data-v-r8kqchgj] {
|
32
32
|
font-size: 12px;
|
33
33
|
color: #979BA5;
|
34
34
|
line-height: 20px;
|
35
35
|
}
|
36
|
-
.upload-file-home .file-icons[data-v-
|
36
|
+
.upload-file-home .file-icons[data-v-r8kqchgj] {
|
37
37
|
display: none;
|
38
38
|
color: #979BA5;
|
39
39
|
}
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-r8kqchgj] {
|
41
41
|
cursor: pointer;
|
42
42
|
margin-right: 15px;
|
43
43
|
font-size: 16px;
|
44
44
|
}
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-r8kqchgj]:hover {
|
46
46
|
color: #3A84FF;
|
47
47
|
}
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-r8kqchgj] {
|
49
49
|
margin: 0;
|
50
50
|
}
|
@@ -6,14 +6,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
6
6
|
},
|
7
7
|
setup (__props) {
|
8
8
|
const iconClassMap = {
|
9
|
-
pdf: '
|
10
|
-
docx: '
|
11
|
-
txt: '
|
12
|
-
md: '
|
13
|
-
html: '
|
14
|
-
csv: '
|
15
|
-
xlsx: '
|
16
|
-
folder: '
|
9
|
+
pdf: 'ai-ui-sdk-icon ai-ui-sdk-pdf',
|
10
|
+
docx: 'ai-ui-sdk-icon ai-ui-sdk-doc-2',
|
11
|
+
txt: 'ai-ui-sdk-icon ai-ui-sdk-ppt-2',
|
12
|
+
md: 'ai-ui-sdk-icon ai-ui-sdk-markdown',
|
13
|
+
html: 'ai-ui-sdk-icon ai-ui-sdk-wangye',
|
14
|
+
csv: 'ai-ui-sdk-icon ai-ui-sdk-excel',
|
15
|
+
xlsx: 'ai-ui-sdk-icon ai-ui-sdk-excel',
|
16
|
+
folder: 'ai-ui-sdk-icon ai-ui-sdk-folder-fill'
|
17
17
|
};
|
18
18
|
return (_ctx, _cache)=>{
|
19
19
|
return _openBlock(), _createElementBlock("i", {
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
.
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-maqdzp5q] {
|
3
3
|
color: #EA3636;
|
4
4
|
}
|
5
|
-
.
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-maqdzp5q], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-maqdzp5q], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-maqdzp5q] {
|
6
6
|
color: #3A84FF;
|
7
7
|
}
|
8
|
-
.
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-maqdzp5q] {
|
9
9
|
color: #C4C6CC;
|
10
10
|
}
|
11
|
-
.
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-maqdzp5q] {
|
12
12
|
color: #2DCB56;
|
13
13
|
}
|
14
|
-
.
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-maqdzp5q] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-5cpse8h2] {
|
3
3
|
width: 100%;
|
4
4
|
height: 52px;
|
5
5
|
background: #FFFFFF;
|
@@ -7,14 +7,14 @@
|
|
7
7
|
position: relative;
|
8
8
|
z-index: 2;
|
9
9
|
}
|
10
|
-
.header-title[data-v-
|
10
|
+
.header-title[data-v-5cpse8h2] {
|
11
11
|
position: absolute;
|
12
12
|
left: 24px;
|
13
13
|
top: 14px;
|
14
14
|
font-size: 16px;
|
15
15
|
color: #313238;
|
16
16
|
}
|
17
|
-
.header-main[data-v-
|
17
|
+
.header-main[data-v-5cpse8h2] {
|
18
18
|
display: flex;
|
19
19
|
align-items: center;
|
20
20
|
justify-content: flex-end;
|
@@ -22,13 +22,13 @@
|
|
22
22
|
height: 100%;
|
23
23
|
margin: 0 auto;
|
24
24
|
}
|
25
|
-
.header-select[data-v-
|
25
|
+
.header-select[data-v-5cpse8h2] {
|
26
26
|
width: 300px;
|
27
27
|
margin-right: 8px;
|
28
28
|
z-index: 9;
|
29
29
|
font-size: 12px;
|
30
30
|
}
|
31
|
-
.header-input[data-v-
|
31
|
+
.header-input[data-v-5cpse8h2] {
|
32
32
|
width: 300px;
|
33
33
|
font-size: 12px;
|
34
34
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.router-tab[data-v-
|
2
|
+
.router-tab[data-v-hs9os1fh] {
|
3
3
|
margin-top: 2px;
|
4
4
|
height: 42px;
|
5
5
|
background: #FFFFFF;
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
7
7
|
padding: 0 45px;
|
8
8
|
}
|
9
|
-
.router-tab a[data-v-
|
9
|
+
.router-tab a[data-v-hs9os1fh] {
|
10
10
|
padding: 0 8px;
|
11
11
|
margin-right: 24px;
|
12
12
|
font-size: 14px;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
color: #4D4F56;
|
16
16
|
box-sizing: border-box;
|
17
17
|
}
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
18
|
+
.router-tab a.router-link-exact-active[data-v-hs9os1fh] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|