取不到绑定在表记录上的data对象。
为什么点击在营复选框的按钮,回调的是form.on函数,而不是table.on?
和table经过渲染有关系吗?
//监听表格复选框选择
table.on('checkbox(check_is_business)', function(obj){
console.log(obj)
});
form.on('checkbox(check_is_business)', function(obj){
selectedStore = new Vue({
el: '#div_add_store',
data: {
company_id:"",
store_name: "",
store_manager: "",
address: "",
is_business: true
}
});
var selectRecord = $(this);
selectedStore.$data = obj.data;
updateStore(selectedStore);
});