@blueking/ai-ui-sdk 0.1.18-beta.5 → 0.1.18-beta.7
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-auto-refresh/index.vue.css +8 -8
- 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.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- 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.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.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/api.vue.css +2 -2
- 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/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/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/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/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 +7 -9
- 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-like/index.script.vue.js.js +138 -102
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.d.ts +5 -3
- 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.js +1 -1
- package/dist/http/helper/dataset.ts.js +5 -1
- package/package.json +1 -1
|
@@ -152,7 +152,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
152
152
|
'companyName',
|
|
153
153
|
'componentName'
|
|
154
154
|
],
|
|
155
|
-
'description'
|
|
155
|
+
'description',
|
|
156
|
+
'createdAt'
|
|
156
157
|
],
|
|
157
158
|
trigger: 'manual'
|
|
158
159
|
};
|
|
@@ -287,13 +288,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
287
288
|
_createVNode(_component_bk_table_column, {
|
|
288
289
|
label: "数据量",
|
|
289
290
|
field: "datasetItemCount",
|
|
290
|
-
width: "80"
|
|
291
|
+
width: "80",
|
|
292
|
+
sort: true
|
|
291
293
|
}),
|
|
292
294
|
_ctx.reviewDataset ? (_openBlock(), _createBlock(_component_bk_table_column, {
|
|
293
295
|
key: 0,
|
|
294
296
|
label: "待审核数据量",
|
|
295
297
|
field: "datasetItemUnreviewedCount",
|
|
296
|
-
width: "120"
|
|
298
|
+
width: "120",
|
|
299
|
+
sort: true
|
|
297
300
|
})) : _createCommentVNode("v-if", true),
|
|
298
301
|
_createVNode(_component_bk_table_column, {
|
|
299
302
|
label: "类型",
|
|
@@ -337,14 +340,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
337
340
|
}),
|
|
338
341
|
_createVNode(_component_bk_table_column, {
|
|
339
342
|
label: "创建时间",
|
|
340
|
-
field: "
|
|
343
|
+
field: "createdAt",
|
|
341
344
|
"min-width": "180",
|
|
342
345
|
sort: true
|
|
343
|
-
}, {
|
|
344
|
-
default: _withCtx(({ row })=>[
|
|
345
|
-
_createTextVNode(_toDisplayString(row.createdAt), 1 /* TEXT */ )
|
|
346
|
-
]),
|
|
347
|
-
_: 1 /* STABLE */
|
|
348
346
|
}),
|
|
349
347
|
_createVNode(_component_bk_table_column, {
|
|
350
348
|
label: "操作",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.expend-collapse-home[data-v-
|
|
2
|
+
.expend-collapse-home[data-v-u9apwqo1] {
|
|
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-u9apwqo1]:hover {
|
|
19
19
|
background: #979BA5;
|
|
20
20
|
}
|
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
|
21
|
+
.expend-collapse-home.is-close[data-v-u9apwqo1] {
|
|
22
22
|
left: 0;
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-9iec3xol] {
|
|
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-9iec3xol]: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-9iec3xol] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-9iec3xol] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-9iec3xol] {
|
|
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-9iec3xol] {
|
|
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-9iec3xol] {
|
|
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-9iec3xol] {
|
|
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-9iec3xol] {
|
|
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-9iec3xol]: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-9iec3xol] {
|
|
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-str1xf15] {
|
|
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-str1xf15], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-str1xf15], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-str1xf15] {
|
|
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-str1xf15] {
|
|
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-str1xf15] {
|
|
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-str1xf15] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-4yh8aeog] {
|
|
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-4yh8aeog] {
|
|
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-4yh8aeog] {
|
|
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-4yh8aeog] {
|
|
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-4yh8aeog] {
|
|
32
32
|
width: 300px;
|
|
33
33
|
font-size: 12px;
|
|
34
34
|
}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
|
|
2
|
+
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode, unref as _unref } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
|
+
class: "select-options"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
4
7
|
class: "g-text-16 g-mb-16"
|
|
5
8
|
};
|
|
6
|
-
const
|
|
9
|
+
const _hoisted_3 = [
|
|
7
10
|
"onClick"
|
|
8
11
|
];
|
|
9
|
-
const
|
|
12
|
+
const _hoisted_4 = {
|
|
10
13
|
class: "g-flex-row g-justify-end g-mt-16"
|
|
11
14
|
};
|
|
12
|
-
import {
|
|
15
|
+
import { clickoutside as vClickoutside } from 'bkui-vue';
|
|
16
|
+
import { ref, watch } from 'vue';
|
|
13
17
|
import RenderAutoHeightTextarea from '../render-auto-height-textarea/index.vue.js';
|
|
14
18
|
import { useSessionHttp } from '../../hooks/use-session-http.ts.js';
|
|
15
19
|
export default /*@__PURE__*/ _defineComponent({
|
|
@@ -23,7 +27,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
23
27
|
labels: {}
|
|
24
28
|
},
|
|
25
29
|
emits: [
|
|
26
|
-
|
|
30
|
+
"update-session-content-list",
|
|
31
|
+
"close"
|
|
27
32
|
],
|
|
28
33
|
setup (__props, { emit: __emit }) {
|
|
29
34
|
const props = __props;
|
|
@@ -36,11 +41,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
36
41
|
});
|
|
37
42
|
const isShow = ref(false);
|
|
38
43
|
const loading = ref(false);
|
|
44
|
+
const submitting = ref(false);
|
|
39
45
|
const feedbackOptions = ref([]);
|
|
40
46
|
const formData = ref({
|
|
41
47
|
sessionCode: props.sessionCode,
|
|
42
48
|
sessionContentIds: props.sessionContentIds,
|
|
43
|
-
rate: props.rate,
|
|
49
|
+
rate: props.rate === 5 || props.rate === 1 ? props.rate : undefined,
|
|
44
50
|
comment: props.comment,
|
|
45
51
|
labels: props.labels || []
|
|
46
52
|
});
|
|
@@ -71,7 +77,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
71
77
|
}
|
|
72
78
|
};
|
|
73
79
|
const rate = formData.value.rate;
|
|
74
|
-
return tooltipMap[number][rate]
|
|
80
|
+
return tooltipMap[number][rate];
|
|
75
81
|
};
|
|
76
82
|
const toggleOption = (option)=>{
|
|
77
83
|
const selected = formData.value.labels || [];
|
|
@@ -89,15 +95,34 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
89
95
|
});
|
|
90
96
|
};
|
|
91
97
|
const handleSubmit = ()=>{
|
|
98
|
+
submitting.value = true;
|
|
92
99
|
postSessionFeedback(formData.value).then(()=>{
|
|
93
100
|
emit('update-session-content-list');
|
|
94
101
|
handleClose();
|
|
102
|
+
}).finally(()=>{
|
|
103
|
+
submitting.value = false;
|
|
95
104
|
});
|
|
96
105
|
};
|
|
97
106
|
const handleClose = ()=>{
|
|
98
107
|
isShow.value = false;
|
|
99
|
-
|
|
108
|
+
setTimeout(()=>{
|
|
109
|
+
if (!isShow.value) {
|
|
110
|
+
formData.value.rate = undefined;
|
|
111
|
+
}
|
|
112
|
+
}, 100);
|
|
113
|
+
};
|
|
114
|
+
const handleClickOutside = (event)=>{
|
|
115
|
+
const target = event.target;
|
|
116
|
+
if (!target.closest('.select-options')) {
|
|
117
|
+
handleClose();
|
|
118
|
+
}
|
|
100
119
|
};
|
|
120
|
+
// 监听sessionContentIds的变化,确保formData中的sessionContentIds同步更新
|
|
121
|
+
watch(()=>props.sessionContentIds, (newIds)=>{
|
|
122
|
+
formData.value.sessionContentIds = newIds;
|
|
123
|
+
}, {
|
|
124
|
+
deep: true
|
|
125
|
+
});
|
|
101
126
|
return (_ctx, _cache)=>{
|
|
102
127
|
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
|
103
128
|
const _component_bk_loading = _resolveComponent("bk-loading");
|
|
@@ -114,112 +139,122 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
114
139
|
"is-show": isShow.value
|
|
115
140
|
}, {
|
|
116
141
|
content: _withCtx(()=>[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
default: _withCtx(()=>[
|
|
124
|
-
_createVNode(_component_bk_loading, {
|
|
125
|
-
loading: loading.value
|
|
126
|
-
}, {
|
|
127
|
-
default: _withCtx(()=>[
|
|
128
|
-
formData.value.rate !== 0 ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
|
129
|
-
key: 0
|
|
130
|
-
}, {
|
|
131
|
-
default: _withCtx(()=>[
|
|
132
|
-
_createElementVNode("h5", _hoisted_1, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
|
|
133
|
-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
|
|
134
|
-
return _openBlock(), _createElementBlock("span", {
|
|
135
|
-
class: _normalizeClass({
|
|
136
|
-
'option-items g-text-12 g-mr-4 g-mb-4 g-cursor-pointer g-float-left': true,
|
|
137
|
-
'option-items-selected g-text-blue': formData.value.labels.includes(option)
|
|
138
|
-
}),
|
|
139
|
-
key: index,
|
|
140
|
-
onClick: _withModifiers(($event)=>toggleOption(option), [
|
|
141
|
-
"stop"
|
|
142
|
-
])
|
|
143
|
-
}, _toDisplayString(option), 11 /* TEXT, CLASS, PROPS */ , _hoisted_2);
|
|
144
|
-
}), 128 /* KEYED_FRAGMENT */ ))
|
|
145
|
-
]),
|
|
146
|
-
_: 1 /* STABLE */
|
|
147
|
-
})) : _createCommentVNode("v-if", true),
|
|
148
|
-
_createVNode(_component_bk_form_item, null, {
|
|
149
|
-
default: _withCtx(()=>[
|
|
150
|
-
_cache[3] || (_cache[3] = _createElementVNode("h5", {
|
|
151
|
-
class: "g-text-12 g-mb-4"
|
|
152
|
-
}, " 其他原因 ", -1 /* HOISTED */ )),
|
|
153
|
-
_createVNode(RenderAutoHeightTextarea, {
|
|
154
|
-
placeholder: "说出你的想法",
|
|
155
|
-
height: 74,
|
|
156
|
-
width: 368,
|
|
157
|
-
"model-value": formData.value.comment,
|
|
158
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>formData.value.comment = value)
|
|
159
|
-
}, null, 8 /* PROPS */ , [
|
|
160
|
-
"model-value"
|
|
161
|
-
])
|
|
162
|
-
]),
|
|
163
|
-
_: 1 /* STABLE */ ,
|
|
164
|
-
__: [
|
|
165
|
-
3
|
|
166
|
-
]
|
|
167
|
-
})
|
|
168
|
-
]),
|
|
169
|
-
_: 1 /* STABLE */
|
|
170
|
-
}, 8 /* PROPS */ , [
|
|
171
|
-
"loading"
|
|
172
|
-
])
|
|
173
|
-
]),
|
|
174
|
-
_: 1 /* STABLE */
|
|
175
|
-
}, 8 /* PROPS */ , [
|
|
176
|
-
"model"
|
|
177
|
-
]),
|
|
178
|
-
_createElementVNode("section", _hoisted_3, [
|
|
179
|
-
_createVNode(_component_bk_button, {
|
|
180
|
-
class: "g-width-88",
|
|
181
|
-
theme: "primary",
|
|
182
|
-
disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
|
|
183
|
-
onClick: _withModifiers(handleSubmit, [
|
|
184
|
-
"stop"
|
|
185
|
-
])
|
|
142
|
+
_withDirectives((_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
143
|
+
_createVNode(_component_bk_form, {
|
|
144
|
+
"form-type": "vertical",
|
|
145
|
+
ref: "formRef",
|
|
146
|
+
class: "g-small-form g-short-form",
|
|
147
|
+
model: formData.value
|
|
186
148
|
}, {
|
|
187
|
-
default: _withCtx(()=>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
149
|
+
default: _withCtx(()=>[
|
|
150
|
+
_createVNode(_component_bk_loading, {
|
|
151
|
+
loading: loading.value
|
|
152
|
+
}, {
|
|
153
|
+
default: _withCtx(()=>[
|
|
154
|
+
formData.value.rate !== undefined ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
|
155
|
+
key: 0
|
|
156
|
+
}, {
|
|
157
|
+
default: _withCtx(()=>[
|
|
158
|
+
_createElementVNode("h5", _hoisted_2, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
|
|
159
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
|
|
160
|
+
return _openBlock(), _createElementBlock("span", {
|
|
161
|
+
class: _normalizeClass({
|
|
162
|
+
'option-items g-text-12 g-mr-4 g-mb-4 g-cursor-pointer g-float-left': true,
|
|
163
|
+
'option-items-selected g-text-blue': formData.value.labels.includes(option)
|
|
164
|
+
}),
|
|
165
|
+
key: index,
|
|
166
|
+
onClick: _withModifiers(($event)=>toggleOption(option), [
|
|
167
|
+
"stop"
|
|
168
|
+
])
|
|
169
|
+
}, _toDisplayString(option), 11 /* TEXT, CLASS, PROPS */ , _hoisted_3);
|
|
170
|
+
}), 128 /* KEYED_FRAGMENT */ ))
|
|
171
|
+
]),
|
|
172
|
+
_: 1 /* STABLE */
|
|
173
|
+
})) : _createCommentVNode("v-if", true),
|
|
174
|
+
_createVNode(_component_bk_form_item, null, {
|
|
175
|
+
default: _withCtx(()=>[
|
|
176
|
+
_cache[3] || (_cache[3] = _createElementVNode("h5", {
|
|
177
|
+
class: "g-text-12 g-mb-4"
|
|
178
|
+
}, " 其他原因 ", -1 /* HOISTED */ )),
|
|
179
|
+
_createVNode(RenderAutoHeightTextarea, {
|
|
180
|
+
placeholder: "说出你的想法",
|
|
181
|
+
height: 74,
|
|
182
|
+
width: 368,
|
|
183
|
+
"model-value": formData.value.comment,
|
|
184
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>formData.value.comment = value)
|
|
185
|
+
}, null, 8 /* PROPS */ , [
|
|
186
|
+
"model-value"
|
|
187
|
+
])
|
|
188
|
+
]),
|
|
189
|
+
_: 1 /* STABLE */ ,
|
|
190
|
+
__: [
|
|
191
|
+
3
|
|
192
|
+
]
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
_: 1 /* STABLE */
|
|
196
|
+
}, 8 /* PROPS */ , [
|
|
197
|
+
"loading"
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
_: 1 /* STABLE */
|
|
194
201
|
}, 8 /* PROPS */ , [
|
|
195
|
-
"
|
|
202
|
+
"model"
|
|
196
203
|
]),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
])
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
_createElementVNode("section", _hoisted_4, [
|
|
205
|
+
_createVNode(_component_bk_button, {
|
|
206
|
+
class: "g-width-88",
|
|
207
|
+
theme: "primary",
|
|
208
|
+
disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
|
|
209
|
+
loading: submitting.value,
|
|
210
|
+
onClick: _withModifiers(handleSubmit, [
|
|
211
|
+
"stop"
|
|
212
|
+
])
|
|
213
|
+
}, {
|
|
214
|
+
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
|
215
|
+
_createTextVNode(" 提交 ")
|
|
216
|
+
])),
|
|
217
|
+
_: 1 /* STABLE */ ,
|
|
218
|
+
__: [
|
|
219
|
+
4
|
|
220
|
+
]
|
|
221
|
+
}, 8 /* PROPS */ , [
|
|
222
|
+
"disabled",
|
|
223
|
+
"loading"
|
|
224
|
+
]),
|
|
225
|
+
_createVNode(_component_bk_button, {
|
|
226
|
+
class: "g-width-88 g-ml-8",
|
|
227
|
+
onClick: _withModifiers(handleClose, [
|
|
228
|
+
"stop"
|
|
229
|
+
])
|
|
230
|
+
}, {
|
|
231
|
+
default: _withCtx(()=>_cache[5] || (_cache[5] = [
|
|
232
|
+
_createTextVNode(" 取消 ")
|
|
233
|
+
])),
|
|
234
|
+
_: 1 /* STABLE */ ,
|
|
235
|
+
__: [
|
|
236
|
+
5
|
|
237
|
+
]
|
|
238
|
+
})
|
|
239
|
+
])
|
|
240
|
+
])), [
|
|
241
|
+
[
|
|
242
|
+
_unref(vClickoutside),
|
|
243
|
+
handleClickOutside
|
|
244
|
+
]
|
|
211
245
|
])
|
|
212
246
|
]),
|
|
213
247
|
default: _withCtx(()=>[
|
|
214
248
|
_createElementVNode("span", {
|
|
215
249
|
onClick: _cache[0] || (_cache[0] = _withModifiers(($event)=>handleClick(5), [
|
|
216
250
|
"stop"
|
|
217
|
-
]))
|
|
251
|
+
])),
|
|
252
|
+
class: "select-options"
|
|
218
253
|
}, [
|
|
219
254
|
_renderSlot(_ctx.$slots, "like", {}, ()=>[
|
|
220
255
|
_withDirectives(_createElementVNode("i", {
|
|
221
256
|
class: _normalizeClass([
|
|
222
|
-
'bkaidev-icon g-hover-text-blue g-cursor-pointer',
|
|
257
|
+
'bkaidev-icon g-hover-text-blue g-cursor-pointer g-mr-6',
|
|
223
258
|
formData.value.rate === 5 ? 'g-text-blue bkaidev-like' : 'g-text-gray bkaidev-unlike'
|
|
224
259
|
])
|
|
225
260
|
}, null, 2 /* CLASS */ ), [
|
|
@@ -236,7 +271,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
236
271
|
_createElementVNode("span", {
|
|
237
272
|
onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleClick(1), [
|
|
238
273
|
"stop"
|
|
239
|
-
]))
|
|
274
|
+
])),
|
|
275
|
+
class: "select-options"
|
|
240
276
|
}, [
|
|
241
277
|
_renderSlot(_ctx.$slots, "dislike", {}, ()=>[
|
|
242
278
|
_withDirectives(_createElementVNode("i", {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
2
|
+
.dislike-icon[data-v-l9181fmf] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-l9181fmf] {
|
|
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-l9181fmf]:hover {
|
|
11
11
|
background-color: #E1ECFF;
|
|
12
12
|
color: #3A84FF;
|
|
13
13
|
}
|
|
14
|
-
.option-items-selected[data-v-
|
|
14
|
+
.option-items-selected[data-v-l9181fmf]{
|
|
15
15
|
background-color: #E1ECFF;
|
|
16
16
|
}
|
|
17
|
-
[data-v-
|
|
17
|
+
[data-v-l9181fmf] .bk-form-item {
|
|
18
18
|
margin-bottom: 17px;
|
|
19
19
|
}
|
|
@@ -13,10 +13,12 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
} & {
|
|
14
14
|
dislike?: (props: typeof __VLS_8) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_component: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
close: () => any;
|
|
18
|
+
"update-session-content-list": () => any;
|
|
18
19
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
19
|
-
|
|
20
|
+
onClose?: () => any;
|
|
21
|
+
"onUpdate-session-content-list"?: () => any;
|
|
20
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
23
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
24
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-ptmrappa] {
|
|
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-ptmrappa] {
|
|
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-ptmrappa] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -181,7 +181,11 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
181
181
|
generate_type: data === null || data === void 0 ? void 0 : data.generateType,
|
|
182
182
|
page: data === null || data === void 0 ? void 0 : data.page,
|
|
183
183
|
limit: data === null || data === void 0 ? void 0 : data.limit,
|
|
184
|
-
order_by: data === null || data === void 0 ? void 0 : data.order_by
|
|
184
|
+
order_by: (data === null || data === void 0 ? void 0 : data.order_by) ? ({
|
|
185
|
+
datasetItemCount: 'dataset_item_count',
|
|
186
|
+
datasetItemUnreviewedCount: 'dataset_item_unreviewed_count',
|
|
187
|
+
createdAt: 'created_at'
|
|
188
|
+
})[data.order_by] : undefined,
|
|
185
189
|
order_method: data === null || data === void 0 ? void 0 : data.order_method
|
|
186
190
|
};
|
|
187
191
|
};
|