guoziyun 9 月之前
父节点
当前提交
c69c7365a4
共有 3 个文件被更改,包括 14 次插入12 次删除
  1. 1 1
      oms/public/app/index.html
  2. 0 0
      oms/public/app/main-7U5LK2VE.js
  3. 13 11
      omsapp/src/app/pages/message-dashboard.component.ts

+ 1 - 1
oms/public/app/index.html

@@ -9,5 +9,5 @@
   <style>body,html{width:100%;height:100%}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}body{margin:0;color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}</style><link rel="stylesheet" href="styles-LXBSU6DF.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LXBSU6DF.css"></noscript></head>
   <body>
     <app-root></app-root>
-  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-TFE7P575.js" type="module"></script></body>
+  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-7U5LK2VE.js" type="module"></script></body>
 </html>

文件差异内容过多而无法显示
+ 0 - 0
oms/public/app/main-7U5LK2VE.js


+ 13 - 11
omsapp/src/app/pages/message-dashboard.component.ts

@@ -218,16 +218,18 @@ export class MessageDashboardComponent implements OnInit {
 
     // Use forkJoin to run all requests in parallel and wait for all to complete
     forkJoin({
-      overall: this.http.get('/api/message-records/statistics/overall').pipe(
-        map((res: any) => res?.data || null),
-        catchError((err) => {
-          console.error('Failed to load overall statistics:', err);
-          this.message.error('加载整体统计失败');
-          return of(null); // Return a default value to prevent forkJoin from failing
-        })
-      ),
+      overall: this.http
+        .get(`/api/message-records/statistics/overall?t=${new Date()}`)
+        .pipe(
+          map((res: any) => res?.data || null),
+          catchError((err) => {
+            console.error('Failed to load overall statistics:', err);
+            this.message.error('加载整体统计失败');
+            return of(null); // Return a default value to prevent forkJoin from failing
+          })
+        ),
       strategies: this.http
-        .get('/api/message-records/statistics/by-strategy')
+        .get(`/api/message-records/statistics/by-strategy?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {
@@ -237,7 +239,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       templates: this.http
-        .get('/api/message-records/statistics/by-template')
+        .get(`/api/message-records/statistics/by-template?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {
@@ -247,7 +249,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       dailyTrends: this.http
-        .get('/api/message-records/statistics/daily-trends')
+        .get(`/api/message-records/statistics/daily-trends?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {

部分文件因为文件数量过多而无法显示