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
85bfe6b2
Commit
85bfe6b2
authored
Oct 17, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify' of
http://113.105.137.151:22280/youjj/cloud-platform-ui
into base-modify
parents
1e1f183c
b4cf00fa
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
417 additions
and
357 deletions
+417
-357
activity.js
src/api/summit/activity.js
+7
-0
index.vue
src/views/order/rentVehicleInfo/index.vue
+2
-1
index.vue
src/views/summit/index.vue
+293
-282
reviewPopup.vue
src/views/summit/model/reviewPopup.vue
+71
-37
summitPopup.vue
src/views/summit/model/summitPopup.vue
+39
-32
index.vue
src/views/vehicle/vehicleInfo/index.vue
+5
-5
No files found.
src/api/summit/activity.js
View file @
85bfe6b2
...
...
@@ -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/order/rentVehicleInfo/index.vue
View file @
85bfe6b2
...
...
@@ -398,8 +398,9 @@
<span
class=
"label-text"
>
拍照取证*:
</span>
<br
/>
<img
v-for=
"
item
in otherImg"
v-for=
"
(item,index)
in otherImg"
:src=
"item"
:key=
"index"
style=
"width: 100px; height: 100px;margin-left:110px;"
/>
<!-- <img src="../../../../dist/static/img/success.8304acb.png" style="width: 100px; height: 100px;margin-left:110px;"/>
...
...
src/views/summit/index.vue
View file @
85bfe6b2
This diff is collapsed.
Click to expand it.
src/views/summit/model/reviewPopup.vue
View file @
85bfe6b2
...
...
@@ -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>
...
...
@@ -64,11 +64,11 @@
>
<i
class=
"el-icon-plus"
></i>
</el-upload>
<video
<
!--
<
video
v-if=
"$utils.isString(form.videoPath) && !$utils.isEmpty(form.videoPath) && !imgFlag"
:src=
"form.videoPath"
style=
"width:300px;max-height:300px;"
/>
/>
-->
<!--
<i
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
...
...
@@ -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,74 @@ 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
var
index
=
file
.
name
.
lastIndexOf
(
'.'
)
var
ext
=
file
.
name
.
substr
(
index
+
1
)
if
(
ext
!=
'zip'
)
{
this
.
$message
.
error
(
'上传压缩包只能是 zip 格式!'
)
return
false
}
return
true
},
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
.
response
.
data
)
})
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
(
','
)
}
// console.log(params);
save
(
params
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
},
...
...
@@ -241,20 +273,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
=
{
...
...
src/views/summit/model/summitPopup.vue
View file @
85bfe6b2
...
...
@@ -105,12 +105,7 @@
<el-form-item
label=
"活动id:"
>
<!--
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
-->
<el-select
v-model=
"form.rid"
placeholder=
"请选择签到/抽奖活动id"
>
<el-option
v-for=
"(item,index) in optionsId"
:key=
"index"
:label=
"item"
:value=
"item"
></el-option>
<el-option
v-for=
"(item,index) in optionsId"
:key=
"index"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -151,20 +146,16 @@
<div>
<el-row>
<el-col>
<el-form-item
label=
"房车介绍:"
>
<el-form-item
label=
"房车介绍:"
style=
"margin-top:20px"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove=
"handleRemove
"
list-type=
"picture-card
"
:file-list=
"fileList2"
:on-success=
"handleBannerSuccess"
list-type=
"picture"
:on-remove=
"handleRemove"
:headers=
"getHeaderWithToken"
>
<div
slot=
"tip"
class=
"el-upload__tip"
>
<span
style=
"color: red;"
>
建议尺寸:1080*644px
</span>
</div>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-form-item>
<el-form-item
label=
"峰会流程:"
>
...
...
@@ -205,8 +196,8 @@
<el-row>
<el-col>
<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=
"update1()"
>
确
定
</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-col>
</el-row>
</el-form>
...
...
@@ -287,7 +278,7 @@ export default {
created
()
{
activityIds
().
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
optionsId
=
data
.
data
;
this
.
optionsId
=
data
.
data
}
})
},
...
...
@@ -306,11 +297,14 @@ export default {
}
},
methods
:
{
handleBannerSuccess
(
res
,
file
)
{
this
.
fileList2
.
push
({
url
:
res
.
data
})
this
.
form
.
vehicleImgs
=
this
.
fileList2
handleBannerSuccess
(
res
,
file
,
fileList
)
{
console
.
log
(
fileList
);
this
.
fileList2
=
fileList
// this.form.vehicleImgs = this.fileList2
},
handleRemove
(
res
,
file
,
fileList
)
{
this
.
fileList2
=
file
},
handleRemove
()
{},
getOrderInfo
()
{
this
.
title
=
this
.
titleNme
if
(
this
.
title
===
'编辑峰会'
)
{
...
...
@@ -384,7 +378,7 @@ export default {
},
getState
(
status
)
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
console
.
log
(
status
)
;
console
.
log
(
status
)
if
(
status
==
0
)
{
return
'默认'
}
else
{
...
...
@@ -450,10 +444,17 @@ export default {
?
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
)
:
(
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
())
let
pic
=
[]
if
(
!!
this
.
form
.
vehicleImgs
)
{
this
.
form
.
vehicleImgs
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
})
if
(
this
.
fileList2
!=
''
)
{
console
.
log
(
this
.
fileList2
);
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
(
','
)
}
...
...
@@ -501,12 +502,18 @@ export default {
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
let
pic
=
[]
if
(
!!
this
.
form
.
vehicleImgs
)
{
this
.
f
orm
.
vehicleImgs
.
forEach
(
element
=>
{
pic
.
push
(
element
.
url
)
})
if
(
this
.
fileList2
!=
''
)
{
this
.
f
ileList2
.
forEach
(
element
=>
{
pic
.
push
(
element
.
response
.
data
);
})
;
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
()
add
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
...
...
@@ -516,7 +523,7 @@ export default {
dataProcessing
()
{
if
(
this
.
form
.
state
===
'默认'
)
{
this
.
form
.
status
=
'0'
}
else
{
}
else
{
this
.
form
.
status
=
this
.
statusRadio
}
this
.
form
.
processJson
=
JSON
.
stringify
(
this
.
processJson
)
...
...
src/views/vehicle/vehicleInfo/index.vue
View file @
85bfe6b2
...
...
@@ -1458,11 +1458,11 @@
},
queryVehicleModelSearch
(
queryString
,
cb
)
{
let
selectArry
=
[];
let
iitem
=
{
value
:
"全部"
,
name
:
"全部"
};
selectArry
.
push
(
iitem
);
//
let iitem = {
//
value: "全部",
//
name: "全部"
//
};
//
selectArry.push(iitem);
this
.
allVehicleList
.
map
(
function
(
item
)
{
item
.
value
=
item
.
name
;
selectArry
.
push
(
item
);
...
...
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