askbot-dragon 1.7.25-beta → 1.7.28-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 +14 -14
- package/public/index.html +10 -8
- package/src/assets/js/AliyunlssUtil.js +50 -51
- 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 +154 -121
- package/src/components/AnswerDocknowledge.vue +8 -8
- package/src/components/ConversationContainer.vue +211 -15
- package/src/components/MyEditor.vue +2 -12
- package/src/components/actionSatisfaction.vue +3 -3
- package/src/components/answerRadio.vue +3 -3
- package/src/components/askVideo.vue +2 -25
- package/src/components/associationIntention.vue +7 -11
- package/src/components/formTemplate.vue +54 -68
- package/src/components/intelligentSummary.vue +15 -17
- package/src/components/markDownText.vue +50 -14
- package/src/components/message/TextMessage.vue +11 -15
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/pdfPosition.vue +99 -271
- package/src/components/popup.vue +2 -2
- package/src/components/previewDoc.vue +2 -6
- package/src/components/previewPdf.vue +136 -166
- package/src/components/senderMessagePlatform.vue +4 -4
- package/src/components/utils/AliyunIssUtil.js +33 -12
- package/src/components/utils/ckeditor.js +59 -48
- package/src/components/welcomeKnowledgeFile.vue +2 -6
- package/src/components/welcomeLlmCard.vue +1 -5
- package/src/components/welcomeSuggest.vue +1 -1
- package/src/locales/cn.json +24 -70
- package/src/locales/en.json +24 -71
- package/src/main.js +16 -18
- package/src/components/newPdfPosition.vue +0 -878
- package/src/locales/jp.json +0 -73
|
@@ -1,140 +1,198 @@
|
|
|
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
|
-
<svg t="1720148246364" class="icon" viewBox="0 0 1024 1024" version="1.1"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
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"
|
|
135
|
-
p-id="136176" fill="#366aff"></path>
|
|
136
|
-
</svg>
|
|
137
|
-
{{ $t('common.changeBatch') }}</span>
|
|
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>
|
|
194
|
+
换一批</span
|
|
195
|
+
>
|
|
138
196
|
</div>
|
|
139
197
|
</div>
|
|
140
198
|
</div>
|
|
@@ -142,7 +200,7 @@
|
|
|
142
200
|
<script>
|
|
143
201
|
export default {
|
|
144
202
|
name: "aiGuide",
|
|
145
|
-
data
|
|
203
|
+
data() {
|
|
146
204
|
return {
|
|
147
205
|
isPhone: false,
|
|
148
206
|
isPC: false,
|
|
@@ -173,23 +231,19 @@ export default {
|
|
|
173
231
|
},
|
|
174
232
|
props: {
|
|
175
233
|
aiGuide: Object,
|
|
176
|
-
language: {
|
|
177
|
-
type: String,
|
|
178
|
-
default: "cn"
|
|
179
|
-
}
|
|
180
234
|
},
|
|
181
|
-
beforeMount
|
|
182
|
-
mounted
|
|
235
|
+
beforeMount() {},
|
|
236
|
+
mounted() {
|
|
183
237
|
this.isMobile();
|
|
184
|
-
if (this.aiGuide.content.options[0]
|
|
238
|
+
if (this.aiGuide.content.options[0].types.length === 0) {
|
|
185
239
|
this.activeOtherObj = this.aiGuide.content.options[0];
|
|
186
240
|
} else {
|
|
187
241
|
this.activeSecondTypeIndex = 0;
|
|
188
|
-
this.activeOtherObj = this.aiGuide.content.options[0]
|
|
242
|
+
this.activeOtherObj = this.aiGuide.content.options[0].types[0];
|
|
189
243
|
}
|
|
190
244
|
},
|
|
191
245
|
methods: {
|
|
192
|
-
isMobile
|
|
246
|
+
isMobile() {
|
|
193
247
|
let flag = navigator.userAgent.match(
|
|
194
248
|
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
195
249
|
);
|
|
@@ -199,14 +253,14 @@ export default {
|
|
|
199
253
|
this.isPC = true;
|
|
200
254
|
}
|
|
201
255
|
},
|
|
202
|
-
changeIntellectGuide
|
|
256
|
+
changeIntellectGuide() {
|
|
203
257
|
if (this.activePage === this.totalPage) {
|
|
204
258
|
this.activePage = 1;
|
|
205
259
|
} else {
|
|
206
260
|
this.activePage++;
|
|
207
261
|
}
|
|
208
262
|
},
|
|
209
|
-
changeFirstType
|
|
263
|
+
changeFirstType(fTypeIndex) {
|
|
210
264
|
this.activeFirstTypeIndex = fTypeIndex;
|
|
211
265
|
if (this.aiGuide.content.options[fTypeIndex].types.length === 0) {
|
|
212
266
|
this.activeOtherObj = this.aiGuide.content.options[fTypeIndex];
|
|
@@ -217,16 +271,16 @@ export default {
|
|
|
217
271
|
}
|
|
218
272
|
this.activePage = 1;
|
|
219
273
|
},
|
|
220
|
-
changeLastType
|
|
274
|
+
changeLastType(sTypeIndex) {
|
|
221
275
|
this.activeSecondTypeIndex = sTypeIndex;
|
|
222
276
|
this.activeOtherObj =
|
|
223
277
|
this.aiGuide.content.options[this.activeFirstTypeIndex].types[
|
|
224
|
-
|
|
278
|
+
sTypeIndex
|
|
225
279
|
];
|
|
226
280
|
this.activePage = 1;
|
|
227
281
|
},
|
|
228
282
|
// 根据当前分组数页数返回展示列表
|
|
229
|
-
recommendIntentPageList
|
|
283
|
+
recommendIntentPageList(obj) {
|
|
230
284
|
let list = [];
|
|
231
285
|
if (obj.recommendType === 0) {
|
|
232
286
|
list = obj.recommendIntentList;
|
|
@@ -257,9 +311,9 @@ export default {
|
|
|
257
311
|
}
|
|
258
312
|
return arr;
|
|
259
313
|
},
|
|
260
|
-
sendAiGuideInfo
|
|
261
|
-
|
|
262
|
-
|
|
314
|
+
sendAiGuideInfo(recommendType, cell) {
|
|
315
|
+
console.log("组件-312-3", recommendType, cell);
|
|
316
|
+
this.$emit('sendAiGuide', recommendType, cell);
|
|
263
317
|
},
|
|
264
318
|
},
|
|
265
319
|
};
|
|
@@ -271,29 +325,24 @@ export default {
|
|
|
271
325
|
font-size: 0.9em;
|
|
272
326
|
border-radius: 5px;
|
|
273
327
|
position: relative;
|
|
274
|
-
|
|
275
328
|
.ig-view-example {
|
|
276
329
|
position: absolute;
|
|
277
330
|
right: -10px;
|
|
278
331
|
top: -10px;
|
|
279
332
|
opacity: 0.5;
|
|
280
|
-
|
|
281
333
|
img {
|
|
282
334
|
height: 50px;
|
|
283
335
|
}
|
|
284
336
|
}
|
|
285
|
-
|
|
286
337
|
.ig-types-des {
|
|
287
338
|
padding: 12px 16px 0px;
|
|
288
339
|
text-align: left;
|
|
289
340
|
}
|
|
290
|
-
|
|
291
341
|
.ig-types-f {
|
|
292
342
|
display: flex;
|
|
293
343
|
justify-content: flex-start;
|
|
294
344
|
flex-wrap: wrap;
|
|
295
345
|
padding: 4px 8px;
|
|
296
|
-
|
|
297
346
|
.ig-types-f-cell {
|
|
298
347
|
height: 1.8em;
|
|
299
348
|
line-height: 1.8em;
|
|
@@ -309,33 +358,28 @@ export default {
|
|
|
309
358
|
overflow: hidden;
|
|
310
359
|
text-overflow: ellipsis;
|
|
311
360
|
white-space: nowrap;
|
|
312
|
-
|
|
313
361
|
&:hover {
|
|
314
362
|
border: 1px solid #366aff;
|
|
315
363
|
color: #366aff;
|
|
316
364
|
}
|
|
317
|
-
|
|
318
365
|
&-active {
|
|
319
366
|
background-color: #366aff;
|
|
320
367
|
border: 1px solid #366aff;
|
|
321
368
|
color: white;
|
|
322
369
|
}
|
|
323
370
|
}
|
|
324
|
-
|
|
325
371
|
.ig-types-f-cell-active {
|
|
326
372
|
&:hover {
|
|
327
373
|
color: white;
|
|
328
374
|
}
|
|
329
375
|
}
|
|
330
376
|
}
|
|
331
|
-
|
|
332
377
|
.ig-types-s {
|
|
333
378
|
display: flex;
|
|
334
379
|
justify-content: flex-start;
|
|
335
380
|
flex-wrap: wrap;
|
|
336
381
|
margin: 0px 16px 4px;
|
|
337
382
|
border-bottom: solid 1px #e0e6f7;
|
|
338
|
-
|
|
339
383
|
.ig-types-s-cell {
|
|
340
384
|
height: 2.2em;
|
|
341
385
|
line-height: 2.2em;
|
|
@@ -346,25 +390,21 @@ export default {
|
|
|
346
390
|
overflow: hidden;
|
|
347
391
|
text-overflow: ellipsis;
|
|
348
392
|
white-space: nowrap;
|
|
349
|
-
|
|
350
393
|
&:hover {
|
|
351
394
|
color: #366aff;
|
|
352
395
|
}
|
|
353
|
-
|
|
354
396
|
&-active {
|
|
355
397
|
border-bottom: 2px solid #366aff;
|
|
356
398
|
color: #366aff;
|
|
357
399
|
}
|
|
358
400
|
}
|
|
359
401
|
}
|
|
360
|
-
|
|
361
402
|
.ig-types-tags {
|
|
362
403
|
margin: 0 16px;
|
|
363
404
|
padding: 0 0 12px;
|
|
364
405
|
display: flex;
|
|
365
406
|
justify-content: flex-start;
|
|
366
407
|
flex-wrap: wrap;
|
|
367
|
-
|
|
368
408
|
.ig-types-tags-cell {
|
|
369
409
|
line-height: 1.4em;
|
|
370
410
|
padding: 2px 8px;
|
|
@@ -377,7 +417,6 @@ export default {
|
|
|
377
417
|
cursor: pointer;
|
|
378
418
|
}
|
|
379
419
|
}
|
|
380
|
-
|
|
381
420
|
.ig-high-frequency-empty {
|
|
382
421
|
margin: 6px 15px;
|
|
383
422
|
height: 40px;
|
|
@@ -388,14 +427,12 @@ export default {
|
|
|
388
427
|
padding: 0 12px;
|
|
389
428
|
text-align: left;
|
|
390
429
|
}
|
|
391
|
-
|
|
392
430
|
.ig-types-list {
|
|
393
431
|
margin: 0 16px;
|
|
394
432
|
padding: 0 0 8px 0;
|
|
395
433
|
display: flex;
|
|
396
434
|
flex-direction: column;
|
|
397
435
|
justify-content: flex-start;
|
|
398
|
-
|
|
399
436
|
.ig-types-list-cell {
|
|
400
437
|
line-height: 1.1em;
|
|
401
438
|
padding: 8px 0;
|
|
@@ -406,19 +443,16 @@ export default {
|
|
|
406
443
|
cursor: pointer;
|
|
407
444
|
align-items: center;
|
|
408
445
|
text-align: left;
|
|
409
|
-
|
|
410
446
|
span {
|
|
411
447
|
display: flex;
|
|
412
448
|
align-items: center;
|
|
413
449
|
flex-direction: column;
|
|
414
|
-
|
|
415
450
|
i {
|
|
416
451
|
// margin-top: 12px;
|
|
417
452
|
}
|
|
418
453
|
}
|
|
419
454
|
}
|
|
420
455
|
}
|
|
421
|
-
|
|
422
456
|
.ig-change-list {
|
|
423
457
|
padding: 8px 0;
|
|
424
458
|
margin-top: 4px;
|
|
@@ -426,7 +460,6 @@ export default {
|
|
|
426
460
|
flex-direction: column;
|
|
427
461
|
align-items: center;
|
|
428
462
|
border-top: 1px solid #eeeeee;
|
|
429
|
-
|
|
430
463
|
.ig-change-list-btn {
|
|
431
464
|
font-weight: 600;
|
|
432
465
|
color: #366aff;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<template>
|
|
6
6
|
<div class="answer-docknowledge">
|
|
7
7
|
<div :class="['answer-docknowledge-header', msg.content.isKnowledgeSummary ? 'bgc' : '']">
|
|
8
|
-
<div v-if="msg.content.isKnowledgeSummary" class="tips">
|
|
8
|
+
<div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
|
|
9
9
|
<!-- <div v-if="msg.content.type == 0" class="answer-text">
|
|
10
10
|
<template v-if="msg.content.renderType == 1">
|
|
11
11
|
<p v-html="msg.content.text"></p>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="alc-title">
|
|
36
36
|
<div class="alc-box">
|
|
37
37
|
<div class="alc-source-left">
|
|
38
|
-
<span class="source-form"
|
|
38
|
+
<span class="source-form">出自</span>
|
|
39
39
|
<img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
|
|
40
40
|
srcset="">
|
|
41
41
|
<span class="alc-title-from">{{ item.from }}</span>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
{{ docSource[item.source] }}
|
|
56
56
|
</div>
|
|
57
57
|
<div v-show="item.url" class="alc-content-text">
|
|
58
|
-
<span @click="lookAttach(item.url, item, $event)" class="aci-view"
|
|
58
|
+
<span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
</template>
|
|
90
|
-
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList"
|
|
90
|
+
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
|
|
91
91
|
</div>
|
|
92
92
|
</template>
|
|
93
93
|
<template v-if="isLiBang">
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
<div class="libang_title">
|
|
98
98
|
<div class="libang_box">
|
|
99
99
|
<div class="libang_source_left">
|
|
100
|
-
<span class="source-form"
|
|
100
|
+
<span class="source-form">出自</span>
|
|
101
101
|
<img class="libang_title_icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
|
|
102
102
|
srcset="">
|
|
103
103
|
<span class="libang_title_from">{{ item.from }}</span>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
<div v-show="item.url" class="libang_content_text">
|
|
126
|
-
<span @click="lookAttach(item.url, item, $event)" class="aci-view"
|
|
126
|
+
<span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
<i class="iconfont guoran-right" @click="lookAttach(item.url, item, $event)"></i>
|
|
163
163
|
</div>
|
|
164
164
|
</template>
|
|
165
|
-
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList"
|
|
165
|
+
<div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
|
|
166
166
|
</div>
|
|
167
167
|
</template>
|
|
168
168
|
|
|
@@ -275,7 +275,7 @@ export default {
|
|
|
275
275
|
previewOssPath: ""
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","
|
|
278
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","isHistory"],
|
|
279
279
|
beforeMounted () {
|
|
280
280
|
},
|
|
281
281
|
watch: {
|