feat(app): 初始化项目配置和页面结构

- 添加 .dockerignore 和 .env.example 配置文件
- 添加 .gitignore 忽略规则配置
- 创建服务端代理API路由(_file、_modules、_server)
- 集成 Ant Design Vue 组件库并配置SSR样式提取
- 定义API响应类型封装
- 创建基础布局组件(blank、console)
- 实现应用中心页面和组件(AppsCenter)
- 添加文章列表测试页面
- 配置控制台导航菜单结构
- 实现控制台头部组件
- 创建联系页面表单
This commit is contained in:
2026-01-17 18:23:37 +08:00
commit 5e26fdc7fb
439 changed files with 56219 additions and 0 deletions

View File

@@ -0,0 +1,106 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { HjmBxLog, HjmBxLogParam } from './model';
import { MODULES_API_URL } from '@/config/setting';
/**
* 分页查询黄家明_报险记录
*/
export async function pageHjmBxLog(params: HjmBxLogParam) {
const res = await request.get<ApiResult<PageResult<HjmBxLog>>>(
MODULES_API_URL + '/hjm/hjm-bx-log/page',
{
params
}
);
if (res.data.code === 0) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 查询黄家明_报险记录列表
*/
export async function listHjmBxLog(params?: HjmBxLogParam) {
const res = await request.get<ApiResult<HjmBxLog[]>>(
MODULES_API_URL + '/hjm/hjm-bx-log',
{
params
}
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 添加黄家明_报险记录
*/
export async function addHjmBxLog(data: HjmBxLog) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/hjm/hjm-bx-log',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 修改黄家明_报险记录
*/
export async function updateHjmBxLog(data: HjmBxLog) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/hjm/hjm-bx-log',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 删除黄家明_报险记录
*/
export async function removeHjmBxLog(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/hjm/hjm-bx-log/' + id
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 批量删除黄家明_报险记录
*/
export async function removeBatchHjmBxLog(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/hjm/hjm-bx-log/batch',
{
data
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}
/**
* 根据id查询黄家明_报险记录
*/
export async function getHjmBxLog(id: number) {
const res = await request.get<ApiResult<HjmBxLog>>(
MODULES_API_URL + '/hjm/hjm-bx-log/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}

View File

@@ -0,0 +1,45 @@
import type { PageParam } from '@/api';
/**
* 黄家明_报险记录
*/
export interface HjmBxLog {
// 自增ID
id?: number;
// 用户ID
userId?: number;
// 车辆ID
carId?: number;
// 车牌号
carNo?: string;
// 操作员
realName?: string;
// 事故类型
accidentType?: string;
// 部门
parentOrganization?: string;
// 保险图片
image?: string;
// 排序(数字越小越靠前)
sortNumber?: number;
// 备注
comments?: string;
// 状态, 0正常, 1冻结
status?: number;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
}
/**
* 黄家明_报险记录搜索条件
*/
export interface HjmBxLogParam extends PageParam {
id?: number;
keywords?: string;
}