style: 添加webfirst种子数据
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Yi.Furion.Core.Rbac.DataSeeds
|
|||||||
public override List<MenuEntity> GetSeedData()
|
public override List<MenuEntity> GetSeedData()
|
||||||
{
|
{
|
||||||
List<MenuEntity> entities = new List<MenuEntity>();
|
List<MenuEntity> entities = new List<MenuEntity>();
|
||||||
|
|
||||||
//系统管理
|
//系统管理
|
||||||
MenuEntity system = new MenuEntity()
|
MenuEntity system = new MenuEntity()
|
||||||
{
|
{
|
||||||
@@ -37,6 +38,45 @@ namespace Yi.Furion.Core.Rbac.DataSeeds
|
|||||||
};
|
};
|
||||||
entities.Add(system);
|
entities.Add(system);
|
||||||
|
|
||||||
|
//WebFirst
|
||||||
|
MenuEntity webfirst = new MenuEntity()
|
||||||
|
{
|
||||||
|
Id = SnowflakeHelper.NextId,
|
||||||
|
MenuName = "WebFirst",
|
||||||
|
MenuType = MenuTypeEnum.Catalogue,
|
||||||
|
Router = "/webfirst",
|
||||||
|
IsShow = true,
|
||||||
|
IsLink = false,
|
||||||
|
MenuIcon = "build",
|
||||||
|
OrderNum = 91,
|
||||||
|
ParentId = 0,
|
||||||
|
IsDeleted = false
|
||||||
|
};
|
||||||
|
entities.Add(webfirst);
|
||||||
|
|
||||||
|
//数据表管理
|
||||||
|
MenuEntity table = new MenuEntity()
|
||||||
|
{
|
||||||
|
Id = SnowflakeHelper.NextId,
|
||||||
|
MenuName = "数据表管理",
|
||||||
|
PermissionCode = "webfirst:table:list",
|
||||||
|
MenuType = MenuTypeEnum.Menu,
|
||||||
|
Router = "table",
|
||||||
|
IsShow = true,
|
||||||
|
IsLink = false,
|
||||||
|
IsCache = true,
|
||||||
|
Component = "webfirst/table/index",
|
||||||
|
MenuIcon = "online",
|
||||||
|
OrderNum = 100,
|
||||||
|
ParentId = webfirst.Id,
|
||||||
|
IsDeleted = false
|
||||||
|
};
|
||||||
|
entities.Add(table);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//系统监控
|
//系统监控
|
||||||
MenuEntity monitoring = new MenuEntity()
|
MenuEntity monitoring = new MenuEntity()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
字段:{{ field }}
|
字段:{{ field }}
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import useFieldHook from '../hooks/fieldHook'
|
import useField from '../hooks/useField'
|
||||||
const {field}=useFieldHook();
|
const {field}=useField();
|
||||||
</script>
|
</script>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>表={{ table }}</template>
|
<template>表={{ table }}</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import useTableHook from '../hooks/tableHook'
|
import useTable from '../hooks/useTable'
|
||||||
const {table}=useTableHook();
|
const {table}=useTable();
|
||||||
</script>
|
</script>
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
const useFieldHooks=()=>{
|
const useField=()=>{
|
||||||
const field=ref("zd")
|
const field=ref("zd")
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log(`the component is now mounted. field`)
|
console.log(`the component is now mounted. field`)
|
||||||
});
|
});
|
||||||
return {field};
|
return {field};
|
||||||
}
|
}
|
||||||
export default useFieldHooks;
|
export default useField;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
const useTableHooks=()=>{
|
const useTable=()=>{
|
||||||
const table=ref("bg")
|
const table=ref("bg")
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log(`the component is now mounted. table`)
|
console.log(`the component is now mounted. table`)
|
||||||
});
|
});
|
||||||
return {table};
|
return {table};
|
||||||
}
|
}
|
||||||
export default useTableHooks;
|
export default useTable;
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
<TableList></TableList>
|
<TableList></TableList>
|
||||||
<FieldList></FieldList>
|
<FieldList></FieldList>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import FieldList from './components/FieldList.vue'
|
import FieldList from './components/FieldList.vue'
|
||||||
|
|||||||
Reference in New Issue
Block a user