Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
1464f6d0
Commit
1464f6d0
authored
Apr 11, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改前端菜单
parent
c16365fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
attendance-performance-manager-ui/admin/src/views/system/menu/dialogshow.vue
...nce-manager-ui/admin/src/views/system/menu/dialogshow.vue
+6
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/menu/service/impl/MenuServiceImpl.java
...ls/xhx/base/system/menu/service/impl/MenuServiceImpl.java
+5
-1
No files found.
attendance-performance-manager-ui/admin/src/views/system/menu/dialogshow.vue
View file @
1464f6d0
...
...
@@ -50,6 +50,7 @@ export default {
data
()
{
return
{
fileContent
:
""
,
id
:
null
,
icons
:
[
'
info
'
,
'
error
'
,
'
success
'
,
'
warning
'
,
'
question
'
,
'
tickets
'
,
'
document
'
,
'
goods
'
,
'
sold-out
'
,
'
news
'
,
...
...
@@ -102,6 +103,7 @@ export default {
this
.
urls
.
currUrl
=
this
.
pageInfo
.
addUrl
;
this
.
getData
();
if
(
row
.
id
){
this
.
id
=
row
.
id
this
.
form
.
parentId
=
row
.
id
}
this
.
menuOptions
=
menuOptions
;
...
...
@@ -121,6 +123,9 @@ export default {
},
/**获取数据后弹框 */
afterRender
(
data
)
{
if
(
this
.
id
){
this
.
form
.
parentId
=
this
.
id
}
this
.
open
=
true
;
},
afterSubmit
(
data
)
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/base/system/menu/service/impl/MenuServiceImpl.java
View file @
1464f6d0
...
...
@@ -166,12 +166,16 @@ public class MenuServiceImpl extends AbstractCRUDServiceImpl<MenuDao, MenuEntity
MenuQuery
query
=
new
MenuQuery
();
query
.
setParentId
(
entity
.
getParentId
());
Comparator
<
Integer
>
comparator
=
Comparator
.
comparing
(
Integer:
:
intValue
);
Optional
<
Integer
>
maxOptional
=
this
.
find
(
query
).
stream
().
map
(
MenuEntity:
:
getOrderId
).
filter
(
f
->
f
!=
9999
).
max
(
comparator
);
Optional
<
Integer
>
maxOptional
=
this
.
find
(
query
).
stream
().
map
(
item
->{
if
(
ObjectUtils
.
isEmpty
(
item
.
getOrderId
()))
return
1
;
return
item
.
getOrderId
();
}).
filter
(
f
->
f
!=
9999
).
max
(
comparator
);
maxOptional
.
ifPresent
(
e
->
{
e
=
e
+
1
;
entity
.
setOrderId
(
e
);
});
MenuEntity
parentMenuEntity
=
this
.
get
(
entity
.
getParentId
());
if
(!
ObjectUtils
.
isEmpty
(
parentMenuEntity
)
&&
SatusEnum
.
DISENABLE
.
getValue
()
==
parentMenuEntity
.
getStatus
())
{
throw
new
AppException
(
"菜单信息停用,不允许新增"
);
...
...
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