Commit 60b46435 authored by 华国豪's avatar 华国豪 🙄

‘特色’

parent 3f5418aa
......@@ -8,7 +8,7 @@
<div class="travelControlTrip detail-box">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<input type="button" class="travelControlTripBtn" value="下载PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<input style="display:none" type="button" class="travelControlTripBtn" value="下载WORD" @click="gernalFeature()" /><!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<input type="button" class="travelControlTripBtn" value="下载WORD" @click="gernalFeature()" /><!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
<div id="pdfNode">
......@@ -659,7 +659,7 @@
html2Canvas(x,{
useCORS:true,
scale:0.7,
backgroundColor:'#FFFFFF'
backgroundColor:'#FFFFFF',
}).then((canvas) => {
if(canvas){
var context = canvas.getContext('2d')
......@@ -669,22 +669,22 @@
context.imageSmoothingEnabled = false
var image = new Image();
image.src = canvas.toDataURL("image/png");
$.ajax({
url: 'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID',
type: "POST",
data: {myfile: image.src},
datatype:"jsonP",
success: function (data) {
console.log("上传成功",data);
},
error: function () {
console.log("上传失败");
}
});
// this.uploadImg(tcid,msg, res=>{
// //console.log(res)
document.body.appendChild(image)
// $.ajax({
// url: 'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID1' + tcid,
// type: "POST",
// data: {myfile: image.src},
// datatype:"jsonP",
// success: function (data) {
// // console.log("上传成功",data);
// },
// error: function () {
// // console.log("上传失败");
// }
// });
// this.uploadImg(tcid,{'myfile': image.src}, res=>{
// console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment