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
36512a98
Commit
36512a98
authored
Dec 05, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复保存数据源
parent
6ba6b3ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
index.vue
src/views/Editor/DataaSource/index.vue
+3
-2
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+6
-3
No files found.
src/views/Editor/DataaSource/index.vue
View file @
36512a98
...
@@ -93,8 +93,8 @@
...
@@ -93,8 +93,8 @@
datas
.
loading
=
false
datas
.
loading
=
false
sourceLoadingStore
.
setSourceLoading
(
false
)
sourceLoadingStore
.
setSourceLoading
(
false
)
}
}
if
(
!
n
&&
datas
.
loading
){
if
(
!
n
){
setNewDatasList
(
datas
.
DataSource
)
}
}
})
})
const
setType
=
(
x
)
=>
{
const
setType
=
(
x
)
=>
{
...
@@ -132,6 +132,7 @@
...
@@ -132,6 +132,7 @@
const
OffDataSource
=
()
=>
{
const
OffDataSource
=
()
=>
{
datas
.
DataSource
.
DataSourceOverlay
=
!
datas
.
DataSource
.
DataSourceOverlay
datas
.
DataSource
.
DataSourceOverlay
=
!
datas
.
DataSource
.
DataSourceOverlay
setNewDatasList
(
datas
.
DataSource
)
}
}
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
36512a98
...
@@ -158,6 +158,7 @@
...
@@ -158,6 +158,7 @@
import
useExport
from
'@/hooks/useExport'
import
useExport
from
'@/hooks/useExport'
import
ThumbnailSlide
from
'@/views/components/ThumbnailSlide/index.vue'
import
ThumbnailSlide
from
'@/views/components/ThumbnailSlide/index.vue'
import
AliyunUpload
from
'@/utils/upload/aliyun'
import
AliyunUpload
from
'@/utils/upload/aliyun'
import
useEditor
from
'@/utils/Editor/index'
const
datas
=
reactive
({
const
datas
=
reactive
({
DataSource
:{},
DataSource
:{},
...
@@ -192,6 +193,7 @@
...
@@ -192,6 +193,7 @@
const
FeatureImgRef
=
ref
(
null
)
const
FeatureImgRef
=
ref
(
null
)
const
{
exportFeatureImg
}
=
useExport
()
const
{
exportFeatureImg
}
=
useExport
()
const
{
setNewDatasList
}
=
useEditor
()
watch
(()
=>
datas
.
DataSource
.
pageType
,
(
n
,
o
)
=>
{
watch
(()
=>
datas
.
DataSource
.
pageType
,
(
n
,
o
)
=>
{
...
@@ -211,9 +213,9 @@
...
@@ -211,9 +213,9 @@
if
(
item
.
type
==
"text"
||
item
.
type
==
"image"
)
{
if
(
item
.
type
==
"text"
||
item
.
type
==
"image"
)
{
item
.
TemplateList
=
JSON
.
parse
(
JSON
.
stringify
(
TemplateList
))
item
.
TemplateList
=
JSON
.
parse
(
JSON
.
stringify
(
TemplateList
))
item
.
TemplateDataSource
=
{
item
.
TemplateDataSource
=
{
Content
:
''
,
Content
:
item
.
TemplateDataSource
.
Content
,
Name
:
''
,
Name
:
item
.
TemplateDataSource
.
Name
,
Id
:
null
,
Id
:
item
.
TemplateDataSource
.
Id
,
}
}
if
(
datas
.
DataSource
.
pageType
!=
1
){
if
(
datas
.
DataSource
.
pageType
!=
1
){
let
index
=
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
index
>=
0
?
item
.
TemplateDataSource
.
index
:
null
as
Number
let
index
=
item
.
TemplateDataSource
&&
item
.
TemplateDataSource
.
index
>=
0
?
item
.
TemplateDataSource
.
index
:
null
as
Number
...
@@ -309,6 +311,7 @@
...
@@ -309,6 +311,7 @@
// 所有数据源
// 所有数据源
const
AllDataSource
=
()
=>
{
const
AllDataSource
=
()
=>
{
setNewDatasList
(
datas
.
DataSource
)
getPageType
()
getPageType
()
datas
.
DataSource
.
DataSourceOverlay
=
!
datas
.
DataSource
.
DataSourceOverlay
datas
.
DataSource
.
DataSourceOverlay
=
!
datas
.
DataSource
.
DataSourceOverlay
return
return
...
...
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