nodelist.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午2:30
  7. */
  8. use backend\assets\AppAsset;
  9. //AppAsset::addScript($this,Yii::$app->request->baseUrl."/company/ceshi.js");
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/node.js");
  11. ?>
  12. <style>
  13. body {
  14. padding: 15px;
  15. }
  16. .layui-elem-quote {
  17. margin-bottom: 0;
  18. border-left: none;
  19. padding: 10px;
  20. }
  21. .layui-table-page .layui-laypage {float:right;margin-right:1%;}
  22. </style>
  23. <blockquote class="layui-elem-quote quoteBox demoTable">
  24. <div class="layui-btn-group demoTable" >
  25. <button class="layui-btn" data-type="addData">新增</button>
  26. <!-- <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>-->
  27. <!-- <button class="layui-btn" data-type="isAll">验证是否全选</button>-->
  28. </div>
  29. <div class="layui-btn-group demoTable" >
  30. <button class="layui-btn" data-type="addDataall">新增所有</button>
  31. <!-- <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>-->
  32. <!-- <button class="layui-btn" data-type="isAll">验证是否全选</button>-->
  33. </div>
  34. </blockquote>
  35. <table id="nodelist" lay-filter="nodelist"></table>
  36. <script type="text/html" id="operate">
  37. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  38. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  39. </script>