maoyunfeng 5 years ago
parent
commit
64fbad55e1

+ 16 - 0
whepi-ui/templates/yeweihui/home.ftl

@@ -81,6 +81,22 @@
                 $("#exportRiBao").attr('href', "/yeweihui/exportRiBao?userId=" + $('#userId').val() + "&date=" + reportDate);
                 console.log(reportDate);
                 $("#exportRiBaoLink").val(window.location.hostname + "/yeweihui/exportRiBao?userId=" + $('#userId').val() + "&date=" + reportDate);
+                var userId = $("#userId").val();
+                $.ajax({
+                    url: '/yeweihui/ribaohuiz',
+                    data: {
+                        "userCreate": userId,
+                        "reportDate": reportDate,
+                    },
+                    type: 'GET',
+                    success: function (data) {
+                        // $('#ribao_famliy').empty();
+                        for (var i = 0; i < data.data.length; i++) {
+                            var v = data.data[i];
+                            var t1 = $('<td align="center">' + v.num + '</td>');
+                            $("#huiz").append(t1);
+                        }
+                    },
             }
         });
 

+ 4 - 4
whepi-ui/templates/yeweihui/ribaohuiz.ftl

@@ -1,7 +1,7 @@
 <#assign title="业委会"/>
 <div class="page__bd" style="height: 300px">
     <header class="demos-header">
-        <h1 class="demos-title">抗疫小区</h1>
+        <h1 class="demos-title" id="xiaoqu">抗疫小区</h1>
     </header>
 
     <div id="ribaohuiz"></div>
@@ -14,9 +14,9 @@
                 <td style="background-color: lightgrey" align="center">异常户数</td>
             </tr>
             <tr id="huiz">
-                <td align="center">8</td>
-                <td align="center">0</td>
-                <td align="center">0</td>
+                <#--<td align="center">8</td>-->
+                <#--<td align="center">0</td>-->
+                <#--<td align="center">0</td>-->
             </tr>
             </tbody>
         </table>

+ 2 - 2
whepi-web/src/main/java/com/bofeng/wx/controller/YeWeiHuiController.java

@@ -188,8 +188,8 @@ public class YeWeiHuiController {
     }
 
     @GetMapping("/yeweihui/ribaohuiz")
-    public Model<List<MsSuspected>> yeweihuiRibaohuiz(String reportDate) {
-        Long userCreate = 1225331049509187586L;
+    public Model<List<MsSuspected>> yeweihuiRibaohuiz(Long userCreate,String reportDate) {
+//        Long userCreate = 1225331049509187586L;
         List<MsSuspected> rbList = rbService.selecthuiz(userCreate,reportDate);
         return Model.newSuccess(rbList);
     }