Browse Source

审计日志模块新增是否异常搜索,异常内容列固定宽度,异常信息多的时候换行显示

pull/71/head
Dragon 4 years ago
parent
commit
ab2a389531
  1. 5
      vben28/src/locales/lang/zh-CN/routes/admin.ts
  2. 27
      vben28/src/views/admin/auditLog/AuditLog.ts

5
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: '组织机构管理',

27
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();
}
}
}
];

Loading…
Cancel
Save