$form->dateRange('start_at', 'end_at', '时间范围');
$start_at = '2022-04-22';
$end_at = '2023-04-22';
$script = <<<JS
//设置默认时间
$('.start_at').val('$start_at');
$('.end_at').val('$end_at');
//结束位置不能动(顶行写)
JS;
Admin::script($script);
$form->dateRange('start_at', 'end_at', '时间范围');
$start_at = '2022-04-22';
$end_at = '2023-04-22';
$script = <<<JS
//设置默认时间
$('.start_at').val('$start_at');
$('.end_at').val('$end_at');
//结束位置不能动(顶行写)
JS;
Admin::script($script);