V0.2.4.20250731
——————————————— 内容插件 ———————————————
This commit is contained in:
parent
a3d4e13dfc
commit
7782ffd8e9
@ -1,12 +1,20 @@
|
||||
import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router";
|
||||
import Home from "@/views/Home.vue";
|
||||
import NotFound from "@/error/NotFound.vue";
|
||||
import Admin from "@/views/managerial/admin.vue"
|
||||
import Account from "@/views/ordinary/account.vue"
|
||||
import Books from "@/views/ordinary/books.vue"
|
||||
import Journals from "@/views/ordinary/journals.vue"
|
||||
import Newspapers from "@/views/ordinary/newspapers.vue";
|
||||
import Main from "@/views/ordinary/main.vue";
|
||||
import SMA from "@/views/managerial/SMA.vue";
|
||||
import BMA from "@/views/managerial/BMA.vue";
|
||||
import UAA from "@/views/managerial/UAA.vue"
|
||||
import AccountCancel from "@/views/managerial/BMA/Account-Cancel.vue";
|
||||
import AccountBusiness from "@/views/managerial/BMA/Account-Business.vue";
|
||||
import BookInquire from "@/views/managerial/BMA/Book-Inquire.vue";
|
||||
import BookBorrowBack from "@/views/managerial/BMA/Book-BorrowBack.vue";
|
||||
import TicketCreate from "@/views/managerial/BMA/Ticket-Create.vue";
|
||||
import TicketInquire from "@/views/managerial/BMA/Ticket-Inquire.vue";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
@ -47,9 +55,52 @@ const routes: Array<RouteRecordRaw> = [
|
||||
component: Account,
|
||||
},
|
||||
{
|
||||
path: "/5Usw4tshU6SRG2HxSxeG2UKfZZ7HKvSjEZjvBV7WExUFYwUKTX",
|
||||
name: "admin",
|
||||
component: Admin,
|
||||
path: "/UAA",
|
||||
name: "UAA",
|
||||
component: UAA,
|
||||
},
|
||||
{
|
||||
path: "/SMA",
|
||||
name: "SMA",
|
||||
component: SMA,
|
||||
},
|
||||
{
|
||||
path: "/BMA",
|
||||
name: "BMA",
|
||||
component: BMA,
|
||||
redirect: "/BMA/AccountBusiness", // 添加默认重定向到业务页
|
||||
children:[
|
||||
{
|
||||
path:"AccountCancel",
|
||||
name:"AccountCancel" ,
|
||||
component:AccountCancel,
|
||||
},
|
||||
{
|
||||
path:"AccountBusiness",
|
||||
name:"AccountBusiness",
|
||||
component:AccountBusiness,
|
||||
},
|
||||
{
|
||||
path:"BookInquire",
|
||||
name:"BookInquire",
|
||||
component:BookInquire,
|
||||
},
|
||||
{
|
||||
path:"BookBorrowBack",
|
||||
name:"BookBorrowBack",
|
||||
component:BookBorrowBack,
|
||||
},
|
||||
{
|
||||
path:"TicketCreate",
|
||||
name:"TicketCreate",
|
||||
component:TicketCreate,
|
||||
},
|
||||
{
|
||||
path:"TicketInquire",
|
||||
name:"TicketInquire",
|
||||
component:TicketInquire,
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
|
@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import "@/assets/ordinary/Home.css"
|
||||
import {ref} from 'vue'
|
||||
import { UserFilled } from '@element-plus/icons-vue'
|
||||
import {useRouter} from "vue-router";
|
||||
const UserID = ref('用户')
|
||||
const imgsrc = ref('https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png') //头像
|
||||
const router = useRouter()
|
||||
const activeIndex = ref(router.currentRoute.value.path) // 根据当前路由设置激活状态
|
||||
@ -29,12 +29,16 @@ const handleSelect = (path: string) => {
|
||||
<el-menu-item index="/journals" :route="{ path: '/journals'}" class="el-menu-item-A">期刊</el-menu-item>
|
||||
<el-menu-item index="/newspapers" :route="{ path: '/newspapers'}" class="el-menu-item-A">报纸</el-menu-item>
|
||||
<!-- 弹性空间 -->
|
||||
<div class="flex-grow"></div>
|
||||
<!-- 头像-->
|
||||
<div style="margin: auto 0;">
|
||||
<el-avatar :src="imgsrc" :icon="UserFilled"/>
|
||||
</div>
|
||||
<el-menu-item index="/account" :route="{ path: '/account'}">读者登录</el-menu-item>
|
||||
<div class="flex-grow"/>
|
||||
<el-sub-menu>
|
||||
<template #title>
|
||||
<el-avatar :src="imgsrc" :size="45" style="margin-right: 20px">请登录</el-avatar>
|
||||
<span>{{ UserID }}</span>
|
||||
</template>
|
||||
<el-menu-item index="/UAA" :route="{ path: '/UAA'}" v-if="true">个人中心</el-menu-item>
|
||||
<el-menu-item v-if="true">注销</el-menu-item>
|
||||
<el-menu-item v-if="false">登录</el-menu-item>
|
||||
</el-sub-menu>
|
||||
</el-menu>
|
||||
<!-- <div class="h-6"/>-->
|
||||
</div>
|
||||
|
@ -3,7 +3,7 @@
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
借还业务
|
||||
</template>
|
||||
|
||||
<style scoped>
|
11
src/views/managerial/BMA/Book-Inquire.vue
Normal file
11
src/views/managerial/BMA/Book-Inquire.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
图书查询
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
11
src/views/managerial/BMA/Ticket-Create.vue
Normal file
11
src/views/managerial/BMA/Ticket-Create.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
工单创建
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
11
src/views/managerial/BMA/Ticket-Inquire.vue
Normal file
11
src/views/managerial/BMA/Ticket-Inquire.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
工单查询
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user