902_trafficManagement.js 1.82 KB
/* eslint-disable node/prefer-global/process */

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"),
	},
	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"),
	},
};

// { routerName }