Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
d4dde95b
Commit
d4dde95b
authored
Nov 22, 2020
by
linlinjava
Browse files
fix[litemall-admin]: gitee #I1X232
parent
d8f59965
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/promotion/coupon.vue
View file @
d4dde95b
...
...
@@ -462,6 +462,12 @@ export default {
updateData
()
{
this
.
$refs
[
'
dataForm
'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
goodsType
===
1
)
{
this
.
dataForm
.
goodsValue
=
this
.
couponCategoryList
.
map
(
item
=>
(
item
.
goodsCategoryId
))
}
if
(
this
.
dataForm
.
goodsType
===
2
)
{
this
.
dataForm
.
goodsValue
=
this
.
couponGoodsList
.
map
(
item
=>
(
item
.
goodsId
))
}
updateCoupon
(
this
.
dataForm
)
.
then
(()
=>
{
for
(
const
v
of
this
.
list
)
{
...
...
Write
Preview
Supports
Markdown
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