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