报警统计调整

This commit is contained in:
dong 2023-11-03 17:42:44 +08:00
parent 47375663a2
commit c971f5fdb6
2 changed files with 18 additions and 8 deletions

View File

@ -21,15 +21,15 @@
<template v-slot:top>
<q-form ref="myForm" @submit="onRequest" style="width: 100%">
<div class="q-gutter-md row justify-center items-start">
<q-input
<q-select
dense
v-model.number="filter.lineId"
v-model="filter.lineId"
:options="optionsLineId"
emit-value
map-options
options-dense
label="线路ID"
type="number"
style="width: 80px"
no-error-icon
lazy-rules
:rules="[(val) => val > 0 || '请输入正确线路ID']"
style="width: 100px"
/>
<q-input
dense
@ -205,6 +205,10 @@ import {
alertStatusOptions,
} from './alarmInfoEnum';
defineProps<{
optionsLineId: { label: string; value: number }[];
}>();
const $q = useQuasar();
const dialogWidth = window.screen.width * 0.6;
const dialogHeight = window.screen.height * 0.5;
@ -236,6 +240,7 @@ const columnDefs: QTableColumn[] = [
const typeOptions = computed(() => {
const list: { label: string; value: string }[] = [];
// list.push({ label: '', value: '' });
for (let i in saveAlertTypeData) {
const obj = {
label: i,

View File

@ -582,7 +582,12 @@ const alarmStatisticsDialog = ref();
function showStatistics() {
if (alarmStatisticsDialog.value) return;
alarmStatisticsDialog.value = $q
.dialog({ component: alarmStatistics })
.dialog({
component: alarmStatistics,
componentProps: {
optionsLineId: optionsLineId.value.filter((item) => item.value != 0),
},
})
.onCancel(() => {
alarmStatisticsDialog.value = null;
});