Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
67e6aa00
Commit
67e6aa00
authored
Aug 23, 2019
by
gcii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复添加用户页面使用搜索功能后不选择部门会默认选择根目录的bug
parent
47852057
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+5
-1
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
67e6aa00
...
...
@@ -1191,8 +1191,12 @@
// 不允许根父节点选择
notAllowParents
:
function
(
_tree
)
{
var
nodes
=
_tree
.
getSelectedNodes
();
if
(
nodes
.
length
==
0
){
$
.
modal
.
msgError
(
"请选择节点后提交"
);
return
false
;
}
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
if
(
nodes
[
i
].
level
==
0
)
{
if
(
nodes
[
i
].
level
==
0
||
nodes
[
i
].
id
==
100
)
{
$
.
modal
.
msgError
(
"不能选择根节点("
+
nodes
[
i
].
name
+
")"
);
return
false
;
}
...
...
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