报警统计添加处理状态
This commit is contained in:
parent
6f4d1f8c05
commit
ea363b44cd
@ -102,6 +102,7 @@ export interface IReportParams {
|
|||||||
alertTypes?: string[];
|
alertTypes?: string[];
|
||||||
beginDateTime?: string;
|
beginDateTime?: string;
|
||||||
endDateTime?: string;
|
endDateTime?: string;
|
||||||
|
alertStatus?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IReportRes {
|
interface IReportRes {
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
binary-state-sort
|
binary-state-sort
|
||||||
virtual-scroll
|
virtual-scroll
|
||||||
>
|
>
|
||||||
<template v-slot:top-right>
|
<template v-slot:top>
|
||||||
<q-form ref="myForm" @submit="onRequest">
|
<q-form ref="myForm" @submit="onRequest" style="width: 100%">
|
||||||
<div class="q-gutter-md row justify-center items-start">
|
<div class="q-gutter-md row justify-center items-start">
|
||||||
<q-input
|
<q-input
|
||||||
dense
|
dense
|
||||||
@ -171,6 +171,16 @@
|
|||||||
label="类型"
|
label="类型"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
/>
|
/>
|
||||||
|
<q-select
|
||||||
|
dense
|
||||||
|
v-model="filter.alertStatus"
|
||||||
|
:options="alertStatusOptions"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
options-dense
|
||||||
|
label="处理状态"
|
||||||
|
style="width: 100px"
|
||||||
|
/>
|
||||||
<q-btn color="primary" label="查询" type="submit" />
|
<q-btn color="primary" label="查询" type="submit" />
|
||||||
</div>
|
</div>
|
||||||
</q-form>
|
</q-form>
|
||||||
@ -192,7 +202,7 @@ import { IReportParams, recordAlarmReport } from 'src/api/AlertMock';
|
|||||||
import { showAlertTypeData, saveAlertTypeData } from './alarmInfoEnum';
|
import { showAlertTypeData, saveAlertTypeData } from './alarmInfoEnum';
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const dialogWidth = window.screen.width * 0.5;
|
const dialogWidth = window.screen.width * 0.6;
|
||||||
const dialogHeight = window.screen.height * 0.5;
|
const dialogHeight = window.screen.height * 0.5;
|
||||||
|
|
||||||
const columnDefs: QTableColumn[] = [
|
const columnDefs: QTableColumn[] = [
|
||||||
@ -242,6 +252,7 @@ const filter = reactive<Ifilter>({
|
|||||||
lineId: 3,
|
lineId: 3,
|
||||||
beginDateTime: '',
|
beginDateTime: '',
|
||||||
endDateTime: '',
|
endDateTime: '',
|
||||||
|
alertStatus: 3,
|
||||||
});
|
});
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
@ -267,6 +278,9 @@ function onRequest() {
|
|||||||
if (filter.endDateTime) {
|
if (filter.endDateTime) {
|
||||||
Object.assign(params, { endDateTime: filter.endDateTime });
|
Object.assign(params, { endDateTime: filter.endDateTime });
|
||||||
}
|
}
|
||||||
|
if (filter.alertStatus != 3) {
|
||||||
|
Object.assign(params, { alertStatus: filter.alertStatus });
|
||||||
|
}
|
||||||
const response = await recordAlarmReport(filter.lineId, params);
|
const response = await recordAlarmReport(filter.lineId, params);
|
||||||
|
|
||||||
pagination.value.rowsNumber = response.length;
|
pagination.value.rowsNumber = response.length;
|
||||||
@ -337,4 +351,12 @@ function timeRangeValidation() {
|
|||||||
errorMessageEndTime.value = '';
|
errorMessageEndTime.value = '';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const alertStatusOptions = [
|
||||||
|
{ label: '全部', value: 3 },
|
||||||
|
{ label: '未处理', value: -1 },
|
||||||
|
{ label: '误报', value: 0 },
|
||||||
|
{ label: '确认', value: 1 },
|
||||||
|
{ label: '人工接警', value: 2 },
|
||||||
|
];
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user