@blueking/ai-ui-sdk 0.1.0-beta.9 → 0.1.1
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-chat.ts.js +10 -0
- 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/dist/types/session.d.ts +2 -2
- package/package.json +2 -2
- 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-kby081up] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-kby081up] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-kby081up] {
|
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-kby081up";
|
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-t9a4v2md";
|
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-mu9b8uj6] {
|
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-mu9b8uj6] {
|
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-mu9b8uj6] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-t9cnwhpn] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-t9cnwhpn] {
|
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-t9cnwhpn] {
|
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-fig0t368] {
|
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-fig0t368]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-fig0t368] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-vq17gpi9] {
|
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-vq17gpi9]: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-vq17gpi9] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-vq17gpi9] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-vq17gpi9] {
|
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-vq17gpi9] {
|
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-vq17gpi9] {
|
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-vq17gpi9] {
|
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-vq17gpi9] {
|
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-vq17gpi9]: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-vq17gpi9] {
|
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-3opmvxkw] {
|
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-3opmvxkw], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-3opmvxkw], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-3opmvxkw] {
|
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-3opmvxkw] {
|
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-3opmvxkw] {
|
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-3opmvxkw] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-aminljxd] {
|
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-aminljxd] {
|
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-aminljxd] {
|
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-aminljxd] {
|
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-aminljxd] {
|
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-7owrgxjo] {
|
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-7owrgxjo] {
|
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-7owrgxjo] {
|
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;
|
@@ -430,8 +430,18 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
430
430
|
sessionLoadingMap.value[sessionCode] = false;
|
431
431
|
// token 超了,提示 token 不足
|
432
432
|
if (code === HttpErrorCode.TokenExpired) {
|
433
|
+
var _currentSession_value_sessionProperty, _currentSession_value;
|
433
434
|
sessionContent.content = '抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))';
|
434
435
|
sessionContent.role = SessionContentRole.TokenExpired;
|
436
|
+
if ((_currentSession_value = currentSession.value) === null || _currentSession_value === void 0 ? void 0 : (_currentSession_value_sessionProperty = _currentSession_value.sessionProperty) === null || _currentSession_value_sessionProperty === void 0 ? void 0 : _currentSession_value_sessionProperty.isAutoClear) {
|
437
|
+
var _currentSession_value1;
|
438
|
+
yield plusSessionContent2Db({
|
439
|
+
sessionCode,
|
440
|
+
role: SessionContentRole.System,
|
441
|
+
content: '由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息'
|
442
|
+
});
|
443
|
+
yield apiImpl.clearSession((_currentSession_value1 = currentSession.value) === null || _currentSession_value1 === void 0 ? void 0 : _currentSession_value1.sessionCode);
|
444
|
+
}
|
435
445
|
}
|
436
446
|
if (code === HttpErrorCode.ImageNotSupported) {
|
437
447
|
sessionContent.content = '抱歉,当前模型不支持图片内容解析';
|
@@ -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
|
};
|