askbot-dragon 1.6.76-beta → 1.6.78-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.
- package/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +55 -55
- package/public/index.html +72 -72
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/common.js +252 -252
- package/src/assets/js/hammer.js +100 -100
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +199 -199
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/components/ActionAlertIframe.vue +177 -177
- package/src/components/AiGuide.vue +466 -466
- package/src/components/AnswerDocknowledge.vue +1059 -1059
- package/src/components/AnswerVoice.vue +285 -285
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4934 -4934
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +351 -351
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +186 -186
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +162 -162
- package/src/components/assetDetails.vue +378 -378
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +355 -355
- package/src/components/attachmentPreview.vue +90 -90
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +351 -351
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3572 -3572
- package/src/components/intelligentSummary.vue +227 -227
- package/src/components/kkview.vue +1138 -1138
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +201 -201
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/newPdfPosition.vue +877 -877
- package/src/components/pdfPosition.vue +1508 -1506
- package/src/components/popup.vue +227 -227
- package/src/components/previewDoc.vue +247 -247
- package/src/components/previewPdf.vue +791 -757
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +80 -80
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/senderMessagePlatform.vue +50 -50
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +294 -294
- package/src/components/utils/AliyunIssUtil.js +81 -81
- package/src/components/utils/ckeditor.js +174 -174
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/components/welcomeKnowledgeFile.vue +340 -340
- package/src/components/welcomeLlmCard.vue +140 -140
- package/src/components/welcomeSuggest.vue +97 -97
- package/src/main.js +57 -57
- package/vue.config.js +54 -54
|
@@ -1,757 +1,791 @@
|
|
|
1
|
-
|
|
2
|
-
<!-- preview-pdf
|
|
3
|
-
组件主要负责 知识项目中 文件的预览,携带定位信息参数 tagIds tagId 的会解析文件增加定位功能
|
|
4
|
-
不携带定位信息的 也是走 kkview项目预览
|
|
5
|
-
另外增加了在知识项目中预览当前文件的一些功能
|
|
6
|
-
-->
|
|
7
|
-
<template>
|
|
8
|
-
<el-drawer title="我是标题" :visible.sync="drawer" :with-header="false" :append-to-body="true" :destroy-on-close="true"
|
|
9
|
-
:modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
10
|
-
custom-class="pdf-preview-drawer" v-if="drawer">
|
|
11
|
-
<!-- v-else-if="drawer" -->
|
|
12
|
-
<div class="drawer-header" :class="isLiBang ? 'libang_head' : ''" v-if="!isPc">
|
|
13
|
-
<div class="header-btn btn_position">
|
|
14
|
-
<div class="onload_btn" v-if="isDownload || true" @click="downLoad">
|
|
15
|
-
下载
|
|
16
|
-
</div>
|
|
17
|
-
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
@
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
import
|
|
125
|
-
import {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
//
|
|
233
|
-
//
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
//
|
|
265
|
-
|
|
266
|
-
url +=
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
//
|
|
284
|
-
|
|
285
|
-
//
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
//
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
},
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
this
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
//
|
|
362
|
-
//
|
|
363
|
-
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
height:
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
height: calc(100% -
|
|
743
|
-
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.
|
|
747
|
-
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
1
|
+
|
|
2
|
+
<!-- preview-pdf
|
|
3
|
+
组件主要负责 知识项目中 文件的预览,携带定位信息参数 tagIds tagId 的会解析文件增加定位功能
|
|
4
|
+
不携带定位信息的 也是走 kkview项目预览
|
|
5
|
+
另外增加了在知识项目中预览当前文件的一些功能
|
|
6
|
+
-->
|
|
7
|
+
<template>
|
|
8
|
+
<el-drawer title="我是标题" :visible.sync="drawer" :with-header="false" :append-to-body="true" :destroy-on-close="true"
|
|
9
|
+
:modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
10
|
+
custom-class="pdf-preview-drawer" v-if="drawer">
|
|
11
|
+
<!-- v-else-if="drawer" -->
|
|
12
|
+
<div class="drawer-header" :class="isLiBang ? 'libang_head' : ''" v-if="!isPc">
|
|
13
|
+
<div class="header-btn btn_position">
|
|
14
|
+
<div class="onload_btn" v-if="isDownload || true" @click="downLoad">
|
|
15
|
+
下载
|
|
16
|
+
</div>
|
|
17
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun" v-if="isHasChat || formKnowledgeManagement">
|
|
18
|
+
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
19
|
+
<span>智能摘要</span>
|
|
20
|
+
</div>
|
|
21
|
+
<template v-if="isHasChat">
|
|
22
|
+
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
23
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
24
|
+
聊一聊
|
|
25
|
+
</div>
|
|
26
|
+
<div class="chat chat_active" @click="previewToDialog(false)" v-else>
|
|
27
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
28
|
+
聊一聊
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="header_title">
|
|
33
|
+
<div class="header_close">
|
|
34
|
+
<span>
|
|
35
|
+
{{ title ? title : "查看详情" }}
|
|
36
|
+
</span>
|
|
37
|
+
<section @click="close">
|
|
38
|
+
<i class="iconfont guoran-shanchu"></i>
|
|
39
|
+
</section>
|
|
40
|
+
</div>
|
|
41
|
+
<p v-if="folderName && isLiBang" class="header_floder" @click="clickFloder">
|
|
42
|
+
<i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
|
|
43
|
+
{{ folderName }}
|
|
44
|
+
<i v-if="folderUrl" class="iconfont guoran-tongyichicun-dianjichakantuli"></i>
|
|
45
|
+
</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="drawer-header" :class="isLiBang && folderName ? 'libang_head' : ''" v-else>
|
|
49
|
+
<div class="header_title">
|
|
50
|
+
<div :class="isLiBang && folderName ? 'header_close' : 'header_top'">
|
|
51
|
+
<span>
|
|
52
|
+
{{ title ? title : "查看详情" }}
|
|
53
|
+
</span>
|
|
54
|
+
<div class="header-btn">
|
|
55
|
+
<div class="onload_btn" v-if="isDownload || true" @click="downLoad">
|
|
56
|
+
下载
|
|
57
|
+
</div>
|
|
58
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
59
|
+
v-if="isHasChat || true">
|
|
60
|
+
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
61
|
+
<span>智能摘要</span>
|
|
62
|
+
</div>
|
|
63
|
+
<template v-if="isHasChat || true">
|
|
64
|
+
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
65
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
66
|
+
聊一聊
|
|
67
|
+
</div>
|
|
68
|
+
<div class="chat chat_active" @click="previewToDialog(false)" v-else>
|
|
69
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
70
|
+
聊一聊
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
<section @click="close">
|
|
74
|
+
<i class="iconfont guoran-shanchu"></i>
|
|
75
|
+
</section>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<p v-if="folderName && isLiBang" class="header_floder" @click="clickFloder">
|
|
79
|
+
<i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
|
|
80
|
+
{{ folderName }}
|
|
81
|
+
<i v-if="folderUrl" class="iconfont guoran-tongyichicun-dianjichakantuli"></i>
|
|
82
|
+
</p>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div id="drawer_content_pre" :class="isLiBang && folderName ? 'libang_content_pre' : ''">
|
|
86
|
+
<!-- :style="{marginTop:tagIds && tagIds.length != 0 && isPc ? '50px' : ''}" -->
|
|
87
|
+
<intelligent-summary v-show="showSummary && (isHasChat || formKnowledgeManagement)" :tagIds="tagIds" :knowledgeId="knowledgeId"
|
|
88
|
+
@closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
89
|
+
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
90
|
+
<div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer">
|
|
91
|
+
<pdfPosition :tagIds="tagIds" :isMessageRecord="isMessageRecord" :textWatermarkStr="textWatermarkStr">
|
|
92
|
+
</pdfPosition>
|
|
93
|
+
</div>
|
|
94
|
+
<template v-else>
|
|
95
|
+
<div v-if="fileType == 'VIDEO'" style="width: 100%;">
|
|
96
|
+
<video :src="url" controls width="100%;" height="98%"></video>
|
|
97
|
+
</div>
|
|
98
|
+
<div v-else-if="fileType == 'HTML'" style="width: 100%;">
|
|
99
|
+
<div class="preview_iframe_html" style="text-algin:left" v-html="fileText"></div>
|
|
100
|
+
</div>
|
|
101
|
+
<template v-else-if="url.includes('https://www') || url.includes('http://www')">
|
|
102
|
+
<iframe class="preview_iframe" :src="url" width="100%" height="100%" scrolling="100%" frameborder="no"
|
|
103
|
+
border="0"></iframe>
|
|
104
|
+
</template>
|
|
105
|
+
<template v-else>
|
|
106
|
+
<iframe class="preview_iframe_kk" :src="previewUrl" style="border:none;"
|
|
107
|
+
:style="{ height: iframeHeight }"></iframe>
|
|
108
|
+
</template>
|
|
109
|
+
</template>
|
|
110
|
+
<!-- <div class="mobile_onload_btn" v-if="isDownload && !isPc" @click="downLoad">
|
|
111
|
+
下载
|
|
112
|
+
</div> -->
|
|
113
|
+
</div>
|
|
114
|
+
<div class="loading_img" v-show="loading">
|
|
115
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif" alt="">
|
|
116
|
+
</div>
|
|
117
|
+
<div id="text">
|
|
118
|
+
{{ copy }}
|
|
119
|
+
</div>
|
|
120
|
+
</el-drawer>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<script>
|
|
124
|
+
import pdfPosition from './pdfPosition.vue'
|
|
125
|
+
import { zoomElement } from '../assets/js/hammer'
|
|
126
|
+
import IntelligentSummary from "./intelligentSummary";
|
|
127
|
+
import { isMobile } from "../assets/js/common";
|
|
128
|
+
import { Toast } from 'vant';
|
|
129
|
+
export default {
|
|
130
|
+
data () {
|
|
131
|
+
return {
|
|
132
|
+
previewShowPopup: false,
|
|
133
|
+
fileText: '',
|
|
134
|
+
fileType: "",
|
|
135
|
+
isPc: false,
|
|
136
|
+
drawer: false,
|
|
137
|
+
tagIds: [],
|
|
138
|
+
// '6454aa1a70573a6ead6f0f7d', '6454aa1a70573a6ead6f0f81',
|
|
139
|
+
loading: true,
|
|
140
|
+
fileName:'',
|
|
141
|
+
previewKnowledgeId:"",
|
|
142
|
+
showSummary:true,
|
|
143
|
+
iframeHeight:"100%",
|
|
144
|
+
isDownload: false,
|
|
145
|
+
textWatermarkStr:"",
|
|
146
|
+
copy:''}
|
|
147
|
+
},
|
|
148
|
+
mounted() {
|
|
149
|
+
window.addEventListener('message',this.handleIframeMessage,false);
|
|
150
|
+
this.isPcFun();
|
|
151
|
+
},
|
|
152
|
+
props:{
|
|
153
|
+
url:{
|
|
154
|
+
type: String,
|
|
155
|
+
required: true,
|
|
156
|
+
},
|
|
157
|
+
officePreviewType:{
|
|
158
|
+
type: String,
|
|
159
|
+
default: ''
|
|
160
|
+
},
|
|
161
|
+
isMessageRecord:{
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default:false,
|
|
164
|
+
},
|
|
165
|
+
sourceFileType:{
|
|
166
|
+
type: String,
|
|
167
|
+
default: '',
|
|
168
|
+
},
|
|
169
|
+
title: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: ''
|
|
172
|
+
},
|
|
173
|
+
isHasChat:{
|
|
174
|
+
type:Boolean,
|
|
175
|
+
default:false
|
|
176
|
+
},
|
|
177
|
+
knowledgeId:{
|
|
178
|
+
type: String,
|
|
179
|
+
default: '',
|
|
180
|
+
},
|
|
181
|
+
previewOssPath:{
|
|
182
|
+
type: String,
|
|
183
|
+
default: '',
|
|
184
|
+
},
|
|
185
|
+
folderName: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: '',
|
|
188
|
+
},
|
|
189
|
+
folderUrl: {
|
|
190
|
+
type: String,
|
|
191
|
+
default: '',
|
|
192
|
+
},
|
|
193
|
+
isLiBang: {
|
|
194
|
+
type: Boolean,
|
|
195
|
+
default: false
|
|
196
|
+
},
|
|
197
|
+
formKnowledgeManagement:{
|
|
198
|
+
type: Boolean,
|
|
199
|
+
default: false
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
components: {
|
|
203
|
+
IntelligentSummary,
|
|
204
|
+
pdfPosition
|
|
205
|
+
},
|
|
206
|
+
watch: {
|
|
207
|
+
drawer (value) {
|
|
208
|
+
if (value) {
|
|
209
|
+
this.$emit('open')
|
|
210
|
+
this.$nextTick(() => {
|
|
211
|
+
if (this.tagIds && this.tagIds.length != 0){
|
|
212
|
+
zoomElement(document.getElementById('pdf_container_view'))
|
|
213
|
+
}
|
|
214
|
+
})
|
|
215
|
+
} else {
|
|
216
|
+
this.$emit('close')
|
|
217
|
+
}
|
|
218
|
+
setTimeout(() => {
|
|
219
|
+
let previewIframe = document.getElementsByClassName('preview_iframe')
|
|
220
|
+
Array.from(previewIframe).forEach(item =>{
|
|
221
|
+
item.onload = () =>{
|
|
222
|
+
console.debug('previewIframe 106',previewIframe,this.drawer)
|
|
223
|
+
item.style.backgroundImage = 'none'
|
|
224
|
+
}
|
|
225
|
+
})
|
|
226
|
+
})
|
|
227
|
+
},
|
|
228
|
+
showSummary:{
|
|
229
|
+
handler(val){
|
|
230
|
+
// if (!val){
|
|
231
|
+
// this.$nextTick(() => {
|
|
232
|
+
// let preCon = document.querySelector('.pdf_view');
|
|
233
|
+
// if (preCon){
|
|
234
|
+
// preCon.style.height = 'calc(100% - ' + 50 + 'px)'
|
|
235
|
+
// }
|
|
236
|
+
// })
|
|
237
|
+
// } else {
|
|
238
|
+
// this.getSummarySuccess();
|
|
239
|
+
// }
|
|
240
|
+
if(val) {
|
|
241
|
+
this.getSummarySuccess();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
knowledgeId:{
|
|
246
|
+
handler(val){
|
|
247
|
+
if (val){
|
|
248
|
+
this.getTextWatermark();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
computed:{
|
|
254
|
+
pdfStyle() {
|
|
255
|
+
return {
|
|
256
|
+
paddingTop: this.isPc ? '30px' : '0', // 30px 是 加上外层的 20 流出 50的上边距展示 放大缩小操作栏
|
|
257
|
+
paddingBottom: this.tagIds > 1 ? '60px' : '0',
|
|
258
|
+
height: '100%'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
previewUrl() {
|
|
262
|
+
console.debug('VUE_APP_ENV',process.env.VUE_APP_ENV)
|
|
263
|
+
let url = process.env.VUE_APP_ENV === 'production' ? 'https://kkfileview.askbot.cn/onlinePreview?url=' : 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
|
|
264
|
+
// if(this.url != '') {
|
|
265
|
+
// if(/[\u4E00-\u9FA5]+/g.test(this.url)) {
|
|
266
|
+
// url += btoa(encodeURIComponent(this.url))
|
|
267
|
+
// } else {
|
|
268
|
+
// url += btoa(this.url)
|
|
269
|
+
// }
|
|
270
|
+
// }
|
|
271
|
+
url = url + this.url
|
|
272
|
+
url += '&officePreviewType=pdf'
|
|
273
|
+
if(this.watermark) {
|
|
274
|
+
url = this.watermark.textWatermarkValue ? (url += '&textWatermarkValue=' + this.watermark.textWatermarkValue) : url
|
|
275
|
+
url = this.watermark.visitorWatermarkValue ? (url += '&visitorWatermarkValue=' + this.watermark.visitorWatermarkValue) : url
|
|
276
|
+
}
|
|
277
|
+
console.log('textWatermarkStr 216', this.textWatermarkStr)
|
|
278
|
+
if (this.textWatermarkStr) {
|
|
279
|
+
url += '&textWatermarkValue=' + this.textWatermarkStr
|
|
280
|
+
}
|
|
281
|
+
return url
|
|
282
|
+
},
|
|
283
|
+
// fileType() {
|
|
284
|
+
// const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
285
|
+
// if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
286
|
+
// return 'VIDEO'
|
|
287
|
+
// } else {
|
|
288
|
+
// return 'OTHER'
|
|
289
|
+
// }
|
|
290
|
+
|
|
291
|
+
// }
|
|
292
|
+
},
|
|
293
|
+
methods: {
|
|
294
|
+
close () {
|
|
295
|
+
setTimeout(() => {
|
|
296
|
+
this.previewShowPopup = false;
|
|
297
|
+
this.fileType = ''
|
|
298
|
+
}, 300)
|
|
299
|
+
this.drawer = false;
|
|
300
|
+
this.showSummary = false;
|
|
301
|
+
},
|
|
302
|
+
loadIframe () {
|
|
303
|
+
|
|
304
|
+
if (this.fileType == 'VIDEO' || this.fileType == 'WECHAT' || (this.tagIds && this.tagIds.length != 0)) {
|
|
305
|
+
this.loading = false
|
|
306
|
+
} else {
|
|
307
|
+
let iframe = document.getElementsByClassName('preview_iframe')[0] || document.getElementsByClassName('preview_iframe_kk')[0];
|
|
308
|
+
if (iframe) {
|
|
309
|
+
iframe.onload = () => {
|
|
310
|
+
this.loading = false;
|
|
311
|
+
document.getElementById('drawer_content_pre').style.backgroundImage = 'none'
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
// let time = setInterval(() =>{
|
|
315
|
+
//
|
|
316
|
+
// if(iframe) {
|
|
317
|
+
// this.loading = false
|
|
318
|
+
// clearInterval(time)
|
|
319
|
+
// }
|
|
320
|
+
// }, 500)
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
getBolb () {
|
|
324
|
+
this.$http.post('/knowledge-api/knowledge/htmlTextDeal?onlyText=false', {
|
|
325
|
+
fileInOssPath: this.url,
|
|
326
|
+
templateId: ''
|
|
327
|
+
}).then(res => {
|
|
328
|
+
if (res.data.code == 0) {
|
|
329
|
+
this.fileText = res.data.data
|
|
330
|
+
this.loading = false
|
|
331
|
+
}
|
|
332
|
+
})
|
|
333
|
+
},
|
|
334
|
+
previewToDialog (flag) {
|
|
335
|
+
this.$emit('previewToDialog', flag)
|
|
336
|
+
},
|
|
337
|
+
closeSummary () {
|
|
338
|
+
this.showSummary = false;
|
|
339
|
+
},
|
|
340
|
+
recommendQues (item, knowledgeId) {
|
|
341
|
+
console.log('recommendQues', item, knowledgeId);
|
|
342
|
+
this.$emit('recommendQues', item, knowledgeId)
|
|
343
|
+
},
|
|
344
|
+
handleIframeMessage (res) {
|
|
345
|
+
console.log('handleIframeMessage', res)
|
|
346
|
+
if (res.data.type == 'getViewerHeight') {
|
|
347
|
+
let iframeHeight = this.iframeHeight.replace('px', '')
|
|
348
|
+
if (res.data.data && iframeHeight != (res.data.data + 50)) {
|
|
349
|
+
this.iframeHeight = res.data.data + 50 + 'px'
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
summaryFun () {
|
|
354
|
+
this.showSummary = !this.showSummary;
|
|
355
|
+
if (this.showSummary) {
|
|
356
|
+
document.getElementById('drawer_content_pre').scrollTop = 0;
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
getSummarySuccess () {
|
|
360
|
+
this.$nextTick(() => {
|
|
361
|
+
// if (this.tagIds.length > 0){
|
|
362
|
+
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
363
|
+
// let preCon = document.querySelector('.pdf_view')
|
|
364
|
+
// if (intelligentSummary){
|
|
365
|
+
// let height = intelligentSummary.offsetHeight + (this.isPc ? 100 : 50 );
|
|
366
|
+
// if (preCon){
|
|
367
|
+
// preCon.style.height = 'calc(100% - ' + height + 'px)'
|
|
368
|
+
// }
|
|
369
|
+
// console.log('height',height,preCon)
|
|
370
|
+
// }
|
|
371
|
+
// }
|
|
372
|
+
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
373
|
+
// let height = intelligentSummary.offsetHeight
|
|
374
|
+
// this.pdfStyle.height = 'calc(100% - ' + height + 'px)'
|
|
375
|
+
})
|
|
376
|
+
},
|
|
377
|
+
getTextWatermark () {
|
|
378
|
+
let url = '/knowledge-api/open/knowledge/getPermissionInfo';
|
|
379
|
+
let obj = {
|
|
380
|
+
"knowledgeId": this.knowledgeId,
|
|
381
|
+
"userId": sessionStorage.getItem('_currentUserId'),
|
|
382
|
+
"mainId": sessionStorage.getItem('_mainId'),
|
|
383
|
+
"corpId": sessionStorage.getItem('_corpid')
|
|
384
|
+
}
|
|
385
|
+
this.$http.post(url, obj).then(res => {
|
|
386
|
+
console.log('getTextWatermark', res.data.data)
|
|
387
|
+
if (res.data.data) {
|
|
388
|
+
this.textWatermarkStr = res.data.data.textWatermarkStr;
|
|
389
|
+
this.isDownload = res.data.data.showDownloadBtn;
|
|
390
|
+
}
|
|
391
|
+
})
|
|
392
|
+
},
|
|
393
|
+
downLoad () {
|
|
394
|
+
let url = this.previewOssPath
|
|
395
|
+
if (decodeURIComponent(url) != url) {
|
|
396
|
+
url = decodeURIComponent(url)
|
|
397
|
+
}
|
|
398
|
+
const fileType = url.substring(url.lastIndexOf('.'));
|
|
399
|
+
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
400
|
+
headers: {
|
|
401
|
+
"Content-Type": "application/json",
|
|
402
|
+
}
|
|
403
|
+
}).then(res => {
|
|
404
|
+
console.log('downLoad 341', res)
|
|
405
|
+
if (res.data|| res.bodyText) {
|
|
406
|
+
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
407
|
+
this.copy = res.data
|
|
408
|
+
if (isMobile()) {
|
|
409
|
+
setTimeout(() =>{
|
|
410
|
+
const range = document.createRange();
|
|
411
|
+
range.selectNode(document.getElementById('text'));
|
|
412
|
+
const selection = window.getSelection();
|
|
413
|
+
//移除之前选中内容
|
|
414
|
+
if (selection.rangeCount > 0) selection.removeAllRanges();
|
|
415
|
+
selection.addRange(range);
|
|
416
|
+
document.execCommand('copy');
|
|
417
|
+
selection.removeAllRanges()
|
|
418
|
+
Toast('下载地址已复制,请前往Safari浏览器访问下载');
|
|
419
|
+
this.close()
|
|
420
|
+
},100)
|
|
421
|
+
} else {
|
|
422
|
+
let a = document.createElement('a')
|
|
423
|
+
a.href = res.data
|
|
424
|
+
a.download = (this.title) + fileType
|
|
425
|
+
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
426
|
+
}
|
|
427
|
+
return
|
|
428
|
+
} else {
|
|
429
|
+
// setTimeout(() =>{
|
|
430
|
+
// window.open(res.data,'下载', 'noopener')
|
|
431
|
+
// }, 2000)
|
|
432
|
+
// window.open(res.data,'下载', 'noopener')
|
|
433
|
+
if (isMobile()) {
|
|
434
|
+
|
|
435
|
+
const iframe = document.createElement("iframe");
|
|
436
|
+
iframe.setAttribute("hidden", "hidden");
|
|
437
|
+
iframe.onload = () => {
|
|
438
|
+
if (iframe) {
|
|
439
|
+
console.log("iframe onload....")
|
|
440
|
+
iframe.setAttribute('src', 'about:blank');
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
document.body.insertBefore(iframe, null);
|
|
444
|
+
iframe.setAttribute("src", res.data );
|
|
445
|
+
} else {
|
|
446
|
+
let a = document.createElement('a')
|
|
447
|
+
a.href = res.data
|
|
448
|
+
a.download = (this.title) + fileType
|
|
449
|
+
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
450
|
+
}
|
|
451
|
+
this.close()
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
})
|
|
455
|
+
},
|
|
456
|
+
isPcFun () {
|
|
457
|
+
if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
458
|
+
this.isPc = false
|
|
459
|
+
} else {
|
|
460
|
+
this.isPc = true
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
clickFloder() {
|
|
464
|
+
this.$emit('previewClickFloder')
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
beforeDestroy () {
|
|
468
|
+
window.removeEventListener('message', this.handleIframeMessage);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
</script>
|
|
472
|
+
|
|
473
|
+
<style lang="less" scoped>
|
|
474
|
+
#drawer_content_pre {
|
|
475
|
+
padding: 20px;
|
|
476
|
+
scroll-behavior: smooth;
|
|
477
|
+
|
|
478
|
+
.mobile_onload_btn {
|
|
479
|
+
position: absolute;
|
|
480
|
+
right: 0;
|
|
481
|
+
bottom: 10%;
|
|
482
|
+
width: 20px;
|
|
483
|
+
height: 60px;
|
|
484
|
+
display: flex;
|
|
485
|
+
align-items: center;
|
|
486
|
+
justify-content: center;
|
|
487
|
+
cursor: pointer;
|
|
488
|
+
border-top-left-radius: 10px;
|
|
489
|
+
border-bottom-left-radius: 10px;
|
|
490
|
+
color: #366aff;
|
|
491
|
+
background: #ffffff;
|
|
492
|
+
border: 1px solid #a1b9ff;
|
|
493
|
+
font-size: 12px;
|
|
494
|
+
border-right: none;
|
|
495
|
+
text-align: center;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.pdf_positon {
|
|
499
|
+
width: 100%;
|
|
500
|
+
box-sizing: border-box;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.onload_btn {
|
|
505
|
+
width: 76px;
|
|
506
|
+
height: 26px;
|
|
507
|
+
display: flex;
|
|
508
|
+
align-items: center;
|
|
509
|
+
justify-content: center;
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
margin-right: 10px;
|
|
512
|
+
border-radius: 15px;
|
|
513
|
+
color: #366aff;
|
|
514
|
+
background: #ffffff;
|
|
515
|
+
border: 1px solid #a1b9ff;
|
|
516
|
+
box-sizing: border-box;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.preview_iframe {
|
|
520
|
+
width: 100%;
|
|
521
|
+
height: 100%;
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
524
|
+
background-position: center;
|
|
525
|
+
background-size: 50px;
|
|
526
|
+
background-repeat: no-repeat;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.preview_iframe_kk {
|
|
530
|
+
width: 100%;
|
|
531
|
+
height: 100%;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
.preview_iframe_html {
|
|
536
|
+
width: 100%;
|
|
537
|
+
height: 100%;
|
|
538
|
+
overflow-y: scroll;
|
|
539
|
+
text-align: left;
|
|
540
|
+
box-sizing: border-box;
|
|
541
|
+
padding: 16px;
|
|
542
|
+
|
|
543
|
+
/deep/.lake-content {
|
|
544
|
+
margin-left: 10px;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/deep/a:link {
|
|
548
|
+
color: #0000ee !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/deep/a:visited {
|
|
552
|
+
color: #0000ee !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/deep/a:hover {
|
|
556
|
+
color: #0000ee !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/deep/a:active {
|
|
560
|
+
color: #0000ee !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/deep/li:not(.rich-text-li),
|
|
564
|
+
ol:not(.list-paddingleft-2),
|
|
565
|
+
ul:not(.list-paddingleft-2) {
|
|
566
|
+
list-style-type: auto !important;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/deep/img {
|
|
570
|
+
width: 100%;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/deep/.ne-table {
|
|
574
|
+
width: 100% !important;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.footer {
|
|
579
|
+
width: calc(100% - 40px);
|
|
580
|
+
height: 50px;
|
|
581
|
+
display: flex;
|
|
582
|
+
align-items: center;
|
|
583
|
+
justify-content: space-between;
|
|
584
|
+
cursor: pointer;
|
|
585
|
+
padding: 0 20px;
|
|
586
|
+
border-bottom: 1px solid #cccccc;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.loading_img {
|
|
590
|
+
display: flex;
|
|
591
|
+
align-items: center;
|
|
592
|
+
justify-content: center;
|
|
593
|
+
width: 100%;
|
|
594
|
+
height: 100%;
|
|
595
|
+
position: absolute;
|
|
596
|
+
top: 0;
|
|
597
|
+
left: 0;
|
|
598
|
+
background: #FFF;
|
|
599
|
+
|
|
600
|
+
img {
|
|
601
|
+
width: 50px;
|
|
602
|
+
height: 50px;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.libang_head {
|
|
607
|
+
height: 64px !important;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.drawer-header {
|
|
611
|
+
width: 100%;
|
|
612
|
+
height: 50px;
|
|
613
|
+
cursor: pointer;
|
|
614
|
+
padding: 6px 20px;
|
|
615
|
+
border-bottom: 1px solid #cccccc;
|
|
616
|
+
.btn_position {
|
|
617
|
+
position: absolute;
|
|
618
|
+
top: -34px;
|
|
619
|
+
left: 12px;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.header-btn {
|
|
623
|
+
display: flex;
|
|
624
|
+
align-items: center;
|
|
625
|
+
justify-content: space-between;
|
|
626
|
+
|
|
627
|
+
.header-right {
|
|
628
|
+
display: flex;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.summaryBtn {
|
|
632
|
+
flex: none;
|
|
633
|
+
//width: 95px;
|
|
634
|
+
height: 26px;
|
|
635
|
+
padding: 0 8px;
|
|
636
|
+
background: #ffffff;
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: center;
|
|
639
|
+
justify-content: center;
|
|
640
|
+
box-sizing: border-box;
|
|
641
|
+
border: 1px solid #a1b9ff;
|
|
642
|
+
border-radius: 15px;
|
|
643
|
+
cursor: pointer;
|
|
644
|
+
color: #366aff;
|
|
645
|
+
margin-right: 10px;
|
|
646
|
+
font-size: 14px;
|
|
647
|
+
|
|
648
|
+
i {
|
|
649
|
+
font-size: 14px;
|
|
650
|
+
margin-right: 5px;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.summaryActiveBtn {
|
|
655
|
+
background: #366aff !important;
|
|
656
|
+
color: #ffffff !important;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.chat {
|
|
660
|
+
flex: none;
|
|
661
|
+
height: 26px;
|
|
662
|
+
padding: 0 8px;
|
|
663
|
+
background: #ffffff;
|
|
664
|
+
display: flex;
|
|
665
|
+
align-items: center;
|
|
666
|
+
justify-content: center;
|
|
667
|
+
box-sizing: border-box;
|
|
668
|
+
border: 1px solid #a1b9ff;
|
|
669
|
+
border-radius: 15px 0px 15px 15px;
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
color: #366aff;
|
|
672
|
+
margin-right: 10px;
|
|
673
|
+
font-size: 14px;
|
|
674
|
+
|
|
675
|
+
i {
|
|
676
|
+
font-size: 14px;
|
|
677
|
+
margin-right: 5px;
|
|
678
|
+
margin-top: 2px;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.chat_active {
|
|
683
|
+
background: #366aff !important;
|
|
684
|
+
color: #FFFFFF !important;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.header_title {
|
|
689
|
+
font-size: 14px;
|
|
690
|
+
height: 100%;
|
|
691
|
+
.header_close {
|
|
692
|
+
display: flex;
|
|
693
|
+
align-items: center;
|
|
694
|
+
justify-content: space-between;
|
|
695
|
+
line-height: 26px;
|
|
696
|
+
}
|
|
697
|
+
.header_floder {
|
|
698
|
+
display: flex;
|
|
699
|
+
align-items: center;
|
|
700
|
+
line-height: 26px;
|
|
701
|
+
i {
|
|
702
|
+
margin: 0 5px;
|
|
703
|
+
color: #366aff;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
.header_top {
|
|
707
|
+
height: 100%;
|
|
708
|
+
display: flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
justify-content: space-between;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
@media screen and (max-width: 767px) {
|
|
716
|
+
|
|
717
|
+
/* 这里是针对移动设备的css样式设置 */
|
|
718
|
+
/deep/.el-drawer__body {
|
|
719
|
+
height: 100%;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
#drawer_content_pre {
|
|
723
|
+
overflow: auto;
|
|
724
|
+
height: calc(100% - 50px);
|
|
725
|
+
background: #FFF;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.libang_content_pre {
|
|
729
|
+
height: calc(100% - 64px) !important;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
@media screen and (min-width: 768px) {
|
|
734
|
+
|
|
735
|
+
/* 这里是针对pc设备的css样式设置 */
|
|
736
|
+
/deep/.el-drawer__body {
|
|
737
|
+
height: 100%;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
#drawer_content_pre {
|
|
741
|
+
overflow: auto;
|
|
742
|
+
height: calc(100% - 50px);
|
|
743
|
+
background: #FFF;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.libang_content_pre {
|
|
747
|
+
height: calc(100% - 64px) !important;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
@media screen and (min-width: 1200px) {
|
|
752
|
+
|
|
753
|
+
/* 这里是针对pc设备的css样式设置 */
|
|
754
|
+
.el-drawer__wrapper {
|
|
755
|
+
width: 55%;
|
|
756
|
+
left: calc(100vw - 55%);
|
|
757
|
+
right: 0;
|
|
758
|
+
|
|
759
|
+
/deep/.pdf-preview-drawer {
|
|
760
|
+
width: 100% !important;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/deep/.el-drawer__body {
|
|
765
|
+
height: 100%;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
#drawer_content_pre {
|
|
769
|
+
overflow: auto;
|
|
770
|
+
height: calc(100% - 50px);
|
|
771
|
+
background: #FFF;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.libang_content_pre {
|
|
775
|
+
height: calc(100% - 64px) !important;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
</style>
|
|
779
|
+
<style lang="less">
|
|
780
|
+
.pdf-preview-drawer {
|
|
781
|
+
overflow: visible !important;
|
|
782
|
+
}
|
|
783
|
+
.libang_content_pre {
|
|
784
|
+
.change_scale {
|
|
785
|
+
top: 64px !important;
|
|
786
|
+
}
|
|
787
|
+
.float_intelligentSummary {
|
|
788
|
+
top: 74px !important;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
</style>
|