|
|
|
@ -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', |
|
|
|
|