chore: remove large file and update .gitignore

This commit is contained in:
Teo
2025-06-24 09:26:04 +08:00
parent 61cd9f6bcf
commit ea56ad66fa
15 changed files with 1118 additions and 80 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ViolationLevelVO, ViolationLevelForm, ViolationLevelQuery } from '@/api/safety/violationLevel/types';
/**
* 查询违章等级列表
* @param query
* @returns {*}
*/
export const listViolationLevel = (query?: ViolationLevelQuery): AxiosPromise<ViolationLevelVO[]> => {
return request({
url: '/safety/violationLevel/list',
method: 'get',
params: query
});
};
/**
* 查询违章等级详细
* @param id
*/
export const getViolationLevel = (id: string | number): AxiosPromise<ViolationLevelVO> => {
return request({
url: '/safety/violationLevel/' + id,
method: 'get'
});
};
/**
* 新增违章等级
* @param data
*/
export const addViolationLevel = (data: ViolationLevelForm) => {
return request({
url: '/safety/violationLevel',
method: 'post',
data: data
});
};
/**
* 修改违章等级
* @param data
*/
export const updateViolationLevel = (data: ViolationLevelForm) => {
return request({
url: '/safety/violationLevel',
method: 'put',
data: data
});
};
/**
* 删除违章等级
* @param id
*/
export const delViolationLevel = (id: string | number | Array<string | number>) => {
return request({
url: '/safety/violationLevel/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,87 @@
export interface ViolationLevelVO {
/**
* 违章等级
*/
violationLevel: string;
id: string | number | Array<string | number>;
/**
* 颜色
*/
color: string;
/**
* 风险等级
*/
riskType: string;
/**
* 违章类型(多个逗号分隔)
*/
violationType: string | Array<string | number>;
/**
* 创建时间
*/
createTime: string;
postList?: Array<string | number>;
postIdList?: Array<string | number>;
}
export interface ViolationLevelForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 项目id
*/
projectId?: string | number;
/**
* 违章等级
*/
violationLevel?: string;
/**
* 颜色
*/
color?: string;
/**
* 风险等级
*/
riskType?: string;
/**
* 违章类型(多个逗号分隔)
*/
violationType?: string;
}
export interface ViolationLevelQuery extends PageQuery {
/**
* 项目id
*/
projectId?: string | number;
/**
* 违章等级
*/
violationLevel?: string;
/**
* 风险等级
*/
riskType?: string;
/**
* 违章类型(多个逗号分隔)
*/
violationType?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@ -3,7 +3,7 @@ import { PostForm, PostQuery, PostVO } from './types';
import { AxiosPromise } from 'axios';
// 查询岗位列表
export function listPost(query: PostQuery): AxiosPromise<PostVO[]> {
export function listPost(query: { pageNum: number; pageSize: number }): AxiosPromise<PostVO[]> {
return request({
url: '/system/post/list',
method: 'get',