refactor: ♻️ 字典调整按需加载,api、store和枚举文件命名优化

This commit is contained in:
Ray.Hao
2025-03-24 08:17:31 +08:00
parent 6204deb7cb
commit 3c9cf67961
84 changed files with 989 additions and 1108 deletions

View File

@@ -99,11 +99,11 @@ export default defineMock([
},
},
{
path: "dict-data",
component: "system/dict/data",
name: "DictData",
path: "dict-item",
component: "system/dict/dict-item",
name: "DictItem",
meta: {
title: "字典数据",
title: "字典",
icon: "",
hidden: true,
keepAlive: true,
@@ -880,11 +880,11 @@ export default defineMock([
{
id: 135,
parentId: 1,
name: "字典数据",
name: "字典",
type: "MENU",
routeName: "DictData",
routePath: "dict-data",
component: "system/dict/data",
routePath: "dict-item",
component: "system/dict/dict-item",
sort: 6,
visible: 0,
icon: "",
@@ -894,7 +894,7 @@ export default defineMock([
{
id: 136,
parentId: 135,
name: "字典数据新增",
name: "字典新增",
type: "BUTTON",
routeName: null,
routePath: "",
@@ -903,13 +903,13 @@ export default defineMock([
visible: 1,
icon: "",
redirect: null,
perm: "sys:dict-data:add",
perm: "sys:dict-item:add",
children: [],
},
{
id: 137,
parentId: 135,
name: "字典数据编辑",
name: "字典编辑",
type: "BUTTON",
routeName: null,
routePath: "",
@@ -918,13 +918,13 @@ export default defineMock([
visible: 1,
icon: "",
redirect: null,
perm: "sys:dict-data:edit",
perm: "sys:dict-item:edit",
children: [],
},
{
id: 138,
parentId: 135,
name: "字典数据删除",
name: "字典删除",
type: "BUTTON",
routeName: null,
routePath: "",
@@ -933,7 +933,7 @@ export default defineMock([
visible: 1,
icon: "",
redirect: null,
perm: "sys:dict-data:delete",
perm: "sys:dict-item:delete",
children: [],
},
],
@@ -1695,23 +1695,23 @@ export default defineMock([
},
{
value: "135",
label: "字典数据",
label: "字典",
children: [
{
value: "143",
label: "字典数据查询",
label: "字典查询",
},
{
value: "136",
label: "字典数据新增",
label: "字典新增",
},
{
value: "137",
label: "字典数据编辑",
label: "字典编辑",
},
{
value: "138",
label: "字典数据删除",
label: "字典删除",
},
],
},