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
b64f4cde
Commit
b64f4cde
authored
Dec 01, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行程保存后 获取行程详情
parent
96a68288
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
App.vue
src/App.vue
+5
-6
index.vue
src/views/Editor/Thumbnails/index.vue
+10
-14
No files found.
src/App.vue
View file @
b64f4cde
...
...
@@ -95,12 +95,11 @@ const GetTripConfig = async (ConfigId) =>{
ConfigId
:
ConfigId
}
let
datasRes
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
if
(
datasRes
.
data
.
resultCode
==
1
)
{
if
(
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
length
>
0
&&
datasRes
.
data
.
data
[
0
].
TempId
){
isModelStore
.
setIsModel
(
true
)
marketStore
.
setMarket
(
!
market
)
TempIdStore
.
setTempId
(
datasRes
.
data
.
data
[
0
].
TempId
)
}
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
TempId
)
{
let
dataObj
=
datasRes
.
data
.
data
isModelStore
.
setIsModel
(
true
)
marketStore
.
setMarket
(
!
market
)
TempIdStore
.
setTempId
(
dataObj
.
TempId
)
}
else
{
return
ElMessage
({
showClose
:
true
,
...
...
src/views/Editor/Thumbnails/index.vue
View file @
b64f4cde
...
...
@@ -134,28 +134,24 @@ queryObj.value = inject(injectKeyDataSource).queryObj
* 行程保存成功获取行程详情
*/
const
GetTripConfig
=
async
()
=>
{
console
.
log
(
'获取行程'
,
'----------'
)
try
{
let
queryMsg
=
{
ConfigId
:
ConfigId
.
value
}
let
datasRes
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
if
(
datasRes
.
data
.
resultCode
==
1
)
{
if
(
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
length
>
0
){
let
SlidesData
=
JSON
.
parse
(
dataRes
.
data
.
data
.
TempData
)
let
newSlides
=
[]
if
(
typeof
SlidesData
==
'object'
&&!
SlidesData
.
length
){
let
obj
=
{
...
SlidesData
}
newSlides
.
push
(
obj
)
}
else
if
(
SlidesData
.
length
>
0
){
newSlides
=
SlidesData
}
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
TempId
)
{
let
dataObj
=
datasRes
.
data
.
data
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
let
newSlides
=
[]
SlidesData
.
forEach
((
x
,
i
)
=>
{
newSlides
.
push
(
x
)
if
(
SlidesData
.
length
-
1
==
i
){
slidesStore
.
setSlides
(
newSlides
)
}
})
}
else
{
return
ElMessage
({
ElMessage
({
showClose
:
true
,
message
:
datasRes
.
data
.
message
,
type
:
'warning'
,
...
...
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