Commit 9499ee6d authored by youjie's avatar youjie

no message

parent 7f077e5e
......@@ -41,19 +41,21 @@
<div class="travelControlTrip">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<el-row style="padding: 0 0 20px 0;box-shadow: 1px 10px 10px#e6e6e6;">
<el-col :span="14">
<el-dropdown trigger="click">
<span class="el-dropdown-link">行程下载
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="travelControlDropDown">
<el-dropdown-item
@click.native="toPDF_2023(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')">
2023版PDF
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-checkbox v-model="isShowTime">显示行程日期</el-checkbox>
<el-col :span="14" class="row-aic">
<div class="el-dropdown-link" style=" height: 30px;
line-height: 30px;
background-color: #E95252;
color: #fff;
font-size: 12px;
width: 80px;
text-align: center;
border-radius: 4px;
cursor: pointer;
margin-left: 20px;"
@click="toPDF_2023(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')">
2023版PDF
</div>
<el-checkbox class="marginL11" v-model="isShowTime">显示行程日期</el-checkbox>
</el-col>
</el-row>
<div id="pdfNode" class="LeaveGroupDownload-form">
......@@ -292,17 +294,21 @@
"msg": msg
}
}).then(res => {
if (res.data.resultCode === 1) {
if (res.data.resultCode === 1&&res.data.data) {
let sign = title + "V2"
const a = document.createElement('a');
a.setAttribute('download', '');
let path = res.data.data
a.setAttribute('href', 'https://microservice.oytour.com/task/create/pdf/'+encodeURIComponent(path));
a.click();
setTimeout(()=>{
this.pdfLoading = false
},20000)
} else {
this.pdfLoading = false
this.$message.error('PDF获取失败');
}
this.pdfLoading = false
}).catch(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