askbot-dragon 1.7.61-beta → 1.7.63-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 (36) hide show
  1. package/package.json +5 -4
  2. package/public/index.html +8 -10
  3. package/src/assets/js/AliyunlssUtil.js +49 -25
  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 +114 -151
  8. package/src/components/AnswerDocknowledge.vue +23 -14
  9. package/src/components/ConversationContainer.vue +104 -213
  10. package/src/components/MyEditor.vue +2 -1
  11. package/src/components/actionSatisfaction.vue +1 -1
  12. package/src/components/answerRadio.vue +50 -4
  13. package/src/components/askVideo.vue +23 -0
  14. package/src/components/associationIntention.vue +11 -7
  15. package/src/components/formTemplate.vue +54 -50
  16. package/src/components/intelligentSummary.vue +5 -1
  17. package/src/components/markDownText.vue +21 -21
  18. package/src/components/message/TextMessage.vue +5 -1
  19. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  20. package/src/components/newPdfPosition.vue +878 -0
  21. package/src/components/pagination.vue +129 -0
  22. package/src/components/pdfPosition.vue +213 -33
  23. package/src/components/preview/docView.vue +114 -0
  24. package/src/components/preview/excelView.vue +191 -0
  25. package/src/components/preview/newPositionPreview.vue +370 -0
  26. package/src/components/preview/pdfView.vue +824 -0
  27. package/src/components/previewDoc.vue +4 -0
  28. package/src/components/previewPdf.vue +626 -314
  29. package/src/components/senderMessagePlatform.vue +1 -1
  30. package/src/components/utils/ckeditor.js +1 -1
  31. package/src/components/welcomeKnowledgeFile.vue +5 -1
  32. package/src/components/welcomeLlmCard.vue +5 -1
  33. package/src/locales/cn.json +60 -60
  34. package/src/locales/en.json +60 -60
  35. package/src/locales/jp.json +73 -0
  36. package/src/main.js +1 -1
@@ -1,194 +1,132 @@
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
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
- sTypeIndex
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;
@@ -311,9 +253,9 @@ export default {
311
253
  }
312
254
  return arr;
313
255
  },
314
- sendAiGuideInfo(recommendType, cell) {
315
- console.log("组件-312-3", recommendType, cell);
316
- this.$emit('sendAiGuide', recommendType, cell);
256
+ sendAiGuideInfo (recommendType, cell) {
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;
@@ -49,7 +49,7 @@
49
49
  </div>
50
50
  </div>
51
51
  <template v-if="!isLiBang">
52
- <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
52
+ <div class="ad-list" :class="msg.content.type == 0 || msg.content.type == 2 ? 'ad-list-recognition' : ''">
53
53
  <template v-if="msg.content.type == 1">
54
54
  <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
55
55
  :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
@@ -97,12 +97,12 @@
97
97
  </div>
98
98
  </template>
99
99
  <template v-if="msg.content.type == 0 || msg.content.type == 2">
100
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition">
100
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition" :id="item.knowledgeId + knowledgeIndex">
101
101
  <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
102
102
  <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
103
- <span class="alc-title-from">{{ item.from }}</span>
103
+ <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
104
104
  <div v-show="docSource[item.source]" class="upload-source">
105
- -{{ docSource[item.source] }}
105
+ {{ docSource[item.source] }}
106
106
  </div>
107
107
  <i class="iconfont guoran-right"></i>
108
108
  </div>
@@ -166,13 +166,13 @@
166
166
  </template>
167
167
  <template v-if="msg.content.type == 0">
168
168
  <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
169
- class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)">
169
+ class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)" :id="item.knowledgeId + knowledgeIndex">
170
170
  <div class="libang_list_cell_left" >
171
171
  <div class="libang_source_name" >
172
172
  <img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
173
- <span class="libang_title_from">{{ item.from }}</span>
173
+ <span class="libang_title_from">{{ item.from }}</span>&nbsp;-&nbsp;
174
174
  <div v-show="docSource[item.source]" class="upload_source">
175
- -{{ docSource[item.source] }}
175
+ {{ docSource[item.source] }}
176
176
  </div>
177
177
  </div>
178
178
  <div class="libang_source_floder" @click.stop="clickFloder(item)">
@@ -186,7 +186,7 @@
186
186
  <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">{{$t('dragonCommon.viewMore')}}</div>
187
187
  </div>
188
188
  </template>
189
-
189
+
190
190
  <previewPdf ref="previewPdf" :url="previewHref" :previewOssPath="previewOssPath" :title="title"
191
191
  :folderName="folderName" :folderUrl="folderUrl"
192
192
  :sourceFileType="sourceFileType" officePreviewType="pdf" @previewToDialog="previewToDialog"
@@ -288,7 +288,7 @@ export default {
288
288
  previewOssPath: ""
289
289
  }
290
290
  },
291
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","isHistory"],
291
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory","knowledgeIndex"],
292
292
  beforeMounted () {
293
293
  },
294
294
  watch: {
@@ -355,11 +355,11 @@ export default {
355
355
  );
356
356
  this.$emit('answerDocKnowledgeFn');
357
357
  },
358
- // 知识类型消息 推荐、关联文档、图片
358
+ // 知识类型消息 推荐、关联文档、图片
359
359
  sseOtherInfo(msgId, eventId, data){
360
360
  if (eventId === "matched") {
361
361
  console.log("matched: ", this.msg.content.type);
362
-
362
+
363
363
  if (JSON.parse(data.content).length > 0) {
364
364
  this.$set(this.msg.content, "list", JSON.parse(data.content));
365
365
  }
@@ -394,6 +394,11 @@ export default {
394
394
  // } else {
395
395
  // this.$refs.previewPdf.drawer = false;
396
396
  // }
397
+ //该事件是为了打开新的弹框时关闭上一个弹框
398
+ window.parent.postMessage({
399
+ type: "close_drawer",
400
+ data:this.knowledgeIndex
401
+ }, "*");
397
402
  this.title = item.from || item.name
398
403
  this.folderName = item.folderName
399
404
  this.folderUrl = item.folderUrl
@@ -416,6 +421,7 @@ export default {
416
421
  } else {
417
422
  httpUrl = httpUrl += '?needEncrypt=false'
418
423
  }
424
+ this.$refs.previewPdf.getOssPath(url);
419
425
  this.$http.post(httpUrl, {
420
426
  "fileInOssPath": url
421
427
  }).then(res => {
@@ -437,7 +443,10 @@ export default {
437
443
  this.$refs.previewPdf.previewKnowledgeId = ""
438
444
  }
439
445
  this.$refs.previewPdf.fileType = type
440
- this.$refs.previewPdf.tagIds = item.tagIds
446
+ this.$refs.previewPdf.tagIds = item.tagIds;
447
+ if (item.tagIds && item.tagIds.length > 0){
448
+ this.$refs.previewPdf.getLocationInfo();
449
+ }
441
450
  this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
442
451
  let index = url.indexOf("?");
443
452
  let newFileInOssPath = url;
@@ -450,7 +459,7 @@ export default {
450
459
  } else {
451
460
  this.$refs.previewPdf.fileName = '';
452
461
  }
453
- if (item.tagIds && item.tagIds.length != 0) {
462
+ if (item.tagIds && item.tagIds.length != 0 && this.$refs.previewPdf.newFileType !== 'PPT') {
454
463
  this.$refs.previewPdf.loading = false
455
464
  return
456
465
  }
@@ -459,7 +468,7 @@ export default {
459
468
  this.$refs.previewPdf.getBolb(item)
460
469
  }
461
470
  this.$refs.previewPdf.loadIframe(item)
462
- this.$refs.previewPdf.showSummary = true;
471
+ this.$refs.previewPdf.showSummary = false;
463
472
  })
464
473
  }
465
474
  })