Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 725aaf16
authored
Jan 18, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
appMarket
1 parent
81ffb36a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
36 deletions
src/layout/header-aside/components/libs/util.menu.js
src/router/routes.js
src/layout/header-aside/components/libs/util.menu.js
View file @
725aaf1
// 创建 el-menu-item
// 创建 el-menu-item
export
function
elMenuItem
(
createElement
,
menu
)
{
export
function
elMenuItem
(
createElement
,
menu
)
{
return
createElement
(
'el-menu-item'
,
{
props
:
{
index
:
menu
.
path
}
},
[
return
menu
.
sideHidden
?
''
:
createElement
(
'el-menu-item'
,
{
props
:
{
index
:
menu
.
path
}
},
[
...
menu
.
icon
?
[
...
menu
.
icon
?
[
createElement
(
'i'
,
{
attrs
:
{
class
:
`el-icon-
${
menu
.
icon
}
`
}
})
createElement
(
'i'
,
{
attrs
:
{
class
:
`el-icon-
${
menu
.
icon
}
`
}
})
]
:
[],
]
:
[],
...
...
src/router/routes.js
View file @
725aaf1
...
@@ -129,7 +129,7 @@ export const resources = {
...
@@ -129,7 +129,7 @@ export const resources = {
handle
:
'handleImport'
handle
:
'handleImport'
}],
}],
component
:
_import
(
'device/device'
)
component
:
_import
(
'device/device'
)
}
}
,
// '104': {
// '104': {
// path: '/user',
// path: '/user',
// icon: 'user-solid',
// icon: 'user-solid',
...
@@ -188,40 +188,41 @@ export const resources = {
...
@@ -188,40 +188,41 @@ export const resources = {
// },
// },
// component: _import('apiManage/apiRecord')
// component: _import('apiManage/apiRecord')
// }
// }
// '106': {
'106'
:
{
// path: '/appMarket',
path
:
'/appMarket'
,
// icon: 'document-copy',
icon
:
'document-copy'
,
// name: 'appMarket',
name
:
'appMarket'
,
// meta: {
meta
:
{
// title: 'APP营销管理',
title
:
'APP营销管理'
,
// authId: '106',
authId
:
'106'
,
// parentId: '0',
parentId
:
'0'
,
// cache: true
cache
:
true
,
// },
sideHidden
:
true
// auth: [{
},
// authId: '10601',
auth
:
[{
// parentId: '106',
authId
:
'10601'
,
// label: '新增',
parentId
:
'106'
,
// category: 'Button',
label
:
'新增'
,
// type: 'primary',
category
:
'Button'
,
// handle: 'handleAdd'
type
:
'primary'
,
// }, {
handle
:
'handleAdd'
// authId: '10602',
},
{
// parentId: '106',
authId
:
'10602'
,
// label: '编辑',
parentId
:
'106'
,
// handle: 'handleEdit'
label
:
'编辑'
,
// }, {
handle
:
'handleEdit'
// authId: '10603',
},
{
// parentId: '106',
authId
:
'10603'
,
// label: '下架',
parentId
:
'106'
,
// handle: 'handleUpOrDown',
label
:
'下架'
,
// ruleObj: {
handle
:
'handleUpOrDown'
,
// attr: 'status',
ruleObj
:
{
// rule: { 0: '上架', 1: '下架' }
attr
:
'status'
,
// }
rule
:
{
0
:
'上架'
,
1
:
'下架'
}
// }],
}
// component: _import('appMarket/appMarket')
}],
// }
component
:
_import
(
'appMarket/appMarket'
)
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment