diff --git a/src/api/faultQuery.ts b/src/api/faultQuery.ts index 8383500..c859bac 100644 --- a/src/api/faultQuery.ts +++ b/src/api/faultQuery.ts @@ -18,7 +18,7 @@ export interface FaultQueryInfo { export class PagingQueryParams extends PageQueryDto { lineId?: string; - faultType?: string; + faultType?: string[]; faultName?: string; } diff --git a/src/components/dialog/FaultQueryDialog.vue b/src/components/dialog/FaultQueryDialog.vue index e944d0d..cf9db3e 100644 --- a/src/components/dialog/FaultQueryDialog.vue +++ b/src/components/dialog/FaultQueryDialog.vue @@ -34,44 +34,30 @@ @@ -79,12 +65,16 @@ @@ -171,4 +258,9 @@ const onDialogShow = () => { white-space: pre-wrap; font-size: 14px; } +.button-container { + display: flex; + justify-content: center; + margin-top: 10px; +} diff --git a/src/pages/FaultQueryManage.vue b/src/pages/FaultQueryManage.vue index 04d8f6e..43e4601 100644 --- a/src/pages/FaultQueryManage.vue +++ b/src/pages/FaultQueryManage.vue @@ -45,6 +45,7 @@ /> { lineId: filter.value.lineId, }); } - if (filter.value.faultType !== '') { + if (filter.value.faultType.length) { Object.assign(params, { faultType: filter.value.faultType, }); @@ -376,7 +377,7 @@ const searchOptionsFaultType = ref<{ label: string; value: string }[]>([ { label: '全部', value: '' }, ]); function handleSelectSearchLineId() { - filter.value.faultType = ''; + filter.value.faultType = []; searchOptionsFaultType.value = [{ label: '全部', value: '' }]; if (filter.value.lineId == 0) { handleSelectAllFaultType();