|
@ -1,74 +1,19 @@ |
|
|
<template> |
|
|
<template> |
|
|
<w-grid |
|
|
<w-grid |
|
|
:title="$t('menu.developer.springboot.bean')" |
|
|
title="用户列表" |
|
|
:checkbox-selection="false" |
|
|
:checkbox-selection="false" |
|
|
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/beans')" |
|
|
:fetch-data-url="Environment.apiContextPath('/api/system/user')" |
|
|
:pageable="false" |
|
|
:pageable="false" |
|
|
:toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']" |
|
|
:toolbar-actions="['query', 'reset']" |
|
|
group-mode="alone" |
|
|
:query-form-fields="[{ name: 'lastModifyDate', label: $t('lastModifyDate'), type: 'w-date-range' }]" |
|
|
group-by-field="scope" |
|
|
|
|
|
:columns="[ |
|
|
:columns="[ |
|
|
{ width: 500, name: 'name', label: $t('name') }, |
|
|
{ name: 'loginName', label: $t('loginName') }, |
|
|
{ width: 400, name: 'type', label: $t('className'), format: Formater.simpleClassName() }, |
|
|
{ name: 'userName', label: $t('userName') }, |
|
|
{ |
|
|
{ |
|
|
width: 100, |
|
|
name: 'lastModifyDate', |
|
|
name: 'scope', |
|
|
label: $t('lastModifyDate'), |
|
|
label: $t('scope'), |
|
|
|
|
|
sortable: false, |
|
|
|
|
|
format: (val) => { |
|
|
|
|
|
if (val === 'singleton') { |
|
|
|
|
|
return '测试'; |
|
|
|
|
|
} else if (val === 'prototype') { |
|
|
|
|
|
return '测试2'; |
|
|
|
|
|
} |
|
|
|
|
|
return val; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
]" |
|
|
]" |
|
|
:viewer="{ |
|
|
|
|
|
panel: { |
|
|
|
|
|
columnNum: 2, |
|
|
|
|
|
labelWidth: 200, |
|
|
|
|
|
valueWidth: '100%', |
|
|
|
|
|
fields: [ |
|
|
|
|
|
{ width: 100, name: 'name', label: $t('name') }, |
|
|
|
|
|
{ width: 100, name: 'context', label: $t('context') }, |
|
|
|
|
|
{ |
|
|
|
|
|
width: 100, |
|
|
|
|
|
name: 'scope', |
|
|
|
|
|
label: $t('scope'), |
|
|
|
|
|
}, |
|
|
|
|
|
{ width: 100, name: 'type', label: $t('className'), format: Formater.none() }, |
|
|
|
|
|
{ width: 100, name: 'resource', label: $t('resource') }, |
|
|
|
|
|
{ |
|
|
|
|
|
width: 100, |
|
|
|
|
|
name: 'aliases', |
|
|
|
|
|
label: $t('aliases'), |
|
|
|
|
|
format: (aliases) => { |
|
|
|
|
|
aliases = aliases || []; |
|
|
|
|
|
let result = ''; |
|
|
|
|
|
for (const aliase of aliases) { |
|
|
|
|
|
result += aliase + '<br/>'; |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
width: 100, |
|
|
|
|
|
name: 'dependencies', |
|
|
|
|
|
label: $t('dependencies'), |
|
|
|
|
|
format: (dependencies) => { |
|
|
|
|
|
dependencies = dependencies || []; |
|
|
|
|
|
let result = ''; |
|
|
|
|
|
for (const dependency of dependencies) { |
|
|
|
|
|
result += dependency + '<br/>'; |
|
|
|
|
|
} |
|
|
|
|
|
return result; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}" |
|
|
|
|
|
></w-grid> |
|
|
></w-grid> |
|
|
</template> |
|
|
</template> |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|