Commit 9499ee6d authored by youjie's avatar youjie

no message

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