Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-register
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-register
Commits
d893ff98
提交
d893ff98
authored
3月 24, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
bdb2c0e9
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
47 行增加
和
17 行删除
+47
-17
FormType.vue
src/modules/activity/components/FormType.vue
+3
-2
Create.vue
src/modules/activity/views/Create.vue
+9
-3
SetBasic.vue
src/modules/register/components/SetBasic.vue
+1
-0
Create.vue
src/modules/register/views/Create.vue
+22
-8
Detail.vue
src/modules/register/views/Detail.vue
+10
-2
List.vue
src/modules/register/views/List.vue
+2
-2
没有找到文件。
src/modules/activity/components/FormType.vue
浏览文件 @
d893ff98
...
@@ -103,11 +103,12 @@ export default {
...
@@ -103,11 +103,12 @@ export default {
{
required
:
true
,
message
:
'请填写支付金额'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请填写支付金额'
,
trigger
:
'blur'
},
{
{
trigger
:
'blur'
,
trigger
:
'blur'
,
min
:
0
,
validator
(
rule
,
value
,
callback
)
{
validator
(
rule
,
value
,
callback
)
{
if
(
Number
(
value
)
>
=
0
)
{
if
(
Number
(
value
)
>
0
)
{
callback
()
callback
()
}
else
{
}
else
{
callback
(
new
Error
(
'
请输小于正整数
'
))
callback
(
new
Error
(
'
支付金额不能小于等于0
'
))
}
}
}
}
}
}
...
...
src/modules/activity/views/Create.vue
浏览文件 @
d893ff98
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</el-tabs>
</el-tabs>
</div>
</div>
<div
class=
"create-bottom_btn"
>
<div
class=
"create-bottom_btn"
>
<el-button
type=
"primary"
style=
"margin-right: 80px"
@
click=
"hanle
Session
Storage"
>
暂存配置
</el-button>
<el-button
type=
"primary"
style=
"margin-right: 80px"
@
click=
"hanle
Local
Storage"
>
暂存配置
</el-button>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
>
添加步骤
</el-button>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
>
添加步骤
</el-button>
<el-button
@
click=
"handleRemovePageClick"
>
删除步骤
</el-button>
<el-button
@
click=
"handleRemovePageClick"
>
删除步骤
</el-button>
</div>
</div>
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
// 编辑
// 编辑
handleUpdate
()
{
handleUpdate
()
{
if
(
this
.
isDisplayModulesValidate
()
!==
-
1
)
{
if
(
this
.
isDisplayModulesValidate
()
!==
-
1
)
{
this
.
$message
.
warning
(
'请
填写按钮文案
'
)
this
.
$message
.
warning
(
'请
认真检查页面信息是否有误或未填写
'
)
return
return
}
}
const
params
=
Object
.
assign
(
this
.
basicForm
,
{
details
:
this
.
stepPageInfo
})
const
params
=
Object
.
assign
(
this
.
basicForm
,
{
details
:
this
.
stepPageInfo
})
...
@@ -233,7 +233,13 @@ export default {
...
@@ -233,7 +233,13 @@ export default {
})
})
},
},
// 暂存配置
// 暂存配置
hanleSessionStorage
()
{}
hanleLocalStorage
()
{
console
.
log
(
'111'
)
window
.
localStorage
.
setItem
(
'stepPageInfo'
,
JSON
.
stringify
(
this
.
stepPageInfo
))
console
.
log
(
window
.
localStorage
.
getItem
(
'stepPageInfo'
))
this
.
$message
.
success
(
'暂存数据成功'
)
// console.log(JSON.parse(window.localStorage.getItem('stepPageInfo'))
}
}
}
}
}
</
script
>
</
script
>
...
...
src/modules/register/components/SetBasic.vue
浏览文件 @
d893ff98
...
@@ -29,6 +29,7 @@ export default {
...
@@ -29,6 +29,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
value
:
''
,
dataList
:
[],
dataList
:
[],
allFormList
:
[
allFormList
:
[
{
{
...
...
src/modules/register/views/Create.vue
浏览文件 @
d893ff98
...
@@ -9,14 +9,19 @@
...
@@ -9,14 +9,19 @@
<div
class=
"sub-title"
>
展示设置
</div>
<div
class=
"sub-title"
>
展示设置
</div>
<div
class=
"create-bottom_mian"
>
<div
class=
"create-bottom_mian"
>
<el-tabs
@
tab-click=
"handleClick"
v-model=
"activeName"
>
<el-tabs
@
tab-click=
"handleClick"
v-model=
"activeName"
>
<el-tab-pane
:name=
"`$
{index}`" :label="`第${index + 1}步`" v-for="(item, index) in stepPageInfo" :key="index">
<el-tab-pane
:name=
"`$
{index}`"
:label="`第${index + 1}步`"
v-for="(item, index) in stepPageInfo"
:key="index"
>
<display-page
ref=
"display"
v-if=
"item.type == '1'"
:key=
"index"
></display-page>
<display-page
ref=
"display"
v-if=
"item.type == '1'"
:key=
"index"
></display-page>
<form-page
ref=
"display"
v-if=
"item.type == '2'"
:key=
"index"
></form-page>
<form-page
ref=
"display"
v-if=
"item.type == '2'"
:key=
"index"
></form-page>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<div
class=
"create-bottom_btn"
>
<div
class=
"create-bottom_btn"
>
<el-button
type=
"primary"
style=
"margin-right:
80px
"
>
暂存配置
</el-button>
<el-button
type=
"primary"
style=
"margin-right:
80px"
@
click=
"hanleLocalStorage
"
>
暂存配置
</el-button>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
>
添加步骤
</el-button>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
>
添加步骤
</el-button>
<el-button
@
click=
"handleRemovePageClick"
>
删除步骤
</el-button>
<el-button
@
click=
"handleRemovePageClick"
>
删除步骤
</el-button>
</div>
</div>
...
@@ -26,7 +31,8 @@
...
@@ -26,7 +31,8 @@
<div
class=
"add-page_select"
>
<div
class=
"add-page_select"
>
<div
class=
"label"
>
步骤类型:
</div>
<div
class=
"label"
>
步骤类型:
</div>
<el-select
v-model=
"dialogAddPageValue"
placeholder=
"请选择"
>
<el-select
v-model=
"dialogAddPageValue"
placeholder=
"请选择"
>
<el-option
v-for=
"item in dialogAddPageOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
<el-option
v-for=
"item in dialogAddPageOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-select>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -34,7 +40,7 @@
...
@@ -34,7 +40,7 @@
<el-button
type=
"primary"
@
click=
"handleDialogAddPageClick"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"handleDialogAddPageClick"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
style=
"display:
block;margin:
30px auto"
>
生成报名
</el-button>
<el-button
type=
"primary"
@
click=
"handleAddPageClick"
style=
"display:
block; margin:
30px auto"
>
生成报名
</el-button>
</div>
</div>
</
template
>
</
template
>
...
@@ -78,7 +84,7 @@ export default {
...
@@ -78,7 +84,7 @@ export default {
},
},
// 点击添加步骤按钮判断
// 点击添加步骤按钮判断
isDisplayPageForm
()
{
isDisplayPageForm
()
{
const
isFormValue
=
this
.
$refs
.
display
.
findIndex
(
item
=>
item
.
submitForm
?
!
item
.
submitForm
()
:
false
)
const
isFormValue
=
this
.
$refs
.
display
.
findIndex
(
item
=>
(
item
.
submitForm
?
!
item
.
submitForm
()
:
false
)
)
if
(
isFormValue
===
-
1
)
{
if
(
isFormValue
===
-
1
)
{
this
.
dialogAddPageVisible
=
true
this
.
dialogAddPageVisible
=
true
}
else
{
}
else
{
...
@@ -91,6 +97,14 @@ export default {
...
@@ -91,6 +97,14 @@ export default {
this
.
stepPageInfo
=
this
.
stepPageInfo
.
filter
((
item
,
index
)
=>
index
!==
parseInt
(
this
.
activeName
))
this
.
stepPageInfo
=
this
.
stepPageInfo
.
filter
((
item
,
index
)
=>
index
!==
parseInt
(
this
.
activeName
))
this
.
activeName
=
(
this
.
activeName
===
'0'
?
'0'
:
this
.
activeName
-
1
).
toString
()
this
.
activeName
=
(
this
.
activeName
===
'0'
?
'0'
:
this
.
activeName
-
1
).
toString
()
}
}
},
// 暂存配置
hanleLocalStorage
()
{
console
.
log
(
'111'
)
window
.
localStorage
.
setItem
(
'stepPageInfo'
,
JSON
.
stringify
(
this
.
stepPageInfo
))
console
.
log
(
window
.
localStorage
.
getItem
(
'stepPageInfo'
))
this
.
$message
.
success
(
'暂存数据成功'
)
// console.log(JSON.parse(window.localStorage.getItem('stepPageInfo'))
}
}
}
}
}
}
...
@@ -128,16 +142,16 @@ export default {
...
@@ -128,16 +142,16 @@ export default {
margin-top
:
30px
;
margin-top
:
30px
;
}
}
}
}
.add-page_select
{
.add-page_select
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.label
{
.label
{
margin-right
:
5px
;
margin-right
:
5px
;
}
}
}
}
}
}
.create-bottom_btn
{
.create-bottom_btn
{
margin-top
:
15px
;
margin-top
:
15px
;
}
}
</
style
>
</
style
>
src/modules/register/views/Detail.vue
浏览文件 @
d893ff98
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"sub-title"
>
基本信息
</div>
<div
class=
"sub-title"
>
基本信息
</div>
<set-basic
v-if=
"Object.keys(infoData).length"
:infoData=
"infoData"
class=
"set-basic"
></set-basic>
<set-basic
v-if=
"Object.keys(infoData).length"
:infoData=
"infoData"
class=
"set-basic"
></set-basic>
</div>
</div>
<div
class=
"detail-bottom"
v-if=
"tableData.length"
>
<div
class=
"detail-bottom"
>
<div
class=
"sub-title"
>
人员信息
</div>
<div
class=
"sub-title"
>
人员信息
</div>
<el-form
ref=
"form"
:inline=
"true"
:model=
"form"
label-width=
"80px"
style=
"margin-top: 20px"
>
<el-form
ref=
"form"
:inline=
"true"
:model=
"form"
label-width=
"80px"
style=
"margin-top: 20px"
>
<el-form-item
label=
"姓名"
>
<el-form-item
label=
"姓名"
>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<el-button
type=
"primary"
@
click=
"dialogVisible = true"
>
全部人员缴费
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisible = true"
>
全部人员缴费
</el-button>
<el-button
type=
"primary"
@
click=
"columnsOptionsVisible = true"
>
表头筛选
</el-button>
<el-button
type=
"primary"
@
click=
"columnsOptionsVisible = true"
>
表头筛选
</el-button>
</div>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table
:data=
"tableData"
style=
"width: 100%"
:row-class-name=
"getRowClass"
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
slot-scope=
"props"
>
<template
slot-scope=
"props"
>
<div
class=
"demo-table-expand"
>
<div
class=
"demo-table-expand"
>
...
@@ -135,6 +135,11 @@ export default {
...
@@ -135,6 +135,11 @@ export default {
this
.
getRecordsDetail
()
this
.
getRecordsDetail
()
},
},
methods
:
{
methods
:
{
getRowClass
(
row
)
{
if
(
row
.
row
.
pay_records
.
length
===
0
)
{
return
'row-expand-cover'
}
},
// data
// data
getRecordsDetail
()
{
getRecordsDetail
()
{
const
params
=
{
join_id
:
this
.
$route
.
query
.
id
}
const
params
=
{
join_id
:
this
.
$route
.
query
.
id
}
...
@@ -236,4 +241,7 @@ export default {
...
@@ -236,4 +241,7 @@ export default {
margin
:
8px
0
23px
;
margin
:
8px
0
23px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.row-expand-cover
td
.el-table__expand-icon
{
visibility
:
hidden
!
important
;
}
</
style
>
</
style
>
src/modules/register/views/List.vue
浏览文件 @
d893ff98
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
<
template
v-for=
"item in tabelField"
>
<
template
v-for=
"item in tabelField"
>
<el-table-column
v-if=
"item.visible"
:label=
"item.label"
:prop=
"item.key"
:key=
"item.key"
></el-table-column>
<el-table-column
v-if=
"item.visible"
:label=
"item.label"
:prop=
"item.key"
:key=
"item.key"
></el-table-column>
</
template
>
</
template
>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"$router.push(
{ path: '/register/detail', query: { id: scope.row.id } })"
<el-button
type=
"text"
@
click=
"$router.push(
{ path: '/register/detail', query: { id: scope.row.id } })"
...
@@ -167,8 +168,7 @@ export default {
...
@@ -167,8 +168,7 @@ export default {
{
visible
:
true
,
key
:
'check_in_time'
,
label
:
'入住时间'
},
{
visible
:
true
,
key
:
'check_in_time'
,
label
:
'入住时间'
},
{
visible
:
true
,
key
:
'check_out_time'
,
label
:
'离店时间'
},
{
visible
:
true
,
key
:
'check_out_time'
,
label
:
'离店时间'
},
{
visible
:
true
,
key
:
'room_type'
,
label
:
'房型'
},
{
visible
:
true
,
key
:
'room_type'
,
label
:
'房型'
},
{
visible
:
true
,
key
:
'breakfast'
,
label
:
'早餐'
},
{
visible
:
true
,
key
:
'breakfast'
,
label
:
'早餐'
}
{
visible
:
true
,
key
:
'user_type'
,
label
:
'人员类型'
}
]
]
}
}
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论