Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
viitto
pptist
Commits
dbca814a
Commit
dbca814a
authored
Mar 01, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新下载功能
parent
a438ec19
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
8 deletions
+15
-8
sellTemplate.ts
src/store/sellTemplate.ts
+5
-0
index.vue
src/views/Editor/EditorHeader/index.vue
+1
-0
ExportImage.vue
src/views/Editor/ExportDialog/ExportImage.vue
+3
-2
ExportPDF.vue
src/views/Editor/ExportDialog/ExportPDF.vue
+2
-2
Share.vue
src/views/SellTemplate/Share.vue
+2
-2
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+2
-2
No files found.
src/store/sellTemplate.ts
View file @
dbca814a
...
...
@@ -4,6 +4,7 @@ export interface SalesState {
SalesEditor
:
number
,
SalesBack
:
number
,
SalesTripId
:
string
,
SaleHashCode
:
string
}
export
const
useSellTemplateStore
=
defineStore
(
'sales'
,
{
...
...
@@ -11,6 +12,7 @@ export const useSellTemplateStore = defineStore('sales', {
SalesEditor
:
0
,
// 1 新增模版 2编辑模版 3新增广告 4编辑广告
SalesBack
:
0
,
// 0 销售首页 1 模版首页
SalesTripId
:
''
,
// 销售行程id
SaleHashCode
:
''
}),
actions
:
{
...
...
@@ -23,5 +25,8 @@ export const useSellTemplateStore = defineStore('sales', {
setSalesTripId
(
SalesTripId
:
string
)
{
this
.
SalesTripId
=
SalesTripId
},
setSaleHashCode
(
hash
:
string
){
this
.
SaleHashCode
=
hash
}
},
})
\ No newline at end of file
src/views/Editor/EditorHeader/index.vue
View file @
dbca814a
...
...
@@ -315,6 +315,7 @@ const SetSellTemplate = async (type:Number,FolderId:Number) => {
isCopyTo
.
value
=
false
let
TemplateRes
=
await
ConfigService
.
sellSetTemplate
(
queryMsg
);
if
(
TemplateRes
.
data
.
resultCode
==
1
)
{
SalesEditorStore
.
setSaleHashCode
(
TemplateRes
.
data
.
data
.
HashInfo
)
ElMessage
({
showClose
:
true
,
message
:
'操作成功'
,
...
...
src/views/Editor/ExportDialog/ExportImage.vue
View file @
dbca814a
...
...
@@ -80,7 +80,7 @@
<
script
lang=
"ts"
setup
>
import
{
computed
,
inject
,
ref
,
nextTick
,
watch
,
Ref
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
useSlidesStore
,
useScreenStore
}
from
'@/store'
import
{
useSlidesStore
,
useScreenStore
,
useSellTemplateStore
}
from
'@/store'
import
useExport
from
'@/hooks/useExport'
import
{
VIEWPORT_SIZE
,
VIEWPORT_VER_SIZE
}
from
'@/configs/canvas'
...
...
@@ -142,7 +142,8 @@ const beginDownload = async ()=>{
rangeArray
.
push
(
i
)
}
}
fileUrl
.
value
=
`http://fileservice.oytour.com/api/img/
${
searchData
.
value
.
sellId
}
/
${
rangeArray
.
join
(
','
)}
/
${
format
.
value
==
'png'
?
'png'
:
'jpg'
}
/
${
quality
.
value
}
`
//http://fileservice.oytour.com
fileUrl
.
value
=
`http://fileservice.oytour.com/api/img/
${
searchData
.
value
.
sellId
}
/
${
rangeArray
.
join
(
','
)}
/
${
format
.
value
==
'png'
?
'png'
:
'jpg'
}
/
${
quality
.
value
}
/
${
useSellTemplateStore
().
SaleHashCode
}
`
//http://fileservice.oytour.com
console
.
log
(
fileUrl
.
value
)
nextTick
(()
=>
{
downloadLink
.
value
.
click
()
...
...
src/views/Editor/ExportDialog/ExportPDF.vue
View file @
dbca814a
...
...
@@ -69,7 +69,7 @@
<
script
lang=
"ts"
setup
>
import
{
Ref
,
ref
,
inject
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
useSlidesStore
}
from
'@/store'
import
{
useS
ellTemplateStore
,
useS
lidesStore
}
from
'@/store'
import
{
print
}
from
'@/utils/print'
import
{
VIEWPORT_SIZE
,
VIEWPORT_VER_SIZE
}
from
'@/configs/canvas'
import
{
query
}
from
'@/utils/common'
...
...
@@ -127,7 +127,7 @@ const exportOnlinePdf=()=>{
autoSave
.
value
=
1
}
const
beginDownload
=
async
()
=>
{
fileUrl
.
value
=
`http://fileservice.oytour.com/api/pdf/
${
searchData
.
value
.
sellId
}
`
fileUrl
.
value
=
`http://fileservice.oytour.com/api/pdf/
${
searchData
.
value
.
sellId
}
/
${
useSellTemplateStore
().
SaleHashCode
}
`
nextTick
(()
=>
{
downloadLink
.
value
.
click
()
})
...
...
src/views/SellTemplate/Share.vue
View file @
dbca814a
...
...
@@ -216,8 +216,8 @@ const openFileDocument = (item:any) => {
window
.
open
(
url
);
}
const
exportDocument
=
(
item
:
any
)
=>
{
let
url
=
`http://fileservice.oytour.com/api/img/
${
item
.
FileId
}
/1/png/1`
if
(
item
.
FileType
==
1
)
url
=
`http://fileservice.oytour.com/api/pdf/
${
item
.
FileId
}
`
let
url
=
`http://fileservice.oytour.com/api/img/
${
item
.
FileId
}
/1/png/1
/
${
item
.
HashInfo
}
`
if
(
item
.
FileType
==
1
)
url
=
`http://fileservice.oytour.com/api/pdf/
${
item
.
FileId
}
/
${
item
.
HashInfo
}
`
window
.
open
(
url
);
}
const
changeFolderHandler
=
async
(
item
:
any
)
=>
{
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
dbca814a
...
...
@@ -333,8 +333,8 @@ import CopyFile from "./CopyFile.vue";
}
const
exportDocument
=
(
item
:
any
)
=>
{
let
url
=
`http://fileservice.oytour.com/api/img/
${
item
.
FileId
}
/1/png/1`
if
(
item
.
FileType
==
1
)
url
=
`http://fileservice.oytour.com/api/pdf/
${
item
.
FileId
}
`
let
url
=
`http://fileservice.oytour.com/api/img/
${
item
.
FileId
}
/1/png/1
/
${
item
.
HashInfo
}
`
if
(
item
.
FileType
==
1
)
url
=
`http://fileservice.oytour.com/api/pdf/
${
item
.
FileId
}
/
${
item
.
HashInfo
}
`
window
.
open
(
url
);
}
const
viewTemplate
=
(
row
:
any
)
=>
{
...
...
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