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([
|
export default defineFakeRoute([
|
||||||
|
@@ -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>
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
|
@@ -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: [
|
||||||
{
|
{
|
||||||
|
@@ -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>
|
||||||
|
@@ -5,5 +5,7 @@ defineOptions({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<h1>欢迎使用SOP Admin</h1>
|
<el-card shadow="never">
|
||||||
|
<h1>欢迎使用SOP Admin</h1>
|
||||||
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
Reference in New Issue
Block a user