|
@@ -12,6 +12,12 @@
|
|
@click="handleCreate()"
|
|
@click="handleCreate()"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #accessTokenValiditySeconds_default="{ row }">
|
|
|
|
+ {{ row.accessTokenValiditySeconds + '秒' }}
|
|
|
|
+ </template>
|
|
|
|
+ <template #refreshTokenValiditySeconds_default="{ row }">
|
|
|
|
+ {{ row.refreshTokenValiditySeconds + '秒' }}
|
|
|
|
+ </template>
|
|
<template #authorizedGrantTypes_default="{ row }">
|
|
<template #authorizedGrantTypes_default="{ row }">
|
|
<el-tag
|
|
<el-tag
|
|
:disable-transitions="true"
|
|
:disable-transitions="true"
|
|
@@ -61,7 +67,54 @@
|
|
v-if="actionType === 'detail'"
|
|
v-if="actionType === 'detail'"
|
|
:schema="allSchemas.detailSchema"
|
|
:schema="allSchemas.detailSchema"
|
|
:data="detailRef"
|
|
:data="detailRef"
|
|
- />
|
|
|
|
|
|
+ >
|
|
|
|
+ <template #accessTokenValiditySeconds="{ row }">
|
|
|
|
+ {{ row.accessTokenValiditySeconds + '秒' }}
|
|
|
|
+ </template>
|
|
|
|
+ <template #refreshTokenValiditySeconds="{ row }">
|
|
|
|
+ {{ row.refreshTokenValiditySeconds + '秒' }}
|
|
|
|
+ </template>
|
|
|
|
+ <template #authorizedGrantTypes="{ row }">
|
|
|
|
+ <el-tag
|
|
|
|
+ :disable-transitions="true"
|
|
|
|
+ :key="index"
|
|
|
|
+ v-for="(authorizedGrantType, index) in row.authorizedGrantTypes"
|
|
|
|
+ :index="index"
|
|
|
|
+ >
|
|
|
|
+ {{ authorizedGrantType }}
|
|
|
|
+ </el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ <template #scopes="{ row }">
|
|
|
|
+ <el-tag
|
|
|
|
+ :disable-transitions="true"
|
|
|
|
+ :key="index"
|
|
|
|
+ v-for="(scopes, index) in row.scopes"
|
|
|
|
+ :index="index"
|
|
|
|
+ >
|
|
|
|
+ {{ scopes }}
|
|
|
|
+ </el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ <template #autoApproveScopes="{ row }">
|
|
|
|
+ <el-tag
|
|
|
|
+ :disable-transitions="true"
|
|
|
|
+ :key="index"
|
|
|
|
+ v-for="(autoApproveScopes, index) in row.autoApproveScopes"
|
|
|
|
+ :index="index"
|
|
|
|
+ >
|
|
|
|
+ {{ autoApproveScopes }}
|
|
|
|
+ </el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ <template #redirectUris="{ row }">
|
|
|
|
+ <el-tag
|
|
|
|
+ :disable-transitions="true"
|
|
|
|
+ :key="index"
|
|
|
|
+ v-for="(redirectUris, index) in row.redirectUris"
|
|
|
|
+ :index="index"
|
|
|
|
+ >
|
|
|
|
+ {{ redirectUris }}
|
|
|
|
+ </el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </Descriptions>
|
|
<template #footer>
|
|
<template #footer>
|
|
<!-- 按钮:保存 -->
|
|
<!-- 按钮:保存 -->
|
|
<XButton
|
|
<XButton
|
|
@@ -121,17 +174,17 @@ const handleCreate = () => {
|
|
|
|
|
|
// 修改操作
|
|
// 修改操作
|
|
const handleUpdate = async (rowId: number) => {
|
|
const handleUpdate = async (rowId: number) => {
|
|
|
|
+ setDialogTile('update')
|
|
// 设置数据
|
|
// 设置数据
|
|
const res = await ClientApi.getOAuth2ClientApi(rowId)
|
|
const res = await ClientApi.getOAuth2ClientApi(rowId)
|
|
unref(formRef)?.setValues(res)
|
|
unref(formRef)?.setValues(res)
|
|
- setDialogTile('update')
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 详情操作
|
|
// 详情操作
|
|
const handleDetail = async (rowId: number) => {
|
|
const handleDetail = async (rowId: number) => {
|
|
|
|
+ setDialogTile('detail')
|
|
const res = await ClientApi.getOAuth2ClientApi(rowId)
|
|
const res = await ClientApi.getOAuth2ClientApi(rowId)
|
|
detailRef.value = res
|
|
detailRef.value = res
|
|
- setDialogTile('detail')
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 删除操作
|
|
// 删除操作
|