feat(property): 水电气管理页面
feat(sis): 楼层授权界面业务调整
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { ElevatorInfoVO, ElevatorInfoForm, ElevatorInfoQuery } from './model';
|
||||
import type { ElevatorInfoVO, ElevatorInfoForm, ElevatorInfoQuery, ElevatorFloorRefForm, ElevatorFloorRefVo } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
@@ -59,3 +59,22 @@ export function elevatorInfoUpdate(data: ElevatorInfoForm) {
|
||||
export function elevatorInfoRemove(elevatorId: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/elevatorInfo/${elevatorId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电梯⇄楼层关联
|
||||
* @param params
|
||||
* @returns void
|
||||
*/
|
||||
export function refAdd(data: ElevatorFloorRefForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/elevatorInfo/ref/add', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电梯⇄楼层关联
|
||||
* @param id
|
||||
* @returns void
|
||||
*/
|
||||
export function refQuery(id: ID) {
|
||||
return requestClient.get<ElevatorFloorRefVo[]>(`/sis/elevatorInfo/ref/${id}`);
|
||||
}
|
||||
|
||||
|
144
apps/web-antd/src/api/sis/elevatorInfo/model.d.ts
vendored
144
apps/web-antd/src/api/sis/elevatorInfo/model.d.ts
vendored
@@ -1,100 +1,100 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type { PageQuery, BaseEntity } from '#/api/common'
|
||||
|
||||
export interface ElevatorInfoVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
elevatorId: string | number;
|
||||
elevatorId: string | number
|
||||
|
||||
/**
|
||||
* 电梯编号
|
||||
*/
|
||||
elevatorCode: string;
|
||||
elevatorCode: string
|
||||
|
||||
/**
|
||||
* 电梯名称
|
||||
*/
|
||||
elevatorName: string;
|
||||
elevatorName: string
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
location: string;
|
||||
location: string
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
brand: string;
|
||||
brand: string
|
||||
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
model: string;
|
||||
model: string
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
manufactureDate: string;
|
||||
manufactureDate: string
|
||||
|
||||
/**
|
||||
* 安装日期
|
||||
*/
|
||||
installationDate: string;
|
||||
installationDate: string
|
||||
|
||||
/**
|
||||
* 最大载重(kg)
|
||||
*/
|
||||
maxLoad: number;
|
||||
maxLoad: number
|
||||
|
||||
/**
|
||||
* 服务楼层数
|
||||
*/
|
||||
floorsServed: number;
|
||||
floorsServed: number
|
||||
|
||||
/**
|
||||
* 维保公司
|
||||
*/
|
||||
maintenanceCompany: string;
|
||||
maintenanceCompany: string
|
||||
|
||||
/**
|
||||
* 维保电话
|
||||
*/
|
||||
maintenancePhone: string;
|
||||
maintenancePhone: string
|
||||
|
||||
/**
|
||||
* 上次年检日期
|
||||
*/
|
||||
lastInspectionDate: string;
|
||||
lastInspectionDate: string
|
||||
|
||||
/**
|
||||
* 下次年检日期
|
||||
*/
|
||||
nextInspectionDate: string;
|
||||
nextInspectionDate: string
|
||||
|
||||
/**
|
||||
* 梯控厂商
|
||||
*/
|
||||
controlFactory: string;
|
||||
controlFactory: string
|
||||
|
||||
/**
|
||||
* 梯控设备ip
|
||||
*/
|
||||
controlIp: string;
|
||||
controlIp: string
|
||||
|
||||
/**
|
||||
* 梯控设备编码
|
||||
*/
|
||||
controlPort: number;
|
||||
controlPort: number
|
||||
|
||||
/**
|
||||
* 梯控设备登录账号
|
||||
*/
|
||||
controlAccount: string;
|
||||
controlAccount: string
|
||||
|
||||
/**
|
||||
* 梯控设备登录密码
|
||||
*/
|
||||
controlPwd: string;
|
||||
controlPwd: string
|
||||
|
||||
}
|
||||
|
||||
@@ -102,102 +102,102 @@ export interface ElevatorInfoForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
elevatorId?: string | number;
|
||||
elevatorId?: string | number
|
||||
|
||||
/**
|
||||
* 电梯编号
|
||||
*/
|
||||
elevatorCode?: string;
|
||||
elevatorCode?: string
|
||||
|
||||
/**
|
||||
* 电梯名称
|
||||
*/
|
||||
elevatorName?: string;
|
||||
elevatorName?: string
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
location?: string;
|
||||
location?: string
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
brand?: string;
|
||||
brand?: string
|
||||
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
model?: string;
|
||||
model?: string
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
manufactureDate?: string;
|
||||
manufactureDate?: string
|
||||
|
||||
/**
|
||||
* 安装日期
|
||||
*/
|
||||
installationDate?: string;
|
||||
installationDate?: string
|
||||
|
||||
/**
|
||||
* 最大载重(kg)
|
||||
*/
|
||||
maxLoad?: number;
|
||||
maxLoad?: number
|
||||
|
||||
/**
|
||||
* 服务楼层数
|
||||
*/
|
||||
floorsServed?: number;
|
||||
floorsServed?: number
|
||||
|
||||
/**
|
||||
* 维保公司
|
||||
*/
|
||||
maintenanceCompany?: string;
|
||||
maintenanceCompany?: string
|
||||
|
||||
/**
|
||||
* 维保电话
|
||||
*/
|
||||
maintenancePhone?: string;
|
||||
maintenancePhone?: string
|
||||
|
||||
/**
|
||||
* 上次年检日期
|
||||
*/
|
||||
lastInspectionDate?: string;
|
||||
lastInspectionDate?: string
|
||||
|
||||
/**
|
||||
* 下次年检日期
|
||||
*/
|
||||
nextInspectionDate?: string;
|
||||
nextInspectionDate?: string
|
||||
|
||||
/**
|
||||
* 梯控厂商
|
||||
*/
|
||||
controlFactory?: string;
|
||||
controlFactory?: string
|
||||
|
||||
/**
|
||||
* 梯控设备ip
|
||||
*/
|
||||
controlIp?: string;
|
||||
controlIp?: string
|
||||
|
||||
/**
|
||||
* 梯控设备编码
|
||||
*/
|
||||
controlPort?: number;
|
||||
controlPort?: number
|
||||
|
||||
/**
|
||||
* 梯控设备登录账号
|
||||
*/
|
||||
controlAccount?: string;
|
||||
controlAccount?: string
|
||||
|
||||
/**
|
||||
* 梯控设备登录密码
|
||||
*/
|
||||
controlPwd?: string;
|
||||
controlPwd?: string
|
||||
|
||||
/**
|
||||
* 单元ID
|
||||
*/
|
||||
unitId?: number;
|
||||
unitId?: number
|
||||
|
||||
}
|
||||
|
||||
@@ -205,95 +205,121 @@ export interface ElevatorInfoQuery extends PageQuery {
|
||||
/**
|
||||
* 电梯编号
|
||||
*/
|
||||
elevatorCode?: string;
|
||||
elevatorCode?: string
|
||||
|
||||
/**
|
||||
* 电梯名称
|
||||
*/
|
||||
elevatorName?: string;
|
||||
elevatorName?: string
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
location?: string;
|
||||
location?: string
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
brand?: string;
|
||||
brand?: string
|
||||
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
model?: string;
|
||||
model?: string
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
manufactureDate?: string;
|
||||
manufactureDate?: string
|
||||
|
||||
/**
|
||||
* 安装日期
|
||||
*/
|
||||
installationDate?: string;
|
||||
installationDate?: string
|
||||
|
||||
/**
|
||||
* 最大载重(kg)
|
||||
*/
|
||||
maxLoad?: number;
|
||||
maxLoad?: number
|
||||
|
||||
/**
|
||||
* 服务楼层数
|
||||
*/
|
||||
floorsServed?: number;
|
||||
floorsServed?: number
|
||||
|
||||
/**
|
||||
* 维保公司
|
||||
*/
|
||||
maintenanceCompany?: string;
|
||||
maintenanceCompany?: string
|
||||
|
||||
/**
|
||||
* 维保电话
|
||||
*/
|
||||
maintenancePhone?: string;
|
||||
maintenancePhone?: string
|
||||
|
||||
/**
|
||||
* 上次年检日期
|
||||
*/
|
||||
lastInspectionDate?: string;
|
||||
lastInspectionDate?: string
|
||||
|
||||
/**
|
||||
* 下次年检日期
|
||||
*/
|
||||
nextInspectionDate?: string;
|
||||
nextInspectionDate?: string
|
||||
|
||||
/**
|
||||
* 梯控厂商
|
||||
*/
|
||||
controlFactory?: string;
|
||||
controlFactory?: string
|
||||
|
||||
/**
|
||||
* 梯控设备ip
|
||||
*/
|
||||
controlIp?: string;
|
||||
controlIp?: string
|
||||
|
||||
/**
|
||||
* 梯控设备编码
|
||||
*/
|
||||
controlPort?: number;
|
||||
controlPort?: number
|
||||
|
||||
/**
|
||||
* 梯控设备登录账号
|
||||
*/
|
||||
controlAccount?: string;
|
||||
controlAccount?: string
|
||||
|
||||
/**
|
||||
* 梯控设备登录密码
|
||||
*/
|
||||
controlPwd?: string;
|
||||
controlPwd?: string
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
params?: any
|
||||
}
|
||||
|
||||
export interface ElevatorFloorRefVo {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
elevatorId: string | number
|
||||
|
||||
/**
|
||||
* 楼层层数
|
||||
*/
|
||||
floorNum: string | number
|
||||
}
|
||||
|
||||
export interface ElevatorFloorRefForm extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 电梯id
|
||||
*/
|
||||
elevatorId?: string | number
|
||||
|
||||
/**
|
||||
* 楼层层数
|
||||
*/
|
||||
floorNums?: [number]
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user