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