|
@@ -181,12 +181,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' }))
|
|
|
- document.getElementById('print').innerHTML = '<iframe id="printf" name="printf" src="' + url + '" hidden></iframe>'
|
|
|
+ document.getElementById('print').innerHTML = '<iframe id="printfbwod" name="printfbwod" src="' + url + '" hidden></iframe>'
|
|
|
if (type == 'preview') { // 预览
|
|
|
window.open(url)
|
|
|
} else if (type == 'print') { // 打印
|
|
|
- window.frames['printf'].focus()
|
|
|
- window.frames['printf'].print()
|
|
|
+ window.frames['printfbwod'].focus()
|
|
|
+ window.frames['printfbwod'].print()
|
|
|
}
|
|
|
},
|
|
|
// 基本信息
|