From d6cdf051ae840bfe6cfa32bad35155f1a837814d Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Thu, 14 Apr 2022 14:08:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=85=AC=E5=BC=80=E6=90=9C=E7=B4=A2=E4=B8=AD?=
=?UTF-8?q?=E5=BF=83=20=E5=A4=96=E9=83=A8=E8=AE=BF=E9=97=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 3 +-
src/api/process.js | 8 +
src/main.js | 41 +-
src/pages/loginVerifyNoEncryption/index.vue | 111 +
.../pages/advancedSearchExternal.vue | 3145 +++++++++++++++++
.../searchCenter/pages/standardSearch.vue | 13 +-
src/router/index.js | 16 +
7 files changed, 3328 insertions(+), 9 deletions(-)
create mode 100644 src/pages/loginVerifyNoEncryption/index.vue
create mode 100644 src/pages/searchCenter/pages/advancedSearchExternal.vue
diff --git a/src/App.vue b/src/App.vue
index f86104cae..b6aa9b9ea 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -216,7 +216,8 @@ export default {
&& this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin'
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
- && this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage' ) {
+ && this.$route.name !== 'AdvancedSearchExternal' && this.$route.name !== 'LoginVerifyNoEncryption'
+ && this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage') {
this.isBoolean = true
} else {
this.isBoolean = false
diff --git a/src/api/process.js b/src/api/process.js
index 3f8b1187b..c1dbff26f 100644
--- a/src/api/process.js
+++ b/src/api/process.js
@@ -561,6 +561,14 @@ export function loginIdm (data) {
})
}
+export function checkPageNoEncryption (data) {
+ return axios({
+ url: '/api/checkPageNoEncryption',
+ method: 'get',
+ params: data
+ })
+}
+
// 流程委托接口
export function changeAssigneeNew (data) {
return axios({
diff --git a/src/main.js b/src/main.js
index 9c1f2aa36..38623a0d4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -68,8 +68,20 @@ router.beforeEach(function (to, from, next) {
if (toName === 'CheckPage') {
next()
}
+
+ let fromName = from.name
let token = store.state.token
let path = to.path;
+ let userName = ""
+ if((fromName === undefined || fromName === null) && path.indexOf("/standardSearch/All&userName=") !== -1){
+ userName = path.split("&")[1].split("=")[1]
+ window.sessionStorage.clear()
+ }else {
+ if(fromName === 'Home2'){
+ localStorage.removeItem("external")
+ }
+ userName = to.query.userName
+ }
let requireAuth = to.meta.requireAuth;
let taskId = to.query.taskIds;
let prcId = to.query.prcId;
@@ -109,6 +121,7 @@ router.beforeEach(function (to, from, next) {
}
function extractedLocalStorage(url,param,param4) {
+ localStorage.removeItem("external")
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', url)
localStorage.removeItem("routerParam")
@@ -175,13 +188,23 @@ router.beforeEach(function (to, from, next) {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
extractedVerify(token)
}else {
- if(path === '/standardSearch/All'){
- extractedLocalStorage('standardSearch/All','');
+ if((fromName === undefined || fromName === null) && path.indexOf("/standardSearch/All&userName") !== -1){
+ extractedLocalStorage("standardSearch/All",userName)
+ localStorage.setItem('external', "external")
+ next('/LoginVerifyNoEncryption')
}else {
- extractedLocalStorage('home2','');
+ if (toName === 'LoginVerifyNoEncryption') {
+ next()
+ }else {
+ if(path === '/standardSearch/All'){
+ extractedLocalStorage('standardSearch/All','');
+ }else {
+ extractedLocalStorage('home2','');
+ }
+ // ssoLoginUrlDev 默认sso 地址
+ window.location.href = ssoLoginUrlDev
+ }
}
- // ssoLoginUrlDev 默认sso 地址
- window.location.href = ssoLoginUrlDev
}
}
}else if(webLoginType != null && webLoginType === 'dev'){
@@ -364,7 +387,13 @@ router.beforeEach(function (to, from, next) {
next()
}
}else {
- next()
+ if((fromName === undefined || fromName === null) && path.indexOf("/standardSearch/All&userName") !== -1) {
+ extractedLocalStorage("standardSearch/All",userName)
+ localStorage.setItem('external', "external")
+ next('/LoginVerifyNoEncryption')
+ }else {
+ next()
+ }
}
}
})
diff --git a/src/pages/loginVerifyNoEncryption/index.vue b/src/pages/loginVerifyNoEncryption/index.vue
new file mode 100644
index 000000000..98db12ca3
--- /dev/null
+++ b/src/pages/loginVerifyNoEncryption/index.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
diff --git a/src/pages/searchCenter/pages/advancedSearchExternal.vue b/src/pages/searchCenter/pages/advancedSearchExternal.vue
new file mode 100644
index 000000000..e78dac512
--- /dev/null
+++ b/src/pages/searchCenter/pages/advancedSearchExternal.vue
@@ -0,0 +1,3145 @@
+
+
+ {{ $t("m.generalSearch") }}{{ $t("m.advancedSearch") }}
+
+