mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 02:55:07 +08:00
vue3:测试 client、token、errorCode 模块,导出需要优化
This commit is contained in:
@ -40,38 +40,38 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
{
|
||||
title: t('common.status'),
|
||||
field: 'status',
|
||||
dictType: DICT_TYPE.COMMON_STATUS,
|
||||
dictType: DICT_TYPE.COMMON_STATUS, // TODO @星语:编辑时,status 展示为 0 或者 1 了
|
||||
isSearch: true
|
||||
},
|
||||
{
|
||||
title: '访问令牌的有效期',
|
||||
field: 'accessTokenValiditySeconds'
|
||||
field: 'accessTokenValiditySeconds' // TODO @星语:数字输入框
|
||||
},
|
||||
{
|
||||
title: '刷新令牌的有效期',
|
||||
field: 'refreshTokenValiditySeconds'
|
||||
field: 'refreshTokenValiditySeconds' // TODO @星语:数字输入框
|
||||
},
|
||||
{
|
||||
title: '授权类型',
|
||||
field: 'authorizedGrantTypes',
|
||||
dictType: DICT_TYPE.SYSTEM_OAUTH2_GRANT_TYPE,
|
||||
form: {
|
||||
component: 'Select'
|
||||
component: 'Select' // TODO @星语:多选
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '授权范围',
|
||||
field: 'scopes',
|
||||
field: 'scopes', // TODO @星语:带输入的 SELECT
|
||||
isTable: false
|
||||
},
|
||||
{
|
||||
title: '自动授权范围',
|
||||
field: 'autoApproveScopes',
|
||||
field: 'autoApproveScopes', // TODO @星语:带输入的 SELECT
|
||||
isTable: false
|
||||
},
|
||||
{
|
||||
title: '可重定向的 URI 地址',
|
||||
field: 'redirectUris',
|
||||
field: 'redirectUris', // TODO @星语:带输入的 SELECT
|
||||
isTable: false
|
||||
},
|
||||
{
|
||||
@ -102,7 +102,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
||||
{
|
||||
title: t('common.createTime'),
|
||||
field: 'createTime',
|
||||
formatter: 'formatDate',
|
||||
formatter: 'formatDate', // TODO @星语:宽度,保证时间可以展示出来
|
||||
isForm: false
|
||||
}
|
||||
]
|
||||
|
@ -58,6 +58,7 @@
|
||||
:rules="rules"
|
||||
/>
|
||||
<!-- 表单:详情 -->
|
||||
<!-- TODO @星语:展示详情时,有点小丑,可额能得看看 -->
|
||||
<Descriptions
|
||||
v-if="actionType === 'detail'"
|
||||
:schema="allSchemas.detailSchema"
|
||||
|
@ -61,7 +61,7 @@ const handleForceLogout = (rowId: number) => {
|
||||
.delConfirm()
|
||||
.then(async () => {
|
||||
await TokenApi.deleteAccessTokenApi(rowId)
|
||||
message.success(t('common.delSuccess'))
|
||||
message.success(t('common.delSuccess')) // TODO 星语:提示内容不对
|
||||
})
|
||||
.finally(() => {
|
||||
// 刷新列表
|
||||
|
Reference in New Issue
Block a user