feat(日志管理): 开发日志管理功能。
fix(项目任务): 1、任务完成后需要依然能够修改工作日志,但是只能修改工作内容和上传附件。2、任务完成后,协办人的工作日志不应该能删除、所有任务里的成员不能新增工作日志,前端不显示新增、删除按钮。3、团队成员的面板,在成员排序时,让有下属的成员提前。4、在任务弹出框有个快速用执行的信息填充的icon。
This commit is contained in:
151
src/typings/api/system-log.d.ts
vendored
Normal file
151
src/typings/api/system-log.d.ts
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
declare namespace Api {
|
||||
/**
|
||||
* namespace SystemLog
|
||||
*
|
||||
* backend api module: "system/*-log"
|
||||
*/
|
||||
namespace SystemLog {
|
||||
namespace Common {
|
||||
interface PageParams {
|
||||
pageNo: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
interface PageResult<T = any> {
|
||||
total: number;
|
||||
list: T[];
|
||||
}
|
||||
}
|
||||
|
||||
namespace Login {
|
||||
interface Log {
|
||||
id: string;
|
||||
logType: number;
|
||||
userId?: string | null;
|
||||
userType?: number | null;
|
||||
traceId?: string | null;
|
||||
username: string;
|
||||
result: number;
|
||||
userIp: string;
|
||||
userAgent?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userIp: string;
|
||||
username: string;
|
||||
status: boolean;
|
||||
createTime: string[];
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace Operate {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userName: string;
|
||||
userType: number;
|
||||
type: string;
|
||||
subType: string;
|
||||
bizId?: string | null;
|
||||
action?: string | null;
|
||||
extra?: string | null;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
type: string;
|
||||
requestMethod: string;
|
||||
subType: string;
|
||||
action: string;
|
||||
createTime: string[];
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace ApiAccess {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
requestParams?: string | null;
|
||||
responseBody?: string | null;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
operateModule?: string | null;
|
||||
operateName?: string | null;
|
||||
operateType?: number | null;
|
||||
beginTime: string;
|
||||
endTime: string;
|
||||
duration: number;
|
||||
resultCode: number;
|
||||
resultMsg?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestUrl: string;
|
||||
beginTime: string[];
|
||||
duration: number;
|
||||
resultCode: number;
|
||||
}
|
||||
>;
|
||||
}
|
||||
|
||||
namespace ApiError {
|
||||
interface Log {
|
||||
id: string;
|
||||
traceId?: string | null;
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestMethod: string;
|
||||
requestUrl: string;
|
||||
requestParams?: string | null;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
exceptionTime: string;
|
||||
exceptionName: string;
|
||||
exceptionMessage: string;
|
||||
exceptionRootCauseMessage?: string | null;
|
||||
exceptionStackTrace?: string | null;
|
||||
exceptionClassName?: string | null;
|
||||
exceptionFileName?: string | null;
|
||||
exceptionMethodName?: string | null;
|
||||
exceptionLineNumber?: number | null;
|
||||
processStatus: number;
|
||||
processTime?: string | null;
|
||||
processUserId?: string | null;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
type SearchParams = CommonType.RecordNullable<
|
||||
Common.PageParams & {
|
||||
userId: string;
|
||||
userType: number;
|
||||
applicationName: string;
|
||||
requestUrl: string;
|
||||
exceptionTime: string[];
|
||||
processStatus: number;
|
||||
}
|
||||
>;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
src/typings/elegant-router.d.ts
vendored
10
src/typings/elegant-router.d.ts
vendored
@@ -26,6 +26,11 @@ declare module "@elegant-router/types" {
|
||||
"500": "/500";
|
||||
"iframe-page": "/iframe-page/:url";
|
||||
"infra": "/infra";
|
||||
"infra_log-management": "/infra/log-management";
|
||||
"infra_log-management_api-access-log": "/infra/log-management/api-access-log";
|
||||
"infra_log-management_api-error-log": "/infra/log-management/api-error-log";
|
||||
"infra_log-management_login-log": "/infra/log-management/login-log";
|
||||
"infra_log-management_operate-log": "/infra/log-management/operate-log";
|
||||
"infra_rd-code": "/infra/rd-code";
|
||||
"infra_state-machine": "/infra/state-machine";
|
||||
"login": "/login/:module(pwd-login|reset-pwd)?";
|
||||
@@ -138,6 +143,11 @@ declare module "@elegant-router/types" {
|
||||
| "500"
|
||||
| "iframe-page"
|
||||
| "login"
|
||||
| "infra_log-management_api-access-log"
|
||||
| "infra_log-management_api-error-log"
|
||||
| "infra_log-management"
|
||||
| "infra_log-management_login-log"
|
||||
| "infra_log-management_operate-log"
|
||||
| "infra_rd-code"
|
||||
| "infra_state-machine"
|
||||
| "metrics_member-efficiency"
|
||||
|
||||
Reference in New Issue
Block a user