update 未符合项跟踪流程
This commit is contained in:
@@ -292,3 +292,11 @@ export const ProjectComplianceEvaluationProcessNode = new EsEnums({
|
|||||||
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
|
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
|
||||||
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
|
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 未符合项跟踪流程
|
||||||
|
export const NoMatchTrackingNodes = new EsEnums({
|
||||||
|
initial: { text: '法规工程师发起整改', value: 'fggcsfqzg', btn: ['save', 'submit'] },
|
||||||
|
designEngineer: { text: '设计工程师上传整改材料', value: 'sjgcssczgcl', btn: ['return', 'save', 'submit'] },
|
||||||
|
directorLevelLeader: { text: '主管级领导审批', value: 'zgjldsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
|
||||||
|
regulatoryEngineer: { text: '法规工程师审批', value: 'fggcssp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true }
|
||||||
|
})
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessCommonLayout from '../../../components/ProcessCommonLayout'
|
import ProcessCommonLayout from '../../../components/ProcessCommonLayout'
|
||||||
import { ProcessKey } from '../../../enums/commonEnums'
|
import { NoMatchTrackingNodes, ProcessKey } from '../../../enums/commonEnums'
|
||||||
import { processTransfer, queryNoMatchTrackingProcess, agreeNoMatchTrackingProcess, rejectNoMatchTrackingProcess } from '../../../api/api'
|
import { processTransfer, queryNoMatchTrackingProcess, agreeNoMatchTrackingProcess, rejectNoMatchTrackingProcess } from '../../../api/api'
|
||||||
import ZExpandTable from '../../../components/ZExpandTable'
|
import ZExpandTable from '../../../components/ZExpandTable'
|
||||||
import SelectUser from '../../../components/SelectUser'
|
import SelectUser from '../../../components/SelectUser'
|
||||||
@@ -348,11 +348,19 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// 组件内路由拦截
|
||||||
|
beforeRouteEnter (to, from, next) {
|
||||||
|
// 如果不是移动端支持的节点,就跳转NoMobile
|
||||||
|
if (!NoMatchTrackingNodes.propertyOfValue('isMobile', to.query.nodeId)) {
|
||||||
|
next({ path: '/noMobile' })
|
||||||
|
}
|
||||||
|
next()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
@import '~../../../assets/less/common.less';
|
@import '~../../../assets/less/common.less';
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user