Browse Source
Merge pull request #71 from canyanol650/main
审计日志模块新增“是否异常”搜索,异常内容列固定宽度,异常信息多的时候换行显示
WorkWeChat
WangJunZzz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
29 additions and
3 deletions
-
vben28/src/locales/lang/zh-CN/routes/admin.ts
-
vben28/src/views/admin/auditLog/AuditLog.ts
|
|
|
@ -33,6 +33,10 @@ export default { |
|
|
|
audit_entityInfo: '实体信息', |
|
|
|
audit_message: '报文', |
|
|
|
audit_applicationName: '应用名称', |
|
|
|
audit_hasException: '是否异常', |
|
|
|
audit_hasException_all: '全部', |
|
|
|
audit_hasException_yes: '是', |
|
|
|
audit_hasException_no: '否', |
|
|
|
grantedMessage: '授权成功,请重新登录.', |
|
|
|
close: '关闭', |
|
|
|
|
|
|
|
@ -67,6 +71,7 @@ export default { |
|
|
|
editPasswordMessage: '输入的2次密码不一致', |
|
|
|
executionTime: '执行时间', |
|
|
|
executionDuration: '响应时间(毫秒)', |
|
|
|
executionMessage: '异常内容', |
|
|
|
organizationUnitName: '名称', |
|
|
|
parentOrganizationUnitName: '上级组织机构', |
|
|
|
organizationUnitManagement: '组织机构管理', |
|
|
|
|
|
|
|
@ -20,7 +20,22 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
colProps: { |
|
|
|
span: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: "hasException", |
|
|
|
label: t("routes.admin.audit_hasException"), |
|
|
|
component: "Select", |
|
|
|
colProps: { span: 4 }, |
|
|
|
componentProps: ()=>{ |
|
|
|
return { |
|
|
|
options: [ |
|
|
|
{ label: t("routes.admin.audit_hasException_all"), value: null }, |
|
|
|
{ label: t("routes.admin.audit_hasException_yes"), value: true }, |
|
|
|
{ label: t("routes.admin.audit_hasException_no"), value: false }, |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
export const tableColumns: BasicColumn[] = [ |
|
|
|
@ -54,9 +69,15 @@ export const tableColumns: BasicColumn[] = [ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "Exceptions", |
|
|
|
title: t("routes.admin.executionMessage"), |
|
|
|
dataIndex: "exceptions", |
|
|
|
|
|
|
|
resizable:false, |
|
|
|
width: 350, |
|
|
|
customRender: ({ text }) => { |
|
|
|
if (text) { |
|
|
|
return text.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
]; |
|
|
|
|
|
|
|
|