lg()
->title($this->title)
->body(InquiryAssignmentForm::make())
//->on('click',$this->getModalScript2())
->onShow($this->getModalScript())
// 因为此处使用了表单异步加载功能,所以一定要用 onLoad 方法
->button('');
}
/**
* 设置动作发起请求前的回调函数,返回false可以中断请求.
*
* @return string
*/
public function getModalScript(){
$warning = __('No data selected!');
return <<getSelectedKeysScript()}
$('#inquiryIds').val(key);
JS;
}
public function getSelectedKeysScript()
{
return "Dcat.grid.selected('{$this->parent->getName()}')";
}
}