[update] 新建流程页增加按钮权限
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
<div v-for="data in dataList" :key="data.uid">
|
||||
<div class="title-wrapper"><span class="title-span">{{ data.text }}</span></div>
|
||||
<div class="list-wrapper">
|
||||
<div v-for="item in data.list" :key="item.title" class="list-cont" @click="processClick(item)">{{ item.title }}</div>
|
||||
<template v-for="item in data.list">
|
||||
<div :key="item.title" v-if="isHasPermission(item.permission)" class="list-cont" @click="processClick(item)">{{ item.title }}</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { isHasPermission } from '@/utils/hasPermission'
|
||||
export default {
|
||||
name: 'NewProcess',
|
||||
data () {
|
||||
@@ -21,27 +24,33 @@ export default {
|
||||
list: [
|
||||
{ // 标准法规入库/更正流程
|
||||
title: this.$t('workCenter.newProcess.standardRegulationEntryCorrectionProcess'),
|
||||
path: '/workCenter/StandardEntryOrChangeProcess'
|
||||
path: '/workCenter/StandardEntryOrChangeProcess',
|
||||
permission: 'workCenter:newProcess:standardRegulationEntryCorrectionProcess'
|
||||
},
|
||||
{ // 标准征求意见流程
|
||||
title: this.$t('workCenter.newProcess.annotateTheConsultationProcess'),
|
||||
path: '/workCenter/StandardConsultationProcess'
|
||||
path: '/workCenter/StandardConsultationProcess',
|
||||
permission: 'workCenter:newProcess:annotateTheConsultationProcess'
|
||||
},
|
||||
{ // 项目合规评估流程
|
||||
title: this.$t('workCenter.newProcess.projectComplianceAssessmentProcess'),
|
||||
path: '/workCenter/ProjectComplianceEvaluationProcess'
|
||||
path: '/workCenter/ProjectComplianceEvaluationProcess',
|
||||
permission: 'workCenter:newProcess:projectComplianceAssessmentProcess'
|
||||
},
|
||||
{ // 未符合项跟踪流程
|
||||
title: this.$t('workCenter.newProcess.noMatchTrackingProcess'),
|
||||
path: '/workCenter/NoMatchTrackingProcess'
|
||||
path: '/workCenter/NoMatchTrackingProcess',
|
||||
permission: 'workCenter:newProcess:noMatchTrackingProcess'
|
||||
},
|
||||
{ // 法规合规评估流程
|
||||
title: this.$t('workCenter.newProcess.regulatoryComplianceAssessmentProcess'),
|
||||
path: '/workCenter/StandardComplianceProcess'
|
||||
path: '/workCenter/StandardComplianceProcess',
|
||||
permission: 'workCenter:newProcess:regulatoryComplianceAssessmentProcess'
|
||||
},
|
||||
{ // 法规采购流程
|
||||
title: this.$t('workCenter.newProcess.regulatoryProcurementProcess'),
|
||||
path: '/workCenter/StandardProcurementProcess'
|
||||
path: '/workCenter/StandardProcurementProcess',
|
||||
permission: 'workCenter:newProcess:regulatoryProcurementProcess'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -51,63 +60,78 @@ export default {
|
||||
list: [
|
||||
{ // 企标立项/变更计划
|
||||
title: this.$t('workCenter.newProcess.enterpriseProjectChangePlan'),
|
||||
path: '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow'
|
||||
path: '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow',
|
||||
permission: 'workCenter:newProcess:enterpriseProjectChangePlan'
|
||||
},
|
||||
{ // 年度制修订计划审批流程(各部门主动上报)
|
||||
title: this.$t('workCenter.newProcess.annualRevisionPlanActivelyReport'),
|
||||
path: '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow'
|
||||
path: '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow',
|
||||
permission: 'workCenter:newProcess:annualRevisionPlanActivelyReport'
|
||||
},
|
||||
{ // 年度制修订计划审批流程(标准化发起)
|
||||
title: this.$t('workCenter.newProcess.annualRevisionPlanStandardizationInit'),
|
||||
path: '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow'
|
||||
path: '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow',
|
||||
permission: 'workCenter:newProcess:annualRevisionPlanStandardizationInit'
|
||||
},
|
||||
{ // 企标制修订流程
|
||||
title: this.$t('workCenter.newProcess.enterpriseStandardSystemRevisionProcess'),
|
||||
path: '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow'
|
||||
path: '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow',
|
||||
permission: 'workCenter:newProcess:enterpriseStandardSystemRevisionProcess'
|
||||
},
|
||||
{ // 企标更改流程
|
||||
title: this.$t('workCenter.newProcess.bidChangeProcess'),
|
||||
path: '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow'
|
||||
path: '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow',
|
||||
permission: 'workCenter:newProcess:bidChangeProcess'
|
||||
},
|
||||
{ // 企标复审流程
|
||||
title: this.$t('workCenter.newProcess.processOfEnterpriseBidReview'),
|
||||
path: '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow'
|
||||
path: '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow',
|
||||
permission: 'workCenter:newProcess:processOfEnterpriseBidReview'
|
||||
},
|
||||
{ // 企标废止流程
|
||||
title: this.$t('workCenter.newProcess.processOfEnterpriseBidAnnulment'),
|
||||
path: '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow'
|
||||
path: '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow',
|
||||
permission: 'workCenter:newProcess:processOfEnterpriseBidAnnulment'
|
||||
},
|
||||
{ // 企标封存流程
|
||||
title: this.$t('workCenter.newProcess.processOfSealingEnterpriseStandard'),
|
||||
path: '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow'
|
||||
path: '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow',
|
||||
permission: 'workCenter:newProcess:processOfSealingEnterpriseStandard'
|
||||
},
|
||||
{ // 已封存企标启用流程
|
||||
title: this.$t('workCenter.newProcess.theSealedEnterpriseBidHasBeenActivatedProcess'),
|
||||
path: '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow'
|
||||
path: '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow',
|
||||
permission: 'workCenter:newProcess:theSealedEnterpriseBidHasBeenActivatedProcess'
|
||||
},
|
||||
{ // 企标稽查计划
|
||||
title: this.$t('workCenter.newProcess.enterpriseStandardAuditPlan'),
|
||||
path: '/workCenter/EnterpriseStandardInspectionPlan'
|
||||
path: '/workCenter/EnterpriseStandardInspectionPlan',
|
||||
permission: 'workCenter:newProcess:enterpriseStandardAuditPlan'
|
||||
},
|
||||
{ // 企标稽查流程
|
||||
title: this.$t('workCenter.newProcess.processOfEnterpriseStandardAudit'),
|
||||
path: '/workCenter/EnterpriseStandardInspectionProcess'
|
||||
path: '/workCenter/EnterpriseStandardInspectionProcess',
|
||||
permission: 'workCenter:newProcess:processOfEnterpriseStandardAudit'
|
||||
},
|
||||
{ // 稽查延期申请流程
|
||||
title: this.$t('workCenter.newProcess.auditExtensionApplicationProcess'),
|
||||
path: '/workCenter/InspectionExtensionRequestProcess'
|
||||
path: '/workCenter/InspectionExtensionRequestProcess',
|
||||
permission: 'workCenter:newProcess:auditExtensionApplicationProcess'
|
||||
},
|
||||
{ // 企标稽查整改
|
||||
title: this.$t('workCenter.newProcess.enterpriseStandardInspectionAndRectification'),
|
||||
path: '/workCenter/EnterpriseStandardInspectionRectification'
|
||||
path: '/workCenter/EnterpriseStandardInspectionRectification',
|
||||
permission: 'workCenter:newProcess:enterpriseStandardInspectionAndRectification'
|
||||
},
|
||||
{ // 权限申请流程
|
||||
title: this.$t('workCenter.newProcess.permissionApplicationProcess'),
|
||||
path: '/workCenter/PermissionApplicationProcess'
|
||||
path: '/workCenter/PermissionApplicationProcess',
|
||||
permission: 'workCenter:newProcess:permissionApplicationProcess'
|
||||
},
|
||||
{ // 标准宣贯流程
|
||||
title: this.$t('workCenter.newProcess.standardPromotionProcess'),
|
||||
path: '/workCenter/StandardPromotionProcess'
|
||||
path: '/workCenter/StandardPromotionProcess',
|
||||
permission: 'workCenter:newProcess:standardPromotionProcess'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -117,7 +141,8 @@ export default {
|
||||
list: [
|
||||
{ // 会后管理流程
|
||||
title: this.$t('workCenter.newProcess.postMeetingManagementProcess'),
|
||||
path: '/workCenter/PostMeetingManageProcess'
|
||||
path: '/workCenter/PostMeetingManageProcess',
|
||||
permission: 'workCenter:newProcess:postMeetingManagementProcess'
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -125,6 +150,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isHasPermission,
|
||||
// 流程点击
|
||||
processClick (item) {
|
||||
this.$router.push({
|
||||
|
||||
Reference in New Issue
Block a user