askbot-dragon 1.7.43-beta → 1.7.45-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 (95) 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 +56 -56
  5. package/public/index.html +73 -73
  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 +141 -141
  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 +438 -438
  22. package/src/components/AnswerDocknowledge.vue +1095 -1091
  23. package/src/components/AnswerVoice.vue +285 -285
  24. package/src/components/AskIFrame.vue +15 -15
  25. package/src/components/ConversationContainer.vue +10766 -10766
  26. package/src/components/FileType.vue +86 -86
  27. package/src/components/Message.vue +27 -27
  28. package/src/components/MyEditor.vue +342 -342
  29. package/src/components/QwFeedback.vue +301 -301
  30. package/src/components/actionSatisfaction.vue +107 -107
  31. package/src/components/actionSendToBot.vue +62 -62
  32. package/src/components/answerDissatisfaction.vue +62 -62
  33. package/src/components/answerRadio.vue +211 -211
  34. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  35. package/src/components/ask-components/Msgloading.vue +37 -37
  36. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  37. package/src/components/askVideo.vue +162 -162
  38. package/src/components/assetDetails.vue +378 -378
  39. package/src/components/assetMessage.vue +228 -228
  40. package/src/components/associationIntention.vue +378 -378
  41. package/src/components/attachmentPreview.vue +90 -90
  42. package/src/components/botActionSatisfactor.vue +68 -68
  43. package/src/components/chatContent.vue +513 -513
  44. package/src/components/feedBack.vue +136 -136
  45. package/src/components/fielListView.vue +351 -351
  46. package/src/components/file/AliyunOssComponents.vue +108 -108
  47. package/src/components/formTemplate.vue +3501 -3501
  48. package/src/components/imgView.vue +31 -31
  49. package/src/components/intelligentSummary.vue +231 -231
  50. package/src/components/kkview.vue +1138 -1138
  51. package/src/components/loadingProcess.vue +164 -164
  52. package/src/components/markDownText.vue +197 -197
  53. package/src/components/message/ActionAlertIframe.vue +112 -112
  54. package/src/components/message/ShopMessage.vue +164 -164
  55. package/src/components/message/TextMessage.vue +928 -928
  56. package/src/components/message/TicketMessage.vue +201 -201
  57. package/src/components/message/swiper/index.js +4 -4
  58. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  59. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  60. package/src/components/msgLoading.vue +231 -231
  61. package/src/components/myPopup.vue +70 -70
  62. package/src/components/newPdfPosition.vue +877 -877
  63. package/src/components/pagination.vue +128 -128
  64. package/src/components/pdfPosition.vue +1514 -1514
  65. package/src/components/popup.vue +227 -227
  66. package/src/components/preview/docView.vue +106 -106
  67. package/src/components/preview/excelView.vue +176 -176
  68. package/src/components/preview/newPositionPreview.vue +350 -337
  69. package/src/components/preview/pdfView.vue +805 -754
  70. package/src/components/previewDoc.vue +251 -251
  71. package/src/components/previewPdf.vue +1069 -872
  72. package/src/components/receiverMessagePlatform.vue +65 -65
  73. package/src/components/recommend.vue +80 -80
  74. package/src/components/selector/hOption.vue +20 -20
  75. package/src/components/selector/hSelector.vue +199 -199
  76. package/src/components/selector/hWrapper.vue +216 -216
  77. package/src/components/senderMessagePlatform.vue +50 -50
  78. package/src/components/source/BotMessage.vue +24 -24
  79. package/src/components/source/CustomMessage.vue +24 -24
  80. package/src/components/test.vue +260 -260
  81. package/src/components/tree.vue +307 -307
  82. package/src/components/utils/AliyunIssUtil.js +103 -103
  83. package/src/components/utils/ckeditor.js +185 -185
  84. package/src/components/utils/format_date.js +25 -25
  85. package/src/components/utils/index.js +6 -6
  86. package/src/components/utils/math_utils.js +29 -29
  87. package/src/components/voiceComponent.vue +119 -119
  88. package/src/components/welcomeKnowledgeFile.vue +344 -344
  89. package/src/components/welcomeLlmCard.vue +144 -144
  90. package/src/components/welcomeSuggest.vue +97 -97
  91. package/src/locales/cn.json +71 -71
  92. package/src/locales/en.json +72 -72
  93. package/src/locales/jp.json +72 -72
  94. package/src/main.js +75 -75
  95. package/vue.config.js +54 -54
@@ -1,1091 +1,1095 @@
1
- <!--
2
- isLiBang 字段判断 是否为立邦主体
3
- 立邦有自己单独的组件分支,但考虑到后期结构改动如果较大改动会不方便,所以还是在推荐知识消息中 在此判断是否是立邦主体。方便后期维护
4
- -->
5
- <template>
6
- <div class="answer-docknowledge">
7
- <div :class="['answer-docknowledge-header', msg.content.isKnowledgeSummary ? 'bgc' : '']">
8
- <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
9
- <!-- <div v-if="msg.content.type == 0" class="answer-text">
10
- <template v-if="msg.content.renderType == 1">
11
- <p v-html="msg.content.text"></p>
12
- </template>
13
- <template v-else>{{ msg.content.text }}</template>
14
- </div> -->
15
- <div class="answer-text">
16
- <template v-if="msg.content.renderType == 1">
17
- <p v-html="msg.content.text"></p>
18
- </template>
19
- <template v-else-if="msg.content.renderType == 2">
20
- <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText>
21
- </template>
22
- <template v-else>{{ msg.content.text }}</template>
23
- </div>
24
- <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
25
- <img v-for="(imageItem, imageItemIndex) in msg.content.images"
26
- style="max-width: 230px;border-radius: 25px;margin-bottom: 15px" :src="imageItem.url"
27
- :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
28
- </div>
29
- </div>
30
- <template v-if="!isLiBang">
31
- <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
32
- <template v-if="msg.content.type == 1">
33
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
34
- :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
35
- <div class="alc-title">
36
- <div class="alc-box">
37
- <div class="alc-source-left">
38
- <span class="source-form">出自</span>
39
- <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
40
- srcset="">
41
- <span class="alc-title-from">{{ item.from }}</span>
42
- </div>
43
- </div>
44
- <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="alc-box-introduction">
45
- </div>
46
- <div v-else class="alc-box-introduction">
47
- <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
48
- </div>
49
- <div v-if="item.previewImage" class="alc-box-introduction-previewImage">
50
- <img :src="item.previewImage" alt=""
51
- @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 @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
66
- </div>
67
- <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
68
- <div v-if="false" class="alc-content-info">
69
- <div class="alcc-box">
70
- <span class="aci-owner">所有者: {{ item.owner }}</span>
71
- <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
72
- <span class="aci-source">文件来源: {{ item.source }}</span>
73
- </div>
74
- </div>
75
- </div>
76
- </div>
77
- </template>
78
- <template v-if="msg.content.type == 0">
79
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition">
80
- <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
81
- <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
82
- <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
83
- <div v-show="docSource[item.source]" class="upload-source">
84
- {{ docSource[item.source] }}
85
- </div>
86
- <i class="iconfont guoran-right"></i>
87
- </div>
88
- </div>
89
- </template>
90
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
91
- </div>
92
- </template>
93
- <template v-if="isLiBang">
94
- <div class="libang_list" :class="msg.content.type == 0 ? 'libang_list_recognition' : ''">
95
- <template v-if="msg.content.type == 1">
96
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="libang_list_cell">
97
- <div class="libang_title">
98
- <div class="libang_box">
99
- <div class="libang_source_left">
100
- <span class="source-form">出自</span>
101
- <img class="libang_title_icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
102
- srcset="">
103
- <span class="libang_title_from">{{ item.from }}</span>
104
- </div>
105
- </div>
106
- <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="libang_box_introduction">
107
- </div>
108
- <div v-else class="libang_box_introduction">
109
- <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
110
- </div>
111
- <div v-if="item.previewImage" class="libang_box_introduction_previewImage">
112
- <img :src="item.previewImage" alt=""
113
- @click="lookAttach(item.previewImage, { url: item.previewImage }, $event)">
114
- </div>
115
- <div class="libang_updateTime">
116
- <div class="libang_updataTime_left">
117
- <div v-show="docSource[item.source]" class="upload-source">
118
- {{ docSource[item.source] }}
119
- </div>
120
- <div class="libang_floder" @click.stop="clickFloder(item)">
121
- <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
122
- {{ item.folderName }}
123
- </div>
124
- </div>
125
- <div v-show="item.url" class="libang_content_text">
126
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
127
- </div>
128
- </div>
129
- </div>
130
- <!-- <div class="alc-content" v-if="false">
131
- <div v-if="msg.content.type == 1" class="alc-content-text">
132
- {{ item.introduction }}
133
- <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
134
- </div>
135
- <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
136
- <div v-if="false" class="alc-content-info">
137
- <div class="alcc-box">
138
- <span class="aci-owner">所有者: {{ item.owner }}</span>
139
- <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
140
- <span class="aci-source">文件来源: {{ item.source }}</span>
141
- </div>
142
- </div>
143
- </div> -->
144
- </div>
145
- </template>
146
- <template v-if="msg.content.type == 0">
147
- <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
148
- class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)">
149
- <div class="libang_list_cell_left" >
150
- <div class="libang_source_name" >
151
- <img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
152
- <span class="libang_title_from">{{ item.from }}</span>&nbsp;-&nbsp;
153
- <div v-show="docSource[item.source]" class="upload_source">
154
- {{ docSource[item.source] }}
155
- </div>
156
- </div>
157
- <div class="libang_source_floder" @click.stop="clickFloder(item)">
158
- <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
159
- {{ item.folderName }}
160
- </div>
161
- </div>
162
- <i class="iconfont guoran-right" @click="lookAttach(item.url, item, $event)"></i>
163
- </div>
164
- </template>
165
- <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
166
- </div>
167
- </template>
168
-
169
- <previewPdf ref="previewPdf" :url="previewHref" :previewOssPath="previewOssPath" :title="title"
170
- :folderName="folderName" :folderUrl="folderUrl"
171
- :sourceFileType="sourceFileType" officePreviewType="pdf" @previewToDialog="previewToDialog"
172
- @recommendQues="recommendQues" @close="close" @open="open" :isHasChat="isHasChat"
173
- :knowledgeId="previewKnowledgeId" :isLiBang="isLiBang" @previewClickFloder="previewClickFloder"></previewPdf>
174
- </div>
175
- </template>
176
-
177
- <script>
178
- /* eslint-disable */
179
- import previewPdf from "./previewPdf";
180
- import { isMobile } from "../assets/js/common";
181
- import markDownText from "./markDownText.vue";
182
- export default {
183
- name: "answerDocknowledge",
184
- components: { previewPdf, markDownText },
185
- data () {
186
- return {
187
- isPC: true,
188
- previewHref: "",
189
- sourceFileType: '',
190
- // docSource: {
191
- // LOCAL_FILE: "来源于本地文件",
192
- // CREATED_BY_ONESELF: "来源于自建知识",
193
- // WECHAT: "来源于微信",
194
- // AUTO_SYN_FROM_LOCAL_FILE: "自动同步于本地",
195
- // YUQUE: "来源于语雀",
196
- // CORP_LOCAL_FILE: '来源于企业知识库',
197
- // FEISHU: '来源于飞书-云文档'
198
- // },
199
- docSource: {
200
- LOCAL_FILE: "个人知识",
201
- CREATED_BY_ONESELF: "个人知识",
202
- WECHAT: "个人知识",
203
- AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
204
- YUQUE: "企业知识",
205
- CORP_LOCAL_FILE: '企业知识',
206
- FEISHU: '企业知识'
207
- },
208
- imageObj: {
209
- PDF: 'pdf1',
210
- pdf: 'pdf1',
211
- TXT: 'txt1',
212
- txt: 'txt1',
213
- selfadd: 'selfadd1',
214
- md: "md2",
215
- html: 'selfadd1',
216
- mode: "mode",
217
- general: 'general',
218
- word: "word1",
219
- Word: "word1",
220
- docx: "word1",
221
- doc: "word1",
222
- WORD: "word1",
223
- Excel: 'excel1',
224
- EXCEL: 'excel1',
225
- excel: 'excel1',
226
- PPT: 'ppt1',
227
- ppt: 'ppt1',
228
- pptx: 'ppt1',
229
- img: "image1",
230
- image: "image1",
231
- video: "video",
232
- audio: 'audio',
233
- link: "link",
234
- wechat: "wechat",
235
- mp4: "video",
236
- MP4: "video",
237
- xlsx: "excel1",
238
- SLSX: "excel1",
239
- xls: "excel1",
240
- XLS: "excel1",
241
- jpg: "image1",
242
- JPG: "image1",
243
- jpeg: "image1",
244
- JPEG: "image1",
245
- png: "image1",
246
- PNG: "image1",
247
- webp: "image1",
248
- WEBP: "image1",
249
- gif: "image1",
250
- GIF: "image1",
251
- svg: "image1",
252
- SVG: "image1",
253
- bmp: "image1",
254
- BMP: "image1",
255
- avi: "video",
256
- AVI: "video",
257
- mov: "video",
258
- MOV: "video",
259
- rmvb: "video",
260
- RMVB: "video",
261
- wav: "audio",
262
- WAV: "audio",
263
- mp3: "audio",
264
- MP3: "audio",
265
- yqhtml: "yqhtml",
266
- feishuhtml: "feishuhtml"
267
- },
268
- allKnowledgeList: [],
269
- loadMoreFlag: false,
270
- title: '',
271
- folderName: '',
272
- folderUrl: '',
273
- previewKnowledgeId: "",
274
- previewKnowledge: {},
275
- previewOssPath: ""
276
- }
277
- },
278
- props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory"],
279
- beforeMounted () {
280
- },
281
- watch: {
282
- // msg: {
283
- // handler (n) {
284
- // console.log(n, 'answerDocknowledge');
285
- // n.content.list.forEach(element => {
286
- // console.log(this.imageObj[element.format], 1111);
287
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
288
- // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
289
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
290
- // }
291
- // });
292
- // },
293
- // deep: true,
294
- // immediate: true
295
- // }
296
- },
297
- created () {
298
- var system = {};
299
- system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
300
- if (system.pingtai) {
301
- //电脑
302
- this.isPC = true;
303
- } else {
304
- //手机
305
- this.isPC = false;
306
- }
307
- // this.msg.content.list.forEach(element => {
308
- // console.log(this.imageObj[element.format],1111);
309
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
310
- // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
311
- // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
312
- // }
313
- // });
314
- },
315
- mounted () {
316
- console.log(this.msg.content, 'this.msg.content');
317
- // if(this.msg.content.type == 1) {
318
-
319
- // }
320
- if (this.msg.content.list && this.msg.content.list.length > 0) {
321
- this.loadMoreFlag = true
322
- this.allKnowledgeList = JSON.parse(JSON.stringify(this.msg.content.list))
323
- // console.log(this.allKnowledgeList.length, 'this.allKnowledgeList');
324
- this.msg.content.list = []
325
- this.lazyLoadKnowledegList()
326
- }
327
- },
328
- methods: {
329
- getIconSrc (element) {
330
- if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
331
- return require("../assets/image/filtType/wechat.png")
332
- } else {
333
- return require("../assets/image/filtType/" + this.imageObj[element.format] + '.png')
334
-
335
- }
336
- },
337
- //预览图片
338
- lookAttach (url, item, event) {
339
- // console.log(item.knowledgeId);
340
- // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
341
- // debugger
342
- event.preventDefault();
343
- if (this.isAskLightning == 1 && !this.isApp) {
344
- window.parent.postMessage({
345
- data: "bot_preview",
346
- item: JSON.stringify(item),
347
- url: url
348
- }, "*");
349
- } else {
350
- // if (isMobile()) {
351
- // this.$refs.previewPdf.drawer = true;
352
- // this.$refs.previewPdf.previewShowPopup = false;
353
- // } else {
354
- // this.$refs.previewPdf.drawer = false;
355
- // }
356
- this.title = item.from || item.name
357
- this.folderName = item.folderName
358
- this.folderUrl = item.folderUrl
359
- this.previewKnowledge = item;
360
- this.previewKnowledgeId = item.knowledgeId
361
- this.$refs.previewPdf.previewShowPopup = false;
362
- this.$refs.previewPdf.drawer = false;
363
- this.previewOssPath = url;
364
- let index = url.lastIndexOf('?')
365
- let type = ''
366
- let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
367
- if (index !== -1) {
368
- url = url.substring(0, index)
369
- type = this.fileType(url)
370
- } else {
371
- type = this.fileType(url)
372
- }
373
- if (type === '' || type === 'OTHER' || type == 'IMAGE') {
374
- httpUrl = httpUrl += '?needEncrypt=true'
375
- } else {
376
- httpUrl = httpUrl += '?needEncrypt=false'
377
- }
378
- this.$refs.previewPdf.getOssPath(url);
379
- this.$http.post(httpUrl, {
380
- "fileInOssPath": url
381
- }).then(res => {
382
- if (res.data.code == '0') {
383
- this.previewHref = res.data.data;
384
- this.sourceFileType = url.substring(url.lastIndexOf('.'))
385
- let isOhmPc = sessionStorage.getItem('isOhmPc')
386
- if (isMobile() || isOhmPc == 'true') {
387
- this.$refs.previewPdf.drawer = true;
388
- this.$refs.previewPdf.previewShowPopup = true;
389
- } else {
390
- this.$refs.previewPdf.previewShowPopup = false;
391
- this.$refs.previewPdf.drawer = true;
392
- }
393
- //聊一聊按钮的选中状态
394
- if (this.activeKnowledgeId == item.knowledgeId) {
395
- this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
396
- } else {
397
- this.$refs.previewPdf.previewKnowledgeId = ""
398
- }
399
- this.$refs.previewPdf.fileType = type
400
- this.$refs.previewPdf.tagIds = item.tagIds;
401
- if (item.tagIds && item.tagIds.length > 0){
402
- this.$refs.previewPdf.getLocationInfo();
403
- }
404
- this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
405
- let index = url.indexOf("?");
406
- let newFileInOssPath = url;
407
- if (index !== -1) {
408
- newFileInOssPath = url.substring(0, url.indexOf("?"))
409
- }
410
- let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
411
- if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
412
- this.$refs.previewPdf.fileName = fileName;
413
- } else {
414
- this.$refs.previewPdf.fileName = '';
415
- }
416
- if (item.tagIds && item.tagIds.length != 0 && this.$refs.previewPdf.newFileType !== 'PPT') {
417
- this.$refs.previewPdf.loading = false
418
- return
419
- }
420
- this.$nextTick(() => {
421
- if (item.source == 'CREATED_BY_ONESELF' || type === 'HTML') {
422
- this.$refs.previewPdf.getBolb(item)
423
- }
424
- this.$refs.previewPdf.loadIframe(item)
425
- this.$refs.previewPdf.showSummary = true;
426
- })
427
- }
428
- })
429
- }
430
- },
431
- open () {
432
- this.$emit('openPreviewDialog')
433
- },
434
- close () {
435
- this.$emit('closePreviewDialog')
436
- },
437
- fileType (url) {
438
- const fileType = url.substring(url.lastIndexOf('.'));
439
- if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc' || fileType === '.mav' || fileType === '.MAV' || fileType == '.mp3' || fileType == '.MP3' || fileType === '.wav') {
440
- return 'VIDEO'
441
- } else if (fileType === '.html') {
442
- return 'HTML'
443
- } else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
444
- return 'IMAGE'
445
- } else {
446
- return 'OTHER'
447
- }
448
- },
449
- srcContentTypeIMG (item) {
450
- let url = item.url || '';
451
- const type = url.substring(url.lastIndexOf('.'));
452
- if (type === '.jpg' || type === '.jpeg' || type === '.png' || type === '.gif') {
453
- this.getSrc(item)
454
- return true
455
- } else {
456
- return false
457
- }
458
- },
459
- getSrc (item) {
460
- // let imgurl = ''
461
- this.$http.post(
462
- '/knowledge-api/temporary-certificate/or-origin?expired=30',
463
- item.url,
464
- {
465
- headers: {
466
- "Content-Type": "application/json",
467
- },
468
- }).then(res => {
469
- console.log(res, '=====');
470
- // imgurl = await res.bodyText
471
- this.$set(item, 'expiredUrl', res.data ? res.data : res.bodyText)
472
- // return res.data
473
- })
474
- // return imgurl
475
- },
476
- lazyLoadKnowledegList () {
477
- if (this.allKnowledgeList.length !== 0) {
478
- let arr = this.allKnowledgeList.splice(0, 5)
479
- if (arr.length < 5) {
480
- this.loadMoreFlag = false
481
- this.msg.content.list = [...this.msg.content.list, ...arr]
482
- return
483
- }
484
- if (this.allKnowledgeList.length == 0) {
485
- this.loadMoreFlag = false
486
- }
487
- this.msg.content.list = [...this.msg.content.list, ...arr]
488
- return
489
- }
490
- },
491
- previewToDialog (flag) {
492
- if (!flag) {
493
- this.$refs.previewPdf.previewKnowledgeId = ""
494
- } else {
495
- this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
496
- }
497
- this.$emit('previewToDialog', flag, this.previewKnowledgeId, this.previewKnowledge)
498
- },
499
- clearKnowledgeId () {
500
- this.previewKnowledgeId = "";
501
- },
502
- recommendQues (item, knowledgeId) {
503
- this.$emit('recommendQues', item, knowledgeId)
504
- },
505
- clickFloder (item) {
506
- this.$emit('clickFloder', item)
507
- },
508
- previewClickFloder () {
509
- let item = null
510
- this.msg.content.list.forEach(element => {
511
- if (element.knowledgeId == this.previewKnowledgeId) {
512
- item = element
513
- }
514
- });
515
- this.$emit('clickFloder', item)
516
- }
517
- }
518
- }
519
- </script>
520
-
521
- <style scoped lang="less">
522
- .answer-docknowledge {
523
- min-width: 100px;
524
- background: #ffffff;
525
-
526
- .answer-docknowledge-header {
527
- .tips {
528
- width: 154px;
529
- height: 22px;
530
- background: #366aff;
531
- border-radius: 5px;
532
- text-align: center;
533
- line-height: 22px;
534
- color: #fff;
535
- font-size: 12px;
536
- margin-bottom: 7px;
537
- }
538
-
539
- .answer-text {
540
- // font-size: 13px;
541
- text-align: left;
542
- line-height: 25px;
543
- padding: 0px 0px 12px 0px;
544
-
545
- .aci-view {
546
- // font-size: 13px;
547
- display: inline-block;
548
- // margin-left: 5px;
549
- color: #366aff;
550
- cursor: pointer;
551
- }
552
- }
553
-
554
- &.bgc {
555
- padding: 10px;
556
- background: #eef1ff;
557
- border-radius: 10px;
558
- margin-bottom: 16px;
559
-
560
- .answer-text {
561
- padding: 0;
562
- }
563
- }
564
-
565
- .answer-kn-image-box {
566
- margin-bottom: 10px;
567
- }
568
- }
569
-
570
-
571
- .ad-list-recognition {
572
- display: flex;
573
- align-items: center;
574
- flex-wrap: wrap;
575
- }
576
-
577
- .libang_list_recognition {
578
- display: flex;
579
- align-items: center;
580
- flex-wrap: wrap;
581
- }
582
-
583
- .ad-list {
584
- .ad-list-cell {
585
- border-top: solid 1px #eeeeee;
586
- padding: 10px 0 10px;
587
-
588
- .alc-title {
589
- display: flex;
590
- flex-wrap: wrap;
591
- align-items: center;
592
- justify-content: space-between;
593
- line-height: 16px;
594
-
595
- .alc-box {
596
- display: flex;
597
- align-items: center;
598
- justify-content: space-between;
599
- // font-size: 12px;
600
- width: 100%;
601
-
602
- .alc-source-left {
603
- display: flex;
604
- align-items: center;
605
-
606
- .source-form {
607
- width: 34px;
608
- flex: none;
609
- color: #a9b3c6;
610
- }
611
- }
612
-
613
- .alc-content-text {
614
- width: 55px;
615
- flex: none;
616
-
617
- .aci-view {
618
- color: #366aff;
619
- cursor: pointer;
620
- }
621
- }
622
-
623
- .alc-title-from {
624
- line-height: 22px;
625
- word-break: break-all !important;
626
- text-align: left;
627
- flex: auto;
628
- display: flex;
629
- justify-content: flex-start;
630
- }
631
- .upload-source {
632
- // flex: none;
633
- }
634
- }
635
-
636
- .alc-box-introduction {
637
- overflow: hidden;
638
- text-overflow: ellipsis;
639
- display: -webkit-box;
640
- -webkit-line-clamp: 3;
641
- -webkit-box-orient: vertical;
642
- margin-top: 10px;
643
- color: #616161;
644
- // font-size: 12px;
645
- line-height: 24px;
646
- text-align: left;
647
-
648
- img {
649
- width: 50px;
650
- height: 50px;
651
- margin: 10px;
652
- cursor: pointer;
653
- }
654
- }
655
-
656
- .alc-box-introduction-previewImage {
657
- width: 100%;
658
- display: block;
659
- overflow: hidden;
660
- text-overflow: ellipsis;
661
- display: -webkit-box;
662
- -webkit-line-clamp: 3;
663
- -webkit-box-orient: vertical;
664
- margin-top: 10px;
665
- color: #616161;
666
- // font-size: 12px;
667
- line-height: 24px;
668
- text-align: left;
669
-
670
- img {
671
- max-width: 300px;
672
- width: 100%;
673
- max-height: 150px;
674
- margin: 10px;
675
- cursor: pointer;
676
- }
677
- }
678
-
679
- .alc-updateTime {
680
- display: flex;
681
- align-items: center;
682
- justify-content: space-between;
683
- font-size: 13px;
684
- width: 100%;
685
- margin-top: 10px;
686
-
687
- .upload-source {
688
- flex: none;
689
- height: 18px;
690
- line-height: 18px;
691
- background: #e9f9f8;
692
- border: 1px solid #aff2cd;
693
- border-radius: 2px;
694
- display: flex;
695
- align-items: center;
696
- justify-content: center;
697
- padding: 0 8px;
698
- color: #00c2bb;
699
- }
700
-
701
- .time {
702
- color: #999999;
703
- margin-left: 10px;
704
- }
705
-
706
- .alc-content-text {
707
- color: #366aff;
708
- cursor: pointer;
709
- }
710
- }
711
-
712
- .alc-title-icon {
713
- margin: 0 2px;
714
- width: 18px;
715
- height: 18px;
716
- flex: none;
717
- }
718
-
719
- .alc-title-updateTime {
720
- text-align: right;
721
- color: #999999;
722
- // font-size: 13px;
723
- }
724
- }
725
-
726
- .alc-content {
727
- .alc-title-updateTime {
728
- margin-top: 6px;
729
- display: block;
730
- text-align: right;
731
- color: #999999;
732
- // font-size: 13px;
733
- }
734
-
735
- .alc-content-text {
736
- margin-bottom: 6px;
737
- width: 55px;
738
- flex: none;
739
-
740
- .aci-view {
741
- display: inline-block;
742
- margin-left: 30px;
743
- color: #366aff;
744
- cursor: pointer;
745
- }
746
- }
747
-
748
- .alc-content-info {
749
- display: flex;
750
- flex-wrap: wrap;
751
- justify-content: space-between;
752
-
753
- .alcc-box {
754
- display: flex;
755
- flex-wrap: wrap;
756
- color: #999999;
757
-
758
- .aci-owner {
759
- margin-right: 20px;
760
- }
761
-
762
- .aci-enterprise {
763
- margin-right: 20px;
764
- }
765
- }
766
- }
767
- }
768
- }
769
-
770
- .ad-list-cell-recognition {
771
- max-width: 270px;
772
- margin-right: 12px;
773
- font-size: 12px;
774
- .alc-source-name {
775
- flex: none;
776
- padding: 3px;
777
- margin-right: 5px;
778
- margin-bottom: 5px;
779
- background: #f2f6ff;
780
- border-radius: 5px;
781
- display: flex;
782
- align-items: center;
783
- justify-content: space-between;
784
- cursor: pointer;
785
-
786
- img {
787
- vertical-align: middle;
788
- // width: 16px;
789
- // height: 16px;
790
- margin: 0 3px 0 5px;
791
- }
792
-
793
- .alc-title-from {
794
- // margin-right: 5px;
795
- max-width: 240px;
796
- overflow: hidden;
797
- text-overflow: ellipsis;
798
- white-space: nowrap;
799
- }
800
-
801
- .upload-source {
802
- margin-right: 5px;
803
- flex: none;
804
- }
805
-
806
- i {
807
- font-size: 12px;
808
- }
809
- }
810
- }
811
-
812
- .ad-loadmore {
813
- width: 100%;
814
- height: 40px;
815
- display: flex;
816
- align-items: center;
817
- justify-content: center;
818
- // background: #FFFFFF;
819
- color: #366aff;
820
- font-size: 14px;
821
- margin-top: 8px;
822
- cursor: pointer;
823
- }
824
- }
825
-
826
- .libang_list {
827
- .libang_list_cell {
828
- border-top: solid 1px #eeeeee;
829
- padding: 10px 0 10px;
830
- font-size: 12px;
831
- .libang_title {
832
- display: flex;
833
- flex-wrap: wrap;
834
- align-items: center;
835
- justify-content: space-between;
836
- line-height: 16px;
837
-
838
- .libang_box {
839
- display: flex;
840
- align-items: center;
841
- justify-content: space-between;
842
- // font-size: 12px;
843
- width: 100%;
844
-
845
- .libang_source_left {
846
- display: flex;
847
- align-items: center;
848
-
849
- .source-form {
850
- width: 34px;
851
- flex: none;
852
- color: #a9b3c6;
853
- }
854
- }
855
-
856
- .alc-content-text {
857
- width: 55px;
858
- flex: none;
859
-
860
- .aci-view {
861
- color: #366aff;
862
- cursor: pointer;
863
- }
864
- }
865
-
866
- .libang_title_from {
867
- line-height: 22px;
868
- word-break: break-all !important;
869
- text-align: left;
870
- flex: auto;
871
- display: flex;
872
- justify-content: flex-start;
873
- }
874
- }
875
-
876
- .libang_box_introduction {
877
- overflow: hidden;
878
- text-overflow: ellipsis;
879
- display: -webkit-box;
880
- -webkit-line-clamp: 3;
881
- -webkit-box-orient: vertical;
882
- margin-top: 10px;
883
- color: #616161;
884
- // font-size: 12px;
885
- line-height: 24px;
886
- text-align: left;
887
-
888
- img {
889
- width: 50px;
890
- height: 50px;
891
- margin: 10px;
892
- cursor: pointer;
893
- }
894
- }
895
-
896
- .libang_box_introduction_previewImage {
897
- overflow: hidden;
898
- text-overflow: ellipsis;
899
- display: -webkit-box;
900
- -webkit-line-clamp: 3;
901
- -webkit-box-orient: vertical;
902
- margin-top: 10px;
903
- color: #616161;
904
- // font-size: 12px;
905
- line-height: 24px;
906
- text-align: left;
907
-
908
- img {
909
- max-width: 300px;
910
- width: 100%;
911
- max-height: 150px;
912
- margin: 10px;
913
- cursor: pointer;
914
- }
915
- }
916
-
917
- .libang_updateTime {
918
- display: flex;
919
- align-items: center;
920
- justify-content: space-between;
921
- font-size: 13px;
922
- width: 100%;
923
- margin-top: 10px;
924
- .libang_updataTime_left {
925
- width: calc(100% - 40px);
926
- display: flex;
927
- align-items: center;
928
- .upload-source {
929
- flex: none;
930
- height: 18px;
931
- line-height: 18px;
932
- background: #e9f9f8;
933
- border: 1px solid #aff2cd;
934
- border-radius: 2px;
935
- display: flex;
936
- align-items: center;
937
- justify-content: center;
938
- padding: 0 8px;
939
- color: #00c2bb;
940
- }
941
- .libang_floder {
942
- width:calc(100% - 90px);
943
- // margin-left: 10px;
944
- overflow: hidden;
945
- text-overflow: ellipsis;
946
- white-space: nowrap;
947
- color: #366aff;
948
- cursor: pointer;
949
- text-align: left;
950
- i {
951
- margin-left: 8px;
952
- }
953
- }
954
- }
955
- .libang_content_text {
956
- color: #366aff;
957
- cursor: pointer;
958
- }
959
- .time {
960
- color: #999999;
961
- margin-left: 10px;
962
- }
963
- }
964
- .alc-title-icon {
965
- margin: 0 2px;
966
- width: 18px;
967
- height: 18px;
968
- flex: none;
969
- }
970
-
971
- .alc-title-updateTime {
972
- text-align: right;
973
- color: #999999;
974
- // font-size: 13px;
975
- }
976
- }
977
-
978
- .alc-content {
979
- .alc-title-updateTime {
980
- margin-top: 6px;
981
- display: block;
982
- text-align: right;
983
- color: #999999;
984
- // font-size: 13px;
985
- }
986
-
987
- .alc-content-text {
988
- margin-bottom: 6px;
989
- width: 55px;
990
- flex: none;
991
-
992
- .aci-view {
993
- display: inline-block;
994
- margin-left: 30px;
995
- color: #366aff;
996
- cursor: pointer;
997
- }
998
- }
999
-
1000
- .alc-content-info {
1001
- display: flex;
1002
- flex-wrap: wrap;
1003
- justify-content: space-between;
1004
-
1005
- .alcc-box {
1006
- display: flex;
1007
- flex-wrap: wrap;
1008
- color: #999999;
1009
-
1010
- .aci-owner {
1011
- margin-right: 20px;
1012
- }
1013
-
1014
- .aci-enterprise {
1015
- margin-right: 20px;
1016
- }
1017
- }
1018
- }
1019
- }
1020
- }
1021
-
1022
- .libang_list_cell_recognition {
1023
- background: #f2f6ff;
1024
- display: flex;
1025
- align-items: center;
1026
- justify-content: space-between;
1027
- padding: 3px;
1028
- margin-right: 5px;
1029
- margin-bottom: 5px;
1030
- border-radius: 5px;
1031
- cursor: pointer;
1032
- font-size: 12px;
1033
-
1034
- .libang_list_cell_left {
1035
- margin-right: 5px;
1036
- .libang_source_name {
1037
- display: flex;
1038
- align-items: center;
1039
- height: 20px;
1040
- margin-bottom: 2px;
1041
- img {
1042
- vertical-align: middle;
1043
- // width: 16px;
1044
- // height: 16px;
1045
- margin: 0 3px;
1046
- }
1047
-
1048
- .libang_title_from {
1049
- max-width: 226px;
1050
- overflow: hidden;
1051
- text-overflow: ellipsis;
1052
- white-space: nowrap;
1053
- line-height: 20px;
1054
- }
1055
- .upload_source {
1056
- flex: none;
1057
- }
1058
- }
1059
- .libang_source_floder {
1060
- max-width: calc(226px - 24px);
1061
- text-align: left;
1062
- color: #366aff;
1063
- overflow: hidden;
1064
- text-overflow: ellipsis;
1065
- white-space: nowrap;
1066
- cursor: pointer;
1067
- .iconfont {
1068
- margin: 0 5px;
1069
- font-size: 14px
1070
- }
1071
- }
1072
- }
1073
- i {
1074
- font-size: 12px;
1075
- }
1076
- }
1077
-
1078
- .ad-loadmore {
1079
- width: 100%;
1080
- height: 40px;
1081
- display: flex;
1082
- align-items: center;
1083
- justify-content: center;
1084
- // background: #FFFFFF;
1085
- color: #366aff;
1086
- font-size: 14px;
1087
- margin-top: 8px;
1088
- cursor: pointer;
1089
- }
1090
- }
1091
- }</style>
1
+ <!--
2
+ isLiBang 字段判断 是否为立邦主体
3
+ 立邦有自己单独的组件分支,但考虑到后期结构改动如果较大改动会不方便,所以还是在推荐知识消息中 在此判断是否是立邦主体。方便后期维护
4
+ -->
5
+ <template>
6
+ <div class="answer-docknowledge">
7
+ <div :class="['answer-docknowledge-header', msg.content.isKnowledgeSummary ? 'bgc' : '']">
8
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您总结生成了以下摘要</div>
9
+ <!-- <div v-if="msg.content.type == 0" class="answer-text">
10
+ <template v-if="msg.content.renderType == 1">
11
+ <p v-html="msg.content.text"></p>
12
+ </template>
13
+ <template v-else>{{ msg.content.text }}</template>
14
+ </div> -->
15
+ <div class="answer-text">
16
+ <template v-if="msg.content.renderType == 1">
17
+ <p v-html="msg.content.text"></p>
18
+ </template>
19
+ <template v-else-if="msg.content.renderType == 2">
20
+ <markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText>
21
+ </template>
22
+ <template v-else>{{ msg.content.text }}</template>
23
+ </div>
24
+ <div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
25
+ <img v-for="(imageItem, imageItemIndex) in msg.content.images"
26
+ style="max-width: 230px;border-radius: 25px;margin-bottom: 15px" :src="imageItem.url"
27
+ :key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
28
+ </div>
29
+ </div>
30
+ <template v-if="!isLiBang">
31
+ <div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
32
+ <template v-if="msg.content.type == 1">
33
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
34
+ :style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
35
+ <div class="alc-title">
36
+ <div class="alc-box">
37
+ <div class="alc-source-left">
38
+ <span class="source-form">出自</span>
39
+ <img class="alc-title-icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
40
+ srcset="">
41
+ <span class="alc-title-from">{{ item.from }}</span>
42
+ </div>
43
+ </div>
44
+ <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="alc-box-introduction">
45
+ </div>
46
+ <div v-else class="alc-box-introduction">
47
+ <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
48
+ </div>
49
+ <div v-if="item.previewImage" class="alc-box-introduction-previewImage">
50
+ <img :src="item.previewImage" alt=""
51
+ @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 @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
66
+ </div>
67
+ <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
68
+ <div v-if="false" class="alc-content-info">
69
+ <div class="alcc-box">
70
+ <span class="aci-owner">所有者: {{ item.owner }}</span>
71
+ <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
72
+ <span class="aci-source">文件来源: {{ item.source }}</span>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </template>
78
+ <template v-if="msg.content.type == 0">
79
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell-recognition">
80
+ <div class="alc-source-name" @click="lookAttach(item.url, item, $event)">
81
+ <img class="alc-title-icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
82
+ <span class="alc-title-from">{{ item.from }}</span>&nbsp;-&nbsp;
83
+ <div v-show="docSource[item.source]" class="upload-source">
84
+ {{ docSource[item.source] }}
85
+ </div>
86
+ <i class="iconfont guoran-right"></i>
87
+ </div>
88
+ </div>
89
+ </template>
90
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
91
+ </div>
92
+ </template>
93
+ <template v-if="isLiBang">
94
+ <div class="libang_list" :class="msg.content.type == 0 ? 'libang_list_recognition' : ''">
95
+ <template v-if="msg.content.type == 1">
96
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="libang_list_cell">
97
+ <div class="libang_title">
98
+ <div class="libang_box">
99
+ <div class="libang_source_left">
100
+ <span class="source-form">出自</span>
101
+ <img class="libang_title_icon" height="24px" width="24px" :src="getIconSrc(item)" alt=""
102
+ srcset="">
103
+ <span class="libang_title_from">{{ item.from }}</span>
104
+ </div>
105
+ </div>
106
+ <div v-html="item.introduction" v-if="!srcContentTypeIMG(item)" class="libang_box_introduction">
107
+ </div>
108
+ <div v-else class="libang_box_introduction">
109
+ <img :src="item.expiredUrl" alt="" @click="lookAttach(item.url, item, $event)">
110
+ </div>
111
+ <div v-if="item.previewImage" class="libang_box_introduction_previewImage">
112
+ <img :src="item.previewImage" alt=""
113
+ @click="lookAttach(item.previewImage, { url: item.previewImage }, $event)">
114
+ </div>
115
+ <div class="libang_updateTime">
116
+ <div class="libang_updataTime_left">
117
+ <div v-show="docSource[item.source]" class="upload-source">
118
+ {{ docSource[item.source] }}
119
+ </div>
120
+ <div class="libang_floder" @click.stop="clickFloder(item)">
121
+ <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
122
+ {{ item.folderName }}
123
+ </div>
124
+ </div>
125
+ <div v-show="item.url" class="libang_content_text">
126
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ <!-- <div class="alc-content" v-if="false">
131
+ <div v-if="msg.content.type == 1" class="alc-content-text">
132
+ {{ item.introduction }}
133
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
134
+ </div>
135
+ <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
136
+ <div v-if="false" class="alc-content-info">
137
+ <div class="alcc-box">
138
+ <span class="aci-owner">所有者: {{ item.owner }}</span>
139
+ <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
140
+ <span class="aci-source">文件来源: {{ item.source }}</span>
141
+ </div>
142
+ </div>
143
+ </div> -->
144
+ </div>
145
+ </template>
146
+ <template v-if="msg.content.type == 0">
147
+ <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
148
+ class="libang_list_cell_recognition" @click="lookAttach(item.url, item, $event)">
149
+ <div class="libang_list_cell_left" >
150
+ <div class="libang_source_name" >
151
+ <img class="libang_title_icon" height="18px" width="18px" :src="getIconSrc(item)" alt srcset />
152
+ <span class="libang_title_from">{{ item.from }}</span>&nbsp;-&nbsp;
153
+ <div v-show="docSource[item.source]" class="upload_source">
154
+ {{ docSource[item.source] }}
155
+ </div>
156
+ </div>
157
+ <div class="libang_source_floder" @click.stop="clickFloder(item)">
158
+ <i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
159
+ {{ item.folderName }}
160
+ </div>
161
+ </div>
162
+ <i class="iconfont guoran-right" @click="lookAttach(item.url, item, $event)"></i>
163
+ </div>
164
+ </template>
165
+ <div class="ad-loadmore" v-if="loadMoreFlag" @click="lazyLoadKnowledegList">查看更多</div>
166
+ </div>
167
+ </template>
168
+
169
+ <previewPdf ref="previewPdf" :url="previewHref" :previewOssPath="previewOssPath" :title="title"
170
+ :folderName="folderName" :folderUrl="folderUrl"
171
+ :sourceFileType="sourceFileType" officePreviewType="pdf" @previewToDialog="previewToDialog"
172
+ @recommendQues="recommendQues" @close="close" @open="open" :isHasChat="isHasChat"
173
+ :knowledgeId="previewKnowledgeId" :isLiBang="isLiBang" @previewClickFloder="previewClickFloder"></previewPdf>
174
+ </div>
175
+ </template>
176
+
177
+ <script>
178
+ /* eslint-disable */
179
+ import previewPdf from "./previewPdf";
180
+ import { isMobile } from "../assets/js/common";
181
+ import markDownText from "./markDownText.vue";
182
+ export default {
183
+ name: "answerDocknowledge",
184
+ components: { previewPdf, markDownText },
185
+ data () {
186
+ return {
187
+ isPC: true,
188
+ previewHref: "",
189
+ sourceFileType: '',
190
+ // docSource: {
191
+ // LOCAL_FILE: "来源于本地文件",
192
+ // CREATED_BY_ONESELF: "来源于自建知识",
193
+ // WECHAT: "来源于微信",
194
+ // AUTO_SYN_FROM_LOCAL_FILE: "自动同步于本地",
195
+ // YUQUE: "来源于语雀",
196
+ // CORP_LOCAL_FILE: '来源于企业知识库',
197
+ // FEISHU: '来源于飞书-云文档'
198
+ // },
199
+ docSource: {
200
+ LOCAL_FILE: "个人知识",
201
+ CREATED_BY_ONESELF: "个人知识",
202
+ WECHAT: "个人知识",
203
+ AUTO_SYN_FROM_LOCAL_FILE: "个人知识",
204
+ YUQUE: "企业知识",
205
+ CORP_LOCAL_FILE: '企业知识',
206
+ FEISHU: '企业知识'
207
+ },
208
+ imageObj: {
209
+ PDF: 'pdf1',
210
+ pdf: 'pdf1',
211
+ TXT: 'txt1',
212
+ txt: 'txt1',
213
+ selfadd: 'selfadd1',
214
+ md: "md2",
215
+ html: 'selfadd1',
216
+ mode: "mode",
217
+ general: 'general',
218
+ word: "word1",
219
+ Word: "word1",
220
+ docx: "word1",
221
+ doc: "word1",
222
+ WORD: "word1",
223
+ Excel: 'excel1',
224
+ EXCEL: 'excel1',
225
+ excel: 'excel1',
226
+ PPT: 'ppt1',
227
+ ppt: 'ppt1',
228
+ pptx: 'ppt1',
229
+ img: "image1",
230
+ image: "image1",
231
+ video: "video",
232
+ audio: 'audio',
233
+ link: "link",
234
+ wechat: "wechat",
235
+ mp4: "video",
236
+ MP4: "video",
237
+ xlsx: "excel1",
238
+ SLSX: "excel1",
239
+ xls: "excel1",
240
+ XLS: "excel1",
241
+ jpg: "image1",
242
+ JPG: "image1",
243
+ jpeg: "image1",
244
+ JPEG: "image1",
245
+ png: "image1",
246
+ PNG: "image1",
247
+ webp: "image1",
248
+ WEBP: "image1",
249
+ gif: "image1",
250
+ GIF: "image1",
251
+ svg: "image1",
252
+ SVG: "image1",
253
+ bmp: "image1",
254
+ BMP: "image1",
255
+ avi: "video",
256
+ AVI: "video",
257
+ mov: "video",
258
+ MOV: "video",
259
+ rmvb: "video",
260
+ RMVB: "video",
261
+ wav: "audio",
262
+ WAV: "audio",
263
+ mp3: "audio",
264
+ MP3: "audio",
265
+ yqhtml: "yqhtml",
266
+ feishuhtml: "feishuhtml"
267
+ },
268
+ allKnowledgeList: [],
269
+ loadMoreFlag: false,
270
+ title: '',
271
+ folderName: '',
272
+ folderUrl: '',
273
+ previewKnowledgeId: "",
274
+ previewKnowledge: {},
275
+ previewOssPath: ""
276
+ }
277
+ },
278
+ props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory"],
279
+ beforeMounted () {
280
+ },
281
+ watch: {
282
+ // msg: {
283
+ // handler (n) {
284
+ // console.log(n, 'answerDocknowledge');
285
+ // n.content.list.forEach(element => {
286
+ // console.log(this.imageObj[element.format], 1111);
287
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
288
+ // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
289
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
290
+ // }
291
+ // });
292
+ // },
293
+ // deep: true,
294
+ // immediate: true
295
+ // }
296
+ },
297
+ created () {
298
+ var system = {};
299
+ system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
300
+ if (system.pingtai) {
301
+ //电脑
302
+ this.isPC = true;
303
+ } else {
304
+ //手机
305
+ this.isPC = false;
306
+ }
307
+ // this.msg.content.list.forEach(element => {
308
+ // console.log(this.imageObj[element.format],1111);
309
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
310
+ // if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
311
+ // element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/wechat.png';
312
+ // }
313
+ // });
314
+ },
315
+ mounted () {
316
+ console.log(this.msg.content, 'this.msg.content');
317
+ // if(this.msg.content.type == 1) {
318
+
319
+ // }
320
+ if (this.msg.content.list && this.msg.content.list.length > 0) {
321
+ this.loadMoreFlag = true
322
+ this.allKnowledgeList = JSON.parse(JSON.stringify(this.msg.content.list))
323
+ // console.log(this.allKnowledgeList.length, 'this.allKnowledgeList');
324
+ this.msg.content.list = []
325
+ this.lazyLoadKnowledegList()
326
+ }
327
+ },
328
+ methods: {
329
+ getIconSrc (element) {
330
+ if ((element.format === "txt" || element.format === "html") && element.source === "WECHAT") {
331
+ return require("../assets/image/filtType/wechat.png")
332
+ } else {
333
+ return require("../assets/image/filtType/" + this.imageObj[element.format] + '.png')
334
+
335
+ }
336
+ },
337
+ //预览图片
338
+ lookAttach (url, item, event) {
339
+ // console.log(item.knowledgeId);
340
+ // this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
341
+ // debugger
342
+ event.preventDefault();
343
+ if (this.isAskLightning == 1 && !this.isApp) {
344
+ window.parent.postMessage({
345
+ data: "bot_preview",
346
+ item: JSON.stringify(item),
347
+ url: url
348
+ }, "*");
349
+ } else {
350
+ // if (isMobile()) {
351
+ // this.$refs.previewPdf.drawer = true;
352
+ // this.$refs.previewPdf.previewShowPopup = false;
353
+ // } else {
354
+ // this.$refs.previewPdf.drawer = false;
355
+ // }
356
+ //该事件是为了打开新的弹框时关闭上一个弹框
357
+ window.parent.postMessage({
358
+ data: "close_drawer"
359
+ }, "*");
360
+ this.title = item.from || item.name
361
+ this.folderName = item.folderName
362
+ this.folderUrl = item.folderUrl
363
+ this.previewKnowledge = item;
364
+ this.previewKnowledgeId = item.knowledgeId
365
+ this.$refs.previewPdf.previewShowPopup = false;
366
+ this.$refs.previewPdf.drawer = false;
367
+ this.previewOssPath = url;
368
+ let index = url.lastIndexOf('?')
369
+ let type = ''
370
+ let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
371
+ if (index !== -1) {
372
+ url = url.substring(0, index)
373
+ type = this.fileType(url)
374
+ } else {
375
+ type = this.fileType(url)
376
+ }
377
+ if (type === '' || type === 'OTHER' || type == 'IMAGE') {
378
+ httpUrl = httpUrl += '?needEncrypt=true'
379
+ } else {
380
+ httpUrl = httpUrl += '?needEncrypt=false'
381
+ }
382
+ this.$refs.previewPdf.getOssPath(url);
383
+ this.$http.post(httpUrl, {
384
+ "fileInOssPath": url
385
+ }).then(res => {
386
+ if (res.data.code == '0') {
387
+ this.previewHref = res.data.data;
388
+ this.sourceFileType = url.substring(url.lastIndexOf('.'))
389
+ let isOhmPc = sessionStorage.getItem('isOhmPc')
390
+ if (isMobile() || isOhmPc == 'true') {
391
+ this.$refs.previewPdf.drawer = true;
392
+ this.$refs.previewPdf.previewShowPopup = true;
393
+ } else {
394
+ this.$refs.previewPdf.previewShowPopup = false;
395
+ this.$refs.previewPdf.drawer = true;
396
+ }
397
+ //聊一聊按钮的选中状态
398
+ if (this.activeKnowledgeId == item.knowledgeId) {
399
+ this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
400
+ } else {
401
+ this.$refs.previewPdf.previewKnowledgeId = ""
402
+ }
403
+ this.$refs.previewPdf.fileType = type
404
+ this.$refs.previewPdf.tagIds = item.tagIds;
405
+ if (item.tagIds && item.tagIds.length > 0){
406
+ this.$refs.previewPdf.getLocationInfo();
407
+ }
408
+ this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
409
+ let index = url.indexOf("?");
410
+ let newFileInOssPath = url;
411
+ if (index !== -1) {
412
+ newFileInOssPath = url.substring(0, url.indexOf("?"))
413
+ }
414
+ let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
415
+ if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
416
+ this.$refs.previewPdf.fileName = fileName;
417
+ } else {
418
+ this.$refs.previewPdf.fileName = '';
419
+ }
420
+ if (item.tagIds && item.tagIds.length != 0 && this.$refs.previewPdf.newFileType !== 'PPT') {
421
+ this.$refs.previewPdf.loading = false
422
+ return
423
+ }
424
+ this.$nextTick(() => {
425
+ if (item.source == 'CREATED_BY_ONESELF' || type === 'HTML') {
426
+ this.$refs.previewPdf.getBolb(item)
427
+ }
428
+ this.$refs.previewPdf.loadIframe(item)
429
+ this.$refs.previewPdf.showSummary = true;
430
+ })
431
+ }
432
+ })
433
+ }
434
+ },
435
+ open () {
436
+ this.$emit('openPreviewDialog')
437
+ },
438
+ close () {
439
+ this.$emit('closePreviewDialog')
440
+ },
441
+ fileType (url) {
442
+ const fileType = url.substring(url.lastIndexOf('.'));
443
+ if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc' || fileType === '.mav' || fileType === '.MAV' || fileType == '.mp3' || fileType == '.MP3' || fileType === '.wav') {
444
+ return 'VIDEO'
445
+ } else if (fileType === '.html') {
446
+ return 'HTML'
447
+ } else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
448
+ return 'IMAGE'
449
+ } else {
450
+ return 'OTHER'
451
+ }
452
+ },
453
+ srcContentTypeIMG (item) {
454
+ let url = item.url || '';
455
+ const type = url.substring(url.lastIndexOf('.'));
456
+ if (type === '.jpg' || type === '.jpeg' || type === '.png' || type === '.gif') {
457
+ this.getSrc(item)
458
+ return true
459
+ } else {
460
+ return false
461
+ }
462
+ },
463
+ getSrc (item) {
464
+ // let imgurl = ''
465
+ this.$http.post(
466
+ '/knowledge-api/temporary-certificate/or-origin?expired=30',
467
+ item.url,
468
+ {
469
+ headers: {
470
+ "Content-Type": "application/json",
471
+ },
472
+ }).then(res => {
473
+ console.log(res, '=====');
474
+ // imgurl = await res.bodyText
475
+ this.$set(item, 'expiredUrl', res.data ? res.data : res.bodyText)
476
+ // return res.data
477
+ })
478
+ // return imgurl
479
+ },
480
+ lazyLoadKnowledegList () {
481
+ if (this.allKnowledgeList.length !== 0) {
482
+ let arr = this.allKnowledgeList.splice(0, 5)
483
+ if (arr.length < 5) {
484
+ this.loadMoreFlag = false
485
+ this.msg.content.list = [...this.msg.content.list, ...arr]
486
+ return
487
+ }
488
+ if (this.allKnowledgeList.length == 0) {
489
+ this.loadMoreFlag = false
490
+ }
491
+ this.msg.content.list = [...this.msg.content.list, ...arr]
492
+ return
493
+ }
494
+ },
495
+ previewToDialog (flag) {
496
+ if (!flag) {
497
+ this.$refs.previewPdf.previewKnowledgeId = ""
498
+ } else {
499
+ this.$refs.previewPdf.previewKnowledgeId = this.previewKnowledgeId
500
+ }
501
+ this.$emit('previewToDialog', flag, this.previewKnowledgeId, this.previewKnowledge)
502
+ },
503
+ clearKnowledgeId () {
504
+ this.previewKnowledgeId = "";
505
+ },
506
+ recommendQues (item, knowledgeId) {
507
+ this.$emit('recommendQues', item, knowledgeId)
508
+ },
509
+ clickFloder (item) {
510
+ this.$emit('clickFloder', item)
511
+ },
512
+ previewClickFloder () {
513
+ let item = null
514
+ this.msg.content.list.forEach(element => {
515
+ if (element.knowledgeId == this.previewKnowledgeId) {
516
+ item = element
517
+ }
518
+ });
519
+ this.$emit('clickFloder', item)
520
+ }
521
+ }
522
+ }
523
+ </script>
524
+
525
+ <style scoped lang="less">
526
+ .answer-docknowledge {
527
+ min-width: 100px;
528
+ background: #ffffff;
529
+
530
+ .answer-docknowledge-header {
531
+ .tips {
532
+ width: 154px;
533
+ height: 22px;
534
+ background: #366aff;
535
+ border-radius: 5px;
536
+ text-align: center;
537
+ line-height: 22px;
538
+ color: #fff;
539
+ font-size: 12px;
540
+ margin-bottom: 7px;
541
+ }
542
+
543
+ .answer-text {
544
+ // font-size: 13px;
545
+ text-align: left;
546
+ line-height: 25px;
547
+ padding: 0px 0px 12px 0px;
548
+
549
+ .aci-view {
550
+ // font-size: 13px;
551
+ display: inline-block;
552
+ // margin-left: 5px;
553
+ color: #366aff;
554
+ cursor: pointer;
555
+ }
556
+ }
557
+
558
+ &.bgc {
559
+ padding: 10px;
560
+ background: #eef1ff;
561
+ border-radius: 10px;
562
+ margin-bottom: 16px;
563
+
564
+ .answer-text {
565
+ padding: 0;
566
+ }
567
+ }
568
+
569
+ .answer-kn-image-box {
570
+ margin-bottom: 10px;
571
+ }
572
+ }
573
+
574
+
575
+ .ad-list-recognition {
576
+ display: flex;
577
+ align-items: center;
578
+ flex-wrap: wrap;
579
+ }
580
+
581
+ .libang_list_recognition {
582
+ display: flex;
583
+ align-items: center;
584
+ flex-wrap: wrap;
585
+ }
586
+
587
+ .ad-list {
588
+ .ad-list-cell {
589
+ border-top: solid 1px #eeeeee;
590
+ padding: 10px 0 10px;
591
+
592
+ .alc-title {
593
+ display: flex;
594
+ flex-wrap: wrap;
595
+ align-items: center;
596
+ justify-content: space-between;
597
+ line-height: 16px;
598
+
599
+ .alc-box {
600
+ display: flex;
601
+ align-items: center;
602
+ justify-content: space-between;
603
+ // font-size: 12px;
604
+ width: 100%;
605
+
606
+ .alc-source-left {
607
+ display: flex;
608
+ align-items: center;
609
+
610
+ .source-form {
611
+ width: 34px;
612
+ flex: none;
613
+ color: #a9b3c6;
614
+ }
615
+ }
616
+
617
+ .alc-content-text {
618
+ width: 55px;
619
+ flex: none;
620
+
621
+ .aci-view {
622
+ color: #366aff;
623
+ cursor: pointer;
624
+ }
625
+ }
626
+
627
+ .alc-title-from {
628
+ line-height: 22px;
629
+ word-break: break-all !important;
630
+ text-align: left;
631
+ flex: auto;
632
+ display: flex;
633
+ justify-content: flex-start;
634
+ }
635
+ .upload-source {
636
+ // flex: none;
637
+ }
638
+ }
639
+
640
+ .alc-box-introduction {
641
+ overflow: hidden;
642
+ text-overflow: ellipsis;
643
+ display: -webkit-box;
644
+ -webkit-line-clamp: 3;
645
+ -webkit-box-orient: vertical;
646
+ margin-top: 10px;
647
+ color: #616161;
648
+ // font-size: 12px;
649
+ line-height: 24px;
650
+ text-align: left;
651
+
652
+ img {
653
+ width: 50px;
654
+ height: 50px;
655
+ margin: 10px;
656
+ cursor: pointer;
657
+ }
658
+ }
659
+
660
+ .alc-box-introduction-previewImage {
661
+ width: 100%;
662
+ display: block;
663
+ overflow: hidden;
664
+ text-overflow: ellipsis;
665
+ display: -webkit-box;
666
+ -webkit-line-clamp: 3;
667
+ -webkit-box-orient: vertical;
668
+ margin-top: 10px;
669
+ color: #616161;
670
+ // font-size: 12px;
671
+ line-height: 24px;
672
+ text-align: left;
673
+
674
+ img {
675
+ max-width: 300px;
676
+ width: 100%;
677
+ max-height: 150px;
678
+ margin: 10px;
679
+ cursor: pointer;
680
+ }
681
+ }
682
+
683
+ .alc-updateTime {
684
+ display: flex;
685
+ align-items: center;
686
+ justify-content: space-between;
687
+ font-size: 13px;
688
+ width: 100%;
689
+ margin-top: 10px;
690
+
691
+ .upload-source {
692
+ flex: none;
693
+ height: 18px;
694
+ line-height: 18px;
695
+ background: #e9f9f8;
696
+ border: 1px solid #aff2cd;
697
+ border-radius: 2px;
698
+ display: flex;
699
+ align-items: center;
700
+ justify-content: center;
701
+ padding: 0 8px;
702
+ color: #00c2bb;
703
+ }
704
+
705
+ .time {
706
+ color: #999999;
707
+ margin-left: 10px;
708
+ }
709
+
710
+ .alc-content-text {
711
+ color: #366aff;
712
+ cursor: pointer;
713
+ }
714
+ }
715
+
716
+ .alc-title-icon {
717
+ margin: 0 2px;
718
+ width: 18px;
719
+ height: 18px;
720
+ flex: none;
721
+ }
722
+
723
+ .alc-title-updateTime {
724
+ text-align: right;
725
+ color: #999999;
726
+ // font-size: 13px;
727
+ }
728
+ }
729
+
730
+ .alc-content {
731
+ .alc-title-updateTime {
732
+ margin-top: 6px;
733
+ display: block;
734
+ text-align: right;
735
+ color: #999999;
736
+ // font-size: 13px;
737
+ }
738
+
739
+ .alc-content-text {
740
+ margin-bottom: 6px;
741
+ width: 55px;
742
+ flex: none;
743
+
744
+ .aci-view {
745
+ display: inline-block;
746
+ margin-left: 30px;
747
+ color: #366aff;
748
+ cursor: pointer;
749
+ }
750
+ }
751
+
752
+ .alc-content-info {
753
+ display: flex;
754
+ flex-wrap: wrap;
755
+ justify-content: space-between;
756
+
757
+ .alcc-box {
758
+ display: flex;
759
+ flex-wrap: wrap;
760
+ color: #999999;
761
+
762
+ .aci-owner {
763
+ margin-right: 20px;
764
+ }
765
+
766
+ .aci-enterprise {
767
+ margin-right: 20px;
768
+ }
769
+ }
770
+ }
771
+ }
772
+ }
773
+
774
+ .ad-list-cell-recognition {
775
+ max-width: 270px;
776
+ margin-right: 12px;
777
+ font-size: 12px;
778
+ .alc-source-name {
779
+ flex: none;
780
+ padding: 3px;
781
+ margin-right: 5px;
782
+ margin-bottom: 5px;
783
+ background: #f2f6ff;
784
+ border-radius: 5px;
785
+ display: flex;
786
+ align-items: center;
787
+ justify-content: space-between;
788
+ cursor: pointer;
789
+
790
+ img {
791
+ vertical-align: middle;
792
+ // width: 16px;
793
+ // height: 16px;
794
+ margin: 0 3px 0 5px;
795
+ }
796
+
797
+ .alc-title-from {
798
+ // margin-right: 5px;
799
+ max-width: 240px;
800
+ overflow: hidden;
801
+ text-overflow: ellipsis;
802
+ white-space: nowrap;
803
+ }
804
+
805
+ .upload-source {
806
+ margin-right: 5px;
807
+ flex: none;
808
+ }
809
+
810
+ i {
811
+ font-size: 12px;
812
+ }
813
+ }
814
+ }
815
+
816
+ .ad-loadmore {
817
+ width: 100%;
818
+ height: 40px;
819
+ display: flex;
820
+ align-items: center;
821
+ justify-content: center;
822
+ // background: #FFFFFF;
823
+ color: #366aff;
824
+ font-size: 14px;
825
+ margin-top: 8px;
826
+ cursor: pointer;
827
+ }
828
+ }
829
+
830
+ .libang_list {
831
+ .libang_list_cell {
832
+ border-top: solid 1px #eeeeee;
833
+ padding: 10px 0 10px;
834
+ font-size: 12px;
835
+ .libang_title {
836
+ display: flex;
837
+ flex-wrap: wrap;
838
+ align-items: center;
839
+ justify-content: space-between;
840
+ line-height: 16px;
841
+
842
+ .libang_box {
843
+ display: flex;
844
+ align-items: center;
845
+ justify-content: space-between;
846
+ // font-size: 12px;
847
+ width: 100%;
848
+
849
+ .libang_source_left {
850
+ display: flex;
851
+ align-items: center;
852
+
853
+ .source-form {
854
+ width: 34px;
855
+ flex: none;
856
+ color: #a9b3c6;
857
+ }
858
+ }
859
+
860
+ .alc-content-text {
861
+ width: 55px;
862
+ flex: none;
863
+
864
+ .aci-view {
865
+ color: #366aff;
866
+ cursor: pointer;
867
+ }
868
+ }
869
+
870
+ .libang_title_from {
871
+ line-height: 22px;
872
+ word-break: break-all !important;
873
+ text-align: left;
874
+ flex: auto;
875
+ display: flex;
876
+ justify-content: flex-start;
877
+ }
878
+ }
879
+
880
+ .libang_box_introduction {
881
+ overflow: hidden;
882
+ text-overflow: ellipsis;
883
+ display: -webkit-box;
884
+ -webkit-line-clamp: 3;
885
+ -webkit-box-orient: vertical;
886
+ margin-top: 10px;
887
+ color: #616161;
888
+ // font-size: 12px;
889
+ line-height: 24px;
890
+ text-align: left;
891
+
892
+ img {
893
+ width: 50px;
894
+ height: 50px;
895
+ margin: 10px;
896
+ cursor: pointer;
897
+ }
898
+ }
899
+
900
+ .libang_box_introduction_previewImage {
901
+ overflow: hidden;
902
+ text-overflow: ellipsis;
903
+ display: -webkit-box;
904
+ -webkit-line-clamp: 3;
905
+ -webkit-box-orient: vertical;
906
+ margin-top: 10px;
907
+ color: #616161;
908
+ // font-size: 12px;
909
+ line-height: 24px;
910
+ text-align: left;
911
+
912
+ img {
913
+ max-width: 300px;
914
+ width: 100%;
915
+ max-height: 150px;
916
+ margin: 10px;
917
+ cursor: pointer;
918
+ }
919
+ }
920
+
921
+ .libang_updateTime {
922
+ display: flex;
923
+ align-items: center;
924
+ justify-content: space-between;
925
+ font-size: 13px;
926
+ width: 100%;
927
+ margin-top: 10px;
928
+ .libang_updataTime_left {
929
+ width: calc(100% - 40px);
930
+ display: flex;
931
+ align-items: center;
932
+ .upload-source {
933
+ flex: none;
934
+ height: 18px;
935
+ line-height: 18px;
936
+ background: #e9f9f8;
937
+ border: 1px solid #aff2cd;
938
+ border-radius: 2px;
939
+ display: flex;
940
+ align-items: center;
941
+ justify-content: center;
942
+ padding: 0 8px;
943
+ color: #00c2bb;
944
+ }
945
+ .libang_floder {
946
+ width:calc(100% - 90px);
947
+ // margin-left: 10px;
948
+ overflow: hidden;
949
+ text-overflow: ellipsis;
950
+ white-space: nowrap;
951
+ color: #366aff;
952
+ cursor: pointer;
953
+ text-align: left;
954
+ i {
955
+ margin-left: 8px;
956
+ }
957
+ }
958
+ }
959
+ .libang_content_text {
960
+ color: #366aff;
961
+ cursor: pointer;
962
+ }
963
+ .time {
964
+ color: #999999;
965
+ margin-left: 10px;
966
+ }
967
+ }
968
+ .alc-title-icon {
969
+ margin: 0 2px;
970
+ width: 18px;
971
+ height: 18px;
972
+ flex: none;
973
+ }
974
+
975
+ .alc-title-updateTime {
976
+ text-align: right;
977
+ color: #999999;
978
+ // font-size: 13px;
979
+ }
980
+ }
981
+
982
+ .alc-content {
983
+ .alc-title-updateTime {
984
+ margin-top: 6px;
985
+ display: block;
986
+ text-align: right;
987
+ color: #999999;
988
+ // font-size: 13px;
989
+ }
990
+
991
+ .alc-content-text {
992
+ margin-bottom: 6px;
993
+ width: 55px;
994
+ flex: none;
995
+
996
+ .aci-view {
997
+ display: inline-block;
998
+ margin-left: 30px;
999
+ color: #366aff;
1000
+ cursor: pointer;
1001
+ }
1002
+ }
1003
+
1004
+ .alc-content-info {
1005
+ display: flex;
1006
+ flex-wrap: wrap;
1007
+ justify-content: space-between;
1008
+
1009
+ .alcc-box {
1010
+ display: flex;
1011
+ flex-wrap: wrap;
1012
+ color: #999999;
1013
+
1014
+ .aci-owner {
1015
+ margin-right: 20px;
1016
+ }
1017
+
1018
+ .aci-enterprise {
1019
+ margin-right: 20px;
1020
+ }
1021
+ }
1022
+ }
1023
+ }
1024
+ }
1025
+
1026
+ .libang_list_cell_recognition {
1027
+ background: #f2f6ff;
1028
+ display: flex;
1029
+ align-items: center;
1030
+ justify-content: space-between;
1031
+ padding: 3px;
1032
+ margin-right: 5px;
1033
+ margin-bottom: 5px;
1034
+ border-radius: 5px;
1035
+ cursor: pointer;
1036
+ font-size: 12px;
1037
+
1038
+ .libang_list_cell_left {
1039
+ margin-right: 5px;
1040
+ .libang_source_name {
1041
+ display: flex;
1042
+ align-items: center;
1043
+ height: 20px;
1044
+ margin-bottom: 2px;
1045
+ img {
1046
+ vertical-align: middle;
1047
+ // width: 16px;
1048
+ // height: 16px;
1049
+ margin: 0 3px;
1050
+ }
1051
+
1052
+ .libang_title_from {
1053
+ max-width: 226px;
1054
+ overflow: hidden;
1055
+ text-overflow: ellipsis;
1056
+ white-space: nowrap;
1057
+ line-height: 20px;
1058
+ }
1059
+ .upload_source {
1060
+ flex: none;
1061
+ }
1062
+ }
1063
+ .libang_source_floder {
1064
+ max-width: calc(226px - 24px);
1065
+ text-align: left;
1066
+ color: #366aff;
1067
+ overflow: hidden;
1068
+ text-overflow: ellipsis;
1069
+ white-space: nowrap;
1070
+ cursor: pointer;
1071
+ .iconfont {
1072
+ margin: 0 5px;
1073
+ font-size: 14px
1074
+ }
1075
+ }
1076
+ }
1077
+ i {
1078
+ font-size: 12px;
1079
+ }
1080
+ }
1081
+
1082
+ .ad-loadmore {
1083
+ width: 100%;
1084
+ height: 40px;
1085
+ display: flex;
1086
+ align-items: center;
1087
+ justify-content: center;
1088
+ // background: #FFFFFF;
1089
+ color: #366aff;
1090
+ font-size: 14px;
1091
+ margin-top: 8px;
1092
+ cursor: pointer;
1093
+ }
1094
+ }
1095
+ }</style>