902_trafficManagement.js 2.69 KB
const _import = require("@/libs/util.import." + process.env.NODE_ENV);
export const routerName = {
	902: {
		path: "/flowManage",
		name: "flowManage",
		meta: {
			title: "流量管理",
			authId: "902",
			parentId: "1",
			cache: false,
		},
	},
	90201: {
		path: "/customerList",
		name: "customerList",
		meta: {
			title: "客户列表",
			authId: "90201",
			parentId: "902",
			cache: false,
		},
		auth: [
			{
				authId: "9020101",
				parentId: "90201",
				label: "导出",
				category: "Button",
				type: "primary",
				handle: "handleExport",
			},
			{
				authId: "9020102",
				parentId: "90201",
				label: "客户画像",
				handle: "handleViewPortrait",
				addRoutePath: [
					{
						authId: "90205",
						name: "客户画像",
						parentId: "90201",
					},
				],
			},
			{
				authId: "9020103",
				parentId: "90201",
				label: "群关联",
				handle: "handleViewGroups",
				addRoutePath: [
					{
						authId: "90206",
						name: "群关联",
						parentId: "90201",
					},
				],
			},
			{
				authId: "9020104",
				parentId: "90201",
				label: "订单信息",
				handle: "handleViewOrders",
				// addRoutePath: [
				// 	{
				// 		authId: "90401",
				// 		name: "订单列表",
				// 		parentId: "904",
				// 	},
				// ],
			},
		],
		component: _import("customer/customerList"),
	},
	90202: {
		path: "/recordList",
		name: "recordList",
		meta: {
			title: "预录信息",
			authId: "90202",
			parentId: "902",
			cache: false,
		},
		auth: [
			{
				authId: "9020202",
				parentId: "90202",
				label: "一键导入",
				category: "Button",
				type: "primary",
				handle: "handleImport",
			},
			{
				authId: "9020203",
				parentId: "90202",
				label: "编辑",
				handle: "handleEdit",
				addRoutePath: [
					{
						authId: "901",
						name: "预录客户",
						parentId: "90202",
					},
				],
			},
		],
		component: _import("customer/recordList"),
	},
	90205: {
		path: "/customerPortrait",
		name: "customerPortrait",
		meta: {
			title: "客户画像",
			authId: "90205",
			parentId: "90201",
			cache: false,
			sideHidden: true,
			activePath: "/customerList",
		},
		component: _import("customer/portrait/index"),
	},
	90206: {
		path: "/customerGroupRel",
		name: "customerGroupRel",
		meta: {
			title: "群关联",
			authId: "90206",
			parentId: "90201",
			cache: false,
			sideHidden: true,
			activePath: "/customerList",
		},
		component: _import("customer/groupRel/index"),
	},
	901: {
		path: "/editCustomer",
		name: "editCustomer",
		meta: {
			title: "预录客户",
			authId: "901",
			parentId: "90202",
			cache: false,
			sideHidden: false,
			activePath: "/recordList",
		},
		component: _import("customer/editCustomer"),
	},
};

// { routerName }