This commit is contained in:
fyy
2025-09-12 19:28:10 +08:00
6 changed files with 23 additions and 8 deletions

View File

@@ -246,4 +246,9 @@ export interface Unit extends BaseEntity {
*/ */
area?: string; area?: string;
/**
* 房间数量
*/
roomNumber: number;
} }

View File

@@ -84,6 +84,16 @@ export const columns: VxeGridProps['columns'] = [
field: 'time', field: 'time',
width: 180, width: 180,
}, },
{
title: '入驻房间数',
field: 'roomNumber',
width: 100,
},
{
title: '入驻面积(㎡)',
field: 'area',
width: 180,
},
{ {
title: '状态', title: '状态',
field: 'state', field: 'state',

View File

@@ -56,7 +56,7 @@ const selectRoomId = ref<string[]>([]);
<div class="flex gap-[8px]"> <div class="flex gap-[8px]">
<div class="w-[260px]"> <div class="w-[260px]">
<RoomTree <RoomTree
class="max-h-[calc(100vh-40vh)]" class="max-h-[calc(100vh-38vh)]"
v-model:select-room-id="selectRoomId" v-model:select-room-id="selectRoomId"
/> />
</div> </div>
@@ -75,9 +75,9 @@ const selectRoomId = ref<string[]>([]);
<DescriptionsItem label="联系人"> <DescriptionsItem label="联系人">
{{ unitDetail.contactPerson +'-'+unitDetail.phone}} {{ unitDetail.contactPerson +'-'+unitDetail.phone}}
</DescriptionsItem> </DescriptionsItem>
<!-- <DescriptionsItem label="入驻位置" >--> <DescriptionsItem label="入驻房间数" >
<!-- {{ unitDetail.locationDetail }}--> {{ unitDetail.roomNumber }}
<!-- </DescriptionsItem>--> </DescriptionsItem>
<DescriptionsItem label="入驻面积"> <DescriptionsItem label="入驻面积">
<span v-if="unitDetail.area">{{ unitDetail.area }}</span> <span v-if="unitDetail.area">{{ unitDetail.area }}</span>
</DescriptionsItem> </DescriptionsItem>

View File

@@ -48,7 +48,7 @@ const gridOptions: VxeGridProps = {
return await alarmEventsList({ return await alarmEventsList({
pageNum: page.currentPage, pageNum: page.currentPage,
pageSize: page.pageSize, pageSize: page.pageSize,
states: [40,50], states: [40, 50],
...formValues, ...formValues,
}); });
}, },
@@ -112,7 +112,7 @@ function handleMultiDelete() {
</script> </script>
<template> <template>
<Page :auto-content-height="true"> <Page :auto-content-height="true">
<BasicTable class="flex-1 overflow-hidden" table-title="视频预警处理"> <BasicTable class="flex-1 overflow-hidden">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button

View File

@@ -112,7 +112,7 @@ function handleMultiDelete() {
</script> </script>
<template> <template>
<Page :auto-content-height="true"> <Page :auto-content-height="true">
<BasicTable class="flex-1 overflow-hidden" table-title="视频预警处理"> <BasicTable class="flex-1 overflow-hidden">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button

View File

@@ -112,7 +112,7 @@ function handleMultiDelete() {
</script> </script>
<template> <template>
<Page :auto-content-height="true"> <Page :auto-content-height="true">
<BasicTable class="flex-1 overflow-hidden" table-title="视频预警处理"> <BasicTable class="flex-1 overflow-hidden">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button