Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
ea8c0c0c
Commit
ea8c0c0c
authored
Feb 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
69e20e1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
9 deletions
+29
-9
confirmationOrderDownLoad.vue
src/components/confirmationOrderDownLoad.vue
+29
-9
No files found.
src/components/confirmationOrderDownLoad.vue
View file @
ea8c0c0c
...
...
@@ -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
type=
"button"
class=
"travelControlTripBtn"
value=
"下载
WORD"
@
click=
"gernalFeature()"
/>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<input
type=
"button"
style=
"width: auto !important;"
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"
>
...
...
@@ -642,6 +642,17 @@
},
methods
:
{
gernalFeature
(){
$
.
ajax
({
url
:
'http://upload.oytour.com/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
type
:
"POST"
,
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
// console.log("上传成功",data);
},
error
:
function
()
{
// console.log("上传失败");
}
});
let
tcid
=
this
.
$route
.
query
.
tcid
;
document
.
querySelector
(
"#gernalCanvas"
).
querySelectorAll
(
'img'
).
forEach
(
x
=>
{
if
(
x
.
src
.
indexOf
(
'http'
)
!=-
1
){
...
...
@@ -655,6 +666,7 @@
cName
=
'.travle_page'
}
if
(
cName
!=
''
){
let
allNum
=
1
document
.
querySelectorAll
(
cName
).
forEach
(
x
=>
{
html2Canvas
(
x
,{
useCORS
:
true
,
...
...
@@ -669,11 +681,14 @@
context
.
imageSmoothingEnabled
=
false
var
image
=
new
Image
();
image
.
src
=
canvas
.
toDataURL
(
"image/png"
);
document
.
body
.
appendChild
(
image
)
//
document.body.appendChild(image)
$
.
ajax
({
url
:
'http://upload.oytour.com/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/
TCID1
'
+
tcid
,
url
:
'http://upload.oytour.com/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
type
:
"POST"
,
data
:
{
myfile
:
image
.
src
},
data
:
{
myfile
:
image
.
src
,
isDelete
:
1
,
},
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
// console.log("上传成功",data);
...
...
@@ -682,11 +697,16 @@
// console.log("上传失败");
}
});
this
.
uploadImg
(
tcid
,{
'myfile'
:
image
.
src
},
res
=>
{
console
.
log
(
res
)
},
err
=>
{
console
.
log
(
"GHJK"
,
err
);
})
// this.uploadImg(tcid,{'myfile': image.src}, res=>{
// console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
if
(
allNum
!==
document
.
querySelectorAll
(
cName
).
length
)
{
allNum
+=
1
}
else
{
this
.
ToWord
()
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment