|
@@ -14,6 +14,14 @@ export const getTableColumns = (): SmartColumn[] => {
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'tenantId',
|
|
|
|
|
+ title: '{system.views.auth.accessSecret.title.tenantId}',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ formatter(params) {
|
|
|
|
|
+ return params.row.tenant?.tenantName;
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
field: 'seq',
|
|
field: 'seq',
|
|
|
sortable: true,
|
|
sortable: true,
|
|
@@ -22,22 +30,22 @@ export const getTableColumns = (): SmartColumn[] => {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'accessKey',
|
|
field: 'accessKey',
|
|
|
- title: '{system.views.auth.acccessSecret.title.accessKey}',
|
|
|
|
|
|
|
+ title: '{system.views.auth.accessSecret.title.accessKey}',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'secretKey',
|
|
field: 'secretKey',
|
|
|
- title: '{system.views.auth.acccessSecret.title.secretKey}',
|
|
|
|
|
|
|
+ title: '{system.views.auth.accessSecret.title.secretKey}',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'expireDate',
|
|
field: 'expireDate',
|
|
|
- title: '{system.views.auth.acccessSecret.title.expireDate}',
|
|
|
|
|
|
|
+ title: '{system.views.auth.accessSecret.title.expireDate}',
|
|
|
width: 165,
|
|
width: 165,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'accessIp',
|
|
field: 'accessIp',
|
|
|
- title: '{system.views.auth.acccessSecret.title.accessIp}',
|
|
|
|
|
|
|
+ title: '{system.views.auth.accessSecret.title.accessIp}',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -92,23 +100,29 @@ export const getFormSchemas = (t: Function): FormSchema[] => {
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
|
componentProps: {},
|
|
componentProps: {},
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'tenantId',
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.tenantId'),
|
|
|
|
|
+ slot: 'addEdit-tenantId',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
field: 'accessKey',
|
|
field: 'accessKey',
|
|
|
- label: t('system.views.auth.acccessSecret.title.accessKey'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.accessKey'),
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
|
componentProps: {},
|
|
componentProps: {},
|
|
|
dynamicDisabled: true,
|
|
dynamicDisabled: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'secretKey',
|
|
field: 'secretKey',
|
|
|
- label: t('system.views.auth.acccessSecret.title.secretKey'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.secretKey'),
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
|
componentProps: {},
|
|
componentProps: {},
|
|
|
dynamicDisabled: true,
|
|
dynamicDisabled: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'expireDate',
|
|
field: 'expireDate',
|
|
|
- label: t('system.views.auth.acccessSecret.title.expireDate'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.expireDate'),
|
|
|
component: 'DatePicker',
|
|
component: 'DatePicker',
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
showTime: true,
|
|
showTime: true,
|
|
@@ -117,10 +131,10 @@ export const getFormSchemas = (t: Function): FormSchema[] => {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'accessIp',
|
|
field: 'accessIp',
|
|
|
- label: t('system.views.auth.acccessSecret.title.accessIp'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.accessIp'),
|
|
|
component: 'InputTextArea',
|
|
component: 'InputTextArea',
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
- placeholder: t('system.views.auth.acccessSecret.validate.accessIp'),
|
|
|
|
|
|
|
+ placeholder: t('system.views.auth.accessSecret.validate.accessIp'),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -148,15 +162,21 @@ export const getFormSchemas = (t: Function): FormSchema[] => {
|
|
|
|
|
|
|
|
export const getSearchFormSchemas = (t: Function): SmartSearchFormSchema[] => {
|
|
export const getSearchFormSchemas = (t: Function): SmartSearchFormSchema[] => {
|
|
|
return [
|
|
return [
|
|
|
|
|
+ {
|
|
|
|
|
+ field: 'tenantId',
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.tenantId'),
|
|
|
|
|
+ slot: 'search-tenantId',
|
|
|
|
|
+ searchSymbol: '=',
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
field: 'accessKey',
|
|
field: 'accessKey',
|
|
|
- label: t('system.views.auth.acccessSecret.title.accessKey'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.accessKey'),
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
|
searchSymbol: 'like',
|
|
searchSymbol: 'like',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'secretKey',
|
|
field: 'secretKey',
|
|
|
- label: t('system.views.auth.acccessSecret.title.secretKey'),
|
|
|
|
|
|
|
+ label: t('system.views.auth.accessSecret.title.secretKey'),
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
|
searchSymbol: 'like',
|
|
searchSymbol: 'like',
|
|
|
},
|
|
},
|