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
21aab554
Commit
21aab554
authored
Oct 16, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建峰会图片上传,删除
parent
06bec217
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
32 deletions
+39
-32
summitPopup.vue
src/views/summit/model/summitPopup.vue
+39
-32
No files found.
src/views/summit/model/summitPopup.vue
View file @
21aab554
...
@@ -105,12 +105,7 @@
...
@@ -105,12 +105,7 @@
<el-form-item
label=
"活动id:"
>
<el-form-item
label=
"活动id:"
>
<!--
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
-->
<!--
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
-->
<el-select
v-model=
"form.rid"
placeholder=
"请选择签到/抽奖活动id"
>
<el-select
v-model=
"form.rid"
placeholder=
"请选择签到/抽奖活动id"
>
<el-option
<el-option
v-for=
"(item,index) in optionsId"
:key=
"index"
:label=
"item"
:value=
"item"
></el-option>
v-for=
"(item,index) in optionsId"
:key=
"index"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -151,20 +146,16 @@
...
@@ -151,20 +146,16 @@
<div>
<div>
<el-row>
<el-row>
<el-col>
<el-col>
<el-form-item
label=
"房车介绍:"
>
<el-form-item
label=
"房车介绍:"
style=
"margin-top:20px"
>
<el-upload
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove=
"handleRemove
"
list-type=
"picture-card
"
:file-list=
"fileList2"
:file-list=
"fileList2"
:on-success=
"handleBannerSuccess"
:on-success=
"handleBannerSuccess"
list-type=
"picture"
:on-remove=
"handleRemove"
:headers=
"getHeaderWithToken"
>
>
<div
slot=
"tip"
class=
"el-upload__tip"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"color: red;"
>
建议尺寸:1080*644px
</span>
</div>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"峰会流程:"
>
<el-form-item
label=
"峰会流程:"
>
...
@@ -205,8 +196,8 @@
...
@@ -205,8 +196,8 @@
<el-row>
<el-row>
<el-col>
<el-col>
<el-button
class=
"button"
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
class=
"button"
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='创建峰会'"
@
click=
"create('form')"
>
确
定
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='创建峰会'"
@
click=
"create('form')"
>
确定
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='编辑峰会'"
@
click=
"update1()"
>
确
定
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='编辑峰会'"
@
click=
"update1()"
>
确定
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -287,7 +278,7 @@ export default {
...
@@ -287,7 +278,7 @@ export default {
created
()
{
created
()
{
activityIds
().
then
(
data
=>
{
activityIds
().
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
if
(
data
.
status
==
200
)
{
this
.
optionsId
=
data
.
data
;
this
.
optionsId
=
data
.
data
}
}
})
})
},
},
...
@@ -306,11 +297,14 @@ export default {
...
@@ -306,11 +297,14 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleBannerSuccess
(
res
,
file
)
{
handleBannerSuccess
(
res
,
file
,
fileList
)
{
this
.
fileList2
.
push
({
url
:
res
.
data
})
console
.
log
(
fileList
);
this
.
form
.
vehicleImgs
=
this
.
fileList2
this
.
fileList2
=
fileList
// this.form.vehicleImgs = this.fileList2
},
handleRemove
(
res
,
file
,
fileList
)
{
this
.
fileList2
=
file
},
},
handleRemove
()
{},
getOrderInfo
()
{
getOrderInfo
()
{
this
.
title
=
this
.
titleNme
this
.
title
=
this
.
titleNme
if
(
this
.
title
===
'编辑峰会'
)
{
if
(
this
.
title
===
'编辑峰会'
)
{
...
@@ -384,7 +378,7 @@ export default {
...
@@ -384,7 +378,7 @@ export default {
},
},
getState
(
status
)
{
getState
(
status
)
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
console
.
log
(
status
)
;
console
.
log
(
status
)
if
(
status
==
0
)
{
if
(
status
==
0
)
{
return
'默认'
return
'默认'
}
else
{
}
else
{
...
@@ -450,10 +444,17 @@ export default {
...
@@ -450,10 +444,17 @@ export default {
?
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
)
?
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
)
:
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
())
:
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
())
let
pic
=
[]
let
pic
=
[]
if
(
!!
this
.
form
.
vehicleImgs
)
{
if
(
this
.
fileList2
!=
''
)
{
this
.
form
.
vehicleImgs
.
forEach
(
element
=>
{
console
.
log
(
this
.
fileList2
);
pic
.
push
(
element
.
url
)
this
.
fileList2
.
forEach
(
element
=>
{
})
if
(
!!
element
.
response
)
{
pic
.
push
(
element
.
response
.
data
)
}
else
{
pic
.
push
(
element
.
url
);
}
});
console
.
log
(
pic
);
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
}
}
...
@@ -501,12 +502,18 @@ export default {
...
@@ -501,12 +502,18 @@ export default {
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
let
pic
=
[]
let
pic
=
[]
if
(
!!
this
.
form
.
vehicleImgs
)
{
if
(
this
.
fileList2
!=
''
)
{
this
.
f
orm
.
vehicleImgs
.
forEach
(
element
=>
{
this
.
f
ileList2
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
pic
.
push
(
element
.
response
.
data
);
})
})
;
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
this
.
form
.
vehicleImgs
=
pic
.
join
(
','
)
}
}
// if (!!this.form.vehicleImgs) {
// this.form.vehicleImgs.forEach(element => {
// pic.push(element.url)
// })
// this.form.vehicleImgs = pic.join(',')
// }
this
.
dataProcessing
()
this
.
dataProcessing
()
add
(
this
.
form
).
then
(
res
=>
{
add
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
this
.
responseResult
(
res
)
...
@@ -516,7 +523,7 @@ export default {
...
@@ -516,7 +523,7 @@ export default {
dataProcessing
()
{
dataProcessing
()
{
if
(
this
.
form
.
state
===
'默认'
)
{
if
(
this
.
form
.
state
===
'默认'
)
{
this
.
form
.
status
=
'0'
this
.
form
.
status
=
'0'
}
else
{
}
else
{
this
.
form
.
status
=
this
.
statusRadio
this
.
form
.
status
=
this
.
statusRadio
}
}
this
.
form
.
processJson
=
JSON
.
stringify
(
this
.
processJson
)
this
.
form
.
processJson
=
JSON
.
stringify
(
this
.
processJson
)
...
...
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