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
cf5ba059
Commit
cf5ba059
authored
Jul 26, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
80866bdc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
11 deletions
+43
-11
CloudDiskList.vue
src/components/CloudDisk/CloudDiskList.vue
+3
-3
index.vue
src/views/Editor/EditorHeader/index.vue
+35
-6
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+4
-1
index.vue
src/views/Editor/index.vue
+1
-1
No files found.
src/components/CloudDisk/CloudDiskList.vue
View file @
cf5ba059
...
...
@@ -514,7 +514,7 @@
const
SearchCloudInfo
=
()
=>
{
if
(
queryObj
.
QFileName
)
formatType
.
value
=
formatTypeAll
.
value
.
filter
((
item
)
=>
{
return
item
.
FileFormat
.
toLowerCase
().
includes
(
queryObj
.
QFileName
.
toLowerCase
())
return
item
.
FileFormat
&&
item
.
FileFormat
.
toLowerCase
().
includes
(
queryObj
.
QFileName
.
toLowerCase
())
})
else
formatType
.
value
=
formatTypeAll
.
value
}
...
...
@@ -524,8 +524,8 @@
if
(
props
.
isPersonage
)
QUserType
=
2
const
response
=
await
CloudDiskService
.
GetPPTistCloudInfoFileFormatCount
(
QUserType
);
if
(
response
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
formatType
.
value
=
response
.
data
.
data
formatTypeAll
.
value
=
response
.
data
.
data
formatType
.
value
=
response
.
data
.
data
.
filter
(
x
=>
{
return
x
.
FileFormat
})
formatTypeAll
.
value
=
response
.
data
.
data
.
filter
(
x
=>
{
return
x
.
FileFormat
})
}
}
...
...
src/views/Editor/EditorHeader/index.vue
View file @
cf5ba059
...
...
@@ -565,8 +565,6 @@ const SetTripTemplateConfig = async () => {
}
// 保存 type行程另存 sellType行程保存并退出
const
setTemplate
=
async
(
type
:
any
,
sellType
:
any
)
=>
{
queryObj
.
value
.
Title
=
title
.
value
if
(
SourceLoading
.
value
)
setNewDatasList
(
datas
.
DataSource
)
await
uploadImageHandler
()
...
...
@@ -599,7 +597,7 @@ const setTemplate = async (type:any,sellType:any) =>{
let
url
=
await
AliyunUpload
.
UploadAsync
(
file
,
`Feature/CoverImg_
${
name
}
`
)
queryObj
.
value
.
CoverImg
=
url
}
if
(
searchData
.
value
.
TemplateType
!=
2
&&
(
queryObj
.
value
.
Title
==
''
||
queryObj
.
value
.
CountryName
==
''
if
(
searchData
.
value
.
TemplateType
==
1
&&
(
queryObj
.
value
.
Title
==
''
||
queryObj
.
value
.
CountryName
==
''
||
queryObj
.
value
.
ColorStr
==
''
||
queryObj
.
value
.
SeasonName
==
''
)){
datas
.
loading
=
false
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
...
...
@@ -623,8 +621,32 @@ const setTemplate = async (type:any,sellType:any) =>{
message
:
'请完善右侧季节'
,
type
:
'warning'
,
})
}
else
if
(
searchData
.
value
.
TemplateType
==
2
&&
(
queryObj
.
value
.
Title
==
''
||
queryObj
.
value
.
CountryName
==
''
||
queryObj
.
value
.
ColorStr
==
''
||
queryObj
.
value
.
SeasonName
==
''
)){
datas
.
loading
=
false
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
if
(
queryObj
.
value
.
Title
==
''
)
return
ElMessage
({
showClose
:
true
,
message
:
'请完善右侧广告名称'
,
type
:
'warning'
,
})
if
(
queryObj
.
value
.
CountryName
==
''
)
return
ElMessage
({
showClose
:
true
,
message
:
'请完善右侧国家'
,
type
:
'warning'
,
})
if
(
queryObj
.
value
.
ColorStr
==
''
)
return
ElMessage
({
showClose
:
true
,
message
:
'请完善右侧颜色'
,
type
:
'warning'
,
})
if
(
queryObj
.
value
.
SeasonName
==
''
)
return
ElMessage
({
showClose
:
true
,
message
:
'请完善右侧季节'
,
type
:
'warning'
,
})
}
}
else
{
}
else
{
arr
.
forEach
(
x
=>
{
x
.
elements
.
forEach
(
y
=>
{
delete
y
.
TemplateList
...
...
@@ -683,7 +705,8 @@ const startEditTitle = () => {
const
handleUpdateTitle
=
()
=>
{
slidesStore
.
setTitle
(
titleValue
.
value
)
editingTitle
.
value
=
false
queryObj
.
value
.
Title
=
titleValue
.
value
if
(
titleValue
.
value
!=
'未命名演示文稿'
)
queryObj
.
value
.
Title
=
titleValue
.
value
else
queryObj
.
value
.
Title
=
''
}
const
goLink
=
(
url
:
string
)
=>
{
...
...
@@ -701,6 +724,12 @@ watch(()=>autoSave.value,(newVal)=>{
setTemplate
(
0
)
}
})
watch
(()
=>
title
.
value
,(
n
,
o
)
=>
{
if
(
n
!=
'未命名演示文稿'
)
queryObj
.
value
.
Title
=
n
else
queryObj
.
value
.
Title
=
''
})
watch
(()
=>
slides
.
value
,(
newVal
,
oldVal
)
=>
{
if
(
model
.
value
==
2
&&
SalesEditor
.
value
>
0
&&
searchData
.
value
.
sellId
){
if
(
searchData
.
value
.
MonitoringNumber
==
0
){
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
cf5ba059
...
...
@@ -774,7 +774,10 @@
getLinesHandler
()
getColor
(
0
)
// GetTemplateColors()
watch
(()
=>
title
.
value
,(
n
,
o
)
=>
{
if
(
n
!=
'未命名演示文稿'
)
titleValue
.
value
=
n
else
titleValue
.
value
=
''
})
onMounted
(
()
=>
{
document
.
addEventListener
(
'click'
,
(
e
)
=>
{
if
(
datas
.
addColorsShow
)
{
...
...
src/views/Editor/index.vue
View file @
cf5ba059
...
...
@@ -115,7 +115,7 @@ const datas = reactive({
Title
:
''
,
//名称 是 [string]
TempData
:
null
,
//模板数据 是 [json]
CoverImg
:
''
,
//封面图 是 [string]
CountryName
:
null
,
//国家 是 [string]
CountryName
:
'不限'
,
//国家 是 [string]
SeasonName
:
'不限'
,
//季节 是 [string]
ColorName
:
''
,
//颜色名称 是 [string]
ColorStr
:
null
,
//颜色值 是 [string]
...
...
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