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..53a994a9 --- /dev/null +++ b/apps/web-antd/src/api/property/roomBooking/participants/index.ts @@ -0,0 +1,59 @@ +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/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/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'), + }), }, ]; 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/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..75982f16 --- /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..6d62e994 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 new file mode 100644 index 00000000..d6c2d548 --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/data.ts @@ -0,0 +1,88 @@ +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 = () => [ + { + 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', + }, + }, + { + label: '发起人', + fieldName: 'residentPersonId', + component: 'ApiSelect', + componentProps: { + api: async () => { + const rows = await personList({ pageSize: 1000000000, pageNum: 1 }); + return rows; + }, + resultField: 'rows', + labelField: 'userName', + valueField: 'id', + }, + }, +]; + +export const columns: VxeGridProps['columns'] = [ + { + title: '会议室名称', + field: 'meetBookingVo.name', + }, + { + title: '会议主题', + field: 'meetBookingVo.meetTheme', + }, + { + 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', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; 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..92a0e8d1 --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/index.vue @@ -0,0 +1,101 @@ + + + diff --git a/apps/web-antd/src/views/property/roomBooking/participants/participants-detail.vue b/apps/web-antd/src/views/property/roomBooking/participants/participants-detail.vue new file mode 100644 index 00000000..2a0ff20c --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/participants/participants-detail.vue @@ -0,0 +1,82 @@ + + + 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 }} - - - +
{ 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, }, },