@blueking/ai-ui-sdk 0.1.18-beta.9 → 0.1.19-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/components/render-auth/auth-dialog.vue.d.ts +2 -1
- package/dist/components/render-auto-height-textarea/index.script.vue.js.js +3 -3
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.d.ts +2 -1
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +9 -8
- package/dist/components/render-auto-refresh/index.vue.d.ts +2 -1
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.d.ts +2 -1
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +15 -4
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +5 -1
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.d.ts +3 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js +4 -2
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-level/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-status/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +2 -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.d.ts +2 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +5 -2
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +4 -3
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/category.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +4 -3
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +62 -16
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/search-operation-record/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/source-type-icon/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/index.script.vue.js +5 -0
- package/dist/components/render-dataset/index.vue.d.ts +2 -6
- package/dist/components/render-dataset/index.vue.js +2 -3
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +2 -4
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +4 -2
- package/dist/components/render-dataset-detail/components/tab.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +4 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.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.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/header.script.vue.js.js +60 -15
- package/dist/components/render-dataset-list/components/header.vue.d.ts +16 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +35 -9
- package/dist/components/render-dataset-list/components/main.vue.css +4 -4
- package/dist/components/render-dataset-list/components/main.vue.d.ts +15 -6
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +46 -13
- package/dist/components/render-dataset-list/components/table.vue.d.ts +15 -3
- package/dist/components/render-dataset-list/index.script.vue.js.js +111 -17
- package/dist/components/render-dataset-list/index.vue.css +5 -0
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -8
- package/dist/components/render-dataset-list/index.vue.js +2 -0
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.d.ts +8 -7
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.d.ts +2 -1
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +46 -54
- package/dist/components/render-header/index.vue.css +6 -27
- package/dist/components/render-header/index.vue.d.ts +19 -49
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +75 -59
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.d.ts +11 -9
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.d.ts +2 -1
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-select/index.vue.d.ts +8 -7
- package/dist/components/render-tag-tree/index.script.vue.js.js +143 -0
- package/dist/components/render-tag-tree/index.vue.css +30 -0
- package/dist/components/render-tag-tree/index.vue.d.ts +22 -0
- package/dist/components/render-tag-tree/index.vue.js +5 -0
- package/dist/components/render-tree/index.script.vue.js +162 -0
- package/dist/components/render-tree/index.vue.css +24 -0
- package/dist/components/render-tree/index.vue.d.ts +43 -0
- package/dist/components/render-tree/index.vue.js +4 -0
- package/dist/components.d.ts +3 -1
- package/dist/components.ts.js +3 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +6 -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 +6 -0
- package/dist/css/tailwind.css +5 -1
- package/dist/hooks/use-chat.d.ts +14 -0
- package/dist/hooks/use-click-proxy.d.ts +1 -1
- package/dist/hooks/use-click-proxy.ts.js +6 -2
- package/dist/hooks/use-common-http.d.ts +5 -0
- package/dist/hooks/use-common-http.ts.js +16 -0
- package/dist/hooks/use-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +3 -1
- package/dist/hooks/use-meta-http.d.ts +1 -1
- package/dist/hooks/use-meta-http.ts.js +3 -1
- package/dist/hooks/use-session-http.d.ts +8 -2
- package/dist/hooks/use-session-http.ts.js +2 -2
- package/dist/hooks/use-table.d.ts +2 -7
- package/dist/hooks/use-table.ts.js +3 -3
- package/dist/hooks/use-think.ts.js +1 -0
- package/dist/http/helper/common.d.ts +25 -0
- package/dist/http/helper/common.ts.js +45 -0
- package/dist/http/helper/dataset.d.ts +1 -0
- package/dist/http/helper/dataset.ts.js +13 -18
- package/dist/http/helper/knowledge.ts.js +2 -0
- package/dist/http/helper/model.ts.js +17 -2
- package/dist/http/helper/session.ts.js +6 -0
- package/dist/http/helper/tool.ts.js +4 -0
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +1 -0
- package/dist/types/common.d.ts +37 -4
- package/dist/types/dataset.d.ts +16 -10
- package/dist/types/enum.d.ts +14 -1
- package/dist/types/enum.ts.js +15 -0
- package/dist/types/knowledge.d.ts +4 -0
- package/dist/types/model.d.ts +32 -2
- package/dist/types/session.d.ts +2 -0
- package/dist/types/tool.d.ts +6 -0
- package/package.json +6 -8
- package/dist/components/render-aside/index.script.vue.js +0 -69
- package/dist/components/render-aside/index.vue.css +0 -49
- package/dist/components/render-aside/index.vue.d.ts +0 -26
- package/dist/components/render-aside/index.vue.js +0 -5
- package/dist/components/render-dataset/index.script.vue.js.js +0 -126
- package/dist/components/render-dataset/index.vue.css +0 -6
- package/dist/components/render-expand-collapse/index.script.vue.js.js +0 -33
- package/dist/components/render-expand-collapse/index.vue.css +0 -23
- package/dist/components/render-expand-collapse/index.vue.d.ts +0 -12
- package/dist/components/render-expand-collapse/index.vue.js +0 -5
|
@@ -1,5 +1,33 @@
|
|
|
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
|
-
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass,
|
|
30
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, unref as _unref, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createBlock as _createBlock } from "vue";
|
|
3
31
|
const _hoisted_1 = {
|
|
4
32
|
class: "select-options"
|
|
5
33
|
};
|
|
@@ -12,7 +40,8 @@ const _hoisted_3 = [
|
|
|
12
40
|
const _hoisted_4 = {
|
|
13
41
|
class: "g-flex-row g-justify-end g-mt-16"
|
|
14
42
|
};
|
|
15
|
-
import { clickoutside as vClickoutside } from 'bkui-vue';
|
|
43
|
+
import { bkTooltips as vBkTooltips, Button as BkButton, clickoutside as vClickoutside, Form as BkForm, Loading as BkLoading, Popover as BkPopover } from 'bkui-vue';
|
|
44
|
+
import { BkFormItem } from 'bkui-vue/lib/form';
|
|
16
45
|
import { ref, watch } from 'vue';
|
|
17
46
|
import RenderAutoHeightTextarea from '../render-auto-height-textarea/index.vue.js';
|
|
18
47
|
import { useSessionHttp } from '../../hooks/use-session-http.ts.js';
|
|
@@ -24,11 +53,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
24
53
|
spaceId: {},
|
|
25
54
|
rate: {},
|
|
26
55
|
comment: {},
|
|
27
|
-
labels: {}
|
|
56
|
+
labels: {},
|
|
57
|
+
popoverOptions: {},
|
|
58
|
+
tooltipOptions: {}
|
|
28
59
|
},
|
|
29
60
|
emits: [
|
|
30
|
-
"update-session-content-list"
|
|
31
|
-
"close"
|
|
61
|
+
"update-session-content-list"
|
|
32
62
|
],
|
|
33
63
|
setup (__props, { emit: __emit }) {
|
|
34
64
|
const props = __props;
|
|
@@ -46,34 +76,21 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
46
76
|
const formData = ref({
|
|
47
77
|
sessionCode: props.sessionCode,
|
|
48
78
|
sessionContentIds: props.sessionContentIds,
|
|
49
|
-
rate: props.rate === 5 || props.rate === 1 ? props.rate :
|
|
79
|
+
rate: props.rate === 5 || props.rate === 1 ? props.rate : 0,
|
|
50
80
|
comment: props.comment,
|
|
51
81
|
labels: props.labels || []
|
|
52
82
|
});
|
|
53
|
-
const handleClick = (number)=>{
|
|
54
|
-
const currentRate = formData.value.rate;
|
|
55
|
-
formData.value.rate = currentRate === number ? undefined : number;
|
|
56
|
-
isShow.value = formData.value.rate !== undefined;
|
|
57
|
-
if (props.rate === formData.value.rate) {
|
|
58
|
-
formData.value.comment = props.comment;
|
|
59
|
-
formData.value.labels = props.labels || [];
|
|
60
|
-
} else {
|
|
61
|
-
formData.value.comment = '';
|
|
62
|
-
formData.value.labels = [];
|
|
63
|
-
}
|
|
64
|
-
handleGetSessionFeedbackLables();
|
|
65
|
-
};
|
|
66
83
|
const getTooltipContent = (number)=>{
|
|
67
84
|
const tooltipMap = {
|
|
68
85
|
5: {
|
|
69
86
|
5: '取消满意',
|
|
70
87
|
1: '满意',
|
|
71
|
-
|
|
88
|
+
0: '满意'
|
|
72
89
|
},
|
|
73
90
|
1: {
|
|
74
91
|
5: '不满意',
|
|
75
92
|
1: '取消不满意',
|
|
76
|
-
|
|
93
|
+
0: '不满意'
|
|
77
94
|
}
|
|
78
95
|
};
|
|
79
96
|
const rate = formData.value.rate;
|
|
@@ -86,7 +103,21 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
86
103
|
option
|
|
87
104
|
];
|
|
88
105
|
};
|
|
89
|
-
const
|
|
106
|
+
const handleClick = (number)=>{
|
|
107
|
+
formData.value.rate = formData.value.rate === number ? 0 : number;
|
|
108
|
+
formData.value.comment = '';
|
|
109
|
+
formData.value.labels = [];
|
|
110
|
+
formData.value.sessionContentIds = props.sessionContentIds;
|
|
111
|
+
isShow.value = formData.value.rate !== 0;
|
|
112
|
+
if (isShow.value) {
|
|
113
|
+
handleGetSessionFeedbackLabels();
|
|
114
|
+
} else {
|
|
115
|
+
postSessionFeedback(formData.value).then(()=>{
|
|
116
|
+
emit('update-session-content-list', formData.value);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const handleGetSessionFeedbackLabels = ()=>{
|
|
90
121
|
loading.value = true;
|
|
91
122
|
getSessionFeedbackLabels(formData.value.rate).then((result)=>{
|
|
92
123
|
feedbackOptions.value = result;
|
|
@@ -97,19 +128,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
97
128
|
const handleSubmit = ()=>{
|
|
98
129
|
submitting.value = true;
|
|
99
130
|
postSessionFeedback(formData.value).then(()=>{
|
|
100
|
-
emit('update-session-content-list');
|
|
101
|
-
|
|
131
|
+
emit('update-session-content-list', formData.value);
|
|
132
|
+
isShow.value = false;
|
|
102
133
|
}).finally(()=>{
|
|
103
134
|
submitting.value = false;
|
|
104
135
|
});
|
|
105
136
|
};
|
|
106
137
|
const handleClose = ()=>{
|
|
107
138
|
isShow.value = false;
|
|
108
|
-
|
|
109
|
-
if (!isShow.value) {
|
|
110
|
-
formData.value.rate = undefined;
|
|
111
|
-
}
|
|
112
|
-
}, 100);
|
|
139
|
+
formData.value.rate = 0;
|
|
113
140
|
};
|
|
114
141
|
const handleClickOutside = (event)=>{
|
|
115
142
|
const target = event.target;
|
|
@@ -117,43 +144,32 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
117
144
|
handleClose();
|
|
118
145
|
}
|
|
119
146
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
formData.value.sessionContentIds = newIds;
|
|
123
|
-
}, {
|
|
124
|
-
deep: true
|
|
147
|
+
watch(()=>props.rate, (newRate)=>{
|
|
148
|
+
formData.value.rate = newRate === 5 || newRate === 1 ? newRate : 0;
|
|
125
149
|
});
|
|
126
150
|
return (_ctx, _cache)=>{
|
|
127
|
-
|
|
128
|
-
const _component_bk_loading = _resolveComponent("bk-loading");
|
|
129
|
-
const _component_bk_form = _resolveComponent("bk-form");
|
|
130
|
-
const _component_bk_button = _resolveComponent("bk-button");
|
|
131
|
-
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
132
|
-
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
133
|
-
return _openBlock(), _createBlock(_component_bk_popover, {
|
|
151
|
+
return _openBlock(), _createBlock(_unref(BkPopover), _mergeProps(_ctx.popoverOptions, {
|
|
134
152
|
theme: "light",
|
|
135
153
|
placement: "bottom",
|
|
136
154
|
width: "450",
|
|
137
155
|
trigger: "manual",
|
|
138
156
|
arrow: false,
|
|
139
157
|
"is-show": isShow.value
|
|
140
|
-
}, {
|
|
158
|
+
}), {
|
|
141
159
|
content: _withCtx(()=>[
|
|
142
160
|
_withDirectives((_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
143
|
-
_createVNode(
|
|
161
|
+
_createVNode(_unref(BkForm), {
|
|
144
162
|
"form-type": "vertical",
|
|
145
163
|
ref: "formRef",
|
|
146
164
|
class: "g-small-form g-short-form",
|
|
147
165
|
model: formData.value
|
|
148
166
|
}, {
|
|
149
167
|
default: _withCtx(()=>[
|
|
150
|
-
_createVNode(
|
|
168
|
+
_createVNode(_unref(BkLoading), {
|
|
151
169
|
loading: loading.value
|
|
152
170
|
}, {
|
|
153
171
|
default: _withCtx(()=>[
|
|
154
|
-
|
|
155
|
-
key: 0
|
|
156
|
-
}, {
|
|
172
|
+
_createVNode(_unref(BkFormItem), null, {
|
|
157
173
|
default: _withCtx(()=>[
|
|
158
174
|
_createElementVNode("h5", _hoisted_2, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
|
|
159
175
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
|
|
@@ -170,8 +186,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
170
186
|
}), 128 /* KEYED_FRAGMENT */ ))
|
|
171
187
|
]),
|
|
172
188
|
_: 1 /* STABLE */
|
|
173
|
-
})
|
|
174
|
-
_createVNode(
|
|
189
|
+
}),
|
|
190
|
+
_createVNode(_unref(BkFormItem), null, {
|
|
175
191
|
default: _withCtx(()=>[
|
|
176
192
|
_cache[3] || (_cache[3] = _createElementVNode("h5", {
|
|
177
193
|
class: "g-text-12 g-mb-4"
|
|
@@ -202,7 +218,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
202
218
|
"model"
|
|
203
219
|
]),
|
|
204
220
|
_createElementVNode("section", _hoisted_4, [
|
|
205
|
-
_createVNode(
|
|
221
|
+
_createVNode(_unref(BkButton), {
|
|
206
222
|
class: "g-width-88",
|
|
207
223
|
theme: "primary",
|
|
208
224
|
disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
|
|
@@ -222,7 +238,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
222
238
|
"disabled",
|
|
223
239
|
"loading"
|
|
224
240
|
]),
|
|
225
|
-
_createVNode(
|
|
241
|
+
_createVNode(_unref(BkButton), {
|
|
226
242
|
class: "g-width-88 g-ml-8",
|
|
227
243
|
onClick: _withModifiers(handleClose, [
|
|
228
244
|
"stop"
|
|
@@ -249,17 +265,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
249
265
|
onClick: _cache[0] || (_cache[0] = _withModifiers(($event)=>handleClick(5), [
|
|
250
266
|
"stop"
|
|
251
267
|
])),
|
|
252
|
-
class: "select-options"
|
|
268
|
+
class: "select-options g-inline-flex-row"
|
|
253
269
|
}, [
|
|
254
270
|
_renderSlot(_ctx.$slots, "like", {}, ()=>[
|
|
255
271
|
_withDirectives(_createElementVNode("i", {
|
|
256
272
|
class: _normalizeClass([
|
|
257
|
-
'ai-ui-sdk-icon g-hover-text-blue g-cursor-pointer g-mr-
|
|
273
|
+
'ai-ui-sdk-icon g-hover-text-blue g-cursor-pointer g-mr-8',
|
|
258
274
|
formData.value.rate === 5 ? 'g-text-blue ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
|
|
259
275
|
])
|
|
260
276
|
}, null, 2 /* CLASS */ ), [
|
|
261
277
|
[
|
|
262
|
-
|
|
278
|
+
_unref(vBkTooltips),
|
|
263
279
|
{
|
|
264
280
|
content: getTooltipContent(5),
|
|
265
281
|
placement: 'top'
|
|
@@ -272,7 +288,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
272
288
|
onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleClick(1), [
|
|
273
289
|
"stop"
|
|
274
290
|
])),
|
|
275
|
-
class: "select-options"
|
|
291
|
+
class: "select-options g-inline-flex-row"
|
|
276
292
|
}, [
|
|
277
293
|
_renderSlot(_ctx.$slots, "dislike", {}, ()=>[
|
|
278
294
|
_withDirectives(_createElementVNode("i", {
|
|
@@ -282,18 +298,18 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
282
298
|
])
|
|
283
299
|
}, null, 2 /* CLASS */ ), [
|
|
284
300
|
[
|
|
285
|
-
|
|
286
|
-
{
|
|
301
|
+
_unref(vBkTooltips),
|
|
302
|
+
_object_spread({
|
|
287
303
|
content: getTooltipContent(1),
|
|
288
304
|
placement: 'top'
|
|
289
|
-
}
|
|
305
|
+
}, _ctx.tooltipOptions)
|
|
290
306
|
]
|
|
291
307
|
])
|
|
292
308
|
], true)
|
|
293
309
|
])
|
|
294
310
|
]),
|
|
295
311
|
_: 3 /* FORWARDED */
|
|
296
|
-
},
|
|
312
|
+
}, 16 /* FULL_PROPS */ , [
|
|
297
313
|
"is-show"
|
|
298
314
|
]);
|
|
299
315
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
2
|
+
.dislike-icon[data-v-ksllk0co] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-ksllk0co] {
|
|
6
6
|
padding: 1px 8px;
|
|
7
7
|
background-color: #F0F1F5;
|
|
8
8
|
border-radius: 2px;
|
|
9
9
|
}
|
|
10
|
-
.option-items[data-v-
|
|
10
|
+
.option-items[data-v-ksllk0co]:hover {
|
|
11
11
|
background-color: #E1ECFF;
|
|
12
12
|
color: #3A84FF;
|
|
13
13
|
}
|
|
14
|
-
.option-items-selected[data-v-
|
|
14
|
+
.option-items-selected[data-v-ksllk0co]{
|
|
15
15
|
background-color: #E1ECFF;
|
|
16
16
|
}
|
|
17
|
-
[data-v-
|
|
17
|
+
[data-v-ksllk0co] .bk-form-item {
|
|
18
18
|
margin-bottom: 17px;
|
|
19
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ISessionFeedback } from '@/types/session';
|
|
1
2
|
interface IProps {
|
|
2
3
|
apiPrefix: string;
|
|
3
4
|
sessionCode: string;
|
|
@@ -6,21 +7,22 @@ interface IProps {
|
|
|
6
7
|
rate?: number;
|
|
7
8
|
comment?: string;
|
|
8
9
|
labels?: string[];
|
|
10
|
+
popoverOptions?: Record<string, unknown>;
|
|
11
|
+
tooltipOptions?: Record<string, unknown>;
|
|
9
12
|
}
|
|
10
|
-
declare var
|
|
13
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
11
14
|
type __VLS_Slots = {} & {
|
|
12
|
-
like?: (props: typeof
|
|
15
|
+
like?: (props: typeof __VLS_7) => any;
|
|
13
16
|
} & {
|
|
14
|
-
dislike?: (props: typeof
|
|
17
|
+
dislike?: (props: typeof __VLS_9) => any;
|
|
15
18
|
};
|
|
16
|
-
declare const
|
|
17
|
-
|
|
18
|
-
"update-session-content-list": () => any;
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
"update-session-content-list": (data: ISessionFeedback) => any;
|
|
19
21
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
20
|
-
|
|
21
|
-
"onUpdate-session-content-list"?: () => any;
|
|
22
|
+
"onUpdate-session-content-list"?: (data: ISessionFeedback) => any;
|
|
22
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
24
26
|
export default _default;
|
|
25
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
28
|
new (): {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-n2r4b1eo] {
|
|
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-n2r4b1eo] {
|
|
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-n2r4b1eo] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -4,5 +4,6 @@ interface IProps {
|
|
|
4
4
|
name: string;
|
|
5
5
|
}>;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { ISearchSelectItem } from '@/types/common';
|
|
2
|
-
declare const
|
|
3
|
-
props: __VLS_PrettifyLocal<
|
|
4
|
-
readonly "onUpdate:modelValue"?: (value: T) => any;
|
|
5
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<{
|
|
6
4
|
data: ISearchSelectItem[];
|
|
7
5
|
modelValue: T;
|
|
8
6
|
placeholder?: string;
|
|
@@ -14,15 +12,18 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
14
12
|
id: number;
|
|
15
13
|
}[]) => Promise<boolean | string> | boolean | string;
|
|
16
14
|
getMenuList?: Function;
|
|
17
|
-
} &
|
|
18
|
-
|
|
15
|
+
} & {
|
|
16
|
+
"onUpdate:modelValue"?: (value: T) => any;
|
|
17
|
+
}> & import("vue").PublicProps;
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
19
|
attrs: any;
|
|
20
20
|
slots: {};
|
|
21
21
|
emit: (event: "update:modelValue", value: T) => void;
|
|
22
22
|
}>) => import("vue").VNode & {
|
|
23
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
24
|
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
25
26
|
export default _default;
|
|
26
27
|
type __VLS_PrettifyLocal<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
+
[K in keyof T as K]: T[K];
|
|
28
29
|
} & {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withCtx as _withCtx, createBlock as _createBlock, withDirectives as _withDirectives } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-height-full g-bg-white g-p-12"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "quick-icon ai-ui-sdk-icon ai-ui-sdk-quanbu-xuanzhong g-text-18 g-mr-8 g-text-gray"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_3 = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "quick-icon ai-ui-sdk-icon ai-ui-sdk-wubiaoqian g-text-18 g-mr-8 g-text-gray"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
class: "g-flex-row manage-tree-item"
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_5 = [
|
|
18
|
+
"title"
|
|
19
|
+
];
|
|
20
|
+
const _hoisted_6 = {
|
|
21
|
+
class: "tag-number g-number-font"
|
|
22
|
+
};
|
|
23
|
+
import { ref, toRef, watch } from 'vue';
|
|
24
|
+
import RenderTree from '../render-tree/index.vue.js';
|
|
25
|
+
import { useCommonHttp } from '../../hooks/use-common-http.ts.js';
|
|
26
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
27
|
+
props: {
|
|
28
|
+
module: {},
|
|
29
|
+
subModule: {},
|
|
30
|
+
tagName: {},
|
|
31
|
+
tagId: {},
|
|
32
|
+
groupType: {},
|
|
33
|
+
apiPrefix: {},
|
|
34
|
+
spaceId: {}
|
|
35
|
+
},
|
|
36
|
+
emits: [
|
|
37
|
+
"update:tag-id",
|
|
38
|
+
"update:tagName"
|
|
39
|
+
],
|
|
40
|
+
setup (__props, { expose: __expose, emit: __emit }) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const { getTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
44
|
+
const loadingTagsTree = ref(false);
|
|
45
|
+
const openedIds = ref([]);
|
|
46
|
+
const tags = ref([]);
|
|
47
|
+
const allDataMap = ref({
|
|
48
|
+
tagId: undefined,
|
|
49
|
+
tagName: '全部',
|
|
50
|
+
count: 0,
|
|
51
|
+
property: null,
|
|
52
|
+
children: []
|
|
53
|
+
});
|
|
54
|
+
const isNodeHasChildren = (node)=>{
|
|
55
|
+
var _node_children;
|
|
56
|
+
var _node_children_length;
|
|
57
|
+
return ((_node_children_length = (_node_children = node.children) === null || _node_children === void 0 ? void 0 : _node_children.length) !== null && _node_children_length !== void 0 ? _node_children_length : 0) > 0;
|
|
58
|
+
};
|
|
59
|
+
const handleUpdateTagId = (tagId)=>{
|
|
60
|
+
emit('update:tag-id', tagId);
|
|
61
|
+
};
|
|
62
|
+
const handleUpdateTagName = (tagName)=>{
|
|
63
|
+
emit('update:tagName', tagName);
|
|
64
|
+
};
|
|
65
|
+
// 获取标签树列表
|
|
66
|
+
const handleGetTagsTree = ()=>{
|
|
67
|
+
loadingTagsTree.value = true;
|
|
68
|
+
getTagTree(props.module, props.subModule, props.tagName, props.groupType).then((data)=>{
|
|
69
|
+
allDataMap.value.count = data.all;
|
|
70
|
+
tags.value = [
|
|
71
|
+
allDataMap.value,
|
|
72
|
+
...data.tree
|
|
73
|
+
];
|
|
74
|
+
}).finally(()=>{
|
|
75
|
+
loadingTagsTree.value = false;
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
watch(()=>[
|
|
79
|
+
props.tagName,
|
|
80
|
+
props.groupType,
|
|
81
|
+
props.spaceId
|
|
82
|
+
], handleGetTagsTree, {
|
|
83
|
+
immediate: true
|
|
84
|
+
});
|
|
85
|
+
__expose({
|
|
86
|
+
handleGetTagsTree
|
|
87
|
+
});
|
|
88
|
+
return (_ctx, _cache)=>{
|
|
89
|
+
const _component_bk_input = _resolveComponent("bk-input");
|
|
90
|
+
const _directive_bkloading = _resolveDirective("bkloading");
|
|
91
|
+
return _openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
92
|
+
_createVNode(_component_bk_input, {
|
|
93
|
+
type: "search",
|
|
94
|
+
class: "g-mb-12",
|
|
95
|
+
clearable: "",
|
|
96
|
+
placeholder: "搜索标签关键字",
|
|
97
|
+
"model-value": props.tagName,
|
|
98
|
+
"onUpdate:modelValue": handleUpdateTagName
|
|
99
|
+
}, null, 8 /* PROPS */ , [
|
|
100
|
+
"model-value"
|
|
101
|
+
]),
|
|
102
|
+
_withDirectives((_openBlock(), _createBlock(RenderTree, {
|
|
103
|
+
"opened-ids": openedIds.value,
|
|
104
|
+
"onUpdate:openedIds": _cache[0] || (_cache[0] = ($event)=>openedIds.value = $event),
|
|
105
|
+
"api-prefix": props.apiPrefix,
|
|
106
|
+
"space-id": props.spaceId,
|
|
107
|
+
"selected-id": props.tagId,
|
|
108
|
+
data: tags.value,
|
|
109
|
+
"is-node-has-children": isNodeHasChildren,
|
|
110
|
+
class: "tag-tree",
|
|
111
|
+
"key-name": "tagId",
|
|
112
|
+
onSelect: _cache[1] || (_cache[1] = (data)=>handleUpdateTagId(data.tagId))
|
|
113
|
+
}, {
|
|
114
|
+
default: _withCtx((data)=>[
|
|
115
|
+
data.tagId === undefined ? (_openBlock(), _createElementBlock("i", _hoisted_2)) : _createCommentVNode("v-if", true),
|
|
116
|
+
data.tagId === -1 ? (_openBlock(), _createElementBlock("i", _hoisted_3)) : _createCommentVNode("v-if", true),
|
|
117
|
+
_createElementVNode("section", _hoisted_4, [
|
|
118
|
+
_createElementVNode("span", {
|
|
119
|
+
class: "g-flex-truncate g-mr-4",
|
|
120
|
+
title: data.tagName
|
|
121
|
+
}, _toDisplayString(data.tagName), 9 /* TEXT, PROPS */ , _hoisted_5),
|
|
122
|
+
_createElementVNode("span", _hoisted_6, _toDisplayString(data.count), 1 /* TEXT */ )
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
_: 1 /* STABLE */
|
|
126
|
+
}, 8 /* PROPS */ , [
|
|
127
|
+
"opened-ids",
|
|
128
|
+
"api-prefix",
|
|
129
|
+
"space-id",
|
|
130
|
+
"selected-id",
|
|
131
|
+
"data"
|
|
132
|
+
])), [
|
|
133
|
+
[
|
|
134
|
+
_directive_bkloading,
|
|
135
|
+
{
|
|
136
|
+
loading: loadingTagsTree.value
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
])
|
|
140
|
+
]);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
.tag-tree[data-v-p9u65crh] {
|
|
3
|
+
font-size: 12px;
|
|
4
|
+
height: auto;
|
|
5
|
+
}
|
|
6
|
+
.tag-tree .manage-tree-item[data-v-p9u65crh] {
|
|
7
|
+
height: 32px;
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
.tag-tree .quick-icon[data-v-p9u65crh] {
|
|
11
|
+
margin-left: -24px;
|
|
12
|
+
padding-left: 8px;
|
|
13
|
+
}
|
|
14
|
+
.tag-tree[data-v-p9u65crh] .tree-item:has(.quick-icon.ai-ui-sdk-wubiaoqian) {
|
|
15
|
+
border-bottom: 1px solid #F0F1F5;
|
|
16
|
+
}
|
|
17
|
+
.tag-tree[data-v-p9u65crh] .tree-item.active .quick-icon {
|
|
18
|
+
color: #3A84FF;
|
|
19
|
+
}
|
|
20
|
+
.tag-tree[data-v-p9u65crh] .tree-item.active .tag-number {
|
|
21
|
+
background: #A3C5FD;
|
|
22
|
+
color: #fff;
|
|
23
|
+
}
|
|
24
|
+
.tag-number[data-v-p9u65crh] {
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
padding: 0 4px;
|
|
27
|
+
background-color: #F0F1F5;
|
|
28
|
+
color: #979BA5;
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GroupType, Module } from '@/types/enum';
|
|
2
|
+
interface IProps {
|
|
3
|
+
module: Module;
|
|
4
|
+
subModule: Module;
|
|
5
|
+
tagName: string;
|
|
6
|
+
tagId?: number;
|
|
7
|
+
groupType?: GroupType;
|
|
8
|
+
apiPrefix: string;
|
|
9
|
+
spaceId?: string;
|
|
10
|
+
}
|
|
11
|
+
interface IExpose {
|
|
12
|
+
handleGetTagsTree: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, IExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:tag-id": (tagId: number) => any;
|
|
16
|
+
"update:tagName": (tagName: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
18
|
+
"onUpdate:tag-id"?: (tagId: number) => any;
|
|
19
|
+
"onUpdate:tagName"?: (tagName: string) => any;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|