Commit 805f443b51715e229f226b449857cd83b2254bfa

Authored by fengwotao
2 parents 7d06e570 cc1ffdd9

Merge branch 'main_dev' into ft

... ... @@ -103,6 +103,12 @@
103 103 import { HomeStatisticsRecordType } from '/@/api/dashboard/model';
104 104 import { useRole } from '/@/hooks/business/useRole';
105 105 import { unref } from 'vue';
  106 + import productPicture from '/@/assets/images/product.png';
  107 + import devicePicture from '/@/assets/images/device-count.png';
  108 + import alarmPicture from '/@/assets/images/alarm-count.png';
  109 + import msgPicture from '/@/assets/images/msg-count.png';
  110 + import tenantPicture from '/@/assets/images/zh.png';
  111 + import customerPicture from '/@/assets/images/kf.png';
106 112
107 113 interface RecordType {
108 114 value: number;
... ... @@ -153,7 +159,7 @@
153 159 const { deviceInfo, productInfo, alarmInfo, messageInfo, customerInfo, tenantInfo } = record;
154 160
155 161 const productTotal: StatisticalItemType = {
156   - images: '/src/assets/images/product.png',
  162 + images: productPicture,
157 163 totals: [{ label: '产品数', value: productInfo?.sumCount }],
158 164 tooltips: [
159 165 { label: '产品数', value: productInfo?.sumCount },
... ... @@ -163,7 +169,7 @@
163 169 };
164 170
165 171 const deviceTotal: StatisticalItemType = {
166   - images: '/src/assets/images/device-count.png',
  172 + images: devicePicture,
167 173 totals: [{ label: '设备数', value: deviceInfo?.sumCount }],
168 174 tooltips: [
169 175 { label: '设备数', value: deviceInfo?.sumCount },
... ... @@ -173,7 +179,7 @@
173 179 };
174 180
175 181 const alarmTotal: StatisticalItemType = {
176   - images: '/src/assets/images/alarm-count.png',
  182 + images: alarmPicture,
177 183 totals: [{ label: '告警数', value: alarmInfo?.sumCount }],
178 184 tooltips: [
179 185 { label: '告警数', value: alarmInfo?.sumCount },
... ... @@ -183,7 +189,7 @@
183 189 };
184 190
185 191 const messageTotal: StatisticalItemType = {
186   - images: '/src/assets/images/msg-count.png',
  192 + images: msgPicture,
187 193 totals: [
188 194 { label: '消息数', value: messageInfo?.messageCount },
189 195 { label: '消息点数', value: messageInfo?.dataPointsCount },
... ... @@ -199,7 +205,7 @@
199 205 };
200 206
201 207 const tenantTotal: StatisticalItemType = {
202   - images: '/src/assets/images/zh.png',
  208 + images: tenantPicture,
203 209 totals: [{ label: '租户总量', value: tenantInfo?.sumCount }],
204 210 tooltips: [
205 211 { label: '租户总量', value: tenantInfo?.sumCount },
... ... @@ -209,7 +215,7 @@
209 215 };
210 216
211 217 const customerTotal: StatisticalItemType = {
212   - images: '/src/assets/images/kf.png',
  218 + images: customerPicture,
213 219 totals: [{ label: '客户总量', value: customerInfo?.sumCount }],
214 220 tooltips: [
215 221 { label: '客户总量', value: customerInfo?.sumCount },
... ...
... ... @@ -32,7 +32,7 @@
32 32 <Card size="small" class="md:w-1/3 w-full !md:mt-0 !mt-4">
33 33 <main class="flex flex-col">
34 34 <div class="flex">
35   - <img class="w-22.5 h-22.5 mb-2.5 mr-2.5" :src="value.images" alt="" />
  35 + <img class="!w-22.5 !h-22.5 !mb-2.5 !mr-2.5" :src="value.images" alt="" />
36 36 <div class="flex flex-1">
37 37 <div
38 38 class="flex-auto w-full"
... ...