2 Commitit 9b030d485f ... 5a84ca775f

Tekijä SHA1 Viesti Päivämäärä
  wangrulan 5a84ca775f Merge branch 'master' of http://nokia.tianhaikj.tk:13000/other/hb_nokia_pm_ui 1 vuosi sitten
  wangrulan 6f51ab78d8 添加loading 1 vuosi sitten
1 muutettua tiedostoa jossa 12 lisäystä ja 9 poistoa
  1. 12 9
      src/main/resources/templates/template.html

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

@@ -288,17 +288,20 @@
 
         function renderTable(condition, searchType, 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('layer.load: ', layer.load);
+            var tishi = layer.load(1, {
+                shadeClose: false,
+                title: '加载中..',
+                shade: [0.5,'#000'] //0.1透明度的白色背景
+            });
             console.log('tishi: ', tishi);
+            // setTimeout(()=>{
+            //     layer.close(tishi);
+            // },5000)
             $.ajax({
                 type: "POST",
                 url: './renderTable',
-                async: false,
+                async: true,
                 traditional: true,
                 data: {
                     "condition": condition,
@@ -414,11 +417,11 @@
                 alert('请填写eci')
                 return;
             }
-            console.log(`searchType: ${searchType}`)
+            // console.log(`searchType: ${searchType}`)
             console.log(`condition: ${condition}`)
            alert('开始查询')
             // layer.msg(JSON.stringify(data.field));
-            console.log(JSON.stringify(tree.getChecked('Id1')))
+            // console.log(JSON.stringify(tree.getChecked('Id1')))
             let checkData1 = tree.getChecked('Id1')[0].children;
             let checkData2 = tree.getChecked('Id3')[0].children;
             console.log(checkData1)