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
96a68288
Commit
96a68288
authored
Dec 01, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 保存有TempId 不执行模版 及初始化行程
parent
a1b0e6b9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
14 deletions
+27
-14
index.vue
src/views/Editor/EditorHeader/index.vue
+4
-4
index.vue
src/views/Editor/Thumbnails/index.vue
+8
-2
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+1
-1
index.vue
src/views/Editor/Toolbar/index.vue
+14
-6
Index.vue
src/views/Market/Index.vue
+0
-1
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
96a68288
...
...
@@ -183,8 +183,8 @@ const goBack = () =>{
}
]
if
(
model
.
value
)
{
//
searchData.value.TempId = 0
TempIdStore
.
setTempId
(
0
)
searchData
.
value
.
TempId
=
0
//
TempIdStore.setTempId(0)
marketStore
.
setMarket
(
true
)
slidesStore
.
setSlides
(
list
)
layoutsStore
.
setLayouts
([])
...
...
@@ -201,8 +201,8 @@ const goBack = () =>{
}
)
.
then
(()
=>
{
//
searchData.value.TempId = 0
TempIdStore
.
setTempId
(
0
)
searchData
.
value
.
TempId
=
0
//
TempIdStore.setTempId(0)
marketStore
.
setMarket
(
true
)
slidesStore
.
setSlides
(
list
)
layoutsStore
.
setLayouts
([])
...
...
src/views/Editor/Thumbnails/index.vue
View file @
96a68288
...
...
@@ -134,6 +134,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
* 行程保存成功获取行程详情
*/
const
GetTripConfig
=
async
()
=>
{
console
.
log
(
'获取行程'
,
'----------'
)
try
{
let
queryMsg
=
{
ConfigId
:
ConfigId
.
value
...
...
@@ -167,6 +168,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
// 获取行程团数据初始化数据
const
GetTripFiledData
=
async
()
=>
{
console
.
log
(
'初始化行程'
,
'----------'
)
const
slidesData
=
slides
.
value
try
{
let
queryMsg
=
{
...
...
@@ -220,7 +222,7 @@ const GetTripFiledData = async () =>{
// 获取行程模版数据
const
GetTripTemplate
=
async
()
=>
{
if
(
!
queryObj
.
value
.
TempId
)
{
if
(
!
TempId
.
value
)
{
let
list
=
[
{
id
:
'test-slide-1'
,
...
...
@@ -272,7 +274,11 @@ const GetTripTemplate = async () =>{
queryObj
.
value
.
ColorStr
=
dataRes
.
data
.
data
.
ColorStr
queryObj
.
value
.
TempType
=
dataRes
.
data
.
data
.
TempType
slidesStore
.
updateSlideIndex
(
0
)
if
(
ConfigId
.
value
==
0
||
TempId
.
value
)
return
await
GetTripConfig
()
if
(
ConfigId
.
value
==
0
||
TempId
.
value
||
dataLoading
.
value
==
2
)
{
await
GetTripConfig
()
return
}
console
.
log
(
ConfigId
.
value
,
'----------'
,
TempId
.
value
)
await
GetTripFiledData
()
}
}
catch
(
error
)
{
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
96a68288
...
...
@@ -164,7 +164,7 @@
const
{
slides
,
slideIndex
}
=
storeToRefs
(
slidesStore
)
const
isCoverImgStore
=
useScreenStore
()
const
{
model
,
TemplateDataSource
,
TemplateType
,
CoverImg
,
isCoverImg
}
=
storeToRefs
(
useScreenStore
())
const
{
TemplateDataSource
,
TemplateType
,
CoverImg
,
isCoverImg
}
=
storeToRefs
(
useScreenStore
())
const
mainStore
=
useMainStore
()
const
mainMenuVisible
=
ref
(
false
)
...
...
src/views/Editor/Toolbar/index.vue
View file @
96a68288
...
...
@@ -54,12 +54,20 @@ const elementTabs = computed<ElementTabs[]>(() => {
]
})
const
slideTabs
=
ref
([]
as
any
)
slideTabs
.
value
=
[
{
label
:
'设计'
,
key
:
ToolbarStates
.
SLIDE_DESIGN
},
{
label
:
'切换'
,
key
:
ToolbarStates
.
SLIDE_ANIMATION
},
{
label
:
'动画'
,
key
:
ToolbarStates
.
EL_ANIMATION
},
{
label
:
'模版数据'
,
key
:
ToolbarStates
.
EL_TEMPLATEDATA
},
]
if
(
model
.
value
){
slideTabs
.
value
=
[
{
label
:
'设计'
,
key
:
ToolbarStates
.
SLIDE_DESIGN
},
{
label
:
'切换'
,
key
:
ToolbarStates
.
SLIDE_ANIMATION
},
{
label
:
'动画'
,
key
:
ToolbarStates
.
EL_ANIMATION
},
{
label
:
'模版数据'
,
key
:
ToolbarStates
.
EL_TEMPLATEDATA
},
]
}
else
{
slideTabs
.
value
=
[
{
label
:
'设计'
,
key
:
ToolbarStates
.
SLIDE_DESIGN
},
{
label
:
'切换'
,
key
:
ToolbarStates
.
SLIDE_ANIMATION
},
{
label
:
'动画'
,
key
:
ToolbarStates
.
EL_ANIMATION
},
]
}
const
multiSelectTabs
=
[
{
label
:
'样式'
,
key
:
ToolbarStates
.
EL_STYLE
},
...
...
src/views/Market/Index.vue
View file @
96a68288
...
...
@@ -197,7 +197,6 @@
const
addTemplate
=
()
=>
{
marketStore
.
setMarket
(
!
market
)
// TempIdStore.setTempId(0)
searchData
.
value
.
TempId
=
0
}
...
...
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