From a9b91e743645b8510dd585ac7772794f32638548 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 4 Nov 2023 14:37:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E7=A4=BE=E4=BA=A4?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E3=80=81=E7=94=A8=E6=88=B7=E7=9A=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/social/user/index.ts | 10 -- src/utils/dict.ts | 2 +- src/views/system/loginlog/LoginLogDetail.vue | 2 +- .../system/social/client/SocialClientForm.vue | 6 +- src/views/system/social/client/index.vue | 31 +--- .../system/social/user/SocialUserDetail.vue | 60 ++++++++ .../system/social/user/SocialUserForm.vue | 139 ------------------ src/views/system/social/user/index.vue | 74 ++++------ 8 files changed, 98 insertions(+), 226 deletions(-) create mode 100644 src/views/system/social/user/SocialUserDetail.vue delete mode 100644 src/views/system/social/user/SocialUserForm.vue diff --git a/src/api/system/social/user/index.ts b/src/api/system/social/user/index.ts index f2850a62..f11231b7 100644 --- a/src/api/system/social/user/index.ts +++ b/src/api/system/social/user/index.ts @@ -22,13 +22,3 @@ export const getSocialUserPage = async (params) => { export const getSocialUser = async (id: number) => { return await request.get({ url: `/system/social-user/get?id=` + id }) } - -// 修改社交用户 -export const updateSocialUser = async (data: SocialUserVO) => { - return await request.put({ url: `/system/social-user/update`, data }) -} - -// 删除社交用户 -export const deleteSocialUser = async (id: number) => { - return await request.delete({ url: `/system/social-user/delete?id=` + id }) -} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index b2bf39b2..6afe0aa6 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -116,7 +116,7 @@ export enum DICT_TYPE { SYSTEM_OAUTH2_GRANT_TYPE = 'system_oauth2_grant_type', SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', - SYSTEM_SOCIAL_CLIENT_TYPE = 'system_social_client_type', + SYSTEM_SOCIAL_TYPE = 'system_social_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', diff --git a/src/views/system/loginlog/LoginLogDetail.vue b/src/views/system/loginlog/LoginLogDetail.vue index 54db0259..3679fa98 100644 --- a/src/views/system/loginlog/LoginLogDetail.vue +++ b/src/views/system/loginlog/LoginLogDetail.vue @@ -34,7 +34,7 @@ defineOptions({ name: 'SystemLoginLogDetail' }) const dialogVisible = ref(false) // 弹窗的是否展示 const detailLoading = ref(false) // 表单的加载中 -const detailData = ref() // 详情数据 +const detailData = ref({}) // 详情数据 /** 打开弹窗 */ const open = async (data: LoginLogApi.LoginLogVO) => { diff --git a/src/views/system/social/client/SocialClientForm.vue b/src/views/system/social/client/SocialClientForm.vue index 5ca0e158..e6f92bd6 100644 --- a/src/views/system/social/client/SocialClientForm.vue +++ b/src/views/system/social/client/SocialClientForm.vue @@ -13,7 +13,7 @@ @@ -41,8 +41,8 @@ placeholder="请输入客户端密钥,对应各平台的appSecret" /> - - + + diff --git a/src/views/system/social/client/index.vue b/src/views/system/social/client/index.vue index de3bf705..4f3cdb84 100644 --- a/src/views/system/social/client/index.vue +++ b/src/views/system/social/client/index.vue @@ -25,7 +25,7 @@ placeholder="请选择社交平台" > - - - - - - @@ -115,7 +95,7 @@ @@ -123,8 +103,7 @@ - - +