|  | @@ -18,9 +18,9 @@
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |    <a-tabs class="tab-box" v-model:activeKey="activeKey" @change="onChangeTab">
 | 
	
		
			
				|  |  | +    <a-tab-pane tab="安全监控预警历史" key="safety" />
 | 
	
		
			
				|  |  |      <a-tab-pane tab="设备预警历史" key="device" />
 | 
	
		
			
				|  |  |      <a-tab-pane tab="联动预警历史" key="manageAuto" />
 | 
	
		
			
				|  |  | -    <a-tab-pane tab="安全监控预警历史" key="safety" />
 | 
	
		
			
				|  |  |    </a-tabs>
 | 
	
		
			
				|  |  |    <div class="alarm-history-table">
 | 
	
		
			
				|  |  |      <BasicTable v-if="activeKey == 'device'" ref="alarmHistory" @register="registerTable" :scroll="{ x: 0, y: 350 }">
 | 
	
	
		
			
				|  | @@ -86,7 +86,7 @@ import { useListPage } from '/@/hooks/system/useListPage';
 | 
	
		
			
				|  |  |  import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
 | 
	
		
			
				|  |  |  import { manageAutoColumns1, safetyColumns, safetySchema, unsafetySchema } from './alarm.data';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import { list, getEachMineWarnCountInfo,getExportUrl } from './warning.api';
 | 
	
		
			
				|  |  | +import { list, getEachMineWarnCountInfo, getExportUrl } from './warning.api';
 | 
	
		
			
				|  |  |  import { useRoute } from 'vue-router';
 | 
	
		
			
				|  |  |  import customHeader from '/@/components/vent/customHeader.vue';
 | 
	
		
			
				|  |  |  import { render } from '/@/utils/common/renderUtils';
 | 
	
	
		
			
				|  | @@ -104,7 +104,7 @@ let statisticsList = reactive<any[]>([
 | 
	
		
			
				|  |  |    { title: '火灾', valueT: 0, valueB: '' },
 | 
	
		
			
				|  |  |    { title: '安全监测', valueT: 0, valueB: '' },
 | 
	
		
			
				|  |  |  ]);
 | 
	
		
			
				|  |  | -const activeKey = ref('device');
 | 
	
		
			
				|  |  | +const activeKey = ref('safety');
 | 
	
		
			
				|  |  |  const alarmHistory = ref();
 | 
	
		
			
				|  |  |  const deviceColumns = getTableHeaderColumns('alarm_history') as [];
 | 
	
		
			
				|  |  |  const dataColumns = ref<any>(deviceColumns);
 | 
	
	
		
			
				|  | @@ -116,24 +116,24 @@ const paramType = ref('alarmLog');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  function onChangeTab(tab) {
 | 
	
		
			
				|  |  |    activeKey.value = tab
 | 
	
		
			
				|  |  | -  if (tab === 'device') {
 | 
	
		
			
				|  |  | +  if (tab === 'safety') {
 | 
	
		
			
				|  |  | +    paramType.value = 'aqjkAlarmLog';
 | 
	
		
			
				|  |  | +    dataColumns.value = safetyColumns;
 | 
	
		
			
				|  |  | +    searchFormSchema.value = safetySchema
 | 
	
		
			
				|  |  | +  } else if (tab === 'device') {
 | 
	
		
			
				|  |  |      paramType.value = 'alarmLog';
 | 
	
		
			
				|  |  |      dataColumns.value = deviceColumns;
 | 
	
		
			
				|  |  |      searchFormSchema.value = unsafetySchema
 | 
	
		
			
				|  |  | -  } else if (tab == 'manageAuto') {
 | 
	
		
			
				|  |  | +  } else {
 | 
	
		
			
				|  |  |      paramType.value = 'autoLog';
 | 
	
		
			
				|  |  |      dataColumns.value = manageAutoColumns1;
 | 
	
		
			
				|  |  |      searchFormSchema.value = unsafetySchema
 | 
	
		
			
				|  |  | -  } else {
 | 
	
		
			
				|  |  | -    paramType.value = 'aqjkAlarmLog';
 | 
	
		
			
				|  |  | -    dataColumns.value = safetyColumns;
 | 
	
		
			
				|  |  | -    searchFormSchema.value = safetySchema
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // 列表页面公共参数、方法
 | 
	
		
			
				|  |  | -const { tableContext, onExportXls,onExportXlsPost } = useListPage({
 | 
	
		
			
				|  |  | +const { tableContext, onExportXls, onExportXlsPost } = useListPage({
 | 
	
		
			
				|  |  |    tableProps: {
 | 
	
		
			
				|  |  |      api: list,
 | 
	
		
			
				|  |  |      columns: dataColumns,
 |