修复菜单管理里面,编辑后或者新增没有增加routerName,会导致主菜单导航时无法显示
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Menu
|
|||||||
public string? Remark { get; set; }
|
public string? Remark { get; set; }
|
||||||
public string? Component { get; set; }
|
public string? Component { get; set; }
|
||||||
public string? Query { get; set; }
|
public string? Query { get; set; }
|
||||||
|
public string? RouterName { get; set; }
|
||||||
public int OrderNum { get; set; }
|
public int OrderNum { get; set; }
|
||||||
//public List<MenuEntity>? Children { get; set; }
|
//public List<MenuEntity>? Children { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Menu
|
|||||||
|
|
||||||
public int OrderNum { get; set; }
|
public int OrderNum { get; set; }
|
||||||
|
|
||||||
|
public string? RouterName { get; set; }
|
||||||
|
|
||||||
//public List<MenuEntity>? Children { get; set; }
|
//public List<MenuEntity>? Children { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,13 +91,28 @@ defineExpose({ getRef });
|
|||||||
<re-col
|
<re-col
|
||||||
v-show="newFormInline.menuType !== 2"
|
v-show="newFormInline.menuType !== 2"
|
||||||
:value="24"
|
:value="24"
|
||||||
:xs="24"
|
:xs="12"
|
||||||
:sm="24"
|
:sm="12"
|
||||||
>
|
>
|
||||||
<el-form-item label="菜单图标">
|
<el-form-item label="菜单图标">
|
||||||
<IconSelect v-model="newFormInline.menuIcon" class="w-full" />
|
<IconSelect v-model="newFormInline.menuIcon" class="w-full" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</re-col>
|
</re-col>
|
||||||
|
<re-col
|
||||||
|
v-show="newFormInline.menuType !== 2"
|
||||||
|
:value="24"
|
||||||
|
:xs="12"
|
||||||
|
:sm="12"
|
||||||
|
>
|
||||||
|
<el-form-item label="路由名称">
|
||||||
|
<el-input
|
||||||
|
v-model="newFormInline.routerName"
|
||||||
|
clearable
|
||||||
|
placeholder="请输入菜单名称"
|
||||||
|
class="w-full"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</re-col>
|
||||||
<re-col :value="12" :xs="24" :sm="24">
|
<re-col :value="12" :xs="24" :sm="24">
|
||||||
<el-form-item label="菜单名称" prop="menuName">
|
<el-form-item label="菜单名称" prop="menuName">
|
||||||
<el-input
|
<el-input
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export function useMenu() {
|
|||||||
{
|
{
|
||||||
label: "显示",
|
label: "显示",
|
||||||
prop: "isShow",
|
prop: "isShow",
|
||||||
formatter: ({ isShow }) => (isShow ? "否" : "是"),
|
formatter: ({ isShow }) => (isShow ? "是" : "否"),
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user