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
c55a8866
Commit
c55a8866
authored
Dec 10, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
奖品设置表单验证
parent
2ced1d48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
9 deletions
+36
-9
awardSet.vue
src/views/conference/award/awardSet.vue
+29
-6
rentOrderDetailModal.vue
src/views/order/modal/rentOrderDetailModal.vue
+1
-1
mockSun.vue
src/views/vehicleType/mockSun.vue
+6
-2
No files found.
src/views/conference/award/awardSet.vue
View file @
c55a8866
...
...
@@ -58,7 +58,7 @@
<!-- 奖品类型 -->
<p>
<el-select
v-model=
"item.prizeGoodsType"
clearable
placeholder=
"请选择"
@
visible-change=
"discount(index)"
>
<el-select
v-model=
"item.prizeGoodsType"
placeholder=
"请选择"
@
visible-change=
"discount(index)"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</p>
...
...
@@ -66,7 +66,7 @@
<!-- 奖品名称 -->
<p>
<el-input
v-model=
"item.name"
placeholder
v-if=
"item.prizeGoodsType != 2"
ref=
"prizeName"
></el-input>
<el-select
v-model=
"item.goodsId"
clearable
placeholder=
"请选择"
v-else
ref=
"prizeTicket"
>
<el-select
v-model=
"item.goodsId"
placeholder=
"请选择"
v-else
ref=
"prizeTicket"
>
<el-option
v-for=
"item in couponData"
:key=
"item.id"
:label=
"item.title"
:value=
"item.id"
></el-option>
</el-select>
</p>
...
...
@@ -341,16 +341,35 @@ export default {
this
.
dialogVisible
=
true
infoPrize
().
then
(
data
=>
{
if
(
val
==
1
)
{
if
(
data
.
data
.
onlinePrize
!=
''
)
if
(
data
.
data
.
onlinePrize
!=
''
)
{
data
.
data
.
onlinePrize
.
forEach
(
element
=>
{
if
(
!
element
.
goodsId
)
{
element
.
goodsId
=
''
}
if
(
!
element
.
totalStock
)
{
element
.
totalStock
=
''
}
if
(
!
element
.
dayMaxUse
)
{
element
.
dayMaxUse
=
''
}
});
this
.
table
=
data
.
data
.
onlinePrize
}
this
.
table
=
data
.
data
.
onlinePrize
}
else
{
if
(
data
.
data
.
localePrize
!=
''
)
this
.
table
=
data
.
data
.
localePrize
if
(
data
.
data
.
localePrize
!=
''
){
data
.
data
.
localePrize
.
forEach
(
element
=>
{
if
(
!
element
.
goodsId
)
{
element
.
goodsId
=
''
}
if
(
!
element
.
totalStock
)
{
element
.
totalStock
=
''
}
if
(
!
element
.
dayMaxUse
)
{
element
.
dayMaxUse
=
''
}
});
}
this
.
table
=
data
.
data
.
localePrize
}
})
},
...
...
@@ -380,6 +399,8 @@ export default {
return
true
}
});
// console.log(flig);
if
(
flig
){
let
params
=
[]
this
.
table
.
forEach
(
element
=>
{
...
...
@@ -405,6 +426,8 @@ export default {
this
.
$message
.
error
(
data
.
message
)
}
})
// console.log(params);
}
else
{
this
.
$message
(
'必填项不能为空'
)
}
...
...
src/views/order/modal/rentOrderDetailModal.vue
View file @
c55a8866
...
...
@@ -124,7 +124,7 @@
<el-button
size=
"small"
type=
"text"
v-if=
"orderDetailInfo.status==4"
@
click=
"resetCar"
>
重新配车
</el-button>
</td>
<td>
<el-button
size=
"small"
type=
"text"
v-if=
"orderDetailInfo.status==5"
@
click=
"postponePop = true"
>
延期还车
</el-button>
<el-button
size=
"small"
type=
"text"
v-if=
"orderDetailInfo.status==5
|| orderDetailInfo.status==4
"
@
click=
"postponePop = true"
>
延期还车
</el-button>
</td>
<td></td>
<td>
...
...
src/views/vehicleType/mockSun.vue
View file @
c55a8866
...
...
@@ -239,8 +239,12 @@ export default {
delete
this
.
ruleForm
.
id
this
.
successApi
()
}
else
{
this
.
ruleForm
.
startDate
=
this
.
ruleForm
.
date
[
0
]
this
.
ruleForm
.
endDate
=
this
.
ruleForm
.
date
[
1
]
this
.
ruleForm
.
startDate
=
this
.
format
(
this
.
ruleForm
.
date
[
0
]
)
this
.
ruleForm
.
endDate
=
this
.
format
(
this
.
ruleForm
.
date
[
1
]
)
!
this
.
activeId
?
''
:
(
this
.
ruleForm
.
id
=
this
.
activeId
)
...
...
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