Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
marketing-web
marketing
Commits
8a8be75a
Commit
8a8be75a
authored
Apr 25, 2019
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:znm配置 新增游戏次数限制
parent
6a2acbe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
form.vue
src/views/game/znm/form.vue
+7
-0
No files found.
src/views/game/znm/form.vue
View file @
8a8be75a
...
...
@@ -8,6 +8,9 @@
<el-form-item
label=
"LOGO上传"
prop=
"logoImg"
class=
"width50"
>
<dm-upload-avatar
:model
.
sync=
"form.logoImg"
width=
"auto"
label=
"上传图片"
tips=
" 请上传高度为80px的PNG透明背景图片"
></dm-upload-avatar>
</el-form-item>
<el-form-item
label=
"次数限制"
prop=
"attendLimitCounts"
class=
"width50"
>
<el-input-number
controls-position=
"right"
v-model=
"form.attendLimitCounts"
:precision=
"0"
:min=
"1"
:max=
"9999"
class=
"w150"
size=
"small"
></el-input-number>
</el-form-item>
<el-form-item
label=
"游戏时间"
prop=
"dateTime"
class=
"width50"
>
<el-date-picker
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
class=
"w400"
v-model=
"form.dateTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
...
...
@@ -96,6 +99,7 @@ export default {
form
:
{
gameActivityId
:
''
,
gameName
:
''
,
attendLimitCounts
:
1
,
logoImg
:
{
code
:
''
,
imgUrl
:
''
...
...
@@ -123,6 +127,7 @@ export default {
},
rules
:
{
gameName
:
{
type
:
'string'
,
required
:
true
,
message
:
'游戏标题不能为空'
,
trigger
:
'blur'
},
attendLimitCounts
:
{
type
:
'number'
,
required
:
true
,
message
:
'游戏次数限制不能为空'
,
trigger
:
'blur'
},
logoImg
:
{
type
:
'object'
,
required
:
true
,
message
:
'logo不能为空'
,
trigger
:
'blur'
},
dateTime
:
{
type
:
'array'
,
required
:
true
,
message
:
'游戏时间不能为空'
,
trigger
:
'blur'
},
gameIntroduction
:
{
type
:
'string'
,
required
:
true
,
message
:
'游戏说明不能为空'
,
trigger
:
'blur'
},
...
...
@@ -227,6 +232,7 @@ export default {
this
.
form
=
Object
.
assign
(
this
.
form
,
{
gameActivityId
:
gameDetail
.
gameActivityId
,
gameName
:
gameDetail
.
gameName
,
attendLimitCounts
:
gameDetail
.
attendLimitCounts
,
logoImg
:
{
code
:
gameDetail
.
logoImgFieldCode
,
imgUrl
:
gameDetail
.
logoImgUrl
...
...
@@ -306,6 +312,7 @@ export default {
if
(
valid
)
{
let
params
=
{
gameName
:
this
.
form
.
gameName
,
// 是 String 游戏名称
attendLimitCounts
:
this
.
form
.
attendLimitCounts
,
// 游戏次数限制
logoImgUrl
:
this
.
form
.
logoImg
.
imgUrl
,
// 是 String LOGO上传 url
logoImgFieldCode
:
this
.
form
.
logoImg
.
code
,
// 是 String LOGO上传 code
gameStartTime
:
formatDateTimeByType
(
this
.
form
.
dateTime
[
0
],
'yyyy-MM-dd-HH-mm'
),
// 是 String 开始时间 “2018-05-23 11:00”
...
...
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