askbot-dragon 1.7.75-beta → 1.7.78-beta
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/package.json +6 -7
- package/public/index.html +7 -5
- package/src/assets/js/AliyunlssUtil.js +25 -49
- package/src/assets/js/hammer.js +2 -13
- package/src/assets/less/converSationContainer/common.less +0 -7
- package/src/components/ActionAlertIframe.vue +1 -24
- package/src/components/AiGuide.vue +151 -114
- package/src/components/AnswerDocknowledge.vue +19 -7
- package/src/components/ConversationContainer.vue +215 -99
- package/src/components/MyEditor.vue +1 -2
- package/src/components/actionSatisfaction.vue +1 -1
- package/src/components/answerRadio.vue +1 -1
- package/src/components/askVideo.vue +0 -23
- package/src/components/associationIntention.vue +7 -11
- package/src/components/formTemplate.vue +62 -56
- package/src/components/intelligentSummary.vue +1 -5
- package/src/components/markDownText.vue +1 -1
- package/src/components/message/TextMessage.vue +1 -5
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/pdfPosition.vue +12 -190
- package/src/components/preview/excelView.vue +10 -2
- package/src/components/previewDoc.vue +0 -4
- package/src/components/previewPdf.vue +395 -416
- package/src/components/senderMessagePlatform.vue +1 -1
- package/src/components/utils/ckeditor.js +1 -1
- package/src/components/welcomeKnowledgeFile.vue +1 -5
- package/src/components/welcomeLlmCard.vue +1 -5
- package/src/main.js +1 -1
- package/src/components/newPdfPosition.vue +0 -878
- package/src/locales/jp.json +0 -73
|
@@ -1,132 +1,194 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div
|
|
3
|
+
id="ai-guide"
|
|
4
|
+
class="ai-guide"
|
|
5
|
+
:class="{
|
|
6
|
+
phoneClass: isPhone,
|
|
7
|
+
companyClass: isPC,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
6
10
|
<div class="ig-view-cli">
|
|
7
11
|
<!-- 描述 -->
|
|
8
|
-
<div
|
|
12
|
+
<div
|
|
13
|
+
v-show="aiGuide.content.descriptionVisible && aiGuide.content.description !== ''"
|
|
14
|
+
class="ig-types-des"
|
|
15
|
+
>
|
|
9
16
|
<span v-html="aiGuide.content.description"></span>
|
|
10
17
|
</div>
|
|
11
18
|
<!-- 一级分类 -->
|
|
12
|
-
<div v-show="aiGuide.content.typesVisible
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
<div v-show="aiGuide.content.typesVisible" class="ig-types-f">
|
|
20
|
+
<span
|
|
21
|
+
v-for="(fType, fTypeIndex) in aiGuide.content.options"
|
|
22
|
+
:key="`f_${fTypeIndex}`"
|
|
23
|
+
@click="changeFirstType(fTypeIndex)"
|
|
24
|
+
:class="[
|
|
16
25
|
'ig-types-f-cell',
|
|
17
26
|
activeFirstTypeIndex === fTypeIndex
|
|
18
27
|
? 'ig-types-f-cell-active'
|
|
19
28
|
: '',
|
|
20
|
-
]"
|
|
29
|
+
]"
|
|
30
|
+
>{{ fType.name }}</span
|
|
31
|
+
>
|
|
21
32
|
</div>
|
|
22
33
|
<!-- 二级分类 -->
|
|
23
|
-
<div v-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
<div v-show="aiGuide.content.typesVisible && aiGuide.content.options[
|
|
35
|
+
activeFirstTypeIndex
|
|
36
|
+
].types.length !== 0" class="ig-types-s">
|
|
37
|
+
<span
|
|
38
|
+
v-for="(sType, sTypeIndex) in aiGuide.content.options[
|
|
39
|
+
activeFirstTypeIndex
|
|
40
|
+
].types"
|
|
41
|
+
:key="`s_${sTypeIndex}`"
|
|
42
|
+
@click="changeLastType(sTypeIndex)"
|
|
43
|
+
:class="[
|
|
44
|
+
'ig-types-s-cell',
|
|
45
|
+
activeSecondTypeIndex === sTypeIndex
|
|
46
|
+
? 'ig-types-s-cell-active'
|
|
47
|
+
: '',
|
|
48
|
+
]"
|
|
49
|
+
>{{ sType.name }}</span
|
|
50
|
+
>
|
|
33
51
|
</div>
|
|
34
52
|
<!-- 横向排版 -->
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
<div
|
|
54
|
+
v-show="
|
|
55
|
+
activeOtherObj.recommendType == 0 &&
|
|
56
|
+
aiGuide.content.typesetting === 'horizontal'
|
|
57
|
+
"
|
|
58
|
+
class="ig-types-tags"
|
|
59
|
+
>
|
|
60
|
+
<span
|
|
61
|
+
v-for="(
|
|
39
62
|
intentCell, intentCellIndex
|
|
40
|
-
) in recommendIntentPageList(activeOtherObj)"
|
|
63
|
+
) in recommendIntentPageList(activeOtherObj)"
|
|
64
|
+
@click="
|
|
41
65
|
sendAiGuideInfo(
|
|
42
66
|
activeOtherObj.recommendType,
|
|
43
67
|
intentCell
|
|
44
68
|
)
|
|
45
|
-
|
|
69
|
+
"
|
|
70
|
+
:key="`i_${intentCellIndex}`"
|
|
71
|
+
class="ig-types-tags-cell"
|
|
72
|
+
>{{ intentCell.questionName }}</span
|
|
73
|
+
>
|
|
46
74
|
</div>
|
|
47
75
|
<!-- 竖向排版 -->
|
|
48
|
-
<div
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
76
|
+
<div
|
|
77
|
+
v-show="
|
|
78
|
+
activeOtherObj.recommendType == 0 &&
|
|
79
|
+
aiGuide.content.typesetting === 'vertical'
|
|
80
|
+
"
|
|
81
|
+
class="ig-types-list"
|
|
82
|
+
>
|
|
83
|
+
<span
|
|
84
|
+
v-for="(
|
|
52
85
|
intentCell, intentCellIndex
|
|
53
|
-
) in recommendIntentPageList(activeOtherObj)"
|
|
86
|
+
) in recommendIntentPageList(activeOtherObj)"
|
|
87
|
+
@click="
|
|
54
88
|
sendAiGuideInfo(
|
|
55
89
|
activeOtherObj.recommendType,
|
|
56
90
|
intentCell
|
|
57
91
|
)
|
|
58
|
-
|
|
92
|
+
"
|
|
93
|
+
:key="`i_${intentCellIndex}`"
|
|
94
|
+
class="ig-types-list-cell"
|
|
95
|
+
>
|
|
59
96
|
<span>{{ intentCell.questionName }}</span>
|
|
60
|
-
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
61
|
-
|
|
62
|
-
<path
|
|
63
|
-
d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z"
|
|
64
|
-
p-id="96726" fill="#366aff"></path>
|
|
65
|
-
</svg></span></span>
|
|
97
|
+
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
|
|
98
|
+
></span>
|
|
66
99
|
</div>
|
|
67
100
|
<!-- 横向排版 -->
|
|
68
|
-
<div
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
101
|
+
<div
|
|
102
|
+
v-show="
|
|
103
|
+
activeOtherObj.recommendType == 1 &&
|
|
104
|
+
aiGuide.content.typesetting === 'horizontal'
|
|
105
|
+
"
|
|
106
|
+
class="ig-types-tags"
|
|
107
|
+
>
|
|
108
|
+
<span
|
|
109
|
+
v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
|
|
110
|
+
:key="`i_${intentCellIndex}`"
|
|
111
|
+
@click="
|
|
73
112
|
sendAiGuideInfo(
|
|
74
113
|
activeOtherObj.recommendType,
|
|
75
114
|
intentCell
|
|
76
115
|
)
|
|
77
|
-
|
|
116
|
+
"
|
|
117
|
+
class="ig-types-tags-cell"
|
|
118
|
+
>{{ intentCell.exampleQuestion }}</span
|
|
119
|
+
>
|
|
78
120
|
</div>
|
|
79
121
|
<!-- 竖向排版 -->
|
|
80
|
-
<div
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
122
|
+
<div
|
|
123
|
+
v-show="
|
|
124
|
+
activeOtherObj.recommendType == 1 &&
|
|
125
|
+
aiGuide.content.typesetting === 'vertical'
|
|
126
|
+
"
|
|
127
|
+
class="ig-types-list"
|
|
128
|
+
>
|
|
129
|
+
<span
|
|
130
|
+
v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
|
|
131
|
+
:key="`i_${intentCellIndex}`"
|
|
132
|
+
@click="
|
|
85
133
|
sendAiGuideInfo(
|
|
86
134
|
activeOtherObj.recommendType,
|
|
87
135
|
intentCell
|
|
88
136
|
)
|
|
89
|
-
|
|
137
|
+
"
|
|
138
|
+
class="ig-types-list-cell"
|
|
139
|
+
>
|
|
90
140
|
<span>{{ intentCell.exampleQuestion }}</span>
|
|
91
|
-
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
92
|
-
|
|
93
|
-
<path
|
|
94
|
-
d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z"
|
|
95
|
-
p-id="96726" fill="#366aff"></path>
|
|
96
|
-
</svg></span></span>
|
|
141
|
+
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
|
|
142
|
+
></span>
|
|
97
143
|
</div>
|
|
98
144
|
<!-- 横向排版 -->
|
|
99
|
-
<div
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
145
|
+
<div
|
|
146
|
+
v-show="
|
|
147
|
+
activeOtherObj.recommendType == 2 &&
|
|
148
|
+
aiGuide.content.typesetting === 'horizontal'
|
|
149
|
+
"
|
|
150
|
+
class="ig-types-tags"
|
|
151
|
+
>
|
|
152
|
+
<span
|
|
153
|
+
v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
|
|
154
|
+
:key="`i_${intentCellIndex}`"
|
|
155
|
+
@click="
|
|
104
156
|
sendAiGuideInfo(
|
|
105
157
|
activeOtherObj.recommendType,
|
|
106
158
|
intentCell
|
|
107
159
|
)
|
|
108
|
-
|
|
160
|
+
"
|
|
161
|
+
class="ig-types-tags-cell"
|
|
162
|
+
>{{ intentCell.exampleQuestion }}</span
|
|
163
|
+
>
|
|
109
164
|
</div>
|
|
110
165
|
<!-- 竖向排版 -->
|
|
111
|
-
<div
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
166
|
+
<div
|
|
167
|
+
v-show="
|
|
168
|
+
activeOtherObj.recommendType == 2 &&
|
|
169
|
+
aiGuide.content.typesetting === 'vertical'
|
|
170
|
+
"
|
|
171
|
+
class="ig-types-list"
|
|
172
|
+
>
|
|
173
|
+
<span
|
|
174
|
+
v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
|
|
175
|
+
:key="`i_${intentCellIndex}`"
|
|
176
|
+
@click="
|
|
116
177
|
sendAiGuideInfo(
|
|
117
178
|
activeOtherObj.recommendType,
|
|
118
179
|
intentCell
|
|
119
180
|
)
|
|
120
|
-
|
|
181
|
+
"
|
|
182
|
+
class="ig-types-list-cell"
|
|
183
|
+
>
|
|
121
184
|
<span>{{ intentCell.exampleQuestion }}</span>
|
|
122
|
-
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
123
|
-
|
|
124
|
-
<path
|
|
125
|
-
d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z"
|
|
126
|
-
p-id="96726" fill="#366aff"></path>
|
|
127
|
-
</svg></span></span>
|
|
185
|
+
<span><svg t="1720148108415" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96725" width="12" height="12"><path d="M246.728409 927.106061l414.195993-414.195993-409.542106-417.779487A57.615128 57.615128 0 0 1 256.036184 16.247187a49.377747 49.377747 0 0 1 37.2311-16.335145 48.02812 48.02812 0 0 1 37.231101 16.893611l446.773206 457.616765a57.568589 57.568589 0 0 1-4.653887 78.883394c0 1.489244 0 2.792333-4.653888 4.095421L325.844497 1006.408305a56.218962 56.218962 0 0 1-79.116088-0.605005 62.687865 62.687865 0 0 1 0-78.697239z" p-id="96726" fill="#366aff"></path></svg></span
|
|
186
|
+
></span>
|
|
128
187
|
</div>
|
|
129
|
-
<div
|
|
188
|
+
<div
|
|
189
|
+
v-if="aiGuide.content.groupVisible && totalPage > 1"
|
|
190
|
+
class="ig-change-list"
|
|
191
|
+
>
|
|
130
192
|
<span @click="changeIntellectGuide" class="ig-change-list-btn">
|
|
131
193
|
<svg t="1720148246364" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="136175" width="16" height="16"><path d="M225.6 540.8C240 686.4 363.2 800 512 800c76.8 0 150.4-30.4 203.2-84.8 12.8-12.8 32-12.8 44.8 0s12.8 32 0 44.8c-64 65.6-153.6 104-248 104-184 0-336-142.4-350.4-323.2l-43.2 41.6c-12.8 12.8-33.6 11.2-44.8 0s-11.2-33.6 0-44.8l99.2-96c12.8-12.8 33.6-11.2 44.8 0l92.8 96c12.8 12.8 11.2 33.6-1.6 44.8-12.8 12.8-33.6 11.2-44.8-1.6l-38.4-40zM800 497.6C792 345.6 665.6 224 512 224c-76.8 0-148.8 30.4-203.2 83.2-12.8 12.8-33.6 12.8-44.8 0-12.8-12.8-12.8-33.6 0-44.8 65.6-64 153.6-102.4 248-102.4 192 0 347.2 153.6 352 342.4l41.6-40c12.8-12.8 33.6-11.2 44.8 1.6 12.8 12.8 11.2 33.6-1.6 44.8l-94.4 89.6c-12.8 11.2-32 11.2-44.8 0l-97.6-96c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l43.2 40z" p-id="136176" fill="#366aff"></path></svg>
|
|
132
194
|
{{$t('dragonCommon.refresh')}}</span
|
|
@@ -138,7 +200,7 @@
|
|
|
138
200
|
<script>
|
|
139
201
|
export default {
|
|
140
202
|
name: "aiGuide",
|
|
141
|
-
data
|
|
203
|
+
data() {
|
|
142
204
|
return {
|
|
143
205
|
isPhone: false,
|
|
144
206
|
isPC: false,
|
|
@@ -169,23 +231,19 @@ export default {
|
|
|
169
231
|
},
|
|
170
232
|
props: {
|
|
171
233
|
aiGuide: Object,
|
|
172
|
-
language: {
|
|
173
|
-
type: String,
|
|
174
|
-
default: "cn"
|
|
175
|
-
}
|
|
176
234
|
},
|
|
177
|
-
beforeMount
|
|
178
|
-
mounted
|
|
235
|
+
beforeMount() {},
|
|
236
|
+
mounted() {
|
|
179
237
|
this.isMobile();
|
|
180
|
-
if (this.aiGuide.content.options[0]
|
|
238
|
+
if (this.aiGuide.content.options[0].types.length === 0) {
|
|
181
239
|
this.activeOtherObj = this.aiGuide.content.options[0];
|
|
182
240
|
} else {
|
|
183
241
|
this.activeSecondTypeIndex = 0;
|
|
184
|
-
this.activeOtherObj = this.aiGuide.content.options[0]
|
|
242
|
+
this.activeOtherObj = this.aiGuide.content.options[0].types[0];
|
|
185
243
|
}
|
|
186
244
|
},
|
|
187
245
|
methods: {
|
|
188
|
-
isMobile
|
|
246
|
+
isMobile() {
|
|
189
247
|
let flag = navigator.userAgent.match(
|
|
190
248
|
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
191
249
|
);
|
|
@@ -195,14 +253,14 @@ export default {
|
|
|
195
253
|
this.isPC = true;
|
|
196
254
|
}
|
|
197
255
|
},
|
|
198
|
-
changeIntellectGuide
|
|
256
|
+
changeIntellectGuide() {
|
|
199
257
|
if (this.activePage === this.totalPage) {
|
|
200
258
|
this.activePage = 1;
|
|
201
259
|
} else {
|
|
202
260
|
this.activePage++;
|
|
203
261
|
}
|
|
204
262
|
},
|
|
205
|
-
changeFirstType
|
|
263
|
+
changeFirstType(fTypeIndex) {
|
|
206
264
|
this.activeFirstTypeIndex = fTypeIndex;
|
|
207
265
|
if (this.aiGuide.content.options[fTypeIndex].types.length === 0) {
|
|
208
266
|
this.activeOtherObj = this.aiGuide.content.options[fTypeIndex];
|
|
@@ -213,16 +271,16 @@ export default {
|
|
|
213
271
|
}
|
|
214
272
|
this.activePage = 1;
|
|
215
273
|
},
|
|
216
|
-
changeLastType
|
|
274
|
+
changeLastType(sTypeIndex) {
|
|
217
275
|
this.activeSecondTypeIndex = sTypeIndex;
|
|
218
276
|
this.activeOtherObj =
|
|
219
277
|
this.aiGuide.content.options[this.activeFirstTypeIndex].types[
|
|
220
|
-
|
|
278
|
+
sTypeIndex
|
|
221
279
|
];
|
|
222
280
|
this.activePage = 1;
|
|
223
281
|
},
|
|
224
282
|
// 根据当前分组数页数返回展示列表
|
|
225
|
-
recommendIntentPageList
|
|
283
|
+
recommendIntentPageList(obj) {
|
|
226
284
|
let list = [];
|
|
227
285
|
if (obj.recommendType === 0) {
|
|
228
286
|
list = obj.recommendIntentList;
|
|
@@ -253,9 +311,9 @@ export default {
|
|
|
253
311
|
}
|
|
254
312
|
return arr;
|
|
255
313
|
},
|
|
256
|
-
sendAiGuideInfo
|
|
257
|
-
|
|
258
|
-
|
|
314
|
+
sendAiGuideInfo(recommendType, cell) {
|
|
315
|
+
console.log("组件-312-3", recommendType, cell);
|
|
316
|
+
this.$emit('sendAiGuide', recommendType, cell);
|
|
259
317
|
},
|
|
260
318
|
},
|
|
261
319
|
};
|
|
@@ -267,29 +325,24 @@ export default {
|
|
|
267
325
|
font-size: 0.9em;
|
|
268
326
|
border-radius: 5px;
|
|
269
327
|
position: relative;
|
|
270
|
-
|
|
271
328
|
.ig-view-example {
|
|
272
329
|
position: absolute;
|
|
273
330
|
right: -10px;
|
|
274
331
|
top: -10px;
|
|
275
332
|
opacity: 0.5;
|
|
276
|
-
|
|
277
333
|
img {
|
|
278
334
|
height: 50px;
|
|
279
335
|
}
|
|
280
336
|
}
|
|
281
|
-
|
|
282
337
|
.ig-types-des {
|
|
283
338
|
padding: 12px 16px 0px;
|
|
284
339
|
text-align: left;
|
|
285
340
|
}
|
|
286
|
-
|
|
287
341
|
.ig-types-f {
|
|
288
342
|
display: flex;
|
|
289
343
|
justify-content: flex-start;
|
|
290
344
|
flex-wrap: wrap;
|
|
291
345
|
padding: 4px 8px;
|
|
292
|
-
|
|
293
346
|
.ig-types-f-cell {
|
|
294
347
|
height: 1.8em;
|
|
295
348
|
line-height: 1.8em;
|
|
@@ -305,33 +358,28 @@ export default {
|
|
|
305
358
|
overflow: hidden;
|
|
306
359
|
text-overflow: ellipsis;
|
|
307
360
|
white-space: nowrap;
|
|
308
|
-
|
|
309
361
|
&:hover {
|
|
310
362
|
border: 1px solid #366aff;
|
|
311
363
|
color: #366aff;
|
|
312
364
|
}
|
|
313
|
-
|
|
314
365
|
&-active {
|
|
315
366
|
background-color: #366aff;
|
|
316
367
|
border: 1px solid #366aff;
|
|
317
368
|
color: white;
|
|
318
369
|
}
|
|
319
370
|
}
|
|
320
|
-
|
|
321
371
|
.ig-types-f-cell-active {
|
|
322
372
|
&:hover {
|
|
323
373
|
color: white;
|
|
324
374
|
}
|
|
325
375
|
}
|
|
326
376
|
}
|
|
327
|
-
|
|
328
377
|
.ig-types-s {
|
|
329
378
|
display: flex;
|
|
330
379
|
justify-content: flex-start;
|
|
331
380
|
flex-wrap: wrap;
|
|
332
381
|
margin: 0px 16px 4px;
|
|
333
382
|
border-bottom: solid 1px #e0e6f7;
|
|
334
|
-
|
|
335
383
|
.ig-types-s-cell {
|
|
336
384
|
height: 2.2em;
|
|
337
385
|
line-height: 2.2em;
|
|
@@ -342,25 +390,21 @@ export default {
|
|
|
342
390
|
overflow: hidden;
|
|
343
391
|
text-overflow: ellipsis;
|
|
344
392
|
white-space: nowrap;
|
|
345
|
-
|
|
346
393
|
&:hover {
|
|
347
394
|
color: #366aff;
|
|
348
395
|
}
|
|
349
|
-
|
|
350
396
|
&-active {
|
|
351
397
|
border-bottom: 2px solid #366aff;
|
|
352
398
|
color: #366aff;
|
|
353
399
|
}
|
|
354
400
|
}
|
|
355
401
|
}
|
|
356
|
-
|
|
357
402
|
.ig-types-tags {
|
|
358
403
|
margin: 0 16px;
|
|
359
404
|
padding: 0 0 12px;
|
|
360
405
|
display: flex;
|
|
361
406
|
justify-content: flex-start;
|
|
362
407
|
flex-wrap: wrap;
|
|
363
|
-
|
|
364
408
|
.ig-types-tags-cell {
|
|
365
409
|
line-height: 1.4em;
|
|
366
410
|
padding: 2px 8px;
|
|
@@ -373,7 +417,6 @@ export default {
|
|
|
373
417
|
cursor: pointer;
|
|
374
418
|
}
|
|
375
419
|
}
|
|
376
|
-
|
|
377
420
|
.ig-high-frequency-empty {
|
|
378
421
|
margin: 6px 15px;
|
|
379
422
|
height: 40px;
|
|
@@ -384,14 +427,12 @@ export default {
|
|
|
384
427
|
padding: 0 12px;
|
|
385
428
|
text-align: left;
|
|
386
429
|
}
|
|
387
|
-
|
|
388
430
|
.ig-types-list {
|
|
389
431
|
margin: 0 16px;
|
|
390
432
|
padding: 0 0 8px 0;
|
|
391
433
|
display: flex;
|
|
392
434
|
flex-direction: column;
|
|
393
435
|
justify-content: flex-start;
|
|
394
|
-
|
|
395
436
|
.ig-types-list-cell {
|
|
396
437
|
line-height: 1.1em;
|
|
397
438
|
padding: 8px 0;
|
|
@@ -402,19 +443,16 @@ export default {
|
|
|
402
443
|
cursor: pointer;
|
|
403
444
|
align-items: center;
|
|
404
445
|
text-align: left;
|
|
405
|
-
|
|
406
446
|
span {
|
|
407
447
|
display: flex;
|
|
408
448
|
align-items: center;
|
|
409
449
|
flex-direction: column;
|
|
410
|
-
|
|
411
450
|
i {
|
|
412
451
|
// margin-top: 12px;
|
|
413
452
|
}
|
|
414
453
|
}
|
|
415
454
|
}
|
|
416
455
|
}
|
|
417
|
-
|
|
418
456
|
.ig-change-list {
|
|
419
457
|
padding: 8px 0;
|
|
420
458
|
margin-top: 4px;
|
|
@@ -422,7 +460,6 @@ export default {
|
|
|
422
460
|
flex-direction: column;
|
|
423
461
|
align-items: center;
|
|
424
462
|
border-top: 1px solid #eeeeee;
|
|
425
|
-
|
|
426
463
|
.ig-change-list-btn {
|
|
427
464
|
font-weight: 600;
|
|
428
465
|
color: #366aff;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<template v-else-if="msg.content.renderType == 2">
|
|
20
20
|
<!-- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText> -->
|
|
21
21
|
<markDownText
|
|
22
|
-
:chainValues="msg.content.text || ''"
|
|
22
|
+
:chainValues="combineMarkdown(msg.content.text || '', msg.content)"
|
|
23
23
|
:whetherRequestStream="msg.content.whetherRequestStream"
|
|
24
24
|
@sseOtherInfo="sseOtherInfo"
|
|
25
25
|
@answerDocKnowledgeFn="answerDocKnowledgeFn"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<template v-else-if="msg.content.renderType == null">
|
|
32
32
|
<!-- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText> -->
|
|
33
33
|
<markDownText
|
|
34
|
-
:chainValues="msg.content.text || ''"
|
|
34
|
+
:chainValues="combineMarkdown(msg.content.text || '', msg.content)"
|
|
35
35
|
:whetherRequestStream="msg.content.whetherRequestStream"
|
|
36
36
|
@sseOtherInfo="sseOtherInfo"
|
|
37
37
|
@answerDocKnowledgeFn="answerDocKnowledgeFn"
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition" :id="item.knowledgeId + knowledgeIndex">
|
|
114
114
|
<div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
|
|
115
115
|
<img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
|
|
116
|
-
<span class="alc-title-from">{{ item.from }}</span
|
|
116
|
+
<span class="alc-title-from">{{ item.from }}</span>
|
|
117
117
|
<div v-show="docSource[item.source]" class="upload-source">
|
|
118
|
-
{{ docSource[item.source] }}
|
|
118
|
+
-{{ docSource[item.source] }}
|
|
119
119
|
</div>
|
|
120
120
|
<i class="iconfont guoran-right"></i>
|
|
121
121
|
</div>
|
|
@@ -183,9 +183,9 @@
|
|
|
183
183
|
<div class="libang_list_cell_left" >
|
|
184
184
|
<div class="libang_source_name" >
|
|
185
185
|
<img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
|
|
186
|
-
<span class="libang_title_from">{{ item.from }}</span
|
|
186
|
+
<span class="libang_title_from">{{ item.from }}</span>
|
|
187
187
|
<div v-show="docSource[item.source]" class="upload_source">
|
|
188
|
-
{{ docSource[item.source] }}
|
|
188
|
+
-{{ docSource[item.source] }}
|
|
189
189
|
</div>
|
|
190
190
|
</div>
|
|
191
191
|
<div class="libang_source_floder" @click.stop="clickFloder(item)">
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
302
302
|
showImage: false
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
|
-
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","
|
|
305
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","isHistory","knowledgeIndex"],
|
|
306
306
|
beforeMounted () {
|
|
307
307
|
},
|
|
308
308
|
watch: {
|
|
@@ -364,6 +364,18 @@ export default {
|
|
|
364
364
|
}
|
|
365
365
|
},
|
|
366
366
|
methods: {
|
|
367
|
+
combineMarkdown(text, content){
|
|
368
|
+
if (content && content.generatedImage) {
|
|
369
|
+
let imgs = JSON.parse(content.generatedImage);
|
|
370
|
+
let imgsStr = "";
|
|
371
|
+
for (let i = 0; i < imgs.length; i++) {
|
|
372
|
+
imgsStr += ``;
|
|
373
|
+
}
|
|
374
|
+
return text + imgsStr;
|
|
375
|
+
} else {
|
|
376
|
+
return text;
|
|
377
|
+
}
|
|
378
|
+
},
|
|
367
379
|
answerDocKnowledgeFn(){
|
|
368
380
|
console.log(
|
|
369
381
|
"answerDocKnowledgeFn 2"
|