Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
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
liyang
sts网站
Commits
eab1b450
Commit
eab1b450
authored
Jun 13, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
98fc3078
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
67 deletions
+66
-67
SysMenuServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
+2
-2
SysUserServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysUserServiceImpl.java
+1
-1
babel.config.js
ruoyi-ui/babel.config.js
+2
-2
ruoyi.js
ruoyi-ui/src/utils/ruoyi.js
+1
-1
ry_20220613.sql
sql/ry_20220613.sql
+60
-61
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
eab1b450
...
...
@@ -259,7 +259,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
hasChildByMenuId
(
Long
menuId
)
{
int
result
=
menuMapper
.
hasChildByMenuId
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
@@ -272,7 +272,7 @@ public class SysMenuServiceImpl implements ISysMenuService
public
boolean
checkMenuExistRole
(
Long
menuId
)
{
int
result
=
roleMenuMapper
.
checkMenuExistRole
(
menuId
);
return
result
>
0
?
true
:
false
;
return
result
>
0
;
}
/**
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
View file @
eab1b450
...
...
@@ -381,7 +381,7 @@ public class SysUserServiceImpl implements ISysUserService
*/
public
void
insertUserRole
(
SysUser
user
)
{
this
.
insertUserRole
(
user
.
getUserId
,
user
.
getRoleIds
());
this
.
insertUserRole
(
user
.
getUserId
()
,
user
.
getRoleIds
());
}
/**
...
...
ruoyi-ui/babel.config.js
View file @
eab1b450
...
...
@@ -4,10 +4,10 @@ module.exports = {
'@vue/cli-plugin-babel/preset'
],
'env'
:
{
'
development
'
:
{
'
production
'
:
{
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins'
:
[
'dynamic-import-node'
]
}
}
}
}
\ No newline at end of file
ruoyi-ui/src/utils/ruoyi.js
View file @
eab1b450
...
...
@@ -210,7 +210,7 @@ export function tansParams(params) {
if
(
value
!==
null
&&
value
!==
""
&&
typeof
(
value
)
!==
"undefined"
)
{
if
(
typeof
value
===
'object'
)
{
for
(
const
key
of
Object
.
keys
(
value
))
{
if
(
value
[
key
]
!==
null
&&
value
!==
""
&&
typeof
(
value
[
key
])
!==
'undefined'
)
{
if
(
value
[
key
]
!==
null
&&
value
[
key
]
!==
""
&&
typeof
(
value
[
key
])
!==
'undefined'
)
{
let
params
=
propName
+
'['
+
key
+
']'
;
var
subPart
=
encodeURIComponent
(
params
)
+
"="
;
result
+=
subPart
+
encodeURIComponent
(
value
[
key
])
+
"&"
;
...
...
sql/ry_202
10908
.sql
→
sql/ry_202
20613
.sql
View file @
eab1b450
This diff is collapsed.
Click to expand it.
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