几个号 2017-05-27 11:05:28 3232次浏览 4条回复 0 0 0

WPI$SR1A.png

  • 这里是列表文本
  • 回复于 2017-05-27 11:07 举报

    1.png

  • 回复于 2017-05-27 11:07 举报

    图片像这种

  • 回复于 2017-05-27 11:08 举报

    父节点是一张表,子节点是一张表

  • 回复于 2017-05-29 09:43 举报

    11.gif
    用JSTree:

    <div class="row-fluid table">
                        <?= \yiidreamteam\jstree\JsTree::widget([
                            'containerOptions' => [
                                'class' => 'data-tree',
                            ],
                            'jsOptions' => [
                                'core' => [
                                    'check_callback'=>true,
                                    'multiple' => false,
                                    'data' => [
                                        //["id":1,"text":"服装","children":[{}]]
                                        'url' => \yii\helpers\Url::to(['category/tree','page'=>$page,'per-page'=>$perpage]),
                                    ],
                                    'themes' => [
                                        'stripes'=>true,
                                        'variant'=>'large',
                                    ],
                                ],
                                'plugins'=>[
                                    'contextmenu','dnd','search','state','types','wholerow',
                                ],
                            ]
                        ]) ?>
                    </div>
                    <div class="pagination pull-right">
                        <?php echo yii\widgets\LinkPager::widget([
                            'pagination' => $pager,
                            'prevPageLabel' => '&#8249;',
                            'nextPageLabel' => '&#8250;',
                            ]); ?>
                    </div>
    
    1 条回复
    回复于 2017-06-09 14:53 回复

    谢谢啊,我用smatry写了,

您需要登录后才可以回复。登录 | 立即注册