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