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
1e4fc628
Commit
1e4fc628
authored
Nov 30, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新增模版
parent
43b64c30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
index.vue
src/views/Editor/EditorHeader/index.vue
+11
-0
Index.vue
src/views/Market/Index.vue
+3
-0
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
1e4fc628
...
...
@@ -164,6 +164,7 @@ const CoverImgStore = useScreenStore()
const
dataLoadingStore
=
useScreenStore
()
const
TempIdStore
=
useScreenStore
()
const
FeatureImgStore
=
useScreenStore
()
const
ConfigIdStore
=
useScreenStore
()
const
psdVisibleStatus
=
ref
(
false
)
const
{
market
,
model
,
ConfigId
,
CoverImg
,
dataLoading
,
TempId
,
FeatureImg
}
=
storeToRefs
(
useScreenStore
())
...
...
@@ -224,6 +225,10 @@ const SetTripTemplateSlide = async () => {
console
.
log
(
queryObj
.
value
,
'新增修改模版---'
)
let
TemplateRes
=
await
ConfigService
.
SetTripTemplateSlide
(
queryObj
.
value
);
if
(
TemplateRes
.
data
.
resultCode
==
1
)
{
if
(
!
queryObj
.
value
.
TempId
){
queryObj
.
value
.
TempId
=
TemplateRes
.
data
.
data
.
TempId
searchData
.
value
.
TempId
=
TemplateRes
.
data
.
data
.
TempId
}
ElMessage
({
showClose
:
true
,
message
:
'操作成功'
,
...
...
@@ -258,6 +263,9 @@ const SetTripTemplateConfig = async () => {
}
let
TemplateRes
=
await
ConfigService
.
SetSetTripConfig
(
queryMsg
);
if
(
TemplateRes
.
data
.
resultCode
==
1
)
{
if
(
!
ConfigId
.
value
){
ConfigIdStore
.
value
=
TemplateRes
.
data
.
data
.
ConfigId
}
ElMessage
({
showClose
:
true
,
message
:
'操作成功'
,
...
...
@@ -337,12 +345,14 @@ const setTemplate = async () =>{
})
}
}
// console.log(arr,'-------tttt')
queryObj
.
value
.
TempData
=
JSON
.
stringify
(
arr
)
datas
.
loading
=
true
if
(
model
.
value
&&
userInfo
.
value
.
IsEditTripTemplate
==
1
){
await
SetTripTemplateSlide
()
}
if
(
ConfigId
.
value
){
datas
.
FeatureImgList
=
[]
FeatureImg
.
value
.
forEach
(
item
=>
{
setTimeout
(()
=>
{
setFeatureImgList
(
item
.
url
)
...
...
@@ -361,6 +371,7 @@ const setFeatureImgList = async (url) => {
let
Res
=
await
UploadService
.
UploadBase64Two
(
path
,
queryObj
);
if
(
Res
.
data
&&
Res
.
data
.
FilePath
)
{
datas
.
FeatureImgList
.
push
(
`
${
domainManager
().
ViittoFileUrl
}
/
${
Res
.
data
.
FilePath
}
`
)
console
.
log
(
datas
.
FeatureImgList
.
length
,
'===='
,
slides
.
value
.
length
)
if
(
datas
.
FeatureImgList
.
length
==
slides
.
value
.
length
){
await
SetTripTemplateConfig
()
}
...
...
src/views/Market/Index.vue
View file @
1e4fc628
...
...
@@ -192,10 +192,13 @@
const
marketStore
=
useScreenStore
()
const
isModelStore
=
useScreenStore
()
const
layoutsStore
=
useSlidesStore
()
const
TempIdStore
=
useScreenStore
()
const
{
screening
,
market
,
model
,
isModel
,
ConfigId
,
TempId
}
=
storeToRefs
(
useScreenStore
())
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