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
a64bb7a7
Commit
a64bb7a7
authored
Dec 04, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复上传行程特色
parent
cf2b8035
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
index.vue
src/views/Editor/EditorHeader/index.vue
+24
-21
No files found.
src/views/Editor/EditorHeader/index.vue
View file @
a64bb7a7
...
@@ -447,28 +447,31 @@ const testHandler = async ()=>{
...
@@ -447,28 +447,31 @@ const testHandler = async ()=>{
const
setFeatureImgList
=
async
()
=>
{
const
setFeatureImgList
=
async
()
=>
{
datas
.
FeatureImgList
=
[]
datas
.
FeatureImgList
=
[]
FeatureImgList
.
value
=
[]
FeatureImgList
.
value
=
[]
let
imgList
=
[]
if
(
FeatureImg
.
value
&&
FeatureImg
.
value
.
length
>
0
){
await
FeatureImg
.
value
.
forEach
((
item
,
index
)
=>
{
for
(
let
i
=
0
;
i
<
FeatureImg
.
value
.
length
;
i
++
)
{
let
name
=
new
Date
().
getTime
()
+
".jpg"
let
name
=
new
Date
().
getTime
()
+
".jpg"
const
file
=
dataURLtoFile
(
item
.
url
,
name
)
const
file
=
dataURLtoFile
(
FeatureImg
.
value
[
i
].
url
,
name
)
let
url
=
AliyunUpload
.
UploadAsync
(
file
,
`Feature/
${
ConfigId
.
value
}
_
${
item
.
index
}
`
)
let
result
=
AliyunUpload
.
UploadAsync
(
file
,
`Feature/
${
ConfigId
.
value
}
_
${
i
}
`
)
url
.
then
(
res
=>
{
result
.
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
let
i
=
res
.
split
(
'_'
)
let
path
=
res
.
split
(
'_'
)
FeatureImgList
.
value
.
push
({
FeatureImgList
.
value
.
push
({
index
:
i
[
1
],
index
:
path
[
1
],
url
:
res
url
:
res
})
setTimeout
(()
=>
{
let
list
=
FeatureImgList
.
value
.
sort
((
a
,
b
)
=>
{
return
a
.
index
-
b
.
index
})
})
datas
.
FeatureImgList
=
list
.
map
(
x
=>
{
return
x
.
url
})
if
(
i
==
FeatureImg
.
value
.
length
-
1
)
{
if
(
index
===
FeatureImg
.
value
.
length
-
1
)
SetTripTemplateConfig
()
setTimeout
(()
=>
{
},
200
)
let
list
=
FeatureImgList
.
value
.
sort
((
a
,
b
)
=>
{
}
return
a
.
index
-
b
.
index
})
})
})
datas
.
FeatureImgList
=
list
.
map
(
x
=>
{
return
x
.
url
})
SetTripTemplateConfig
()
},
400
)
}
}
})
}
}
// try {
// try {
// let queryObj = {
// let queryObj = {
// MyFile: url
// MyFile: url
...
...
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