【update】工作中心-流程中心-流程监控 增加菜单

This commit is contained in:
fengchenchen
2024-03-27 13:58:27 +08:00
parent a7e094f137
commit b705a8e053
@@ -2,7 +2,7 @@
<a-card :bordered="false"> <a-card :bordered="false">
<a-tabs default-active-key="1" v-model="activeTab"> <a-tabs default-active-key="1" v-model="activeTab">
<template v-for="tab in tabList"> <template v-for="tab in tabList">
<a-tab-pane :key="tab.component"> <a-tab-pane :key="tab.component" v-if="!tab.permission || isHasPermission(tab.permission)">
<template v-slot:tab> <template v-slot:tab>
<div> <div>
{{ tab.label }} {{ tab.label }}
@@ -25,6 +25,8 @@
<script> <script>
import { isHasPermission } from '@/utils/hasPermission'
export default { export default {
name: 'ProcessCenter', name: 'ProcessCenter',
data () { data () {
@@ -46,7 +48,8 @@ export default {
}, },
{ // 监控流程 { // 监控流程
component: 'MonitorList', component: 'MonitorList',
label: this.$t('workCenter.processCenter.monitorProcess') label: this.$t('workCenter.processCenter.monitorProcess'),
permission: 'workCenter.processCenter.monitorProcess'
}, },
{ // 草稿 { // 草稿
component: 'DraftList', component: 'DraftList',
@@ -83,6 +86,9 @@ export default {
} }
} }
}, },
methods: {
isHasPermission
},
created () { created () {
// 获取第一个tab // 获取第一个tab
this.activeTab = 'TodoList' this.activeTab = 'TodoList'