This commit is contained in:
六如
2024-10-23 22:26:08 +08:00
parent b01f16d6df
commit 8b34c0a80d
6 changed files with 49 additions and 24 deletions

View File

@@ -45,25 +45,26 @@ const apiRouters = [
}
}
]
},
{
path: "/sys",
meta: {
title: "系统管理",
icon: "ri:settings-2-line",
rank: 10
},
children: [
{
path: "/admin/user/index",
name: "AdminUser",
meta: {
title: "用户管理",
roles: ["admin"]
}
}
]
}
// ,
// {
// path: "/sys",
// meta: {
// title: "系统管理",
// icon: "ri:settings-2-line",
// rank: 10
// },
// children: [
// {
// path: "/admin/user/index",
// name: "AdminUser",
// meta: {
// title: "用户管理",
// roles: ["admin"]
// }
// }
// ]
// }
];
export default defineFakeRoute([

View File

@@ -14,12 +14,23 @@ import {
total,
handlePaginationChange
} from "@/components/ApiSelect/index";
defineProps({
title: {
type: String,
default: "选择接口"
},
tableTip: {
type: String,
default: ""
}
});
</script>
<template>
<PlusDialog
v-model="dlgApiSelectShow"
header="选择接口"
:title="title"
:width="dlgWidth"
cancel-text="取消"
confirm-text="确定"
@@ -52,7 +63,17 @@ import {
adaptive
@paginationChange="handlePaginationChange"
@selection-change="handleSelectionChange"
/>
>
<template #title>
<el-alert
v-show="tableTip"
type="info"
:title="tableTip"
:closable="false"
show-icon
/>
</template>
</PlusTable>
</el-card>
</PlusDialog>
</template>

View File

@@ -37,7 +37,7 @@ import {
* 如何排除文件请看https://cn.vitejs.dev/guide/features.html#negative-patterns
*/
const modules: Record<string, any> = import.meta.glob(
["./modules/**/*.ts", "!./modules/**/remaining.ts", "!./modules/**/error.ts"],
["./modules/**/*.ts", "!./modules/**/remaining.ts"],
{
eager: true
}

View File

@@ -7,7 +7,8 @@ export default {
icon: "ri:information-line",
// showLink: false,
title: $t("menus.pureAbnormal"),
rank: 9
rank: 9,
showLink: false
},
children: [
{

View File

@@ -42,6 +42,6 @@ import { actionButtons } from "./permGroupApi";
<el-button type="primary" @click="handleOpenDlg">授权接口</el-button>
</template>
</PlusTable>
<ApiSelect />
<ApiSelect tableTip="只显示授权接口" />
</el-card>
</template>

View File

@@ -5,5 +5,7 @@ defineOptions({
</script>
<template>
<h1>欢迎使用SOP Admin</h1>
<el-card shadow="never">
<h1>欢迎使用SOP Admin</h1>
</el-card>
</template>