mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -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([
|
||||
|
@@ -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>
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -7,7 +7,8 @@ export default {
|
||||
icon: "ri:information-line",
|
||||
// showLink: false,
|
||||
title: $t("menus.pureAbnormal"),
|
||||
rank: 9
|
||||
rank: 9,
|
||||
showLink: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
@@ -42,6 +42,6 @@ import { actionButtons } from "./permGroupApi";
|
||||
<el-button type="primary" @click="handleOpenDlg">授权接口</el-button>
|
||||
</template>
|
||||
</PlusTable>
|
||||
<ApiSelect />
|
||||
<ApiSelect tableTip="只显示授权接口" />
|
||||
</el-card>
|
||||
</template>
|
||||
|
@@ -5,5 +5,7 @@ defineOptions({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-card shadow="never">
|
||||
<h1>欢迎使用SOP Admin</h1>
|
||||
</el-card>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user