From b1baeaabcd9449515a0884ce74b210ff2fd24dc4 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Tue, 7 May 2024 15:46:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=90=E9=83=BD=E5=B7=A5=E4=B8=9A=E5=AD=A6?=
=?UTF-8?q?=E9=99=A2=E7=AC=AC=E4=B8=89=E6=96=B9=E7=99=BB=E5=BD=95=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/management/user.js | 8 +++
src/permission.js | 2 +-
src/router/index.js | 6 ++
src/views/thirdLogin/cgyLogin.vue | 102 ++++++++++++++++++++++++++++++
4 files changed, 117 insertions(+), 1 deletion(-)
create mode 100644 src/views/thirdLogin/cgyLogin.vue
diff --git a/src/api/management/user.js b/src/api/management/user.js
index ce58557c0..f3d338776 100644
--- a/src/api/management/user.js
+++ b/src/api/management/user.js
@@ -323,3 +323,11 @@ export function isExistEmail(params) {
});
}
+// 成工院第三方登录
+export function cgyThirdLogin(data) {
+ return request({
+ url: '/api/login/cgy/third',
+ method: 'post',
+ data
+ });
+}
diff --git a/src/permission.js b/src/permission.js
index ab779ede4..503736fb5 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@ import { getFrontProjectConfigByLogin} from '@/api/projectConfig';
import localStore from 'storejs';
import { handlerUrl } from '@/utils/baseUrl';
-const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/authorization', '/AUSline', '/AUStool', '/demo', '/thirdLogin']; // 不重定向白名单
+const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/authorization', '/AUSline', '/AUStool', '/demo', '/thirdLogin', '/cgyLogin']; // 不重定向白名单
// 登录路径判断获取
function getRouteInfo(to) {
diff --git a/src/router/index.js b/src/router/index.js
index f24a40d53..71c357bef 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -220,6 +220,7 @@ const UserRulesManage = () => import('@/views/userRulesManage/index');
const AuthorityTransfer = () => import('@/views/authorityTransfer/index');
const CreateDistribute = () => import('@/views/authorityTransfer/create/index');
const ThirdJumpSim = () => import('@/views/newMap/display/thirdJump');
+const CgyLogin = () => import('@/views/thirdLogin/cgyLogin');
const TmsPage = () => import('@/views/jlmap3d/drive/sceneview/tmsPage');
const ContestSubjectManage = () => import('@/views/contestDataManage/contestSubjectManage/ContestSubjectManage');
@@ -430,6 +431,11 @@ export const constantRoutes = [
component: ThirdJumpSim,
hidden: true
},
+ {
+ path: '/cgyLogin',
+ component: CgyLogin,
+ hidden: true
+ },
{
path: '/404',
component: Errpr404,
diff --git a/src/views/thirdLogin/cgyLogin.vue b/src/views/thirdLogin/cgyLogin.vue
new file mode 100644
index 000000000..4a2f940a9
--- /dev/null
+++ b/src/views/thirdLogin/cgyLogin.vue
@@ -0,0 +1,102 @@
+
+
+
+
+