askbot-dragon 1.7.79-beta → 1.7.82-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/package.json +1 -1
- package/src/components/previewPdf.vue +789 -774
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
|
|
2
1
|
<!-- preview-pdf
|
|
3
2
|
组件主要负责 知识项目中 文件的预览,携带定位信息参数 tagIds tagId 的会解析文件增加定位功能
|
|
4
3
|
不携带定位信息的 也是走 kkview项目预览
|
|
5
4
|
另外增加了在知识项目中预览当前文件的一些功能
|
|
6
5
|
-->
|
|
7
6
|
<template>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
7
|
+
<el-drawer title="" :visible.sync="drawer" :with-header="false" :append-to-body="true" :destroy-on-close="true"
|
|
8
|
+
:modal="false" :direction="previewShowPopup ? 'btt' : 'rtl'" :size="previewShowPopup ? '90%' : '65%'"
|
|
9
|
+
custom-class="pdf-preview-drawer" v-if="drawer">
|
|
10
|
+
<div class="drawer-header"
|
|
11
|
+
:class="(isDownload || (isHasChat && fileType != 'IMAGE')) && isLiBang ? 'has_btn_libang_head' : (isLiBang ? 'libang_head' : (isDownload || (isHasChat && fileType != 'IMAGE') ? 'has_btn_head' : ''))"
|
|
12
|
+
v-if="!isPc">
|
|
13
|
+
<div class="header_title">
|
|
14
|
+
<template v-if="isDownload || (isHasChat && fileType != 'IMAGE')">
|
|
15
|
+
<div class="top-header">
|
|
16
|
+
<div class="header-btn">
|
|
17
|
+
<div class="onload_btn" v-if="isDownload" @click="downLoad">
|
|
18
|
+
{{ $t('dragonCommon.download') }}
|
|
19
|
+
</div>
|
|
20
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
21
|
+
v-if="isHasChat && fileType != 'IMAGE'">
|
|
22
|
+
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
23
|
+
<span>{{ $t('dragonCommon.smartSummary') }}</span>
|
|
24
|
+
</div>
|
|
25
|
+
<template v-if="isHasChat && fileType != 'IMAGE'">
|
|
26
|
+
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
27
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
28
|
+
{{ $t('dragonCommon.chat') }}
|
|
29
|
+
</div>
|
|
30
|
+
<div class="chat chat_active" @click="previewToDialog(false)" v-else>
|
|
31
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
32
|
+
{{ $t('dragonCommon.chat') }}
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
</div>
|
|
36
|
+
<section @click="close">
|
|
37
|
+
<i class="iconfont guoran-shanchu"></i>
|
|
38
|
+
</section>
|
|
39
|
+
</div>
|
|
40
|
+
<span class="title_left">
|
|
41
|
+
{{ title ? title : $t('dragonCommon.viewDetails') }}
|
|
42
|
+
</span>
|
|
43
|
+
</template>
|
|
44
|
+
<div class="header_close" v-else>
|
|
45
|
+
<span class="title_left">
|
|
46
|
+
{{ title ? title : '查看详情' }}
|
|
47
|
+
</span>
|
|
48
|
+
<section @click="close">
|
|
49
|
+
<i class="iconfont guoran-shanchu"></i>
|
|
50
|
+
</section>
|
|
31
51
|
</div>
|
|
32
|
-
|
|
52
|
+
<p v-if="folderName && isLiBang" class="header_floder" @click="clickFloder">
|
|
53
|
+
<i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
|
|
54
|
+
{{ folderName }}
|
|
55
|
+
<i v-if="folderUrl" class="iconfont guoran-tongyichicun-dianjichakantuli"></i>
|
|
56
|
+
</p>
|
|
33
57
|
</div>
|
|
34
|
-
<section @click="close">
|
|
35
|
-
<i class="iconfont guoran-shanchu"></i>
|
|
36
|
-
</section>
|
|
37
|
-
</div>
|
|
38
|
-
<span class="title_left">
|
|
39
|
-
{{ title ? title : $t('dragonCommon.viewDetails') }}
|
|
40
|
-
</span>
|
|
41
|
-
</template>
|
|
42
|
-
<div class="header_close" v-else>
|
|
43
|
-
<span class="title_left">
|
|
44
|
-
{{ title ? title : '查看详情' }}
|
|
45
|
-
</span>
|
|
46
|
-
<section @click="close">
|
|
47
|
-
<i class="iconfont guoran-shanchu"></i>
|
|
48
|
-
</section>
|
|
49
58
|
</div>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
<div class="drawer-header" :class="isLiBang && folderName ? 'libang_head' : ''" v-else>
|
|
60
|
+
<div class="header_title">
|
|
61
|
+
<div :class="isLiBang && folderName ? 'header_close' : 'header_top'">
|
|
62
|
+
<span class="title_left">
|
|
63
|
+
{{ title ? title : $t('dragonCommon.viewDetails') }}
|
|
64
|
+
</span>
|
|
65
|
+
<div class="header-btn">
|
|
66
|
+
<div class="onload_btn" v-if="isDownload" @click="downLoad">
|
|
67
|
+
{{ $t('dragonCommon.download') }}
|
|
68
|
+
</div>
|
|
69
|
+
<div class="summaryBtn" :class="showSummary ? 'summaryActiveBtn' : ''" @click="summaryFun"
|
|
70
|
+
v-if="isHasChat && fileType != 'IMAGE'">
|
|
71
|
+
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
72
|
+
<span>{{ $t('dragonCommon.smartSummary') }}</span>
|
|
73
|
+
</div>
|
|
74
|
+
<template v-if="isHasChat && fileType != 'IMAGE'">
|
|
75
|
+
<div class="chat" @click="previewToDialog(true)" v-if="!previewKnowledgeId">
|
|
76
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
77
|
+
{{ $t('dragonCommon.chat') }}
|
|
78
|
+
</div>
|
|
79
|
+
<div class="chat chat_active" @click="previewToDialog(false)" v-else>
|
|
80
|
+
<i class="iconfont guoran-wendapingjia"></i>
|
|
81
|
+
{{ $t('dragonCommon.chat') }}
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
<section @click="close">
|
|
85
|
+
<i class="iconfont guoran-shanchu"></i>
|
|
86
|
+
</section>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<p v-if="folderName && isLiBang" class="header_floder" @click="clickFloder">
|
|
90
|
+
<i class="iconfont guoran-tongyichicun-wenjianjia-zhankaizhuangtai--folderOpen"></i>
|
|
91
|
+
{{ folderName }}
|
|
92
|
+
<i v-if="folderUrl" class="iconfont guoran-tongyichicun-dianjichakantuli"></i>
|
|
93
|
+
</p>
|
|
66
94
|
</div>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
95
|
+
</div>
|
|
96
|
+
<div id="drawer_content_pre"
|
|
97
|
+
:class="(isDownload || (isHasChat && fileType != 'IMAGE')) && !isPc && isLiBang && folderName ? 'has_btn_libang_content_pre' : (isLiBang && folderName ? 'libang_content_pre' : '')">
|
|
98
|
+
<intelligent-summary v-show="showSummary && (isHasChat && fileType != 'IMAGE')" :tagIds="tagIds"
|
|
99
|
+
:knowledgeId="knowledgeId" @closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
100
|
+
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
101
|
+
<div class="pdf_positon" :style="pdfStyle"
|
|
102
|
+
v-if="tagIds && tagIds.length != 0 && drawer && newVersion === false && newFileType !== 'PPT'">
|
|
103
|
+
<pdfPosition :tagIds="tagIds" :isMessageRecord="isMessageRecord" :textWatermarkStr="textWatermarkStr">
|
|
104
|
+
</pdfPosition>
|
|
71
105
|
</div>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
106
|
+
<new-position-preview ref="newPositionPreview"
|
|
107
|
+
v-else-if="tagIds && tagIds.length != 0 && newVersion && newFileType !== 'PPT'"
|
|
108
|
+
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref"></new-position-preview>
|
|
109
|
+
<template v-else>
|
|
110
|
+
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
111
|
+
<video :src="url" controls width="100%;" height="98%"></video>
|
|
112
|
+
</div>
|
|
113
|
+
<div v-else-if="fileType == 'HTML'" style="width: 100%;">
|
|
114
|
+
<div class="preview_iframe_html" style="text-align:left" v-html="fileText"></div>
|
|
115
|
+
</div>
|
|
116
|
+
<template v-else-if="url.includes('https://www') || url.includes('http://www')">
|
|
117
|
+
<iframe class="preview_iframe" :src="url" width="100%" height="100%" scrolling="100%"
|
|
118
|
+
frameborder="no" border="0"></iframe>
|
|
119
|
+
</template>
|
|
120
|
+
<template v-else>
|
|
121
|
+
<iframe class="preview_iframe_kk" :src="previewUrl" style="border:none;"
|
|
122
|
+
:style="{ height: iframeHeight }"></iframe>
|
|
123
|
+
<template v-if="!loading && (newFileType === 'PPT' && pageChunkData.length > 1)">
|
|
124
|
+
<div class="btn_footer" v-if="!isPc">
|
|
125
|
+
<div class="prev" @click="prev">上一段</div>
|
|
126
|
+
<div class="next" @click="next">下一段</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div id="pagination" v-if="isPc">
|
|
129
|
+
<el-pagination :current-page="currentPage + 1" @current-change="currentChange"
|
|
130
|
+
@prev-click="prev" @next-click="next" layout="slot, prev, pager, next" :page-size="1"
|
|
131
|
+
:total="pageChunkData.length">
|
|
132
|
+
<span class="total-class">答案由{{ pageChunkData.length }}段内容生成</span>
|
|
133
|
+
</el-pagination>
|
|
134
|
+
</div>
|
|
135
|
+
</template>
|
|
136
|
+
</template>
|
|
81
137
|
</template>
|
|
82
|
-
<section @click="close">
|
|
83
|
-
<i class="iconfont guoran-shanchu"></i>
|
|
84
|
-
</section>
|
|
85
|
-
</div>
|
|
86
138
|
</div>
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
{{ folderName }}
|
|
90
|
-
<i v-if="folderUrl" class="iconfont guoran-tongyichicun-dianjichakantuli"></i>
|
|
91
|
-
</p>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<div id="drawer_content_pre" :class="(isDownload || (isHasChat && fileType != 'IMAGE')) && !isPc && isLiBang && folderName ? 'has_btn_libang_content_pre' : (isLiBang && folderName ? 'libang_content_pre' : '')">
|
|
95
|
-
<intelligent-summary v-show="showSummary && (isHasChat && fileType != 'IMAGE')" :tagIds="tagIds" :knowledgeId="knowledgeId"
|
|
96
|
-
@closeSummary="closeSummary" @recommendQues="recommendQues"
|
|
97
|
-
@getSummarySuccess="getSummarySuccess"></intelligent-summary>
|
|
98
|
-
<div class="pdf_positon" :style="pdfStyle" v-if="tagIds && tagIds.length != 0 && drawer && newVersion === false && newFileType !== 'PPT'">
|
|
99
|
-
<pdfPosition :tagIds="tagIds" :isMessageRecord="isMessageRecord" :textWatermarkStr="textWatermarkStr">
|
|
100
|
-
</pdfPosition>
|
|
101
|
-
</div>
|
|
102
|
-
<new-position-preview
|
|
103
|
-
ref="newPositionPreview"
|
|
104
|
-
v-else-if="tagIds && tagIds.length!= 0 && newVersion && newFileType !== 'PPT'"
|
|
105
|
-
:knowledgeId="knowledgeId"
|
|
106
|
-
:tagIds="tagIds"
|
|
107
|
-
:url="previewHref"
|
|
108
|
-
></new-position-preview>
|
|
109
|
-
<template v-else>
|
|
110
|
-
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
111
|
-
<video :src="url" controls width="100%;" height="98%"></video>
|
|
139
|
+
<div class="loading_img" v-show="loading">
|
|
140
|
+
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif" alt="">
|
|
112
141
|
</div>
|
|
113
|
-
<div
|
|
114
|
-
|
|
142
|
+
<div id="text">
|
|
143
|
+
{{ copy }}
|
|
115
144
|
</div>
|
|
116
|
-
|
|
117
|
-
<iframe class="preview_iframe" :src="url" width="100%" height="100%" scrolling="100%" frameborder="no"
|
|
118
|
-
border="0"></iframe>
|
|
119
|
-
</template>
|
|
120
|
-
<template v-else>
|
|
121
|
-
<iframe class="preview_iframe_kk" :src="previewUrl" style="border:none;"
|
|
122
|
-
:style="{ height: iframeHeight }"></iframe>
|
|
123
|
-
<template v-if="!loading && (newFileType === 'PPT' && pageChunkData.length > 1)">
|
|
124
|
-
<div class="btn_footer" v-if="!isPc">
|
|
125
|
-
<div class="prev" @click="prev">上一段</div>
|
|
126
|
-
<div class="next" @click="next">下一段</div>
|
|
127
|
-
</div>
|
|
128
|
-
<div id="pagination" v-if="isPc">
|
|
129
|
-
<el-pagination :current-page="currentPage + 1" @current-change="currentChange" @prev-click="prev"
|
|
130
|
-
@next-click="next" layout="slot, prev, pager, next" :page-size="1" :total="pageChunkData.length">
|
|
131
|
-
<span class="total-class">答案由{{ pageChunkData.length }}段内容生成</span>
|
|
132
|
-
</el-pagination>
|
|
133
|
-
</div>
|
|
134
|
-
</template>
|
|
135
|
-
</template>
|
|
136
|
-
</template>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="loading_img" v-show="loading">
|
|
139
|
-
<img src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif" alt="">
|
|
140
|
-
</div>
|
|
141
|
-
<div id="text">
|
|
142
|
-
{{ copy }}
|
|
143
|
-
</div>
|
|
144
|
-
</el-drawer>
|
|
145
|
+
</el-drawer>
|
|
145
146
|
</template>
|
|
146
147
|
|
|
147
148
|
<script>
|
|
@@ -238,8 +239,8 @@ export default {
|
|
|
238
239
|
userId: {
|
|
239
240
|
type: String,
|
|
240
241
|
default: ''
|
|
241
|
-
}
|
|
242
|
-
|
|
242
|
+
}
|
|
243
|
+
},
|
|
243
244
|
components: {
|
|
244
245
|
NewPositionPreview,
|
|
245
246
|
IntelligentSummary,
|
|
@@ -283,35 +284,41 @@ export default {
|
|
|
283
284
|
},
|
|
284
285
|
computed: {
|
|
285
286
|
pdfStyle () {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
287
|
+
return {
|
|
288
|
+
paddingTop: this.isPc ? '30px' : '0', // 30px 是 加上外层的 20 流出 50的上边距展示 放大缩小操作栏
|
|
289
|
+
paddingBottom: this.tagIds > 1 ? '60px' : '0',
|
|
290
|
+
height: '100%'
|
|
291
|
+
}
|
|
291
292
|
},
|
|
292
293
|
previewUrl () {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
294
|
+
console.debug('VUE_APP_ENV', process.env.VUE_APP_ENV)
|
|
295
|
+
let url = process.env.VUE_APP_ENV === 'production' ? 'https://kkfileview.askbot.cn/onlinePreview?url=' : 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
|
|
296
|
+
// if(this.url != '') {
|
|
297
|
+
// if(/[\u4E00-\u9FA5]+/g.test(this.url)) {
|
|
298
|
+
// url += btoa(encodeURIComponent(this.url))
|
|
299
|
+
// } else {
|
|
300
|
+
// url += btoa(this.url)
|
|
301
|
+
// }
|
|
302
|
+
// }
|
|
303
|
+
url = url + this.url
|
|
304
|
+
if (this.sourceFileType == '.ppt' || this.sourceFileType == '.pptx' || this.sourceFileType == '.pdf') {
|
|
305
|
+
url += '&officePreviewType=pdf'
|
|
306
|
+
if (this.watermark) {
|
|
307
|
+
url = this.watermark.textWatermarkValue ? (url += '&textWatermarkValue=' + this.watermark.textWatermarkValue) : url
|
|
308
|
+
url = this.watermark.visitorWatermarkValue ? (url += '&visitorWatermarkValue=' + this.watermark.visitorWatermarkValue) : url
|
|
309
|
+
}
|
|
310
|
+
let mainId = sessionStorage.getItem('_mainId')
|
|
311
|
+
let userId = sessionStorage.getItem('_currentUserId')
|
|
312
|
+
let test = process.env.VUE_APP_ENV === 'production'
|
|
313
|
+
url += '&mainId=' + mainId+ '&userId=' + userId + '&test=' + test
|
|
314
|
+
console.log('textWatermarkStr 216', this.textWatermarkStr)
|
|
315
|
+
if (this.textWatermarkStr) {
|
|
316
|
+
url += '&textWatermarkValue=' + this.textWatermarkStr
|
|
317
|
+
}
|
|
312
318
|
}
|
|
313
319
|
return url
|
|
314
|
-
|
|
320
|
+
|
|
321
|
+
}
|
|
315
322
|
// fileType() {
|
|
316
323
|
// const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
317
324
|
// if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
@@ -333,291 +340,279 @@ export default {
|
|
|
333
340
|
},
|
|
334
341
|
loadIframe() {
|
|
335
342
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
} else {
|
|
339
|
-
let iframe = document.getElementsByClassName('preview_iframe')[0] || document.getElementsByClassName('preview_iframe_kk')[0];
|
|
340
|
-
if (iframe) {
|
|
341
|
-
iframe.onload = () => {
|
|
342
|
-
this.loading = false;
|
|
343
|
-
document.getElementById('drawer_content_pre').style.backgroundImage = 'none'
|
|
344
|
-
window.postMessage({
|
|
345
|
-
type: "wx_bind",
|
|
346
|
-
data: {
|
|
347
|
-
mainId: sessionStorage.getItem('_mainId'),
|
|
348
|
-
userId: sessionStorage.getItem('_currentUserId'),
|
|
349
|
-
test: process.env.VUE_APP_ENV !== 'production'
|
|
350
|
-
}
|
|
351
|
-
}, '*')}
|
|
352
|
-
}
|
|
353
|
-
// let time = setInterval(() =>{
|
|
354
|
-
//
|
|
355
|
-
// if(iframe) {
|
|
356
|
-
// this.loading = false
|
|
357
|
-
// clearInterval(time)
|
|
358
|
-
// }
|
|
359
|
-
// }, 500)
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
getBolb() {
|
|
363
|
-
this.$http.post('/knowledge-api/knowledge/htmlTextDeal?onlyText=false', {
|
|
364
|
-
fileInOssPath: this.url,
|
|
365
|
-
templateId: ''
|
|
366
|
-
}).then(res => {
|
|
367
|
-
if (res.data.code == 0) {
|
|
368
|
-
this.fileText = res.data.data
|
|
369
|
-
this.loading = false
|
|
370
|
-
}
|
|
371
|
-
})
|
|
372
|
-
},
|
|
373
|
-
previewToDialog(flag) {
|
|
374
|
-
this.$emit('previewToDialog', flag)
|
|
375
|
-
},
|
|
376
|
-
closeSummary() {
|
|
377
|
-
this.showSummary = false;
|
|
378
|
-
},
|
|
379
|
-
recommendQues(item, knowledgeId) {
|
|
380
|
-
console.log('recommendQues', item, knowledgeId);
|
|
381
|
-
this.$emit('recommendQues', item, knowledgeId)
|
|
382
|
-
},
|
|
383
|
-
handleIframeMessage(res) {
|
|
384
|
-
if (res.data.type == 'getViewerHeight') {
|
|
385
|
-
let iframeHeight = this.iframeHeight.replace('px', '')
|
|
386
|
-
if (res.data.data && iframeHeight != (res.data.data + 50)) {
|
|
387
|
-
this.iframeHeight = res.data.data + 50 + 'px'
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
if (res.data.type == 'getViewPage' && res.data.data) {
|
|
391
|
-
this.numberPage = Number(res.data.data);
|
|
392
|
-
if (this.pageChunkData.length > 0) {
|
|
393
|
-
this.scrollPPTPage(this.pageChunkData[0])
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
if (res.data.type == 'getViewerHeight' || res.data.type == 'getViewPage') {
|
|
397
|
-
if (this.pageChunkData.length > 0) {
|
|
398
|
-
this.scrollPPTPage(this.pageChunkData[0])
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
summaryFun() {
|
|
403
|
-
this.showSummary = !this.showSummary;
|
|
404
|
-
if (this.showSummary) {
|
|
405
|
-
document.getElementById('drawer_content_pre').scrollTop = 0;
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
getSummarySuccess() {
|
|
409
|
-
this.$nextTick(() => {
|
|
410
|
-
// if (this.tagIds.length > 0){
|
|
411
|
-
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
412
|
-
// let preCon = document.querySelector('.pdf_view')
|
|
413
|
-
// if (intelligentSummary){
|
|
414
|
-
// let height = intelligentSummary.offsetHeight + (this.isPc ? 100 : 50 );
|
|
415
|
-
// if (preCon){
|
|
416
|
-
// preCon.style.height = 'calc(100% - ' + height + 'px)'
|
|
417
|
-
// }
|
|
418
|
-
// console.log('height',height,preCon)
|
|
419
|
-
// }
|
|
420
|
-
// }
|
|
421
|
-
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
422
|
-
// let height = intelligentSummary.offsetHeight
|
|
423
|
-
// this.pdfStyle.height = 'calc(100% - ' + height + 'px)'
|
|
424
|
-
})
|
|
425
|
-
},
|
|
426
|
-
getTextWatermark() {
|
|
427
|
-
let url = '/knowledge-api/open/knowledge/getPermissionInfo';
|
|
428
|
-
let obj = {
|
|
429
|
-
"knowledgeId": this.knowledgeId,
|
|
430
|
-
"userId": sessionStorage.getItem('_currentUserId'),
|
|
431
|
-
"mainId": sessionStorage.getItem('_mainId'),
|
|
432
|
-
"corpId": sessionStorage.getItem('_corpid')
|
|
433
|
-
}
|
|
434
|
-
this.$http.post(url, obj).then(res => {
|
|
435
|
-
console.log('getTextWatermark', res.data.data)
|
|
436
|
-
if (res.data.data) {
|
|
437
|
-
this.textWatermarkStr = res.data.data.textWatermarkStr;
|
|
438
|
-
this.isDownload = res.data.data.showDownloadBtn;
|
|
439
|
-
}
|
|
440
|
-
})
|
|
441
|
-
},
|
|
442
|
-
downLoad() {
|
|
443
|
-
// if (this.formKnowledgeManagement) {
|
|
444
|
-
// this.$emit('downLoad', this.previewOssPath);
|
|
445
|
-
// return
|
|
446
|
-
// }
|
|
447
|
-
let url = this.previewOssPath
|
|
448
|
-
if (decodeURIComponent(url) != url) {
|
|
449
|
-
url = decodeURIComponent(url)
|
|
450
|
-
}
|
|
451
|
-
const fileType = url.substring(url.lastIndexOf('.'));
|
|
452
|
-
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
453
|
-
headers: {
|
|
454
|
-
"Content-Type": "application/json",
|
|
455
|
-
}
|
|
456
|
-
}).then(res => {
|
|
457
|
-
console.log('downLoad 341', res)
|
|
458
|
-
if (res.data || res.bodyText) {
|
|
459
|
-
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
460
|
-
this.copy = res.data
|
|
461
|
-
if (isMobile()) {
|
|
462
|
-
setTimeout(() => {
|
|
463
|
-
const range = document.createRange();
|
|
464
|
-
range.selectNode(document.getElementById('text'));
|
|
465
|
-
const selection = window.getSelection();
|
|
466
|
-
//移除之前选中内容
|
|
467
|
-
if (selection.rangeCount > 0) selection.removeAllRanges();
|
|
468
|
-
selection.addRange(range);
|
|
469
|
-
document.execCommand('copy');
|
|
470
|
-
selection.removeAllRanges()
|
|
471
|
-
Toast(this.$t('dragonCommon.Safaridownload'));
|
|
472
|
-
this.close()
|
|
473
|
-
}, 100)
|
|
474
|
-
} else {
|
|
475
|
-
let a = document.createElement('a')
|
|
476
|
-
a.href = res.data
|
|
477
|
-
a.download = (this.title) + fileType
|
|
478
|
-
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
479
|
-
}
|
|
480
|
-
return
|
|
343
|
+
if (this.fileType == 'VIDEO' || this.fileType == 'WECHAT' || (this.tagIds && this.tagIds.length != 0 && this.newFileType !== 'PPT')) {
|
|
344
|
+
this.loading = false
|
|
481
345
|
} else {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
document.body.insertBefore(iframe, null);
|
|
497
|
-
iframe.setAttribute("src", res.data);
|
|
498
|
-
} else {
|
|
499
|
-
let a = document.createElement('a')
|
|
500
|
-
a.href = res.data
|
|
501
|
-
a.download = (this.title) + fileType
|
|
502
|
-
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
503
|
-
}
|
|
504
|
-
this.close()
|
|
346
|
+
let iframe = document.getElementsByClassName('preview_iframe')[0] || document.getElementsByClassName('preview_iframe_kk')[0];
|
|
347
|
+
if (iframe) {
|
|
348
|
+
iframe.onload = () => {
|
|
349
|
+
this.loading = false;
|
|
350
|
+
document.getElementById('drawer_content_pre').style.backgroundImage = 'none'
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
// let time = setInterval(() =>{
|
|
354
|
+
//
|
|
355
|
+
// if(iframe) {
|
|
356
|
+
// this.loading = false
|
|
357
|
+
// clearInterval(time)
|
|
358
|
+
// }
|
|
359
|
+
// }, 500)
|
|
505
360
|
}
|
|
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
|
-
let newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
540
|
-
if (index == -1) {
|
|
541
|
-
newFileInOssPath = url
|
|
542
|
-
}
|
|
543
|
-
const fileType = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'));
|
|
544
|
-
if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc') {
|
|
545
|
-
return 'VIDEO'
|
|
546
|
-
} else if (fileType === '.html') {
|
|
547
|
-
return 'HTML'
|
|
548
|
-
} else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg' || fileType === '.PNG' || fileType === '.JPG' || fileType === '.JPEG') {
|
|
549
|
-
return 'IMAGE'
|
|
550
|
-
} else if (fileType === '.docx' || fileType === '.doc') {
|
|
551
|
-
return 'DOC'
|
|
552
|
-
} else if (fileType === '.ppt' || fileType === '.pptx') {
|
|
553
|
-
return 'PPT'
|
|
554
|
-
} else if (fileType === '.pdf') {
|
|
555
|
-
return 'PDF'
|
|
556
|
-
} else if (fileType === '.txt') {
|
|
557
|
-
return 'TXT'
|
|
558
|
-
} else {
|
|
559
|
-
return 'OTHER'
|
|
560
|
-
}
|
|
561
|
-
},
|
|
562
|
-
//判断是否使用新定位组件
|
|
563
|
-
getLocationInfo() {
|
|
564
|
-
this.newVersion = "";
|
|
565
|
-
this.$http.get('/knowledge-api/knowledge/knowledge-part-location-info/list?ids=' + this.tagIds.join(',')).then(res => {
|
|
566
|
-
console.log('getLocationInfo', res)
|
|
567
|
-
this.pageChunkData = [];
|
|
568
|
-
if (res.data.code == 0) {
|
|
569
|
-
if (res.data.data && res.data.data.length > 0 && res.data.data[0].extractVersion == 'v3') {
|
|
570
|
-
this.newVersion = true;
|
|
571
|
-
if (this.newFileType !== 'PPT') {
|
|
572
|
-
this.loading = false;
|
|
573
|
-
}
|
|
574
|
-
for (let i = 0; i < res.data.data.length; i++) {
|
|
575
|
-
if (res.data.data[i].paragraphChunkInfo && res.data.data[i].paragraphChunkInfo.pageChunkData) {
|
|
576
|
-
this.pageChunkData.push(res.data.data[i].paragraphChunkInfo.pageChunkData.page_number)
|
|
361
|
+
},
|
|
362
|
+
getBolb() {
|
|
363
|
+
this.$http.post('/knowledge-api/knowledge/htmlTextDeal?onlyText=false', {
|
|
364
|
+
fileInOssPath: this.url,
|
|
365
|
+
templateId: ''
|
|
366
|
+
}).then(res => {
|
|
367
|
+
if (res.data.code == 0) {
|
|
368
|
+
this.fileText = res.data.data
|
|
369
|
+
this.loading = false
|
|
370
|
+
}
|
|
371
|
+
})
|
|
372
|
+
},
|
|
373
|
+
previewToDialog(flag) {
|
|
374
|
+
this.$emit('previewToDialog', flag)
|
|
375
|
+
},
|
|
376
|
+
closeSummary() {
|
|
377
|
+
this.showSummary = false;
|
|
378
|
+
},
|
|
379
|
+
recommendQues(item, knowledgeId) {
|
|
380
|
+
console.log('recommendQues', item, knowledgeId);
|
|
381
|
+
this.$emit('recommendQues', item, knowledgeId)
|
|
382
|
+
},
|
|
383
|
+
handleIframeMessage(res) {
|
|
384
|
+
if (res.data.type == 'getViewerHeight') {
|
|
385
|
+
let iframeHeight = this.iframeHeight.replace('px', '')
|
|
386
|
+
if (res.data.data && iframeHeight != (res.data.data + 50)) {
|
|
387
|
+
this.iframeHeight = res.data.data + 50 + 'px'
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (res.data.type == 'getViewPage' && res.data.data) {
|
|
391
|
+
this.numberPage = Number(res.data.data);
|
|
392
|
+
if (this.pageChunkData.length > 0) {
|
|
393
|
+
this.scrollPPTPage(this.pageChunkData[0])
|
|
577
394
|
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
395
|
+
}
|
|
396
|
+
if (res.data.type == 'getViewerHeight' || res.data.type == 'getViewPage') {
|
|
397
|
+
if (this.pageChunkData.length > 0) {
|
|
398
|
+
this.scrollPPTPage(this.pageChunkData[0])
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
summaryFun() {
|
|
403
|
+
this.showSummary = !this.showSummary;
|
|
404
|
+
if (this.showSummary) {
|
|
405
|
+
document.getElementById('drawer_content_pre').scrollTop = 0;
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
getSummarySuccess() {
|
|
409
|
+
this.$nextTick(() => {
|
|
410
|
+
// if (this.tagIds.length > 0){
|
|
411
|
+
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
412
|
+
// let preCon = document.querySelector('.pdf_view')
|
|
413
|
+
// if (intelligentSummary){
|
|
414
|
+
// let height = intelligentSummary.offsetHeight + (this.isPc ? 100 : 50 );
|
|
415
|
+
// if (preCon){
|
|
416
|
+
// preCon.style.height = 'calc(100% - ' + height + 'px)'
|
|
417
|
+
// }
|
|
418
|
+
// console.log('height',height,preCon)
|
|
419
|
+
// }
|
|
420
|
+
// }
|
|
421
|
+
// let intelligentSummary = document.getElementById('intelligentSummary');
|
|
422
|
+
// let height = intelligentSummary.offsetHeight
|
|
423
|
+
// this.pdfStyle.height = 'calc(100% - ' + height + 'px)'
|
|
424
|
+
})
|
|
425
|
+
},
|
|
426
|
+
getTextWatermark() {
|
|
427
|
+
let url = '/knowledge-api/open/knowledge/getPermissionInfo';
|
|
428
|
+
let obj = {
|
|
429
|
+
"knowledgeId": this.knowledgeId,
|
|
430
|
+
"userId": sessionStorage.getItem('_currentUserId'),
|
|
431
|
+
"mainId": sessionStorage.getItem('_mainId'),
|
|
432
|
+
"corpId": sessionStorage.getItem('_corpid')
|
|
433
|
+
}
|
|
434
|
+
this.$http.post(url, obj).then(res => {
|
|
435
|
+
console.log('getTextWatermark', res.data.data)
|
|
436
|
+
if (res.data.data) {
|
|
437
|
+
this.textWatermarkStr = res.data.data.textWatermarkStr;
|
|
438
|
+
this.isDownload = res.data.data.showDownloadBtn;
|
|
583
439
|
}
|
|
584
|
-
|
|
440
|
+
})
|
|
441
|
+
},
|
|
442
|
+
downLoad() {
|
|
443
|
+
let url = this.previewOssPath
|
|
444
|
+
if (decodeURIComponent(url) != url) {
|
|
445
|
+
url = decodeURIComponent(url)
|
|
446
|
+
}
|
|
447
|
+
const fileType = url.substring(url.lastIndexOf('.'));
|
|
448
|
+
this.$http.post('/knowledge-api/temporary-certificate/or-origin?expired=10', url, {
|
|
449
|
+
headers: {
|
|
450
|
+
"Content-Type": "application/json",
|
|
451
|
+
}
|
|
452
|
+
}).then(res => {
|
|
453
|
+
console.log('downLoad 341', res)
|
|
454
|
+
if (res.data || res.bodyText) {
|
|
455
|
+
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
456
|
+
this.copy = res.data
|
|
457
|
+
if (isMobile()) {
|
|
458
|
+
setTimeout(() => {
|
|
459
|
+
const range = document.createRange();
|
|
460
|
+
range.selectNode(document.getElementById('text'));
|
|
461
|
+
const selection = window.getSelection();
|
|
462
|
+
//移除之前选中内容
|
|
463
|
+
if (selection.rangeCount > 0) selection.removeAllRanges();
|
|
464
|
+
selection.addRange(range);
|
|
465
|
+
document.execCommand('copy');
|
|
466
|
+
selection.removeAllRanges()
|
|
467
|
+
Toast(this.$t('dragonCommon.Safaridownload'));
|
|
468
|
+
this.close()
|
|
469
|
+
}, 100)
|
|
470
|
+
} else {
|
|
471
|
+
let a = document.createElement('a')
|
|
472
|
+
a.href = res.data
|
|
473
|
+
a.download = (this.title) + fileType
|
|
474
|
+
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
475
|
+
}
|
|
476
|
+
return
|
|
477
|
+
} else {
|
|
478
|
+
// setTimeout(() =>{
|
|
479
|
+
// window.open(res.data,'下载', 'noopener')
|
|
480
|
+
// }, 2000)
|
|
481
|
+
// window.open(res.data,'下载', 'noopener')
|
|
482
|
+
if (isMobile()) {
|
|
483
|
+
const iframe = document.createElement("iframe");
|
|
484
|
+
iframe.setAttribute("hidden", "hidden");
|
|
485
|
+
iframe.onload = () => {
|
|
486
|
+
if (iframe) {
|
|
487
|
+
console.log("iframe onload....")
|
|
488
|
+
iframe.setAttribute('src', 'about:blank');
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
document.body.insertBefore(iframe, null);
|
|
492
|
+
iframe.setAttribute("src", res.data);
|
|
493
|
+
} else {
|
|
494
|
+
let a = document.createElement('a')
|
|
495
|
+
a.href = res.data
|
|
496
|
+
a.download = (this.title) + fileType
|
|
497
|
+
a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
|
|
498
|
+
}
|
|
499
|
+
this.close()
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
},
|
|
504
|
+
isPcFun() {
|
|
505
|
+
if (/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
|
|
506
|
+
this.isPc = false
|
|
585
507
|
} else {
|
|
586
|
-
|
|
508
|
+
this.isPc = true
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
clickFloder() {
|
|
512
|
+
this.$emit('previewClickFloder')
|
|
513
|
+
},
|
|
514
|
+
getOssPath(url) {
|
|
515
|
+
let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate';
|
|
516
|
+
let type = this.getFileType(url)
|
|
517
|
+
this.newFileType = type;
|
|
518
|
+
if (type === 'VIDEO' || type === 'PDF' || type === 'EXCEL' || type === 'TXT' || type === 'DOC') {
|
|
519
|
+
httpUrl += '?needEncrypt=false'
|
|
520
|
+
} else {
|
|
521
|
+
httpUrl += '?needEncrypt=true'
|
|
522
|
+
}
|
|
523
|
+
this.$http.post(httpUrl, {
|
|
524
|
+
"fileInOssPath": url
|
|
525
|
+
}).then(res => {
|
|
526
|
+
console.log('getOssPath', res)
|
|
527
|
+
if (res.data.code == '0') {
|
|
528
|
+
this.previewHref = res.data.data;
|
|
529
|
+
}
|
|
530
|
+
})
|
|
531
|
+
},
|
|
532
|
+
getFileType(url) {
|
|
533
|
+
let index = url.lastIndexOf('?')
|
|
534
|
+
let newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
535
|
+
if (index == -1) {
|
|
536
|
+
newFileInOssPath = url
|
|
537
|
+
}
|
|
538
|
+
const fileType = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'));
|
|
539
|
+
if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.MOVC' || fileType === '.mov' || fileType === '.movc') {
|
|
540
|
+
return 'VIDEO'
|
|
541
|
+
} else if (fileType === '.html') {
|
|
542
|
+
return 'HTML'
|
|
543
|
+
} else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg' || fileType === '.PNG' || fileType === '.JPG' || fileType === '.JPEG') {
|
|
544
|
+
return 'IMAGE'
|
|
545
|
+
} else if (fileType === '.docx' || fileType === '.doc') {
|
|
546
|
+
return 'DOC'
|
|
547
|
+
} else if (fileType === '.ppt' || fileType === '.pptx') {
|
|
548
|
+
return 'PPT'
|
|
549
|
+
} else if (fileType === '.pdf') {
|
|
550
|
+
return 'PDF'
|
|
551
|
+
} else if (fileType === '.txt') {
|
|
552
|
+
return 'TXT'
|
|
553
|
+
} else {
|
|
554
|
+
return 'OTHER'
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
//判断是否使用新定位组件
|
|
558
|
+
getLocationInfo() {
|
|
559
|
+
this.newVersion = "";
|
|
560
|
+
this.$http.get('/knowledge-api/knowledge/knowledge-part-location-info/list?ids=' + this.tagIds.join(',')).then(res => {
|
|
561
|
+
console.log('getLocationInfo', res)
|
|
562
|
+
this.pageChunkData = [];
|
|
563
|
+
if (res.data.code == 0) {
|
|
564
|
+
if (res.data.data && res.data.data.length > 0 && res.data.data[0].extractVersion == 'v3') {
|
|
565
|
+
this.newVersion = true;
|
|
566
|
+
if (this.newFileType !== 'PPT') {
|
|
567
|
+
this.loading = false;
|
|
568
|
+
}
|
|
569
|
+
for (let i = 0; i < res.data.data.length; i++) {
|
|
570
|
+
if (res.data.data[i].paragraphChunkInfo && res.data.data[i].paragraphChunkInfo.pageChunkData) {
|
|
571
|
+
this.pageChunkData.push(res.data.data[i].paragraphChunkInfo.pageChunkData.page_number)
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
if (this.pageChunkData.length > 1) {
|
|
575
|
+
let iframe = document.getElementsByClassName('preview_iframe_kk')
|
|
576
|
+
if (iframe && iframe.length > 0) {
|
|
577
|
+
iframe[0].style.paddingBottom = '50px'
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
} else {
|
|
581
|
+
this.newVersion = false;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
})
|
|
585
|
+
},
|
|
586
|
+
currentChange(value) {
|
|
587
|
+
this.currentPage = value - 1;
|
|
588
|
+
this.scrollPPTPage()
|
|
589
|
+
},
|
|
590
|
+
prev() {
|
|
591
|
+
if (this.currentPage == 0) {
|
|
592
|
+
return
|
|
593
|
+
}
|
|
594
|
+
this.currentPage--;
|
|
595
|
+
this.scrollPPTPage()
|
|
596
|
+
},
|
|
597
|
+
next() {
|
|
598
|
+
if (this.currentPage === (this.pageChunkData.length - 1)) {
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
this.currentPage++;
|
|
602
|
+
this.scrollPPTPage()
|
|
603
|
+
},
|
|
604
|
+
scrollPPTPage() {
|
|
605
|
+
if (this.numberPage > 0) {
|
|
606
|
+
let pageNumber = this.pageChunkData[this.currentPage];
|
|
607
|
+
let height = Math.floor(Number(this.iframeHeight.replace('px', "")));
|
|
608
|
+
let pageHeight = Math.floor(height / this.numberPage);
|
|
609
|
+
let scrollHeight = (pageNumber - 1) * pageHeight;
|
|
610
|
+
let dom = document.getElementById('drawer_content_pre');
|
|
611
|
+
if (dom) {
|
|
612
|
+
dom.scrollTo(0, scrollHeight)
|
|
613
|
+
}
|
|
587
614
|
}
|
|
588
|
-
}
|
|
589
|
-
})
|
|
590
|
-
},
|
|
591
|
-
currentChange(value) {
|
|
592
|
-
this.currentPage = value - 1;
|
|
593
|
-
this.scrollPPTPage()
|
|
594
|
-
},
|
|
595
|
-
prev() {
|
|
596
|
-
if (this.currentPage == 0) {
|
|
597
|
-
return
|
|
598
|
-
}
|
|
599
|
-
this.currentPage--;
|
|
600
|
-
this.scrollPPTPage()
|
|
601
|
-
},
|
|
602
|
-
next() {
|
|
603
|
-
if (this.currentPage === (this.pageChunkData.length - 1)) {
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
606
|
-
this.currentPage++;
|
|
607
|
-
this.scrollPPTPage()
|
|
608
|
-
},
|
|
609
|
-
scrollPPTPage() {
|
|
610
|
-
if (this.numberPage > 0) {
|
|
611
|
-
let pageNumber = this.pageChunkData[this.currentPage];
|
|
612
|
-
let height = Math.floor(Number(this.iframeHeight.replace('px', "")));
|
|
613
|
-
let pageHeight = Math.floor(height / this.numberPage);
|
|
614
|
-
let scrollHeight = (pageNumber - 1) * pageHeight;
|
|
615
|
-
let dom = document.getElementById('drawer_content_pre');
|
|
616
|
-
if (dom) {
|
|
617
|
-
dom.scrollTo(0, scrollHeight)
|
|
618
|
-
}
|
|
619
615
|
}
|
|
620
|
-
}
|
|
621
616
|
},
|
|
622
617
|
beforeDestroy() {
|
|
623
618
|
window.removeEventListener('message', this.handleIframeMessage);
|
|
@@ -627,287 +622,294 @@ export default {
|
|
|
627
622
|
|
|
628
623
|
<style lang="less" scoped>
|
|
629
624
|
#drawer_content_pre {
|
|
630
|
-
|
|
631
|
-
|
|
625
|
+
padding: 20px;
|
|
626
|
+
scroll-behavior: smooth;
|
|
632
627
|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
628
|
+
.mobile_onload_btn {
|
|
629
|
+
position: absolute;
|
|
630
|
+
right: 0;
|
|
631
|
+
bottom: 10%;
|
|
632
|
+
width: 20px;
|
|
633
|
+
height: 60px;
|
|
634
|
+
display: flex;
|
|
635
|
+
align-items: center;
|
|
636
|
+
justify-content: center;
|
|
637
|
+
cursor: pointer;
|
|
638
|
+
border-top-left-radius: 10px;
|
|
639
|
+
border-bottom-left-radius: 10px;
|
|
640
|
+
color: #366aff;
|
|
641
|
+
background: #ffffff;
|
|
642
|
+
border: 1px solid #a1b9ff;
|
|
643
|
+
font-size: 12px;
|
|
644
|
+
border-right: none;
|
|
645
|
+
text-align: center;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.pdf_positon {
|
|
649
|
+
width: 100%;
|
|
650
|
+
box-sizing: border-box;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.onload_btn {
|
|
655
|
+
width: 76px;
|
|
656
|
+
height: 26px;
|
|
639
657
|
display: flex;
|
|
640
658
|
align-items: center;
|
|
641
659
|
justify-content: center;
|
|
642
660
|
cursor: pointer;
|
|
643
|
-
|
|
644
|
-
border-
|
|
661
|
+
margin-right: 10px;
|
|
662
|
+
border-radius: 15px;
|
|
645
663
|
color: #366aff;
|
|
646
664
|
background: #ffffff;
|
|
647
665
|
border: 1px solid #a1b9ff;
|
|
648
|
-
font-size: 12px;
|
|
649
|
-
border-right: none;
|
|
650
|
-
text-align: center;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
.pdf_positon {
|
|
654
|
-
width: 100%;
|
|
655
666
|
box-sizing: border-box;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
.onload_btn {
|
|
660
|
-
width: 76px;
|
|
661
|
-
height: 26px;
|
|
662
|
-
display: flex;
|
|
663
|
-
align-items: center;
|
|
664
|
-
justify-content: center;
|
|
665
|
-
cursor: pointer;
|
|
666
|
-
margin-right: 10px;
|
|
667
|
-
border-radius: 15px;
|
|
668
|
-
color: #366aff;
|
|
669
|
-
background: #ffffff;
|
|
670
|
-
border: 1px solid #a1b9ff;
|
|
671
|
-
box-sizing: border-box;
|
|
672
667
|
}
|
|
673
668
|
|
|
674
669
|
.preview_iframe {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
670
|
+
width: 100%;
|
|
671
|
+
height: 100%;
|
|
672
|
+
box-sizing: border-box;
|
|
673
|
+
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
674
|
+
background-position: center;
|
|
675
|
+
background-size: 50px;
|
|
676
|
+
background-repeat: no-repeat;
|
|
682
677
|
}
|
|
683
678
|
|
|
684
679
|
.preview_iframe_kk {
|
|
685
|
-
|
|
686
|
-
|
|
680
|
+
width: 100%;
|
|
681
|
+
height: 100%;
|
|
687
682
|
}
|
|
683
|
+
|
|
688
684
|
.btn_footer {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
display: flex;
|
|
692
|
-
align-items: center;
|
|
693
|
-
justify-content: space-around;
|
|
694
|
-
position: absolute;
|
|
695
|
-
bottom: 0px;
|
|
696
|
-
left: 0;
|
|
697
|
-
z-index: 999;
|
|
698
|
-
background: #ffffff;
|
|
699
|
-
|
|
700
|
-
.prev,
|
|
701
|
-
.next {
|
|
702
|
-
width: 35%;
|
|
703
|
-
height: 40px;
|
|
685
|
+
width: 100%;
|
|
686
|
+
height: 60px;
|
|
704
687
|
display: flex;
|
|
705
688
|
align-items: center;
|
|
706
|
-
justify-content:
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
689
|
+
justify-content: space-around;
|
|
690
|
+
position: absolute;
|
|
691
|
+
bottom: 0px;
|
|
692
|
+
left: 0;
|
|
693
|
+
z-index: 999;
|
|
694
|
+
background: #ffffff;
|
|
710
695
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
696
|
+
.prev,
|
|
697
|
+
.next {
|
|
698
|
+
width: 35%;
|
|
699
|
+
height: 40px;
|
|
700
|
+
display: flex;
|
|
701
|
+
align-items: center;
|
|
702
|
+
justify-content: center;
|
|
703
|
+
border-radius: 50px;
|
|
704
|
+
cursor: pointer;
|
|
705
|
+
}
|
|
715
706
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
707
|
+
.prev {
|
|
708
|
+
background: #F2F5FA;
|
|
709
|
+
color: #000;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.next {
|
|
713
|
+
background: #366aff;
|
|
714
|
+
color: #ffffff;
|
|
715
|
+
}
|
|
720
716
|
}
|
|
717
|
+
|
|
721
718
|
#pagination {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
719
|
+
.total-class {
|
|
720
|
+
margin-right: 13px;
|
|
721
|
+
font-weight: 400;
|
|
722
|
+
}
|
|
726
723
|
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
724
|
+
position: absolute;
|
|
725
|
+
bottom: 0px;
|
|
726
|
+
right: 0;
|
|
727
|
+
width: 100%;
|
|
728
|
+
display: flex;
|
|
729
|
+
align-items: center;
|
|
730
|
+
justify-content: center;
|
|
731
|
+
height: 50px;
|
|
732
|
+
background-color: white;
|
|
733
|
+
box-shadow: 0px 0px 18px 0px rgba(29, 55, 129, 0.07);
|
|
734
|
+
border-radius: 5px;
|
|
735
|
+
z-index: 1000;
|
|
739
736
|
|
|
740
737
|
|
|
741
738
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
739
|
+
/deep/.el-pagination {
|
|
740
|
+
margin-right: 110px;
|
|
741
|
+
}
|
|
745
742
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
743
|
+
/deep/.el-pager {
|
|
744
|
+
background: #EDF0F6;
|
|
745
|
+
border-radius: 15px;
|
|
746
|
+
}
|
|
750
747
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
748
|
+
/deep/.el-pagination.is-background .btn-next {
|
|
749
|
+
width: 30px;
|
|
750
|
+
height: 30px;
|
|
751
|
+
background: #EDF0F6;
|
|
752
|
+
border-radius: 50%;
|
|
753
|
+
}
|
|
757
754
|
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
755
|
+
/deep/.el-pagination .btn-next {
|
|
756
|
+
width: 30px;
|
|
757
|
+
height: 30px;
|
|
758
|
+
background: #EDF0F6;
|
|
759
|
+
border-radius: 50%;
|
|
760
|
+
padding-left: 0;
|
|
761
|
+
margin-left: 5px;
|
|
762
|
+
}
|
|
766
763
|
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
764
|
+
/deep/.el-pagination .btn-prev {
|
|
765
|
+
width: 30px;
|
|
766
|
+
height: 30px;
|
|
767
|
+
background: #EDF0F6;
|
|
768
|
+
border-radius: 50%;
|
|
769
|
+
padding-right: 0;
|
|
770
|
+
margin-right: 5px;
|
|
771
|
+
}
|
|
775
772
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
773
|
+
/deep/.el-pagination button {
|
|
774
|
+
padding: 0;
|
|
775
|
+
min-width: 30px;
|
|
776
|
+
}
|
|
780
777
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
778
|
+
/deep/.el-pager li {
|
|
779
|
+
background: #EDF0F6;
|
|
780
|
+
height: 30px;
|
|
781
|
+
min-width: 30px;
|
|
782
|
+
line-height: 30px;
|
|
783
|
+
font-size: 12px;
|
|
784
|
+
color: #717b90;
|
|
785
|
+
}
|
|
789
786
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
787
|
+
/deep/.el-pager li:first-child {
|
|
788
|
+
border-bottom-left-radius: 15px !important;
|
|
789
|
+
border-top-left-radius: 15px !important;
|
|
790
|
+
}
|
|
794
791
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
792
|
+
/deep/.el-pager li:last-child {
|
|
793
|
+
border-top-right-radius: 15px !important;
|
|
794
|
+
border-bottom-right-radius: 15px !important;
|
|
795
|
+
}
|
|
799
796
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
797
|
+
/deep/.el-pager li.active {
|
|
798
|
+
width: 30px;
|
|
799
|
+
height: 30px;
|
|
800
|
+
min-width: 30px;
|
|
801
|
+
background: #366AFF;
|
|
802
|
+
border: 3px solid #A1B9FF;
|
|
803
|
+
border-radius: 50%;
|
|
804
|
+
line-height: 24px;
|
|
805
|
+
color: white;
|
|
806
|
+
}
|
|
810
807
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
808
|
+
/deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
|
|
809
|
+
background: #366AFF;
|
|
810
|
+
}
|
|
814
811
|
}
|
|
812
|
+
|
|
815
813
|
.preview_iframe_html {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
/deep/.lake-content {
|
|
824
|
-
margin-left: 10px;
|
|
825
|
-
}
|
|
814
|
+
width: 100%;
|
|
815
|
+
height: 100%;
|
|
816
|
+
overflow-y: scroll;
|
|
817
|
+
text-align: left;
|
|
818
|
+
box-sizing: border-box;
|
|
819
|
+
padding: 16px;
|
|
826
820
|
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
821
|
+
/deep/.lake-content {
|
|
822
|
+
margin-left: 10px;
|
|
823
|
+
}
|
|
830
824
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
825
|
+
/deep/a:link {
|
|
826
|
+
color: #0000ee !important;
|
|
827
|
+
}
|
|
834
828
|
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
829
|
+
/deep/a:visited {
|
|
830
|
+
color: #0000ee !important;
|
|
831
|
+
}
|
|
838
832
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
833
|
+
/deep/a:hover {
|
|
834
|
+
color: #0000ee !important;
|
|
835
|
+
}
|
|
842
836
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
list-style-type: auto !important;
|
|
847
|
-
}
|
|
837
|
+
/deep/a:active {
|
|
838
|
+
color: #0000ee !important;
|
|
839
|
+
}
|
|
848
840
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
841
|
+
/deep/li:not(.rich-text-li),
|
|
842
|
+
ol:not(.list-paddingleft-2),
|
|
843
|
+
ul:not(.list-paddingleft-2) {
|
|
844
|
+
list-style-type: auto !important;
|
|
845
|
+
}
|
|
852
846
|
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
847
|
+
/deep/img {
|
|
848
|
+
width: 100%;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/deep/.ne-table {
|
|
852
|
+
width: 100% !important;
|
|
853
|
+
}
|
|
856
854
|
}
|
|
857
855
|
|
|
858
856
|
.footer {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
857
|
+
width: calc(100% - 40px);
|
|
858
|
+
height: 50px;
|
|
859
|
+
display: flex;
|
|
860
|
+
align-items: center;
|
|
861
|
+
justify-content: space-between;
|
|
862
|
+
cursor: pointer;
|
|
863
|
+
padding: 0 20px;
|
|
864
|
+
border-bottom: 1px solid #cccccc;
|
|
867
865
|
}
|
|
868
866
|
|
|
869
867
|
.loading_img {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
868
|
+
display: flex;
|
|
869
|
+
align-items: center;
|
|
870
|
+
justify-content: center;
|
|
871
|
+
width: 100%;
|
|
872
|
+
height: 100%;
|
|
873
|
+
position: absolute;
|
|
874
|
+
top: 0;
|
|
875
|
+
left: 0;
|
|
876
|
+
background: #FFF;
|
|
877
|
+
|
|
878
|
+
img {
|
|
879
|
+
width: 50px;
|
|
880
|
+
height: 50px;
|
|
881
|
+
}
|
|
884
882
|
}
|
|
885
883
|
|
|
886
884
|
.libang_head {
|
|
887
|
-
|
|
885
|
+
height: 64px !important;
|
|
888
886
|
}
|
|
889
|
-
|
|
890
|
-
|
|
887
|
+
|
|
888
|
+
.has_btn_libang_head {
|
|
889
|
+
height: 85px !important;
|
|
891
890
|
}
|
|
892
|
-
|
|
893
|
-
|
|
891
|
+
|
|
892
|
+
.has_btn_head {
|
|
893
|
+
height: 60px !important;
|
|
894
894
|
}
|
|
895
|
+
|
|
895
896
|
.drawer-header {
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
.btn_position {
|
|
902
|
-
position: absolute;
|
|
903
|
-
top: -34px;
|
|
904
|
-
left: 12px;
|
|
905
|
-
}
|
|
897
|
+
width: 100%;
|
|
898
|
+
height: 50px;
|
|
899
|
+
cursor: pointer;
|
|
900
|
+
padding: 6px 20px;
|
|
901
|
+
border-bottom: 1px solid #cccccc;
|
|
906
902
|
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
903
|
+
.btn_position {
|
|
904
|
+
position: absolute;
|
|
905
|
+
top: -34px;
|
|
906
|
+
left: 12px;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.header-btn {
|
|
910
|
+
display: flex;
|
|
911
|
+
align-items: center;
|
|
912
|
+
justify-content: space-between;
|
|
911
913
|
|
|
912
914
|
.header-right {
|
|
913
915
|
display: flex;
|
|
@@ -930,95 +932,106 @@ justify-content: space-between;
|
|
|
930
932
|
margin-right: 10px;
|
|
931
933
|
font-size: 14px;
|
|
932
934
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
935
|
+
i {
|
|
936
|
+
font-size: 14px;
|
|
937
|
+
margin-right: 5px;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
938
940
|
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
941
|
+
.summaryActiveBtn {
|
|
942
|
+
background: #366aff !important;
|
|
943
|
+
color: #ffffff !important;
|
|
944
|
+
}
|
|
943
945
|
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
946
|
+
.chat {
|
|
947
|
+
flex: none;
|
|
948
|
+
height: 26px;
|
|
949
|
+
padding: 0 8px;
|
|
950
|
+
background: #ffffff;
|
|
951
|
+
display: flex;
|
|
952
|
+
align-items: center;
|
|
953
|
+
justify-content: center;
|
|
954
|
+
box-sizing: border-box;
|
|
955
|
+
border: 1px solid #a1b9ff;
|
|
956
|
+
border-radius: 15px 0px 15px 15px;
|
|
957
|
+
cursor: pointer;
|
|
958
|
+
color: #366aff;
|
|
959
|
+
margin-right: 10px;
|
|
960
|
+
font-size: 14px;
|
|
959
961
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
962
|
+
i {
|
|
963
|
+
font-size: 14px;
|
|
964
|
+
margin-right: 5px;
|
|
965
|
+
margin-top: 2px;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
966
968
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
969
|
+
.chat_active {
|
|
970
|
+
background: #366aff !important;
|
|
971
|
+
color: #FFFFFF !important;
|
|
972
|
+
}
|
|
970
973
|
}
|
|
971
|
-
}
|
|
972
974
|
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
975
|
+
.header_title {
|
|
976
|
+
font-size: 14px;
|
|
977
|
+
height: 100%;
|
|
978
|
+
|
|
979
|
+
.header_close {
|
|
980
|
+
display: flex;
|
|
981
|
+
align-items: center;
|
|
982
|
+
justify-content: space-between;
|
|
983
|
+
line-height: 26px;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.title_left {
|
|
987
|
+
white-space: nowrap;
|
|
988
|
+
/* 确保文本不会换行 */
|
|
989
|
+
overflow: hidden;
|
|
990
|
+
/* 隐藏超出容器的文本 */
|
|
991
|
+
text-overflow: ellipsis;
|
|
992
|
+
/* 当文本超出容器时显示省略号 */
|
|
993
|
+
margin-right: 8px;
|
|
994
|
+
text-align: left;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.top-header {
|
|
998
|
+
display: flex;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
justify-content: flex-end;
|
|
1001
|
+
margin-bottom: 6px;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.header_floder {
|
|
1005
|
+
display: flex;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
line-height: 26px;
|
|
1008
|
+
text-align: left;
|
|
1009
|
+
|
|
1010
|
+
i {
|
|
1011
|
+
margin: 0 5px;
|
|
1012
|
+
color: #366aff;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.header_top {
|
|
1017
|
+
height: 100%;
|
|
1018
|
+
display: flex;
|
|
1019
|
+
align-items: center;
|
|
1020
|
+
justify-content: space-between;
|
|
1021
|
+
}
|
|
1010
1022
|
}
|
|
1011
|
-
}
|
|
1012
1023
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1024
|
+
|
|
1025
|
+
.has_btn_libang_content_pre {
|
|
1026
|
+
height: calc(100% - 85px) !important;
|
|
1015
1027
|
}
|
|
1028
|
+
|
|
1016
1029
|
@media screen and (max-width: 767px) {
|
|
1017
1030
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1031
|
+
/* 这里是针对移动设备的css样式设置 */
|
|
1032
|
+
/deep/.el-drawer__body {
|
|
1033
|
+
height: 100%;
|
|
1034
|
+
}
|
|
1022
1035
|
|
|
1023
1036
|
#drawer_content_pre {
|
|
1024
1037
|
overflow: auto;
|
|
@@ -1026,67 +1039,69 @@ justify-content: space-between;
|
|
|
1026
1039
|
background: #FFF;
|
|
1027
1040
|
}
|
|
1028
1041
|
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1042
|
+
.libang_content_pre {
|
|
1043
|
+
height: calc(100% - 64px) !important;
|
|
1044
|
+
}
|
|
1032
1045
|
}
|
|
1033
1046
|
|
|
1034
1047
|
@media screen and (min-width: 768px) {
|
|
1035
1048
|
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1049
|
+
/* 这里是针对pc设备的css样式设置 */
|
|
1050
|
+
/deep/.el-drawer__body {
|
|
1051
|
+
height: 100%;
|
|
1052
|
+
}
|
|
1040
1053
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1054
|
+
#drawer_content_pre {
|
|
1055
|
+
overflow: auto;
|
|
1056
|
+
height: calc(100% - 50px);
|
|
1057
|
+
background: #FFF;
|
|
1058
|
+
}
|
|
1046
1059
|
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1060
|
+
.libang_content_pre {
|
|
1061
|
+
height: calc(100% - 64px) !important;
|
|
1062
|
+
}
|
|
1050
1063
|
}
|
|
1051
1064
|
|
|
1052
1065
|
@media screen and (min-width: 1200px) {
|
|
1053
1066
|
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1067
|
+
/* 这里是针对pc设备的css样式设置 */
|
|
1068
|
+
.el-drawer__wrapper {
|
|
1069
|
+
width: 55%;
|
|
1070
|
+
left: calc(100vw - 55%);
|
|
1071
|
+
right: 0;
|
|
1059
1072
|
|
|
1060
|
-
|
|
1061
|
-
|
|
1073
|
+
/deep/.pdf-preview-drawer {
|
|
1074
|
+
width: 100% !important;
|
|
1075
|
+
}
|
|
1062
1076
|
}
|
|
1063
|
-
}
|
|
1064
1077
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1078
|
+
/deep/.el-drawer__body {
|
|
1079
|
+
height: 100%;
|
|
1080
|
+
}
|
|
1068
1081
|
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1082
|
+
#drawer_content_pre {
|
|
1083
|
+
overflow: auto;
|
|
1084
|
+
height: calc(100% - 50px);
|
|
1085
|
+
background: #FFF;
|
|
1086
|
+
}
|
|
1074
1087
|
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1088
|
+
.libang_content_pre {
|
|
1089
|
+
height: calc(100% - 64px) !important;
|
|
1090
|
+
}
|
|
1078
1091
|
}
|
|
1079
1092
|
</style>
|
|
1080
1093
|
<style lang="less">
|
|
1081
1094
|
.pdf-preview-drawer {
|
|
1082
|
-
|
|
1095
|
+
overflow: visible !important;
|
|
1083
1096
|
}
|
|
1097
|
+
|
|
1084
1098
|
.libang_content_pre {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1099
|
+
.change_scale {
|
|
1100
|
+
top: 64px !important;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.float_intelligentSummary {
|
|
1104
|
+
top: 74px !important;
|
|
1105
|
+
}
|
|
1091
1106
|
}
|
|
1092
1107
|
</style>
|