Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
a1eefbd9
Commit
a1eefbd9
authored
Oct 16, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
峰会回顾图片删除
parent
1549e381
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
365 additions
and
317 deletions
+365
-317
activity.js
src/api/summit/activity.js
+7
-0
index.vue
src/views/summit/index.vue
+293
-282
reviewPopup.vue
src/views/summit/model/reviewPopup.vue
+65
-35
No files found.
src/api/summit/activity.js
View file @
a1eefbd9
...
...
@@ -38,4 +38,11 @@ export function activityIds() {
url
:
'/api/summit/imxr/ids'
,
method
:
'get'
})
}
export
function
remove
(
id
)
{
return
fetch
({
url
:
'/api/summit/activity/remove/'
+
id
,
method
:
'delete'
})
}
\ No newline at end of file
src/views/summit/index.vue
View file @
a1eefbd9
This diff is collapsed.
Click to expand it.
src/views/summit/model/reviewPopup.vue
View file @
a1eefbd9
...
...
@@ -41,7 +41,7 @@
list-type=
"picture-card"
:file-list=
"list"
:on-success=
"handlePictureCardPreview"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove
Zip
"
:before-upload=
"beforeAvatarUpload"
>
<i
class=
"el-icon-plus"
></i>
...
...
@@ -78,8 +78,8 @@
</el-col>
<el-col>
<el-form-item>
<el-button
class=
"button"
type=
"primary"
@
click=
"cre"
>
确 定
</el-button>
<el-button
class=
"button"
@
click=
"cancelHandel"
>
取 消
</el-button>
<!--
<el-button
class=
"button"
type=
"primary"
@
click=
"cre"
>
确 定
</el-button>
-->
</el-form-item>
</el-col>
</el-row>
...
...
@@ -117,12 +117,14 @@ export default {
imgFlag
:
false
,
BASE_API
:
process
.
env
.
BASE_API
,
percent
:
0
,
//上传进度
list
:
[],
list
:
[],
//压缩包
oldList
:
''
,
oldVadio
:
''
,
vadio
:
[],
//视频
activeId
:
''
,
//峰会id
form
:
{
id
:
undefined
,
banner
:
undefined
,
activityId
:
undefined
,
banner
:
undefined
,
videoPath
:
undefined
,
picturePath
:
undefined
}
...
...
@@ -151,44 +153,70 @@ export default {
// },
mounted
()
{
this
.
getOrderInfo
()
console
.
log
(
this
.
reviewRow
)
},
methods
:
{
vidioSuccess
(
res
)
{
this
.
$notify
({
title
:
'提示'
,
message
:
res
.
message
,
type
:
'success'
,
duration
:
2000
})
vidioSuccess
(
res
,
file
,
fileList
)
{
if
(
res
.
status
==
200
)
{
this
.
$notify
({
title
:
'提示'
,
message
:
res
.
message
,
type
:
'success'
,
duration
:
2000
})
this
.
vadio
=
fileList
}
},
beforeAvatarUpload
(
file
)
{
//
const zip = file.type === 'application/zip'
//
if (!zip) {
// this.$message.error('上传头像图片
只能是 zip 格式!')
//
}
//
return zip
const
zip
=
file
.
type
===
'application/zip'
if
(
!
zip
)
{
this
.
$message
.
error
(
'上传压缩包
只能是 zip 格式!'
)
}
return
zip
},
videoUpload
(
file
)
{
console
.
log
(
file
.
type
)
const
isJPG
=
file
.
type
===
'video/mp4'
if
(
!
isJPG
)
{
this
.
$message
.
error
(
'上传
头像图片
只能是 mp4 格式!'
)
this
.
$message
.
error
(
'上传
压缩包
只能是 mp4 格式!'
)
}
return
isJPG
},
getOrderInfo
()
{
console
.
log
(
this
.
reviewRow
.
id
)
one
(
this
.
reviewRow
.
id
).
then
(
res
=>
{
this
.
form
=
res
.
data
this
.
activeId
=
res
.
data
.
id
//峰会id
this
.
oldList
=
res
.
data
.
picturePath
||
''
//压缩包
this
.
oldVadio
=
res
.
data
.
videoPath
||
''
//视频
this
.
dialogVisible
=
true
this
.
imgDialogVisible
=
true
})
},
cre
()
{
console
.
log
(
this
.
form
.
picturePath
)
save
(
this
.
form
).
then
(
res
=>
{
let
zipPic
=
[]
this
.
list
.
forEach
(
element
=>
{
zipPic
.
push
(
element
.
url
)
})
let
mp4Vadio
=
[]
this
.
vadio
.
forEach
(
element
=>
{
mp4Vadio
.
push
(
element
.
response
.
data
)
})
let
params
=
{
id
:
this
.
activeId
,
//回顾id
banner
:
this
.
form
.
banner
,
activityId
:
this
.
reviewRow
.
id
,
//峰会id
videoPath
:
this
.
oldVadio
?
mp4Vadio
==
''
?
this
.
oldVadio
:
mp4Vadio
.
join
(
','
)
+
','
+
this
.
oldVadio
:
mp4Vadio
.
join
(
','
),
picturePath
:
this
.
oldList
?
zipPic
==
''
?
this
.
oldList
:
zipPic
.
join
(
','
)
+
','
+
this
.
oldList
:
zipPic
.
join
(
','
)
}
save
(
params
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
},
...
...
@@ -241,20 +269,22 @@ export default {
this
.
form
.
videoPath
=
file
.
data
this
.
imgDialogVisible
=
true
},
handleRemoveZip
(
file
,
fileList
)
{
this
.
list
=
fileList
},
handleRemove
(
file
,
fileList
)
{
// console.log(file)
console
.
log
(
file
,
fileList
)
this
.
vadio
=
fileList
},
handlePictureCardPreview
(
res
,
file
)
{
this
.
$notify
(
{
t
itle
:
'提示'
,
message
:
res
.
message
,
type
:
'success
'
,
duration
:
2000
})
this
.
list
.
push
({
url
:
res
.
data
})
// this.imgDialogVisible = true;
handlePictureCardPreview
(
res
,
file
,
fileList
)
{
if
(
res
.
status
==
200
)
{
t
his
.
$notify
({
title
:
'提示'
,
message
:
'上传成功
'
,
type
:
'success'
})
this
.
list
=
fileList
}
},
cleanForm
()
{
this
.
form
=
{
...
...
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