[update] 新建流程页增加按钮权限

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