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
3b0e0911
Commit
3b0e0911
authored
Dec 07, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 生成封面图 dom
parent
1e957fed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
index.ts
src/utils/Editor/index.ts
+0
-1
index.vue
src/views/Editor/Thumbnails/index.vue
+1
-1
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+2
-7
No files found.
src/utils/Editor/index.ts
View file @
3b0e0911
...
...
@@ -13,7 +13,6 @@ export default () => {
const
setNewDatasList
=
(
DataSource
:
any
)
=>
{
sourceLoadingStore
.
setSourceLoading
(
false
)
const
slidesData
=
slides
.
value
const
cursors
=
[]
as
Array
<
any
>
// 更新Slides数据
let
savelides
=
[]
as
any
let
newSlides
=
[]
as
any
...
...
src/views/Editor/Thumbnails/index.vue
View file @
3b0e0911
...
...
@@ -296,7 +296,6 @@ const GetTripFiledData = async () =>{
// 获取行程模版数据
const
GetTripTemplate
=
async
()
=>
{
console
.
log
(
'模版数据------'
)
if
(
!
searchData
.
value
.
TempId
&&!
TempId
.
value
)
{
let
list
=
[
{
...
...
@@ -341,6 +340,7 @@ const GetTripTemplate = async () =>{
}
})
})
console
.
log
(
newSlides
,
'=======模版数据newSlides'
)
slidesStore
.
setSlides
(
newSlides
)
layoutsStore
.
setLayouts
(
JSON
.
parse
(
JSON
.
stringify
(
newSlides
)))
CoverImgStore
.
setCoverImg
(
dataRes
.
data
.
data
.
CoverImg
)
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
3b0e0911
...
...
@@ -129,7 +129,7 @@
<!-- 生成封面图 -->
<div
style=
"opacity: 0;position: fixed;left: 100px;top: 0;overflow: auto;z-index: -1;"
v-if=
"
model&&model==1&&slides.length>0&&slideIndex>=0&&slides[slideIndex].id
"
>
v-if=
"
toolbarState=='elTemplateData'&&model&&model==1&&slides.length>0&&slideIndex>=0
"
>
<div
class=
"export-img-dialog"
>
<div
class=
"thumbnails-view"
>
<div
class=
"thumbnails FeatureImgRef"
ref=
"FeatureImgRef"
>
...
...
@@ -217,6 +217,7 @@
Content
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Content
?
item
.
TemplateDataSource
.
Content
:
''
,
Name
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Name
?
item
.
TemplateDataSource
.
Name
:
''
,
Id
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Id
?
item
.
TemplateDataSource
.
Id
:
null
as
Number
,
index
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
index
>=
0
?
item
.
TemplateDataSource
.
index
:
null
as
Number
,
}
if
(
datas
.
DataSource
.
pageType
!=
1
){
let
index
=
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
index
>=
0
?
item
.
TemplateDataSource
.
index
:
null
as
Number
...
...
@@ -231,12 +232,6 @@
...
item
,
contentStr
:
contentStr
,
TemplateList
:
TemplateList
,
TemplateDataSource
:
{
Content
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Content
?
item
.
TemplateDataSource
.
Content
:
''
,
Name
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Name
?
item
.
TemplateDataSource
.
Name
:
''
,
Id
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
Id
?
item
.
TemplateDataSource
.
Id
:
null
as
Number
,
index
:
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
index
>=
0
?
item
.
TemplateDataSource
.
index
:
null
as
Number
,
}
}
if
(
Obj
)
datas
.
DataSource
.
DataSourceList
.
push
(
Obj
)
}
...
...
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