|
@@ -576,32 +576,7 @@ export default{
|
576
|
576
|
},
|
577
|
577
|
saveimg(){
|
578
|
578
|
|
579
|
|
- // html2canvas(this.$refs.imageWrapper).then(canvas =>{
|
580
|
|
- // // const imageSrc = canvas.toDataURL();
|
581
|
|
- // const imageUrl = canvas.toDataURL("image/png");
|
582
|
|
- // console.log('5555',imageUrl);
|
583
|
|
- // // // const base = this.url.split(',')[1]
|
584
|
|
- // // // console.log('2222',base);
|
585
|
|
- // const blob = this.dataURLtoBlob(imageUrl)
|
586
|
|
- // console.log('4444',blob);
|
587
|
|
- // this.url = URL.createObjectURL(blob);
|
588
|
|
- // console.log('1111',urls);
|
589
|
|
- // var link= document.createElement("a");
|
590
|
|
- // //将生成的图片url赋值给a标签的href属性
|
591
|
|
- // link.href = this.url;
|
592
|
|
- // //设置下载的文件名
|
593
|
|
- // link.download = "页面截图";
|
594
|
|
- // // 将a标签插入dom中
|
595
|
|
- // document.body.appendChild(link);
|
596
|
|
- // //模拟点击事件触发下载
|
597
|
|
- // link.click();
|
598
|
|
- // // 完成之后销毁创建的a标签
|
599
|
|
- // document.body.removeChild(link);
|
600
|
|
-
|
601
|
|
- // })
|
602
|
|
- // console.log('3333');
|
603
|
|
- // const editedHTML=this.editor.getContents();
|
604
|
|
- // console.log('6666',editedHTML);
|
|
579
|
+
|
605
|
580
|
},
|
606
|
581
|
chakan(){
|
607
|
582
|
console.log('22222',);
|
|
@@ -620,23 +595,13 @@ export default{
|
620
|
595
|
}
|
621
|
596
|
},
|
622
|
597
|
created(){
|
623
|
|
- // if(this.fuzhuV_num ==1 || this.append ==false){
|
624
|
|
- // return this.xuanzhuan =0
|
625
|
|
- // }
|
|
598
|
+
|
626
|
599
|
},
|
627
|
600
|
computed:{
|
628
|
|
- // editor() {
|
629
|
|
- // return this.$refs.myQuillEditor.quill;
|
630
|
|
- // }
|
|
601
|
+
|
631
|
602
|
},
|
632
|
603
|
mounted(){
|
633
|
|
- // this.editor = new Quill(this.$refs.imageWrapper, {
|
634
|
|
- // modules:{toolbar:false},
|
635
|
|
- // theme: 'snow',
|
636
|
|
- // });
|
637
|
|
- // console.log('111111',this.fileList);
|
638
|
|
- // this.$refs.text_cc.addEventListener('mousemove',this.A_mousedow)
|
639
|
|
- // this.$refs.text_cc.addEventListener('mousemove',this.A_moouseup)
|
|
604
|
+
|
640
|
605
|
}
|
641
|
606
|
|
642
|
607
|
}
|