Browse Source

feat: 审计日志添加表格排序示例

pull/126/head
王军 3 years ago
parent
commit
f2e28c0789
  1. 1
      vben28/src/views/admin/auditLog/AuditLog.ts
  2. 4
      vben28/src/views/admin/auditLog/AuditLogDetail.vue

1
vben28/src/views/admin/auditLog/AuditLog.ts

@ -75,6 +75,7 @@ export const tableColumns: BasicColumn[] = [
return formatToDateTime(text); return formatToDateTime(text);
}, },
width: 150, width: 150,
sorter: true,
}, },
{ {
title: t('routes.admin.executionDuration'), title: t('routes.admin.executionDuration'),

4
vben28/src/views/admin/auditLog/AuditLogDetail.vue

@ -13,13 +13,11 @@
setup() { setup() {
const { t } = useI18n(); const { t } = useI18n();
const auditLogInfo = ref({}); const auditLogInfo = ref({});
let entityChanges;
const [register] = useDrawerInner((data) => { const [register] = useDrawerInner((data) => {
console.log(JSON.stringify(data.record));
auditLogInfo.value = unref(data.record); auditLogInfo.value = unref(data.record);
}); });
return { t, register, entityChanges, auditLogInfo }; return { t, register, auditLogInfo };
}, },
}); });
</script> </script>

Loading…
Cancel
Save