313392073 5 years ago
parent
commit
0c5c24d5d4
3 changed files with 268 additions and 6 deletions
  1. 8 0
      css/common.css
  2. 3 3
      page/user/adminadd.html
  3. 257 3
      page/user/adminlist.html

+ 8 - 0
css/common.css

@@ -222,4 +222,12 @@ a {
 .layui-body .main{
     padding: 15px 15px 0 15px;
     box-sizing: border-box;
+}
+.layui-table-body{
+    overflow-x: auto;
+    overflow-y: hidden;
+}
+.layui-table-cell{
+    line-height: 29px;
+    height: 29px;
 }

+ 3 - 3
page/user/adminadd.html

@@ -284,12 +284,12 @@
     <script src="../../js/common.js"></script>
     <script>
         if(getUrlParam('id')) {
-            layui.use(['table', 'form','laydate'], function () {
+            layui.use(['form'], function () {
                 var form = layui.form;
                 getInit()
                 function getInit() {
                     $.ajax({
-                        url:'', //删除的接口
+                        url:'http://192.168.2.161/AdminUsers/GetFormJson',
                         type:'get',
                         dataType: "json",
                         data : "id="+getUrlParam('id'),    
@@ -298,7 +298,7 @@
                                 form.val('formData', res.data)
                                 $("#img-pre").attr('src',res.data.logo)
                             }else{
-                                layer.msg("网路错误,提交失败", {icon: 5});
+                                layer.msg("网路错误,请稍后再试", {icon: 5});
                             }
                         }
                     })

+ 257 - 3
page/user/adminlist.html

@@ -230,7 +230,8 @@
                     </div>
                     <div class="main">
                         <div class="searchbox">
-                            <span>账号:</span>
+                            <a href="./adminadd.html" class="layui-btn" id="uploadbtn"><i class="layui-icon"></i>新增</a>
+                            <span class="searchname">账号:</span>
                             <div class="layui-inline">
                               <input class="layui-input" name="restname" id="restname" autocomplete="off">
                             </div>
@@ -428,6 +429,259 @@
                         role: 4,
                         createtime: '2020-04-20'
                     },
+                    {
+                        id:1,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:2,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:3,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:4,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:5,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:6,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:7,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:8,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },{
+                        id:1,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:2,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:3,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:4,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:5,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:6,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:7,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:8,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },{
+                        id:1,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:2,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:3,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:4,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:5,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:6,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:7,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:8,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },{
+                        id:1,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:2,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:3,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:4,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:5,
+                        name: '哈哈哈',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 1,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:6,
+                        name: '哈哈哈0',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 2,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:7,
+                        name: '哈哈哈2',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 3,
+                        createtime: '2020-04-20'
+                    },
+                    {
+                        id:8,
+                        name: '哈哈哈3',
+                        nickname: '哈哈哈哈哈',
+                        logo: 'https://www.55128.cn/static/images/logo-1.png',
+                        role: 4,
+                        createtime: '2020-04-20'
+                    },
                 ],
                 title: '用户数据表',
                 cellMinWidth: 120,
@@ -467,8 +721,8 @@
                     { fixed: 'right', title: '操作', toolbar: '#bar' }
                 ]],
                 page: true, //分页
-                count: 4,
-                limit: 2,
+                // count: 4,
+                limit: 17,
                 id: 'searchReload',
                 height:'full-175'
             })