diff --git a/vben28/src/locales/lang/zh-CN/routes/admin.ts b/vben28/src/locales/lang/zh-CN/routes/admin.ts index 291cc7c6..1577abca 100644 --- a/vben28/src/locales/lang/zh-CN/routes/admin.ts +++ b/vben28/src/locales/lang/zh-CN/routes/admin.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: '组织机构管理', diff --git a/vben28/src/views/admin/auditLog/AuditLog.ts b/vben28/src/views/admin/auditLog/AuditLog.ts index 56f9f315..721a9bc9 100644 --- a/vben28/src/views/admin/auditLog/AuditLog.ts +++ b/vben28/src/views/admin/auditLog/AuditLog.ts @@ -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(); + } + } } ];