askbot-dragon 1.8.32-beta → 1.8.34-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
package/src/assets/js/common.js
CHANGED
|
@@ -86,23 +86,23 @@ function newInitWaterMark(elId, textValue) {
|
|
|
86
86
|
|
|
87
87
|
watermark_cols: 0, //水印列数
|
|
88
88
|
|
|
89
|
-
watermark_x_space:
|
|
89
|
+
watermark_x_space: 60, //水印x轴间隔
|
|
90
90
|
|
|
91
|
-
watermark_y_space:
|
|
91
|
+
watermark_y_space: 90, //水印y轴间隔
|
|
92
92
|
|
|
93
93
|
watermark_color: "#949494", //水印字体颜色
|
|
94
94
|
|
|
95
95
|
watermark_alpha: 0.15, //水印透明度
|
|
96
96
|
|
|
97
|
-
watermark_fontsize: "
|
|
97
|
+
watermark_fontsize: "24px", //水印字体大小
|
|
98
98
|
|
|
99
|
-
watermark_font: "
|
|
99
|
+
watermark_font: '-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif', //水印字体
|
|
100
100
|
|
|
101
|
-
watermark_width:
|
|
101
|
+
watermark_width: 150, //水印宽度
|
|
102
102
|
|
|
103
103
|
watermark_height: 60, //水印长度
|
|
104
104
|
|
|
105
|
-
watermark_angle:
|
|
105
|
+
watermark_angle: 15 //水印倾斜度数
|
|
106
106
|
|
|
107
107
|
};
|
|
108
108
|
let textWatermarkValue = textValue;
|
|
@@ -238,7 +238,7 @@ function newInitWaterMark(elId, textValue) {
|
|
|
238
238
|
|
|
239
239
|
mask_div.style.textAlign = "center";
|
|
240
240
|
|
|
241
|
-
mask_div.style.width =
|
|
241
|
+
mask_div.style.width = 'auto';
|
|
242
242
|
|
|
243
243
|
mask_div.style.height = defaultSettings.watermark_width + "px";
|
|
244
244
|
|
|
@@ -307,9 +307,6 @@ export default {
|
|
|
307
307
|
// 将文本 div 添加到覆盖层中
|
|
308
308
|
let pagesDiv = document.getElementById('canvas-wrapper' + pageIndex);
|
|
309
309
|
pagesDiv.appendChild(textDiv)
|
|
310
|
-
if (this.textWatermarkStr){
|
|
311
|
-
newInitWaterMark('canvas-wrapper' + pageIndex, this.textWatermarkStr)
|
|
312
|
-
}
|
|
313
310
|
})
|
|
314
311
|
this.renderInProgress = false;
|
|
315
312
|
this.$set(pageData,'loading',false)
|
|
@@ -645,6 +642,9 @@ export default {
|
|
|
645
642
|
console.log('ossPath',this.ossPath)
|
|
646
643
|
// this.clearPages();
|
|
647
644
|
// this.loadPdf();
|
|
645
|
+
if (this.textWatermarkStr){
|
|
646
|
+
newInitWaterMark('pdfViewPage', this.textWatermarkStr)
|
|
647
|
+
}
|
|
648
648
|
},
|
|
649
649
|
beforeDestroy() {
|
|
650
650
|
window.removeEventListener("resize", this.onResize);
|
|
@@ -240,6 +240,10 @@ export default {
|
|
|
240
240
|
userId: {
|
|
241
241
|
type: String,
|
|
242
242
|
default: ''
|
|
243
|
+
},
|
|
244
|
+
isLining:{
|
|
245
|
+
type: Boolean,
|
|
246
|
+
default: false
|
|
243
247
|
}
|
|
244
248
|
},
|
|
245
249
|
components: {
|
|
@@ -310,6 +314,9 @@ export default {
|
|
|
310
314
|
url = this.watermark.textWatermarkValue ? (url += '&textWatermarkValue=' + this.watermark.textWatermarkValue) : url
|
|
311
315
|
url = this.watermark.visitorWatermarkValue ? (url += '&visitorWatermarkValue=' + this.watermark.visitorWatermarkValue) : url
|
|
312
316
|
}
|
|
317
|
+
if (this.isLining){
|
|
318
|
+
url += '&isLining=true'
|
|
319
|
+
}
|
|
313
320
|
let mainId = sessionStorage.getItem('_mainId')
|
|
314
321
|
let userId = sessionStorage.getItem('_currentUserId')
|
|
315
322
|
let test = process.env.VUE_APP_ENV === 'production'
|