adminform.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  2. <div class="layui-form-item">
  3. <label class="layui-form-label">登录名</label>
  4. <div class="layui-input-inline">
  5. <script type="text/html" template>
  6. <input type="text" name="loginname" value="{{ d.params.loginname || '' }}" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
  7. </script>
  8. </div>
  9. </div>
  10. <div class="layui-form-item">
  11. <label class="layui-form-label">手机</label>
  12. <div class="layui-input-inline">
  13. <script type="text/html" template>
  14. <input type="text" name="telphone" value="{{ d.params.telphone || '' }}" lay-verify="phone" placeholder="请输入号码" autocomplete="off" class="layui-input">
  15. </script>
  16. </div>
  17. </div>
  18. <div class="layui-form-item">
  19. <label class="layui-form-label">邮箱</label>
  20. <div class="layui-input-inline">
  21. <script type="text/html" template>
  22. <input type="text" name="email" value="{{ d.params.email || '' }}" lay-verify="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
  23. </script>
  24. </div>
  25. </div>
  26. <div class="layui-form-item">
  27. <label class="layui-form-label">角色</label>
  28. <div class="layui-input-inline">
  29. <script type="text/html" template>
  30. <select name="role">
  31. <option value="0" {{ d.params.role === '管理员' ? 'selected' : '' }}>管理员</option>
  32. <option value="1" {{ d.params.role === '超级管理员' ? 'selected' : '' }}>超级管理员</option>
  33. <option value="2" {{ d.params.role === '纠错员' ? 'selected' : '' }}>纠错员</option>
  34. <option value="3" {{ d.params.role === '采购员' ? 'selected' : '' }}>采购员</option>
  35. <option value="4" {{ d.params.role === '推销员' ? 'selected' : '' }}>推销员</option>
  36. <option value="5" {{ d.params.role === '运营人员' ? 'selected' : '' }}>运营人员</option>
  37. <option value="6" {{ d.params.role === '编辑' ? 'selected' : '' }}>编辑</option>
  38. </select>
  39. </script>
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label">审核状态</label>
  44. <div class="layui-input-inline">
  45. <script type="text/html" template>
  46. <input type="checkbox" lay-filter="switch" name="switch" {{ d.params.check ? 'checked' : '' }} lay-skin="switch" lay-text="通过|待审核">
  47. </script>
  48. </div>
  49. </div>
  50. <div class="layui-form-item">
  51. <label class="layui-form-label"></label>
  52. <div class="layui-input-inline">
  53. <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
  54. </div>
  55. </div>
  56. </div>
  57. <script>
  58. layui.use(['admin', 'form'], function(){
  59. var $ = layui.$
  60. ,form = layui.form;
  61. });
  62. </script>