|
@ -216,6 +216,9 @@ class GridView extends BaseListView |
|
|
public $layout = <<< HTML |
|
|
public $layout = <<< HTML |
|
|
<div class="card-body"> |
|
|
<div class="card-body"> |
|
|
<div id="example2_wrapper" class="dataTables_wrapper dt-bootstrap4"> |
|
|
<div id="example2_wrapper" class="dataTables_wrapper dt-bootstrap4"> |
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
{filter} |
|
|
|
|
|
</div> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-sm-12 col-md-6"> |
|
|
<div class="col-sm-12 col-md-6"> |
|
|
{batch} |
|
|
{batch} |
|
@ -226,9 +229,9 @@ class GridView extends BaseListView |
|
|
<!-- <button type="button" id="export" class="btn btn-default"><i class="fa fa-file-excel-o"></i>导出</button>--> |
|
|
<!-- <button type="button" id="export" class="btn btn-default"><i class="fa fa-file-excel-o"></i>导出</button>--> |
|
|
{content} |
|
|
{content} |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-sm-12 col-md-6"> |
|
|
|
|
|
{filter} |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- <div class="col-sm-12 col-md-6">--> |
|
|
|
|
|
<!-- {filter}--> |
|
|
|
|
|
<!-- </div>--> |
|
|
</div> |
|
|
</div> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-sm-12"> |
|
|
<div class="col-sm-12"> |
|
@ -316,6 +319,7 @@ HTML; |
|
|
$this->registerIcheckJs(); |
|
|
$this->registerIcheckJs(); |
|
|
$this->registerConfirmJs(); |
|
|
$this->registerConfirmJs(); |
|
|
$this->registerExportJs(); |
|
|
$this->registerExportJs(); |
|
|
|
|
|
$this->registerCss(); |
|
|
parent::run(); |
|
|
parent::run(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -745,4 +749,17 @@ SCRIPT; |
|
|
return Html::tag('div', $this->content, ['class' => 'btn-group']); |
|
|
return Html::tag('div', $this->content, ['class' => 'btn-group']); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 注册css |
|
|
|
|
|
*/ |
|
|
|
|
|
protected function registerCss() |
|
|
|
|
|
{ |
|
|
|
|
|
$css =<<<CSS |
|
|
|
|
|
.form-control{ |
|
|
|
|
|
width: 192px; |
|
|
|
|
|
} |
|
|
|
|
|
CSS; |
|
|
|
|
|
$this->getView()->registerCss($css); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |