@@ -27,7 +30,7 @@
import { listAppUserResets } from '@/api/appUser';
import type { AppUserResetVO } from '@/api/appUser/types';
import { useLoading } from '@/hooks/async/useLoading';
-import { deviceLabel, formatReading, normalizeRecordList, quantityUnit, valueOrDash } from './helpers';
+import { formatReading, normalizeRecordList, quantityUnit, valueOrDash } from './helpers';
const props = defineProps<{ userId?: string | number }>();
@@ -35,7 +38,7 @@ const props = defineProps<{ userId?: string | number }>();
interface ResetRecordItem {
id: string | number;
roomNo: string;
- deviceText: string;
+ deviceNo: string;
beforeReading: string;
afterReading: string;
resetTime: string;
@@ -50,8 +53,8 @@ const resetRecords = computed(() =>
const unit = quantityUnit(record);
return {
id: record.id,
- roomNo: String(valueOrDash(record.roomNo)),
- deviceText: deviceLabel(record),
+ roomNo: String(valueOrDash(record.installLocation)),
+ deviceNo: String(valueOrDash(record.deviceNo)),
beforeReading: formatReading(record.beforeReadingValue, unit),
afterReading: formatReading(record.afterReadingValue, unit),
resetTime: record.resetTime || '—'
@@ -89,4 +92,9 @@ onMounted(() => {
}
@include panels.record-card-list;
+
+.card-device-no {
+ margin-left: 8px;
+ color: var(--el-text-color-regular);
+}