feat: There is no way the,iphone config
This commit is contained in:
+1
-1
@@ -215,7 +215,7 @@ export default {
|
|||||||
&& this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin'
|
&& this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin'
|
||||||
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
|
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
|
||||||
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
|
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
|
||||||
&& this.$route.name !== 'blankPage') {
|
&& this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage' ) {
|
||||||
this.isBoolean = true
|
this.isBoolean = true
|
||||||
} else {
|
} else {
|
||||||
this.isBoolean = false
|
this.isBoolean = false
|
||||||
|
|||||||
+69
-43
@@ -107,6 +107,9 @@ router.beforeEach(function (to, from, next) {
|
|||||||
// 返回值为登录状态
|
// 返回值为登录状态
|
||||||
/** 判断是不是在手机端操作 */
|
/** 判断是不是在手机端操作 */
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
|
if(toName === 'processCenter'){
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
if ((token === null || token === '' ) && toName !== 'Login') {
|
if ((token === null || token === '' ) && toName !== 'Login') {
|
||||||
if(toName !== 'phoneIndex'){
|
if(toName !== 'phoneIndex'){
|
||||||
sessionStorage.removeItem("param");
|
sessionStorage.removeItem("param");
|
||||||
@@ -117,13 +120,18 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (toName.slice(0,5) !== 'phone') {
|
if (toName.slice(0,5) !== 'phone') {
|
||||||
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
|
if(toName === 'LoginVerify'){
|
||||||
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
|
next('/blankPage')
|
||||||
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
|
}else {
|
||||||
next({path: phoneRouter + '?' + paramPhone})
|
if(toName === 'blankPage' || toName === 'processedPage') {
|
||||||
|
next()
|
||||||
|
}else {
|
||||||
|
extractedVerify()
|
||||||
|
}
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
if(toName !== 'blankPage'){
|
if(toName !== 'blankPage'){
|
||||||
if(to.matched.length == 0){
|
if(to.matched.length === 0){
|
||||||
next('/blankPage')
|
next('/blankPage')
|
||||||
}else {
|
}else {
|
||||||
next()
|
next()
|
||||||
@@ -174,48 +182,54 @@ router.beforeEach(function (to, from, next) {
|
|||||||
let commitStatus = res.commitStatus === undefined ? 0 : res.commitStatus;
|
let commitStatus = res.commitStatus === undefined ? 0 : res.commitStatus;
|
||||||
let isNotFinished = res.isNotFinished === undefined ? 0 : res.isNotFinished;
|
let isNotFinished = res.isNotFinished === undefined ? 0 : res.isNotFinished;
|
||||||
|
|
||||||
if (hisCount && hisCount > 0) { // 业务系统 当前节点已完成
|
if ((hisCount && hisCount > 0)) { // 业务系统 当前节点已完成
|
||||||
// 根据type判断跳转具体流程页面
|
if(isMobile()){
|
||||||
if (prcType === '1') {
|
next('/processedPage')
|
||||||
// 标准入库流程数据
|
}else {
|
||||||
extracted("bzrkStep5");
|
// 根据type判断跳转具体流程页面
|
||||||
} else if (prcType === '4') {
|
if (prcType === '1') {
|
||||||
//标准清单发布流程数据
|
// 标准入库流程数据
|
||||||
extracted("bzqdfbStep1-4");
|
extracted("bzrkStep5");
|
||||||
} else if (prcType === '5') {
|
} else if (prcType === '4') {
|
||||||
//标准项目合规评估 标准维度
|
//标准清单发布流程数据
|
||||||
if (path === "/xmpgStep2" || path === "/xmpgStep1" || path === "/xmpgStep1-2") {
|
extracted("bzqdfbStep1-4");
|
||||||
extracted("xmpgStep1-2");
|
} else if (prcType === '5') {
|
||||||
} else {
|
//标准项目合规评估 标准维度
|
||||||
extracted("xmpgStep1-7");
|
if (path === "/xmpgStep2" || path === "/xmpgStep1" || path === "/xmpgStep1-2") {
|
||||||
|
extracted("xmpgStep1-2");
|
||||||
|
} else {
|
||||||
|
extracted("xmpgStep1-7");
|
||||||
|
}
|
||||||
|
} else if (prcType === '6') {
|
||||||
|
//标准项目合规评估 项目维度
|
||||||
|
if (path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2") {
|
||||||
|
extracted("xmpg2Step1-2");
|
||||||
|
} else {
|
||||||
|
extracted("xmpg2Step1-12");
|
||||||
|
}
|
||||||
|
} else if (prcType === '8') {
|
||||||
|
// 未符合项整改
|
||||||
|
extracted("wfhxzgStep5-1");
|
||||||
|
} else if (prcType === '9') {
|
||||||
|
extracted("bzjdStep1-6");
|
||||||
|
//标准调研流程
|
||||||
|
} else if (prcType === '2') {
|
||||||
|
extracted("bzdyStep1-9");
|
||||||
|
} else if (prcType === '3') {
|
||||||
|
//标准征求意见
|
||||||
|
extracted("bzzqyjStep1-9");
|
||||||
|
} else if (prcType === '10') {
|
||||||
|
//项目清单确认
|
||||||
|
extracted("xmqdqrStep1-3");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (prcType === '6') {
|
|
||||||
//标准项目合规评估 项目维度
|
|
||||||
if (path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2") {
|
|
||||||
extracted("xmpg2Step1-2");
|
|
||||||
} else {
|
|
||||||
extracted("xmpg2Step1-12");
|
|
||||||
}
|
|
||||||
} else if (prcType === '8') {
|
|
||||||
// 未符合项整改
|
|
||||||
extracted("wfhxzgStep5-1");
|
|
||||||
} else if (prcType === '9') {
|
|
||||||
extracted("bzjdStep1-6");
|
|
||||||
//标准调研流程
|
|
||||||
} else if (prcType === '2') {
|
|
||||||
extracted("bzdyStep1-9");
|
|
||||||
} else if (prcType === '3') {
|
|
||||||
//标准征求意见
|
|
||||||
extracted("bzzqyjStep1-9");
|
|
||||||
} else if (prcType === '10') {
|
|
||||||
//项目清单确认
|
|
||||||
extracted("xmqdqrStep1-3");
|
|
||||||
}
|
|
||||||
} else { // 业务系统 当前节点未完成
|
} else { // 业务系统 当前节点未完成
|
||||||
// commitStatus 大于0 表示当前节点存在未完成干活流程
|
// commitStatus 大于0 表示当前节点存在未完成干活流程
|
||||||
// isNotFinished OA 系统显示接受任务 已置为已办
|
// isNotFinished OA 系统显示接受任务 已置为已办
|
||||||
if (routerType && routerType === 'oa' &&isNotFinished && isNotFinished > 0 && commitStatus && commitStatus > 0) {
|
if (routerType && routerType === 'oa' &&isNotFinished && isNotFinished > 0 && commitStatus && commitStatus > 0) {
|
||||||
if (prcType === '3') {
|
if(isMobile()) {
|
||||||
|
extractedIphone()
|
||||||
|
}else if (prcType === '3') {
|
||||||
//标准征求意见 接受节点 未完成 oa已办 跳转详情页面
|
//标准征求意见 接受节点 未完成 oa已办 跳转详情页面
|
||||||
if (path === '/bzzqyjStep3') {
|
if (path === '/bzzqyjStep3') {
|
||||||
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
|
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
|
||||||
@@ -246,7 +260,12 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
extracted3()
|
if(isMobile()) {
|
||||||
|
extractedIphone()
|
||||||
|
}else{
|
||||||
|
extracted3()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function extracted(routerPath) {
|
function extracted(routerPath) {
|
||||||
@@ -268,6 +287,13 @@ router.beforeEach(function (to, from, next) {
|
|||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function extractedIphone() {
|
||||||
|
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
|
||||||
|
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
|
||||||
|
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
|
||||||
|
next({path: phoneRouter + '?' + paramPhone})
|
||||||
|
}
|
||||||
function extracted2(routerPath,param2) {
|
function extracted2(routerPath,param2) {
|
||||||
if (token === null || token === '') {
|
if (token === null || token === '') {
|
||||||
extractedLocalStorage(routerPath,param2);
|
extractedLocalStorage(routerPath,param2);
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div class="processedPage">
|
||||||
|
<van-icon name="checked" color="#1fcd24" size="70"/>
|
||||||
|
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务已处理</div>
|
||||||
|
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="$router.go(-1)">返回</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vue from 'vue';
|
||||||
|
import { Icon } from 'vant';
|
||||||
|
|
||||||
|
Vue.use(Icon);
|
||||||
|
export default {
|
||||||
|
name: "processedPage",
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
methods: {}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
.processedPage {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 55%;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -23,6 +23,15 @@ const routes = [
|
|||||||
title: '手机提示页面',
|
title: '手机提示页面',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/processedPage',
|
||||||
|
name: 'processedPage',
|
||||||
|
component: resolve => require(['@/pages/processedPage/index.vue'], resolve),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '手机提示页面',
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '*',
|
path: '*',
|
||||||
redirect: '/loginVerify'
|
redirect: '/loginVerify'
|
||||||
|
|||||||
Reference in New Issue
Block a user