|
6 | 6 | <div class="flex-between"> |
7 | 7 | <div> |
8 | 8 | <p class="color-secondary lighter mb-4">{{ $t('views.application.title') }}</p> |
9 | | - <h2 class="large-number">{{ numberFormat(applicationAggregation?.total || 0) }}</h2> |
| 9 | + <h2 class="large-number">{{ applicationAggregation?.total || 0 }}</h2> |
10 | 10 | </div> |
11 | 11 | <el-avatar :size="48" shape="square" style="background: #ebf1ff"> |
12 | 12 | <appIcon |
|
18 | 18 | <el-row class="mt-12"> |
19 | 19 | <el-col :span="12"> |
20 | 20 | <p class="color-secondary lighter mb-4">{{ $t('common.status.published') }}</p> |
21 | | - <h2>{{ numberFormat(applicationAggregation?.publish_count || 0) }}</h2> |
| 21 | + <h2>{{ applicationAggregation?.publish_count || 0 }}</h2> |
22 | 22 | </el-col> |
23 | 23 | <el-col :span="12"> |
24 | 24 | <p class="color-secondary lighter mb-4">{{ $t('common.status.unpublished') }}</p> |
25 | | - <h2>{{ numberFormat(applicationAggregation?.un_publish_count || 0) }}</h2> |
| 25 | + <h2>{{ applicationAggregation?.un_publish_count || 0 }}</h2> |
26 | 26 | </el-col> |
27 | 27 | </el-row> |
28 | 28 | </el-card> |
|
32 | 32 | <div class="flex-between"> |
33 | 33 | <div> |
34 | 34 | <p class="color-secondary lighter mb-4">{{ $t('views.knowledge.title') }}</p> |
35 | | - <h2 class="large-number">{{ numberFormat(knowledgeAggregation?.total || 0) }}</h2> |
| 35 | + <h2 class="large-number">{{ knowledgeAggregation?.total || 0 }}</h2> |
36 | 36 | </div> |
37 | 37 | <el-avatar :size="48" shape="square" style="background: #f2ebfe"> |
38 | 38 | <appIcon |
|
44 | 44 | <el-row class="mt-12"> |
45 | 45 | <el-col :span="12"> |
46 | 46 | <p class="color-secondary lighter mb-4">{{ $t('common.fileUpload.document') }}</p> |
47 | | - <h2>{{ numberFormat(knowledgeAggregation?.document_count || 0) }}</h2> |
| 47 | + <h2>{{ knowledgeAggregation?.document_count || 0 }}</h2> |
48 | 48 | </el-col> |
49 | 49 | <el-col :span="12"> |
50 | 50 | <p class="color-secondary lighter mb-4">{{ $t('common.status.fail') }}</p> |
51 | | - <h2>{{ numberFormat(knowledgeAggregation?.failure_count || 0) }}</h2> |
| 51 | + <h2>{{ knowledgeAggregation?.failure_count || 0 }}</h2> |
52 | 52 | </el-col> |
53 | 53 | </el-row> |
54 | 54 | </el-card> |
|
58 | 58 | <div class="flex-between"> |
59 | 59 | <div> |
60 | 60 | <p class="color-secondary lighter mb-4">{{ $t('views.tool.title') }}</p> |
61 | | - <h2 class="large-number">{{ numberFormat(toolAggregation?.total || 0) }}</h2> |
| 61 | + <h2 class="large-number">{{ toolAggregation?.total || 0 }}</h2> |
62 | 62 | </div> |
63 | 63 | <el-avatar :size="48" shape="square" style="background: #ebf9e9"> |
64 | 64 | <appIcon iconName="app-tool-active" :style="{ fontSize: '28px', color: '#2CA91F' }" /> |
|
67 | 67 | <el-row class="mt-12"> |
68 | 68 | <el-col :span="8"> |
69 | 69 | <p class="color-secondary lighter mb-4">{{ $t('views.tool.title') }}</p> |
70 | | - <h2>{{ numberFormat(toolAggregation?.custom_count || 0) }}</h2> |
| 70 | + <h2>{{ toolAggregation?.custom_count || 0 }}</h2> |
71 | 71 | </el-col> |
72 | 72 | <el-col :span="8"> |
73 | 73 | <p class="color-secondary lighter mb-4">{{ $t('workflow.workflow') }}</p> |
74 | | - <h2>{{ numberFormat(toolAggregation?.workflow_count || 0) }}</h2> |
| 74 | + <h2>{{ toolAggregation?.workflow_count || 0 }}</h2> |
75 | 75 | </el-col> |
76 | 76 | <el-col :span="8"> |
77 | 77 | <p class="color-secondary lighter mb-4">{{ $t('common.other') }}</p> |
78 | 78 | <h2> |
79 | 79 | {{ |
80 | | - numberFormat( |
81 | | - toolAggregation?.total - |
82 | | - toolAggregation?.custom_count - |
83 | | - toolAggregation?.workflow_count || 0, |
84 | | - ) |
| 80 | + toolAggregation?.total - |
| 81 | + toolAggregation?.custom_count - |
| 82 | + toolAggregation?.workflow_count || 0 |
85 | 83 | }} |
86 | 84 | </h2> |
87 | 85 | </el-col> |
|
93 | 91 | <div class="flex-between"> |
94 | 92 | <div> |
95 | 93 | <p class="color-secondary lighter mb-4">{{ $t('views.model.title') }}</p> |
96 | | - <h2 class="large-number">{{ numberFormat(modelAggregation?.total || 0) }}</h2> |
| 94 | + <h2 class="large-number">{{ modelAggregation?.total || 0 }}</h2> |
97 | 95 | </div> |
98 | 96 | <el-avatar :size="48" shape="square" style="background: #fff3e5"> |
99 | 97 | <appIcon |
|
105 | 103 | <el-row class="mt-12"> |
106 | 104 | <el-col :span="8"> |
107 | 105 | <p class="color-secondary lighter mb-4">{{ $t('home.llm') }}</p> |
108 | | - <h2>{{ numberFormat(modelAggregation?.llm_count || 0) }}</h2> |
| 106 | + <h2>{{ modelAggregation?.llm_count || 0 }}</h2> |
109 | 107 | </el-col> |
110 | 108 | <el-col :span="8"> |
111 | 109 | <p class="color-secondary lighter mb-4">{{ $t('home.embedding') }}</p> |
112 | | - <h2>{{ numberFormat(modelAggregation?.embedding_count || 0) }}</h2> |
| 110 | + <h2>{{ modelAggregation?.embedding_count || 0 }}</h2> |
113 | 111 | </el-col> |
114 | 112 | <el-col :span="8"> |
115 | 113 | <p class="color-secondary lighter mb-4">{{ $t('common.other') }}</p> |
116 | 114 | <h2> |
117 | 115 | {{ |
118 | | - numberFormat( |
119 | | - modelAggregation?.total - |
120 | | - modelAggregation?.llm_count - |
121 | | - modelAggregation?.embedding_count || 0, |
122 | | - ) |
| 116 | + modelAggregation?.total - |
| 117 | + modelAggregation?.llm_count - |
| 118 | + modelAggregation?.embedding_count || 0 |
123 | 119 | }} |
124 | 120 | </h2> |
125 | 121 | </el-col> |
|
133 | 129 | import { ref, computed, onMounted } from 'vue' |
134 | 130 | import { useRouter } from 'vue-router' |
135 | 131 | import homeApi from '@/api/home-page/home' |
136 | | -import { numberFormat } from '@/utils/common' |
137 | 132 | const router = useRouter() |
138 | 133 | const loading = ref(true) |
139 | 134 | const applicationAggregation = ref() |
|
0 commit comments