diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts index 6478843..684b4d9 100644 --- a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/config.ts @@ -37,7 +37,7 @@ export const option = { headerHeight: 28, itemHeight: 28, fontSize: 12, - title: '近60分钟报警信息', + titleText: '近60分钟报警信息', titleSize: 16, titleColor: '#eee', fontWeight: 'normal', diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue index 091c94c..c4485d6 100644 --- a/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue +++ b/src/packages/components/Charts/HazardousChemicalsSpace/AlarmListHazC/index.vue @@ -1,57 +1,41 @@ - - - - + + + + + + {{ header }} + + + + + + + + + {{ item.alarmDescname }} + + + {{ item.alarmTime }} + + + {{ item.compName }} + + + {{ item.alarmLevel }} + + + + + + + + - - {{ option.title }} - - - - - - - - - - - {{ header }} - - - - - - - - - {{ item.alarmDescname }} - - - {{ item.alarmTime }} - - - {{ item.compName }} - - - {{ item.alarmLevel }} - - - - - @@ -60,7 +44,7 @@ import { PropType, computed, ref, onMounted, onUnmounted } from 'vue' import { option as configOption } from './config' import SmallBorder from '../SmallBorder/index.vue' import axiosInstance from '@/api/axios' - +import PublicSmallBorder from '../../Public_SmallBorder/index.vue' const props = defineProps({ chartConfig: { type: Object as PropType<{ option: typeof configOption }>, @@ -89,7 +73,7 @@ const convertTimestampToDateTime = (timestamp: number | string) => { const fetchRecentAlarms = async () => { try { const res: any = await axiosInstance.get( - `/awjt/space/getRecentAlarms/${option.value.sceneCode}`, + `/awjt/space/getRecentAlarms`, { responseType: 'json', baseURL: '' @@ -147,22 +131,17 @@ onUnmounted(() => {