diff --git a/PC/InterFace.Dash/src/components/currenButton/index.vue b/PC/InterFace.Dash/src/components/currenButton/index.vue
index 40e53c9..7ef7dd2 100644
--- a/PC/InterFace.Dash/src/components/currenButton/index.vue
+++ b/PC/InterFace.Dash/src/components/currenButton/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -14,7 +14,7 @@
@searchNormalClear="quicklySearchClear"
>
-
+
@@ -30,6 +30,11 @@ export default {
searchNormal
},
props: {
+ // 是否按路由配置按钮权限
+ isRoutePermission:{
+ type: Boolean,
+ default: false,
+ },
Butttondata: {
type: Array,
default: () => {
diff --git a/PC/InterFace.Dash/src/components/currenButton/innerButton.vue b/PC/InterFace.Dash/src/components/currenButton/innerButton.vue
index 9dab791..38f5bb8 100644
--- a/PC/InterFace.Dash/src/components/currenButton/innerButton.vue
+++ b/PC/InterFace.Dash/src/components/currenButton/innerButton.vue
@@ -16,6 +16,7 @@
}"
:class="item.class"
@click="tableButtonClick(item.name,item)"
+ v-permission="isRoutePermission ? [$route.name+'.'+item.name] : item.permission"
>{{ item.label }}
@@ -30,8 +31,14 @@ export default {
return []
}
},
+ // 是否按路由配置按钮权限
+ isRoutePermission:{
+ type: Boolean,
+ default: false,
+ },
},
mounted(){
+ console.log(36,this.$route,this.$store.getters)
window.addEventListener('setItemEvent', (item) => {
if (item.key.indexOf('tableColumns') > -1) {
this.initButtonType(item)
diff --git a/PC/InterFace.Dash/src/components/tablePagination/index.vue b/PC/InterFace.Dash/src/components/tablePagination/index.vue
index da65c71..3fb8e82 100644
--- a/PC/InterFace.Dash/src/components/tablePagination/index.vue
+++ b/PC/InterFace.Dash/src/components/tablePagination/index.vue
@@ -3,6 +3,7 @@