1
0

index.php 867 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use yii\grid\GridView;
  3. /* @var $this yii\web\View */
  4. /* @var $dataProvider yii\data\ActiveDataProvider */
  5. //$this->title = '操作记录';
  6. //$this->params['breadcrumbs'][] = $this->id;
  7. ?>
  8. <div class="handle-index">
  9. <?= GridView::widget([
  10. 'dataProvider' => $dataProvider,
  11. 'columns' => [
  12. 'id',
  13. 'channel',
  14. 'queue',
  15. 'msg_delivery_tag',
  16. // 'addtime',
  17. // 'describe',
  18. // 'msg',
  19. // 'msg_body',
  20. [
  21. 'attribute'=>'addtime',
  22. // 'value'=>function($model){
  23. // return date('Y-m-d H:i:s',$model->addtime);
  24. // },
  25. ],
  26. ['class' => 'yii\grid\ActionColumn','template'=>'{view}']
  27. ],
  28. 'tableOptions'=>['class' => 'table table-striped']
  29. ]); ?>
  30. </div>