Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
a8a9df5c
Commit
a8a9df5c
authored
May 28, 2019
by
zhangdaihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加新菜单404问题解决,设置菜单路由类型默认值“是”
parent
4cfc3d3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
ant-design-jeecg-vue/src/views/system/modules/PermissionModal.vue
+8
-16
No files found.
ant-design-jeecg-vue/src/views/system/modules/PermissionModal.vue
View file @
a8a9df5c
...
...
@@ -214,7 +214,8 @@
});
},
add
()
{
this
.
edit
({
status
:
'1'
,
permsType
:
'1'
});
// 默认值
this
.
edit
({
status
:
'1'
,
permsType
:
'1'
,
route
:
true
});
},
edit
(
record
)
{
this
.
resetScreenSize
();
// 调用此方法,根据屏幕宽度自适应调整抽屉的宽度
...
...
@@ -222,31 +223,22 @@
this
.
model
=
Object
.
assign
({},
record
);
//--------------------------------------------------------------------------------------------------
//根据菜单类型,动态展示页面字段
if
(
record
){
console
.
log
(
record
)
this
.
alwaysShow
=
!
record
.
alwaysShow
?
false
:
true
;
this
.
menuHidden
=
!
record
.
hidden
?
false
:
true
;
this
.
routeSwitch
=
record
.
route
;
if
(
record
.
route
!=
null
){
this
.
routeSwitch
=
record
.
route
?
true
:
false
;
}
//console.log('record.menuType', record.menuType);
this
.
show
=
record
.
menuType
==
2
?
false
:
true
;
this
.
menuLabel
=
record
.
menuType
==
2
?
'按钮/权限名称
'
:
'菜单名称'
;
this
.
menuLabel
=
record
.
menuType
==
2
?
'按钮/权限
'
:
'菜单名称'
;
if
(
this
.
model
.
parentId
){
this
.
localMenuType
=
1
;
}
else
{
this
.
localMenuType
=
0
;
}
}
else
{
if
(
this
.
model
.
parentId
){
this
.
localMenuType
=
1
;
}
else
{
this
.
localMenuType
=
0
;
}
this
.
show
=
true
;
this
.
menuLabel
=
'菜单名称'
;
this
.
routeSwitch
=
true
;
}
//----------------------------------------------------------------------------------------------
this
.
visible
=
true
;
...
...
@@ -303,11 +295,11 @@
}
},
onChangeMenuType
(
e
)
{
console
.
log
(
'localMenuType checked'
,
e
.
target
.
value
)
//
console.log('localMenuType checked', e.target.value)
this
.
localMenuType
=
e
.
target
.
value
if
(
e
.
target
.
value
==
2
){
this
.
show
=
false
;
this
.
menuLabel
=
'按钮/权限
名称
'
;
this
.
menuLabel
=
'按钮/权限'
;
}
else
{
this
.
show
=
true
;
this
.
menuLabel
=
'菜单名称'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment