mirror of
https://github.com/dataease/dataease.git
synced 2026-05-22 21:38:32 +08:00
feat(X-Pack): 定时报告增加水印设置
This commit is contained in:
@@ -273,7 +273,16 @@ export function initCanvasDataPrepare(dvId, busiFlag, callBack) {
|
||||
let attachInfo = { source: 'main' }
|
||||
if (dvMainStore.canvasAttachInfo && !!dvMainStore.canvasAttachInfo.taskId) {
|
||||
attachInfo = { source: 'report', taskId: dvMainStore.canvasAttachInfo.taskId }
|
||||
const showWatermarkExist =
|
||||
dvMainStore.canvasAttachInfo.hasOwnProperty('showWatermark') &&
|
||||
typeof dvMainStore.canvasAttachInfo.showWatermark !== 'undefined' &&
|
||||
dvMainStore.canvasAttachInfo.showWatermark !== null
|
||||
if (showWatermarkExist) {
|
||||
const enable = dvMainStore.canvasAttachInfo.showWatermark === 'true'
|
||||
attachInfo['showWatermark'] = enable
|
||||
}
|
||||
}
|
||||
|
||||
method(dvId, busiFlagCustom, attachInfo).then(res => {
|
||||
const canvasInfo = res.data
|
||||
const watermarkInfo = {
|
||||
|
||||
Reference in New Issue
Block a user