修正ts类型
This commit is contained in:
@@ -61,3 +61,18 @@ export const delBanner = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 改变Banner图管理 状态
|
||||
* @param id
|
||||
*/
|
||||
export const switchBanner = (id: string, status: string) => {
|
||||
return request({
|
||||
url: '/banner/changeStatus',
|
||||
method: 'GET',
|
||||
params: {
|
||||
id,
|
||||
status
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -17,9 +17,9 @@ export interface BannerVO {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
order: number;
|
||||
url: string;
|
||||
jump_link: string;
|
||||
byOrder: number;
|
||||
link: string;
|
||||
/**
|
||||
* 小区id
|
||||
*/
|
||||
@@ -45,7 +45,8 @@ export interface BannerForm extends BaseEntity {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
order?: number;
|
||||
byOrder?: number;
|
||||
link: string;
|
||||
|
||||
/**
|
||||
* 小区id
|
||||
@@ -67,8 +68,8 @@ export interface BannerQuery extends PageQuery {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
order?: number;
|
||||
|
||||
byOrder: number;
|
||||
link: string;
|
||||
/**
|
||||
* 小区id
|
||||
*/
|
||||
|
||||
@@ -61,3 +61,15 @@ export const delPlan = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 改变巡检计划状态
|
||||
* @param id
|
||||
* @param status
|
||||
*/
|
||||
export const changePlanStatus = (id: string, status: string) => {
|
||||
return request({
|
||||
url: '/inspection/plan/changeStatus',
|
||||
method: 'put',
|
||||
data: { id, status }
|
||||
});
|
||||
};
|
||||
|
||||
@@ -61,3 +61,13 @@ export const delPoint = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 修改巡检点状态
|
||||
* @param id
|
||||
*/
|
||||
export const changePointStatus = (id: string, status: string) => {
|
||||
return request({
|
||||
url: '/inspection/point/changeStatus?id=' + id + '&status=' + status,
|
||||
method: 'PUT'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
export interface RecordVO {
|
||||
actualEndTime?: null;
|
||||
actualStartTime?: null;
|
||||
createByName?: null;
|
||||
actualEndTime?: string;
|
||||
actualStartTime?: string;
|
||||
createByName?: string;
|
||||
createTime?: string;
|
||||
details?: null;
|
||||
details?: [];
|
||||
id?: string;
|
||||
inspectorId?: number;
|
||||
inspectorName?: string;
|
||||
planId?: string;
|
||||
planName?: string;
|
||||
remark?: null;
|
||||
remark?: string;
|
||||
routeId?: string;
|
||||
routeName?: string;
|
||||
status?: number;
|
||||
|
||||
@@ -26,6 +26,8 @@ export interface RouteVO {
|
||||
*/
|
||||
estimatedTime: number;
|
||||
|
||||
items: { itemName: string }[];
|
||||
PointsName: string;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -22,12 +22,12 @@ export interface NoticeVO {
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel: string;
|
||||
urgencyLevel: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus: string;
|
||||
publishStatus: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
@@ -64,12 +64,12 @@ export interface NoticeForm extends BaseEntity {
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel?: string;
|
||||
urgencyLevel?: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus?: string;
|
||||
publishStatus?: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
@@ -101,12 +101,12 @@ export interface NoticeQuery extends PageQuery {
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel?: string;
|
||||
urgencyLevel?: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus?: string;
|
||||
publishStatus?: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface ParkingCostVO {
|
||||
/**
|
||||
* 车位id
|
||||
*/
|
||||
parkingId: string | number;
|
||||
parkingId: string;
|
||||
|
||||
/**
|
||||
* 收费项目 0临时停车
|
||||
@@ -79,7 +79,7 @@ export interface ParkingCostForm extends BaseEntity {
|
||||
/**
|
||||
* 车位id
|
||||
*/
|
||||
parkingId?: string | number;
|
||||
parkingId?: string;
|
||||
|
||||
/**
|
||||
* 收费项目 0临时停车
|
||||
@@ -141,7 +141,7 @@ export interface ParkingCostQuery extends PageQuery {
|
||||
/**
|
||||
* 车位id
|
||||
*/
|
||||
parkingId?: string | number;
|
||||
parkingId?: string;
|
||||
|
||||
/**
|
||||
* 收费项目 0临时停车
|
||||
|
||||
@@ -37,7 +37,9 @@ export interface QuestionnaireVO {
|
||||
/**
|
||||
* 部分业主串 ”,“号隔开
|
||||
*/
|
||||
residents: string | number;
|
||||
residents: string;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
@@ -69,7 +71,7 @@ export interface QuestionnaireForm extends BaseEntity {
|
||||
/**
|
||||
* 问卷题目结构(JSON数组)
|
||||
*/
|
||||
content?: string;
|
||||
content?: string | QuestionComponentItem[];
|
||||
|
||||
/**
|
||||
* 状态:0-草稿 1-已发布 2-已结束
|
||||
@@ -158,6 +160,6 @@ export interface QuestionComponentItem {
|
||||
export interface QuestionComponentnaireForm {
|
||||
id?: string | number | null;
|
||||
title: string;
|
||||
description: string;
|
||||
description?: string;
|
||||
content: QuestionComponentItem[];
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export interface RepairVO {
|
||||
/**
|
||||
* 维修人员id
|
||||
*/
|
||||
repairId: string | number;
|
||||
repairId: string;
|
||||
/** 名称(小区名-楼栋名-单元号-房间号) */
|
||||
name?: string;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ export interface RepairProjectVO {
|
||||
/**
|
||||
* 维修项目表id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 维修项目名
|
||||
@@ -12,7 +12,7 @@ export interface RepairProjectVO {
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId: string | number;
|
||||
parentId: string;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
@@ -23,7 +23,7 @@ export interface RepairProjectVO {
|
||||
* 项目层级 0,1
|
||||
*/
|
||||
projectLevel: number;
|
||||
|
||||
children?: [];
|
||||
/**
|
||||
* 排序 (数越小越靠前)
|
||||
*/
|
||||
@@ -39,7 +39,7 @@ export interface RepairProjectForm extends BaseEntity {
|
||||
/**
|
||||
* 维修项目表id
|
||||
*/
|
||||
id?: string | number;
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* 维修项目名
|
||||
@@ -49,7 +49,7 @@ export interface RepairProjectForm extends BaseEntity {
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
parentId?: string;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
@@ -101,7 +101,7 @@ export interface RepairProjectQuery extends PageQuery {
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
parentId?: string;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
|
||||
@@ -117,6 +117,8 @@ export interface BillQuery extends PageQuery {
|
||||
*/
|
||||
chargeItemId?: string | number;
|
||||
|
||||
// type: string;
|
||||
|
||||
/**
|
||||
* 收费范围 0全体业主 1部分业主
|
||||
*/
|
||||
|
||||
@@ -96,3 +96,14 @@ export const WaterDeviceUpdateBin = (data: { deviceCodes: string[]; urlA: string
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取设备最新的抄表记录
|
||||
* @param deviceCodes
|
||||
*/
|
||||
export const latestRecord = (deviceCodes: string) => {
|
||||
return request({
|
||||
url: `/waterDevice/latestRecord/${deviceCodes}`,
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@ export interface WarehouseVO {
|
||||
/**
|
||||
* 仓库ID
|
||||
*/
|
||||
id: string | number;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 仓库名称*
|
||||
@@ -12,7 +12,7 @@ export interface WarehouseVO {
|
||||
/**
|
||||
* 仓库归属id*(关联com_village)
|
||||
*/
|
||||
villageId: number;
|
||||
villageId: string;
|
||||
|
||||
/**
|
||||
* 联系人*
|
||||
@@ -44,7 +44,7 @@ export interface WarehouseForm extends BaseEntity {
|
||||
/**
|
||||
* 仓库ID
|
||||
*/
|
||||
id?: string | number;
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* 仓库名称*
|
||||
|
||||
@@ -17,7 +17,7 @@ export interface CarVO {
|
||||
/**
|
||||
* 持有人id(住户表id)
|
||||
*/
|
||||
residentId: string | number;
|
||||
residentId: string;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface DeviceCategoryVO {
|
||||
/**
|
||||
* 状态 0正常 1停用
|
||||
*/
|
||||
status: string;
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
@@ -34,7 +34,7 @@ export interface DeviceCategoryForm extends BaseEntity {
|
||||
/**
|
||||
* 状态 0正常 1停用
|
||||
*/
|
||||
status?: string;
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
@@ -51,7 +51,7 @@ export interface DeviceCategoryQuery extends PageQuery {
|
||||
/**
|
||||
* 状态 0正常 1停用
|
||||
*/
|
||||
status?: string;
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export interface DeviceVO {
|
||||
categoryName: string;
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
|
||||
@@ -46,7 +46,7 @@ export function editBuildingApi(data: addBuildingType & { id: string }) {
|
||||
});
|
||||
}
|
||||
/** 删除楼栋 */
|
||||
export function deleteBuildingApi(id: number) {
|
||||
export function deleteBuildingApi(id: string) {
|
||||
return request({
|
||||
url: `/building/${id}`,
|
||||
method: 'DELETE'
|
||||
@@ -55,9 +55,9 @@ export function deleteBuildingApi(id: number) {
|
||||
|
||||
// 房屋----------------------------------------------------------------------------------------------
|
||||
/** 根据 楼栋id 查询房屋信息 */
|
||||
export function getHouselistAPI(buildingId: string): AxiosPromise<BuildingUnit> {
|
||||
export function getHouselistAPI(buildingId: string, houseName: string = ''): AxiosPromise<BuildingUnit> {
|
||||
return request({
|
||||
url: `/house/groupByUnitTree/${buildingId}`,
|
||||
url: `/house/groupByUnitTree/${buildingId}?houseName=${houseName}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ export interface HouseRentalVO {
|
||||
/**
|
||||
* id 房屋租赁表id
|
||||
*/
|
||||
id?: string | number;
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 租户姓名
|
||||
@@ -109,7 +109,7 @@ export interface HouseRentalForm extends BaseEntity {
|
||||
/**
|
||||
* 0 整租 1 合租
|
||||
*/
|
||||
rentalType?: number;
|
||||
rentalType?: string;
|
||||
|
||||
/**
|
||||
* 房屋朝向
|
||||
@@ -171,7 +171,7 @@ export interface HouseRentalQuery extends PageQuery {
|
||||
/**
|
||||
* 房屋用途
|
||||
*/
|
||||
houseUse?: number;
|
||||
houseUse?: string;
|
||||
/**
|
||||
* 租户姓名
|
||||
*/
|
||||
@@ -185,7 +185,7 @@ export interface HouseRentalQuery extends PageQuery {
|
||||
/**
|
||||
* 0 整租 1 合租
|
||||
*/
|
||||
rentalType?: number;
|
||||
rentalType?: string;
|
||||
|
||||
/**
|
||||
* 房屋朝向
|
||||
|
||||
@@ -61,3 +61,26 @@ export const delParking = (id: string | number | Array<string | number>) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 改变车位审核装填
|
||||
* @param id
|
||||
*/
|
||||
export const getParkingReview = (id: string) => {
|
||||
return request({
|
||||
url: '/parkingReview/checkStatus',
|
||||
method: 'POST'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取车位审核信息
|
||||
* @param id
|
||||
*/
|
||||
export const getParkingReviewInfo = (id: string) => {
|
||||
return request({
|
||||
url: '/parking/checkInfo',
|
||||
method: 'POST',
|
||||
data: {
|
||||
id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface ParkingVO {
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId: string | number;
|
||||
residentId: string;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
@@ -88,7 +88,7 @@ export interface ParkingForm extends BaseEntity {
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId?: string | number;
|
||||
residentId?: string;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
@@ -160,7 +160,7 @@ export interface ParkingQuery extends PageQuery {
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId?: string | number;
|
||||
residentId?: string;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface ResidentVO {
|
||||
/**
|
||||
* 0 男性 1女性
|
||||
*/
|
||||
gender: number;
|
||||
gender: string;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
@@ -97,7 +97,7 @@ export interface ResidentForm extends BaseEntity {
|
||||
/**
|
||||
* 0 男性 1女性
|
||||
*/
|
||||
gender?: number;
|
||||
gender?: string;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
|
||||
@@ -29,7 +29,7 @@ export interface UserQuery extends PageQuery {
|
||||
* 用户返回对象
|
||||
*/
|
||||
export interface UserVO extends BaseEntity {
|
||||
userId: string | number;
|
||||
userId: string;
|
||||
tenantId: string;
|
||||
deptId: number;
|
||||
userName: string;
|
||||
|
||||
Reference in New Issue
Block a user