参数项收集清单下载文件去除水印
This commit is contained in:
@@ -652,7 +652,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<uploadFileChangeDown ref="uploadFile" @uploadSuccess="uploadSuccess"
|
<uploadFileChangeDown ref="uploadFile" @uploadSuccess="uploadSuccess"
|
||||||
:detailDate='detailDate'></uploadFileChangeDown>
|
:detailDate='detailDate' watermark='download'></uploadFileChangeDown>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -667,6 +667,10 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: {},
|
default: {},
|
||||||
require: true
|
require: true
|
||||||
|
},
|
||||||
|
watermark: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ import { mapGetters } from 'vuex'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'file',
|
name: 'file',
|
||||||
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate'],
|
props: ['disableds', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate','watermark'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -91,7 +91,11 @@ import { mapGetters } from 'vuex'
|
|||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
download() {
|
download() {
|
||||||
downloadFile('/sys/common/downLoadFile', this.template.templateName, { id: this.template.templateId })
|
if(this.watermark == 'download'){
|
||||||
|
downloadFile('/sys/common/downLoadFileNOMark', this.template.templateName, { id: this.template.templateId })
|
||||||
|
} else {
|
||||||
|
downloadFile('/sys/common/downLoadFile', this.template.templateName, { id: this.template.templateId })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
perentHandleFunc(data) {
|
perentHandleFunc(data) {
|
||||||
this.myfileList = data
|
this.myfileList = data
|
||||||
@@ -220,7 +224,11 @@ import { mapGetters } from 'vuex'
|
|||||||
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
// window.open(url, '_blank')
|
// window.open(url, '_blank')
|
||||||
// } else {
|
// } else {
|
||||||
|
if(this.watermark == 'download'){
|
||||||
|
downloadFile('/sys/common/downLoadFileNOMark', fileQuery.fileName, { id: fileQuery.id })
|
||||||
|
}else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
|
}
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user