系统管理

This commit is contained in:
2024-05-29 13:13:46 +08:00
parent 3228987c40
commit 71a428f034
10 changed files with 766 additions and 446 deletions

View File

@@ -124,10 +124,10 @@ export default {
color: "primary",
},
{
type: "separate",
type: this.$auth.hasPermi("system:role:create") ? "separate" : "",
},
{
type: "button",
type: this.$auth.hasPermi("system:role:create") ? "button" : "",
btnName: "新增",
name: "add",
color: "success",
@@ -142,25 +142,32 @@ export default {
tableProps,
list: [],
tableBtn: [
{
type: "menuAuth",
btnName: "菜单权限",
// showTip: "新增工单",
},
{
type: "dataAuth",
btnName: "数据权限",
// showTip: "新增工单",
},
{
type: "edit",
btnName: "编辑",
},
{
type: "delete",
btnName: "删除",
},
],
this.$auth.hasPermi("system:permission:assign-role-menu")
? {
type: "menuAuth",
btnName: "菜单权限",
}
: undefined,
this.$auth.hasPermi("system:permission:assign-role-data-scope")
? {
type: "dataAuth",
btnName: "数据权限",
// showTip: "新增工单",
}
: undefined,
this.$auth.hasPermi("system:role:update")
? {
type: "edit",
btnName: "编辑",
}
: undefined,
this.$auth.hasPermi("system:role:delete")
? {
type: "delete",
btnName: "删除",
}
: undefined,
].filter((v) => v),
addOrEditTitle: "",
centervisible: false,
// 菜单权限