askbot-dragon 1.5.34-beta → 1.5.36-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
CHANGED
|
@@ -245,9 +245,9 @@ export default {
|
|
|
245
245
|
this.$refs.previewPdf.fileType = type
|
|
246
246
|
this.$refs.previewPdf.tagIds = item.tagIds
|
|
247
247
|
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
|
|
248
|
-
let
|
|
249
|
-
if (
|
|
250
|
-
this.$refs.previewPdf.fileName =
|
|
248
|
+
let fileName = url.substring(url.lastIndexOf('.'))
|
|
249
|
+
if (fileName === '.doc' || fileName === '.docx'){
|
|
250
|
+
this.$refs.previewPdf.fileName = fileName;
|
|
251
251
|
} else {
|
|
252
252
|
this.$refs.previewPdf.fileName = '';
|
|
253
253
|
}
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
if (this.isMessageRecord) {
|
|
139
139
|
this.scale = Math.round(this.$refs.pdfView.clientWidth / pdfResloute.pageWidth * 100) / 100
|
|
140
140
|
} else {
|
|
141
|
-
this.scale =
|
|
141
|
+
this.scale = 2
|
|
142
142
|
}
|
|
143
143
|
// 从后端获取到当前分片后所有的pdf页码,初始化数组,数组下{} 对应每页pdf文件
|
|
144
144
|
this.pdfUrl = pdfResloute.publicPageFileUrl.substring(0, pdfResloute.publicPageFileUrl.lastIndexOf('/') + 1)
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
379
379
|
|
|
380
380
|
if (this.transformSalce !== null) {
|
|
381
381
|
if (this.fileName){
|
|
382
|
-
this.contentView.style.transform = `scale(${this.transformSalce + 0.
|
|
382
|
+
this.contentView.style.transform = `scale(${this.transformSalce + 0.1}, ${this.transformSalce + 0.1})`;
|
|
383
383
|
if (findPage){
|
|
384
384
|
let AllLines = findPage.allLines;
|
|
385
385
|
let postionArr = []
|
|
@@ -387,9 +387,9 @@ export default {
|
|
|
387
387
|
postionArr = AllLines[0].lines[0].location
|
|
388
388
|
}
|
|
389
389
|
if (this.isPC){
|
|
390
|
-
this.contentView.style.left = (postionArr[0] * this.scale * (this.transformSalce + 0.
|
|
390
|
+
this.contentView.style.left = (postionArr[0] * this.scale * (this.transformSalce + 0.1) * -1) / 2 + 'px';
|
|
391
391
|
} else {
|
|
392
|
-
this.contentView.style.left = (postionArr[0] * this.scale * (this.transformSalce + 0.
|
|
392
|
+
this.contentView.style.left = (postionArr[0] * this.scale * (this.transformSalce + 0.1) * -1) + 10 + 'px';
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
} else {
|