报警记录增加查询

This commit is contained in:
joylink_zhaoerwei 2024-10-24 15:33:14 +08:00
parent a486e97e5a
commit 37835ed2d6

View File

@ -44,6 +44,13 @@
lazy-rules lazy-rules
:rules="[(val) => val >= 0 || '请选择线路ID']" :rules="[(val) => val >= 0 || '请选择线路ID']"
/> />
<q-select
dense
label="线路类型"
v-model="filter.lineType"
:options="searchOptionsLineType"
style="width: 100px"
/>
<q-input <q-input
dense dense
v-model="filter.beginDateTime" v-model="filter.beginDateTime"
@ -344,7 +351,11 @@ async function onRequest(props: any) {
lineId: filter.value.lineId, lineId: filter.value.lineId,
}); });
} }
if (filter.value.lineType !== '全部') {
Object.assign(params, {
lineType: filter.value.lineType,
});
}
if (filter.value.alertType !== '全部') { if (filter.value.alertType !== '全部') {
Object.assign(params, { Object.assign(params, {
alertType: (saveAlertTypeData as never)[filter.value.alertType], alertType: (saveAlertTypeData as never)[filter.value.alertType],
@ -436,6 +447,7 @@ function batchHandle() {
const filter = ref({ const filter = ref({
alertType: '全部', alertType: '全部',
lineId: 0, lineId: 0,
lineType: '全部',
beginDateTime: '', beginDateTime: '',
endDateTime: '', endDateTime: '',
alertStatus: 999, alertStatus: 999,
@ -444,6 +456,7 @@ const filter = ref({
const optionsLineId = ref<{ label: string; value: number }[]>([ const optionsLineId = ref<{ label: string; value: number }[]>([
{ label: '全部', value: 0 }, { label: '全部', value: 0 },
]); ]);
const searchOptionsLineType = ['全部', 'NCC', 'OCC'];
async function queryLineInfo() { async function queryLineInfo() {
try { try {
let response = await pageQuery({ let response = await pageQuery({