@blueking/ai-ui-sdk 0.1.0-beta.9 → 0.1.0
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.d.ts +2 -2
- 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 +15 -10
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +27 -2
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +1 -1
- 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.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.script.vue.js.js +8 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/{dataset-form.script.vue.js.js → dataset-form.script.vue.js} +68 -86
- 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 +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +20 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/{manual.script.vue.js.js → manual.script.vue.js} +47 -87
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +78 -11
- package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +0 -4
- 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/table/{index.script.vue.js.js → index.script.vue.js} +21 -33
- 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.js +2 -2
- 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.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 +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.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.vue.d.ts +1 -4
- package/dist/hooks/use-dataset-http.d.ts +5 -2
- package/dist/hooks/use-dataset-http.ts.js +6 -6
- package/dist/http/helper/dataset.d.ts +10 -13
- package/dist/http/helper/dataset.ts.js +27 -31
- package/dist/types/common.d.ts +1 -0
- package/dist/types/dataset.d.ts +43 -41
- package/dist/types/enum.d.ts +5 -4
- package/dist/types/enum.ts.js +5 -4
- package/package.json +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +0 -15
@@ -1,6 +1,35 @@
|
|
1
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
2
|
+
try {
|
3
|
+
var info = gen[key](arg);
|
4
|
+
var value = info.value;
|
5
|
+
} catch (error) {
|
6
|
+
reject(error);
|
7
|
+
return;
|
8
|
+
}
|
9
|
+
if (info.done) {
|
10
|
+
resolve(value);
|
11
|
+
} else {
|
12
|
+
Promise.resolve(value).then(_next, _throw);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
function _async_to_generator(fn) {
|
16
|
+
return function() {
|
17
|
+
var self = this, args = arguments;
|
18
|
+
return new Promise(function(resolve, reject) {
|
19
|
+
var gen = fn.apply(self, args);
|
20
|
+
function _next(value) {
|
21
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
22
|
+
}
|
23
|
+
function _throw(err) {
|
24
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
25
|
+
}
|
26
|
+
_next(undefined);
|
27
|
+
});
|
28
|
+
};
|
29
|
+
}
|
1
30
|
import { defineComponent as _defineComponent } from 'vue';
|
2
31
|
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
3
|
-
import {
|
32
|
+
import { ref } from 'vue';
|
4
33
|
import RenderSearchSelect from '../../../render-search-select/index.vue.js';
|
5
34
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
6
35
|
export default /*@__PURE__*/ _defineComponent({
|
@@ -14,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
14
43
|
setup (__props, { emit: __emit }) {
|
15
44
|
const props = __props;
|
16
45
|
const emits = __emit;
|
17
|
-
const { getSchemaList } = useDatasetHttp(props.apiPrefix);
|
46
|
+
const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix);
|
18
47
|
const data = ref([
|
19
48
|
{
|
20
49
|
id: 'datasetName',
|
@@ -24,11 +53,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
24
53
|
id: 'type',
|
25
54
|
name: '数据集类型',
|
26
55
|
multiple: true,
|
56
|
+
async: true,
|
27
57
|
children: []
|
28
58
|
},
|
29
59
|
{
|
30
|
-
id: '
|
31
|
-
name: '组件'
|
60
|
+
id: 'componentIds',
|
61
|
+
name: '组件',
|
62
|
+
multiple: true,
|
63
|
+
async: true,
|
64
|
+
children: []
|
32
65
|
},
|
33
66
|
{
|
34
67
|
id: 'createdBy',
|
@@ -38,20 +71,54 @@ export default /*@__PURE__*/ _defineComponent({
|
|
38
71
|
const handleUpdate = (modelValue)=>{
|
39
72
|
emits('update:modelValue', modelValue);
|
40
73
|
};
|
41
|
-
const
|
42
|
-
|
43
|
-
data.
|
44
|
-
|
45
|
-
|
46
|
-
|
74
|
+
const handleGetMenuList = function() {
|
75
|
+
var _ref = _async_to_generator(function*(data, search) {
|
76
|
+
if (!data.async) {
|
77
|
+
return [];
|
78
|
+
}
|
79
|
+
if (data.id === 'componentIds') {
|
80
|
+
return handleGetComponentList(search);
|
81
|
+
}
|
82
|
+
if (data.id === 'type') {
|
83
|
+
return handleGetSchemaList(search);
|
84
|
+
}
|
85
|
+
});
|
86
|
+
return function handleGetMenuList(data, search) {
|
87
|
+
return _ref.apply(this, arguments);
|
88
|
+
};
|
89
|
+
}();
|
90
|
+
const isMatchSearch = (value, search)=>{
|
91
|
+
return value.toLocaleLowerCase().includes(search.toLocaleLowerCase());
|
92
|
+
};
|
93
|
+
const handleGetSchemaList = (search)=>{
|
94
|
+
return getSchemaList().then((schemaList)=>{
|
95
|
+
const children = schemaList.reduce((acc, cur)=>{
|
96
|
+
if (isMatchSearch(cur.name, search)) {
|
97
|
+
acc.push(cur);
|
98
|
+
}
|
99
|
+
return acc;
|
100
|
+
}, []);
|
101
|
+
data.value[1].children = children;
|
102
|
+
return children;
|
103
|
+
});
|
104
|
+
};
|
105
|
+
const handleGetComponentList = (search)=>{
|
106
|
+
return getComponentList().then((componentList)=>{
|
107
|
+
// 只取叶子节点
|
108
|
+
const children = componentList.reduce((acc, cur)=>{
|
109
|
+
acc.push(...cur.children.filter((item)=>isMatchSearch(item.name, search)));
|
110
|
+
return acc;
|
111
|
+
}, []);
|
112
|
+
data.value[2].children = children;
|
113
|
+
return children;
|
47
114
|
});
|
48
115
|
};
|
49
|
-
onBeforeMount(handleGetSchemaList);
|
50
116
|
return (_ctx, _cache)=>{
|
51
117
|
return _openBlock(), _createBlock(RenderSearchSelect, {
|
52
118
|
placeholder: "按关键字搜索",
|
53
119
|
data: data.value,
|
54
120
|
"model-value": _ctx.modelValue,
|
121
|
+
"get-menu-list": handleGetMenuList,
|
55
122
|
"onUpdate:modelValue": handleUpdate
|
56
123
|
}, null, 8 /* PROPS */ , [
|
57
124
|
"data",
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.bkaidev-markdown[data-v-
|
2
|
+
.bkaidev-markdown[data-v-teckoasf] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-teckoasf] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-teckoasf] {
|
9
9
|
color: #979ba5;
|
10
10
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-teckoasf";
|
3
3
|
script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,32 +1,4 @@
|
|
1
|
-
|
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
|
-
}
|
29
|
-
import { defineComponent as _defineComponent } from 'vue';
|
1
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2 } from 'vue';
|
30
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, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
|
31
3
|
const _hoisted_1 = {
|
32
4
|
class: "ellipsis-text"
|
@@ -65,6 +37,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
65
37
|
[DatasetDataSourceType.KnowledgebaseImport]: '知识库导入',
|
66
38
|
[DatasetDataSourceType.ManualImport]: '手动录入'
|
67
39
|
};
|
40
|
+
const getTooltipContent = (column, row)=>{
|
41
|
+
return _createVNode2("section", {
|
42
|
+
"class": "g-white-space-pre-line g-max-height-80vh g-scrollbar-page"
|
43
|
+
}, [
|
44
|
+
row.data[column.prop]
|
45
|
+
]);
|
46
|
+
};
|
68
47
|
const handleShowMore = (row)=>{
|
69
48
|
showMoreIds.value.push(row.id);
|
70
49
|
};
|
@@ -93,9 +72,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
93
72
|
}
|
94
73
|
};
|
95
74
|
const handleGetDatasetDataList = (params)=>{
|
96
|
-
return getDatasetDataList(
|
75
|
+
return getDatasetDataList(Object.assign(Object.assign({
|
97
76
|
datasetId: props.datasetId
|
98
|
-
}, props.search, params));
|
77
|
+
}, props.search), params));
|
99
78
|
};
|
100
79
|
const { tableData, pagination, isLoading, handlePageChange, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetDatasetDataList, 'results', {
|
101
80
|
current: 1,
|
@@ -149,7 +128,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
149
128
|
return _openBlock(), _createBlock(_component_bk_table_column, {
|
150
129
|
key: key,
|
151
130
|
prop: key,
|
152
|
-
label: key
|
131
|
+
label: key,
|
132
|
+
"show-overflow-tooltip": {
|
133
|
+
content: getTooltipContent,
|
134
|
+
popoverOption: {
|
135
|
+
maxWidth: 400,
|
136
|
+
placement: 'left',
|
137
|
+
theme: 'light'
|
138
|
+
}
|
139
|
+
}
|
153
140
|
}, {
|
154
141
|
default: _withCtx(({ row })=>[
|
155
142
|
_createElementVNode("span", _hoisted_1, _toDisplayString(row.data[key]), 1 /* TEXT */ )
|
@@ -157,7 +144,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
157
144
|
_: 2 /* DYNAMIC */
|
158
145
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
159
146
|
"prop",
|
160
|
-
"label"
|
147
|
+
"label",
|
148
|
+
"show-overflow-tooltip"
|
161
149
|
]);
|
162
150
|
}), 128 /* KEYED_FRAGMENT */ )),
|
163
151
|
_createVNode(_component_bk_table_column, {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import script from './index.script.vue.js
|
2
|
-
script.__scopeId = "data-v-
|
1
|
+
import script from './index.script.vue.js';
|
2
|
+
script.__scopeId = "data-v-w40lsba3";
|
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,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-uh328q8z] {
|
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-uh328q8z] {
|
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-uh328q8z] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-g318sn42] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-g318sn42] {
|
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-g318sn42] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -177,7 +177,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
177
177
|
}),
|
178
178
|
_createVNode(_component_bk_table_column, {
|
179
179
|
label: "组件",
|
180
|
-
field: "
|
180
|
+
field: "componentNames"
|
181
|
+
}, {
|
182
|
+
default: _withCtx(({ row })=>[
|
183
|
+
_createTextVNode(_toDisplayString(row.componentNames.join(' / ')), 1 /* TEXT */ )
|
184
|
+
]),
|
185
|
+
_: 1 /* STABLE */
|
181
186
|
}),
|
182
187
|
_createVNode(_component_bk_table_column, {
|
183
188
|
label: "创建人",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-mzyxjrs2] {
|
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-mzyxjrs2]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-mzyxjrs2] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-uz0mf4vo] {
|
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-uz0mf4vo]: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-uz0mf4vo] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-uz0mf4vo] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-uz0mf4vo] {
|
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-uz0mf4vo] {
|
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-uz0mf4vo] {
|
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-uz0mf4vo] {
|
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-uz0mf4vo] {
|
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-uz0mf4vo]: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-uz0mf4vo] {
|
49
49
|
margin: 0;
|
50
50
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-19lqdnh3] {
|
3
3
|
color: #EA3636;
|
4
4
|
}
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-19lqdnh3], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-19lqdnh3], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-19lqdnh3] {
|
6
6
|
color: #3A84FF;
|
7
7
|
}
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-19lqdnh3] {
|
9
9
|
color: #C4C6CC;
|
10
10
|
}
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-19lqdnh3] {
|
12
12
|
color: #2DCB56;
|
13
13
|
}
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-19lqdnh3] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-lqiie5r6] {
|
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-lqiie5r6] {
|
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-lqiie5r6] {
|
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-lqiie5r6] {
|
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-lqiie5r6] {
|
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-oi9bzlkw] {
|
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-oi9bzlkw] {
|
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-oi9bzlkw] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|
@@ -13,10 +13,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
13
13
|
name: string;
|
14
14
|
id: number;
|
15
15
|
}[]) => Promise<boolean | string> | boolean | string;
|
16
|
-
getMenuList?:
|
17
|
-
name: string;
|
18
|
-
id: string;
|
19
|
-
}) => any;
|
16
|
+
getMenuList?: Function;
|
20
17
|
} & Partial<{}>> & import("vue").PublicProps;
|
21
18
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
22
19
|
attrs: any;
|
@@ -15,7 +15,10 @@ export declare const useDatasetHttp: (apiPrefix?: string) => {
|
|
15
15
|
count: number;
|
16
16
|
results: import("@/types/dataset").IDatasetData[];
|
17
17
|
}>;
|
18
|
-
createDatasetData: (data: IDatasetDataForm) => Promise<
|
18
|
+
createDatasetData: (data: IDatasetDataForm) => Promise<{
|
19
|
+
createCount: number;
|
20
|
+
duplicateCount: number;
|
21
|
+
}>;
|
19
22
|
updateDatasetData: (data: IDatasetDataForm, id: number) => Promise<import("@/types/dataset").IDatasetData>;
|
20
23
|
deleteDatasetData: (id: number) => Promise<IDatasetDataApi>;
|
21
24
|
getDatasetData: (id: number) => Promise<import("@/types/dataset").IDatasetData>;
|
@@ -31,7 +34,7 @@ export declare const useDatasetHttp: (apiPrefix?: string) => {
|
|
31
34
|
results: import("@/types/dataset").IOperatRecord[];
|
32
35
|
}>;
|
33
36
|
getCompanyParticipantList: (fuzzy?: string) => Promise<{
|
34
|
-
|
37
|
+
companyNames: string[];
|
35
38
|
list: import("@/types/dataset").ICompanyParticipant[];
|
36
39
|
}>;
|
37
40
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import fetch from '../http/fetch/index.ts.js';
|
2
|
-
import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi,
|
2
|
+
import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferCreateDatasetDataResultApi2CreateDatasetDataResult, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
|
3
3
|
const datasetPerfix = 'dataset/v1';
|
4
4
|
const metaPerfix = 'meta/v1';
|
5
5
|
// 数据集相关接口
|
@@ -7,7 +7,7 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
7
7
|
// meta相关接口
|
8
8
|
// 获取公司列表
|
9
9
|
const getCompanyList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/company/`).then((data)=>data.map(transferCompanyApi2Company));
|
10
|
-
//
|
10
|
+
// 获取组件列表
|
11
11
|
const getComponentList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/component/`);
|
12
12
|
// 查询操作记录列表
|
13
13
|
const getOperateRecordList = (param)=>fetch.post(`${apiPrefix}/${metaPerfix}/operate_record/list/`, transferOperatRecordParam2OperatRecordParamApi(param)).then(({ count, results })=>({
|
@@ -17,8 +17,8 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
17
17
|
// 获取来源团队-组件和参与方列表
|
18
18
|
const getCompanyParticipantList = (fuzzy)=>fetch.get(`${apiPrefix}/${metaPerfix}/company/participant_list/`, {
|
19
19
|
fuzzy
|
20
|
-
}).then(({ list,
|
21
|
-
|
20
|
+
}).then(({ list, company_names })=>({
|
21
|
+
companyNames: company_names,
|
22
22
|
list: transferCompanyParticipantApi2CompanyParticipantList(list)
|
23
23
|
}));
|
24
24
|
// 平台用户-更新用户信息
|
@@ -31,7 +31,7 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
31
31
|
// 获取数据集数据信息
|
32
32
|
const getDatasetMineInfo = ()=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/mine_info/`);
|
33
33
|
// 获取数据集列表
|
34
|
-
const getDatasetList = (query)=>fetch.
|
34
|
+
const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/list/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
|
35
35
|
count,
|
36
36
|
results: results.map(transferDatasetApi2Dataset)
|
37
37
|
}));
|
@@ -49,7 +49,7 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
49
49
|
results: results.map(transferDatasetDataApi2DatasetData)
|
50
50
|
}));
|
51
51
|
// 创建数据集数据
|
52
|
-
const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(
|
52
|
+
const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferCreateDatasetDataResultApi2CreateDatasetDataResult);
|
53
53
|
// 更新数据集数据
|
54
54
|
const updateDatasetData = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferDatasetDataApi2DatasetData);
|
55
55
|
// 删除数据集数据
|