|
|
@ -423,13 +423,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onChangeSelection(val) { |
|
|
|
function onChangeSelection(val) { |
|
|
|
state.selected = JSON.parse(JSON.stringify(val)) |
|
|
|
state.selected = val |
|
|
|
console.log(val) |
|
|
|
console.log(val) |
|
|
|
console.log(JSON.parse(JSON.stringify(val))) |
|
|
|
console.log(JSON.parse(JSON.stringify(val))) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onConfirm() { |
|
|
|
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({ |
|
|
|
Fast.api.ajax({ |
|
|
|
url: 'shopro/coupon/select', |
|
|
|
url: 'shopro/coupon/select', |
|
|
|
type: 'GET', |
|
|
|
type: 'GET', |
|
|
|