fix: 统一前后端权限标识后缀(add/edit/query→create/update/list)
This commit is contained in:
@@ -578,7 +578,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:user:query",
|
||||
perm: "sys:user:list",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -593,7 +593,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: "",
|
||||
perm: "sys:user:add",
|
||||
perm: "sys:user:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -608,7 +608,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: "",
|
||||
perm: "sys:user:edit",
|
||||
perm: "sys:user:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -699,7 +699,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:role:add",
|
||||
perm: "sys:role:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -714,7 +714,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:role:edit",
|
||||
perm: "sys:role:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -760,7 +760,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:menu:add",
|
||||
perm: "sys:menu:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -775,7 +775,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:menu:edit",
|
||||
perm: "sys:menu:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -821,7 +821,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dept:add",
|
||||
perm: "sys:dept:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -836,7 +836,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dept:edit",
|
||||
perm: "sys:dept:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -882,7 +882,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dict:add",
|
||||
perm: "sys:dict:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -897,7 +897,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dict_type:edit",
|
||||
perm: "sys:dict_type:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -943,7 +943,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dict-item:add",
|
||||
perm: "sys:dict-item:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -958,7 +958,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:dict-item:edit",
|
||||
perm: "sys:dict-item:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -1019,7 +1019,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:config:query",
|
||||
perm: "sys:config:list",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -1034,7 +1034,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:config:add",
|
||||
perm: "sys:config:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -1110,7 +1110,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:notice:query",
|
||||
perm: "sys:notice:list",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -1125,7 +1125,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:notice:add",
|
||||
perm: "sys:notice:create",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
@@ -1140,7 +1140,7 @@ export default defineMock([
|
||||
visible: 1,
|
||||
icon: "",
|
||||
redirect: null,
|
||||
perm: "sys:notice:edit",
|
||||
perm: "sys:notice:update",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -354,17 +354,17 @@ const emit = defineEmits<{
|
||||
// 表格工具栏按钮配置
|
||||
const config = computed(() => props.contentConfig);
|
||||
const buttonConfig = reactive<Record<string, IObject>>({
|
||||
add: { text: "新增", attrs: { icon: "plus", type: "success" }, perm: "add" },
|
||||
add: { text: "新增", attrs: { icon: "plus", type: "success" }, perm: "create" },
|
||||
delete: { text: "删除", attrs: { icon: "delete", type: "danger" }, perm: "delete" },
|
||||
import: { text: "导入", attrs: { icon: "upload", type: "" }, perm: "import" },
|
||||
export: { text: "导出", attrs: { icon: "download", type: "" }, perm: "export" },
|
||||
refresh: { text: "刷新", attrs: { icon: "refresh", type: "" }, perm: "*:*:*" },
|
||||
filter: { text: "筛选列", attrs: { icon: "operation", type: "" }, perm: "*:*:*" },
|
||||
search: { text: "搜索", attrs: { icon: "search", type: "" }, perm: "search" },
|
||||
search: { text: "搜索", attrs: { icon: "search", type: "" }, perm: "list" },
|
||||
imports: { text: "批量导入", attrs: { icon: "upload", type: "" }, perm: "imports" },
|
||||
exports: { text: "批量导出", attrs: { icon: "download", type: "" }, perm: "exports" },
|
||||
view: { text: "查看", attrs: { icon: "view", type: "primary" }, perm: "view" },
|
||||
edit: { text: "编辑", attrs: { icon: "edit", type: "primary" }, perm: "edit" },
|
||||
edit: { text: "编辑", attrs: { icon: "edit", type: "primary" }, perm: "update" },
|
||||
});
|
||||
|
||||
// 主键
|
||||
|
||||
Reference in New Issue
Block a user