askbot-dragon 1.6.61-beta → 1.6.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 (84) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +55 -54
  5. package/public/index.html +72 -72
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/common.js +252 -252
  13. package/src/assets/js/hammer.js +100 -100
  14. package/src/assets/js/script.js +36 -36
  15. package/src/assets/less/common.css +6773 -6773
  16. package/src/assets/less/converSationContainer/common.less +199 -199
  17. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  18. package/src/assets/less/iconfont.css +37 -37
  19. package/src/assets/less/ticketMessage.less +294 -294
  20. package/src/components/ActionAlertIframe.vue +177 -177
  21. package/src/components/AiGuide.vue +466 -466
  22. package/src/components/AnswerDocknowledge.vue +701 -701
  23. package/src/components/AnswerVoice.vue +285 -285
  24. package/src/components/AskIFrame.vue +15 -15
  25. package/src/components/ConversationContainer.vue +5130 -5130
  26. package/src/components/FileType.vue +86 -86
  27. package/src/components/Message.vue +27 -27
  28. package/src/components/MyEditor.vue +350 -350
  29. package/src/components/actionSatisfaction.vue +107 -107
  30. package/src/components/actionSendToBot.vue +62 -62
  31. package/src/components/answerDissatisfaction.vue +62 -62
  32. package/src/components/answerRadio.vue +186 -186
  33. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  34. package/src/components/ask-components/Msgloading.vue +37 -37
  35. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  36. package/src/components/askVideo.vue +162 -162
  37. package/src/components/assetDetails.vue +378 -378
  38. package/src/components/assetMessage.vue +228 -228
  39. package/src/components/associationIntention.vue +355 -355
  40. package/src/components/attachmentPreview.vue +90 -90
  41. package/src/components/botActionSatisfactor.vue +68 -68
  42. package/src/components/chatContent.vue +513 -513
  43. package/src/components/feedBack.vue +136 -136
  44. package/src/components/fielListView.vue +351 -351
  45. package/src/components/file/AliyunOssComponents.vue +108 -108
  46. package/src/components/formTemplate.vue +3572 -3572
  47. package/src/components/intelligentSummary.vue +226 -209
  48. package/src/components/kkview.vue +1138 -1138
  49. package/src/components/loadingProcess.vue +164 -164
  50. package/src/components/message/ActionAlertIframe.vue +112 -112
  51. package/src/components/message/ShopMessage.vue +164 -164
  52. package/src/components/message/TextMessage.vue +924 -924
  53. package/src/components/message/TicketMessage.vue +201 -201
  54. package/src/components/message/swiper/index.js +4 -4
  55. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  56. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  57. package/src/components/msgLoading.vue +231 -231
  58. package/src/components/myPopup.vue +70 -70
  59. package/src/components/newPdfPosition.vue +877 -877
  60. package/src/components/pdfPosition.vue +1509 -1509
  61. package/src/components/popup.vue +227 -227
  62. package/src/components/previewDoc.vue +247 -247
  63. package/src/components/previewPdf.vue +672 -654
  64. package/src/components/receiverMessagePlatform.vue +65 -65
  65. package/src/components/recommend.vue +80 -80
  66. package/src/components/selector/hOption.vue +20 -20
  67. package/src/components/selector/hSelector.vue +199 -199
  68. package/src/components/selector/hWrapper.vue +216 -216
  69. package/src/components/senderMessagePlatform.vue +50 -50
  70. package/src/components/source/BotMessage.vue +24 -24
  71. package/src/components/source/CustomMessage.vue +24 -24
  72. package/src/components/test.vue +260 -260
  73. package/src/components/tree.vue +294 -294
  74. package/src/components/utils/AliyunIssUtil.js +81 -81
  75. package/src/components/utils/ckeditor.js +174 -174
  76. package/src/components/utils/format_date.js +25 -25
  77. package/src/components/utils/index.js +6 -6
  78. package/src/components/utils/math_utils.js +29 -29
  79. package/src/components/voiceComponent.vue +119 -119
  80. package/src/components/welcomeKnowledgeFile.vue +340 -340
  81. package/src/components/welcomeLlmCard.vue +140 -140
  82. package/src/components/welcomeSuggest.vue +97 -97
  83. package/src/main.js +57 -57
  84. package/vue.config.js +54 -54
@@ -1,701 +1,701 @@
1
- <template>
2
- <div class="answer-docknowledge">
3
- <div :class="['answer-docknowledge-header',msg.content.isKnowledgeSummary ? 'bgc' : '']">
4
- <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
5
- <!-- <div v-if="msg.content.type == 0" class="answer-text">
6
- <template v-if="msg.content.renderType == 1">
7
- <p v-html="msg.content.text"></p>
8
- </template>
9
- <template v-else>{{ msg.content.text }}</template>
10
- </div> -->
11
- <div class="answer-text">
12
- <template v-if="msg.content.renderType == 1">
13
- <p v-html="msg.content.text"></p>
14
- </template>
15
- <template v-else>{{ msg.content.text }}</template>
16
- </div>
17
- <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
18
- <img
19
- v-for="(imageItem, imageItemIndex) in msg.content.images"
20
- style="max-width: 230px;border-radius: 25px;margin-bottom: 15px"
21
- :src="imageItem.url"
22
- :key="imageItemIndex"
23
- alt
24
- @click="lookAttach(imageItem.url, imageItem, $event)"
25
- />
26
- </div>
27
- </div>
28
- <!-- v-if="msg.content.type == 1" -->
29
- <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : '' ">
30
- <!-- :style="{paddingBottom: itemIndex === msg.content.list.length - 1?0:'10px'}" -->
31
- <template v-if="msg.content.type == 1">
32
- <div
33
- v-for="(item, itemIndex) in msg.content.list"
34
- :key="itemIndex"
35
- class="ad-list-cell"
36
- >
37
- <div class="alc-title">
38
- <div class="alc-box">
39
- <div class="alc-source-left">
40
- <span class="source-form">出自</span>
41
- <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt="" srcset="">
42
- <span class="alc-title-from">{{ item.from }}</span>
43
- </div>
44
- </div>
45
- <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="alc-box-introduction">
46
- </div>
47
- <div v-else class="alc-box-introduction">
48
- <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
49
- </div>
50
- <div v-if="item.previewImage" class="alc-box-introduction-previewImage">
51
- <img :src="item.previewImage" alt="" @click="lookAttach(item.previewImage, {url: item.previewImage}, $event)">
52
- </div>
53
- <div class="alc-updateTime">
54
- <div v-show="docSource[item.source]" class="upload-source">
55
- {{docSource[item.source]}}
56
- </div>
57
- <div v-show="item.url" class="alc-content-text">
58
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
59
- </div>
60
- </div>
61
- </div>
62
- <div class="alc-content" v-if="false">
63
- <div v-if="msg.content.type == 1" class="alc-content-text">
64
- {{ item.introduction }}
65
- <span
66
- @click="lookAttach(item.url, item, $event)"
67
- class="aci-view"
68
- >查看原文 ></span>
69
- </div>
70
- <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
71
- <div v-if="false" class="alc-content-info">
72
- <div class="alcc-box">
73
- <span class="aci-owner">所有者: {{ item.owner }}</span>
74
- <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
75
- <span class="aci-source">文件来源: {{ item.source }}</span>
76
- </div>
77
- </div>
78
- </div>
79
- </div>
80
- </template>
81
- <template v-if="msg.content.type == 0">
82
- <div
83
- v-for="(item, itemIndex) in msg.content.list"
84
- :key="itemIndex"
85
- class="ad-list-cell-recognition"
86
- >
87
- <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
88
- <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
89
- <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
90
- <div v-show="docSource[item.source]" class="upload-source">
91
- {{docSource[item.source]}}
92
- </div>
93
- <i class="iconfont guoran-right"></i>
94
- </div>
95
- </div>
96
- </template>
97
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
98
- </div>
99
- <previewPdf ref="previewPdf"
100
- :url="previewHref"
101
- :previewOssPath="previewOssPath"
102
- :title="title" :sourceFileType="sourceFileType"
103
- officePreviewType="pdf"
104
- @previewToDialog="previewToDialog"
105
- @recommendQues="recommendQues"
106
- @close="close"
107
- @open="open"
108
- :isHasChat="isHasChat"
109
- :knowledgeId="previewKnowledgeId"
110
- ></previewPdf>
111
- </div>
112
- </template>
113
-
114
- <script>
115
- /* eslint-disable */
116
- import previewPdf from "./previewPdf";
117
- import { isMobile } from "../assets/js/common";
118
- export default {
119
- name: "answerDocknowledge",
120
- components: { previewPdf },
121
- data () {
122
- return {
123
- isPC: true,
124
- previewHref: "",
125
- sourceFileType: '',
126
- // docSource: {
127
- // LOCAL_FILE: "来源于本地文件",
128
- // CREATED_BY_ONESELF: "来源于自建知识",
129
- // WECHAT: "来源于微信",
130
- // AUTO_SYN_FROM_LOCAL_FILE: "自动同步于本地",
131
- // YUQUE: "来源于语雀",
132
- // CORP_LOCAL_FILE: '来源于企业知识库',
133
- // FEISHU: '来源于飞书-云文档'
134
- // },
135
- docSource: {
136
- LOCAL_FILE: "个人知识",
137
- CREATED_BY_ONESELF: "个人知识",
138
- WECHAT: "个人知识",
139
- AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
140
- YUQUE: "企业知识",
141
- CORP_LOCAL_FILE: '企业知识',
142
- FEISHU: '企业知识'
143
- },
144
- imageObj: {
145
- PDF: 'pdf1',
146
- pdf: 'pdf1',
147
- TXT: 'txt1',
148
- txt: 'txt1',
149
- selfadd: 'selfadd1',
150
- md: "md2",
151
- html: 'selfadd1',
152
- mode: "mode",
153
- general: 'general',
154
- word: "word1",
155
- Word: "word1",
156
- docx: "word1",
157
- doc: "word1",
158
- WORD: "word1",
159
- Excel: 'excel1',
160
- EXCEL: 'excel1',
161
- excel: 'excel1',
162
- PPT: 'ppt1',
163
- ppt: 'ppt1',
164
- pptx: 'ppt1',
165
- img: "image1",
166
- image: "image1",
167
- video: "video",
168
- audio: 'audio',
169
- link: "link",
170
- wechat: "wechat",
171
- mp4: "video",
172
- MP4: "video",
173
- xlsx: "excel1",
174
- SLSX: "excel1",
175
- xls: "excel1",
176
- XLS: "excel1",
177
- jpg: "image1",
178
- JPG: "image1",
179
- jpeg: "image1",
180
- JPEG: "image1",
181
- png: "image1",
182
- PNG: "image1",
183
- webp: "image1",
184
- WEBP: "image1",
185
- gif: "image1",
186
- GIF: "image1",
187
- svg: "image1",
188
- SVG: "image1",
189
- bmp: "image1",
190
- BMP: "image1",
191
- avi: "video",
192
- AVI: "video",
193
- mov: "video",
194
- MOV: "video",
195
- rmvb: "video",
196
- RMVB: "video",
197
- wav: "audio",
198
- WAV: "audio",
199
- mp3: "audio",
200
- MP3: "audio",
201
- yqhtml: "yqhtml",
202
- feishuhtml: "feishuhtml"
203
- },
204
- allKnowledgeList: [],
205
- loadMoreFlag: false,
206
- title:'',
207
- previewKnowledgeId:"",
208
- previewKnowledge:{},
209
- previewOssPath:""
210
- }
211
- },
212
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp","isHasChat","activeKnowledgeId"],
213
- beforeMounted () {
214
- },
215
- watch: {
216
- // msg: {
217
- // handler (n) {
218
- // console.log(n, 'answerDocknowledge');
219
- // n.content.list.forEach(element => {
220
- // console.log(this.imageObj[element.format], 1111);
221
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
222
- // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
223
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
224
- // }
225
- // });
226
- // },
227
- // deep: true,
228
- // immediate: true
229
- // }
230
- },
231
- created () {
232
- var system = {};
233
- system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
234
- if (system.pingtai) {
235
- //电脑
236
- this.isPC = true;
237
- } else {
238
- //手机
239
- this.isPC = false;
240
- }
241
- // this.msg.content.list.forEach(element => {
242
- // console.log(this.imageObj[element.format],1111);
243
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
244
- // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
245
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
246
- // }
247
- // });
248
- },
249
- mounted () {
250
- console.log(this.msg.content, 'this.msg.content');
251
- // if(this.msg.content.type == 1) {
252
-
253
- // }
254
- if (this.msg.content.list && this.msg.content.list.length > 0) {
255
- this.loadMoreFlag = true
256
- this.allKnowledgeList = JSON.parse(JSON.stringify(this.msg.content.list))
257
- // console.log(this.allKnowledgeList.length, 'this.allKnowledgeList');
258
- this.msg.content.list = []
259
- this.lazyLoadKnowledegList()
260
- }
261
- },
262
- methods: {
263
- getIconSrc(element) {
264
- if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
265
- return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png'
266
- } else {
267
- return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png'
268
- }
269
- },
270
- //预览图片
271
- lookAttach(url, item, event) {
272
- // console.log(item.knowledgeId);
273
- // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
274
- // debugger
275
- event.preventDefault();
276
- if (this.isAskLightning == 1 && !this.isApp){
277
- window.parent.postMessage({
278
- data: "bot_preview",
279
- item: JSON.stringify(item),
280
- url: url
281
- },"*");
282
- } else {
283
- // if (isMobile()) {
284
- // this.$refs.previewPdf.drawer = true;
285
- // this.$refs.previewPdf.previewShowPopup = false;
286
- // } else {
287
- // this.$refs.previewPdf.drawer = false;
288
- // }
289
- this.title = item.from || item.name
290
- this.previewKnowledge = item;
291
- this.previewKnowledgeId = item.knowledgeId
292
- this.$refs.previewPdf.previewShowPopup = false;
293
- this.$refs.previewPdf.drawer = false;
294
- this.previewOssPath = url;
295
- let index = url.lastIndexOf('?')
296
- let type = ''
297
- let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
298
- if (index !== -1) {
299
- url = url.substring(0, index)
300
- type = this.fileType(url)
301
- } else {
302
- type = this.fileType(url)
303
- }
304
- if (type === '' || type === 'OTHER') {
305
- httpUrl = httpUrl += '?needEncrypt=true'
306
- } else {
307
- httpUrl = httpUrl += '?needEncrypt=false'
308
- }
309
- this.$http.post(httpUrl, {
310
- "fileInOssPath":url
311
- }).then(res =>{
312
- if(res.data.code == '0') {
313
- this.previewHref = res.data.data;
314
- this.sourceFileType = url.substring(url.lastIndexOf('.'))
315
- let isOhmPc = sessionStorage.getItem('isOhmPc')
316
- if (isMobile() || isOhmPc == 'true'){
317
- this.$refs.previewPdf.drawer = true;
318
- this.$refs.previewPdf.previewShowPopup = true;
319
- } else {
320
- this.$refs.previewPdf.previewShowPopup = false;
321
- this.$refs.previewPdf.drawer = true;
322
- }
323
- //聊一聊按钮的选中状态
324
- if (this.activeKnowledgeId == item.knowledgeId){
325
- this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
326
- } else {
327
- this.$refs.previewPdf.previewKnowledgeId = ""
328
- }
329
- this.$refs.previewPdf.fileType = type
330
- this.$refs.previewPdf.tagIds = item.tagIds
331
- this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
332
- let index = url.indexOf("?");
333
- let newFileInOssPath = url;
334
- if (index !== -1){
335
- newFileInOssPath = url.substring(0, url.indexOf("?"))
336
- }
337
- let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
338
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
339
- this.$refs.previewPdf.fileName = fileName;
340
- } else {
341
- this.$refs.previewPdf.fileName = '';
342
- }
343
- if(item.tagIds && item.tagIds.length != 0) {
344
- this.$refs.previewPdf.loading = false
345
- return
346
- }
347
- this.$nextTick(() =>{
348
- if(item.source == 'CREATED_BY_ONESELF' || type === 'HTML') {
349
- this.$refs.previewPdf.getBolb(item)
350
- }
351
- this.$refs.previewPdf.loadIframe(item)
352
- this.$refs.previewPdf.showSummary = true;
353
- })
354
- }
355
- })
356
- }
357
- },
358
- open() {
359
- this.$emit('openPreviewDialog')
360
- },
361
- close() {
362
- this.$emit('closePreviewDialog')
363
- },
364
- fileType (url) {
365
- const fileType = url.substring(url.lastIndexOf('.'));
366
- if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc' || fileType === '.mav' || fileType === '.MAV' || fileType == '.mp3' || fileType == '.MP3' || fileType === '.wav') {
367
- return 'VIDEO'
368
- } else if (fileType === '.html') {
369
- return 'HTML'
370
- } else {
371
- return 'OTHER'
372
- }
373
- },
374
- srcContentTypeIMG (item) {
375
- let url = item.url || '';
376
- const type = url.substring(url.lastIndexOf('.'));
377
- if (type === '.jpg' || type === '.jpeg' || type === '.png' || type === '.gif') {
378
- this.getSrc(item)
379
- return true
380
- } else {
381
- return false
382
- }
383
- },
384
- getSrc (item) {
385
- // let imgurl = ''
386
- this.$http.post(
387
- '/knowledge-api/temporary-certificate/or-origin?expired=30',
388
- item.url,
389
- {
390
- headers: {
391
- "Content-Type": "application/json",
392
- },
393
- }).then(res => {
394
- console.log(res, '=====');
395
- // imgurl = await res.bodyText
396
- this.$set(item, 'expiredUrl', res.data ? res.data : res.bodyText)
397
- // return res.data
398
- })
399
- // return imgurl
400
- },
401
- lazyLoadKnowledegList () {
402
- if (this.allKnowledgeList.length !== 0) {
403
- let arr = this.allKnowledgeList.splice(0, 5)
404
- if (arr.length < 5) {
405
- this.loadMoreFlag = false
406
- this.msg.content.list = [...this.msg.content.list, ...arr]
407
- return
408
- }
409
- if (this.allKnowledgeList.length == 0) {
410
- this.loadMoreFlag = false
411
- }
412
- this.msg.content.list = [...this.msg.content.list, ...arr]
413
- return
414
- }
415
- },
416
- previewToDialog(flag){
417
- if (!flag){
418
- this.$refs.previewPdf.previewKnowledgeId = ""
419
- } else {
420
- this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
421
- }
422
- this.$emit('previewToDialog',flag,this.previewKnowledgeId,this.previewKnowledge)
423
- },
424
- clearKnowledgeId(){
425
- this.previewKnowledgeId = "";
426
- },
427
- recommendQues(item,knowledgeId){
428
- this.$emit('recommendQues',item,knowledgeId)
429
- }
430
- }
431
- }
432
- </script>
433
-
434
- <style scoped lang="less">
435
- .answer-docknowledge {
436
- min-width: 100px;
437
- background: #ffffff;
438
- .answer-docknowledge-header {
439
- .tips {
440
- width: 154px;
441
- height: 22px;
442
- background: #366aff;
443
- border-radius: 5px;
444
- text-align: center;
445
- line-height: 22px;
446
- color: #fff;
447
- font-size: 12px;
448
- margin-bottom: 7px;
449
- }
450
- .answer-text {
451
- // font-size: 13px;
452
- text-align: left;
453
- line-height: 25px;
454
- padding: 0px 0px 12px 0px;
455
-
456
- .aci-view {
457
- // font-size: 13px;
458
- display: inline-block;
459
- // margin-left: 5px;
460
- color: #366aff;
461
- cursor: pointer;
462
- }
463
- }
464
- &.bgc {
465
- padding: 10px;
466
- background: #eef1ff;
467
- border-radius: 10px;
468
- margin-bottom: 16px;
469
- .answer-text {
470
- padding: 0;
471
- }
472
- }
473
- .answer-kn-image-box {
474
- margin-bottom: 10px;
475
- }
476
- }
477
-
478
-
479
- .ad-list-recognition {
480
- display: flex;
481
- align-items: center;
482
- flex-wrap: wrap;
483
- }
484
- .ad-list {
485
- .ad-list-cell {
486
- border-top: solid 1px #eeeeee;
487
- padding: 10px 0 10px;
488
-
489
- .alc-title {
490
- display: flex;
491
- flex-wrap: wrap;
492
- align-items: center;
493
- justify-content: space-between;
494
- line-height: 16px;
495
-
496
- .alc-box {
497
- display: flex;
498
- align-items: center;
499
- justify-content: space-between;
500
- // font-size: 12px;
501
- width: 100%;
502
- .alc-source-left {
503
- display: flex;
504
- align-items: center;
505
- .source-form {
506
- width: 34px;
507
- flex: none;
508
- color: #a9b3c6;
509
- }
510
- }
511
- .alc-content-text {
512
- width: 55px;
513
- flex: none;
514
- .aci-view {
515
- color: #366aff;
516
- cursor: pointer;
517
- }
518
- }
519
- .alc-title-from {
520
- line-height: 22px;
521
- word-break: break-all !important;
522
- text-align: left;
523
- flex: auto;
524
- display: flex;
525
- justify-content: flex-start;
526
- }
527
- }
528
- .alc-box-introduction {
529
- overflow: hidden;
530
- text-overflow: ellipsis;
531
- display: -webkit-box;
532
- -webkit-line-clamp: 3;
533
- -webkit-box-orient: vertical;
534
- margin-top: 10px;
535
- color: #616161;
536
- // font-size: 12px;
537
- line-height: 24px;
538
- text-align: left;
539
- img {
540
- width: 50px;
541
- height: 50px;
542
- margin: 10px;
543
- cursor: pointer;
544
- }
545
- }
546
- .alc-box-introduction-previewImage {
547
- width: 100%;
548
- display: block;
549
- overflow: hidden;
550
- text-overflow: ellipsis;
551
- display: -webkit-box;
552
- -webkit-line-clamp:3;
553
- -webkit-box-orient:vertical;
554
- margin-top: 10px;
555
- color: #616161;
556
- // font-size: 12px;
557
- line-height: 24px;
558
- text-align: left;
559
- img {
560
- max-width: 300px;
561
- width: 100%;
562
- max-height: 150px;
563
- margin: 10px;
564
- cursor: pointer;
565
- }
566
- }
567
- .alc-updateTime {
568
- display: flex;
569
- align-items: center;
570
- justify-content: space-between;
571
- font-size: 13px;
572
- width: 100%;
573
- margin-top: 10px;
574
- .upload-source {
575
- flex: none;
576
- height: 18px;
577
- line-height: 18px;
578
- background: #e9f9f8;
579
- border: 1px solid #aff2cd;
580
- border-radius: 2px;
581
- display: flex;
582
- align-items: center;
583
- justify-content: center;
584
- padding: 0 8px;
585
- color: #00c2bb;
586
- }
587
- .time {
588
- color: #999999;
589
- margin-left: 10px;
590
- }
591
- .alc-content-text {
592
- color: #366aff;
593
- cursor: pointer;
594
- }
595
- }
596
- .alc-title-icon {
597
- margin: 0 2px;
598
- width: 18px;
599
- height: 18px;
600
- flex: none;
601
- }
602
-
603
- .alc-title-updateTime {
604
- text-align: right;
605
- color: #999999;
606
- // font-size: 13px;
607
- }
608
- }
609
-
610
- .alc-content {
611
- .alc-title-updateTime {
612
- margin-top: 6px;
613
- display: block;
614
- text-align: right;
615
- color: #999999;
616
- // font-size: 13px;
617
- }
618
-
619
- .alc-content-text {
620
- margin-bottom: 6px;
621
- width: 55px;
622
- flex: none;
623
- .aci-view {
624
- display: inline-block;
625
- margin-left: 30px;
626
- color: #366aff;
627
- cursor: pointer;
628
- }
629
- }
630
-
631
- .alc-content-info {
632
- display: flex;
633
- flex-wrap: wrap;
634
- justify-content: space-between;
635
-
636
- .alcc-box {
637
- display: flex;
638
- flex-wrap: wrap;
639
- color: #999999;
640
-
641
- .aci-owner {
642
- margin-right: 20px;
643
- }
644
-
645
- .aci-enterprise {
646
- margin-right: 20px;
647
- }
648
- }
649
- }
650
- }
651
- }
652
- .ad-list-cell-recognition {
653
- .alc-source-name {
654
- flex: none;
655
- padding: 3px;
656
- margin-right: 5px;
657
- margin-bottom: 5px;
658
- background: #f2f6ff;
659
- border-radius: 5px;
660
- display: flex;
661
- align-items: center;
662
- justify-content: space-between;
663
- color: #a9b3c6;
664
- cursor: pointer;
665
- img {
666
- vertical-align: middle;
667
- // width: 16px;
668
- // height: 16px;
669
- margin: 0 3px 0 5px;
670
- }
671
- .alc-title-from {
672
- // margin-right: 5px;
673
- max-width: 240px;
674
- overflow: hidden;
675
- text-overflow: ellipsis;
676
- white-space: nowrap;
677
- }
678
- .upload-source {
679
- margin-right: 5px;
680
- }
681
- i {
682
- font-size: 12px;
683
- }
684
- }
685
- }
686
-
687
- .ad-loadmore {
688
- width: 100%;
689
- height: 40px;
690
- display: flex;
691
- align-items: center;
692
- justify-content: center;
693
- // background: #FFFFFF;
694
- color: #366aff;
695
- font-size: 14px;
696
- margin-top: 8px;
697
- cursor: pointer;
698
- }
699
- }
700
- }
701
- </style>
1
+ <template>
2
+ <div class="answer-docknowledge">
3
+ <div :class="['answer-docknowledge-header',msg.content.isKnowledgeSummary ? 'bgc' : '']">
4
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
5
+ <!-- <div v-if="msg.content.type == 0" class="answer-text">
6
+ <template v-if="msg.content.renderType == 1">
7
+ <p v-html="msg.content.text"></p>
8
+ </template>
9
+ <template v-else>{{ msg.content.text }}</template>
10
+ </div> -->
11
+ <div class="answer-text">
12
+ <template v-if="msg.content.renderType == 1">
13
+ <p v-html="msg.content.text"></p>
14
+ </template>
15
+ <template v-else>{{ msg.content.text }}</template>
16
+ </div>
17
+ <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
18
+ <img
19
+ v-for="(imageItem, imageItemIndex) in msg.content.images"
20
+ style="max-width: 230px;border-radius: 25px;margin-bottom: 15px"
21
+ :src="imageItem.url"
22
+ :key="imageItemIndex"
23
+ alt
24
+ @click="lookAttach(imageItem.url, imageItem, $event)"
25
+ />
26
+ </div>
27
+ </div>
28
+ <!-- v-if="msg.content.type == 1" -->
29
+ <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : '' ">
30
+ <!-- :style="{paddingBottom: itemIndex === msg.content.list.length - 1?0:'10px'}" -->
31
+ <template v-if="msg.content.type == 1">
32
+ <div
33
+ v-for="(item, itemIndex) in msg.content.list"
34
+ :key="itemIndex"
35
+ class="ad-list-cell"
36
+ >
37
+ <div class="alc-title">
38
+ <div class="alc-box">
39
+ <div class="alc-source-left">
40
+ <span class="source-form">出自</span>
41
+ <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt="" srcset="">
42
+ <span class="alc-title-from">{{ item.from }}</span>
43
+ </div>
44
+ </div>
45
+ <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="alc-box-introduction">
46
+ </div>
47
+ <div v-else class="alc-box-introduction">
48
+ <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
49
+ </div>
50
+ <div v-if="item.previewImage" class="alc-box-introduction-previewImage">
51
+ <img :src="item.previewImage" alt="" @click="lookAttach(item.previewImage, {url: item.previewImage}, $event)">
52
+ </div>
53
+ <div class="alc-updateTime">
54
+ <div v-show="docSource[item.source]" class="upload-source">
55
+ {{docSource[item.source]}}
56
+ </div>
57
+ <div v-show="item.url" class="alc-content-text">
58
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <div class="alc-content" v-if="false">
63
+ <div v-if="msg.content.type == 1" class="alc-content-text">
64
+ {{ item.introduction }}
65
+ <span
66
+ @click="lookAttach(item.url, item, $event)"
67
+ class="aci-view"
68
+ >查看原文 ></span>
69
+ </div>
70
+ <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
71
+ <div v-if="false" class="alc-content-info">
72
+ <div class="alcc-box">
73
+ <span class="aci-owner">所有者: {{ item.owner }}</span>
74
+ <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
75
+ <span class="aci-source">文件来源: {{ item.source }}</span>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </template>
81
+ <template v-if="msg.content.type == 0">
82
+ <div
83
+ v-for="(item, itemIndex) in msg.content.list"
84
+ :key="itemIndex"
85
+ class="ad-list-cell-recognition"
86
+ >
87
+ <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
88
+ <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
89
+ <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
90
+ <div v-show="docSource[item.source]" class="upload-source">
91
+ {{docSource[item.source]}}
92
+ </div>
93
+ <i class="iconfont guoran-right"></i>
94
+ </div>
95
+ </div>
96
+ </template>
97
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
98
+ </div>
99
+ <previewPdf ref="previewPdf"
100
+ :url="previewHref"
101
+ :previewOssPath="previewOssPath"
102
+ :title="title" :sourceFileType="sourceFileType"
103
+ officePreviewType="pdf"
104
+ @previewToDialog="previewToDialog"
105
+ @recommendQues="recommendQues"
106
+ @close="close"
107
+ @open="open"
108
+ :isHasChat="isHasChat"
109
+ :knowledgeId="previewKnowledgeId"
110
+ ></previewPdf>
111
+ </div>
112
+ </template>
113
+
114
+ <script>
115
+ /* eslint-disable */
116
+ import previewPdf from "./previewPdf";
117
+ import { isMobile } from "../assets/js/common";
118
+ export default {
119
+ name: "answerDocknowledge",
120
+ components: { previewPdf },
121
+ data () {
122
+ return {
123
+ isPC: true,
124
+ previewHref: "",
125
+ sourceFileType: '',
126
+ // docSource: {
127
+ // LOCAL_FILE: "来源于本地文件",
128
+ // CREATED_BY_ONESELF: "来源于自建知识",
129
+ // WECHAT: "来源于微信",
130
+ // AUTO_SYN_FROM_LOCAL_FILE: "自动同步于本地",
131
+ // YUQUE: "来源于语雀",
132
+ // CORP_LOCAL_FILE: '来源于企业知识库',
133
+ // FEISHU: '来源于飞书-云文档'
134
+ // },
135
+ docSource: {
136
+ LOCAL_FILE: "个人知识",
137
+ CREATED_BY_ONESELF: "个人知识",
138
+ WECHAT: "个人知识",
139
+ AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
140
+ YUQUE: "企业知识",
141
+ CORP_LOCAL_FILE: '企业知识',
142
+ FEISHU: '企业知识'
143
+ },
144
+ imageObj: {
145
+ PDF: 'pdf1',
146
+ pdf: 'pdf1',
147
+ TXT: 'txt1',
148
+ txt: 'txt1',
149
+ selfadd: 'selfadd1',
150
+ md: "md2",
151
+ html: 'selfadd1',
152
+ mode: "mode",
153
+ general: 'general',
154
+ word: "word1",
155
+ Word: "word1",
156
+ docx: "word1",
157
+ doc: "word1",
158
+ WORD: "word1",
159
+ Excel: 'excel1',
160
+ EXCEL: 'excel1',
161
+ excel: 'excel1',
162
+ PPT: 'ppt1',
163
+ ppt: 'ppt1',
164
+ pptx: 'ppt1',
165
+ img: "image1",
166
+ image: "image1",
167
+ video: "video",
168
+ audio: 'audio',
169
+ link: "link",
170
+ wechat: "wechat",
171
+ mp4: "video",
172
+ MP4: "video",
173
+ xlsx: "excel1",
174
+ SLSX: "excel1",
175
+ xls: "excel1",
176
+ XLS: "excel1",
177
+ jpg: "image1",
178
+ JPG: "image1",
179
+ jpeg: "image1",
180
+ JPEG: "image1",
181
+ png: "image1",
182
+ PNG: "image1",
183
+ webp: "image1",
184
+ WEBP: "image1",
185
+ gif: "image1",
186
+ GIF: "image1",
187
+ svg: "image1",
188
+ SVG: "image1",
189
+ bmp: "image1",
190
+ BMP: "image1",
191
+ avi: "video",
192
+ AVI: "video",
193
+ mov: "video",
194
+ MOV: "video",
195
+ rmvb: "video",
196
+ RMVB: "video",
197
+ wav: "audio",
198
+ WAV: "audio",
199
+ mp3: "audio",
200
+ MP3: "audio",
201
+ yqhtml: "yqhtml",
202
+ feishuhtml: "feishuhtml"
203
+ },
204
+ allKnowledgeList: [],
205
+ loadMoreFlag: false,
206
+ title:'',
207
+ previewKnowledgeId:"",
208
+ previewKnowledge:{},
209
+ previewOssPath:""
210
+ }
211
+ },
212
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp","isHasChat","activeKnowledgeId"],
213
+ beforeMounted () {
214
+ },
215
+ watch: {
216
+ // msg: {
217
+ // handler (n) {
218
+ // console.log(n, 'answerDocknowledge');
219
+ // n.content.list.forEach(element => {
220
+ // console.log(this.imageObj[element.format], 1111);
221
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
222
+ // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
223
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
224
+ // }
225
+ // });
226
+ // },
227
+ // deep: true,
228
+ // immediate: true
229
+ // }
230
+ },
231
+ created () {
232
+ var system = {};
233
+ system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
234
+ if (system.pingtai) {
235
+ //电脑
236
+ this.isPC = true;
237
+ } else {
238
+ //手机
239
+ this.isPC = false;
240
+ }
241
+ // this.msg.content.list.forEach(element => {
242
+ // console.log(this.imageObj[element.format],1111);
243
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
244
+ // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
245
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
246
+ // }
247
+ // });
248
+ },
249
+ mounted () {
250
+ console.log(this.msg.content, 'this.msg.content');
251
+ // if(this.msg.content.type == 1) {
252
+
253
+ // }
254
+ if (this.msg.content.list && this.msg.content.list.length > 0) {
255
+ this.loadMoreFlag = true
256
+ this.allKnowledgeList = JSON.parse(JSON.stringify(this.msg.content.list))
257
+ // console.log(this.allKnowledgeList.length, 'this.allKnowledgeList');
258
+ this.msg.content.list = []
259
+ this.lazyLoadKnowledegList()
260
+ }
261
+ },
262
+ methods: {
263
+ getIconSrc(element) {
264
+ if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
265
+ return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png'
266
+ } else {
267
+ return 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png'
268
+ }
269
+ },
270
+ //预览图片
271
+ lookAttach(url, item, event) {
272
+ // console.log(item.knowledgeId);
273
+ // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
274
+ // debugger
275
+ event.preventDefault();
276
+ if (this.isAskLightning == 1 && !this.isApp){
277
+ window.parent.postMessage({
278
+ data: "bot_preview",
279
+ item: JSON.stringify(item),
280
+ url: url
281
+ },"*");
282
+ } else {
283
+ // if (isMobile()) {
284
+ // this.$refs.previewPdf.drawer = true;
285
+ // this.$refs.previewPdf.previewShowPopup = false;
286
+ // } else {
287
+ // this.$refs.previewPdf.drawer = false;
288
+ // }
289
+ this.title = item.from || item.name
290
+ this.previewKnowledge = item;
291
+ this.previewKnowledgeId = item.knowledgeId
292
+ this.$refs.previewPdf.previewShowPopup = false;
293
+ this.$refs.previewPdf.drawer = false;
294
+ this.previewOssPath = url;
295
+ let index = url.lastIndexOf('?')
296
+ let type = ''
297
+ let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
298
+ if (index !== -1) {
299
+ url = url.substring(0, index)
300
+ type = this.fileType(url)
301
+ } else {
302
+ type = this.fileType(url)
303
+ }
304
+ if (type === '' || type === 'OTHER') {
305
+ httpUrl = httpUrl += '?needEncrypt=true'
306
+ } else {
307
+ httpUrl = httpUrl += '?needEncrypt=false'
308
+ }
309
+ this.$http.post(httpUrl, {
310
+ "fileInOssPath":url
311
+ }).then(res =>{
312
+ if(res.data.code == '0') {
313
+ this.previewHref = res.data.data;
314
+ this.sourceFileType = url.substring(url.lastIndexOf('.'))
315
+ let isOhmPc = sessionStorage.getItem('isOhmPc')
316
+ if (isMobile() || isOhmPc == 'true'){
317
+ this.$refs.previewPdf.drawer = true;
318
+ this.$refs.previewPdf.previewShowPopup = true;
319
+ } else {
320
+ this.$refs.previewPdf.previewShowPopup = false;
321
+ this.$refs.previewPdf.drawer = true;
322
+ }
323
+ //聊一聊按钮的选中状态
324
+ if (this.activeKnowledgeId == item.knowledgeId){
325
+ this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
326
+ } else {
327
+ this.$refs.previewPdf.previewKnowledgeId = ""
328
+ }
329
+ this.$refs.previewPdf.fileType = type
330
+ this.$refs.previewPdf.tagIds = item.tagIds
331
+ this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
332
+ let index = url.indexOf("?");
333
+ let newFileInOssPath = url;
334
+ if (index !== -1){
335
+ newFileInOssPath = url.substring(0, url.indexOf("?"))
336
+ }
337
+ let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
338
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
339
+ this.$refs.previewPdf.fileName = fileName;
340
+ } else {
341
+ this.$refs.previewPdf.fileName = '';
342
+ }
343
+ if(item.tagIds && item.tagIds.length != 0) {
344
+ this.$refs.previewPdf.loading = false
345
+ return
346
+ }
347
+ this.$nextTick(() =>{
348
+ if(item.source == 'CREATED_BY_ONESELF' || type === 'HTML') {
349
+ this.$refs.previewPdf.getBolb(item)
350
+ }
351
+ this.$refs.previewPdf.loadIframe(item)
352
+ this.$refs.previewPdf.showSummary = true;
353
+ })
354
+ }
355
+ })
356
+ }
357
+ },
358
+ open() {
359
+ this.$emit('openPreviewDialog')
360
+ },
361
+ close() {
362
+ this.$emit('closePreviewDialog')
363
+ },
364
+ fileType (url) {
365
+ const fileType = url.substring(url.lastIndexOf('.'));
366
+ if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc' || fileType === '.mav' || fileType === '.MAV' || fileType == '.mp3' || fileType == '.MP3' || fileType === '.wav') {
367
+ return 'VIDEO'
368
+ } else if (fileType === '.html') {
369
+ return 'HTML'
370
+ } else {
371
+ return 'OTHER'
372
+ }
373
+ },
374
+ srcContentTypeIMG (item) {
375
+ let url = item.url || '';
376
+ const type = url.substring(url.lastIndexOf('.'));
377
+ if (type === '.jpg' || type === '.jpeg' || type === '.png' || type === '.gif') {
378
+ this.getSrc(item)
379
+ return true
380
+ } else {
381
+ return false
382
+ }
383
+ },
384
+ getSrc (item) {
385
+ // let imgurl = ''
386
+ this.$http.post(
387
+ '/knowledge-api/temporary-certificate/or-origin?expired=30',
388
+ item.url,
389
+ {
390
+ headers: {
391
+ "Content-Type": "application/json",
392
+ },
393
+ }).then(res => {
394
+ console.log(res, '=====');
395
+ // imgurl = await res.bodyText
396
+ this.$set(item, 'expiredUrl', res.data ? res.data : res.bodyText)
397
+ // return res.data
398
+ })
399
+ // return imgurl
400
+ },
401
+ lazyLoadKnowledegList () {
402
+ if (this.allKnowledgeList.length !== 0) {
403
+ let arr = this.allKnowledgeList.splice(0, 5)
404
+ if (arr.length < 5) {
405
+ this.loadMoreFlag = false
406
+ this.msg.content.list = [...this.msg.content.list, ...arr]
407
+ return
408
+ }
409
+ if (this.allKnowledgeList.length == 0) {
410
+ this.loadMoreFlag = false
411
+ }
412
+ this.msg.content.list = [...this.msg.content.list, ...arr]
413
+ return
414
+ }
415
+ },
416
+ previewToDialog(flag){
417
+ if (!flag){
418
+ this.$refs.previewPdf.previewKnowledgeId = ""
419
+ } else {
420
+ this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
421
+ }
422
+ this.$emit('previewToDialog',flag,this.previewKnowledgeId,this.previewKnowledge)
423
+ },
424
+ clearKnowledgeId(){
425
+ this.previewKnowledgeId = "";
426
+ },
427
+ recommendQues(item,knowledgeId){
428
+ this.$emit('recommendQues',item,knowledgeId)
429
+ }
430
+ }
431
+ }
432
+ </script>
433
+
434
+ <style scoped lang="less">
435
+ .answer-docknowledge {
436
+ min-width: 100px;
437
+ background: #ffffff;
438
+ .answer-docknowledge-header {
439
+ .tips {
440
+ width: 154px;
441
+ height: 22px;
442
+ background: #366aff;
443
+ border-radius: 5px;
444
+ text-align: center;
445
+ line-height: 22px;
446
+ color: #fff;
447
+ font-size: 12px;
448
+ margin-bottom: 7px;
449
+ }
450
+ .answer-text {
451
+ // font-size: 13px;
452
+ text-align: left;
453
+ line-height: 25px;
454
+ padding: 0px 0px 12px 0px;
455
+
456
+ .aci-view {
457
+ // font-size: 13px;
458
+ display: inline-block;
459
+ // margin-left: 5px;
460
+ color: #366aff;
461
+ cursor: pointer;
462
+ }
463
+ }
464
+ &.bgc {
465
+ padding: 10px;
466
+ background: #eef1ff;
467
+ border-radius: 10px;
468
+ margin-bottom: 16px;
469
+ .answer-text {
470
+ padding: 0;
471
+ }
472
+ }
473
+ .answer-kn-image-box {
474
+ margin-bottom: 10px;
475
+ }
476
+ }
477
+
478
+
479
+ .ad-list-recognition {
480
+ display: flex;
481
+ align-items: center;
482
+ flex-wrap: wrap;
483
+ }
484
+ .ad-list {
485
+ .ad-list-cell {
486
+ border-top: solid 1px #eeeeee;
487
+ padding: 10px 0 10px;
488
+
489
+ .alc-title {
490
+ display: flex;
491
+ flex-wrap: wrap;
492
+ align-items: center;
493
+ justify-content: space-between;
494
+ line-height: 16px;
495
+
496
+ .alc-box {
497
+ display: flex;
498
+ align-items: center;
499
+ justify-content: space-between;
500
+ // font-size: 12px;
501
+ width: 100%;
502
+ .alc-source-left {
503
+ display: flex;
504
+ align-items: center;
505
+ .source-form {
506
+ width: 34px;
507
+ flex: none;
508
+ color: #a9b3c6;
509
+ }
510
+ }
511
+ .alc-content-text {
512
+ width: 55px;
513
+ flex: none;
514
+ .aci-view {
515
+ color: #366aff;
516
+ cursor: pointer;
517
+ }
518
+ }
519
+ .alc-title-from {
520
+ line-height: 22px;
521
+ word-break: break-all !important;
522
+ text-align: left;
523
+ flex: auto;
524
+ display: flex;
525
+ justify-content: flex-start;
526
+ }
527
+ }
528
+ .alc-box-introduction {
529
+ overflow: hidden;
530
+ text-overflow: ellipsis;
531
+ display: -webkit-box;
532
+ -webkit-line-clamp: 3;
533
+ -webkit-box-orient: vertical;
534
+ margin-top: 10px;
535
+ color: #616161;
536
+ // font-size: 12px;
537
+ line-height: 24px;
538
+ text-align: left;
539
+ img {
540
+ width: 50px;
541
+ height: 50px;
542
+ margin: 10px;
543
+ cursor: pointer;
544
+ }
545
+ }
546
+ .alc-box-introduction-previewImage {
547
+ width: 100%;
548
+ display: block;
549
+ overflow: hidden;
550
+ text-overflow: ellipsis;
551
+ display: -webkit-box;
552
+ -webkit-line-clamp:3;
553
+ -webkit-box-orient:vertical;
554
+ margin-top: 10px;
555
+ color: #616161;
556
+ // font-size: 12px;
557
+ line-height: 24px;
558
+ text-align: left;
559
+ img {
560
+ max-width: 300px;
561
+ width: 100%;
562
+ max-height: 150px;
563
+ margin: 10px;
564
+ cursor: pointer;
565
+ }
566
+ }
567
+ .alc-updateTime {
568
+ display: flex;
569
+ align-items: center;
570
+ justify-content: space-between;
571
+ font-size: 13px;
572
+ width: 100%;
573
+ margin-top: 10px;
574
+ .upload-source {
575
+ flex: none;
576
+ height: 18px;
577
+ line-height: 18px;
578
+ background: #e9f9f8;
579
+ border: 1px solid #aff2cd;
580
+ border-radius: 2px;
581
+ display: flex;
582
+ align-items: center;
583
+ justify-content: center;
584
+ padding: 0 8px;
585
+ color: #00c2bb;
586
+ }
587
+ .time {
588
+ color: #999999;
589
+ margin-left: 10px;
590
+ }
591
+ .alc-content-text {
592
+ color: #366aff;
593
+ cursor: pointer;
594
+ }
595
+ }
596
+ .alc-title-icon {
597
+ margin: 0 2px;
598
+ width: 18px;
599
+ height: 18px;
600
+ flex: none;
601
+ }
602
+
603
+ .alc-title-updateTime {
604
+ text-align: right;
605
+ color: #999999;
606
+ // font-size: 13px;
607
+ }
608
+ }
609
+
610
+ .alc-content {
611
+ .alc-title-updateTime {
612
+ margin-top: 6px;
613
+ display: block;
614
+ text-align: right;
615
+ color: #999999;
616
+ // font-size: 13px;
617
+ }
618
+
619
+ .alc-content-text {
620
+ margin-bottom: 6px;
621
+ width: 55px;
622
+ flex: none;
623
+ .aci-view {
624
+ display: inline-block;
625
+ margin-left: 30px;
626
+ color: #366aff;
627
+ cursor: pointer;
628
+ }
629
+ }
630
+
631
+ .alc-content-info {
632
+ display: flex;
633
+ flex-wrap: wrap;
634
+ justify-content: space-between;
635
+
636
+ .alcc-box {
637
+ display: flex;
638
+ flex-wrap: wrap;
639
+ color: #999999;
640
+
641
+ .aci-owner {
642
+ margin-right: 20px;
643
+ }
644
+
645
+ .aci-enterprise {
646
+ margin-right: 20px;
647
+ }
648
+ }
649
+ }
650
+ }
651
+ }
652
+ .ad-list-cell-recognition {
653
+ .alc-source-name {
654
+ flex: none;
655
+ padding: 3px;
656
+ margin-right: 5px;
657
+ margin-bottom: 5px;
658
+ background: #f2f6ff;
659
+ border-radius: 5px;
660
+ display: flex;
661
+ align-items: center;
662
+ justify-content: space-between;
663
+ color: #a9b3c6;
664
+ cursor: pointer;
665
+ img {
666
+ vertical-align: middle;
667
+ // width: 16px;
668
+ // height: 16px;
669
+ margin: 0 3px 0 5px;
670
+ }
671
+ .alc-title-from {
672
+ // margin-right: 5px;
673
+ max-width: 240px;
674
+ overflow: hidden;
675
+ text-overflow: ellipsis;
676
+ white-space: nowrap;
677
+ }
678
+ .upload-source {
679
+ margin-right: 5px;
680
+ }
681
+ i {
682
+ font-size: 12px;
683
+ }
684
+ }
685
+ }
686
+
687
+ .ad-loadmore {
688
+ width: 100%;
689
+ height: 40px;
690
+ display: flex;
691
+ align-items: center;
692
+ justify-content: center;
693
+ // background: #FFFFFF;
694
+ color: #366aff;
695
+ font-size: 14px;
696
+ margin-top: 8px;
697
+ cursor: pointer;
698
+ }
699
+ }
700
+ }
701
+ </style>