|
@@ -1,5 +1,6 @@
|
|
|
import type { SmartColumn, SmartSearchFormSchema } from '@/components/SmartTable';
|
|
import type { SmartColumn, SmartSearchFormSchema } from '@/components/SmartTable';
|
|
|
import { tableBooleanColumnClass } from '@/components/SmartTable';
|
|
import { tableBooleanColumnClass } from '@/components/SmartTable';
|
|
|
|
|
+import { Ref, unref } from 'vue';
|
|
|
|
|
|
|
|
export const getTableColumns = (): SmartColumn[] => {
|
|
export const getTableColumns = (): SmartColumn[] => {
|
|
|
return [
|
|
return [
|
|
@@ -41,6 +42,14 @@ export const getTableColumns = (): SmartColumn[] => {
|
|
|
title: '{system.views.exception.title.operateUser}',
|
|
title: '{system.views.exception.title.operateUser}',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'tenantId',
|
|
|
|
|
+ title: '{system.views.exception.title.tenant}',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ formatter({ row }) {
|
|
|
|
|
+ return row.tenant?.tenantShortName || row.tenant?.tenantName;
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
field: 'createTime',
|
|
field: 'createTime',
|
|
|
sortable: true,
|
|
sortable: true,
|
|
@@ -110,7 +119,10 @@ const getYesNoOptions = (t: Function) => {
|
|
|
];
|
|
];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export const getSearchFormSchemas = (t: Function): SmartSearchFormSchema[] => {
|
|
|
|
|
|
|
+export const getSearchFormSchemas = (
|
|
|
|
|
+ t: Function,
|
|
|
|
|
+ getIsPlatformTenant: Ref<boolean>,
|
|
|
|
|
+): SmartSearchFormSchema[] => {
|
|
|
return [
|
|
return [
|
|
|
{
|
|
{
|
|
|
label: t('system.views.exception.title.exceptionMessage'),
|
|
label: t('system.views.exception.title.exceptionMessage'),
|
|
@@ -159,5 +171,14 @@ export const getSearchFormSchemas = (t: Function): SmartSearchFormSchema[] => {
|
|
|
style: { width: '150px' },
|
|
style: { width: '150px' },
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: t('system.views.exception.title.tenant'),
|
|
|
|
|
+ field: 'tenantId',
|
|
|
|
|
+ slot: 'search-tenantId',
|
|
|
|
|
+ searchSymbol: '=',
|
|
|
|
|
+ ifShow() {
|
|
|
|
|
+ return unref(getIsPlatformTenant);
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
};
|
|
};
|