This commit is contained in:
joylink_zhaoerwei 2023-09-14 13:38:25 +08:00
parent a1c73423f2
commit 0686831059

View File

@ -185,7 +185,7 @@ async function onRequest(props: any) {
current: page, current: page,
size: rowsPerPage, size: rowsPerPage,
alertType: (saveAlertTypeData as never)[filter.value.alertType], alertType: (saveAlertTypeData as never)[filter.value.alertType],
lineId: +filter.value.lineId, lineId: filter.value.lineId,
}); });
const pageData = response; const pageData = response;
pagination.value.rowsNumber = pageData.total; pagination.value.rowsNumber = pageData.total;
@ -214,7 +214,7 @@ onMounted(() => {
const searchDialog = ref(false); const searchDialog = ref(false);
const filter = ref({ const filter = ref({
alertType: '', alertType: '',
lineId: '', lineId: undefined,
}); });
const optionsAlertType = [ const optionsAlertType = [
'蓝显', '蓝显',
@ -240,7 +240,7 @@ function searchDecisionInfo() {
tableRef.value.requestServerInteraction(); tableRef.value.requestServerInteraction();
} finally { } finally {
setTimeout(() => { setTimeout(() => {
filter.value = { alertType: '', lineId: '' }; filter.value = { alertType: '', lineId: undefined };
}); });
} }
} }