From 9cf89cea89ab7457ecda67e648a18eb21ae8041e Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Wed, 27 Aug 2025 17:47:37 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E7=BC=B4=E8=B4=B9=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/property/costManagement/costMeterWater/data.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/views/property/costManagement/costMeterWater/data.ts b/apps/web-antd/src/views/property/costManagement/costMeterWater/data.ts index d0a52f2c..a73e049e 100644 --- a/apps/web-antd/src/views/property/costManagement/costMeterWater/data.ts +++ b/apps/web-antd/src/views/property/costManagement/costMeterWater/data.ts @@ -5,9 +5,12 @@ import {renderDict} from "#/utils/render"; export const querySchema: FormSchemaGetter = () => [ { - component: 'Input', - fieldName: 'searchValue', - label: '搜索值', + label: '费用类型', + fieldName: 'costType', + component: 'Select', + componentProps: () => ({ + options: getDictOptions('wy_cbfylx'), + }), }, ]; From 2de44541fa8181765f205382fa6e96d31519ebf0 Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Thu, 4 Sep 2025 09:29:53 +0800 Subject: [PATCH 2/5] =?UTF-8?q?feat:=E4=BC=9A=E8=AE=AE=E5=8F=82=E4=BC=9A?= =?UTF-8?q?=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roomBooking/participants/index.ts | 61 ++++++ .../roomBooking/participants/model.d.ts | 54 ++++++ .../property/roomBooking/participants/data.ts | 65 +++++++ .../roomBooking/participants/index.vue | 178 ++++++++++++++++++ .../participants/participants-modal.vue | 101 ++++++++++ 5 files changed, 459 insertions(+) create mode 100644 apps/web-antd/src/api/property/roomBooking/participants/index.ts create mode 100644 apps/web-antd/src/api/property/roomBooking/participants/model.d.ts create mode 100644 apps/web-antd/src/views/property/roomBooking/participants/data.ts create mode 100644 apps/web-antd/src/views/property/roomBooking/participants/index.vue create mode 100644 apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue diff --git a/apps/web-antd/src/api/property/roomBooking/participants/index.ts b/apps/web-antd/src/api/property/roomBooking/participants/index.ts new file mode 100644 index 00000000..e69e5d19 --- /dev/null +++ b/apps/web-antd/src/api/property/roomBooking/participants/index.ts @@ -0,0 +1,61 @@ +import type { ParticipantsVO, ParticipantsForm, ParticipantsQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询会议室参会记录列表 +* @param params +* @returns 会议室参会记录列表 +*/ +export function participantsList(params?: ParticipantsQuery) { + return requestClient.get>('/property/participants/list', { params }); +} + +/** + * 导出会议室参会记录列表 + * @param params + * @returns 会议室参会记录列表 + */ +export function participantsExport(params?: ParticipantsQuery) { + return commonExport('/property/participants/export', params ?? {}); +} + +/** + * 查询会议室参会记录详情 + * @param id id + * @returns 会议室参会记录详情 + */ +export function participantsInfo(id: ID) { + return requestClient.get(`/property/participants/${id}`); +} + +/** + * 新增会议室参会记录 + * @param data + * @returns void + */ +export function participantsAdd(data: ParticipantsForm) { + return requestClient.postWithMsg('/property/participants', data); +} + +/** + * 更新会议室参会记录 + * @param data + * @returns void + */ +export function participantsUpdate(data: ParticipantsForm) { + return requestClient.putWithMsg('/property/participants', data); +} + +/** + * 删除会议室参会记录 + * @param id id + * @returns void + */ +export function participantsRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/participants/${id}`); +} diff --git a/apps/web-antd/src/api/property/roomBooking/participants/model.d.ts b/apps/web-antd/src/api/property/roomBooking/participants/model.d.ts new file mode 100644 index 00000000..15bb4773 --- /dev/null +++ b/apps/web-antd/src/api/property/roomBooking/participants/model.d.ts @@ -0,0 +1,54 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ParticipantsVO { + /** + * 主键id + */ + id: string | number; + + /** + * 会议室id + */ + meetId: string | number; + + /** + * 入驻人员id + */ + residentPersonId: string | number; + +} + +export interface ParticipantsForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 入驻人员id + */ + residentPersonId?: string | number; + +} + +export interface ParticipantsQuery extends PageQuery { + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 入驻人员id + */ + residentPersonId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/views/property/roomBooking/participants/data.ts b/apps/web-antd/src/views/property/roomBooking/participants/data.ts new file mode 100644 index 00000000..4400d58b --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/data.ts @@ -0,0 +1,65 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'meetId', + label: '会议室id', + }, + { + component: 'Input', + fieldName: 'residentPersonId', + label: '入驻人员id', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键id', + field: 'id', + }, + { + title: '会议室id', + field: 'meetId', + }, + { + title: '入驻人员id', + field: 'residentPersonId', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键id', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议室id', + fieldName: 'meetId', + component: 'Input', + rules: 'required', + }, + { + label: '入驻人员id', + fieldName: 'residentPersonId', + component: 'Input', + rules: 'required', + }, +]; diff --git a/apps/web-antd/src/views/property/roomBooking/participants/index.vue b/apps/web-antd/src/views/property/roomBooking/participants/index.vue new file mode 100644 index 00000000..2fbd3def --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/index.vue @@ -0,0 +1,178 @@ + + + diff --git a/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue b/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue new file mode 100644 index 00000000..4972eaa2 --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue @@ -0,0 +1,101 @@ + + + + From b0d48d0425467f70552dcbb36c980938f9eaf6b4 Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Thu, 4 Sep 2025 16:12:11 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=BC=B4=E8=B4=B9=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roomBooking/participants/index.ts | 2 - .../inspectionPoint/data.ts | 6 + .../src/views/property/room/floor-tree.vue | 122 +++++++++++++++++ .../src/views/property/room/index.vue | 126 +++++++++--------- .../property/roomBooking/participants/data.ts | 101 ++++++++------ .../roomBooking/participants/index.vue | 97 ++------------ .../participants/participants-detail.vue | 82 ++++++++++++ .../participants/participants-modal.vue | 101 -------------- apps/web-antd/vite.config.mts | 2 +- 9 files changed, 347 insertions(+), 292 deletions(-) create mode 100644 apps/web-antd/src/views/property/room/floor-tree.vue create mode 100644 apps/web-antd/src/views/property/roomBooking/participants/participants-detail.vue delete mode 100644 apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue diff --git a/apps/web-antd/src/api/property/roomBooking/participants/index.ts b/apps/web-antd/src/api/property/roomBooking/participants/index.ts index e69e5d19..53a994a9 100644 --- a/apps/web-antd/src/api/property/roomBooking/participants/index.ts +++ b/apps/web-antd/src/api/property/roomBooking/participants/index.ts @@ -1,8 +1,6 @@ import type { ParticipantsVO, ParticipantsForm, ParticipantsQuery } from './model'; - import type { ID, IDS } from '#/api/common'; import type { PageResult } from '#/api/common'; - import { commonExport } from '#/api/helper'; import { requestClient } from '#/api/request'; diff --git a/apps/web-antd/src/views/property/inspectionManagement/inspectionPoint/data.ts b/apps/web-antd/src/views/property/inspectionManagement/inspectionPoint/data.ts index b6d51485..79c90c9b 100644 --- a/apps/web-antd/src/views/property/inspectionManagement/inspectionPoint/data.ts +++ b/apps/web-antd/src/views/property/inspectionManagement/inspectionPoint/data.ts @@ -112,6 +112,12 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'nfcCode', component: 'Input', }, + { + label: '巡检位置', + fieldName: 'inspectionLocation', + component: 'Input', + rules: 'required', + }, { label: '备注', fieldName: 'remark', diff --git a/apps/web-antd/src/views/property/room/floor-tree.vue b/apps/web-antd/src/views/property/room/floor-tree.vue new file mode 100644 index 00000000..5eca1902 --- /dev/null +++ b/apps/web-antd/src/views/property/room/floor-tree.vue @@ -0,0 +1,122 @@ + + + diff --git a/apps/web-antd/src/views/property/room/index.vue b/apps/web-antd/src/views/property/room/index.vue index 89e8efaa..6cf9d254 100644 --- a/apps/web-antd/src/views/property/room/index.vue +++ b/apps/web-antd/src/views/property/room/index.vue @@ -1,18 +1,13 @@ diff --git a/apps/web-antd/src/views/property/roomBooking/participants/data.ts b/apps/web-antd/src/views/property/roomBooking/participants/data.ts index 4400d58b..d6c2d548 100644 --- a/apps/web-antd/src/views/property/roomBooking/participants/data.ts +++ b/apps/web-antd/src/views/property/roomBooking/participants/data.ts @@ -1,35 +1,82 @@ import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; - +import { personList } from '#/api/property/resident/person'; +import {participantsList} from '#/api/property/roomBooking/participants'; export const querySchema: FormSchemaGetter = () => [ { - component: 'Input', - fieldName: 'meetId', - label: '会议室id', + label: '会议室名称', + fieldName: 'meetBookId', + component: 'ApiSelect', + componentProps: { + api: async () => { + const rows = await participantsList({ pageSize: 1000000000, pageNum: 1 }); + return rows; + }, + resultField: 'rows', + labelField: 'meetBookingVo.name', + valueField: 'meetBookId', + }, }, { - component: 'Input', + label: '发起人', fieldName: 'residentPersonId', - label: '入驻人员id', + component: 'ApiSelect', + componentProps: { + api: async () => { + const rows = await personList({ pageSize: 1000000000, pageNum: 1 }); + return rows; + }, + resultField: 'rows', + labelField: 'userName', + valueField: 'id', + }, }, ]; -// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 -// export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ - { type: 'checkbox', width: 60 }, { - title: '主键id', - field: 'id', + title: '会议室名称', + field: 'meetBookingVo.name', }, { - title: '会议室id', - field: 'meetId', + title: '会议主题', + field: 'meetBookingVo.meetTheme', }, { - title: '入驻人员id', - field: 'residentPersonId', + title: '会议时间', + field: 'meetBookingVo.meetingTime', + slots: { + default: ({row}) => { + return row.meetBookingVo.scheduledStarttime+'~'+row.meetBookingVo.scheduledEndtime; + }, + }, + width:300 + }, + { + title: '发起人', + field: 'meetBookingVo.personName', + }, + { + title: '发起单位', + field: 'meetBookingVo.unitName', + }, + { + title: '会议室地点', + field: 'meetBookingVo.meetLocation', + }, + { + title: '签到状态', + field: 'signState', + slots: { + default: ({row}) => { + return row.signState === '0' ? '未签到' : '已签到'; + }, + }, + }, + { + title: '签到时间', + field: 'signTime', }, { field: 'action', @@ -39,27 +86,3 @@ export const columns: VxeGridProps['columns'] = [ width: 180, }, ]; - -export const modalSchema: FormSchemaGetter = () => [ - { - label: '主键id', - fieldName: 'id', - component: 'Input', - dependencies: { - show: () => false, - triggerFields: [''], - }, - }, - { - label: '会议室id', - fieldName: 'meetId', - component: 'Input', - rules: 'required', - }, - { - label: '入驻人员id', - fieldName: 'residentPersonId', - component: 'Input', - rules: 'required', - }, -]; diff --git a/apps/web-antd/src/views/property/roomBooking/participants/index.vue b/apps/web-antd/src/views/property/roomBooking/participants/index.vue index 2fbd3def..92a0e8d1 100644 --- a/apps/web-antd/src/views/property/roomBooking/participants/index.vue +++ b/apps/web-antd/src/views/property/roomBooking/participants/index.vue @@ -1,25 +1,17 @@ + + diff --git a/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue b/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue deleted file mode 100644 index 4972eaa2..00000000 --- a/apps/web-antd/src/views/property/roomBooking/participants/participants-modal.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - diff --git a/apps/web-antd/vite.config.mts b/apps/web-antd/vite.config.mts index fcce105a..ded7ff75 100644 --- a/apps/web-antd/vite.config.mts +++ b/apps/web-antd/vite.config.mts @@ -27,7 +27,7 @@ export default defineConfig(async () => { changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), // mock代理目标地址 - target: 'http://183.230.235.66:11010/api/', + target: 'http://192.168.1.110:8080', ws: true, }, }, From 0ffe547df84df8776e28aa26efc226a56f937367 Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Thu, 4 Sep 2025 16:19:47 +0800 Subject: [PATCH 4/5] =?UTF-8?q?feat:=E8=A7=86=E9=A2=91=E9=A2=84=E8=AD=A6?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=AD=97=E6=AE=B5=E6=8F=8F=E8=BF=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../videoWarning/videoWarningHasDone/data.ts | 12 ++--- .../videoWarningHasDone/warning-detail.vue | 39 ++++++++-------- .../videoWarningProcessing/data.ts | 12 ++--- .../videoWarningProcessing/warning-detail.vue | 44 +++++++++---------- .../videoWarning/videoWarningToDone/data.ts | 38 ++++++++-------- .../videoWarningToDone/warning-detail.vue | 41 +++++++---------- 6 files changed, 86 insertions(+), 100 deletions(-) diff --git a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/data.ts b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/data.ts index 2f2e89a3..e939bf2b 100644 --- a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/data.ts +++ b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/data.ts @@ -21,7 +21,7 @@ export const querySchema: FormSchemaGetter = () => [ options: getDictOptions(DictEnum.alarm_level, true), }, fieldName: 'level', - label: '级别', + label: '预警级别', }, /*{ component: 'Select', @@ -45,7 +45,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'reportTime', }, { - title: '设备ip', + title: '设备IP', field: 'deviceIp', }, { @@ -53,7 +53,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'deviceName', }, { - title: '级别', + title: '预警级别', field: 'level', slots: { default: ({ row }: any) => { @@ -138,7 +138,7 @@ export const modalSchema: FormSchemaGetter = () => [ disabled: true, }, { - label: '设备名称', + label: '设备IP', fieldName: 'deviceIp', component: 'Input', disabled: true, @@ -152,7 +152,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', }, { - label: '重要级别', + label: '预警级别', fieldName: 'level', component: 'Select', disabled: true, @@ -185,7 +185,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'selectRequired', }, { - label: '描述', + label: '预警描述', disabled: true, fieldName: 'description', component: 'Textarea', diff --git a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/warning-detail.vue b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/warning-detail.vue index 755d9fcc..2e0dd845 100644 --- a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/warning-detail.vue +++ b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningHasDone/warning-detail.vue @@ -72,15 +72,24 @@ function loadProcessList() { :labelStyle="{ width: '120px' }" style="margin-bottom: 30px" > - + {{ warningDetail.id }} - - - {{ warningDetail.reportTime }} + + {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} - + {{ warningDetail.deviceIp }} + + + {{ warningDetail.deviceName }} + + + {{ warningDetail.deviceName }} + + - {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} + + {{ warningDetail.reportTime }} - {{ warningDetail.deviceIp }} - - - {{ warningDetail.deviceName }} - - - + {{ warningDetail.description }} - - {{ warningDetail.deviceName }} - - +
[ options: getDictOptions(DictEnum.alarm_level, true), }, fieldName: 'level', - label: '级别', + label: '预警级别', }, /*{ component: 'Select', @@ -45,7 +45,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'reportTime', }, { - title: '设备ip', + title: '设备IP', field: 'deviceIp', }, { @@ -53,7 +53,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'deviceName', }, { - title: '级别', + title: '预警级别', field: 'level', slots: { default: ({ row }: any) => { @@ -138,7 +138,7 @@ export const modalSchema: FormSchemaGetter = () => [ disabled: true, }, { - label: '设备名称', + label: '设备IP', fieldName: 'deviceIp', component: 'Input', disabled: true, @@ -152,7 +152,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', }, { - label: '重要级别', + label: '预警级别', fieldName: 'level', component: 'Select', disabled: true, @@ -185,7 +185,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'selectRequired', }, { - label: '描述', + label: '预警描述', disabled: true, fieldName: 'description', component: 'Textarea', diff --git a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningProcessing/warning-detail.vue b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningProcessing/warning-detail.vue index eb5f613f..fea8dd66 100644 --- a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningProcessing/warning-detail.vue +++ b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningProcessing/warning-detail.vue @@ -70,15 +70,23 @@ function loadProcessList() { :labelStyle="{ width: '120px' }" style="margin-bottom: 30px" > - + {{ warningDetail.id }} - - - {{ warningDetail.reportTime }} + + {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} + + {{ warningDetail.deviceIp }} - + {{ warningDetail.deviceName }} + + + {{ warningDetail.deviceName }} + + - {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} + + {{ warningDetail.reportTime }} - - {{ warningDetail.deviceIp }} - - - {{ warningDetail.deviceName }} - - - + {{ warningDetail.description }} - - {{ warningDetail.deviceName }} - - + + {{ warningDetail.stateName }} @@ -126,7 +122,7 @@ function loadProcessList() { {{ warningDetail.processingTime || '-' }} --> - +
- + diff --git a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/data.ts b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/data.ts index d9a81d28..b6513a58 100644 --- a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/data.ts +++ b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/data.ts @@ -22,7 +22,7 @@ export const querySchema: FormSchemaGetter = () => [ options: getDictOptions(DictEnum.alarm_level, true), }, fieldName: 'level', - label: '级别', + label: '预警级别', }, /*{ component: 'Select', @@ -46,7 +46,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'reportTime', }, { - title: '设备ip', + title: '设备IP', field: 'deviceIp', }, { @@ -54,7 +54,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'deviceName', }, { - title: '级别', + title: '预警级别', field: 'level', slots: { default: ({ row }: any) => { @@ -139,7 +139,7 @@ export const modalSchema: FormSchemaGetter = () => [ disabled: true, }, { - label: '设备名称', + label: '设备IP', fieldName: 'deviceIp', component: 'Input', disabled: true, @@ -153,7 +153,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', }, { - label: '重要级别', + label: '预警级别', fieldName: 'level', component: 'Select', disabled: true, @@ -186,7 +186,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'selectRequired', }, { - label: '描述', + label: '预警描述', disabled: true, fieldName: 'description', component: 'Textarea', @@ -196,6 +196,19 @@ export const modalSchema: FormSchemaGetter = () => [ }, }, + + // 插入分割线 + { + component: 'Divider', + fieldName: '_divider', + formItemClass: 'col-span-2', + hideLabel: true, + renderComponentContent: () => { + return { + default: () => h('div', '处理'), + }; + }, + }, { label: '处理人', fieldName: 'solveName', @@ -212,19 +225,6 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'solveEmail', component: 'Input', }, - // 插入分割线 - { - component: 'Divider', - fieldName: '_divider', - formItemClass: 'col-span-2', - hideLabel: true, - renderComponentContent: () => { - return { - default: () => h('div', '处理'), - }; - }, - }, - { label: '备注', fieldName: 'remark', diff --git a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/warning-detail.vue b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/warning-detail.vue index dc0fa3eb..112bd749 100644 --- a/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/warning-detail.vue +++ b/apps/web-antd/src/views/videoSystem/videoWarning/videoWarningToDone/warning-detail.vue @@ -70,15 +70,23 @@ function loadProcessList() { :labelStyle="{ width: '120px' }" style="margin-bottom: 30px" > - + {{ warningDetail.id }} - - - {{ warningDetail.reportTime }} + + {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} + + {{ warningDetail.deviceIp }} - + {{ warningDetail.deviceName }} + + + {{ warningDetail.deviceName }} + + - {{ warningDetail.bigTypeName + ' - ' + warningDetail.smallTypeName }} + + {{ warningDetail.reportTime }} - - {{ warningDetail.deviceIp }} - - - {{ warningDetail.deviceName }} - - - + {{ warningDetail.description }} - - - {{ warningDetail.deviceName }} - - - +
Date: Thu, 4 Sep 2025 17:02:24 +0800 Subject: [PATCH 5/5] feat --- .../property/building/building-modal.vue | 2 +- .../src/views/property/building/data.tsx | 46 ++++++++ .../web-antd/src/views/property/floor/data.ts | 50 ++++++++ .../src/views/property/floor/floor-modal.vue | 6 +- .../src/views/property/room/floor-tree.vue | 4 +- .../src/views/property/room/index.vue | 108 +++++++++--------- 6 files changed, 154 insertions(+), 62 deletions(-) diff --git a/apps/web-antd/src/views/property/building/building-modal.vue b/apps/web-antd/src/views/property/building/building-modal.vue index 0f56dc1a..366bd7c5 100644 --- a/apps/web-antd/src/views/property/building/building-modal.vue +++ b/apps/web-antd/src/views/property/building/building-modal.vue @@ -23,7 +23,7 @@ const [BasicForm, formApi] = useVbenForm({ // 默认占满两列 formItemClass: 'col-span-1', // 默认label宽度 px - labelWidth: 80, + labelWidth: 90, // 通用配置项 会影响到所有表单项 componentProps: { class: 'w-full', diff --git a/apps/web-antd/src/views/property/building/data.tsx b/apps/web-antd/src/views/property/building/data.tsx index 289e1d1b..cd610bad 100644 --- a/apps/web-antd/src/views/property/building/data.tsx +++ b/apps/web-antd/src/views/property/building/data.tsx @@ -49,6 +49,10 @@ export const columns: VxeGridProps['columns'] = [ title: '建筑名称', field: 'buildingName', }, + { + title: '社区', + field: 'communityText', + }, { title: '总层数', field: 'floorCount', @@ -73,6 +77,18 @@ export const columns: VxeGridProps['columns'] = [ title: '地址', field: 'addr', }, + { + title: '建筑面积(㎡)', + field: 'area', + }, + { + title: '套内面积(㎡)', + field: 'insideInArea', + }, + { + title: '公摊面积(㎡)', + field: 'sharedArea', + }, { field: 'action', fixed: 'right', @@ -153,4 +169,34 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'Input', rules: 'required', }, + { + label: '建筑面积(㎡)', + fieldName: 'area', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, + { + label: '套内面积(㎡)', + fieldName: 'insideInArea', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, + { + label: '公摊面积(㎡)', + fieldName: 'sharedArea', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, ]; diff --git a/apps/web-antd/src/views/property/floor/data.ts b/apps/web-antd/src/views/property/floor/data.ts index 59ba46b7..aa09282a 100644 --- a/apps/web-antd/src/views/property/floor/data.ts +++ b/apps/web-antd/src/views/property/floor/data.ts @@ -13,6 +13,14 @@ export const querySchema: FormSchemaGetter = () => [ // export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, + { + title: '社区', + field: 'communityText', + }, + { + title: '建筑', + field: 'buildingText', + }, { title: '楼层名称', field: 'floorName', @@ -33,6 +41,18 @@ export const columns: VxeGridProps['columns'] = [ title: '层高', field: 'floorHeight', }, + { + title: '建筑面积(㎡)', + field: 'area', + }, + { + title: '套内面积(㎡)', + field: 'insideInArea', + }, + { + title: '公摊面积(㎡)', + field: 'sharedArea', + }, { field: 'action', fixed: 'right', @@ -95,4 +115,34 @@ export const modalSchema: FormSchemaGetter = () => [ precision:0, }, }, + { + label: '建筑面积(㎡)', + fieldName: 'area', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, + { + label: '套内面积(㎡)', + fieldName: 'insideInArea', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, + { + label: '公摊面积(㎡)', + fieldName: 'sharedArea', + component: 'InputNumber', + componentProps: { + min:0, + precision:2, + }, + rules: 'required', + }, ]; diff --git a/apps/web-antd/src/views/property/floor/floor-modal.vue b/apps/web-antd/src/views/property/floor/floor-modal.vue index 5fc17d33..072bec45 100644 --- a/apps/web-antd/src/views/property/floor/floor-modal.vue +++ b/apps/web-antd/src/views/property/floor/floor-modal.vue @@ -22,9 +22,9 @@ const title = computed(() => { const [BasicForm, formApi] = useVbenForm({ commonConfig: { // 默认占满两列 - formItemClass: 'col-span-2', + formItemClass: 'col-span-1', // 默认label宽度 px - labelWidth: 80, + labelWidth: 90, // 通用配置项 会影响到所有表单项 componentProps: { class: 'w-full', @@ -44,7 +44,7 @@ const { onBeforeClose, markInitialized, resetInitialized } = useBeforeCloseDiff( const [BasicModal, modalApi] = useVbenModal({ // 在这里更改宽度 - class: 'w-[550px]', + class: 'w-[60%]', fullscreenButton: false, onBeforeClose, onClosed: handleClosed, diff --git a/apps/web-antd/src/views/property/room/floor-tree.vue b/apps/web-antd/src/views/property/room/floor-tree.vue index 5eca1902..75982f16 100644 --- a/apps/web-antd/src/views/property/room/floor-tree.vue +++ b/apps/web-antd/src/views/property/room/floor-tree.vue @@ -4,7 +4,7 @@ import type { DeptTree } from '#/api/system/user/model'; import { onMounted, ref } from 'vue'; import { SyncOutlined } from '@ant-design/icons-vue'; import { Empty, InputSearch, Skeleton, Tree } from 'ant-design-vue'; -import { getDeptTree } from '#/api/system/user'; +import { communityTree } from '#/api/property/community'; defineOptions({ inheritAttrs: false }); @@ -41,7 +41,7 @@ async function loadTree() { showTreeSkeleton.value = true; searchValue.value = ''; selectDeptId.value = []; - const ret = await getDeptTree(); + const ret = await communityTree(3); deptTreeArray.value = ret; showTreeSkeleton.value = false; } diff --git a/apps/web-antd/src/views/property/room/index.vue b/apps/web-antd/src/views/property/room/index.vue index 6cf9d254..6d62e994 100644 --- a/apps/web-antd/src/views/property/room/index.vue +++ b/apps/web-antd/src/views/property/room/index.vue @@ -120,65 +120,61 @@ function handleDownloadExcel() {