befly-admin-ui 1.44.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-admin-ui",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "gitHead": "071d17be177355cdd61f30659c6e4c5873f87d39",
5
5
  "private": false,
6
6
  "description": "Befly - 管理后台功能组件",
@@ -15,16 +15,11 @@
15
15
  <div class="dashboard-row full-width">
16
16
  <EnvironmentInfo />
17
17
  </div>
18
-
19
- <div class="dashboard-row full-width">
20
- <ProjectStats />
21
- </div>
22
18
  </div>
23
19
  </template>
24
20
 
25
21
  <script setup>
26
22
  import EnvironmentInfo from "./components/environmentInfo.vue";
27
- import ProjectStats from "./components/projectStats.vue";
28
23
  import ServiceStatus from "./components/serviceStatus.vue";
29
24
  import SystemOverview from "./components/systemOverview.vue";
30
25
  import SystemResources from "./components/systemResources.vue";
@@ -1,46 +1,48 @@
1
1
  <template>
2
- <div class="section-block">
3
- <div class="section-header flex items-center gap-2">
4
- <ChartIcon />
5
- <h2>项目统计</h2>
6
- </div>
7
-
8
- <div class="section-content">
9
- <div class="project-row-list">
10
- <div v-for="item in $Computed.productRows" :key="item.key" class="product-row">
11
- <div class="metric-card">
12
- <span class="metric-label">产品名称</span>
13
- <strong class="metric-value-name">{{ item.productCode || item.productName }}</strong>
14
- </div>
15
-
16
- <div class="metric-card">
17
- <span class="metric-label">在线人数</span>
18
- <strong class="metric-value-online">{{ item.onlineCount }}</strong>
19
- </div>
20
-
21
- <div class="metric-card">
22
- <span class="metric-label">今日访客</span>
23
- <strong class="metric-value-visitor">{{ item.today }}</strong>
24
- </div>
25
-
26
- <div class="metric-card">
27
- <span class="metric-label">昨日访客</span>
28
- <strong class="metric-value-visitor">{{ item.yesterday }}</strong>
29
- </div>
30
-
31
- <div class="metric-card">
32
- <span class="metric-label">前天访客</span>
33
- <strong class="metric-value-visitor">{{ item.dayBeforeYesterday }}</strong>
34
- </div>
35
-
36
- <div class="metric-card">
37
- <span class="metric-label">近30天访客</span>
38
- <strong class="metric-value-visitor">{{ item.recent30 }}</strong>
39
- </div>
2
+ <div class="page-project-stats">
3
+ <div class="section-block">
4
+ <div class="section-header">
5
+ <ChartIcon />
6
+ <h2>项目统计</h2>
7
+ </div>
40
8
 
41
- <div class="metric-card">
42
- <span class="metric-label">本月访客</span>
43
- <strong class="metric-value-visitor">{{ item.month }}</strong>
9
+ <div class="section-content">
10
+ <div class="project-row-list">
11
+ <div v-for="item in $Computed.productRows" :key="item.key" class="product-row">
12
+ <div class="metric-card">
13
+ <span class="metric-label">产品名称</span>
14
+ <strong class="metric-value-name">{{ item.productCode || item.productName }}</strong>
15
+ </div>
16
+
17
+ <div class="metric-card">
18
+ <span class="metric-label">在线人数</span>
19
+ <strong class="metric-value-online">{{ item.onlineCount }}</strong>
20
+ </div>
21
+
22
+ <div class="metric-card">
23
+ <span class="metric-label">今日访客</span>
24
+ <strong class="metric-value-visitor">{{ item.today }}</strong>
25
+ </div>
26
+
27
+ <div class="metric-card">
28
+ <span class="metric-label">昨日访客</span>
29
+ <strong class="metric-value-visitor">{{ item.yesterday }}</strong>
30
+ </div>
31
+
32
+ <div class="metric-card">
33
+ <span class="metric-label">前天访客</span>
34
+ <strong class="metric-value-visitor">{{ item.dayBeforeYesterday }}</strong>
35
+ </div>
36
+
37
+ <div class="metric-card">
38
+ <span class="metric-label">近30天访客</span>
39
+ <strong class="metric-value-visitor">{{ item.recent30 }}</strong>
40
+ </div>
41
+
42
+ <div class="metric-card">
43
+ <span class="metric-label">本月访客</span>
44
+ <strong class="metric-value-visitor">{{ item.month }}</strong>
45
+ </div>
44
46
  </div>
45
47
  </div>
46
48
  </div>
@@ -49,6 +51,7 @@
49
51
  </template>
50
52
 
51
53
  <script setup>
54
+ import { ChartIcon } from "tdesign-icons-vue-next";
52
55
  import { computed, reactive } from "vue";
53
56
 
54
57
  import { $Http } from "@/plugins/http.js";
@@ -65,7 +68,7 @@ const $Method = {
65
68
  key: String(visitItem?.key || onlineItem?.key || visitItem?.productCode || onlineItem?.productCode || ""),
66
69
  productName: String(visitItem?.productName || onlineItem?.productName || "-"),
67
70
  productCode: String(visitItem?.productCode || onlineItem?.productCode || ""),
68
- productVersion: String(visitItem?.productVersion || onlineItem?.productVersion || ""),
71
+
69
72
  onlineCount: Number(onlineItem?.onlineCount || 0),
70
73
  today: Number(visitItem?.today || 0),
71
74
  yesterday: Number(visitItem?.yesterday || 0),
@@ -117,7 +120,19 @@ $Method.fetchData();
117
120
  </script>
118
121
 
119
122
  <style scoped lang="scss">
120
- @use "../../../styles/dashboardCard.scss" as dashboardCard;
123
+ @use "../../styles/dashboardCard.scss" as dashboardCard;
124
+
125
+ .page-project-stats {
126
+ height: 100%;
127
+ min-width: 0;
128
+ overflow-y: auto;
129
+ overflow-x: hidden;
130
+ padding: 4px 0 12px;
131
+ }
132
+
133
+ .section-content {
134
+ min-width: 0;
135
+ }
121
136
 
122
137
  .project-row-list {
123
138
  display: flex;