Commit d4dde95b authored by linlinjava's avatar linlinjava
Browse files

fix[litemall-admin]: gitee #I1X232

parent d8f59965
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment