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
2e4874b8
Commit
2e4874b8
authored
Feb 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特色下载
parent
f3313a78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
15 deletions
+26
-15
index.html
index.html
+1
-0
confirmationOrderDownLoad.vue
src/components/confirmationOrderDownLoad.vue
+20
-8
index.js
src/plug/index.js
+5
-7
No files found.
index.html
View file @
2e4874b8
...
...
@@ -11,6 +11,7 @@
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?v=2.0&ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX"
></script>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/library/CurveLine/1.5/src/CurveLine.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"
></script>
<script
src=
"http://code.jquery.com/jquery-2.1.1.min.js"
></script>
<title>
四川和平国际旅行社
</title>
</head>
<body>
...
...
src/components/confirmationOrderDownLoad.vue
View file @
2e4874b8
...
...
@@ -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
style=
"display:none"
type=
"button"
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"
>
...
...
@@ -669,13 +669,25 @@
context
.
imageSmoothingEnabled
=
false
var
image
=
new
Image
();
image
.
src
=
canvas
.
toDataURL
(
"image/png"
);
// document.body.appendChild(image)
let
msg
=
{
myfile
:
image
.
src
}
this
.
uploadImg
(
tcid
,
msg
,
res
=>
{
console
.
log
(
res
)
},
null
)
$
.
ajax
({
url
:
'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID'
,
type
:
"POST"
,
data
:
{
myfile
:
image
.
src
},
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
console
.
log
(
"上传成功"
,
data
);
},
error
:
function
()
{
console
.
log
(
"上传失败"
);
}
});
// this.uploadImg(tcid,msg, res=>{
// //console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
}
});
});
...
...
src/plug/index.js
View file @
2e4874b8
...
...
@@ -115,7 +115,7 @@ export default {
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://1
92.168.2.214:8082
"
;
//214主域名
domainUrl
=
"http://1
27.0.0.1
"
;
//214主域名
// 127.0.0.12
// domainUrl = "http://192.168.2.88"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
...
...
@@ -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://
Upload.oytour.com
"
Upload
:
"http://
127.0.0.1:8120
"
};
return
obj
;
},
...
...
@@ -217,12 +217,10 @@ export default {
}
Vue
.
prototype
.
uploadImg
=
function
(
tcID
,
msg
,
successCall
,
faildCall
)
{
var
apiurl
=
this
.
domainManager
().
Upload
+
'/Upload?fileType=1&fileLimit=5&&filePath=Freature/TCID'
+
tcID
;
let
postData
=
msg
this
.
$http
.
post
(
apiurl
,
postData
,
{
var
apiurl
=
this
.
domainManager
().
Upload
+
'/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID'
+
tcID
;
this
.
$http
.
post
(
apiurl
,
msg
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
}).
then
(
res
=>
{
successCall
(
res
);
...
...
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