From d2bd4d8738811f03542147e5137caed93312f25d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Dec 2025 10:19:42 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90system=E3=80=91oauth2.0?= =?UTF-8?q?=EF=BC=9A100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oauth2/client/detail/index.vue | 10 ++++---- src/pages-system/oauth2/client/form/index.vue | 4 ++-- .../oauth2/components/client-list.vue | 16 +++++-------- .../oauth2/components/client-search-form.vue | 2 +- .../oauth2/components/token-list.vue | 24 ++++++++----------- .../oauth2/components/token-search-form.vue | 4 ++-- src/pages-system/oauth2/index.vue | 6 ++--- 7 files changed, 29 insertions(+), 37 deletions(-) diff --git a/src/pages-system/oauth2/client/detail/index.vue b/src/pages-system/oauth2/client/detail/index.vue index d382b2b..76693bf 100644 --- a/src/pages-system/oauth2/client/detail/index.vue +++ b/src/pages-system/oauth2/client/detail/index.vue @@ -2,7 +2,7 @@ @@ -77,7 +77,7 @@ function handleBack() { navigateBackPlus('/pages-system/oauth2/index') } -/** 加载 OAuth2 客户端详情 */ +/** 加载应用详情 */ async function getDetail() { if (!props.id) { return @@ -90,21 +90,21 @@ async function getDetail() { } } -/** 编辑 OAuth2 客户端 */ +/** 编辑应用 */ function handleEdit() { uni.navigateTo({ url: `/pages-system/oauth2/client/form/index?id=${props.id}`, }) } -/** 删除 OAuth2 客户端 */ +/** 删除应用 */ function handleDelete() { if (!props.id) { return } uni.showModal({ title: '提示', - content: '确定要删除该 OAuth2 客户端吗?', + content: '确定要删除该应用吗?', success: async (res) => { if (!res.confirm) { return diff --git a/src/pages-system/oauth2/client/form/index.vue b/src/pages-system/oauth2/client/form/index.vue index de1aeb9..b640bfb 100644 --- a/src/pages-system/oauth2/client/form/index.vue +++ b/src/pages-system/oauth2/client/form/index.vue @@ -111,7 +111,7 @@ definePage({ }) const toast = useToast() -const getTitle = computed(() => props.id ? '编辑 OAuth2 客户端' : '新增 OAuth2 客户端') +const getTitle = computed(() => props.id ? '编辑应用' : '新增应用') const formLoading = ref(false) const formData = ref({ id: undefined, @@ -145,7 +145,7 @@ function handleBack() { navigateBackPlus('/pages-system/oauth2/index') } -/** 加载 OAuth2 客户端详情 */ +/** 加载应用详情 */ async function getDetail() { if (!props.id) { return diff --git a/src/pages-system/oauth2/components/client-list.vue b/src/pages-system/oauth2/components/client-list.vue index 73b2cd6..9a10664 100644 --- a/src/pages-system/oauth2/components/client-list.vue +++ b/src/pages-system/oauth2/components/client-list.vue @@ -3,7 +3,7 @@ - + - + {{ item.name }} - + 客户端编号: {{ item.clientId || '-' }} - - 客户端密钥: - {{ item.secret || '-' }} - 访问令牌有效期: {{ item.accessTokenValiditySeconds }} 秒 @@ -43,7 +39,7 @@ - + { if (formData.status !== -1) { conditions.push(`状态:${getDictLabel(DICT_TYPE.COMMON_STATUS, formData.status)}`) } - return conditions.length > 0 ? conditions.join(' | ') : '搜索 OAuth2 客户端' + return conditions.length > 0 ? conditions.join(' | ') : '搜索应用' }) /** 搜索 */ diff --git a/src/pages-system/oauth2/components/token-list.vue b/src/pages-system/oauth2/components/token-list.vue index 57387f2..4c2a37f 100644 --- a/src/pages-system/oauth2/components/token-list.vue +++ b/src/pages-system/oauth2/components/token-list.vue @@ -3,7 +3,7 @@ - + - 删除 + 强退 @@ -51,7 +51,7 @@ - + { conditions.push(`类型:${getDictLabel(DICT_TYPE.USER_TYPE, formData.userType)}`) } if (formData.clientId) { - conditions.push(`客户端:${formData.clientId}`) + conditions.push(`应用:${formData.clientId}`) } - return conditions.length > 0 ? conditions.join(' | ') : '搜索 OAuth2 令牌' + return conditions.length > 0 ? conditions.join(' | ') : '搜索令牌' }) /** 搜索 */ diff --git a/src/pages-system/oauth2/index.vue b/src/pages-system/oauth2/index.vue index eb98afd..a12bba2 100644 --- a/src/pages-system/oauth2/index.vue +++ b/src/pages-system/oauth2/index.vue @@ -2,7 +2,7 @@ @@ -10,8 +10,8 @@ - - + +