From ba3a438cfa9162fff6a1258a60e0a1cf94a6a745 Mon Sep 17 00:00:00 2001 From: smallchill Date: Sat, 2 Mar 2019 09:13:57 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/desk/notice.vue | 8 +- src/views/monitor/log/api.vue | 2 +- src/views/monitor/log/error.vue | 2 +- src/views/monitor/log/usual.vue | 2 +- src/views/system/dept.vue | 8 +- src/views/system/dict.vue | 8 +- src/views/system/menu.vue | 8 +- src/views/system/param.vue | 8 +- src/views/system/role.vue | 436 ++++++++++++++++---------------- src/views/system/user.vue | 9 +- src/views/tool/code.vue | 8 +- 11 files changed, 250 insertions(+), 249 deletions(-) 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 @@