wangrulan 2 anni fa
parent
commit
59bc104137

BIN
src/main/resources/static/js/layui/css/modules/layer/default/bg.png


BIN
src/main/resources/static/js/layui/css/modules/layer/default/bg2.jpg


File diff suppressed because it is too large
+ 0 - 0
src/main/resources/static/js/layui/css/modules/login.css


+ 2 - 2
src/main/resources/templates/login.html

@@ -11,12 +11,12 @@
     <link rel="stylesheet" href="./js/layui/css/modules/admin.css">
     <link rel="stylesheet" href="./js/layui/css/modules/login.css">
     <style>
-        .bg {
+        /* .bg {
             width: 100%;
             height: 100%;
             background: url('../static/js/layui/css/modules/layer/default/bg.png');.
             background-size: 100% 100%;
-        }
+        } */
     </style>
 </head>
 <body>

+ 12 - 0
src/main/resources/templates/template.html

@@ -288,10 +288,18 @@
 
         function renderTable(table, citys, quxians, indicators, ttype, sdate) {
             console.log('renderTable')
+            // var tishi = layer.load(2, { shade: [0.15, '#ccc'] });
+            var tishi = layer.open({
+                    shadeClose: false
+                    ,type: 2
+                    ,content: '加载中...'
+                });
+            console.log('tishi: ', tishi);
             $.ajax({
                 type: "POST",
                 url: './renderTable',
                 async: false,
+                traditional: true,
                 data: {
                     "citys": citys,
                     "quxians": quxians,
@@ -300,6 +308,7 @@
                     "sdate": sdate
                 },
                 success: function (r) {
+                    layer.close(tishi);
                     dataA = r;
                     // 没有权限提示
                     if (r?.msg && r.msg.length > 0) {
@@ -331,6 +340,9 @@
                         data: r.datas
                     });
                     return false;
+                },
+                error: function(err){
+                    layer.close(tishi);
                 }
             });
         }

Some files were not shown because too many files changed in this diff