Browse Source

feat(logging): add the query field of id

pull/448/head
cKey 4 years ago
parent
commit
195bbfb0a8
  1. 1
      apps/vue/src/api/logging/model/loggingModel.ts
  2. 2
      apps/vue/src/views/sys/logging/components/LoggingModal.vue
  3. 2
      apps/vue/src/views/sys/logging/components/LoggingTable.vue

1
apps/vue/src/api/logging/model/loggingModel.ts

@ -11,6 +11,7 @@ export interface LogException {
} }
export interface LogField { export interface LogField {
id: string;
machineName: string; machineName: string;
environment: string; environment: string;
application: string; application: string;

2
apps/vue/src/views/sys/logging/components/LoggingModal.vue

@ -126,7 +126,7 @@
const [registerModal] = useModalInner((model) => { const [registerModal] = useModalInner((model) => {
activeKey.value = 'basic'; activeKey.value = 'basic';
modelRef.value = {} as Log; modelRef.value = {} as Log;
get(model.timeStamp).then((res) => { get(model.fields.id).then((res) => {
modelRef.value = res; modelRef.value = res;
}); });
}); });

2
apps/vue/src/views/sys/logging/components/LoggingTable.vue

@ -41,7 +41,7 @@
const { L } = useLocalization('AbpAuditLogging'); const { L } = useLocalization('AbpAuditLogging');
const [registerModal, { openModal }] = useModal(); const [registerModal, { openModal }] = useModal();
const [registerTable] = useTable({ const [registerTable] = useTable({
rowKey: 'timeStamp', rowKey: 'fields.id',
title: L('Logging'), title: L('Logging'),
columns: getDataColumns(), columns: getDataColumns(),
api: getList, api: getList,

Loading…
Cancel
Save