优化按钮权限功能

This commit is contained in:
smallchill 2019-03-02 09:13:57 +08:00
parent bc3632cc58
commit ba3a438cfa
11 changed files with 250 additions and 249 deletions

View File

@ -108,10 +108,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.notice_add, addBtn: this.vaildData(this.permission.notice_add, false),
viewBtn: this.permission.notice_view, viewBtn: this.vaildData(this.permission.notice_view, false),
delBtn: this.permission.notice_delete, delBtn: this.vaildData(this.permission.notice_delete, false),
editBtn: this.permission.notice_edit editBtn: this.vaildData(this.permission.notice_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -104,7 +104,7 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
viewBtn: this.permission.log_api_view viewBtn: this.vaildData(this.permission.log_api_view, false)
}; };
} }
}, },

View File

@ -111,7 +111,7 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
viewBtn: this.permission.log_error_view viewBtn: this.vaildData(this.permission.log_error_view, false)
}; };
} }
}, },

View File

@ -103,7 +103,7 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
viewBtn: this.permission.log_usual_view viewBtn: this.vaildData(this.permission.log_usual_view, false)
}; };
} }
}, },

View File

@ -129,10 +129,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.dept_add, addBtn: this.vaildData(this.permission.dept_add, false),
viewBtn: this.permission.dept_view, viewBtn: this.vaildData(this.permission.dept_view, false),
delBtn: this.permission.dept_delete, delBtn: this.vaildData(this.permission.dept_delete, false),
editBtn: this.permission.dept_edit editBtn: this.vaildData(this.permission.dept_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -127,10 +127,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.dict_add, addBtn: this.vaildData(this.permission.dict_add, false),
viewBtn: this.permission.dict_view, viewBtn: this.vaildData(this.permission.dict_view, false),
delBtn: this.permission.dict_delete, delBtn: this.vaildData(this.permission.dict_delete, false),
editBtn: this.permission.dict_edit editBtn: this.vaildData(this.permission.dict_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -238,10 +238,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.menu_add, addBtn: this.vaildData(this.permission.menu_add, false),
viewBtn: this.permission.menu_view, viewBtn: this.vaildData(this.permission.menu_view, false),
delBtn: this.permission.menu_delete, delBtn: this.vaildData(this.permission.menu_delete, false),
editBtn: this.permission.menu_edit editBtn: this.vaildData(this.permission.menu_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -92,10 +92,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.param_add, addBtn: this.vaildData(this.permission.param_add, false),
viewBtn: this.permission.param_view, viewBtn: this.vaildData(this.permission.param_view, false),
delBtn: this.permission.param_delete, delBtn: this.vaildData(this.permission.param_delete, false),
editBtn: this.permission.param_edit editBtn: this.vaildData(this.permission.param_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -154,10 +154,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.role_add, addBtn: this.vaildData(this.permission.role_add, false),
viewBtn: this.permission.role_view, viewBtn: this.vaildData(this.permission.role_view, false),
delBtn: this.permission.role_delete, delBtn: this.vaildData(this.permission.role_delete, false),
editBtn: this.permission.role_edit editBtn: this.vaildData(this.permission.role_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -86,6 +86,7 @@
index: true, index: true,
selection: true, selection: true,
viewBtn: true, viewBtn: true,
dialogHeight: 450,
column: [ column: [
{ {
label: "登录账号", label: "登录账号",
@ -216,10 +217,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.user_add, addBtn: this.vaildData(this.permission.user_add, false),
viewBtn: this.permission.user_view, viewBtn: this.vaildData(this.permission.user_view, false),
delBtn: this.permission.user_delete, delBtn: this.vaildData(this.permission.user_delete, false),
editBtn: this.permission.user_edit editBtn: this.vaildData(this.permission.user_edit, false)
}; };
}, },
ids() { ids() {

View File

@ -150,10 +150,10 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: this.permission.code_add, addBtn: this.vaildData(this.permission.code_add, false),
viewBtn: this.permission.code_view, viewBtn: this.vaildData(this.permission.code_view, false),
delBtn: this.permission.code_delete, delBtn: this.vaildData(this.permission.code_delete, false),
editBtn: this.permission.code_edit editBtn: this.vaildData(this.permission.code_edit, false)
}; };
}, },
ids() { ids() {