fix[litemall-admin]: gitee #I1X232

This commit is contained in:
linlinjava
2020-11-22 21:01:43 +08:00
parent d8f59965f2
commit d4dde95b46

View File

@@ -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) {