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
08c61845
Commit
08c61845
authored
Feb 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'行程下载'
parent
62b98efc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
confirmationOrderDownLoad.vue
src/components/confirmationOrderDownLoad.vue
+8
-3
index.js
src/plug/index.js
+4
-5
No files found.
src/components/confirmationOrderDownLoad.vue
View file @
08c61845
...
...
@@ -642,9 +642,11 @@
},
methods
:
{
gernalFeature
(){
this
.
pdfLoading
=
true
;
let
tcid
=
this
.
$route
.
query
.
tcid
;
let
UploadUrl
=
this
.
domainManager
().
UploadUrl
$
.
ajax
({
url
:
'http://127.0.0.1:8120
/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
url
:
UploadUrl
+
'
/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
type
:
"POST"
,
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
...
...
@@ -683,7 +685,7 @@
image
.
src
=
canvas
.
toDataURL
(
"image/png"
);
// document.body.appendChild(image) upload.oytour.com
$
.
ajax
({
url
:
'http://127.0.0.1:8120
/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
url
:
UploadUrl
+
'
/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/'
+
tcid
,
type
:
"POST"
,
data
:
{
myfile
:
image
.
src
,
...
...
@@ -922,7 +924,10 @@
//是否显示团号
isShowTCNUM
:
this
.
vshowTCNUM
?
1
:
0
};
this
.
GetLocalFile
(
"DownLoadTripWord"
,
msg
,
title
+
".doc"
);
this
.
GetLocalFile
(
"DownLoadTripWord"
,
msg
,
title
+
".doc"
,
res
=>
{
this
.
pdfLoading
=
false
});
},
DateDiff
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2002-12-18格式
var
aDate
,
oDate1
,
oDate2
,
iDays
...
...
src/plug/index.js
View file @
08c61845
...
...
@@ -149,7 +149,7 @@ export default {
GoogleMapUrl
:
"http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN"
,
//google地图图片地址
GoogleMapImageUrl
:
"http://super.oytour.com"
,
Upload
:
"http://127.0.0.1:8120
"
Upload
Url
:
"http://upload.oytour.com
"
};
return
obj
;
},
...
...
@@ -219,9 +219,7 @@ export default {
Vue
.
prototype
.
uploadImg
=
function
(
tcID
,
msg
,
successCall
,
faildCall
)
{
var
apiurl
=
this
.
domainManager
().
Upload
+
'/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID'
+
tcID
;
this
.
$http
.
post
(
apiurl
,
msg
,
{
headers
:
{
}
datatype
:
"jsonP"
,
}).
then
(
res
=>
{
successCall
(
res
);
},
faildCall
)
...
...
@@ -280,7 +278,7 @@ export default {
},
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
)
{
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
...
...
@@ -315,6 +313,7 @@ export default {
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
successCall
(
res
);
}).
catch
(
function
(
res
)
{});
},
Vue
.
prototype
.
getCookieItem
=
function
()
{
...
...
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