综合模块完成
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673
2025-06-28 22:49:40 +08:00
parent acd63bc96e
commit 54cea19b78
22 changed files with 523 additions and 571 deletions

View File

@@ -1,4 +1,4 @@
import type { PageQuery, BaseEntity } from '#/api/common';
import type { BaseEntity, PageQuery } from '#/api/common';
export interface BuildingVO {
/**
@@ -16,21 +16,6 @@ export interface BuildingVO {
*/
buildingName: string;
/**
* 省
*/
province: string;
/**
* 市
*/
city: string;
/**
* 区
*/
district: string;
/**
* 总层数
*/
@@ -70,67 +55,6 @@ export interface BuildingVO {
* 维度
*/
lat: string;
/**
* 产权性质(1:自持2承租3自持+承租,4政府免费使用)
*/
cqxz: number;
/**
* 不动产编号
*/
bdcbh: string;
/**
* 产权编号
*/
cqbh: string;
/**
* 图地编号
*/
tdbh: string;
/**
* 建筑面积
*/
jzmj: number;
/**
* 产权面积
*/
cqmj: number;
/**
* 可租面积
*/
kzmj: number;
/**
* 自用面积
*/
zymj: number;
/**
* 配套面积
*/
ptmj: number;
/**
* 车位面积
*/
cwmj: number;
/**
* 标准层高
*/
bzcg: number;
/**
* 排序字段
*/
sort: number;
}
export interface BuildingForm extends BaseEntity {
@@ -149,21 +73,6 @@ export interface BuildingForm extends BaseEntity {
*/
buildingName?: string;
/**
* 省
*/
province?: string;
/**
* 市
*/
city?: string;
/**
* 区
*/
district?: string;
/**
* 总层数
*/
@@ -203,68 +112,6 @@ export interface BuildingForm extends BaseEntity {
* 维度
*/
lat?: string;
/**
* 产权性质(1:自持2承租3自持+承租,4政府免费使用)
*/
cqxz?: number;
/**
* 不动产编号
*/
bdcbh?: string;
/**
* 产权编号
*/
cqbh?: string;
/**
* 图地编号
*/
tdbh?: string;
/**
* 建筑面积
*/
jzmj?: number;
/**
* 产权面积
*/
cqmj?: number;
/**
* 可租面积
*/
kzmj?: number;
/**
* 自用面积
*/
zymj?: number;
/**
* 配套面积
*/
ptmj?: number;
/**
* 车位面积
*/
cwmj?: number;
/**
* 标准层高
*/
bzcg?: number;
/**
* 排序字段
*/
sort?: number;
}
export interface BuildingQuery extends PageQuery {
@@ -278,21 +125,6 @@ export interface BuildingQuery extends PageQuery {
*/
buildingName?: string;
/**
* 省
*/
province?: string;
/**
* 市
*/
city?: string;
/**
* 区
*/
district?: string;
/**
* 总层数
*/
@@ -333,68 +165,13 @@ export interface BuildingQuery extends PageQuery {
*/
lat?: string;
/**
* 产权性质(1:自持2承租3自持+承租,4政府免费使用)
*/
cqxz?: number;
/**
* 不动产编号
*/
bdcbh?: string;
/**
* 产权编号
*/
cqbh?: string;
/**
* 图地编号
*/
tdbh?: string;
/**
* 建筑面积
*/
jzmj?: number;
/**
* 产权面积
*/
cqmj?: number;
/**
* 可租面积
*/
kzmj?: number;
/**
* 自用面积
*/
zymj?: number;
/**
* 配套面积
*/
ptmj?: number;
/**
* 车位面积
*/
cwmj?: number;
/**
* 标准层高
*/
bzcg?: number;
/**
* 排序字段
*/
sort?: number;
/**
* 日期范围参数
*/
* 日期范围参数
*/
params?: any;
}

View File

@@ -1,28 +1,37 @@
import type { CityAreaVO, CityAreaForm, CityAreaQuery } from './model';
import type { CityAreaForm, CityAreaQuery, CityAreaVO } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import type { ID, IDS, PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询行政区划
列表
* @param params
* @returns 行政区划
列表
*/
* 查询行政区划
列表
* @param params
* @returns 行政区划
列表
*/
export function cityAreaList(params?: CityAreaQuery) {
return requestClient.get<PageResult<CityAreaVO>>('/property/cityArea/list', { params });
return requestClient.get<PageResult<CityAreaVO>>('/property/cityArea/list', {
params,
});
}
/**
* 查询城市结构数
* @param params
*/
export function getCityAreaTreeList() {
return requestClient.get<CityAreaVO[]>('/property/cityArea/treeList');
}
/**
* 导出行政区划
列表
列表
* @param params
* @returns 行政区划
列表
列表
*/
export function cityAreaExport(params?: CityAreaQuery) {
return commonExport('/property/cityArea/export', params ?? {});
@@ -30,10 +39,10 @@ export function cityAreaExport(params?: CityAreaQuery) {
/**
* 查询行政区划
详情
详情
* @param areaCode id
* @returns 行政区划
详情
详情
*/
export function cityAreaInfo(areaCode: ID) {
return requestClient.get<CityAreaVO>(`/property/cityArea/${areaCode}`);

View File

@@ -1,18 +1,29 @@
import type { CommunityVO, CommunityForm, CommunityQuery } from './model';
import type { CommunityForm, CommunityQuery, CommunityVO } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import type { ID, IDS, PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询小区列表
* @param params
* @returns 小区列表
*/
* 查询小区列表
* @param params
* @returns 小区列表
*/
export function communityList(params?: CommunityQuery) {
return requestClient.get<PageResult<CommunityVO>>('/property/community/list', { params });
return requestClient.get<PageResult<CommunityVO>>(
'/property/community/list',
{ params },
);
}
/**
* 查询小区树结构
* @param params
* @returns 小区列表
*/
export function communityTree(level: number) {
return requestClient.get<CommunityVO[]>(`/property/community/tree/${level}`);
}
/**

View File

@@ -1,8 +1,8 @@
import type { PageQuery, BaseEntity } from '#/api/common';
import type { BaseEntity, PageQuery } from '#/api/common';
export interface CommunityVO {
/**
*
*
*/
id: string | number;
@@ -16,6 +16,9 @@ export interface CommunityVO {
*/
communityType: number;
cityFullCode: string;
cityFullName: string;
/**
* 省
*/
@@ -52,7 +55,7 @@ export interface CommunityVO {
area: number;
/**
*
*
*/
builtYear: string;
@@ -75,12 +78,11 @@ export interface CommunityVO {
* 小图图片
*/
img: string;
}
export interface CommunityForm extends BaseEntity {
/**
*
*
*/
id?: string | number;
@@ -94,6 +96,9 @@ export interface CommunityForm extends BaseEntity {
*/
communityType?: number;
cityFullName: string;
cityFullCode: string;
/**
* 省
*/
@@ -130,7 +135,7 @@ export interface CommunityForm extends BaseEntity {
area?: number;
/**
*
*
*/
builtYear?: string;
@@ -153,7 +158,6 @@ export interface CommunityForm extends BaseEntity {
* 小图图片
*/
img?: string;
}
export interface CommunityQuery extends PageQuery {
@@ -203,7 +207,7 @@ export interface CommunityQuery extends PageQuery {
area?: number;
/**
*
*
*/
builtYear?: string;
@@ -228,7 +232,7 @@ export interface CommunityQuery extends PageQuery {
img?: string;
/**
* 日期范围参数
*/
* 日期范围参数
*/
params?: any;
}