PrintFormPDF(data) {
this.$API
.UserPrintPDF(data)
.then((res) => {
this.$nextTick(() => {
let oldsplit = res.data.Data.split("/"); // 用“/”分隔
oldsplit.splice(0, 1); //删除第一个
let newsplit = oldsplit;
let newPdf = newsplit.join("/"); //数组转字符串
let Pdffile = { url: this.$FWurl + newPdf }; //最后的url地址
window.open(Pdffile.url, "_blank");
});
})
.catch((err) => {
this.$notify.error({
title: "消息提示",
message: err,
});
});
},
07-04
2398
