20260716173254
This commit is contained in:
1 parent
704dda07b5
commit
5cd4e1e1d2
46 files changed
+3569
-528
No files matched your search
@@ -1,4 +1,8 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import NProgress from "nprogress";
|
||||
import "nprogress/nprogress.css";
|
||||
|
||||
NProgress.configure({ showSpinner: false });
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -26,6 +30,19 @@ const routes = [
|
||||
source: "v_bs_business",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "business/orders/:id",
|
||||
name: "business-order-detail",
|
||||
component: () => import("../views/DetailView.vue"),
|
||||
meta: {
|
||||
title: "业务单据详情",
|
||||
listTitle: "业务单据",
|
||||
section: "业务管理",
|
||||
menuKey: "/business/orders",
|
||||
listPath: "/business/orders",
|
||||
detail: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "fees/receivable",
|
||||
name: "fees-receivable",
|
||||
@@ -37,6 +54,19 @@ const routes = [
|
||||
source: "v_fee_receivable",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "fees/receivable/:id",
|
||||
name: "fees-receivable-detail",
|
||||
component: () => import("../views/DetailView.vue"),
|
||||
meta: {
|
||||
title: "应收费用详情",
|
||||
listTitle: "应收费用",
|
||||
section: "费用管理",
|
||||
menuKey: "/fees/receivable",
|
||||
listPath: "/fees/receivable",
|
||||
detail: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "reports/operations",
|
||||
name: "reports-operations",
|
||||
@@ -48,6 +78,19 @@ const routes = [
|
||||
source: "v_report_operations",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "reports/operations/:id",
|
||||
name: "reports-operations-detail",
|
||||
component: () => import("../views/DetailView.vue"),
|
||||
meta: {
|
||||
title: "运营报表详情",
|
||||
listTitle: "运营报表",
|
||||
section: "报表中心",
|
||||
menuKey: "/reports/operations",
|
||||
listPath: "/reports/operations",
|
||||
detail: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "system/users",
|
||||
name: "system-users",
|
||||
@@ -59,6 +102,19 @@ const routes = [
|
||||
source: "sys_user",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "system/users/:id",
|
||||
name: "system-users-detail",
|
||||
component: () => import("../views/DetailView.vue"),
|
||||
meta: {
|
||||
title: "用户管理详情",
|
||||
listTitle: "用户管理",
|
||||
section: "系统设置",
|
||||
menuKey: "/system/users",
|
||||
listPath: "/system/users",
|
||||
detail: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -74,9 +130,18 @@ const router = createRouter({
|
||||
});
|
||||
|
||||
router.beforeEach((to) => {
|
||||
NProgress.start();
|
||||
document.title = to.meta.title ? `${to.meta.title} - FMS 管理系统` : "FMS 管理系统";
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
router.afterEach(() => {
|
||||
NProgress.done();
|
||||
});
|
||||
|
||||
router.onError(() => {
|
||||
NProgress.done();
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user