截流自动化的商城平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

add.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-item .layui-input-inline {
  4. width: 270px;
  5. }
  6. </style>
  7. <div class="layui-form" lay-filter="layuiadmin-form-role" id="layuiadmin-form-role" style="padding: 20px 30px 0 0;">
  8. <div class="layui-form-item">
  9. <label class="layui-form-label">名称</label>
  10. <div class="layui-input-inline">
  11. <input type="text" name="name" lay-verify="required"lay-vertype="tips" placeholder="请输入名称" autocomplete="off" class="layui-input">
  12. </div>
  13. </div>
  14. <div class="layui-form-item">
  15. <label class="layui-form-label">权限</label>
  16. <div class="layui-input-block">
  17. <div id="auth_lists" class="demo-tree-more"></div>
  18. </div>
  19. </div>
  20. <div class="layui-form-item">
  21. <label class="layui-form-label">说明</label>
  22. <div class="layui-input-inline">
  23. <textarea type="text" name="desc" autocomplete="off" class="layui-textarea"></textarea>
  24. </div>
  25. </div>
  26. <div class="layui-form-item layui-hide">
  27. <button class="layui-btn" lay-submit lay-filter="add-role-submit" id="add-role-submit">提交</button>
  28. </div>
  29. </div>
  30. <script>
  31. layui.use(['form','tree'], function(){
  32. var $ = layui.$
  33. ,form = layui.form
  34. ,tree = layui.tree;
  35. var data ={$auth_tree|raw};
  36. tree.render({
  37. elem: '#auth_lists'
  38. ,data: data
  39. ,showCheckbox: true
  40. ,id: 'auth'
  41. ,isJump: true
  42. });
  43. })
  44. </script>