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
ba118a1d
Commit
ba118a1d
authored
May 22, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'router' of
http://gitlab.oytour.com/viitto/pptist
into router
parents
4ad9d894
66680f8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
index.vue
src/views/Editor/Thumbnails/index.vue
+1
-3
PreviewCover.vue
src/views/Preview/PreviewCover.vue
+2
-2
No files found.
src/views/Editor/Thumbnails/index.vue
View file @
ba118a1d
...
...
@@ -459,12 +459,11 @@ const GetTripTemplate = async () =>{
}
// 根据集团渲染logo
if
(
userInfo
.
value
&&
userInfo
.
value
.
RB_Group_id
<=
1
){
return
for
(
let
i
=
0
;
i
<
newSlides
.
length
;
i
++
){
let
x
=
newSlides
[
i
]
let
index
=
null
x
.
elements
.
forEach
((
y
,
indexs
)
=>
{
if
(
y
.
layerName
&&
y
.
layerName
==
'logo'
)
index
=
indexs
if
(
y
.
layerName
&&
y
.
layerName
.
indexOf
(
'logo'
)
!=-
1
)
index
=
indexs
})
let
eles
=
x
.
elements
.
filter
(
y
=>
y
.
layerName
&&
y
.
layerName
.
indexOf
(
'logo'
)
!=-
1
)
let
newElements
=
await
ResolveTripLogoHandler
(
eles
,
i
)
...
...
@@ -472,7 +471,6 @@ const GetTripTemplate = async () =>{
if
(
index
>=
0
)
x
.
elements
.
splice
(
index
,
1
)
}
}
layoutsStore
.
setLayouts
(
JSON
.
parse
(
JSON
.
stringify
(
newSlides
)))
if
(
searchData
.
value
.
sellId
&&!
searchData
.
value
.
TempId
)
return
slidesStore
.
setSlides
(
newSlides
)
...
...
src/views/Preview/PreviewCover.vue
View file @
ba118a1d
...
...
@@ -79,9 +79,9 @@ const loadSliders = async ()=>{
let
x
=
newSlides
[
i
]
let
index
=
null
x
.
elements
.
forEach
((
y
,
indexs
)
=>
{
if
(
y
.
layerName
&&
y
.
layerName
==
'logo'
)
index
=
indexs
if
(
y
.
layerName
&&
y
.
layerName
.
indexOf
(
'logo'
)
!=-
1
)
index
=
indexs
})
let
eles
=
x
.
elements
.
filter
(
y
=>
y
.
layerName
&&
y
.
layerName
==
'logo'
)
let
eles
=
x
.
elements
.
filter
(
y
=>
y
.
layerName
&&
y
.
layerName
.
indexOf
(
'logo'
)
!=-
1
)
let
newElements
=
await
ResolveTripLogoHandler
(
eles
,
i
)
x
.
elements
=
x
.
elements
.
concat
(
newElements
?.
elements
)
if
(
index
>=
0
)
x
.
elements
.
splice
(
index
,
1
)
...
...
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