第四步:医院数据分类显示

This commit is contained in:
2026-06-26 13:54:57 +08:00
parent a2189695ef
commit b913bea524
6 changed files with 188 additions and 110 deletions
@@ -31,7 +31,7 @@
<el-option
v-for="(opt, index) in selectOptions"
:key="index"
:label="opt.value === PointType.RISK_AREA ? opt.label : `${opt.label}预警点`"
:label="opt.value === PointType.RISK_AREA || opt.value === InfrastructurePointType.HOSPITAL ? opt.label : `${opt.label}预警点`"
:value="opt.value"
/>
</el-select>
@@ -88,6 +88,7 @@
import { useStatusStore } from '@/stores/useStatusStore';
import type { Point } from '@/types/base/Point';
import { PointType } from '@/types/common/DisasterType';
import { InfrastructurePointType } from '@/types/common/InfrastructurePointType';
import type { PaginationType } from '@/types/common/PaginationType';
import { ref, watch, computed, type Ref } from 'vue';
@@ -95,7 +96,7 @@
// 接收父组件的参数
const props = defineProps<{
selectOptions: { label: string; value: PointType }[];
selectOptions: { label: string; value: PointType | InfrastructurePointType }[];
tableDataList: Point[];
tableColumns: { title: string; key: string }[];
pageOption: PaginationType;
@@ -106,13 +107,13 @@
const emits = defineEmits<{
(
e: 'changeConditions',
value: { tableData: string; hiddenPoint: PointType }
value: { tableData: string; hiddenPoint: PointType | InfrastructurePointType }
): void;
(e: 'changeCurrentPage', value: number): void;
}>();
// 搜索条件
const conditions: Ref<{ tableData: string; hiddenPoint: PointType }> = ref({
const conditions: Ref<{ tableData: string; hiddenPoint: PointType | InfrastructurePointType }> = ref({
tableData: '',
hiddenPoint: PointType.LANDSLIDE,
});
@@ -308,4 +309,4 @@
align-items: center;
line-height: 1.5;
}
</style>
</style>