Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- saveMapAsReceipt(callback) {
- console.log("test");
- this.printPlugin.printMap('A4Portrait page', 'Miles');
- this.routingMap.on('easyPrint-finished', e => {
- console.log(e.event);
- var reader = new FileReader();
- reader.readAsDataURL(e.event);
- reader.onloadend = function() {
- base64data = reader.result;
- console.log(base64data);
- this.receipt_source = base64data;
- }
- callback();
- });
- },
- submit : function(){
- console.log("test hehe");
- this.saveMapAsReceipt(this.$refs.update.submit());
- console.log("hehe");
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement