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
e2e74903
Commit
e2e74903
authored
Dec 04, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复提交 等待时间过长
parent
11cc8a87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
index.vue
src/views/Editor/EditorHeader/index.vue
+6
-5
index.vue
src/views/Editor/Thumbnails/index.vue
+1
-1
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
e2e74903
...
...
@@ -104,9 +104,7 @@
<FullscreenSpin
:loading=
"exporting"
tip=
"正在导入..."
/>
<Psd-Upload
:visible=
"psdVisibleStatus"
@
closed=
"psdVisibleStatus=false"
></Psd-Upload>
</div>
<!-- ConfigId&& -->
<!-- opacity: 0;position: absolute;left: 100px;top: 0;bottom: 0;overflow: auto;z-index: -1; -->
<div
style=
"position: relative;z-index: -1;"
>
<div
v-if=
"ConfigId"
style=
"opacity: 0;position: absolute;left: 100px;top: 0;bottom: 0;overflow: auto;z-index: -1;"
>
<div
class=
"export-img-dialog"
>
<div
class=
"thumbnails-view"
>
<div
class=
"thumbnails"
v-for=
"slide in slides"
ref=
"FeatureImgRef"
>
...
...
@@ -361,6 +359,7 @@ const SetTripTemplateConfig = async () => {
}
// 保存
const
setTemplate
=
async
()
=>
{
datas
.
loading
=
true
if
(
SourceLoading
.
value
)
setNewDatasList
(
datas
.
DataSource
)
await
uploadImageHandler
()
...
...
@@ -377,6 +376,7 @@ const setTemplate = async () =>{
})
if
(
CoverImg
&&
CoverImg
.
value
)
queryObj
.
value
.
CoverImg
=
CoverImg
.
value
else
{
datas
.
loading
=
false
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
return
ElMessage
({
showClose
:
true
,
...
...
@@ -388,6 +388,7 @@ const setTemplate = async () =>{
||
queryObj
.
value
.
CoverImg
==
''
||
queryObj
.
value
.
CountryName
==
''
||
queryObj
.
value
.
SeasonName
==
''
){
datas
.
loading
=
false
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
return
ElMessage
({
showClose
:
true
,
...
...
@@ -405,6 +406,7 @@ const setTemplate = async () =>{
}
for
(
let
i
=
0
;
i
<
slides
.
value
.
length
;
i
++
){
if
(
slides
.
value
[
i
].
elements
.
length
==
0
)
{
datas
.
loading
=
false
mainStore
.
setToolbarState
(
ToolbarStates
.
EL_TEMPLATEDATA
)
return
ElMessage
({
showClose
:
true
,
...
...
@@ -416,7 +418,7 @@ 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
()
}
...
...
@@ -429,7 +431,6 @@ const setTemplate = async () =>{
const
testHandler
=
async
()
=>
{
FeatureImgStore
.
setFeatureImg
([])
if
(
FeatureImgRef
.
value
&&
FeatureImgRef
.
value
.
length
>
0
){
console
.
log
(
FeatureImgRef
.
value
)
for
(
let
i
=
0
;
i
<
FeatureImgRef
.
value
.
length
;
i
++
)
{
let
result
=
await
exportFeatureImg
(
FeatureImgRef
.
value
[
i
],
'jpeg'
,
1
,
false
,
i
)
if
(
!
result
){
...
...
src/views/Editor/Thumbnails/index.vue
View file @
e2e74903
...
...
@@ -226,7 +226,7 @@ const GetTripFiledData = async () =>{
y
.
content
=
y
.
content
.
replace
(
getHtmlPlainText
(
y
.
content
),
value
)
}
else
if
(
value
&&
Array
.
isArray
(
value
)){
//替换
if
(
y
.
type
==
'image'
){
if
(
y
.
type
==
'image'
&&
value
[
0
]
!=
''
){
console
.
log
(
'下载图片开始'
,
new
Date
().
getSeconds
())
try
{
let
tempSize
=
await
FileService
.
getImageSizeWithoutDownloading
(
value
[
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