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
fcdd707b
Commit
fcdd707b
authored
Aug 05, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8ba47927
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
ConfigService.ts
src/services/ConfigService.ts
+7
-0
Editor.vue
src/views/Editor/Editor.vue
+1
-1
index.vue
src/views/Editor/EditorHeader/index.vue
+4
-1
Preview.vue
src/views/Editor/Preview.vue
+1
-1
index.vue
src/views/Editor/Thumbnails/index.vue
+1
-1
No files found.
src/services/ConfigService.ts
View file @
fcdd707b
...
@@ -140,6 +140,13 @@ class ConfigService{
...
@@ -140,6 +140,13 @@ class ConfigService{
return
Api
.
Post
(
"triptemplate_GetTripConfig"
,
params
)
return
Api
.
Post
(
"triptemplate_GetTripConfig"
,
params
)
}
}
/**
* 根据团期配置编号获取行程详情
*/
static
async
GetTripOtherByConfigId
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripOtherByConfigId"
,
params
)
}
/**
/**
* 新增修改模版数据
* 新增修改模版数据
*/
*/
...
...
src/views/Editor/Editor.vue
View file @
fcdd707b
...
@@ -58,7 +58,7 @@ const initOpModify = async ()=>{
...
@@ -58,7 +58,7 @@ const initOpModify = async ()=>{
const
TempType
=
parseInt
(
params
.
tempType
.
toString
())
const
TempType
=
parseInt
(
params
.
tempType
.
toString
())
try
{
try
{
const
queryMsg
=
{
ConfigId
}
const
queryMsg
=
{
ConfigId
}
const
response
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
const
response
=
await
ConfigService
.
GetTripOtherByConfigId
(
queryMsg
);
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
&&
response
.
data
.
data
)
{
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
&&
response
.
data
.
data
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
if
(
data
.
TempId
>
0
){
if
(
data
.
TempId
>
0
){
...
...
src/views/Editor/EditorHeader/index.vue
View file @
fcdd707b
...
@@ -539,8 +539,11 @@ const SetTripTemplateConfig = async () => {
...
@@ -539,8 +539,11 @@ const SetTripTemplateConfig = async () => {
ConfigId
:
ConfigId
.
value
,
ConfigId
:
ConfigId
.
value
,
TempId
:
queryObj
.
value
.
TempId
,
TempId
:
queryObj
.
value
.
TempId
,
TempData
:
queryObj
.
value
.
TempData
,
TempData
:
queryObj
.
value
.
TempData
,
Title
:
queryObj
.
value
.
Title
,
}
}
let
TemplateRes
=
await
ConfigService
.
SetTripConfig
(
queryMsg
);
// ConfigService.SetTripConfig(queryMsg)
//sellSetTemplate
let
TemplateRes
=
await
ConfigService
.
sellSetTemplate
(
queryMsg
);
if
(
TemplateRes
.
data
.
resultCode
==
1
)
{
if
(
TemplateRes
.
data
.
resultCode
==
1
)
{
if
(
!
ConfigId
.
value
){
if
(
!
ConfigId
.
value
){
ConfigIdStore
.
value
=
TemplateRes
.
data
.
data
.
ConfigId
ConfigIdStore
.
value
=
TemplateRes
.
data
.
data
.
ConfigId
...
...
src/views/Editor/Preview.vue
View file @
fcdd707b
...
@@ -21,7 +21,7 @@ const initOpModify = async ()=>{
...
@@ -21,7 +21,7 @@ const initOpModify = async ()=>{
const
ConfigId
=
parseInt
(
params
.
configId
.
toString
())
const
ConfigId
=
parseInt
(
params
.
configId
.
toString
())
try
{
try
{
const
queryMsg
=
{
ConfigId
}
const
queryMsg
=
{
ConfigId
}
const
response
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
const
response
=
await
ConfigService
.
GetTripOtherByConfigId
(
queryMsg
);
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
&&
response
.
data
.
data
)
{
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
&&
response
.
data
.
data
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
if
(
data
.
TempId
>
0
){
if
(
data
.
TempId
>
0
){
...
...
src/views/Editor/Thumbnails/index.vue
View file @
fcdd707b
...
@@ -182,7 +182,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
...
@@ -182,7 +182,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
let
queryMsg
=
{
let
queryMsg
=
{
ConfigId
:
ConfigId
.
value
ConfigId
:
ConfigId
.
value
}
}
let
datasRes
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
let
datasRes
=
await
ConfigService
.
GetTripOtherByConfigId
(
queryMsg
);
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
TempId
)
{
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
TempId
)
{
let
dataObj
=
datasRes
.
data
.
data
let
dataObj
=
datasRes
.
data
.
data
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
...
...
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