diff --git a/public/assets/js/backend/shopro/coupon.js b/public/assets/js/backend/shopro/coupon.js index 98dc0ac..5986fe3 100755 --- a/public/assets/js/backend/shopro/coupon.js +++ b/public/assets/js/backend/shopro/coupon.js @@ -423,13 +423,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin } function onChangeSelection(val) { - state.selected = JSON.parse(JSON.stringify(val)) + state.selected = val console.log(val) console.log(JSON.parse(JSON.stringify(val))) } function onConfirm() { - let ids = state.selected.map(obj => obj.id) + let selectObj = JSON.parse(JSON.stringify(state.selected)) + let ids = selectObj.map(obj => obj.id) Fast.api.ajax({ url: 'shopro/coupon/select', type: 'GET',