diff --git a/src/router/router.ts b/src/router/router.ts index e1677d2..d193d75 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -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 = [ { @@ -47,9 +55,52 @@ const routes: Array = [ 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(.*)*", diff --git a/src/views/Home.vue b/src/views/Home.vue index d0b5a57..54349bf 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/src/views/managerial/BMA/Ticket-Create.vue b/src/views/managerial/BMA/Ticket-Create.vue new file mode 100644 index 0000000..e7361d6 --- /dev/null +++ b/src/views/managerial/BMA/Ticket-Create.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/managerial/BMA/Ticket-Inquire.vue b/src/views/managerial/BMA/Ticket-Inquire.vue new file mode 100644 index 0000000..090f6a0 --- /dev/null +++ b/src/views/managerial/BMA/Ticket-Inquire.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file