mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 21:34:16 +00:00
update the download function
This commit is contained in:
@@ -390,6 +390,14 @@
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
downloadReport(){
|
||||
let canvas = document.getElementById('myCanvas')
|
||||
var dataString = canvas.toDataURL("image/png");
|
||||
var link = document.createElement("a");
|
||||
link.download = 'image';
|
||||
link.href = dataString;
|
||||
link.click();
|
||||
},
|
||||
confirmInvoice () {
|
||||
this.loading_btn = true
|
||||
axios
|
||||
|
||||
Reference in New Issue
Block a user