Commit a04c0117 by Jaxon

feat(营销策略):创建 目录结构 与菜单

1 parent bb48cd21
const _import = require("@/libs/util.import." + process.env.NODE_ENV) const _import = require("@/libs/util.import." + process.env.NODE_ENV);
export const routerName = { export const routerName = {
922: { 922: {
path: "/marketingManagement", path: "/marketingManagement",
...@@ -8,7 +8,7 @@ export const routerName = { ...@@ -8,7 +8,7 @@ export const routerName = {
authId: "922", authId: "922",
parentId: "1", parentId: "1",
cache: false, cache: false,
} },
}, },
92201: { 92201: {
path: "/marketingActivity", path: "/marketingActivity",
...@@ -29,12 +29,12 @@ export const routerName = { ...@@ -29,12 +29,12 @@ export const routerName = {
type: "primary", type: "primary",
handle: "handleAdd", handle: "handleAdd",
addRoutePath: [ addRoutePath: [
{ {
authId: "92202", authId: "92202",
name: "新增活动", name: "新增活动",
parentId: "92201" parentId: "92201",
} },
] ],
}, },
{ {
authId: "9220102", authId: "9220102",
...@@ -42,14 +42,14 @@ export const routerName = { ...@@ -42,14 +42,14 @@ export const routerName = {
label: "查看详情", label: "查看详情",
handle: "handleDetail", handle: "handleDetail",
addRoutePath: [ addRoutePath: [
{ {
authId: "92203", authId: "92203",
name: "订单详情", name: "订单详情",
parentId: "92201" parentId: "92201",
} },
] ],
}, },
] ],
}, },
92202: { 92202: {
path: "/addMarketingActivity", path: "/addMarketingActivity",
...@@ -62,7 +62,7 @@ export const routerName = { ...@@ -62,7 +62,7 @@ export const routerName = {
sideHidden: true, sideHidden: true,
activePath: "/marketingActivity", activePath: "/marketingActivity",
}, },
component: _import("marketingManagement/marketingActivity/addMarketingActivity") component: _import("marketingManagement/marketingActivity/addMarketingActivity"),
}, },
92203: { 92203: {
path: "/viewMarketingActivity", path: "/viewMarketingActivity",
...@@ -101,7 +101,7 @@ export const routerName = { ...@@ -101,7 +101,7 @@ export const routerName = {
authId: "9220106", authId: "9220106",
parentId: "92203", parentId: "92203",
label: "恢复", label: "恢复",
handle: "handleToggleStatus" handle: "handleToggleStatus",
}, },
{ {
authId: "9220107", authId: "9220107",
...@@ -119,8 +119,76 @@ export const routerName = { ...@@ -119,8 +119,76 @@ export const routerName = {
authId: "9220109", authId: "9220109",
parentId: "92203", parentId: "92203",
label: "再次创建", label: "再次创建",
handle: "handleRecreate" handle: "handleRecreate",
} },
] ],
} },
}
92210: {
path: "/marketing-push-strategy",
name: "marketingPushStrategy",
meta: {
title: "营销推送策略",
authId: "92210",
parentId: "922",
cache: false,
},
component: _import("marketingManagement/marketingPushStrategy/views/table/index"),
auth: [
{
authId: "9221001",
parentId: "92210",
label: "新增策略",
category: "Button",
type: "primary",
handle: "handleAppend",
addRoutePath: [
{
authId: "9221010",
name: "新增策略",
parentId: "92210",
},
],
},
{
authId: "9221002",
parentId: "92210",
label: "执行记录",
handle: "handleRecord",
},
{
authId: "9221003",
parentId: "92210",
label: "修改",
handle: "handleModify",
addRoutePath: [
{
authId: "9221010",
name: "修改策略",
parentId: "92210",
},
],
},
{
authId: "9221004",
parentId: "92210",
label: "删除",
handle: "handleDelete",
},
],
},
9221010: {
path: "/marketing-push-strategy/modify",
name: "marketingPushStrategyModify",
meta: {
title: "新增策略",
authId: "9221010",
parentId: "92210",
cache: false,
sideHidden: true,
activePath: "/marketing-push-strategy/modify",
},
component: _import("marketingManagement/marketingPushStrategy/views/modify/index"),
},
};
<template>
<div class="">
asdasd
</div>
</template>
<script>
export default {
name: "",
props: {
},
data() {
return {
};
},
computed: {
},
mounted() {
},
methods: {
},
};
</script>
<style scoped lang="scss">
</style>
<template>
<div class="">
<auth-button category="Button"
:data="{ operate: 'create' }"
:show-btn-ids="['9221001']" />
<auth-button :data="{ operate: 'create' }"
:show-btn-ids="['9221002']" />
<auth-button :data="{ operate: 'create' }"
:show-btn-ids="['9221003']" />
<auth-button :data="{ operate: 'create' }"
:show-btn-ids="['9221004']" />
</div>
</template>
<script>
export default {
name: "",
props: {
},
data() {
return {
};
},
computed: {
},
mounted() {
},
methods: {
handleRecord() {},
handleModify() {},
handleAppend() {
this.$router.push({
path: "/marketing-push-strategy/modify",
});
},
handleDelete() {},
},
};
</script>
<style scoped lang="scss">
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!