Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-manage-shell
Commits
00389705
Commit
00389705
authored
Apr 28, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request
!33
parents
710edf13
6354207a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
43 deletions
+37
-43
UserDialogWrap.js
src/components/Dialog/UserDialogWrap.js
+6
-0
IconMenu.vue
src/containers/layout/IconMenu/IconMenu.vue
+26
-38
MenuItem.vue
src/containers/layout/IconMenu/components/MenuItem.vue
+4
-4
collect.js
src/store/modules/app/collect.js
+1
-1
No files found.
src/components/Dialog/UserDialogWrap.js
View file @
00389705
...
@@ -73,6 +73,10 @@ export default {
...
@@ -73,6 +73,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
showMoney
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -123,6 +127,7 @@ export default {
...
@@ -123,6 +127,7 @@ export default {
{...
updateVisible
}
{...
updateVisible
}
customerId
=
{
this
.
customerId
}
customerId
=
{
this
.
customerId
}
visible
=
{
this
.
visible
}
visible
=
{
this
.
visible
}
showMoney
=
{
this
.
showMoney
}
title
=
{
this
.
title
}
title
=
{
this
.
title
}
fullscreen
=
{
this
.
fullscreen
}
fullscreen
=
{
this
.
fullscreen
}
top
=
{
this
.
top
}
top
=
{
this
.
top
}
...
@@ -146,6 +151,7 @@ export default {
...
@@ -146,6 +151,7 @@ export default {
{...
updateVisible
}
{...
updateVisible
}
customerId
=
{
this
.
customerId
}
customerId
=
{
this
.
customerId
}
visible
=
{
this
.
visible
}
visible
=
{
this
.
visible
}
showMoney
=
{
this
.
showMoney
}
title
=
{
this
.
title
}
title
=
{
this
.
title
}
fullscreen
=
{
this
.
fullscreen
}
fullscreen
=
{
this
.
fullscreen
}
top
=
{
this
.
top
}
top
=
{
this
.
top
}
...
...
src/containers/layout/IconMenu/IconMenu.vue
View file @
00389705
...
@@ -122,30 +122,7 @@ export default {
...
@@ -122,30 +122,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
menuList
:
[
collectRouteList
:
[],
{
path
:
'/OperLog'
,
name
:
'19'
,
meta
:
{
title
:
'后台操作日志'
,
icon
:
''
},
},
{
path
:
'/interface'
,
name
:
'27'
,
meta
:
{
title
:
'接口管理'
,
icon
:
''
},
children
:
[
{
path
:
'/interface/interfaceApp'
,
name
:
'29'
,
meta
:
{
title
:
'APP接口'
,
icon
:
''
},
},
{
path
:
'/interface/interfaceManager'
,
name
:
'30'
,
meta
:
{
title
:
'后台接口'
,
icon
:
''
},
},
],
},
],
};
};
},
},
computed
:
{
computed
:
{
...
@@ -175,24 +152,35 @@ export default {
...
@@ -175,24 +152,35 @@ export default {
);
);
return
item
?
true
:
false
;
return
item
?
true
:
false
;
},
},
collectRouteList
()
{
// collectRouteList() {
if
(
// let list = this.collectList.map(item => {
this
.
routers
&&
// let id = item.menuId;
this
.
routers
.
length
&&
// return getFilterMenu(this.routers, id);
this
.
collectList
&&
// });
this
.
collectList
.
length
// list = list.filter(item => !!item);
)
{
// return list ? formatRouteLink(list) : null;
let
item
=
this
.
collectList
.
map
(
item
=>
{
// },
},
watch
:
{
collectList
(
val
)
{
this
.
getCollectList
(
val
);
},
},
mounted
()
{
this
.
getCollectList
(
this
.
collectList
);
},
methods
:
{
getCollectList
(
val
)
{
let
list
=
val
.
map
(
item
=>
{
let
id
=
item
.
menuId
;
let
id
=
item
.
menuId
;
return
getFilterMenu
(
this
.
routers
,
id
);
return
getFilterMenu
(
this
.
routers
,
id
);
});
});
return
item
?
formatRouteLink
(
item
)
:
null
;
console
.
log
(
list
)
;
}
else
{
list
=
list
.
filter
(
item
=>
!!
item
);
return
null
;
console
.
log
(
list
)
;
}
},
this
.
collectRouteList
=
list
&&
list
.
length
?
formatRouteLink
(
list
)
:
[];
},
},
methods
:
{
clickHandle
()
{
clickHandle
()
{
if
(
this
.
dashboardVisiable
)
{
if
(
this
.
dashboardVisiable
)
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
...
...
src/containers/layout/IconMenu/components/MenuItem.vue
View file @
00389705
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div
<div
ref=
"MenuItem"
ref=
"MenuItem"
:class=
"`MenuItem $
{showSubMenus?'Selected':''}`"
:class=
"`MenuItem $
{showSubMenus?'Selected':''}`"
@mouseenter="toggleSubmenus"
@mouseenter="toggleSubmenus
(true)
"
@mouseleave="toggleSubmenus"
@mouseleave="toggleSubmenus
(false)
"
>
>
<div
<div
class=
"IconMenu"
class=
"IconMenu"
...
@@ -116,8 +116,8 @@ export default {
...
@@ -116,8 +116,8 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
toggleSubmenus
()
{
toggleSubmenus
(
visiable
)
{
this
.
showSubMenus
=
!
this
.
showSubMenus
;
this
.
showSubMenus
=
visiable
;
},
},
selectHandle
()
{
selectHandle
()
{
if
(
typeof
this
.
selectRouteMenu
===
'function'
)
{
if
(
typeof
this
.
selectRouteMenu
===
'function'
)
{
...
...
src/store/modules/app/collect.js
View file @
00389705
...
@@ -35,7 +35,7 @@ const actions = {
...
@@ -35,7 +35,7 @@ const actions = {
return
addCollect
({
return
addCollect
({
data
:
{
...
entity
,
sortId
:
getters
.
collectList
.
length
+
1
},
data
:
{
...
entity
,
sortId
:
getters
.
collectList
.
length
+
1
},
}).
then
(
res
=>
{
}).
then
(
res
=>
{
commit
(
ADD_COLLECT_LIST
,
entity
.
menuId
);
commit
(
ADD_COLLECT_LIST
,
Number
(
entity
.
menuId
)
);
});
});
},
},
delCollect
({
commit
},
entity
)
{
delCollect
({
commit
},
entity
)
{
...
...
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