Merge remote-tracking branch 'origin/dev_test' into dev_test
This commit is contained in:
+16
-9
@@ -67,13 +67,6 @@ import { Loading } from 'element-ui';
|
|||||||
|
|
||||||
// 路由拦截
|
// 路由拦截
|
||||||
router.beforeEach(function (to, from, next) {
|
router.beforeEach(function (to, from, next) {
|
||||||
// const currentURL = window.location.href
|
|
||||||
// if (currentURL.indexOf('#/') > 0) {
|
|
||||||
// const index = currentURL.indexOf('#/')
|
|
||||||
// const startUrl = currentURL.slice(0, index)
|
|
||||||
// const endUrl = currentURL.slice(index + 2)
|
|
||||||
// window.location.href = startUrl + endUrl
|
|
||||||
// }
|
|
||||||
closeLoading()
|
closeLoading()
|
||||||
if (isMobile()){
|
if (isMobile()){
|
||||||
var loading = Loading.service({
|
var loading = Loading.service({
|
||||||
@@ -93,8 +86,6 @@ router.beforeEach(function (to, from, next) {
|
|||||||
if(fromName === undefined || fromName === null){
|
if(fromName === undefined || fromName === null){
|
||||||
window.sessionStorage.clear()
|
window.sessionStorage.clear()
|
||||||
}
|
}
|
||||||
console.log(to)
|
|
||||||
console.log(from)
|
|
||||||
let toName = to.name
|
let toName = to.name
|
||||||
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error'
|
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error'
|
||||||
|| toName === 'LoginVerifyPhone') {
|
|| toName === 'LoginVerifyPhone') {
|
||||||
@@ -110,6 +101,7 @@ router.beforeEach(function (to, from, next) {
|
|||||||
let token = store.state.token
|
let token = store.state.token
|
||||||
let path = to.path;
|
let path = to.path;
|
||||||
let userName = ""
|
let userName = ""
|
||||||
|
/*
|
||||||
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName=") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined))){
|
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName=") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined))){
|
||||||
if((path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined)){
|
if((path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined)){
|
||||||
userName = to.query.userName
|
userName = to.query.userName
|
||||||
@@ -118,10 +110,13 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
window.sessionStorage.clear()
|
window.sessionStorage.clear()
|
||||||
}else {
|
}else {
|
||||||
|
*/
|
||||||
if(fromName === 'Home2'){
|
if(fromName === 'Home2'){
|
||||||
localStorage.removeItem("external")
|
localStorage.removeItem("external")
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
let requireAuth = to.meta.requireAuth;
|
let requireAuth = to.meta.requireAuth;
|
||||||
let taskId = to.query.taskIds;
|
let taskId = to.query.taskIds;
|
||||||
let prcId = to.query.prcId;
|
let prcId = to.query.prcId;
|
||||||
@@ -315,25 +310,33 @@ router.beforeEach(function (to, from, next) {
|
|||||||
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
|
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
|
||||||
extractedVerify(token)
|
extractedVerify(token)
|
||||||
}else {
|
}else {
|
||||||
|
/*
|
||||||
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))){
|
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))){
|
||||||
extractedLocalStorage("standardSearch/All",userName)
|
extractedLocalStorage("standardSearch/All",userName)
|
||||||
localStorage.setItem('external', "external")
|
localStorage.setItem('external', "external")
|
||||||
next('/LoginVerifyNoEncryption')
|
next('/LoginVerifyNoEncryption')
|
||||||
closeLoading()
|
closeLoading()
|
||||||
}else {
|
}else {
|
||||||
|
*/
|
||||||
if (toName === 'LoginVerifyNoEncryption') {
|
if (toName === 'LoginVerifyNoEncryption') {
|
||||||
next()
|
next()
|
||||||
closeLoading()
|
closeLoading()
|
||||||
}else {
|
}else {
|
||||||
|
/*
|
||||||
if(path === '/standardSearch/All'){
|
if(path === '/standardSearch/All'){
|
||||||
extractedLocalStorage('standardSearch/All','');
|
extractedLocalStorage('standardSearch/All','');
|
||||||
}else {
|
}else {
|
||||||
|
*/
|
||||||
extractedLocalStorage('home2','');
|
extractedLocalStorage('home2','');
|
||||||
|
/*
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// ssoLoginUrlDev 默认sso 地址
|
// ssoLoginUrlDev 默认sso 地址
|
||||||
window.location.href = ssoLoginUrlDev
|
window.location.href = ssoLoginUrlDev
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(webLoginType != null && webLoginType === 'dev'){
|
}else if(webLoginType != null && webLoginType === 'dev'){
|
||||||
@@ -487,15 +490,19 @@ router.beforeEach(function (to, from, next) {
|
|||||||
closeLoading()
|
closeLoading()
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
/*
|
||||||
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))) {
|
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))) {
|
||||||
extractedLocalStorage("standardSearch/All",userName)
|
extractedLocalStorage("standardSearch/All",userName)
|
||||||
localStorage.setItem('external', "external")
|
localStorage.setItem('external', "external")
|
||||||
next('/LoginVerifyNoEncryption')
|
next('/LoginVerifyNoEncryption')
|
||||||
closeLoading()
|
closeLoading()
|
||||||
}else {
|
}else {
|
||||||
|
*/
|
||||||
next()
|
next()
|
||||||
closeLoading()
|
closeLoading()
|
||||||
|
/*
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -25,12 +25,14 @@
|
|||||||
<p v-for="item in fileList"
|
<p v-for="item in fileList"
|
||||||
:key="item.id">
|
:key="item.id">
|
||||||
<a @click="openFileInPdf(item.id, item.name)" target="_blank" style="color: #409eff">{{ item.name }}</a>
|
<a @click="openFileInPdf(item.id, item.name)" target="_blank" style="color: #409eff">{{ item.name }}</a>
|
||||||
|
<!--
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(item.id)"
|
@click="downloadFile(item.id)"
|
||||||
class="icon-download"
|
class="icon-download"
|
||||||
v-btn-permission="''"
|
v-btn-permission="''"
|
||||||
/>
|
/>
|
||||||
|
-->
|
||||||
<!-- <i-->
|
<!-- <i-->
|
||||||
<!-- title="下载带水印"-->
|
<!-- title="下载带水印"-->
|
||||||
<!-- @click="downloadFileByWater(item.id,item.name)"-->
|
<!-- @click="downloadFileByWater(item.id,item.name)"-->
|
||||||
|
|||||||
@@ -1097,7 +1097,7 @@ export default {
|
|||||||
},
|
},
|
||||||
listSubmit (item) {
|
listSubmit (item) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let newForm = Object.assign(this.roleForm, item,this.qblx_pageData);
|
let newForm = Object.assign(this.roleForm, this.qblx_pageData,item);
|
||||||
newForm.startUserName = this.$store.getters.userInfo.userName
|
newForm.startUserName = this.$store.getters.userInfo.userName
|
||||||
newForm.startUser = this.$store.getters.userInfo.userId
|
newForm.startUser = this.$store.getters.userInfo.userId
|
||||||
newForm.dockUser = item.drafter
|
newForm.dockUser = item.drafter
|
||||||
|
|||||||
Reference in New Issue
Block a user