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