|
|
@@ -26,10 +26,9 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, ref } from 'vue';
|
|
|
- import dayjs from 'dayjs';
|
|
|
import TopTitle from './TopTitle.vue';
|
|
|
import { getViolationStatisticsOverview } from '@/api/traffic-overview';
|
|
|
- import { getVehicleRecordList } from '@/api/security-confidentiality-vehicle';
|
|
|
+ import { getVehicleOverview } from '@/api/security-confidentiality-overview';
|
|
|
|
|
|
const vehicleCount = ref<number>(0); // 本月车流数
|
|
|
const regulationCount = ref<number>(0); // 本月违章数
|
|
|
@@ -42,15 +41,8 @@
|
|
|
noticeCount.value = res.violationNoticeCount;
|
|
|
accidentCount.value = res.trafficAccidentCount;
|
|
|
|
|
|
- const vehicleRecordList = await getVehicleRecordList({
|
|
|
- pageNumber: 1,
|
|
|
- pageSize: 10,
|
|
|
- queryParam: {
|
|
|
- startTime: dayjs().startOf('month').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
- endTime: dayjs().endOf('month').format('YYYY-MM-DD HH:mm:ss'),
|
|
|
- },
|
|
|
- });
|
|
|
- vehicleCount.value = vehicleRecordList.totalRow;
|
|
|
+ const vehicleOverview = await getVehicleOverview();
|
|
|
+ vehicleCount.value = vehicleOverview.vehicleCountMonth;
|
|
|
});
|
|
|
</script>
|
|
|
|