@blueking/ai-ui-sdk 0.1.0-beta.11 → 0.1.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/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.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.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.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/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/footer.script.vue.js.js +21 -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.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +22 -12
- 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.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- 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-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 +4 -1
- package/dist/hooks/use-dataset-http.ts.js +4 -4
- package/dist/http/helper/dataset.d.ts +10 -1
- package/dist/http/helper/dataset.ts.js +10 -0
- package/dist/types/dataset.d.ts +8 -0
- package/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-uhe47pyk] {
|
3
3
|
width: 300px;
|
4
4
|
height: 100%;
|
5
5
|
background: #FFFFFF;
|
6
6
|
padding: 16px;
|
7
7
|
border-right: 1px solid #eaebf0;
|
8
8
|
}
|
9
|
-
[data-v-
|
9
|
+
[data-v-uhe47pyk] .aside-item {
|
10
10
|
width: 268px;
|
11
11
|
line-height: 36px;
|
12
12
|
border-radius: 2px;
|
@@ -16,30 +16,30 @@
|
|
16
16
|
justify-content: space-between;
|
17
17
|
color: #979BA5;
|
18
18
|
}
|
19
|
-
[data-v-
|
19
|
+
[data-v-uhe47pyk] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-uhe47pyk] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-uhe47pyk] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-uhe47pyk] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-uhe47pyk] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-uhe47pyk] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-uhe47pyk] .aside-item .tab-num {
|
43
43
|
background: #EAEBF0;
|
44
44
|
border-radius: 2px;
|
45
45
|
margin-left: 5px;
|
@@ -1,40 +1,40 @@
|
|
1
1
|
|
2
|
-
.send-container[data-v-
|
2
|
+
.send-container[data-v-py8p92uy] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-py8p92uy]:has(textarea:focus) {
|
6
6
|
z-index: 2;
|
7
7
|
}
|
8
|
-
.send-container:hover .send-clear[data-v-
|
8
|
+
.send-container:hover .send-clear[data-v-py8p92uy] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-py8p92uy] {
|
12
12
|
width: 100%;
|
13
13
|
flex-direction: row;
|
14
14
|
height: var(--origin-height);
|
15
15
|
}
|
16
|
-
.send-input[data-v-
|
16
|
+
.send-input[data-v-py8p92uy]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-py8p92uy] textarea {
|
20
20
|
font-size: 12px;
|
21
21
|
line-height: 16px;
|
22
22
|
padding: 7px;
|
23
23
|
resize: none !important;
|
24
24
|
}
|
25
|
-
.send-input[data-v-
|
25
|
+
.send-input[data-v-py8p92uy] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-py8p92uy] textarea::-webkit-scrollbar-thumb {
|
30
30
|
height: 5px;
|
31
31
|
border-radius: 3px;
|
32
32
|
background-color: #dcdee5;
|
33
33
|
}
|
34
|
-
.send-input[data-v-
|
34
|
+
.send-input[data-v-py8p92uy] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-py8p92uy] {
|
38
38
|
display: none !important;
|
39
39
|
position: absolute;
|
40
40
|
right: 10px;
|
@@ -43,6 +43,6 @@
|
|
43
43
|
font-size: 14px;
|
44
44
|
cursor: pointer;
|
45
45
|
}
|
46
|
-
.send-clear[data-v-
|
46
|
+
.send-clear[data-v-py8p92uy]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-inajtubu] {
|
3
3
|
height: 28px;
|
4
4
|
background: #F0F1F5;
|
5
5
|
border-radius: 2px;
|
6
6
|
padding: 0 12px;
|
7
7
|
}
|
8
|
-
.collapse-title .is-hidden[data-v-
|
8
|
+
.collapse-title .is-hidden[data-v-inajtubu] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-6zdrfwm9] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.data-set-edit-slider .value-content[data-v-
|
7
|
+
.data-set-edit-slider .value-content[data-v-6zdrfwm9] {
|
8
8
|
padding: 16px;
|
9
9
|
border: 1px solid #DCDEE5;
|
10
10
|
line-height: 22px;
|
11
11
|
}
|
12
|
-
.data-set-edit-slider[data-v-
|
12
|
+
.data-set-edit-slider[data-v-6zdrfwm9] .bk-sideslider-title {
|
13
13
|
justify-content: space-between;
|
14
14
|
width: 100%;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-6zdrfwm9";
|
3
3
|
script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-wac7pibc] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-wac7pibc] {
|
7
7
|
margin: 16px 0;
|
8
8
|
display: flex;
|
9
9
|
align-items: center;
|
10
10
|
justify-content: right;
|
11
11
|
gap: 8px;
|
12
12
|
}
|
13
|
-
.content .toolbar .record-search[data-v-
|
13
|
+
.content .toolbar .record-search[data-v-wac7pibc] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-wac7pibc] {
|
17
17
|
width: 260px;
|
18
18
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-wac7pibc";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-8vj3qqib";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-qrc07o77] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.content .value-content[data-v-
|
7
|
+
.content .value-content[data-v-qrc07o77] {
|
8
8
|
margin-top: 8px;
|
9
9
|
padding: 16px;
|
10
10
|
border: 1px solid #DCDEE5;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-qrc07o77";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
.dataset-data-content[data-v-
|
2
|
+
.dataset-data-content[data-v-tkaffhzu] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.dataset-data-slider[data-v-
|
6
|
+
.dataset-data-slider[data-v-tkaffhzu] .bk-modal-content {
|
7
7
|
scrollbar-gutter: inherit !important;
|
8
8
|
}
|
package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js
CHANGED
@@ -29,6 +29,7 @@ function _async_to_generator(fn) {
|
|
29
29
|
}
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
31
31
|
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
32
|
+
import { Message } from 'bkui-vue';
|
32
33
|
import { ref } from 'vue';
|
33
34
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
34
35
|
export default /*@__PURE__*/ _defineComponent({
|
@@ -55,7 +56,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
55
56
|
// 校验
|
56
57
|
yield handleValidate();
|
57
58
|
// 保存
|
58
|
-
yield handleSave();
|
59
|
+
const data = yield handleSave();
|
60
|
+
// 提示消息
|
61
|
+
handleMessage(data);
|
59
62
|
// 关闭弹窗
|
60
63
|
handleClose(true);
|
61
64
|
// 触发事件
|
@@ -74,12 +77,27 @@ export default /*@__PURE__*/ _defineComponent({
|
|
74
77
|
const handleSave = ()=>{
|
75
78
|
return createDatasetData(props.datasetData);
|
76
79
|
};
|
77
|
-
const
|
78
|
-
|
80
|
+
const handleMessage = (data)=>{
|
81
|
+
let message = '';
|
82
|
+
if (data.createCount) {
|
83
|
+
message += `新增${data.createCount}条数据`;
|
84
|
+
}
|
85
|
+
if (data.duplicateCount) {
|
86
|
+
message += `,有${data.duplicateCount}条重复数据`;
|
87
|
+
}
|
88
|
+
if (message) {
|
89
|
+
Message({
|
90
|
+
message,
|
91
|
+
theme: 'success'
|
92
|
+
});
|
93
|
+
}
|
79
94
|
};
|
80
95
|
const handleClose = (noValidate)=>{
|
81
96
|
emits('close', noValidate);
|
82
97
|
};
|
98
|
+
const handleSuccess = ()=>{
|
99
|
+
emits('success-confirm');
|
100
|
+
};
|
83
101
|
return (_ctx, _cache)=>{
|
84
102
|
const _component_bk_button = _resolveComponent("bk-button");
|
85
103
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-z4azvpqp";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
|
4
4
|
import './footer.vue.css';
|
5
5
|
export default script;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
.plus-dataset-data[data-v-
|
2
|
+
.plus-dataset-data[data-v-kd5lpvz9] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
}
|
5
|
-
.plus-dataset-sideslider[data-v-
|
5
|
+
.plus-dataset-sideslider[data-v-kd5lpvz9] .bk-modal-content {
|
6
6
|
scrollbar-gutter: inherit !important;
|
7
7
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-kd5lpvz9";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -72,35 +72,45 @@ export default /*@__PURE__*/ _defineComponent({
|
|
72
72
|
emits('update:modelValue', modelValue);
|
73
73
|
};
|
74
74
|
const handleGetMenuList = function() {
|
75
|
-
var _ref = _async_to_generator(function*(data) {
|
75
|
+
var _ref = _async_to_generator(function*(data, search) {
|
76
76
|
if (!data.async) {
|
77
77
|
return [];
|
78
78
|
}
|
79
79
|
if (data.id === 'componentIds') {
|
80
|
-
return handleGetComponentList();
|
80
|
+
return handleGetComponentList(search);
|
81
81
|
}
|
82
82
|
if (data.id === 'type') {
|
83
|
-
return handleGetSchemaList();
|
83
|
+
return handleGetSchemaList(search);
|
84
84
|
}
|
85
85
|
});
|
86
|
-
return function handleGetMenuList(data) {
|
86
|
+
return function handleGetMenuList(data, search) {
|
87
87
|
return _ref.apply(this, arguments);
|
88
88
|
};
|
89
89
|
}();
|
90
|
-
const
|
90
|
+
const isMatchSearch = (value, search)=>{
|
91
|
+
return value.toLocaleLowerCase().includes(search.toLocaleLowerCase());
|
92
|
+
};
|
93
|
+
const handleGetSchemaList = (search)=>{
|
91
94
|
return getSchemaList().then((schemaList)=>{
|
92
|
-
const children = schemaList.
|
93
|
-
|
94
|
-
|
95
|
-
}
|
95
|
+
const children = schemaList.reduce((acc, cur)=>{
|
96
|
+
if (isMatchSearch(cur.name, search)) {
|
97
|
+
acc.push(cur);
|
98
|
+
}
|
99
|
+
return acc;
|
100
|
+
}, []);
|
96
101
|
data.value[1].children = children;
|
97
102
|
return children;
|
98
103
|
});
|
99
104
|
};
|
100
|
-
const handleGetComponentList = ()=>{
|
105
|
+
const handleGetComponentList = (search)=>{
|
101
106
|
return getComponentList().then((componentList)=>{
|
102
|
-
|
103
|
-
|
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;
|
104
114
|
});
|
105
115
|
};
|
106
116
|
return (_ctx, _cache)=>{
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.bkaidev-markdown[data-v-
|
2
|
+
.bkaidev-markdown[data-v-jb7vxmi6] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-jb7vxmi6] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-jb7vxmi6] {
|
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-jb7vxmi6";
|
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,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-opfe7007";
|
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-58ew21or] {
|
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-58ew21or] {
|
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-58ew21or] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-olt371bt] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-olt371bt] {
|
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-olt371bt] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-vhsudawj] {
|
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-vhsudawj]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-vhsudawj] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-2x0vhm89] {
|
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-2x0vhm89]: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-2x0vhm89] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-2x0vhm89] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-2x0vhm89] {
|
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-2x0vhm89] {
|
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-2x0vhm89] {
|
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-2x0vhm89] {
|
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-2x0vhm89] {
|
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-2x0vhm89]: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-2x0vhm89] {
|
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-rn9a3ev1] {
|
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-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-rn9a3ev1] {
|
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-rn9a3ev1] {
|
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-rn9a3ev1] {
|
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-rn9a3ev1] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-ngont4j1] {
|
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-ngont4j1] {
|
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-ngont4j1] {
|
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-ngont4j1] {
|
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-ngont4j1] {
|
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-smuozfq5] {
|
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-smuozfq5] {
|
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-smuozfq5] {
|
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>;
|
@@ -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, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
|
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 })=>({
|
@@ -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.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
|
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
|
// 删除数据集数据
|
@@ -1,4 +1,13 @@
|
|
1
|
-
import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
1
|
+
import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
|
2
|
+
/**
|
3
|
+
* 接口转换为ui使用
|
4
|
+
* @param data ICreataDatasetDataResultApi
|
5
|
+
* @returns ICreataDatasetDataResult
|
6
|
+
*/
|
7
|
+
export declare const transferCreateDatasetDataResultApi2CreateDatasetDataResult: (data: ICreataDatasetDataResultApi) => {
|
8
|
+
createCount: number;
|
9
|
+
duplicateCount: number;
|
10
|
+
};
|
2
11
|
/**
|
3
12
|
* 接口转换为ui使用
|
4
13
|
* @param data ICompanyApi
|
@@ -77,6 +77,16 @@ function _object_without_properties_loose(source, excluded) {
|
|
77
77
|
}
|
78
78
|
return target;
|
79
79
|
}
|
80
|
+
/**
|
81
|
+
* 接口转换为ui使用
|
82
|
+
* @param data ICreataDatasetDataResultApi
|
83
|
+
* @returns ICreataDatasetDataResult
|
84
|
+
*/ export const transferCreateDatasetDataResultApi2CreateDatasetDataResult = (data)=>{
|
85
|
+
return {
|
86
|
+
createCount: data.create_count,
|
87
|
+
duplicateCount: data.duplicate_count
|
88
|
+
};
|
89
|
+
};
|
80
90
|
/**
|
81
91
|
* 接口转换为ui使用
|
82
92
|
* @param data ICompanyApi
|
package/dist/types/dataset.d.ts
CHANGED
@@ -202,3 +202,11 @@ export interface IComponent {
|
|
202
202
|
code: string;
|
203
203
|
children: IComponent[];
|
204
204
|
}
|
205
|
+
export interface ICreataDatasetDataResultApi {
|
206
|
+
create_count: number;
|
207
|
+
duplicate_count: number;
|
208
|
+
}
|
209
|
+
export interface ICreataDatasetDataResult {
|
210
|
+
createCount: number;
|
211
|
+
duplicateCount: number;
|
212
|
+
}
|