diff --git a/src/views/desk/notice.vue b/src/views/desk/notice.vue index 01abafb..a7cea64 100644 --- a/src/views/desk/notice.vue +++ b/src/views/desk/notice.vue @@ -108,10 +108,10 @@ ...mapGetters(["permission"]), permissionList() { return { - addBtn: this.permission.notice_add, - viewBtn: this.permission.notice_view, - delBtn: this.permission.notice_delete, - editBtn: this.permission.notice_edit + addBtn: this.vaildData(this.permission.notice_add, false), + viewBtn: this.vaildData(this.permission.notice_view, false), + delBtn: this.vaildData(this.permission.notice_delete, false), + editBtn: this.vaildData(this.permission.notice_edit, false) }; }, ids() { diff --git a/src/views/monitor/log/api.vue b/src/views/monitor/log/api.vue index 878d5a6..de7ef48 100644 --- a/src/views/monitor/log/api.vue +++ b/src/views/monitor/log/api.vue @@ -104,7 +104,7 @@ ...mapGetters(["permission"]), permissionList() { return { - viewBtn: this.permission.log_api_view + viewBtn: this.vaildData(this.permission.log_api_view, false) }; } }, diff --git a/src/views/monitor/log/error.vue b/src/views/monitor/log/error.vue index 71cc25a..4e5b96e 100644 --- a/src/views/monitor/log/error.vue +++ b/src/views/monitor/log/error.vue @@ -111,7 +111,7 @@ ...mapGetters(["permission"]), permissionList() { return { - viewBtn: this.permission.log_error_view + viewBtn: this.vaildData(this.permission.log_error_view, false) }; } }, diff --git a/src/views/monitor/log/usual.vue b/src/views/monitor/log/usual.vue index 20b8135..fd75684 100644 --- a/src/views/monitor/log/usual.vue +++ b/src/views/monitor/log/usual.vue @@ -103,7 +103,7 @@ ...mapGetters(["permission"]), permissionList() { return { - viewBtn: this.permission.log_usual_view + viewBtn: this.vaildData(this.permission.log_usual_view, false) }; } }, diff --git a/src/views/system/dept.vue b/src/views/system/dept.vue index 807d2a5..ce6bd44 100644 --- a/src/views/system/dept.vue +++ b/src/views/system/dept.vue @@ -129,10 +129,10 @@ ...mapGetters(["permission"]), permissionList() { return { - addBtn: this.permission.dept_add, - viewBtn: this.permission.dept_view, - delBtn: this.permission.dept_delete, - editBtn: this.permission.dept_edit + addBtn: this.vaildData(this.permission.dept_add, false), + viewBtn: this.vaildData(this.permission.dept_view, false), + delBtn: this.vaildData(this.permission.dept_delete, false), + editBtn: this.vaildData(this.permission.dept_edit, false) }; }, ids() { diff --git a/src/views/system/dict.vue b/src/views/system/dict.vue index 2f4ce00..96afaf7 100644 --- a/src/views/system/dict.vue +++ b/src/views/system/dict.vue @@ -127,10 +127,10 @@ ...mapGetters(["permission"]), permissionList() { return { - addBtn: this.permission.dict_add, - viewBtn: this.permission.dict_view, - delBtn: this.permission.dict_delete, - editBtn: this.permission.dict_edit + addBtn: this.vaildData(this.permission.dict_add, false), + viewBtn: this.vaildData(this.permission.dict_view, false), + delBtn: this.vaildData(this.permission.dict_delete, false), + editBtn: this.vaildData(this.permission.dict_edit, false) }; }, ids() { diff --git a/src/views/system/menu.vue b/src/views/system/menu.vue index c9409db..d60e14a 100644 --- a/src/views/system/menu.vue +++ b/src/views/system/menu.vue @@ -238,10 +238,10 @@ ...mapGetters(["permission"]), permissionList() { return { - addBtn: this.permission.menu_add, - viewBtn: this.permission.menu_view, - delBtn: this.permission.menu_delete, - editBtn: this.permission.menu_edit + addBtn: this.vaildData(this.permission.menu_add, false), + viewBtn: this.vaildData(this.permission.menu_view, false), + delBtn: this.vaildData(this.permission.menu_delete, false), + editBtn: this.vaildData(this.permission.menu_edit, false) }; }, ids() { diff --git a/src/views/system/param.vue b/src/views/system/param.vue index 9aa2a5e..aa32be2 100644 --- a/src/views/system/param.vue +++ b/src/views/system/param.vue @@ -92,10 +92,10 @@ ...mapGetters(["permission"]), permissionList() { return { - addBtn: this.permission.param_add, - viewBtn: this.permission.param_view, - delBtn: this.permission.param_delete, - editBtn: this.permission.param_edit + addBtn: this.vaildData(this.permission.param_add, false), + viewBtn: this.vaildData(this.permission.param_view, false), + delBtn: this.vaildData(this.permission.param_delete, false), + editBtn: this.vaildData(this.permission.param_edit, false) }; }, ids() { diff --git a/src/views/system/role.vue b/src/views/system/role.vue index 8291ac5..8f101e0 100644 --- a/src/views/system/role.vue +++ b/src/views/system/role.vue @@ -55,229 +55,229 @@