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
a4e5c47d
Commit
a4e5c47d
authored
Oct 19, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5fa2668c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
16 deletions
+86
-16
ItineraryFeatures.vue
src/components/LeaveGroupDownload/ItineraryFeatures.vue
+2
-2
travelDays.vue
src/components/LeaveGroupDownload/travelDays.vue
+2
-2
confirmationOrderDownLoadNew.vue
src/components/confirmationOrderDownLoadNew.vue
+22
-7
index.js
src/plug/index.js
+60
-5
No files found.
src/components/LeaveGroupDownload/ItineraryFeatures.vue
View file @
a4e5c47d
...
...
@@ -11,8 +11,8 @@
<div
v-if=
"showType>=4"
id=
"gernalCanvas"
class=
"slider"
style=
"margin:auto;width:100%"
>
<template
v-for=
"(i,index) in feature.tripImageList"
>
<img
:key=
"index"
:src=
"feature.headerImage"
style=
"width:100%;display: block;"
>
<img
:key=
"index"
:src=
"i"
style=
"width:100%;display: block;"
>
<img
:key=
"index"
class=
"MT19"
:src=
"feature.footerImage"
style=
"width:100%;display: block;"
>
<img
:key=
"index
+100000
"
:src=
"i"
style=
"width:100%;display: block;"
>
<img
:key=
"index
+200000
"
class=
"MT19"
:src=
"feature.footerImage"
style=
"width:100%;display: block;"
>
</
template
>
</div>
</div>
...
...
src/components/LeaveGroupDownload/travelDays.vue
View file @
a4e5c47d
...
...
@@ -3,8 +3,8 @@
<div
style=
"width: 1123px;"
>
<template
v-for=
"(i,index) in feature.detailsImageList"
>
<img
:key=
"index"
:src=
"feature.headerImage"
style=
"width:100%;display: block;"
>
<img
:key=
"index"
:src=
"i"
style=
"width:100%;display: block;"
>
<img
:key=
"index"
class=
"MT19"
:src=
"feature.footerImage"
style=
"width:100%;display: block;"
>
<img
:key=
"index
+100000
"
:src=
"i"
style=
"width:100%;display: block;"
>
<img
:key=
"index
+200000
"
class=
"MT19"
:src=
"feature.footerImage"
style=
"width:100%;display: block;"
>
</
template
>
</div>
<div
style=
"display: none;"
class=
"UpgradedVersion-boxHeight height UpgradedVersion-homebj relative"
v-for=
"(item,index) in tripList"
>
...
...
src/components/confirmationOrderDownLoadNew.vue
View file @
a4e5c47d
...
...
@@ -532,11 +532,30 @@
},
// 生成pdf
toPDF_2023
:
function
(
title
)
{
this
.
pdfLoading
=
true
this
.
pdfLoading
=
true
;
let
urlObj
=
this
.
domainManager
();
let
msg
=
this
.
getPostMsg
();
//DownLoadPdf2023
//DownLoadPdf2023Url
var
fileName
=
title
+
"_2023.pdf"
;
if
(
this
.
orderId
&&
this
.
orderId
>
0
)
{
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
if
(
urlObj
.
IsOnline
==
0
)
{
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
var
objFileKey
=
"TripDownLoad"
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
;
objFileKey
+=
"/"
+
msg
.
configId
+
"_"
+
msg
.
tcid
+
".pdf"
;
this
.
downloadChengDuFileRename
(
objFileKey
,
fileName
,
res
=>
{
console
.
log
(
"ali_doanload"
,
res
)
if
(
res
.
resultCode
==
0
)
{
this
.
pdfDownLoad
(
fileName
,
msg
);
}
else
{
this
.
pdfLoading
=
false
;
}
})
}
},
pdfDownLoad
:
function
(
fileName
,
msg
)
{
let
urlObj
=
this
.
domainManager
();
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
...
...
@@ -550,14 +569,11 @@
if
(
res
.
data
.
resultCode
===
1
&&
res
.
data
.
data
)
{
let
path
=
res
.
data
.
data
;
this
.
pdfLoading
=
false
;
var
fileName
=
title
+
"_2023.pdf"
;
this
.
pdfLoading
=
true
;
let
urlObj
=
this
.
domainManager
();
var
ocrUrl
=
""
;
//urlObj.ocrUrl + "/Home/DownloadFileForPdf?url=" + encodeURIComponent(path);
ocrUrl
=
urlObj
.
ocrUrl
+
"/Home/DownloadFileForPdf?configId="
+
msg
.
configId
+
"&url="
+
encodeURIComponent
(
path
);
//ocrUrl="http://192.168.10.128:8300"+"/api/Home/DownloadFileForPdf?configId="+msg.configId+"&url=" + encodeURIComponent(path);
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
...
...
@@ -770,7 +786,6 @@
dinner
:
'敬请自理'
}
x
.
dayArray
.
forEach
((
y
,
index
)
=>
{
if
(
y
.
type
==
7
&&
y
.
childItem
.
title
!=
''
)
{
let
obj
=
{
title
:
y
.
childItem
.
title
,
...
...
src/plug/index.js
View file @
a4e5c47d
...
...
@@ -119,11 +119,11 @@ export default {
let
lxymallUrl
=
''
;
//国内游api
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
let
isOnline
=
0
;
//0-本地测试,1-线上
let
ocrUrl
=
"http://192.168.10.68:8888"
;
// domainUrl = "http://192.168.10.238:8083"; // 刘东电脑
// domainUrl = "http://192.168.10.226"; //春姐
domainUrl
=
"http://192.168.10.128"
;
//奎哥
// domainUrl = "http://reborn.oytour.com";
domainUrl
=
"http://192.168.10.68"
;
//奎哥
let
crmLocalFileStreamDownLoadUrl
=
""
;
crmLocalFileStreamDownLoadUrl
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://crm.oytour.com"
:
"http://testcrm.oytour.com"
;
...
...
@@ -132,7 +132,6 @@ export default {
//商城API
mallUrl
=
"http://192.168.20.13:8088"
;
lxymallUrl
=
"http://192.168.20.13:8088"
;
// crmUrl = "http://192.168.10.36:8098"
crmUrl
=
"http://crm.oytour.com"
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
...
...
@@ -140,14 +139,17 @@ export default {
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
crmUrl
=
"http://testcrm.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
isOnline
=
1
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
lxymallUrl
=
"https://erpmallapi.oytour.com"
;
crmUrl
=
"http://crm.oytour.com"
;
ocrUrl
=
"http://ocr.oytour.com"
;
isOnline
=
1
;
}
var
obj
=
{
IsOnline
:
isOnline
,
//0-本地,1-线上
//主地址
DomainUrl
:
domainUrl
,
ocrUrl
:
ocrUrl
,
//行程下载地址
...
...
@@ -1079,7 +1081,6 @@ export default {
//files 文件数组
//p 进度回调函数
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
let
nameList
=
new
Array
()
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
...
...
@@ -1097,7 +1098,6 @@ export default {
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
let
fileName
=
nameList
[
index
]
fileName
=
"/New"
+
path
+
fileName
+
"."
+
files
[
index
].
name
.
split
(
'.'
).
pop
()
var
result
=
yield
oss
.
multipartUpload
(
fileName
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
...
...
@@ -1110,6 +1110,61 @@ export default {
});
}
},
//阿里云成都文件下载
Vue
.
prototype
.
downloadChengDuFileRename
=
function
(
objectKey
,
filename
,
callBack
)
{
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-chengdu'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'vt-im-bucket'
})
var
resultJson
=
{
data
:
""
,
message
:
""
,
resultCode
:
0
,
};
try
{
let
url
=
oss
.
signatureUrl
(
objectKey
);
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
getBlob
.
then
(
blob
=>
{
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
,
filename
);
}
else
{
const
link
=
document
.
createElement
(
'a'
);
const
body
=
document
.
querySelector
(
'body'
);
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
link
.
download
=
filename
;
link
.
style
.
display
=
'none'
;
body
.
appendChild
(
link
);
link
.
click
();
body
.
removeChild
(
link
);
window
.
URL
.
revokeObjectURL
(
link
.
href
);
resultJson
.
resultCode
=
1
;
if
(
callBack
)
{
callBack
(
resultJson
)
}
}
});
}
catch
(
err
)
{
resultJson
.
resultCode
=
0
;
console
.
log
(
"downloadChengDuFileRename"
,
err
);
if
(
callBack
)
{
callBack
(
resultJson
)
}
}
},
//公用判断图片地址 判断是否包含http
Vue
.
prototype
.
getIconLink
=
function
(
url
)
{
let
str
=
''
...
...
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