refactor layout
This commit is contained in:
+34
-43
@@ -1,5 +1,5 @@
|
||||
import { createRouter, createWebHistory, type RouteLocationNormalized } from "vue-router";
|
||||
import RootLayout from "@/layout/RootLayout.vue";
|
||||
import MainLayout from "@/layout/MainLayout.vue";
|
||||
import aiRoutes from "@/router/routes/aiRoutes";
|
||||
import chartRoutes from "@/router/routes/chartRoutes";
|
||||
import customerRoutes from "@/router/routes/customerRoutes";
|
||||
@@ -51,54 +51,45 @@ const router = createRouter({
|
||||
};
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
path: "/login",
|
||||
name: "Login",
|
||||
component: () => import("@/pages/user/LoginIndex.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/gao/invite/register",
|
||||
name: "InviteRegister",
|
||||
component: () => import("@/pages/user/InviteRegister.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
component: RootLayout,
|
||||
component: MainLayout,
|
||||
meta: {
|
||||
depth: 1,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
redirect: "/customers"
|
||||
},
|
||||
{
|
||||
path: "login",
|
||||
name: "Login",
|
||||
component: () => import("@/pages/user/LoginIndex.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "gao/invite/register",
|
||||
name: "InviteRegister",
|
||||
component: () => import("@/pages/user/InviteRegister.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "",
|
||||
component: () => import("@/layout/MainLayout.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
},
|
||||
children: [
|
||||
...tabRoutes,
|
||||
...aiRoutes,
|
||||
...detailRoutes
|
||||
]
|
||||
}
|
||||
...tabRoutes,
|
||||
...aiRoutes,
|
||||
...detailRoutes
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -169,7 +160,7 @@ async function resolveStoreAccessRedirect(to: RouteLocationNormalized): Promise<
|
||||
return `/management/stores/${store.id}`;
|
||||
}
|
||||
|
||||
router.afterEach((to) => {
|
||||
router.afterEach(to => {
|
||||
const globalUIStore = useGlobalUIStore();
|
||||
const isDarkMode = globalUIStore.themeMode === "dark";
|
||||
const fallbackBackground = isDarkMode ? "#10161f" : "#F5F5F8";
|
||||
|
||||
@@ -7,9 +7,6 @@ const aiRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/ai/AiChatPage.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "AI 小糕",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -7,9 +7,6 @@ const chartRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/product/ProductDataCharts.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "产品经营图表",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,23 +18,6 @@ const chartRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/product/OrderDataCharts.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户经营图表",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/management/data-charts",
|
||||
name: "StoreDataCharts",
|
||||
component: () => import("@/pages/store/StoreDataCharts.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "全局数据",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +29,6 @@ const chartRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerDataCharts.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户数据",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +40,6 @@ const chartRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerDataCharts.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户数据图表",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -7,9 +7,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/home/QuickSignInPage.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "快速扫码登记",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordEdit.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerInviteRank.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户邀请排行",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +51,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerInviteRelation.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户邀请关系",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -77,9 +62,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增客户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -91,9 +73,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -105,9 +84,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerInviteeList.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "邀请客户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -119,9 +95,6 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑客户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -7,9 +7,6 @@ const followUpReminderRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/followUpReminder/FollowUpReminderList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "客户跟进提醒",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const followUpReminderRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/followUpReminder/FollowUpReminderEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增跟进提醒",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const followUpReminderRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/followUpReminder/FollowUpReminderDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "跟进提醒详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const followUpReminderRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/followUpReminder/FollowUpReminderEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑跟进提醒",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
function meta(title: string, depth = 3): RouteRecordRaw["meta"] {
|
||||
return { depth, navBarVisible: true, navBarCanBack: true, navBarTitle: title, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" };
|
||||
function meta(depth = 3): RouteRecordRaw["meta"] {
|
||||
return { depth, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" };
|
||||
}
|
||||
|
||||
export default [
|
||||
{ path: "/management/order-fulfillments", name: "OrderFulfillmentList", component: () => import("@/pages/fulfillment/OrderFulfillmentList.vue"), meta: meta("履约记录") },
|
||||
{ path: "/management/order-fulfillments/create", name: "OrderFulfillmentCreate", component: () => import("@/pages/fulfillment/OrderFulfillmentCreate.vue"), meta: meta("创建履约单", 4) },
|
||||
{ path: "/management/order-fulfillments/:id", name: "OrderFulfillmentDetail", component: () => import("@/pages/fulfillment/OrderFulfillmentDetail.vue"), meta: meta("履约单详情", 4) }
|
||||
{ path: "/management/order-fulfillments", name: "OrderFulfillmentList", component: () => import("@/pages/fulfillment/OrderFulfillmentList.vue"), meta: meta() },
|
||||
{ path: "/management/order-fulfillments/create", name: "OrderFulfillmentCreate", component: () => import("@/pages/fulfillment/OrderFulfillmentCreate.vue"), meta: meta(4) },
|
||||
{ path: "/management/order-fulfillments/:id", name: "OrderFulfillmentDetail", component: () => import("@/pages/fulfillment/OrderFulfillmentDetail.vue"), meta: meta(4) }
|
||||
] as RouteRecordRaw[];
|
||||
|
||||
@@ -7,9 +7,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "门店管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增门店",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreSort.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "门店排序",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑门店",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +51,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreBusinessDayCalendar.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "营业日管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -77,9 +62,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreDiaryList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "门店日记",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -91,9 +73,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreDiaryEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增门店日记",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -105,9 +84,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreDiaryDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "门店日记详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#000"
|
||||
@@ -119,9 +95,6 @@ export const storeRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/store/StoreDiaryEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑门店日记",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -136,9 +109,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/HelpArticle.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "使用说明",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -151,9 +121,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
meta: {
|
||||
baseDepth: 2,
|
||||
dynamicDepth: true,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "使用说明",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -165,9 +132,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/About.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "关于",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -179,9 +143,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/Agreement.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "协议",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -193,9 +154,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/Agreement.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "服务协议",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -207,9 +165,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/Agreement.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "隐私协议",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -221,9 +176,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/Agreement.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "开源软件协议",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -235,9 +187,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/setting/AppSettings.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "应用设置",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -249,9 +198,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/NotifyList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "通知管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -263,9 +209,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/NotifyCreate.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "发送通知",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -277,9 +220,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/NotifyDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "通知详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -291,9 +231,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/NotifyRecipientList.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "发送用户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -305,9 +242,6 @@ export const managementSettingRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/tag/TagList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "标签管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -322,9 +256,6 @@ export const managementAccountRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserProfile.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "当前用户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -336,9 +267,6 @@ export const managementAccountRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserPassword.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "修改密码",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -350,9 +278,6 @@ export const managementAccountRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/customer/CustomerQrCode.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "生成二维码",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -7,9 +7,6 @@ const notifyRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/UserNotifyList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "站内通知",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const notifyRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/notify/UserNotifyDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "通知详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#FFF",
|
||||
darkBodyBackground: "#000"
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
function pageMeta(title: string, depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
return { depth, navBarVisible: true, navBarCanBack: true, navBarTitle: title, tabBarVisible: false, bodyBackground: background, darkBodyBackground: "#10161f" };
|
||||
function pageMeta(depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
return { depth, tabBarVisible: false, bodyBackground: background, darkBodyBackground: "#10161f" };
|
||||
}
|
||||
|
||||
export default [
|
||||
{ path: "/management/package-configs", name: "PackageConfigList", component: () => import("@/pages/package/PackageConfigList.vue"), meta: pageMeta("套餐配置") },
|
||||
{ path: "/management/package-orders", name: "PackageOrderConfigList", component: () => import("@/pages/package/PackageOrderConfigList.vue"), meta: pageMeta("选择套餐") },
|
||||
{ path: "/management/package-configs/create", name: "PackageConfigCreate", component: () => import("@/pages/package/PackageConfigEdit.vue"), meta: pageMeta("新增套餐配置", 4) },
|
||||
{ path: "/management/package-configs/:id", name: "PackageConfigDetail", component: () => import("@/pages/package/PackageConfigDetail.vue"), meta: pageMeta("套餐配置详情", 4) },
|
||||
{ path: "/management/package-configs/:id/edit", name: "PackageConfigEdit", component: () => import("@/pages/package/PackageConfigEdit.vue"), meta: pageMeta("编辑套餐配置", 5) },
|
||||
{ path: "/management/package-configs/:id/purchase", name: "PackagePurchase", component: () => import("@/pages/package/PackagePurchase.vue"), meta: pageMeta("购买套餐", 5) },
|
||||
{ path: "/management/customer-packages/create", name: "CustomerPackageCreate", component: () => import("@/pages/package/PackagePurchase.vue"), meta: pageMeta("创建客户套餐", 4) }
|
||||
{ path: "/management/package-configs", name: "PackageConfigList", component: () => import("@/pages/package/PackageConfigList.vue"), meta: pageMeta() },
|
||||
{ path: "/management/package-orders", name: "PackageOrderConfigList", component: () => import("@/pages/package/PackageOrderConfigList.vue"), meta: pageMeta() },
|
||||
{ path: "/management/package-configs/create", name: "PackageConfigCreate", component: () => import("@/pages/package/PackageConfigEdit.vue"), meta: pageMeta(4) },
|
||||
{ path: "/management/package-configs/:id", name: "PackageConfigDetail", component: () => import("@/pages/package/PackageConfigDetail.vue"), meta: pageMeta(4) },
|
||||
{ path: "/management/package-configs/:id/edit", name: "PackageConfigEdit", component: () => import("@/pages/package/PackageConfigEdit.vue"), meta: pageMeta(5) },
|
||||
{ path: "/management/package-configs/:id/purchase", name: "PackagePurchase", component: () => import("@/pages/package/PackagePurchase.vue"), meta: pageMeta(5) },
|
||||
{ path: "/management/customer-packages/create", name: "CustomerPackageCreate", component: () => import("@/pages/package/PackagePurchase.vue"), meta: pageMeta(4) }
|
||||
] as RouteRecordRaw[];
|
||||
|
||||
@@ -7,9 +7,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/PermissionSettings.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "权限设置",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RoleList.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "角色管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RoleEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增角色",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RoleEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑角色",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +51,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RolePermissionAssign.vue"),
|
||||
meta: {
|
||||
depth: 6,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "角色直接授权权限 P",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -77,9 +62,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RoleDelegationPermissionAssign.vue"),
|
||||
meta: {
|
||||
depth: 6,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "角色可转授权限 D",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -91,9 +73,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/PermissionList.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "权限管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -109,9 +88,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RolePermissionAssign.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "角色直接授权权限 P",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -123,9 +99,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/permission/RoleDelegationPermissionAssign.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "角色可转授权限 D",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -137,9 +110,6 @@ const permissionRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserRoleAssign.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "用户授权角色",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -3,27 +3,27 @@ import type { RouteRecordRaw } from "vue-router";
|
||||
const pointRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/points/redeem-skus", name: "PointRedeemSkuList", component: () => import("@/pages/point/PointRedeemSkuList.vue"),
|
||||
meta: { depth: 3, navBarVisible: true, navBarCanBack: true, navBarTitle: "兑换商品", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 3, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/redeem-skus/create", name: "PointRedeemSkuCreate", component: () => import("@/pages/point/PointRedeemSkuEdit.vue"),
|
||||
meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "新增兑换商品", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 4, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/redeem-skus/:id/edit", name: "PointRedeemSkuEdit", component: () => import("@/pages/point/PointRedeemSkuEdit.vue"),
|
||||
meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "编辑兑换商品", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 4, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/redemptions", name: "PointRedemptionList", component: () => import("@/pages/point/PointRedemptionList.vue"),
|
||||
meta: { depth: 3, navBarVisible: true, navBarCanBack: true, navBarTitle: "积分兑换", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 3, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/redemptions/create", name: "PointRedemptionCreate", component: () => import("@/pages/point/PointRedemptionCreate.vue"),
|
||||
meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "客户兑换", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 4, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/redemptions/:id", name: "PointRedemptionDetail", component: () => import("@/pages/point/PointRedemptionDetail.vue"),
|
||||
meta: { depth: 4, navBarVisible: true, navBarCanBack: true, navBarTitle: "兑换详情", tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
meta: { depth: 4, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" }
|
||||
},
|
||||
{
|
||||
path: "/management/points/account",
|
||||
@@ -31,9 +31,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointAccountList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分账户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -45,9 +42,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointAccountDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分账户详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -59,9 +53,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointRuleSort.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分规则排序",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -73,9 +64,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointLedgerList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分流水",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -87,9 +75,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointLedgerDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分流水详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -101,9 +86,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointAdjust.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "人工调整积分",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -115,9 +97,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointRuleList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分规则",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -129,9 +108,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointRuleEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增积分规则",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -143,9 +119,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointRuleDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "积分规则详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -157,9 +130,6 @@ const pointRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/point/PointRuleEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑积分规则",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
function pageMeta(title: string, depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
function pageMeta(depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
return {
|
||||
depth,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: title,
|
||||
tabBarVisible: false,
|
||||
bodyBackground: background,
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -17,79 +14,79 @@ const productRoutes: RouteRecordRaw[] = [
|
||||
path: "/management/product-categories",
|
||||
name: "ProductCategoryList",
|
||||
component: () => import("@/pages/product/ProductCategoryList.vue"),
|
||||
meta: pageMeta("产品分类")
|
||||
meta: pageMeta()
|
||||
},
|
||||
{
|
||||
path: "/management/product-categories/rank",
|
||||
name: "ProductCategoryRank",
|
||||
component: () => import("@/pages/product/ProductCategoryRank.vue"),
|
||||
meta: pageMeta("产品分类排序", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/products",
|
||||
name: "ProductList",
|
||||
component: () => import("@/pages/product/ProductList.vue"),
|
||||
meta: pageMeta("产品库")
|
||||
meta: pageMeta()
|
||||
},
|
||||
{
|
||||
path: "/management/products/create",
|
||||
name: "ProductCreate",
|
||||
component: () => import("@/pages/product/ProductEdit.vue"),
|
||||
meta: pageMeta("新增产品", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/products/:id",
|
||||
name: "ProductDetail",
|
||||
component: () => import("@/pages/product/ProductDetail.vue"),
|
||||
meta: pageMeta("产品详情", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/products/:id/edit",
|
||||
name: "ProductEdit",
|
||||
component: () => import("@/pages/product/ProductEdit.vue"),
|
||||
meta: pageMeta("编辑产品", 5)
|
||||
meta: pageMeta(5)
|
||||
},
|
||||
{
|
||||
path: "/management/product-stocks",
|
||||
name: "ProductStockList",
|
||||
component: () => import("@/pages/product/ProductStockList.vue"),
|
||||
meta: pageMeta("选择产品")
|
||||
meta: pageMeta()
|
||||
},
|
||||
{
|
||||
path: "/management/product-stocks/:productId/skus",
|
||||
name: "ProductStockSkuList",
|
||||
component: () => import("@/pages/product/ProductStockSkuList.vue"),
|
||||
meta: pageMeta("选择 SKU", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/product-stocks/batch/select",
|
||||
name: "ProductStockBatchSelect",
|
||||
component: () => import("@/pages/product/ProductStockBatchSelect.vue"),
|
||||
meta: pageMeta("选择入库 SKU", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/product-stocks/batch/configure",
|
||||
name: "ProductStockBatchConfigure",
|
||||
component: () => import("@/pages/product/ProductStockBatchConfigure.vue"),
|
||||
meta: pageMeta("批量入库", 5)
|
||||
meta: pageMeta(5)
|
||||
},
|
||||
{
|
||||
path: "/management/product-stock-records",
|
||||
name: "ProductStockRecordList",
|
||||
component: () => import("@/pages/product/ProductStockRecordList.vue"),
|
||||
meta: pageMeta("库存流水")
|
||||
meta: pageMeta()
|
||||
},
|
||||
{
|
||||
path: "/management/product-stock-records/:id",
|
||||
name: "ProductStockRecordDetail",
|
||||
component: () => import("@/pages/product/ProductStockRecordDetail.vue"),
|
||||
meta: pageMeta("库存流水详情", 4)
|
||||
meta: pageMeta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/product-stocks/:skuId",
|
||||
name: "ProductStockDetail",
|
||||
component: () => import("@/pages/product/ProductStockDetail.vue"),
|
||||
meta: pageMeta("库存详情", 5)
|
||||
meta: pageMeta(5)
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记事件管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventSort.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记事件排序",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增登记事件",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记事件详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +51,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑登记事件",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -77,9 +62,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记事件记录管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -91,9 +73,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordRank.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记记录排行",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -105,9 +84,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增登记事件记录",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -119,9 +95,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "登记事件记录详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -133,9 +106,6 @@ const registrationRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/event/EventRecordEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑登记事件记录",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -1,59 +1,59 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
function meta(title: string, depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
return { depth, navBarVisible: true, navBarCanBack: true, navBarTitle: title, tabBarVisible: false, bodyBackground: background, darkBodyBackground: "#10161f" };
|
||||
function meta(depth = 3, background = "#F5F5F8"): RouteRecordRaw["meta"] {
|
||||
return { depth, tabBarVisible: false, bodyBackground: background, darkBodyBackground: "#10161f" };
|
||||
}
|
||||
|
||||
export default [
|
||||
{ path: "/management/sales-orders", name: "SalesOrderList", component: () => import("@/pages/salesOrder/SalesOrderList.vue"), meta: meta("销售订单") },
|
||||
{ path: "/management/consumption-records", name: "ConsumptionRecordList", component: () => import("@/pages/salesOrder/ConsumptionRecordList.vue"), meta: meta("消费记录") },
|
||||
{ path: "/management/sales-orders", name: "SalesOrderList", component: () => import("@/pages/salesOrder/SalesOrderList.vue"), meta: meta() },
|
||||
{ path: "/management/consumption-records", name: "ConsumptionRecordList", component: () => import("@/pages/salesOrder/ConsumptionRecordList.vue"), meta: meta() },
|
||||
{
|
||||
path: "/management/sales-orders/create",
|
||||
name: "SalesOrderCreate",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderCreate.vue"),
|
||||
meta: meta("直接产品下单", 4)
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/sales-orders/:id",
|
||||
name: "SalesOrderDetail",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderDetail.vue"),
|
||||
meta: meta("销售订单详情", 4)
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/sales-orders/:id/payment",
|
||||
name: "SalesOrderPayment",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderPayment.vue"),
|
||||
meta: meta("登记收款", 5)
|
||||
meta: meta(5)
|
||||
},
|
||||
{
|
||||
path: "/management/sales-orders/:id/refund",
|
||||
name: "SalesOrderRefund",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderRefund.vue"),
|
||||
meta: meta("登记退款", 5)
|
||||
meta: meta(5)
|
||||
},
|
||||
{
|
||||
path: "/management/sales-orders/:id/no-refund",
|
||||
name: "SalesOrderNoRefund",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderNoRefund.vue"),
|
||||
meta: meta("确认无需退款", 5)
|
||||
meta: meta(5)
|
||||
},
|
||||
{
|
||||
path: "/management/sales-orders/:id/cancel",
|
||||
name: "SalesOrderCancel",
|
||||
component: () => import("@/pages/salesOrder/SalesOrderCancel.vue"),
|
||||
meta: meta("取消销售订单", 5)
|
||||
meta: meta(5)
|
||||
},
|
||||
{ path: "/management/fund-records", name: "FundRecordList", component: () => import("@/pages/salesOrder/FundRecordList.vue"), meta: meta("资金流水") },
|
||||
{ path: "/management/fund-records", name: "FundRecordList", component: () => import("@/pages/salesOrder/FundRecordList.vue"), meta: meta() },
|
||||
{
|
||||
path: "/management/fund-records/:id",
|
||||
name: "FundRecordDetail",
|
||||
component: () => import("@/pages/salesOrder/FundRecordDetail.vue"),
|
||||
meta: meta("资金记录详情", 4)
|
||||
meta: meta(4)
|
||||
},
|
||||
{
|
||||
path: "/management/fund-records/:id/revoke",
|
||||
name: "FundRecordRevoke",
|
||||
component: () => import("@/pages/salesOrder/FundRecordRevoke.vue"),
|
||||
meta: meta("资金冲正", 5)
|
||||
meta: meta(5)
|
||||
}
|
||||
] as RouteRecordRaw[];
|
||||
|
||||
@@ -7,9 +7,6 @@ const tabRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/tabs/HomeTab.vue"),
|
||||
meta: {
|
||||
depth: 2,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: false,
|
||||
navBarTitle: "客户",
|
||||
tabBarVisible: true,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const tabRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/tabs/StoreTab.vue"),
|
||||
meta: {
|
||||
depth: 2,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: false,
|
||||
navBarTitle: "门店",
|
||||
tabBarVisible: true,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const tabRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/tabs/ProductTab.vue"),
|
||||
meta: {
|
||||
depth: 2,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: false,
|
||||
navBarTitle: "产品",
|
||||
tabBarVisible: true,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const tabRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/tabs/SettingTab.vue"),
|
||||
meta: {
|
||||
depth: 2,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: false,
|
||||
navBarTitle: "管理",
|
||||
tabBarVisible: true,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
@@ -7,9 +7,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserInvitePoster.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "邀请注册海报",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F0FDFA",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -21,9 +18,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "用户管理",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -35,9 +29,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "新增用户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -49,9 +40,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "用户详情",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -63,9 +51,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "编辑用户",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
@@ -77,9 +62,6 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
component: () => import("@/pages/user/UserRoleAssign.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
navBarCanBack: true,
|
||||
navBarTitle: "配置角色",
|
||||
tabBarVisible: false,
|
||||
bodyBackground: "#F5F5F8",
|
||||
darkBodyBackground: "#10161f"
|
||||
|
||||
Reference in New Issue
Block a user