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([ export default defineFakeRoute([

View File

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

View File

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

View File

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

View File

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

View File

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