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
3be1bf08
Commit
3be1bf08
authored
Sep 21, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改旅游订单页面
parent
432d95cf
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1226 additions
and
3 deletions
+1226
-3
activity.js
src/api/summit/activity.js
+34
-0
activityBm.js
src/api/summit/activityBm.js
+10
-0
activityShow.js
src/api/summit/activityShow.js
+18
-0
index.js
src/router/index.js
+15
-0
index.vue
src/views/summit/index.vue
+235
-0
enrollDataPopup.vue
src/views/summit/model/enrollDataPopup.vue
+250
-0
reviewPopup.vue
src/views/summit/model/reviewPopup.vue
+239
-0
summitPopup.vue
src/views/summit/model/summitPopup.vue
+424
-0
index.vue
src/views/userManagement/userList/index.vue
+0
-1
oneType.vue
src/views/vehicleType/modal/oneType.vue
+1
-1
oneCampsiteModal.vue
src/views/xxOfficialWebsite/modal/oneCampsiteModal.vue
+0
-1
No files found.
src/api/summit/activity.js
0 → 100644
View file @
3be1bf08
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/summit/activity/list'
,
method
:
'post'
,
data
:
query
})
}
export
function
update
(
query
)
{
return
fetch
({
url
:
'/api/summit/activity/update'
,
method
:
'put'
,
data
:
query
})
}
export
function
getOne
(
id
)
{
return
fetch
({
url
:
'/api/summit/activity/'
+
id
,
method
:
'get'
})
}
export
function
add
(
obj
)
{
return
fetch
({
url
:
'/api/summit/activity/add'
,
method
:
'post'
,
data
:
obj
})
}
src/api/summit/activityBm.js
0 → 100644
View file @
3be1bf08
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/summit/front/activityBm/list'
,
method
:
'post'
,
data
:
query
})
}
src/api/summit/activityShow.js
0 → 100644
View file @
3be1bf08
import
fetch
from
'utils/fetch'
;
export
function
one
(
activityId
)
{
return
fetch
({
url
:
'/api/summit/activityShow/one/'
+
activityId
,
method
:
'get'
})
}
export
function
save
(
obj
)
{
return
fetch
({
url
:
'/api/summit/activityShow/save'
,
method
:
'post'
,
data
:
obj
})
}
src/router/index.js
View file @
3be1bf08
...
...
@@ -618,5 +618,20 @@ export const asyncRouterMap = [{
authority
:
'friendLinkList'
}
]
},
{
path
:
'/summit'
,
component
:
Layout
,
name
:
'峰会管理'
,
icon
:
'setting'
,
authority
:
'summit'
,
children
:
[
{
path
:
'summitList'
,
component
:
_import
(
'summit/index'
),
name
:
'峰会列表'
,
authority
:
'summitList'
}
]
}
];
src/views/summit/index.vue
0 → 100644
View file @
3be1bf08
<
template
>
<div
class=
"app-container calendar-list-container"
>
<div
class=
"filter-container"
>
<el-form
ref=
"queryForm"
:inline=
"inline"
:model=
"query"
label-width=
"100px"
>
<el-row>
<el-form-item
label=
"峰会名称"
>
<el-input
v-model=
"query.title"
placeholder=
"请输入峰会名称"
></el-input>
</el-form-item>
<el-form-item
label=
"开始时间"
>
<el-date-picker
v-model=
"query.startTime"
type=
"datetime"
format=
"yyyy-MM-dd HH"
placeholder=
"报名截止时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"用户来源"
>
<el-select
class=
"filter-item"
v-model=
"query.status"
placeholder=
"状态"
>
<el-option
v-for=
"(val, key, index) in status"
:key=
"val.id"
:label=
"val.name"
:value=
"val.id"
></el-option>
</el-select>
</el-form-item>
</el-row>
</el-form>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"handleFilter"
>
搜索
</el-button>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"createSummit"
>
创建峰会
</el-button>
</div>
<el-table
:key=
'tableKey'
:data=
"list"
v-loading
.
body=
"listLoading"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
align=
"center"
width=
"150px"
label=
"id"
>
<template
scope=
"scope"
>
<span>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"500px"
label=
"标题"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
title
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
width=
"400"
label=
"开始-结束时间"
>
<
template
scope=
"scope"
>
<span>
{{
timestamp2Date
(
scope
.
row
.
startTime
)
}}
</span><span>
-
</span><span>
{{
timestamp2Date
(
scope
.
row
.
endTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"当前状态"
>
<
template
scope=
"scope"
>
<span>
{{
getStatusName
(
scope
.
row
.
status
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
fixed=
"right"
>
<
template
scope=
"scope"
>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
v-if=
"scope.row.isPublish===1"
@
click=
"viewDetails(
{id:scope.row.id,isPublish:0})">
取消发布
</el-button>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
v-if=
"scope.row.isPublish===0"
@
click=
"viewDetails(
{id:scope.row.id,isPublish:1})">
发布
</el-button>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
v-if=
""
@
click=
"enrollData(scope.row)"
>
报名信息
</el-button>
<el-button
class=
"el-button el-button--text el-button--small"
size=
"small"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
v-if=
""
@
click=
"review(scope.row)"
>
回顾页面
</el-button>
<el-button
class=
"el-button el-button--text el-button--small"
style=
"color:red"
size=
"small"
v-if=
"scope.row.isPublish==0"
@
click=
"deleteSummit(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
v-show=
"!listLoading"
class=
"pagination-container"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query.page"
:page-sizes=
"[10,20,30, 50]"
:page-size=
"query.limit"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
<summitPopup
v-if=
"popupShow"
:popupRow=
"popupRow"
:titleNme=
"titleNme"
v-on:summitDialogEvent=
"summitDialogEvent"
/>
<enrollDataPopup
v-if=
"enrollShow"
:enrollRow=
"enrollRow"
v-on:enrollDialogEvent=
"enrollDialogEvent"
/>
<reviewPopup
v-if=
"reviewShow"
:enrollRow=
"reviewRow"
v-on:reviewDialogEvent=
"reviewDialogEvent"
/>
</div>
</template>
<
script
>
import
{
mapGetters
}
from
'vuex'
;
import
{
timestamp2Date
}
from
'src/utils/dateUtils'
;
import
{
page
,
update
}
from
'src/api/summit/activity'
;
import
summitPopup
from
'src/views/summit/model/summitPopup'
import
enrollDataPopup
from
'src/views/summit/model/enrollDataPopup'
import
reviewPopup
from
'src/views/summit/model/reviewPopup'
import
{
getToken
}
from
'src/utils/auth'
;
export
default
{
name
:
"summitList"
,
components
:
{
summitPopup
,
enrollDataPopup
,
reviewPopup
},
data
()
{
return
{
query
:
{
page
:
1
,
limit
:
10
,
title
:
''
,
startTime
:
''
,
status
:
undefined
},
tableKey
:
0
,
list
:
[],
listLoading
:
true
,
status
:
[
{
id
:
0
,
name
:
'默认'
},
{
id
:
1
,
name
:
'报名中'
},
{
id
:
2
,
name
:
'进行中'
},
{
id
:
3
,
name
:
'已结束'
}
],
total
:
0
,
inline
:
true
,
popupShow
:
false
,
titleNme
:
'创建峰会'
,
popupRow
:
undefined
,
enrollRow
:
undefined
,
enrollShow
:
false
,
reviewRow
:
undefined
,
reviewShow
:
false
,
statusNameList
:
{
1
:
'默认'
,
2
:
'报名中'
,
3
:
'进行中'
,
4
:
'已结束'
}
}
},
created
()
{
this
.
getList
();
},
computed
:
{
...
mapGetters
([
'elements'
]),
getHeaderWithToken
()
{
return
{
Authorization
:
getToken
()};
},
},
methods
:
{
getList
()
{
this
.
listLoading
=
true
;
page
(
this
.
query
).
then
(
res
=>
{
this
.
list
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
this
.
listLoading
=
false
;
})
},
handleFilter
()
{
this
.
getList
();
},
viewDetails
(
row
)
{
update
(
row
).
then
(
res
=>
{
if
(
res
.
rel
)
{
this
.
$notify
.
success
({
title
:
'编辑成功'
,
message
:
`success`
})
this
.
getList
()
}
else
{
this
.
$notify
.
warning
({
title
:
'编辑失败'
,
message
:
`failed`
})
}
})
},
handleSizeChange
(
val
)
{
this
.
query
.
limit
=
val
;
this
.
getList
();
},
handleCurrentChange
(
val
)
{
this
.
query
.
page
=
val
;
this
.
getList
();
},
timestamp2Date
(
timeStamp
)
{
return
timestamp2Date
(
timeStamp
)
},
enrollData
(
row
)
{
this
.
enrollRow
=
row
;
this
.
enrollShow
=
true
;
},
edit
(
row
)
{
debugger
this
.
popupRow
=
row
;
this
.
titleNme
=
'编辑峰会'
;
this
.
popupShow
=
true
;
},
createSummit
()
{
this
.
popupRow
=
{};
this
.
titleNme
=
'创建峰会'
;
this
.
popupShow
=
true
;
},
review
(){
this
.
reviewRow
=
{};
this
.
reviewShow
=
true
;
},
deleteSummit
()
{
},
getStatusName
(
status
)
{
return
(
status
+
1
)
?
this
.
statusNameList
[
status
+
1
]
:
''
},
summitDialogEvent
(
e
){
this
.
popupShow
=
false
if
(
e
){
this
.
getList
()
}
},
enrollDialogEvent
(
e
){
this
.
enrollShow
=
false
},
reviewDialogEvent
(
e
){
this
.
reviewShow
=
false
}
}
}
</
script
>
src/views/summit/model/enrollDataPopup.vue
0 → 100644
View file @
3be1bf08
<
template
>
<el-dialog
title=
"报名信息"
:visible
.
sync=
"dialogVisible"
>
<div
class=
"filter-container"
>
<el-form
ref=
"queryForm"
:model=
"query"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"邀请人"
>
<el-input
v-model=
"query.inviter"
placeholder=
"邀请人"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"姓名"
>
<el-input
v-model=
"query.name"
placeholder=
"姓名"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"已签到"
>
<el-select
class=
"filter-item"
v-model=
"query.qdStatus"
placeholder=
"签到状态"
>
<el-option
:key=
"undefined"
label=
"所有"
:value=
"undefined"
></el-option>
<el-option
v-for=
"(val, key, index) in typeList "
:key=
"val.id"
:label=
"val.name"
:value=
"val.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"search"
style=
"margin-left: 10px;"
>
搜索
</el-button>
</el-col>
</el-row>
</el-form>
</div>
<!--
<el-form
:model=
"userOrderMessage"
ref=
"alterUserOrder"
label-width=
"100px"
>
-->
<el-table
:data=
"list"
style=
"width: 100%"
border
fit
highlight-current-row
>
<el-table-column
label=
"姓名"
style=
"width: 100%"
align=
"center"
>
<template
scope=
"scope"
>
<span>
{{
scope
.
row
.
name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"电话"
width=
"180"
align=
"center"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
phone
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"身份证"
align=
"center"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
idNumber
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"邀请人"
align=
"center"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
inviter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"qdStatus"
label=
"是否已签到"
align=
"center"
>
<
template
scope=
"scope"
>
<span>
{{
getStatusName
(
scope
.
row
.
qdStatus
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<!-- </el-form>-->
<div
v-show=
"listLoading"
class=
"pagination-container"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query.page"
:page-sizes=
"[10,20,30, 50]"
:page-size=
"query.limit"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
<div
slot=
"footer"
class=
"dialog-footer1"
>
<!-- <el-button type="primary" @click="">导出为excel</el-button>-->
<el-button
@
click=
"cancelHandel"
>
关 闭
</el-button>
</div>
</el-dialog>
</template>
<
script
>
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElInput
from
"../../../../node_modules/element-ui/packages/input/src/input.vue"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElFormItem
from
"../../../../node_modules/element-ui/packages/form/src/form-item.vue"
;
import
{
page
}
from
'src/api/summit/activityBm'
;
export
default
{
props
:
[
"enrollRow"
],
name
:
'enrollDataPopup'
,
components
:
{
ElFormItem
,
ElCol
,
ElInput
,
ElRow
},
data
()
{
return
{
dialogVisible
:
false
,
query
:
{
page
:
1
,
limit
:
10
,
activityId
:
undefined
,
name
:
undefined
,
inviter
:
undefined
,
qdStatus
:
undefined
,
},
list
:
[],
total
:
0
,
listLoading
:
true
,
typeList
:
[
{
id
:
1
,
name
:
'否'
},
{
id
:
2
,
name
:
'是'
}
],
result
:
false
,
}
},
watch
:
{
dialogVisible
(
newValue
,
oldValue
)
{
if
(
!
newValue
)
{
this
.
$emit
(
"enrollDialogEvent"
,
this
.
result
);
}
},
},
mounted
()
{
this
.
query
.
activityId
=
this
.
enrollRow
.
id
this
.
getOrderInfo
();
},
methods
:
{
getOrderInfo
()
{
let
param
=
this
.
dataProcessing
()
page
(
param
).
then
(
res
=>
{
this
.
list
=
res
.
data
.
list
;
this
.
total
=
res
.
data
.
total
;
this
.
dialogVisible
=
true
this
.
listLoading
=
true
})
},
search
()
{
this
.
getOrderInfo
()
},
dataProcessing
()
{
this
.
listLoading
=
false
let
parse
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
query
))
parse
.
qdStatus
=
parse
.
qdStatus
?
(
parse
.
qdStatus
-
1
)
:
parse
.
qdStatus
return
parse
},
getStatusName
(
status
){
if
(
this
.
$utils
.
isInteger
(
status
))
{
if
(
status
==
0
){
return
'未签到'
}
if
(
status
==
1
){
return
'已签到'
}
}
},
handleSizeChange
(
val
)
{
this
.
query
.
limit
=
val
;
this
.
getList
();
}
,
handleCurrentChange
(
val
)
{
this
.
query
.
page
=
val
;
this
.
getList
();
}
,
/**
* 弹框-取消
* */
cancelHandel
()
{
this
.
setSummitDialogEvent
(
false
)
},
setSummitDialogEvent
(
e
)
{
this
.
result
=
e
this
.
dialogVisible
=
false
},
}
}
</
script
>
<
style
>
.label-text
{
margin-left
:
10px
;
margin-right
:
20px
;
}
.label-title
{
margin-top
:
10px
;
}
.orderDetail
tr
th
{
background
:
#eef1f6
;
}
.orderDetail
tr
td
,
.orderDetail
tr
th
{
width
:
500px
;
text-align
:
center
;
border
:
1px
solid
#dfe6ec
;
margin-left
:
100px
;
margin-right
:
100px
;
padding
:
10px
;
}
.label-value
{
margin-left
:
80px
;
margin-right
:
100px
;
}
#license-img
{
width
:
50px
;
height
:
50px
;
}
.order-details
.el-form-item
{
margin-bottom
:
10px
!important
;
}
.el-dialog__footer
.dialog-footer1
{
position
:
relative
;
text-align
:
center
;
}
.fhjj
{
width
:
500px
;
}
.content
{
margin-left
:
4%
;
}
.height
{
margin-bottom
:
2%
;
}
.
el-form-item__content
{
margin-left
:
5%
!important
;
}
.status
{
margin-top
:
4%
;
}
</
style
>
src/views/summit/model/reviewPopup.vue
0 → 100644
View file @
3be1bf08
<
template
>
<el-dialog
title=
"回顾页面"
:visible
.
sync=
"dialogVisible"
class=
"order-details"
>
<el-form
:model=
"form"
ref=
"form"
label-width=
"120px"
>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"峰会封面:"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:on-progress=
"uploadProcess"
list-type=
"picture"
>
<el-progress
v-show=
"imgFlag == true"
type=
"circle"
:percentage=
"percent"
style=
"margin-top: 20px"
></el-progress>
<img
v-if=
"$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag"
:src=
"form.banner"
style=
"width:300px;max-height:300px;"
>
<i
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
style=
"lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"封面图:"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:on-progress=
"uploadProcess"
list-type=
"picture"
>
<el-progress
v-show=
"imgFlag == true"
type=
"circle"
:percentage=
"percent"
style=
"margin-top: 20px"
></el-progress>
<img
v-if=
"$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag"
:src=
"form.banner"
style=
"width:300px;max-height:300px;"
>
<i
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
style=
"lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"封面图:"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:on-progress=
"uploadProcess"
list-type=
"picture"
>
<el-progress
v-show=
"imgFlag == true"
type=
"circle"
:percentage=
"percent"
style=
"margin-top: 20px"
></el-progress>
<img
v-if=
"$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag"
:src=
"form.banner"
style=
"width:300px;max-height:300px;"
>
<i
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
style=
"lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer1"
>
<el-button
class=
"button"
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
class=
"button"
type=
"primary"
@
click=
"cre"
>
确 定
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElInput
from
"../../../../node_modules/element-ui/packages/input/src/input.vue"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElFormItem
from
"../../../../node_modules/element-ui/packages/form/src/form-item.vue"
;
import
{
getToken
}
from
'src/utils/auth'
;
import
{
mapGetters
}
from
'vuex'
;
import
{
one
,
save
}
from
'src/api/summit/activityShow'
;
export
default
{
props
:
[
"reviewRow"
],
name
:
'reviewPopup'
,
components
:
{
ElFormItem
,
ElCol
,
ElInput
,
ElRow
},
data
()
{
return
{
dialogVisible
:
false
,
result
:
false
,
form
:{
banner
:
undefined
}
}
},
watch
:
{
dialogVisible
(
newValue
,
oldValue
)
{
if
(
!
newValue
)
{
this
.
$emit
(
"reviewDialogEvent"
,
this
.
result
);
}
},
},
computed
:
{
...
mapGetters
([
'elements'
]),
getHeaderWithToken
()
{
return
{
Authorization
:
getToken
()};
},
},
watch
:
{
dialogVisible
(
newValue
,
oldValue
)
{
if
(
!
newValue
)
{
this
.
$emit
(
"summitDialogEvent"
,
this
.
result
);
}
},
},
mounted
()
{
this
.
getOrderInfo
();
},
methods
:
{
getOrderInfo
()
{
one
().
then
(
res
=>
{
})
},
cre
()
{
save
().
then
(
res
=>
{
this
.
responseResult
(
res
)
})
},
responseResult
(
res
)
{
if
(
res
.
status
===
200
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'操作成功'
,
type
:
'success'
,
duration
:
2000
});
this
.
setSummitDialogEvent
(
true
)
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
'操作失败!'
,
type
:
'error'
,
duration
:
2000
});
}
},
/**
* 弹框-取消
* */
cancelHandel
()
{
this
.
setSummitDialogEvent
(
false
)
},
setSummitDialogEvent
(
e
)
{
this
.
cleanForm
();
this
.
result
=
e
this
.
dialogVisible
=
false
},
}
}
</
script
>
<
style
>
.label-text
{
margin-left
:
10px
;
margin-right
:
20px
;
}
.label-title
{
margin-top
:
10px
;
}
.orderDetail
tr
th
{
background
:
#eef1f6
;
}
.orderDetail
tr
td
,
.orderDetail
tr
th
{
width
:
500px
;
text-align
:
center
;
border
:
1px
solid
#dfe6ec
;
margin-left
:
100px
;
margin-right
:
100px
;
padding
:
10px
;
}
.label-value
{
margin-left
:
80px
;
margin-right
:
100px
;
}
#license-img
{
width
:
50px
;
height
:
50px
;
}
.order-details
.el-form-item
{
margin-bottom
:
10px
!important
;
}
.el-dialog__footer
.dialog-footer1
{
position
:
relative
;
text-align
:
center
;
}
.fhjj
{
width
:
500px
;
}
.content
{
margin-left
:
4%
;
}
.height
{
margin-bottom
:
2%
;
}
.
el-form-item__content
{
margin-left
:
5%
!important
;
}
.status
{
margin-top
:
4%
;
}
</
style
>
src/views/summit/model/summitPopup.vue
0 → 100644
View file @
3be1bf08
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
class=
"order-details"
>
<div>
<el-form
:model=
"form"
ref=
"form"
label-width=
"120px"
>
<div>
<div><span><h3>
基础信息
</h3></span></div>
<div>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"标题:"
>
<el-input
v-model=
"form.title"
placeholder=
"请输入峰会标题"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"封面图:"
>
<el-upload
class=
"upload-demo"
:headers=
"getHeaderWithToken"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:on-progress=
"uploadProcess"
list-type=
"picture"
>
<el-progress
v-show=
"imgFlag == true"
type=
"circle"
:percentage=
"percent"
style=
"margin-top: 20px"
></el-progress>
<img
v-if=
"$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag"
:src=
"form.banner"
style=
"width:300px;max-height:300px;"
>
<i
v-else-if=
"!imgFlag"
class=
"el-icon-plus avatar-uploader-icon"
style=
"lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"16"
>
<el-form-item
label=
"峰会时间:"
>
<el-date-picker
v-model=
"form.startTime"
type=
"datetime"
:editable=
"true"
placeholder=
"开始时间"
></el-date-picker>
-
<el-date-picker
v-model=
"form.endTime"
type=
"datetime"
:editable=
"true"
placeholder=
"选择日期"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"9"
>
<el-form-item
label=
"报名截止时间:"
>
<el-date-picker
v-model=
"form.bmCloseTime"
type=
"datetime"
placeholder=
"报名截止时间"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"地点:"
>
<el-input
v-model=
"form.address"
placeholder=
"请输入峰会举办地点"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item>
<el-input
class=
" content"
v-model=
"form.longitude"
placeholder=
"经度"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
class=
" content"
>
<el-form-item>
<el-input
class=
" content"
v-model=
"form.latitude"
placeholder=
"纬度"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"状态:"
>
<el-radio-group
v-model=
"form.state"
>
<el-radio-button
label=
"默认"
></el-radio-button>
<el-radio-button
label=
"自定义"
></el-radio-button>
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"9"
v-if=
"form.state==='自定义'"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
class=
"status"
:label=
"0"
>
默认
</el-radio>
<el-radio
class=
"status"
:label=
"1"
>
报名中
</el-radio>
<el-radio
class=
"status"
:label=
"2"
>
进行中
</el-radio>
<el-radio
class=
"status"
:label=
"3"
>
已结束
</el-radio>
</el-radio-group>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"活动id:"
>
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
</div>
<div>
<div><span><h3>
报名页面
</h3></span></div>
<div>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"峰会简介:"
>
<el-input
class=
"fhjj"
v-model=
"form.content"
:rows=
"9"
type=
"textarea"
placeholder=
"请输入车型简介"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item
label=
"峰会流程:"
>
<el-row
class=
"height"
v-for=
"(item, index) in processJson"
:key=
"index"
>
<el-col
:span=
"6"
>
<el-date-picker
v-model=
"item.time"
type=
"datetime"
format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择时间"
>
</el-date-picker>
</el-col>
<el-col
:span=
"8"
>
<el-input
class=
"content"
v-model=
"item.content"
placeholder=
"请输入内容"
></el-input>
</el-col>
<el-col
class=
"content"
:span=
"8"
>
<el-button
type=
"danger"
size=
"small"
style=
"margin-left: 10px;"
@
click=
"deleteItem(item,index)"
>
删除
</el-button>
</el-col>
</el-row>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item>
<el-button
size=
"small"
type=
"button"
icon=
"plus"
@
click=
"addTag()"
>
添加流程
</el-button>
</el-form-item>
</el-row>
</div>
</div>
</el-form>
</div>
<div
slot=
"footer"
class=
"dialog-footer1"
>
<el-button
class=
"button"
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='创建峰会'"
@
click=
"create()"
>
确 定
</el-button>
<el-button
class=
"button"
type=
"primary"
v-if=
"titleNme=='编辑峰会'"
@
click=
"update1()"
>
确 定
</el-button>
</div>
<!--
<div
class=
"modal_modal"
v-show=
"resetCarVisible"
></div>
-->
</el-dialog>
</
template
>
<
script
>
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElInput
from
"../../../../node_modules/element-ui/packages/input/src/input.vue"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElFormItem
from
"../../../../node_modules/element-ui/packages/form/src/form-item.vue"
;
import
{
getOne
,
update
,
add
}
from
'src/api/summit/activity'
;
import
{
getToken
}
from
'src/utils/auth'
;
import
{
mapGetters
}
from
'vuex'
;
export
default
{
props
:
[
"popupShow"
,
"popupRow"
,
"titleNme"
],
name
:
'summitPopup'
,
components
:
{
ElFormItem
,
ElCol
,
ElInput
,
ElRow
},
data
()
{
return
{
dialogVisible
:
false
,
title
:
''
,
BASE_API
:
process
.
env
.
BASE_API
,
percent
:
0
,
//上传进度
imgFlag
:
false
,
form
:
{
title
:
undefined
,
banner
:
undefined
,
startTime
:
undefined
,
endTime
:
undefined
,
bmCloseTime
:
undefined
,
address
:
undefined
,
longitude
:
undefined
,
latitude
:
undefined
,
state
:
'默认'
,
rid
:
undefined
},
result
:
false
,
processJson
:
[]
}
},
mounted
()
{
this
.
cleanForm
();
this
.
getOrderInfo
();
},
computed
:
{
...
mapGetters
([
'elements'
]),
getHeaderWithToken
()
{
return
{
Authorization
:
getToken
()};
},
},
watch
:
{
dialogVisible
(
newValue
,
oldValue
)
{
if
(
!
newValue
)
{
this
.
$emit
(
"summitDialogEvent"
,
this
.
result
);
}
},
},
methods
:
{
getOrderInfo
()
{
this
.
title
=
this
.
titleNme
if
(
this
.
title
===
"编辑峰会"
)
{
getOne
(
this
.
popupRow
.
id
).
then
(
res
=>
{
res
.
data
.
state
=
this
.
getState
(
res
.
data
.
status
)
res
.
data
.
bmCloseTime
=
res
.
data
.
bmCloseTime
this
.
form
=
res
.
data
if
(
res
.
data
.
processJson
)
{
this
.
processJson
=
JSON
.
parse
(
res
.
data
.
processJson
)
}
this
.
dialogVisible
=
true
})
}
if
(
this
.
title
===
"创建峰会"
)
{
this
.
dialogVisible
=
true
}
},
/**
* 封面图上传进度
* */
uploadProcess
(
event
,
file
,
fileList
)
{
this
.
imgFlag
=
true
;
this
.
percent
=
Math
.
floor
(
event
.
percent
);
},
/**
* 封面图上传
* **/
handleAvatarSuccess
(
res
,
file
)
{
this
.
percent
=
0
;
this
.
imgFlag
=
false
;
this
.
form
.
banner
=
res
.
data
;
},
getState
(
status
)
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
if
(
status
==
0
)
{
return
'默认'
}
else
{
return
'自定义'
}
}
return
''
},
setSummitDialogEvent
(
e
)
{
this
.
cleanForm
();
this
.
result
=
e
this
.
dialogVisible
=
false
},
addTag
()
{
let
t
=
{
time
:
undefined
,
content
:
''
};
this
.
processJson
.
push
(
t
);
},
/**
* 保存修改
*
* */
update1
()
{
this
.
dataProcessing
()
update
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
},
create
()
{
this
.
dataProcessing
()
add
(
this
.
form
).
then
(
res
=>
{
this
.
responseResult
(
res
)
})
},
dataProcessing
()
{
if
(
this
.
form
.
state
===
'默认'
)
{
this
.
form
.
status
=
0
;
}
this
.
form
.
processJson
=
JSON
.
stringify
(
this
.
processJson
)
},
/**
* 请求结果判断
* */
responseResult
(
res
)
{
if
(
res
.
status
===
200
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'操作成功'
,
type
:
'success'
,
duration
:
2000
});
this
.
setSummitDialogEvent
(
true
)
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
'操作失败!'
,
type
:
'error'
,
duration
:
2000
});
}
},
/**
* 删除时间
* */
deleteItem
(
obj
,
index
)
{
debugger
this
.
processJson
.
splice
(
index
,
1
)
},
/**
* 弹框-取消
* */
cancelHandel
()
{
this
.
setSummitDialogEvent
(
false
)
},
cleanForm
()
{
this
.
form
=
{
title
:
undefined
,
banner
:
undefined
,
startTime
:
undefined
,
endTime
:
undefined
,
bmCloseTime
:
undefined
,
address
:
undefined
,
longitude
:
undefined
,
latitude
:
undefined
,
state
:
'默认'
,
rid
:
undefined
}
}
}
}
</
script
>
<
style
>
.label-text
{
margin-left
:
10px
;
margin-right
:
20px
;
}
.label-title
{
margin-top
:
10px
;
}
.orderDetail
tr
th
{
background
:
#eef1f6
;
}
.orderDetail
tr
td
,
.orderDetail
tr
th
{
width
:
500px
;
text-align
:
center
;
border
:
1px
solid
#dfe6ec
;
margin-left
:
100px
;
margin-right
:
100px
;
padding
:
10px
;
}
.label-value
{
margin-left
:
80px
;
margin-right
:
100px
;
}
#license-img
{
width
:
50px
;
height
:
50px
;
}
.order-details
.el-form-item
{
margin-bottom
:
10px
!important
;
}
.el-dialog__footer
.dialog-footer1
{
position
:
relative
;
text-align
:
center
;
}
.fhjj
{
width
:
500px
;
}
.content
{
margin-left
:
4%
;
}
.height
{
margin-bottom
:
2%
;
}
.
el-form-item__content
{
margin-left
:
5%
!important
;
}
.status
{
margin-top
:
4%
;
}
</
style
>
src/views/userManagement/userList/index.vue
View file @
3be1bf08
...
...
@@ -1354,7 +1354,6 @@
if
(
rowIndex
/
2
==
0
)
{
return
'warning-row'
;
}
return
''
;
},
getBoolean
(
bool
)
{
...
...
src/views/vehicleType/modal/oneType.vue
View file @
3be1bf08
...
...
@@ -14,7 +14,7 @@
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"车型简介"
prop=
"intro"
>
<el-input
class=
"cx"
v-model=
"form.intro"
rows=
"9"
type=
"textarea"
placeholder=
"请输入车型简介"
></el-input>
<el-input
class=
"cx"
v-model=
"form.intro"
:
rows=
"9"
type=
"textarea"
placeholder=
"请输入车型简介"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/xxOfficialWebsite/modal/oneCampsiteModal.vue
View file @
3be1bf08
...
...
@@ -493,7 +493,6 @@
* 更新
* */
toUpdate
(
params
)
{
console
.
log
(
"............修改"
)
editActivity
(
params
).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
$notify
({
...
...
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